[3365] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[30867] | 3 | # Generated by GNU Autoconf 2.69.
|
---|
[3365] | 4 | #
|
---|
[25170] | 5 | #
|
---|
[30867] | 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
---|
[25170] | 7 | #
|
---|
| 8 | #
|
---|
[3365] | 9 | # This configure script is free software; the Free Software Foundation
|
---|
| 10 | # gives unlimited permission to copy, distribute and modify it.
|
---|
[25170] | 11 | ## -------------------- ##
|
---|
| 12 | ## M4sh Initialization. ##
|
---|
| 13 | ## -------------------- ##
|
---|
[3365] | 14 |
|
---|
[23356] | 15 | # Be more Bourne compatible
|
---|
| 16 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[25170] | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
[8063] | 18 | emulate sh
|
---|
| 19 | NULLCMD=:
|
---|
[23356] | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
[10192] | 21 | # is contrary to our usage. Disable this feature.
|
---|
| 22 | alias -g '${1+"$@"}'='"$@"'
|
---|
[23356] | 23 | setopt NO_GLOB_SUBST
|
---|
| 24 | else
|
---|
[25170] | 25 | case `(set -o) 2>/dev/null` in #(
|
---|
| 26 | *posix*) :
|
---|
| 27 | set -o posix ;; #(
|
---|
| 28 | *) :
|
---|
| 29 | ;;
|
---|
[23356] | 30 | esac
|
---|
[8063] | 31 | fi
|
---|
| 32 |
|
---|
[23356] | 33 |
|
---|
| 34 | as_nl='
|
---|
| 35 | '
|
---|
| 36 | export as_nl
|
---|
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
[25170] | 41 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
| 42 | # but without wasting forks for bash or zsh.
|
---|
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 45 | as_echo='print -r --'
|
---|
| 46 | as_echo_n='print -rn --'
|
---|
| 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
[23356] | 48 | as_echo='printf %s\n'
|
---|
| 49 | as_echo_n='printf %s'
|
---|
[10192] | 50 | else
|
---|
[23356] | 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
| 53 | as_echo_n='/usr/ucb/echo -n'
|
---|
| 54 | else
|
---|
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
| 56 | as_echo_n_body='eval
|
---|
| 57 | arg=$1;
|
---|
[25170] | 58 | case $arg in #(
|
---|
[23356] | 59 | *"$as_nl"*)
|
---|
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
| 62 | esac;
|
---|
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
| 64 | '
|
---|
| 65 | export as_echo_n_body
|
---|
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
| 67 | fi
|
---|
| 68 | export as_echo_body
|
---|
| 69 | as_echo='sh -c $as_echo_body as_echo'
|
---|
[10192] | 70 | fi
|
---|
| 71 |
|
---|
[23356] | 72 | # The user is always right.
|
---|
| 73 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 74 | PATH_SEPARATOR=:
|
---|
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
| 77 | PATH_SEPARATOR=';'
|
---|
| 78 | }
|
---|
| 79 | fi
|
---|
[10192] | 80 |
|
---|
[23356] | 81 |
|
---|
| 82 | # IFS
|
---|
| 83 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 84 | # there to prevent editors from complaining about space-tab.
|
---|
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 86 | # splitting by setting IFS to empty value.)
|
---|
| 87 | IFS=" "" $as_nl"
|
---|
| 88 |
|
---|
| 89 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
[25170] | 90 | as_myself=
|
---|
| 91 | case $0 in #((
|
---|
[23356] | 92 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 94 | for as_dir in $PATH
|
---|
| 95 | do
|
---|
| 96 | IFS=$as_save_IFS
|
---|
| 97 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 99 | done
|
---|
[23356] | 100 | IFS=$as_save_IFS
|
---|
| 101 |
|
---|
| 102 | ;;
|
---|
| 103 | esac
|
---|
| 104 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 105 | # in which case we are not to be found in the path.
|
---|
| 106 | if test "x$as_myself" = x; then
|
---|
| 107 | as_myself=$0
|
---|
| 108 | fi
|
---|
| 109 | if test ! -f "$as_myself"; then
|
---|
| 110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
[25170] | 111 | exit 1
|
---|
[23356] | 112 | fi
|
---|
| 113 |
|
---|
[25170] | 114 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
| 115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
| 116 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
| 117 | # trigger a bug in pdksh 5.2.14.
|
---|
| 118 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
| 119 | do eval test x\${$as_var+set} = xset \
|
---|
| 120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
[23356] | 121 | done
|
---|
[10192] | 122 | PS1='$ '
|
---|
| 123 | PS2='> '
|
---|
| 124 | PS4='+ '
|
---|
| 125 |
|
---|
| 126 | # NLS nuisances.
|
---|
[23356] | 127 | LC_ALL=C
|
---|
| 128 | export LC_ALL
|
---|
| 129 | LANGUAGE=C
|
---|
| 130 | export LANGUAGE
|
---|
| 131 |
|
---|
| 132 | # CDPATH.
|
---|
[25170] | 133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
[23356] | 134 |
|
---|
[30867] | 135 | # Use a proper internal environment variable to ensure we don't fall
|
---|
| 136 | # into an infinite loop, continuously re-executing ourselves.
|
---|
| 137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
|
---|
| 138 | _as_can_reexec=no; export _as_can_reexec;
|
---|
| 139 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
| 140 | # neutralization value for shells without unset; and this also
|
---|
| 141 | # works around shells that cannot unset nonexistent variables.
|
---|
| 142 | # Preserve -v and -x to the replacement shell.
|
---|
| 143 | BASH_ENV=/dev/null
|
---|
| 144 | ENV=/dev/null
|
---|
| 145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
| 146 | case $- in # ((((
|
---|
| 147 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
| 148 | *v* ) as_opts=-v ;;
|
---|
| 149 | *x* ) as_opts=-x ;;
|
---|
| 150 | * ) as_opts= ;;
|
---|
| 151 | esac
|
---|
| 152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
| 153 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
| 154 | # out after a failed `exec'.
|
---|
| 155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
| 156 | as_fn_exit 255
|
---|
| 157 | fi
|
---|
| 158 | # We don't want this to propagate to other subprocesses.
|
---|
| 159 | { _as_can_reexec=; unset _as_can_reexec;}
|
---|
[23356] | 160 | if test "x$CONFIG_SHELL" = x; then
|
---|
[25170] | 161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
| 162 | emulate sh
|
---|
| 163 | NULLCMD=:
|
---|
| 164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
| 165 | # is contrary to our usage. Disable this feature.
|
---|
| 166 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
| 167 | setopt NO_GLOB_SUBST
|
---|
[23356] | 168 | else
|
---|
[25170] | 169 | case \`(set -o) 2>/dev/null\` in #(
|
---|
| 170 | *posix*) :
|
---|
| 171 | set -o posix ;; #(
|
---|
| 172 | *) :
|
---|
| 173 | ;;
|
---|
| 174 | esac
|
---|
[23356] | 175 | fi
|
---|
[25170] | 176 | "
|
---|
| 177 | as_required="as_fn_return () { (exit \$1); }
|
---|
| 178 | as_fn_success () { as_fn_return 0; }
|
---|
| 179 | as_fn_failure () { as_fn_return 1; }
|
---|
| 180 | as_fn_ret_success () { return 0; }
|
---|
| 181 | as_fn_ret_failure () { return 1; }
|
---|
[23356] | 182 |
|
---|
| 183 | exitcode=0
|
---|
[25170] | 184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
| 185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
| 186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
| 187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
| 188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
[23356] | 189 |
|
---|
| 190 | else
|
---|
[25170] | 191 | exitcode=1; echo positional parameters were not saved.
|
---|
[23356] | 192 | fi
|
---|
[30867] | 193 | test x\$exitcode = x0 || exit 1
|
---|
| 194 | test -x / || exit 1"
|
---|
[25170] | 195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
| 196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
| 197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
| 198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
| 199 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
| 200 | if (eval "$as_required") 2>/dev/null; then :
|
---|
| 201 | as_have_required=yes
|
---|
[23356] | 202 | else
|
---|
[25170] | 203 | as_have_required=no
|
---|
[23356] | 204 | fi
|
---|
[25170] | 205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
[23356] | 206 |
|
---|
| 207 | else
|
---|
[25170] | 208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 209 | as_found=false
|
---|
[23356] | 210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
[10192] | 211 | do
|
---|
[23356] | 212 | IFS=$as_save_IFS
|
---|
| 213 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 214 | as_found=:
|
---|
| 215 | case $as_dir in #(
|
---|
[23356] | 216 | /*)
|
---|
| 217 | for as_base in sh bash ksh sh5; do
|
---|
[25170] | 218 | # Try only shells that exist, to save several forks.
|
---|
| 219 | as_shell=$as_dir/$as_base
|
---|
| 220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
| 221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
| 222 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
| 223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
| 224 | break 2
|
---|
| 225 | fi
|
---|
| 226 | fi
|
---|
[23356] | 227 | done;;
|
---|
| 228 | esac
|
---|
[25170] | 229 | as_found=false
|
---|
[23356] | 230 | done
|
---|
[25170] | 231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
| 232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
| 233 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
| 234 | fi; }
|
---|
[23356] | 235 | IFS=$as_save_IFS
|
---|
| 236 |
|
---|
| 237 |
|
---|
[25170] | 238 | if test "x$CONFIG_SHELL" != x; then :
|
---|
[30867] | 239 | export CONFIG_SHELL
|
---|
| 240 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
| 241 | # neutralization value for shells without unset; and this also
|
---|
| 242 | # works around shells that cannot unset nonexistent variables.
|
---|
| 243 | # Preserve -v and -x to the replacement shell.
|
---|
| 244 | BASH_ENV=/dev/null
|
---|
| 245 | ENV=/dev/null
|
---|
| 246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
| 247 | case $- in # ((((
|
---|
| 248 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
| 249 | *v* ) as_opts=-v ;;
|
---|
| 250 | *x* ) as_opts=-x ;;
|
---|
| 251 | * ) as_opts= ;;
|
---|
| 252 | esac
|
---|
| 253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
| 254 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
| 255 | # out after a failed `exec'.
|
---|
| 256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
| 257 | exit 255
|
---|
[23356] | 258 | fi
|
---|
| 259 |
|
---|
[25170] | 260 | if test x$as_have_required = xno; then :
|
---|
| 261 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
| 262 | $as_echo "$0: the shells that I found on your system."
|
---|
| 263 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
| 264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
| 265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
| 266 | else
|
---|
| 267 | $as_echo "$0: Please tell [email protected] about your system,
|
---|
| 268 | $0: including any error possibly output before this
|
---|
| 269 | $0: message. Then install a modern shell, or manually run
|
---|
| 270 | $0: the script under such a shell if you do have one."
|
---|
| 271 | fi
|
---|
| 272 | exit 1
|
---|
[23356] | 273 | fi
|
---|
| 274 | fi
|
---|
| 275 | fi
|
---|
[25170] | 276 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
| 277 | export SHELL
|
---|
| 278 | # Unset more variables known to interfere with behavior of common tools.
|
---|
| 279 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
| 280 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
[10192] | 281 |
|
---|
[25170] | 282 | ## --------------------- ##
|
---|
| 283 | ## M4sh Shell Functions. ##
|
---|
| 284 | ## --------------------- ##
|
---|
| 285 | # as_fn_unset VAR
|
---|
| 286 | # ---------------
|
---|
| 287 | # Portably unset VAR.
|
---|
| 288 | as_fn_unset ()
|
---|
| 289 | {
|
---|
| 290 | { eval $1=; unset $1;}
|
---|
| 291 | }
|
---|
| 292 | as_unset=as_fn_unset
|
---|
[23356] | 293 |
|
---|
[25170] | 294 | # as_fn_set_status STATUS
|
---|
| 295 | # -----------------------
|
---|
| 296 | # Set $? to STATUS, without forking.
|
---|
| 297 | as_fn_set_status ()
|
---|
| 298 | {
|
---|
| 299 | return $1
|
---|
| 300 | } # as_fn_set_status
|
---|
[23356] | 301 |
|
---|
[25170] | 302 | # as_fn_exit STATUS
|
---|
| 303 | # -----------------
|
---|
| 304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
| 305 | as_fn_exit ()
|
---|
| 306 | {
|
---|
| 307 | set +e
|
---|
| 308 | as_fn_set_status $1
|
---|
| 309 | exit $1
|
---|
| 310 | } # as_fn_exit
|
---|
[23356] | 311 |
|
---|
[25170] | 312 | # as_fn_mkdir_p
|
---|
| 313 | # -------------
|
---|
| 314 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
| 315 | as_fn_mkdir_p ()
|
---|
| 316 | {
|
---|
[23356] | 317 |
|
---|
[25170] | 318 | case $as_dir in #(
|
---|
| 319 | -*) as_dir=./$as_dir;;
|
---|
| 320 | esac
|
---|
| 321 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
| 322 | as_dirs=
|
---|
| 323 | while :; do
|
---|
| 324 | case $as_dir in #(
|
---|
| 325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
| 326 | *) as_qdir=$as_dir;;
|
---|
| 327 | esac
|
---|
| 328 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 329 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
| 330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 331 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 332 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 334 | $as_echo X"$as_dir" |
|
---|
| 335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 336 | s//\1/
|
---|
| 337 | q
|
---|
| 338 | }
|
---|
| 339 | /^X\(\/\/\)[^/].*/{
|
---|
| 340 | s//\1/
|
---|
| 341 | q
|
---|
| 342 | }
|
---|
| 343 | /^X\(\/\/\)$/{
|
---|
| 344 | s//\1/
|
---|
| 345 | q
|
---|
| 346 | }
|
---|
| 347 | /^X\(\/\).*/{
|
---|
| 348 | s//\1/
|
---|
| 349 | q
|
---|
| 350 | }
|
---|
| 351 | s/.*/./; q'`
|
---|
| 352 | test -d "$as_dir" && break
|
---|
| 353 | done
|
---|
| 354 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
| 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
[23356] | 356 |
|
---|
| 357 |
|
---|
[25170] | 358 | } # as_fn_mkdir_p
|
---|
[30867] | 359 |
|
---|
| 360 | # as_fn_executable_p FILE
|
---|
| 361 | # -----------------------
|
---|
| 362 | # Test if FILE is an executable regular file.
|
---|
| 363 | as_fn_executable_p ()
|
---|
| 364 | {
|
---|
| 365 | test -f "$1" && test -x "$1"
|
---|
| 366 | } # as_fn_executable_p
|
---|
[25170] | 367 | # as_fn_append VAR VALUE
|
---|
| 368 | # ----------------------
|
---|
| 369 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
| 370 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
| 371 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
| 372 | # implementations.
|
---|
| 373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
| 374 | eval 'as_fn_append ()
|
---|
| 375 | {
|
---|
| 376 | eval $1+=\$2
|
---|
| 377 | }'
|
---|
| 378 | else
|
---|
| 379 | as_fn_append ()
|
---|
| 380 | {
|
---|
| 381 | eval $1=\$$1\$2
|
---|
| 382 | }
|
---|
| 383 | fi # as_fn_append
|
---|
[23356] | 384 |
|
---|
[25170] | 385 | # as_fn_arith ARG...
|
---|
| 386 | # ------------------
|
---|
| 387 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
| 388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
| 389 | # must be portable across $(()) and expr.
|
---|
| 390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
| 391 | eval 'as_fn_arith ()
|
---|
| 392 | {
|
---|
| 393 | as_val=$(( $* ))
|
---|
| 394 | }'
|
---|
| 395 | else
|
---|
| 396 | as_fn_arith ()
|
---|
| 397 | {
|
---|
| 398 | as_val=`expr "$@" || test $? -eq 1`
|
---|
| 399 | }
|
---|
| 400 | fi # as_fn_arith
|
---|
[23356] | 401 |
|
---|
| 402 |
|
---|
[25170] | 403 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
| 404 | # ----------------------------------------
|
---|
| 405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
| 406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
| 407 | # script with STATUS, using 1 if that was 0.
|
---|
| 408 | as_fn_error ()
|
---|
| 409 | {
|
---|
| 410 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
| 411 | if test "$4"; then
|
---|
| 412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
| 414 | fi
|
---|
| 415 | $as_echo "$as_me: error: $2" >&2
|
---|
| 416 | as_fn_exit $as_status
|
---|
| 417 | } # as_fn_error
|
---|
[23356] | 418 |
|
---|
[25170] | 419 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
| 421 | as_expr=expr
|
---|
[10192] | 422 | else
|
---|
[25170] | 423 | as_expr=false
|
---|
[10192] | 424 | fi
|
---|
| 425 |
|
---|
[25170] | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
| 427 | as_basename=basename
|
---|
[10192] | 428 | else
|
---|
[25170] | 429 | as_basename=false
|
---|
[10192] | 430 | fi
|
---|
| 431 |
|
---|
[25170] | 432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 433 | as_dirname=dirname
|
---|
[23356] | 434 | else
|
---|
[25170] | 435 | as_dirname=false
|
---|
[23356] | 436 | fi
|
---|
[10192] | 437 |
|
---|
[25170] | 438 | as_me=`$as_basename -- "$0" ||
|
---|
| 439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 440 | X"$0" : 'X\(//\)$' \| \
|
---|
| 441 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 442 | $as_echo X/"$0" |
|
---|
| 443 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 444 | s//\1/
|
---|
| 445 | q
|
---|
| 446 | }
|
---|
| 447 | /^X\/\(\/\/\)$/{
|
---|
| 448 | s//\1/
|
---|
| 449 | q
|
---|
| 450 | }
|
---|
| 451 | /^X\/\(\/\).*/{
|
---|
| 452 | s//\1/
|
---|
| 453 | q
|
---|
| 454 | }
|
---|
| 455 | s/.*/./; q'`
|
---|
[8063] | 456 |
|
---|
[25170] | 457 | # Avoid depending upon Character Ranges.
|
---|
| 458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 461 | as_cr_digits='0123456789'
|
---|
| 462 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
[10192] | 463 |
|
---|
| 464 |
|
---|
[25170] | 465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
| 466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
| 467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
| 468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
| 469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
[23356] | 470 | sed -n '
|
---|
| 471 | p
|
---|
| 472 | /[$]LINENO/=
|
---|
| 473 | ' <$as_myself |
|
---|
[10192] | 474 | sed '
|
---|
[23356] | 475 | s/[$]LINENO.*/&-/
|
---|
| 476 | t lineno
|
---|
| 477 | b
|
---|
| 478 | :lineno
|
---|
[10192] | 479 | N
|
---|
[23356] | 480 | :loop
|
---|
| 481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
[10192] | 482 | t loop
|
---|
[23356] | 483 | s/-\n.*//
|
---|
[10192] | 484 | ' >$as_me.lineno &&
|
---|
[23356] | 485 | chmod +x "$as_me.lineno" ||
|
---|
[25170] | 486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
[10192] | 487 |
|
---|
[30867] | 488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
---|
| 489 | # already done that, so ensure we don't try to do so again and fall
|
---|
| 490 | # in an infinite loop. This has already happened in practice.
|
---|
| 491 | _as_can_reexec=no; export _as_can_reexec
|
---|
[10192] | 492 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 493 | # (the dirname of $[0] is not the place where we might find the
|
---|
[23356] | 494 | # original and so on. Autoconf is especially sensitive to this).
|
---|
| 495 | . "./$as_me.lineno"
|
---|
[10192] | 496 | # Exit status is that of the last command.
|
---|
| 497 | exit
|
---|
| 498 | }
|
---|
| 499 |
|
---|
[23356] | 500 | ECHO_C= ECHO_N= ECHO_T=
|
---|
[25170] | 501 | case `echo -n x` in #(((((
|
---|
[23356] | 502 | -n*)
|
---|
[25170] | 503 | case `echo 'xy\c'` in
|
---|
[23356] | 504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
[25170] | 505 | xy) ECHO_C='\c';;
|
---|
| 506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
| 507 | ECHO_T=' ';;
|
---|
[23356] | 508 | esac;;
|
---|
| 509 | *)
|
---|
| 510 | ECHO_N='-n';;
|
---|
[10192] | 511 | esac
|
---|
| 512 |
|
---|
[23356] | 513 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 514 | if test -d conf$$.dir; then
|
---|
| 515 | rm -f conf$$.dir/conf$$.file
|
---|
[8063] | 516 | else
|
---|
[23356] | 517 | rm -f conf$$.dir
|
---|
| 518 | mkdir conf$$.dir 2>/dev/null
|
---|
[8063] | 519 | fi
|
---|
[23356] | 520 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
| 521 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 522 | as_ln_s='ln -s'
|
---|
| 523 | # ... but there are two gotchas:
|
---|
| 524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
[30867] | 526 | # In both cases, we have to default to `cp -pR'.
|
---|
[23356] | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
[30867] | 528 | as_ln_s='cp -pR'
|
---|
[23356] | 529 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 530 | as_ln_s=ln
|
---|
| 531 | else
|
---|
[30867] | 532 | as_ln_s='cp -pR'
|
---|
[22058] | 533 | fi
|
---|
[8063] | 534 | else
|
---|
[30867] | 535 | as_ln_s='cp -pR'
|
---|
[8063] | 536 | fi
|
---|
[23356] | 537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 538 | rmdir conf$$.dir 2>/dev/null
|
---|
[8063] | 539 |
|
---|
[10192] | 540 | if mkdir -p . 2>/dev/null; then
|
---|
[25170] | 541 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
[8063] | 542 | else
|
---|
[10192] | 543 | test -d ./-p && rmdir ./-p
|
---|
| 544 | as_mkdir_p=false
|
---|
[8063] | 545 | fi
|
---|
| 546 |
|
---|
[30867] | 547 | as_test_x='test -x'
|
---|
| 548 | as_executable_p=as_fn_executable_p
|
---|
[8063] | 549 |
|
---|
[10192] | 550 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 552 |
|
---|
| 553 | # Sed expression to map a string onto a valid variable name.
|
---|
| 554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 555 |
|
---|
| 556 |
|
---|
[25170] | 557 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
| 558 | exec 6>&1
|
---|
[8063] | 559 |
|
---|
| 560 | # Name of the host.
|
---|
[25170] | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
[8063] | 562 | # so uname gets run too.
|
---|
| 563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 564 |
|
---|
| 565 | #
|
---|
| 566 | # Initializations.
|
---|
| 567 | #
|
---|
[3365] | 568 | ac_default_prefix=/usr/local
|
---|
[23356] | 569 | ac_clean_files=
|
---|
[10192] | 570 | ac_config_libobj_dir=.
|
---|
[23356] | 571 | LIBOBJS=
|
---|
[8063] | 572 | cross_compiling=no
|
---|
| 573 | subdirs=
|
---|
[10192] | 574 | MFLAGS=
|
---|
| 575 | MAKEFLAGS=
|
---|
[3365] | 576 |
|
---|
[10192] | 577 | # Identity of this package.
|
---|
| 578 | PACKAGE_NAME=
|
---|
| 579 | PACKAGE_TARNAME=
|
---|
| 580 | PACKAGE_VERSION=
|
---|
| 581 | PACKAGE_STRING=
|
---|
| 582 | PACKAGE_BUGREPORT=
|
---|
[25170] | 583 | PACKAGE_URL=
|
---|
[8063] | 584 |
|
---|
| 585 | ac_unique_file="text/MGQuery.cpp"
|
---|
| 586 | # Factoring default headers for most tests.
|
---|
| 587 | ac_includes_default="\
|
---|
| 588 | #include <stdio.h>
|
---|
[23356] | 589 | #ifdef HAVE_SYS_TYPES_H
|
---|
[10192] | 590 | # include <sys/types.h>
|
---|
| 591 | #endif
|
---|
[23356] | 592 | #ifdef HAVE_SYS_STAT_H
|
---|
[10192] | 593 | # include <sys/stat.h>
|
---|
| 594 | #endif
|
---|
[23356] | 595 | #ifdef STDC_HEADERS
|
---|
[8063] | 596 | # include <stdlib.h>
|
---|
| 597 | # include <stddef.h>
|
---|
| 598 | #else
|
---|
[23356] | 599 | # ifdef HAVE_STDLIB_H
|
---|
[8063] | 600 | # include <stdlib.h>
|
---|
| 601 | # endif
|
---|
| 602 | #endif
|
---|
[23356] | 603 | #ifdef HAVE_STRING_H
|
---|
| 604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
[8063] | 605 | # include <memory.h>
|
---|
| 606 | # endif
|
---|
| 607 | # include <string.h>
|
---|
| 608 | #endif
|
---|
[23356] | 609 | #ifdef HAVE_STRINGS_H
|
---|
[10192] | 610 | # include <strings.h>
|
---|
| 611 | #endif
|
---|
[23356] | 612 | #ifdef HAVE_INTTYPES_H
|
---|
[8063] | 613 | # include <inttypes.h>
|
---|
| 614 | #endif
|
---|
[23356] | 615 | #ifdef HAVE_STDINT_H
|
---|
| 616 | # include <stdint.h>
|
---|
| 617 | #endif
|
---|
| 618 | #ifdef HAVE_UNISTD_H
|
---|
[8063] | 619 | # include <unistd.h>
|
---|
| 620 | #endif"
|
---|
| 621 |
|
---|
[23356] | 622 | ac_subst_vars='LTLIBOBJS
|
---|
[26656] | 623 | JNILDFLAGS
|
---|
| 624 | JNICFLAGS
|
---|
[23356] | 625 | JNISUFFIX
|
---|
[26656] | 626 | JNIPREFIX
|
---|
[23356] | 627 | JNIINC
|
---|
| 628 | LIBOBJS
|
---|
| 629 | ALLOCA
|
---|
| 630 | UNAC_DIR
|
---|
| 631 | ANSI2KNR
|
---|
| 632 | U
|
---|
| 633 | EGREP
|
---|
| 634 | GREP
|
---|
| 635 | CPP
|
---|
| 636 | JAVACFLAGS
|
---|
| 637 | JAVAC
|
---|
| 638 | uudecode
|
---|
| 639 | JAVA
|
---|
| 640 | RANLIB
|
---|
| 641 | SET_MAKE
|
---|
| 642 | LN_S
|
---|
| 643 | INSTALL_DATA
|
---|
| 644 | INSTALL_SCRIPT
|
---|
| 645 | INSTALL_PROGRAM
|
---|
| 646 | ac_ct_CC
|
---|
| 647 | CFLAGS
|
---|
| 648 | CC
|
---|
| 649 | YFLAGS
|
---|
| 650 | YACC
|
---|
| 651 | AWK
|
---|
| 652 | OBJEXT
|
---|
| 653 | EXEEXT
|
---|
| 654 | ac_ct_CXX
|
---|
| 655 | CPPFLAGS
|
---|
| 656 | LDFLAGS
|
---|
| 657 | CXXFLAGS
|
---|
| 658 | CXX
|
---|
| 659 | ENABLE_ACCENTFOLD
|
---|
[25170] | 660 | ARCH_DEP_FLAGS
|
---|
[23356] | 661 | ENABLE_JAVA
|
---|
[30867] | 662 | gsdlos
|
---|
[23356] | 663 | VERSION
|
---|
| 664 | PACKAGE
|
---|
| 665 | target_os
|
---|
| 666 | target_vendor
|
---|
| 667 | target_cpu
|
---|
| 668 | target
|
---|
| 669 | host_os
|
---|
| 670 | host_vendor
|
---|
| 671 | host_cpu
|
---|
| 672 | host
|
---|
| 673 | build_os
|
---|
| 674 | build_vendor
|
---|
| 675 | build_cpu
|
---|
| 676 | build
|
---|
| 677 | target_alias
|
---|
| 678 | host_alias
|
---|
| 679 | build_alias
|
---|
| 680 | LIBS
|
---|
| 681 | ECHO_T
|
---|
| 682 | ECHO_N
|
---|
| 683 | ECHO_C
|
---|
| 684 | DEFS
|
---|
| 685 | mandir
|
---|
| 686 | localedir
|
---|
| 687 | libdir
|
---|
| 688 | psdir
|
---|
| 689 | pdfdir
|
---|
| 690 | dvidir
|
---|
| 691 | htmldir
|
---|
| 692 | infodir
|
---|
| 693 | docdir
|
---|
| 694 | oldincludedir
|
---|
| 695 | includedir
|
---|
| 696 | localstatedir
|
---|
| 697 | sharedstatedir
|
---|
| 698 | sysconfdir
|
---|
| 699 | datadir
|
---|
| 700 | datarootdir
|
---|
| 701 | libexecdir
|
---|
| 702 | sbindir
|
---|
| 703 | bindir
|
---|
| 704 | program_transform_name
|
---|
| 705 | prefix
|
---|
| 706 | exec_prefix
|
---|
[25170] | 707 | PACKAGE_URL
|
---|
[23356] | 708 | PACKAGE_BUGREPORT
|
---|
| 709 | PACKAGE_STRING
|
---|
| 710 | PACKAGE_VERSION
|
---|
| 711 | PACKAGE_TARNAME
|
---|
| 712 | PACKAGE_NAME
|
---|
| 713 | PATH_SEPARATOR
|
---|
| 714 | SHELL'
|
---|
[10192] | 715 | ac_subst_files=''
|
---|
[23356] | 716 | ac_user_opts='
|
---|
| 717 | enable_option_checking
|
---|
| 718 | enable_java
|
---|
| 719 | enable_accentfold
|
---|
| 720 | with_unac
|
---|
| 721 | with_dmalloc
|
---|
| 722 | with_regex
|
---|
| 723 | with_gnu_readline
|
---|
| 724 | enable_override_longlong
|
---|
| 725 | '
|
---|
| 726 | ac_precious_vars='build_alias
|
---|
| 727 | host_alias
|
---|
| 728 | target_alias
|
---|
| 729 | CXX
|
---|
| 730 | CXXFLAGS
|
---|
| 731 | LDFLAGS
|
---|
| 732 | LIBS
|
---|
| 733 | CPPFLAGS
|
---|
| 734 | CCC
|
---|
| 735 | YACC
|
---|
| 736 | YFLAGS
|
---|
| 737 | CC
|
---|
| 738 | CFLAGS
|
---|
| 739 | CPP'
|
---|
[10192] | 740 |
|
---|
[23356] | 741 |
|
---|
[3365] | 742 | # Initialize some variables set by options.
|
---|
[8063] | 743 | ac_init_help=
|
---|
| 744 | ac_init_version=false
|
---|
[23356] | 745 | ac_unrecognized_opts=
|
---|
| 746 | ac_unrecognized_sep=
|
---|
[3365] | 747 | # The variables have the same names as the options, with
|
---|
| 748 | # dashes changed to underlines.
|
---|
[8063] | 749 | cache_file=/dev/null
|
---|
[3365] | 750 | exec_prefix=NONE
|
---|
| 751 | no_create=
|
---|
| 752 | no_recursion=
|
---|
| 753 | prefix=NONE
|
---|
| 754 | program_prefix=NONE
|
---|
| 755 | program_suffix=NONE
|
---|
| 756 | program_transform_name=s,x,x,
|
---|
| 757 | silent=
|
---|
| 758 | site=
|
---|
| 759 | srcdir=
|
---|
| 760 | verbose=
|
---|
| 761 | x_includes=NONE
|
---|
| 762 | x_libraries=NONE
|
---|
[8063] | 763 |
|
---|
| 764 | # Installation directory options.
|
---|
| 765 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 766 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 767 | # by default will actually change.
|
---|
| 768 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
[23356] | 769 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
[3365] | 770 | bindir='${exec_prefix}/bin'
|
---|
| 771 | sbindir='${exec_prefix}/sbin'
|
---|
| 772 | libexecdir='${exec_prefix}/libexec'
|
---|
[23356] | 773 | datarootdir='${prefix}/share'
|
---|
| 774 | datadir='${datarootdir}'
|
---|
[3365] | 775 | sysconfdir='${prefix}/etc'
|
---|
| 776 | sharedstatedir='${prefix}/com'
|
---|
| 777 | localstatedir='${prefix}/var'
|
---|
| 778 | includedir='${prefix}/include'
|
---|
| 779 | oldincludedir='/usr/include'
|
---|
[23356] | 780 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
| 781 | infodir='${datarootdir}/info'
|
---|
| 782 | htmldir='${docdir}'
|
---|
| 783 | dvidir='${docdir}'
|
---|
| 784 | pdfdir='${docdir}'
|
---|
| 785 | psdir='${docdir}'
|
---|
| 786 | libdir='${exec_prefix}/lib'
|
---|
| 787 | localedir='${datarootdir}/locale'
|
---|
| 788 | mandir='${datarootdir}/man'
|
---|
[3365] | 789 |
|
---|
| 790 | ac_prev=
|
---|
[23356] | 791 | ac_dashdash=
|
---|
[3365] | 792 | for ac_option
|
---|
| 793 | do
|
---|
| 794 | # If the previous option needs an argument, assign it.
|
---|
| 795 | if test -n "$ac_prev"; then
|
---|
[23356] | 796 | eval $ac_prev=\$ac_option
|
---|
[3365] | 797 | ac_prev=
|
---|
| 798 | continue
|
---|
| 799 | fi
|
---|
| 800 |
|
---|
[23356] | 801 | case $ac_option in
|
---|
[25170] | 802 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
| 803 | *=) ac_optarg= ;;
|
---|
| 804 | *) ac_optarg=yes ;;
|
---|
[23356] | 805 | esac
|
---|
[3365] | 806 |
|
---|
| 807 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 808 |
|
---|
[23356] | 809 | case $ac_dashdash$ac_option in
|
---|
| 810 | --)
|
---|
| 811 | ac_dashdash=yes ;;
|
---|
[3365] | 812 |
|
---|
| 813 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 814 | ac_prev=bindir ;;
|
---|
| 815 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
[8063] | 816 | bindir=$ac_optarg ;;
|
---|
[3365] | 817 |
|
---|
| 818 | -build | --build | --buil | --bui | --bu)
|
---|
[8063] | 819 | ac_prev=build_alias ;;
|
---|
[3365] | 820 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
[8063] | 821 | build_alias=$ac_optarg ;;
|
---|
[3365] | 822 |
|
---|
| 823 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 824 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 825 | ac_prev=cache_file ;;
|
---|
| 826 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 827 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
[8063] | 828 | cache_file=$ac_optarg ;;
|
---|
[3365] | 829 |
|
---|
[8063] | 830 | --config-cache | -C)
|
---|
| 831 | cache_file=config.cache ;;
|
---|
| 832 |
|
---|
[23356] | 833 | -datadir | --datadir | --datadi | --datad)
|
---|
[3365] | 834 | ac_prev=datadir ;;
|
---|
[23356] | 835 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
[8063] | 836 | datadir=$ac_optarg ;;
|
---|
[3365] | 837 |
|
---|
[23356] | 838 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
| 839 | | --dataroo | --dataro | --datar)
|
---|
| 840 | ac_prev=datarootdir ;;
|
---|
| 841 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
| 842 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
| 843 | datarootdir=$ac_optarg ;;
|
---|
| 844 |
|
---|
[3365] | 845 | -disable-* | --disable-*)
|
---|
[23356] | 846 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
[3365] | 847 | # Reject names that are not valid shell variable names.
|
---|
[23356] | 848 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[25170] | 849 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
[23356] | 850 | ac_useropt_orig=$ac_useropt
|
---|
| 851 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 852 | case $ac_user_opts in
|
---|
| 853 | *"
|
---|
| 854 | "enable_$ac_useropt"
|
---|
| 855 | "*) ;;
|
---|
| 856 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
| 857 | ac_unrecognized_sep=', ';;
|
---|
| 858 | esac
|
---|
| 859 | eval enable_$ac_useropt=no ;;
|
---|
[3365] | 860 |
|
---|
[23356] | 861 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
| 862 | ac_prev=docdir ;;
|
---|
| 863 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
| 864 | docdir=$ac_optarg ;;
|
---|
| 865 |
|
---|
| 866 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
| 867 | ac_prev=dvidir ;;
|
---|
| 868 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
| 869 | dvidir=$ac_optarg ;;
|
---|
| 870 |
|
---|
[3365] | 871 | -enable-* | --enable-*)
|
---|
[23356] | 872 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
[3365] | 873 | # Reject names that are not valid shell variable names.
|
---|
[23356] | 874 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[25170] | 875 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
[23356] | 876 | ac_useropt_orig=$ac_useropt
|
---|
| 877 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 878 | case $ac_user_opts in
|
---|
| 879 | *"
|
---|
| 880 | "enable_$ac_useropt"
|
---|
| 881 | "*) ;;
|
---|
| 882 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
| 883 | ac_unrecognized_sep=', ';;
|
---|
[22058] | 884 | esac
|
---|
[23356] | 885 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
[3365] | 886 |
|
---|
| 887 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 888 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 889 | | --exec | --exe | --ex)
|
---|
| 890 | ac_prev=exec_prefix ;;
|
---|
| 891 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 892 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 893 | | --exec=* | --exe=* | --ex=*)
|
---|
[8063] | 894 | exec_prefix=$ac_optarg ;;
|
---|
[3365] | 895 |
|
---|
| 896 | -gas | --gas | --ga | --g)
|
---|
| 897 | # Obsolete; use --with-gas.
|
---|
| 898 | with_gas=yes ;;
|
---|
| 899 |
|
---|
[8063] | 900 | -help | --help | --hel | --he | -h)
|
---|
| 901 | ac_init_help=long ;;
|
---|
| 902 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 903 | ac_init_help=recursive ;;
|
---|
| 904 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 905 | ac_init_help=short ;;
|
---|
[3365] | 906 |
|
---|
| 907 | -host | --host | --hos | --ho)
|
---|
[8063] | 908 | ac_prev=host_alias ;;
|
---|
[3365] | 909 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
[8063] | 910 | host_alias=$ac_optarg ;;
|
---|
[3365] | 911 |
|
---|
[23356] | 912 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
| 913 | ac_prev=htmldir ;;
|
---|
| 914 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
| 915 | | --ht=*)
|
---|
| 916 | htmldir=$ac_optarg ;;
|
---|
| 917 |
|
---|
[3365] | 918 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 919 | | --includ | --inclu | --incl | --inc)
|
---|
| 920 | ac_prev=includedir ;;
|
---|
| 921 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 922 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
[8063] | 923 | includedir=$ac_optarg ;;
|
---|
[3365] | 924 |
|
---|
| 925 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 926 | ac_prev=infodir ;;
|
---|
| 927 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
[8063] | 928 | infodir=$ac_optarg ;;
|
---|
[3365] | 929 |
|
---|
| 930 | -libdir | --libdir | --libdi | --libd)
|
---|
| 931 | ac_prev=libdir ;;
|
---|
| 932 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
[8063] | 933 | libdir=$ac_optarg ;;
|
---|
[3365] | 934 |
|
---|
| 935 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 936 | | --libexe | --libex | --libe)
|
---|
| 937 | ac_prev=libexecdir ;;
|
---|
| 938 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 939 | | --libexe=* | --libex=* | --libe=*)
|
---|
[8063] | 940 | libexecdir=$ac_optarg ;;
|
---|
[3365] | 941 |
|
---|
[23356] | 942 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
| 943 | ac_prev=localedir ;;
|
---|
| 944 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
| 945 | localedir=$ac_optarg ;;
|
---|
| 946 |
|
---|
[3365] | 947 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
[23356] | 948 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
[3365] | 949 | ac_prev=localstatedir ;;
|
---|
| 950 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
[23356] | 951 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
[8063] | 952 | localstatedir=$ac_optarg ;;
|
---|
[3365] | 953 |
|
---|
| 954 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 955 | ac_prev=mandir ;;
|
---|
| 956 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
[8063] | 957 | mandir=$ac_optarg ;;
|
---|
[3365] | 958 |
|
---|
| 959 | -nfp | --nfp | --nf)
|
---|
| 960 | # Obsolete; use --without-fp.
|
---|
| 961 | with_fp=no ;;
|
---|
| 962 |
|
---|
| 963 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
[10192] | 964 | | --no-cr | --no-c | -n)
|
---|
[3365] | 965 | no_create=yes ;;
|
---|
| 966 |
|
---|
| 967 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 968 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 969 | no_recursion=yes ;;
|
---|
| 970 |
|
---|
| 971 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 972 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 973 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 974 | ac_prev=oldincludedir ;;
|
---|
| 975 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 976 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 977 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
[8063] | 978 | oldincludedir=$ac_optarg ;;
|
---|
[3365] | 979 |
|
---|
| 980 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 981 | ac_prev=prefix ;;
|
---|
| 982 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
[8063] | 983 | prefix=$ac_optarg ;;
|
---|
[3365] | 984 |
|
---|
| 985 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 986 | | --program-pre | --program-pr | --program-p)
|
---|
| 987 | ac_prev=program_prefix ;;
|
---|
| 988 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 989 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
[8063] | 990 | program_prefix=$ac_optarg ;;
|
---|
[3365] | 991 |
|
---|
| 992 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 993 | | --program-suf | --program-su | --program-s)
|
---|
| 994 | ac_prev=program_suffix ;;
|
---|
| 995 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 996 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
[8063] | 997 | program_suffix=$ac_optarg ;;
|
---|
[3365] | 998 |
|
---|
| 999 | -program-transform-name | --program-transform-name \
|
---|
| 1000 | | --program-transform-nam | --program-transform-na \
|
---|
| 1001 | | --program-transform-n | --program-transform- \
|
---|
| 1002 | | --program-transform | --program-transfor \
|
---|
| 1003 | | --program-transfo | --program-transf \
|
---|
| 1004 | | --program-trans | --program-tran \
|
---|
| 1005 | | --progr-tra | --program-tr | --program-t)
|
---|
| 1006 | ac_prev=program_transform_name ;;
|
---|
| 1007 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 1008 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 1009 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 1010 | | --program-transform=* | --program-transfor=* \
|
---|
| 1011 | | --program-transfo=* | --program-transf=* \
|
---|
| 1012 | | --program-trans=* | --program-tran=* \
|
---|
| 1013 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
[8063] | 1014 | program_transform_name=$ac_optarg ;;
|
---|
[3365] | 1015 |
|
---|
[23356] | 1016 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
| 1017 | ac_prev=pdfdir ;;
|
---|
| 1018 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
| 1019 | pdfdir=$ac_optarg ;;
|
---|
| 1020 |
|
---|
| 1021 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
| 1022 | ac_prev=psdir ;;
|
---|
| 1023 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
| 1024 | psdir=$ac_optarg ;;
|
---|
| 1025 |
|
---|
[3365] | 1026 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1027 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1028 | silent=yes ;;
|
---|
| 1029 |
|
---|
| 1030 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 1031 | ac_prev=sbindir ;;
|
---|
| 1032 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 1033 | | --sbi=* | --sb=*)
|
---|
[8063] | 1034 | sbindir=$ac_optarg ;;
|
---|
[3365] | 1035 |
|
---|
| 1036 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 1037 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 1038 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 1039 | | --sha | --sh)
|
---|
| 1040 | ac_prev=sharedstatedir ;;
|
---|
| 1041 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 1042 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 1043 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 1044 | | --sha=* | --sh=*)
|
---|
[8063] | 1045 | sharedstatedir=$ac_optarg ;;
|
---|
[3365] | 1046 |
|
---|
| 1047 | -site | --site | --sit)
|
---|
| 1048 | ac_prev=site ;;
|
---|
| 1049 | -site=* | --site=* | --sit=*)
|
---|
[8063] | 1050 | site=$ac_optarg ;;
|
---|
[3365] | 1051 |
|
---|
| 1052 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 1053 | ac_prev=srcdir ;;
|
---|
| 1054 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
[8063] | 1055 | srcdir=$ac_optarg ;;
|
---|
[3365] | 1056 |
|
---|
| 1057 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 1058 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 1059 | ac_prev=sysconfdir ;;
|
---|
| 1060 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 1061 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
[8063] | 1062 | sysconfdir=$ac_optarg ;;
|
---|
[3365] | 1063 |
|
---|
| 1064 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
[8063] | 1065 | ac_prev=target_alias ;;
|
---|
[3365] | 1066 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
[8063] | 1067 | target_alias=$ac_optarg ;;
|
---|
[3365] | 1068 |
|
---|
| 1069 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 1070 | verbose=yes ;;
|
---|
| 1071 |
|
---|
[8063] | 1072 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 1073 | ac_init_version=: ;;
|
---|
[3365] | 1074 |
|
---|
| 1075 | -with-* | --with-*)
|
---|
[23356] | 1076 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
[3365] | 1077 | # Reject names that are not valid shell variable names.
|
---|
[23356] | 1078 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[25170] | 1079 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
[23356] | 1080 | ac_useropt_orig=$ac_useropt
|
---|
| 1081 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 1082 | case $ac_user_opts in
|
---|
| 1083 | *"
|
---|
| 1084 | "with_$ac_useropt"
|
---|
| 1085 | "*) ;;
|
---|
| 1086 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
| 1087 | ac_unrecognized_sep=', ';;
|
---|
[22058] | 1088 | esac
|
---|
[23356] | 1089 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
[3365] | 1090 |
|
---|
| 1091 | -without-* | --without-*)
|
---|
[23356] | 1092 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
[3365] | 1093 | # Reject names that are not valid shell variable names.
|
---|
[23356] | 1094 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[25170] | 1095 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
[23356] | 1096 | ac_useropt_orig=$ac_useropt
|
---|
| 1097 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 1098 | case $ac_user_opts in
|
---|
| 1099 | *"
|
---|
| 1100 | "with_$ac_useropt"
|
---|
| 1101 | "*) ;;
|
---|
| 1102 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
| 1103 | ac_unrecognized_sep=', ';;
|
---|
| 1104 | esac
|
---|
| 1105 | eval with_$ac_useropt=no ;;
|
---|
[3365] | 1106 |
|
---|
| 1107 | --x)
|
---|
| 1108 | # Obsolete; use --with-x.
|
---|
| 1109 | with_x=yes ;;
|
---|
| 1110 |
|
---|
| 1111 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 1112 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 1113 | ac_prev=x_includes ;;
|
---|
| 1114 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 1115 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
[8063] | 1116 | x_includes=$ac_optarg ;;
|
---|
[3365] | 1117 |
|
---|
| 1118 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 1119 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 1120 | ac_prev=x_libraries ;;
|
---|
| 1121 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 1122 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
[8063] | 1123 | x_libraries=$ac_optarg ;;
|
---|
[3365] | 1124 |
|
---|
[25170] | 1125 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
| 1126 | Try \`$0 --help' for more information"
|
---|
[3365] | 1127 | ;;
|
---|
| 1128 |
|
---|
[8063] | 1129 | *=*)
|
---|
| 1130 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 1131 | # Reject names that are not valid shell variable names.
|
---|
[25170] | 1132 | case $ac_envvar in #(
|
---|
| 1133 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
| 1134 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
| 1135 | esac
|
---|
[23356] | 1136 | eval $ac_envvar=\$ac_optarg
|
---|
[8063] | 1137 | export $ac_envvar ;;
|
---|
| 1138 |
|
---|
[3365] | 1139 | *)
|
---|
[8063] | 1140 | # FIXME: should be removed in autoconf 3.0.
|
---|
[23356] | 1141 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
[10192] | 1142 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[23356] | 1143 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
[25170] | 1144 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
---|
[3365] | 1145 | ;;
|
---|
| 1146 |
|
---|
| 1147 | esac
|
---|
| 1148 | done
|
---|
| 1149 |
|
---|
| 1150 | if test -n "$ac_prev"; then
|
---|
[8063] | 1151 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
[25170] | 1152 | as_fn_error $? "missing argument to $ac_option"
|
---|
[3365] | 1153 | fi
|
---|
| 1154 |
|
---|
[23356] | 1155 | if test -n "$ac_unrecognized_opts"; then
|
---|
| 1156 | case $enable_option_checking in
|
---|
| 1157 | no) ;;
|
---|
[25170] | 1158 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
[23356] | 1159 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
[10192] | 1160 | esac
|
---|
[23356] | 1161 | fi
|
---|
[10192] | 1162 |
|
---|
[23356] | 1163 | # Check all directory arguments for consistency.
|
---|
| 1164 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
| 1165 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
| 1166 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
| 1167 | libdir localedir mandir
|
---|
[22058] | 1168 | do
|
---|
[23356] | 1169 | eval ac_val=\$$ac_var
|
---|
| 1170 | # Remove trailing slashes.
|
---|
[22058] | 1171 | case $ac_val in
|
---|
[23356] | 1172 | */ )
|
---|
| 1173 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
| 1174 | eval $ac_var=\$ac_val;;
|
---|
[22058] | 1175 | esac
|
---|
[23356] | 1176 | # Be sure to have absolute directory names.
|
---|
| 1177 | case $ac_val in
|
---|
| 1178 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
| 1179 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
| 1180 | esac
|
---|
[25170] | 1181 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
[22058] | 1182 | done
|
---|
| 1183 |
|
---|
[8063] | 1184 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 1185 | # used to hold the argument of --host etc.
|
---|
[10192] | 1186 | # FIXME: To remove some day.
|
---|
[8063] | 1187 | build=$build_alias
|
---|
| 1188 | host=$host_alias
|
---|
| 1189 | target=$target_alias
|
---|
[3365] | 1190 |
|
---|
[10192] | 1191 | # FIXME: To remove some day.
|
---|
[8063] | 1192 | if test "x$host_alias" != x; then
|
---|
| 1193 | if test "x$build_alias" = x; then
|
---|
| 1194 | cross_compiling=maybe
|
---|
| 1195 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 1196 | cross_compiling=yes
|
---|
| 1197 | fi
|
---|
| 1198 | fi
|
---|
[3365] | 1199 |
|
---|
[8063] | 1200 | ac_tool_prefix=
|
---|
| 1201 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
[3365] | 1202 |
|
---|
[8063] | 1203 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 1204 |
|
---|
[10192] | 1205 |
|
---|
[23356] | 1206 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
| 1207 | ac_ls_di=`ls -di .` &&
|
---|
| 1208 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
[25170] | 1209 | as_fn_error $? "working directory cannot be determined"
|
---|
[23356] | 1210 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
[25170] | 1211 | as_fn_error $? "pwd does not report name of working directory"
|
---|
[23356] | 1212 |
|
---|
| 1213 |
|
---|
[3365] | 1214 | # Find the source files, if location was not specified.
|
---|
| 1215 | if test -z "$srcdir"; then
|
---|
| 1216 | ac_srcdir_defaulted=yes
|
---|
[23356] | 1217 | # Try the directory containing this script, then the parent directory.
|
---|
| 1218 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
| 1219 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 1220 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
| 1221 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
| 1222 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 1223 | $as_echo X"$as_myself" |
|
---|
| 1224 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 1225 | s//\1/
|
---|
| 1226 | q
|
---|
| 1227 | }
|
---|
| 1228 | /^X\(\/\/\)[^/].*/{
|
---|
| 1229 | s//\1/
|
---|
| 1230 | q
|
---|
| 1231 | }
|
---|
| 1232 | /^X\(\/\/\)$/{
|
---|
| 1233 | s//\1/
|
---|
| 1234 | q
|
---|
| 1235 | }
|
---|
| 1236 | /^X\(\/\).*/{
|
---|
| 1237 | s//\1/
|
---|
| 1238 | q
|
---|
| 1239 | }
|
---|
| 1240 | s/.*/./; q'`
|
---|
[3365] | 1241 | srcdir=$ac_confdir
|
---|
[23356] | 1242 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
[3365] | 1243 | srcdir=..
|
---|
| 1244 | fi
|
---|
| 1245 | else
|
---|
| 1246 | ac_srcdir_defaulted=no
|
---|
| 1247 | fi
|
---|
[23356] | 1248 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
| 1249 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
[25170] | 1250 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
[20844] | 1251 | fi
|
---|
[23356] | 1252 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
| 1253 | ac_abs_confdir=`(
|
---|
[25170] | 1254 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
[23356] | 1255 | pwd)`
|
---|
| 1256 | # When building in place, set srcdir=.
|
---|
| 1257 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
| 1258 | srcdir=.
|
---|
| 1259 | fi
|
---|
| 1260 | # Remove unnecessary trailing slashes from srcdir.
|
---|
| 1261 | # Double slashes in file names in object file debugging info
|
---|
| 1262 | # mess up M-x gdb in Emacs.
|
---|
| 1263 | case $srcdir in
|
---|
| 1264 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
| 1265 | esac
|
---|
| 1266 | for ac_var in $ac_precious_vars; do
|
---|
| 1267 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1268 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
| 1269 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1270 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
| 1271 | done
|
---|
[3365] | 1272 |
|
---|
[8063] | 1273 | #
|
---|
| 1274 | # Report the --help message.
|
---|
| 1275 | #
|
---|
| 1276 | if test "$ac_init_help" = "long"; then
|
---|
| 1277 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 1278 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
[10192] | 1279 | cat <<_ACEOF
|
---|
[8063] | 1280 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 1281 |
|
---|
| 1282 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 1283 |
|
---|
| 1284 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 1285 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 1286 |
|
---|
| 1287 | Defaults for the options are specified in brackets.
|
---|
| 1288 |
|
---|
| 1289 | Configuration:
|
---|
| 1290 | -h, --help display this help and exit
|
---|
| 1291 | --help=short display options specific to this package
|
---|
| 1292 | --help=recursive display the short help of all the included packages
|
---|
| 1293 | -V, --version display version information and exit
|
---|
[25170] | 1294 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
[8063] | 1295 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 1296 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 1297 | -n, --no-create do not create output files
|
---|
| 1298 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 1299 |
|
---|
| 1300 | Installation directories:
|
---|
| 1301 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
[23356] | 1302 | [$ac_default_prefix]
|
---|
[8063] | 1303 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
[23356] | 1304 | [PREFIX]
|
---|
[8063] | 1305 |
|
---|
| 1306 | By default, \`make install' will install all the files in
|
---|
| 1307 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 1308 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 1309 | for instance \`--prefix=\$HOME'.
|
---|
| 1310 |
|
---|
| 1311 | For better control, use the options below.
|
---|
| 1312 |
|
---|
| 1313 | Fine tuning of the installation directories:
|
---|
[23356] | 1314 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 1315 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 1316 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 1317 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 1318 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 1319 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 1320 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 1321 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 1322 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
| 1323 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
| 1324 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
| 1325 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
| 1326 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
| 1327 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
| 1328 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
| 1329 | --htmldir=DIR html documentation [DOCDIR]
|
---|
| 1330 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
| 1331 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
| 1332 | --psdir=DIR ps documentation [DOCDIR]
|
---|
[10192] | 1333 | _ACEOF
|
---|
[8063] | 1334 |
|
---|
[10192] | 1335 | cat <<\_ACEOF
|
---|
[8063] | 1336 |
|
---|
| 1337 | Program names:
|
---|
| 1338 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
| 1339 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
| 1340 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
[15560] | 1341 |
|
---|
| 1342 | System types:
|
---|
| 1343 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 1344 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 1345 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
[10192] | 1346 | _ACEOF
|
---|
[8063] | 1347 | fi
|
---|
| 1348 |
|
---|
| 1349 | if test -n "$ac_init_help"; then
|
---|
| 1350 |
|
---|
[10192] | 1351 | cat <<\_ACEOF
|
---|
[8063] | 1352 |
|
---|
| 1353 | Optional Features:
|
---|
[23356] | 1354 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
[8063] | 1355 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 1356 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
[23356] | 1357 | --disable-java Disable Java compilation
|
---|
[22058] | 1358 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
[8063] | 1359 | --enable-override-longlong
|
---|
| 1360 | overide use of long long with GCC
|
---|
| 1361 |
|
---|
| 1362 | Optional Packages:
|
---|
| 1363 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 1364 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
[13698] | 1365 | --with-unac=dir Use local unac library and headers
|
---|
[8063] | 1366 | --with-dmalloc use dmalloc, as in
|
---|
| 1367 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 1368 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 1369 | --with-gnu-readline compile with GNU readline support
|
---|
| 1370 |
|
---|
| 1371 | Some influential environment variables:
|
---|
| 1372 | CXX C++ compiler command
|
---|
| 1373 | CXXFLAGS C++ compiler flags
|
---|
| 1374 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 1375 | nonstandard directory <lib dir>
|
---|
[23356] | 1376 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
[25170] | 1377 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
[23356] | 1378 | you have headers in a nonstandard directory <include dir>
|
---|
[25170] | 1379 | YACC The `Yet Another Compiler Compiler' implementation to use.
|
---|
| 1380 | Defaults to the first program found out of: `bison -y', `byacc',
|
---|
| 1381 | `yacc'.
|
---|
[23356] | 1382 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
| 1383 | This script will default YFLAGS to the empty string to avoid a
|
---|
| 1384 | default value of `-d' given by some make applications.
|
---|
[8063] | 1385 | CC C compiler command
|
---|
| 1386 | CFLAGS C compiler flags
|
---|
| 1387 | CPP C preprocessor
|
---|
| 1388 |
|
---|
| 1389 | Use these variables to override the choices made by `configure' or to help
|
---|
| 1390 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 1391 |
|
---|
[25170] | 1392 | Report bugs to the package provider.
|
---|
[10192] | 1393 | _ACEOF
|
---|
[23356] | 1394 | ac_status=$?
|
---|
[8063] | 1395 | fi
|
---|
| 1396 |
|
---|
| 1397 | if test "$ac_init_help" = "recursive"; then
|
---|
| 1398 | # If there are subdirs, report their specific --help.
|
---|
[10192] | 1399 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
[23356] | 1400 | test -d "$ac_dir" ||
|
---|
| 1401 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
| 1402 | continue
|
---|
[10192] | 1403 | ac_builddir=.
|
---|
[8063] | 1404 |
|
---|
[23356] | 1405 | case "$ac_dir" in
|
---|
| 1406 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1407 | *)
|
---|
| 1408 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
| 1409 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 1410 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
| 1411 | case $ac_top_builddir_sub in
|
---|
| 1412 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1413 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 1414 | esac ;;
|
---|
| 1415 | esac
|
---|
| 1416 | ac_abs_top_builddir=$ac_pwd
|
---|
| 1417 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 1418 | # for backward compatibility:
|
---|
| 1419 | ac_top_builddir=$ac_top_build_prefix
|
---|
[8063] | 1420 |
|
---|
[10192] | 1421 | case $srcdir in
|
---|
[23356] | 1422 | .) # We are building in place.
|
---|
[10192] | 1423 | ac_srcdir=.
|
---|
[23356] | 1424 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 1425 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 1426 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[10192] | 1427 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[23356] | 1428 | ac_top_srcdir=$srcdir
|
---|
| 1429 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 1430 | *) # Relative name.
|
---|
| 1431 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 1432 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 1433 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[10192] | 1434 | esac
|
---|
[23356] | 1435 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[10192] | 1436 |
|
---|
[23356] | 1437 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
| 1438 | # Check for guested configure.
|
---|
| 1439 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
| 1440 | echo &&
|
---|
| 1441 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
| 1442 | elif test -f "$ac_srcdir/configure"; then
|
---|
| 1443 | echo &&
|
---|
| 1444 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
[8063] | 1445 | else
|
---|
[23356] | 1446 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
| 1447 | fi || ac_status=$?
|
---|
| 1448 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
[8063] | 1449 | done
|
---|
| 1450 | fi
|
---|
| 1451 |
|
---|
[23356] | 1452 | test -n "$ac_init_help" && exit $ac_status
|
---|
[8063] | 1453 | if $ac_init_version; then
|
---|
[10192] | 1454 | cat <<\_ACEOF
|
---|
[23356] | 1455 | configure
|
---|
[30867] | 1456 | generated by GNU Autoconf 2.69
|
---|
[8063] | 1457 |
|
---|
[30867] | 1458 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
[8063] | 1459 | This configure script is free software; the Free Software Foundation
|
---|
| 1460 | gives unlimited permission to copy, distribute and modify it.
|
---|
[10192] | 1461 | _ACEOF
|
---|
[23356] | 1462 | exit
|
---|
[8063] | 1463 | fi
|
---|
[25170] | 1464 |
|
---|
| 1465 | ## ------------------------ ##
|
---|
| 1466 | ## Autoconf initialization. ##
|
---|
| 1467 | ## ------------------------ ##
|
---|
| 1468 |
|
---|
| 1469 | # ac_fn_cxx_try_compile LINENO
|
---|
| 1470 | # ----------------------------
|
---|
| 1471 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1472 | ac_fn_cxx_try_compile ()
|
---|
| 1473 | {
|
---|
| 1474 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1475 | rm -f conftest.$ac_objext
|
---|
| 1476 | if { { ac_try="$ac_compile"
|
---|
| 1477 | case "(($ac_try" in
|
---|
| 1478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1479 | *) ac_try_echo=$ac_try;;
|
---|
| 1480 | esac
|
---|
| 1481 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1482 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1483 | (eval "$ac_compile") 2>conftest.err
|
---|
| 1484 | ac_status=$?
|
---|
| 1485 | if test -s conftest.err; then
|
---|
| 1486 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1487 | cat conftest.er1 >&5
|
---|
| 1488 | mv -f conftest.er1 conftest.err
|
---|
| 1489 | fi
|
---|
| 1490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1491 | test $ac_status = 0; } && {
|
---|
| 1492 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 1493 | test ! -s conftest.err
|
---|
| 1494 | } && test -s conftest.$ac_objext; then :
|
---|
| 1495 | ac_retval=0
|
---|
| 1496 | else
|
---|
| 1497 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1498 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1499 |
|
---|
| 1500 | ac_retval=1
|
---|
| 1501 | fi
|
---|
| 1502 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1503 | as_fn_set_status $ac_retval
|
---|
| 1504 |
|
---|
| 1505 | } # ac_fn_cxx_try_compile
|
---|
| 1506 |
|
---|
| 1507 | # ac_fn_c_try_compile LINENO
|
---|
| 1508 | # --------------------------
|
---|
| 1509 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1510 | ac_fn_c_try_compile ()
|
---|
| 1511 | {
|
---|
| 1512 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1513 | rm -f conftest.$ac_objext
|
---|
| 1514 | if { { ac_try="$ac_compile"
|
---|
| 1515 | case "(($ac_try" in
|
---|
| 1516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1517 | *) ac_try_echo=$ac_try;;
|
---|
| 1518 | esac
|
---|
| 1519 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1520 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1521 | (eval "$ac_compile") 2>conftest.err
|
---|
| 1522 | ac_status=$?
|
---|
| 1523 | if test -s conftest.err; then
|
---|
| 1524 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1525 | cat conftest.er1 >&5
|
---|
| 1526 | mv -f conftest.er1 conftest.err
|
---|
| 1527 | fi
|
---|
| 1528 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1529 | test $ac_status = 0; } && {
|
---|
| 1530 | test -z "$ac_c_werror_flag" ||
|
---|
| 1531 | test ! -s conftest.err
|
---|
| 1532 | } && test -s conftest.$ac_objext; then :
|
---|
| 1533 | ac_retval=0
|
---|
| 1534 | else
|
---|
| 1535 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1536 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1537 |
|
---|
| 1538 | ac_retval=1
|
---|
| 1539 | fi
|
---|
| 1540 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1541 | as_fn_set_status $ac_retval
|
---|
| 1542 |
|
---|
| 1543 | } # ac_fn_c_try_compile
|
---|
| 1544 |
|
---|
| 1545 | # ac_fn_c_try_cpp LINENO
|
---|
| 1546 | # ----------------------
|
---|
| 1547 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1548 | ac_fn_c_try_cpp ()
|
---|
| 1549 | {
|
---|
| 1550 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1551 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 1552 | case "(($ac_try" in
|
---|
| 1553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1554 | *) ac_try_echo=$ac_try;;
|
---|
| 1555 | esac
|
---|
| 1556 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1557 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1558 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
| 1559 | ac_status=$?
|
---|
| 1560 | if test -s conftest.err; then
|
---|
| 1561 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1562 | cat conftest.er1 >&5
|
---|
| 1563 | mv -f conftest.er1 conftest.err
|
---|
| 1564 | fi
|
---|
| 1565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1566 | test $ac_status = 0; } > conftest.i && {
|
---|
| 1567 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 1568 | test ! -s conftest.err
|
---|
| 1569 | }; then :
|
---|
| 1570 | ac_retval=0
|
---|
| 1571 | else
|
---|
| 1572 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1573 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1574 |
|
---|
| 1575 | ac_retval=1
|
---|
| 1576 | fi
|
---|
| 1577 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1578 | as_fn_set_status $ac_retval
|
---|
| 1579 |
|
---|
| 1580 | } # ac_fn_c_try_cpp
|
---|
| 1581 |
|
---|
| 1582 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
| 1583 | # -------------------------------------------------------
|
---|
| 1584 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
| 1585 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
| 1586 | # accordingly.
|
---|
| 1587 | ac_fn_c_check_header_mongrel ()
|
---|
| 1588 | {
|
---|
| 1589 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1590 | if eval \${$3+:} false; then :
|
---|
| 1591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1592 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1593 | if eval \${$3+:} false; then :
|
---|
| 1594 | $as_echo_n "(cached) " >&6
|
---|
| 1595 | fi
|
---|
| 1596 | eval ac_res=\$$3
|
---|
| 1597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1598 | $as_echo "$ac_res" >&6; }
|
---|
| 1599 | else
|
---|
| 1600 | # Is the header compilable?
|
---|
| 1601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
| 1602 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
| 1603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1604 | /* end confdefs.h. */
|
---|
| 1605 | $4
|
---|
| 1606 | #include <$2>
|
---|
| 1607 | _ACEOF
|
---|
| 1608 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1609 | ac_header_compiler=yes
|
---|
| 1610 | else
|
---|
| 1611 | ac_header_compiler=no
|
---|
| 1612 | fi
|
---|
| 1613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
| 1615 | $as_echo "$ac_header_compiler" >&6; }
|
---|
| 1616 |
|
---|
| 1617 | # Is the header present?
|
---|
| 1618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
| 1619 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
| 1620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1621 | /* end confdefs.h. */
|
---|
| 1622 | #include <$2>
|
---|
| 1623 | _ACEOF
|
---|
| 1624 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 1625 | ac_header_preproc=yes
|
---|
| 1626 | else
|
---|
| 1627 | ac_header_preproc=no
|
---|
| 1628 | fi
|
---|
| 1629 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
| 1630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
| 1631 | $as_echo "$ac_header_preproc" >&6; }
|
---|
| 1632 |
|
---|
| 1633 | # So? What about this header?
|
---|
| 1634 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
| 1635 | yes:no: )
|
---|
| 1636 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 1637 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 1638 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
| 1639 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
| 1640 | ;;
|
---|
| 1641 | no:yes:* )
|
---|
| 1642 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
| 1643 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
| 1644 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
| 1645 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
| 1646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
| 1647 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
| 1648 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 1649 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 1650 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
| 1651 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
| 1652 | ;;
|
---|
| 1653 | esac
|
---|
| 1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1655 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1656 | if eval \${$3+:} false; then :
|
---|
| 1657 | $as_echo_n "(cached) " >&6
|
---|
| 1658 | else
|
---|
| 1659 | eval "$3=\$ac_header_compiler"
|
---|
| 1660 | fi
|
---|
| 1661 | eval ac_res=\$$3
|
---|
| 1662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1663 | $as_echo "$ac_res" >&6; }
|
---|
| 1664 | fi
|
---|
| 1665 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1666 |
|
---|
| 1667 | } # ac_fn_c_check_header_mongrel
|
---|
| 1668 |
|
---|
| 1669 | # ac_fn_c_try_run LINENO
|
---|
| 1670 | # ----------------------
|
---|
| 1671 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
| 1672 | # that executables *can* be run.
|
---|
| 1673 | ac_fn_c_try_run ()
|
---|
| 1674 | {
|
---|
| 1675 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1676 | if { { ac_try="$ac_link"
|
---|
| 1677 | case "(($ac_try" in
|
---|
| 1678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1679 | *) ac_try_echo=$ac_try;;
|
---|
| 1680 | esac
|
---|
| 1681 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1682 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1683 | (eval "$ac_link") 2>&5
|
---|
| 1684 | ac_status=$?
|
---|
| 1685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1686 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
| 1687 | { { case "(($ac_try" in
|
---|
| 1688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1689 | *) ac_try_echo=$ac_try;;
|
---|
| 1690 | esac
|
---|
| 1691 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1692 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1693 | (eval "$ac_try") 2>&5
|
---|
| 1694 | ac_status=$?
|
---|
| 1695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1696 | test $ac_status = 0; }; }; then :
|
---|
| 1697 | ac_retval=0
|
---|
| 1698 | else
|
---|
| 1699 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 1700 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1701 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1702 |
|
---|
| 1703 | ac_retval=$ac_status
|
---|
| 1704 | fi
|
---|
| 1705 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
| 1706 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1707 | as_fn_set_status $ac_retval
|
---|
| 1708 |
|
---|
| 1709 | } # ac_fn_c_try_run
|
---|
| 1710 |
|
---|
| 1711 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
| 1712 | # -------------------------------------------------------
|
---|
| 1713 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
| 1714 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
| 1715 | ac_fn_c_check_header_compile ()
|
---|
| 1716 | {
|
---|
| 1717 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1719 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1720 | if eval \${$3+:} false; then :
|
---|
| 1721 | $as_echo_n "(cached) " >&6
|
---|
| 1722 | else
|
---|
| 1723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1724 | /* end confdefs.h. */
|
---|
| 1725 | $4
|
---|
| 1726 | #include <$2>
|
---|
| 1727 | _ACEOF
|
---|
| 1728 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1729 | eval "$3=yes"
|
---|
| 1730 | else
|
---|
| 1731 | eval "$3=no"
|
---|
| 1732 | fi
|
---|
| 1733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1734 | fi
|
---|
| 1735 | eval ac_res=\$$3
|
---|
| 1736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1737 | $as_echo "$ac_res" >&6; }
|
---|
| 1738 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1739 |
|
---|
| 1740 | } # ac_fn_c_check_header_compile
|
---|
| 1741 |
|
---|
| 1742 | # ac_fn_c_try_link LINENO
|
---|
| 1743 | # -----------------------
|
---|
| 1744 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1745 | ac_fn_c_try_link ()
|
---|
| 1746 | {
|
---|
| 1747 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1748 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 1749 | if { { ac_try="$ac_link"
|
---|
| 1750 | case "(($ac_try" in
|
---|
| 1751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1752 | *) ac_try_echo=$ac_try;;
|
---|
| 1753 | esac
|
---|
| 1754 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1755 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1756 | (eval "$ac_link") 2>conftest.err
|
---|
| 1757 | ac_status=$?
|
---|
| 1758 | if test -s conftest.err; then
|
---|
| 1759 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1760 | cat conftest.er1 >&5
|
---|
| 1761 | mv -f conftest.er1 conftest.err
|
---|
| 1762 | fi
|
---|
| 1763 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1764 | test $ac_status = 0; } && {
|
---|
| 1765 | test -z "$ac_c_werror_flag" ||
|
---|
| 1766 | test ! -s conftest.err
|
---|
| 1767 | } && test -s conftest$ac_exeext && {
|
---|
| 1768 | test "$cross_compiling" = yes ||
|
---|
[30867] | 1769 | test -x conftest$ac_exeext
|
---|
[25170] | 1770 | }; then :
|
---|
| 1771 | ac_retval=0
|
---|
| 1772 | else
|
---|
| 1773 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1774 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1775 |
|
---|
| 1776 | ac_retval=1
|
---|
| 1777 | fi
|
---|
| 1778 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
| 1779 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
| 1780 | # interfere with the next link command; also delete a directory that is
|
---|
| 1781 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
| 1782 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
| 1783 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1784 | as_fn_set_status $ac_retval
|
---|
| 1785 |
|
---|
| 1786 | } # ac_fn_c_try_link
|
---|
| 1787 |
|
---|
| 1788 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
| 1789 | # -------------------------------------------
|
---|
| 1790 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
| 1791 | # variable VAR accordingly.
|
---|
| 1792 | ac_fn_c_check_type ()
|
---|
| 1793 | {
|
---|
| 1794 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1796 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1797 | if eval \${$3+:} false; then :
|
---|
| 1798 | $as_echo_n "(cached) " >&6
|
---|
| 1799 | else
|
---|
| 1800 | eval "$3=no"
|
---|
| 1801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1802 | /* end confdefs.h. */
|
---|
| 1803 | $4
|
---|
| 1804 | int
|
---|
| 1805 | main ()
|
---|
| 1806 | {
|
---|
| 1807 | if (sizeof ($2))
|
---|
| 1808 | return 0;
|
---|
| 1809 | ;
|
---|
| 1810 | return 0;
|
---|
| 1811 | }
|
---|
| 1812 | _ACEOF
|
---|
| 1813 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1815 | /* end confdefs.h. */
|
---|
| 1816 | $4
|
---|
| 1817 | int
|
---|
| 1818 | main ()
|
---|
| 1819 | {
|
---|
| 1820 | if (sizeof (($2)))
|
---|
| 1821 | return 0;
|
---|
| 1822 | ;
|
---|
| 1823 | return 0;
|
---|
| 1824 | }
|
---|
| 1825 | _ACEOF
|
---|
| 1826 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1827 |
|
---|
| 1828 | else
|
---|
| 1829 | eval "$3=yes"
|
---|
| 1830 | fi
|
---|
| 1831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1832 | fi
|
---|
| 1833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1834 | fi
|
---|
| 1835 | eval ac_res=\$$3
|
---|
| 1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1837 | $as_echo "$ac_res" >&6; }
|
---|
| 1838 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1839 |
|
---|
| 1840 | } # ac_fn_c_check_type
|
---|
| 1841 |
|
---|
| 1842 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
| 1843 | # ----------------------------------
|
---|
| 1844 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
| 1845 | ac_fn_c_check_func ()
|
---|
| 1846 | {
|
---|
| 1847 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1849 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1850 | if eval \${$3+:} false; then :
|
---|
| 1851 | $as_echo_n "(cached) " >&6
|
---|
| 1852 | else
|
---|
| 1853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1854 | /* end confdefs.h. */
|
---|
| 1855 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
| 1856 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 1857 | #define $2 innocuous_$2
|
---|
| 1858 |
|
---|
| 1859 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 1860 | which can conflict with char $2 (); below.
|
---|
| 1861 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 1862 | <limits.h> exists even on freestanding compilers. */
|
---|
| 1863 |
|
---|
| 1864 | #ifdef __STDC__
|
---|
| 1865 | # include <limits.h>
|
---|
| 1866 | #else
|
---|
| 1867 | # include <assert.h>
|
---|
| 1868 | #endif
|
---|
| 1869 |
|
---|
| 1870 | #undef $2
|
---|
| 1871 |
|
---|
| 1872 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 1873 | Use char because int might match the return type of a GCC
|
---|
| 1874 | builtin and then its argument prototype would still apply. */
|
---|
| 1875 | #ifdef __cplusplus
|
---|
| 1876 | extern "C"
|
---|
| 1877 | #endif
|
---|
| 1878 | char $2 ();
|
---|
| 1879 | /* The GNU C library defines this for functions which it implements
|
---|
| 1880 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 1881 | something starting with __ and the normal name is an alias. */
|
---|
| 1882 | #if defined __stub_$2 || defined __stub___$2
|
---|
| 1883 | choke me
|
---|
| 1884 | #endif
|
---|
| 1885 |
|
---|
| 1886 | int
|
---|
| 1887 | main ()
|
---|
| 1888 | {
|
---|
| 1889 | return $2 ();
|
---|
| 1890 | ;
|
---|
| 1891 | return 0;
|
---|
| 1892 | }
|
---|
| 1893 | _ACEOF
|
---|
| 1894 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 1895 | eval "$3=yes"
|
---|
| 1896 | else
|
---|
| 1897 | eval "$3=no"
|
---|
| 1898 | fi
|
---|
| 1899 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 1900 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 1901 | fi
|
---|
| 1902 | eval ac_res=\$$3
|
---|
| 1903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1904 | $as_echo "$ac_res" >&6; }
|
---|
| 1905 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 1906 |
|
---|
| 1907 | } # ac_fn_c_check_func
|
---|
| 1908 |
|
---|
| 1909 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
|
---|
| 1910 | # --------------------------------------------
|
---|
| 1911 | # Tries to find the compile-time value of EXPR in a program that includes
|
---|
| 1912 | # INCLUDES, setting VAR accordingly. Returns whether the value could be
|
---|
| 1913 | # computed
|
---|
| 1914 | ac_fn_c_compute_int ()
|
---|
| 1915 | {
|
---|
| 1916 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1917 | if test "$cross_compiling" = yes; then
|
---|
| 1918 | # Depending upon the size, compute the lo and hi bounds.
|
---|
| 1919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1920 | /* end confdefs.h. */
|
---|
| 1921 | $4
|
---|
| 1922 | int
|
---|
| 1923 | main ()
|
---|
| 1924 | {
|
---|
| 1925 | static int test_array [1 - 2 * !(($2) >= 0)];
|
---|
[30867] | 1926 | test_array [0] = 0;
|
---|
| 1927 | return test_array [0];
|
---|
[25170] | 1928 |
|
---|
| 1929 | ;
|
---|
| 1930 | return 0;
|
---|
| 1931 | }
|
---|
| 1932 | _ACEOF
|
---|
| 1933 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1934 | ac_lo=0 ac_mid=0
|
---|
| 1935 | while :; do
|
---|
| 1936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1937 | /* end confdefs.h. */
|
---|
| 1938 | $4
|
---|
| 1939 | int
|
---|
| 1940 | main ()
|
---|
| 1941 | {
|
---|
| 1942 | static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
---|
[30867] | 1943 | test_array [0] = 0;
|
---|
| 1944 | return test_array [0];
|
---|
[25170] | 1945 |
|
---|
| 1946 | ;
|
---|
| 1947 | return 0;
|
---|
| 1948 | }
|
---|
| 1949 | _ACEOF
|
---|
| 1950 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1951 | ac_hi=$ac_mid; break
|
---|
| 1952 | else
|
---|
| 1953 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val
|
---|
| 1954 | if test $ac_lo -le $ac_mid; then
|
---|
| 1955 | ac_lo= ac_hi=
|
---|
| 1956 | break
|
---|
| 1957 | fi
|
---|
| 1958 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
|
---|
| 1959 | fi
|
---|
| 1960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1961 | done
|
---|
| 1962 | else
|
---|
| 1963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1964 | /* end confdefs.h. */
|
---|
| 1965 | $4
|
---|
| 1966 | int
|
---|
| 1967 | main ()
|
---|
| 1968 | {
|
---|
| 1969 | static int test_array [1 - 2 * !(($2) < 0)];
|
---|
[30867] | 1970 | test_array [0] = 0;
|
---|
| 1971 | return test_array [0];
|
---|
[25170] | 1972 |
|
---|
| 1973 | ;
|
---|
| 1974 | return 0;
|
---|
| 1975 | }
|
---|
| 1976 | _ACEOF
|
---|
| 1977 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1978 | ac_hi=-1 ac_mid=-1
|
---|
| 1979 | while :; do
|
---|
| 1980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1981 | /* end confdefs.h. */
|
---|
| 1982 | $4
|
---|
| 1983 | int
|
---|
| 1984 | main ()
|
---|
| 1985 | {
|
---|
| 1986 | static int test_array [1 - 2 * !(($2) >= $ac_mid)];
|
---|
[30867] | 1987 | test_array [0] = 0;
|
---|
| 1988 | return test_array [0];
|
---|
[25170] | 1989 |
|
---|
| 1990 | ;
|
---|
| 1991 | return 0;
|
---|
| 1992 | }
|
---|
| 1993 | _ACEOF
|
---|
| 1994 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1995 | ac_lo=$ac_mid; break
|
---|
| 1996 | else
|
---|
| 1997 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
|
---|
| 1998 | if test $ac_mid -le $ac_hi; then
|
---|
| 1999 | ac_lo= ac_hi=
|
---|
| 2000 | break
|
---|
| 2001 | fi
|
---|
| 2002 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
|
---|
| 2003 | fi
|
---|
| 2004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2005 | done
|
---|
| 2006 | else
|
---|
| 2007 | ac_lo= ac_hi=
|
---|
| 2008 | fi
|
---|
| 2009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2010 | fi
|
---|
| 2011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2012 | # Binary search between lo and hi bounds.
|
---|
| 2013 | while test "x$ac_lo" != "x$ac_hi"; do
|
---|
| 2014 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
|
---|
| 2015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 2016 | /* end confdefs.h. */
|
---|
| 2017 | $4
|
---|
| 2018 | int
|
---|
| 2019 | main ()
|
---|
| 2020 | {
|
---|
| 2021 | static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
---|
[30867] | 2022 | test_array [0] = 0;
|
---|
| 2023 | return test_array [0];
|
---|
[25170] | 2024 |
|
---|
| 2025 | ;
|
---|
| 2026 | return 0;
|
---|
| 2027 | }
|
---|
| 2028 | _ACEOF
|
---|
| 2029 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 2030 | ac_hi=$ac_mid
|
---|
| 2031 | else
|
---|
| 2032 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
|
---|
| 2033 | fi
|
---|
| 2034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2035 | done
|
---|
| 2036 | case $ac_lo in #((
|
---|
| 2037 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
|
---|
| 2038 | '') ac_retval=1 ;;
|
---|
| 2039 | esac
|
---|
| 2040 | else
|
---|
| 2041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 2042 | /* end confdefs.h. */
|
---|
| 2043 | $4
|
---|
| 2044 | static long int longval () { return $2; }
|
---|
| 2045 | static unsigned long int ulongval () { return $2; }
|
---|
| 2046 | #include <stdio.h>
|
---|
| 2047 | #include <stdlib.h>
|
---|
| 2048 | int
|
---|
| 2049 | main ()
|
---|
| 2050 | {
|
---|
| 2051 |
|
---|
| 2052 | FILE *f = fopen ("conftest.val", "w");
|
---|
| 2053 | if (! f)
|
---|
| 2054 | return 1;
|
---|
| 2055 | if (($2) < 0)
|
---|
| 2056 | {
|
---|
| 2057 | long int i = longval ();
|
---|
| 2058 | if (i != ($2))
|
---|
| 2059 | return 1;
|
---|
| 2060 | fprintf (f, "%ld", i);
|
---|
| 2061 | }
|
---|
| 2062 | else
|
---|
| 2063 | {
|
---|
| 2064 | unsigned long int i = ulongval ();
|
---|
| 2065 | if (i != ($2))
|
---|
| 2066 | return 1;
|
---|
| 2067 | fprintf (f, "%lu", i);
|
---|
| 2068 | }
|
---|
| 2069 | /* Do not output a trailing newline, as this causes \r\n confusion
|
---|
| 2070 | on some platforms. */
|
---|
| 2071 | return ferror (f) || fclose (f) != 0;
|
---|
| 2072 |
|
---|
| 2073 | ;
|
---|
| 2074 | return 0;
|
---|
| 2075 | }
|
---|
| 2076 | _ACEOF
|
---|
| 2077 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
| 2078 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0
|
---|
| 2079 | else
|
---|
| 2080 | ac_retval=1
|
---|
| 2081 | fi
|
---|
| 2082 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 2083 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
| 2084 | rm -f conftest.val
|
---|
| 2085 |
|
---|
| 2086 | fi
|
---|
| 2087 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
| 2088 | as_fn_set_status $ac_retval
|
---|
| 2089 |
|
---|
| 2090 | } # ac_fn_c_compute_int
|
---|
[23356] | 2091 | cat >config.log <<_ACEOF
|
---|
[8063] | 2092 | This file contains any messages produced by compilers while
|
---|
| 2093 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 2094 |
|
---|
| 2095 | It was created by $as_me, which was
|
---|
[30867] | 2096 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
[8063] | 2097 |
|
---|
| 2098 | $ $0 $@
|
---|
| 2099 |
|
---|
[10192] | 2100 | _ACEOF
|
---|
[23356] | 2101 | exec 5>>config.log
|
---|
[8063] | 2102 | {
|
---|
| 2103 | cat <<_ASUNAME
|
---|
[10192] | 2104 | ## --------- ##
|
---|
| 2105 | ## Platform. ##
|
---|
| 2106 | ## --------- ##
|
---|
[8063] | 2107 |
|
---|
| 2108 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 2109 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 2110 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 2111 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 2112 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 2113 |
|
---|
| 2114 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 2115 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 2116 |
|
---|
| 2117 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 2118 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 2119 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
[23356] | 2120 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
[8063] | 2121 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 2122 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 2123 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 2124 |
|
---|
[10192] | 2125 | _ASUNAME
|
---|
[8063] | 2126 |
|
---|
[10192] | 2127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2128 | for as_dir in $PATH
|
---|
| 2129 | do
|
---|
| 2130 | IFS=$as_save_IFS
|
---|
| 2131 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 2132 | $as_echo "PATH: $as_dir"
|
---|
| 2133 | done
|
---|
[23356] | 2134 | IFS=$as_save_IFS
|
---|
[10192] | 2135 |
|
---|
[8063] | 2136 | } >&5
|
---|
| 2137 |
|
---|
[10192] | 2138 | cat >&5 <<_ACEOF
|
---|
[8063] | 2139 |
|
---|
| 2140 |
|
---|
[10192] | 2141 | ## ----------- ##
|
---|
| 2142 | ## Core tests. ##
|
---|
| 2143 | ## ----------- ##
|
---|
| 2144 |
|
---|
| 2145 | _ACEOF
|
---|
| 2146 |
|
---|
| 2147 |
|
---|
[8063] | 2148 | # Keep a trace of the command line.
|
---|
| 2149 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
[10192] | 2150 | # Strip out --silent because we don't want to record it for future runs.
|
---|
[8063] | 2151 | # Also quote any args containing shell meta-characters.
|
---|
[10192] | 2152 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
[8063] | 2153 | ac_configure_args=
|
---|
[10192] | 2154 | ac_configure_args0=
|
---|
| 2155 | ac_configure_args1=
|
---|
| 2156 | ac_must_keep_next=false
|
---|
| 2157 | for ac_pass in 1 2
|
---|
[8063] | 2158 | do
|
---|
[10192] | 2159 | for ac_arg
|
---|
| 2160 | do
|
---|
| 2161 | case $ac_arg in
|
---|
| 2162 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 2163 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 2164 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 2165 | continue ;;
|
---|
[23356] | 2166 | *\'*)
|
---|
| 2167 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[10192] | 2168 | esac
|
---|
| 2169 | case $ac_pass in
|
---|
[25170] | 2170 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
[10192] | 2171 | 2)
|
---|
[25170] | 2172 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
[10192] | 2173 | if test $ac_must_keep_next = true; then
|
---|
| 2174 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 2175 | else
|
---|
| 2176 | case $ac_arg in
|
---|
| 2177 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 2178 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 2179 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 2180 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 2181 | case "$ac_configure_args0 " in
|
---|
| 2182 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 2183 | esac
|
---|
| 2184 | ;;
|
---|
| 2185 | -* ) ac_must_keep_next=true ;;
|
---|
| 2186 | esac
|
---|
| 2187 | fi
|
---|
[25170] | 2188 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
[10192] | 2189 | ;;
|
---|
| 2190 | esac
|
---|
| 2191 | done
|
---|
[8063] | 2192 | done
|
---|
[25170] | 2193 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
| 2194 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
[8063] | 2195 |
|
---|
| 2196 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 2197 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 2198 | # would cause problems or look ugly.
|
---|
[23356] | 2199 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
| 2200 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
[8063] | 2201 | trap 'exit_status=$?
|
---|
| 2202 | # Save into config.log some information that might help in debugging.
|
---|
[10192] | 2203 | {
|
---|
| 2204 | echo
|
---|
| 2205 |
|
---|
[25170] | 2206 | $as_echo "## ---------------- ##
|
---|
[10192] | 2207 | ## Cache variables. ##
|
---|
[25170] | 2208 | ## ---------------- ##"
|
---|
[10192] | 2209 | echo
|
---|
| 2210 | # The following way of writing the cache mishandles newlines in values,
|
---|
[23356] | 2211 | (
|
---|
| 2212 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
| 2213 | eval ac_val=\$$ac_var
|
---|
| 2214 | case $ac_val in #(
|
---|
| 2215 | *${as_nl}*)
|
---|
| 2216 | case $ac_var in #(
|
---|
[25170] | 2217 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
[23356] | 2218 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
| 2219 | esac
|
---|
| 2220 | case $ac_var in #(
|
---|
| 2221 | _ | IFS | as_nl) ;; #(
|
---|
| 2222 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
[25170] | 2223 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
[23356] | 2224 | esac ;;
|
---|
| 2225 | esac
|
---|
| 2226 | done
|
---|
[8063] | 2227 | (set) 2>&1 |
|
---|
[23356] | 2228 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
| 2229 | *${as_nl}ac_space=\ *)
|
---|
[8063] | 2230 | sed -n \
|
---|
[23356] | 2231 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
| 2232 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
| 2233 | ;; #(
|
---|
[8063] | 2234 | *)
|
---|
[23356] | 2235 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
[8063] | 2236 | ;;
|
---|
[23356] | 2237 | esac |
|
---|
| 2238 | sort
|
---|
| 2239 | )
|
---|
[10192] | 2240 | echo
|
---|
| 2241 |
|
---|
[25170] | 2242 | $as_echo "## ----------------- ##
|
---|
[10192] | 2243 | ## Output variables. ##
|
---|
[25170] | 2244 | ## ----------------- ##"
|
---|
[10192] | 2245 | echo
|
---|
| 2246 | for ac_var in $ac_subst_vars
|
---|
| 2247 | do
|
---|
[23356] | 2248 | eval ac_val=\$$ac_var
|
---|
| 2249 | case $ac_val in
|
---|
| 2250 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 2251 | esac
|
---|
| 2252 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
[10192] | 2253 | done | sort
|
---|
| 2254 | echo
|
---|
| 2255 |
|
---|
| 2256 | if test -n "$ac_subst_files"; then
|
---|
[25170] | 2257 | $as_echo "## ------------------- ##
|
---|
[23356] | 2258 | ## File substitutions. ##
|
---|
[25170] | 2259 | ## ------------------- ##"
|
---|
[10192] | 2260 | echo
|
---|
| 2261 | for ac_var in $ac_subst_files
|
---|
| 2262 | do
|
---|
[23356] | 2263 | eval ac_val=\$$ac_var
|
---|
| 2264 | case $ac_val in
|
---|
| 2265 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 2266 | esac
|
---|
| 2267 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
[10192] | 2268 | done | sort
|
---|
| 2269 | echo
|
---|
| 2270 | fi
|
---|
| 2271 |
|
---|
| 2272 | if test -s confdefs.h; then
|
---|
[25170] | 2273 | $as_echo "## ----------- ##
|
---|
[10192] | 2274 | ## confdefs.h. ##
|
---|
[25170] | 2275 | ## ----------- ##"
|
---|
[10192] | 2276 | echo
|
---|
[23356] | 2277 | cat confdefs.h
|
---|
[10192] | 2278 | echo
|
---|
| 2279 | fi
|
---|
| 2280 | test "$ac_signal" != 0 &&
|
---|
[23356] | 2281 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
| 2282 | $as_echo "$as_me: exit $exit_status"
|
---|
[10192] | 2283 | } >&5
|
---|
[23356] | 2284 | rm -f core *.core core.conftest.* &&
|
---|
| 2285 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[8063] | 2286 | exit $exit_status
|
---|
[23356] | 2287 | ' 0
|
---|
[8063] | 2288 | for ac_signal in 1 2 13 15; do
|
---|
[25170] | 2289 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
[8063] | 2290 | done
|
---|
| 2291 | ac_signal=0
|
---|
| 2292 |
|
---|
| 2293 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
[23356] | 2294 | rm -f -r conftest* confdefs.h
|
---|
[8063] | 2295 |
|
---|
[25170] | 2296 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
| 2297 |
|
---|
[10192] | 2298 | # Predefined preprocessor variables.
|
---|
| 2299 |
|
---|
| 2300 | cat >>confdefs.h <<_ACEOF
|
---|
| 2301 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 2302 | _ACEOF
|
---|
| 2303 |
|
---|
| 2304 | cat >>confdefs.h <<_ACEOF
|
---|
| 2305 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 2306 | _ACEOF
|
---|
| 2307 |
|
---|
| 2308 | cat >>confdefs.h <<_ACEOF
|
---|
| 2309 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 2310 | _ACEOF
|
---|
| 2311 |
|
---|
| 2312 | cat >>confdefs.h <<_ACEOF
|
---|
| 2313 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 2314 | _ACEOF
|
---|
| 2315 |
|
---|
| 2316 | cat >>confdefs.h <<_ACEOF
|
---|
| 2317 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 2318 | _ACEOF
|
---|
| 2319 |
|
---|
[25170] | 2320 | cat >>confdefs.h <<_ACEOF
|
---|
| 2321 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
| 2322 | _ACEOF
|
---|
[10192] | 2323 |
|
---|
[25170] | 2324 |
|
---|
[8063] | 2325 | # Let the site file select an alternate cache file if it wants to.
|
---|
[23356] | 2326 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
| 2327 | ac_site_file1=NONE
|
---|
| 2328 | ac_site_file2=NONE
|
---|
| 2329 | if test -n "$CONFIG_SITE"; then
|
---|
[25170] | 2330 | # We do not want a PATH search for config.site.
|
---|
| 2331 | case $CONFIG_SITE in #((
|
---|
| 2332 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
| 2333 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
| 2334 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
| 2335 | esac
|
---|
[23356] | 2336 | elif test "x$prefix" != xNONE; then
|
---|
| 2337 | ac_site_file1=$prefix/share/config.site
|
---|
| 2338 | ac_site_file2=$prefix/etc/config.site
|
---|
| 2339 | else
|
---|
| 2340 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
| 2341 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
[3365] | 2342 | fi
|
---|
[23356] | 2343 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
| 2344 | do
|
---|
| 2345 | test "x$ac_site_file" = xNONE && continue
|
---|
[25170] | 2346 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
| 2347 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
[23356] | 2348 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
[10192] | 2349 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[25170] | 2350 | . "$ac_site_file" \
|
---|
| 2351 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2352 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 2353 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
| 2354 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
[3365] | 2355 | fi
|
---|
| 2356 | done
|
---|
| 2357 |
|
---|
| 2358 | if test -r "$cache_file"; then
|
---|
[25170] | 2359 | # Some versions of bash will fail to source /dev/null (special files
|
---|
| 2360 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
| 2361 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
| 2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
[23356] | 2363 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
[8063] | 2364 | case $cache_file in
|
---|
[23356] | 2365 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
| 2366 | *) . "./$cache_file";;
|
---|
[8063] | 2367 | esac
|
---|
| 2368 | fi
|
---|
[3365] | 2369 | else
|
---|
[25170] | 2370 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
[23356] | 2371 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
[8063] | 2372 | >$cache_file
|
---|
[3365] | 2373 | fi
|
---|
| 2374 |
|
---|
[8063] | 2375 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 2376 | # value.
|
---|
[10192] | 2377 | ac_cache_corrupted=false
|
---|
[23356] | 2378 | for ac_var in $ac_precious_vars; do
|
---|
[8063] | 2379 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 2380 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
[23356] | 2381 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
| 2382 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
[8063] | 2383 | case $ac_old_set,$ac_new_set in
|
---|
| 2384 | set,)
|
---|
[25170] | 2385 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
[23356] | 2386 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
[10192] | 2387 | ac_cache_corrupted=: ;;
|
---|
[8063] | 2388 | ,set)
|
---|
[25170] | 2389 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
[23356] | 2390 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
[10192] | 2391 | ac_cache_corrupted=: ;;
|
---|
[8063] | 2392 | ,);;
|
---|
| 2393 | *)
|
---|
| 2394 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
[23356] | 2395 | # differences in whitespace do not lead to failure.
|
---|
| 2396 | ac_old_val_w=`echo x $ac_old_val`
|
---|
| 2397 | ac_new_val_w=`echo x $ac_new_val`
|
---|
| 2398 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
[25170] | 2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
[23356] | 2400 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 2401 | ac_cache_corrupted=:
|
---|
| 2402 | else
|
---|
[25170] | 2403 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
[23356] | 2404 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
| 2405 | eval $ac_var=\$ac_old_val
|
---|
| 2406 | fi
|
---|
[25170] | 2407 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
[23356] | 2408 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
[25170] | 2409 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
[23356] | 2410 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
[8063] | 2411 | fi;;
|
---|
| 2412 | esac
|
---|
[10192] | 2413 | # Pass precious variables to config.status.
|
---|
| 2414 | if test "$ac_new_set" = set; then
|
---|
| 2415 | case $ac_new_val in
|
---|
[23356] | 2416 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[10192] | 2417 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 2418 | esac
|
---|
| 2419 | case " $ac_configure_args " in
|
---|
| 2420 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
[25170] | 2421 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
[10192] | 2422 | esac
|
---|
| 2423 | fi
|
---|
[8063] | 2424 | done
|
---|
[10192] | 2425 | if $ac_cache_corrupted; then
|
---|
[25170] | 2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 2427 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25170] | 2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
[23356] | 2429 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
[25170] | 2430 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
[8063] | 2431 | fi
|
---|
[25170] | 2432 | ## -------------------- ##
|
---|
| 2433 | ## Main body of script. ##
|
---|
| 2434 | ## -------------------- ##
|
---|
[8063] | 2435 |
|
---|
[22058] | 2436 | ac_ext=c
|
---|
| 2437 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2438 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2439 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2440 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[3365] | 2441 |
|
---|
| 2442 |
|
---|
[23356] | 2443 | ac_config_headers="$ac_config_headers config.h"
|
---|
[3365] | 2444 |
|
---|
[10192] | 2445 |
|
---|
[15560] | 2446 | ac_aux_dir=
|
---|
[23356] | 2447 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
[25148] | 2448 | if test -f "$ac_dir/install-sh"; then
|
---|
| 2449 | ac_aux_dir=$ac_dir
|
---|
| 2450 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2451 | break
|
---|
| 2452 | elif test -f "$ac_dir/install.sh"; then
|
---|
| 2453 | ac_aux_dir=$ac_dir
|
---|
| 2454 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2455 | break
|
---|
| 2456 | elif test -f "$ac_dir/shtool"; then
|
---|
| 2457 | ac_aux_dir=$ac_dir
|
---|
| 2458 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2459 | break
|
---|
| 2460 | fi
|
---|
[15560] | 2461 | done
|
---|
| 2462 | if test -z "$ac_aux_dir"; then
|
---|
[25170] | 2463 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
[15560] | 2464 | fi
|
---|
| 2465 |
|
---|
[23356] | 2466 | # These three variables are undocumented and unsupported,
|
---|
| 2467 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
| 2468 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
| 2469 | # whose full name contains unusual characters.
|
---|
| 2470 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
| 2471 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
| 2472 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
| 2473 |
|
---|
| 2474 |
|
---|
[15560] | 2475 | # Make sure we can run config.sub.
|
---|
[23356] | 2476 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
[25170] | 2477 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
[15560] | 2478 |
|
---|
[25170] | 2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
[23356] | 2480 | $as_echo_n "checking build system type... " >&6; }
|
---|
[25170] | 2481 | if ${ac_cv_build+:} false; then :
|
---|
[23356] | 2482 | $as_echo_n "(cached) " >&6
|
---|
[15560] | 2483 | else
|
---|
[23356] | 2484 | ac_build_alias=$build_alias
|
---|
| 2485 | test "x$ac_build_alias" = x &&
|
---|
| 2486 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
| 2487 | test "x$ac_build_alias" = x &&
|
---|
[25170] | 2488 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
[23356] | 2489 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
[25170] | 2490 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
[15560] | 2491 |
|
---|
| 2492 | fi
|
---|
[25170] | 2493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
[23356] | 2494 | $as_echo "$ac_cv_build" >&6; }
|
---|
| 2495 | case $ac_cv_build in
|
---|
| 2496 | *-*-*) ;;
|
---|
[25170] | 2497 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
---|
[23356] | 2498 | esac
|
---|
[15560] | 2499 | build=$ac_cv_build
|
---|
[23356] | 2500 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 2501 | set x $ac_cv_build
|
---|
| 2502 | shift
|
---|
| 2503 | build_cpu=$1
|
---|
| 2504 | build_vendor=$2
|
---|
| 2505 | shift; shift
|
---|
| 2506 | # Remember, the first character of IFS is used to create $*,
|
---|
| 2507 | # except with old shells:
|
---|
| 2508 | build_os=$*
|
---|
| 2509 | IFS=$ac_save_IFS
|
---|
| 2510 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
[15560] | 2511 |
|
---|
| 2512 |
|
---|
[25170] | 2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
[23356] | 2514 | $as_echo_n "checking host system type... " >&6; }
|
---|
[25170] | 2515 | if ${ac_cv_host+:} false; then :
|
---|
[23356] | 2516 | $as_echo_n "(cached) " >&6
|
---|
[15560] | 2517 | else
|
---|
[23356] | 2518 | if test "x$host_alias" = x; then
|
---|
| 2519 | ac_cv_host=$ac_cv_build
|
---|
| 2520 | else
|
---|
| 2521 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
[25170] | 2522 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
[23356] | 2523 | fi
|
---|
[15560] | 2524 |
|
---|
| 2525 | fi
|
---|
[25170] | 2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
[23356] | 2527 | $as_echo "$ac_cv_host" >&6; }
|
---|
| 2528 | case $ac_cv_host in
|
---|
| 2529 | *-*-*) ;;
|
---|
[25170] | 2530 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
---|
[23356] | 2531 | esac
|
---|
[15560] | 2532 | host=$ac_cv_host
|
---|
[23356] | 2533 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 2534 | set x $ac_cv_host
|
---|
| 2535 | shift
|
---|
| 2536 | host_cpu=$1
|
---|
| 2537 | host_vendor=$2
|
---|
| 2538 | shift; shift
|
---|
| 2539 | # Remember, the first character of IFS is used to create $*,
|
---|
| 2540 | # except with old shells:
|
---|
| 2541 | host_os=$*
|
---|
| 2542 | IFS=$ac_save_IFS
|
---|
| 2543 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
[15560] | 2544 |
|
---|
| 2545 |
|
---|
[25170] | 2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
|
---|
[23356] | 2547 | $as_echo_n "checking target system type... " >&6; }
|
---|
[25170] | 2548 | if ${ac_cv_target+:} false; then :
|
---|
[23356] | 2549 | $as_echo_n "(cached) " >&6
|
---|
[15560] | 2550 | else
|
---|
[23356] | 2551 | if test "x$target_alias" = x; then
|
---|
| 2552 | ac_cv_target=$ac_cv_host
|
---|
| 2553 | else
|
---|
| 2554 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
[25170] | 2555 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
|
---|
[23356] | 2556 | fi
|
---|
[15560] | 2557 |
|
---|
| 2558 | fi
|
---|
[25170] | 2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
|
---|
[23356] | 2560 | $as_echo "$ac_cv_target" >&6; }
|
---|
| 2561 | case $ac_cv_target in
|
---|
| 2562 | *-*-*) ;;
|
---|
[25170] | 2563 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
|
---|
[23356] | 2564 | esac
|
---|
[15560] | 2565 | target=$ac_cv_target
|
---|
[23356] | 2566 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 2567 | set x $ac_cv_target
|
---|
| 2568 | shift
|
---|
| 2569 | target_cpu=$1
|
---|
| 2570 | target_vendor=$2
|
---|
| 2571 | shift; shift
|
---|
| 2572 | # Remember, the first character of IFS is used to create $*,
|
---|
| 2573 | # except with old shells:
|
---|
| 2574 | target_os=$*
|
---|
| 2575 | IFS=$ac_save_IFS
|
---|
| 2576 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
[15560] | 2577 |
|
---|
| 2578 |
|
---|
| 2579 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 2580 | # will get canonicalized.
|
---|
| 2581 | test -n "$target_alias" &&
|
---|
| 2582 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 2583 | NONENONEs,x,x, &&
|
---|
| 2584 | program_prefix=${target_alias}-
|
---|
[25170] | 2585 |
|
---|
[3365] | 2586 | test "$program_prefix" != NONE &&
|
---|
[23356] | 2587 | program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
---|
[3365] | 2588 | # Use a double $ so make ignores it.
|
---|
| 2589 | test "$program_suffix" != NONE &&
|
---|
[23356] | 2590 | program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
---|
| 2591 | # Double any \ or $.
|
---|
[10192] | 2592 | # By default was `s,x,x', remove it if useless.
|
---|
[23356] | 2593 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
---|
| 2594 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
---|
[3365] | 2595 |
|
---|
| 2596 |
|
---|
| 2597 | PACKAGE=mgpp
|
---|
| 2598 | VERSION=1.3
|
---|
| 2599 |
|
---|
[10192] | 2600 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 2601 | #define PACKAGE "$PACKAGE"
|
---|
[10192] | 2602 | _ACEOF
|
---|
[3365] | 2603 |
|
---|
[10192] | 2604 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 2605 | #define VERSION "$VERSION"
|
---|
[10192] | 2606 | _ACEOF
|
---|
[3365] | 2607 |
|
---|
[10192] | 2608 |
|
---|
| 2609 |
|
---|
| 2610 |
|
---|
[30867] | 2611 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
| 2612 | # check for running bash under cygwin
|
---|
| 2613 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 2614 | then
|
---|
| 2615 | gsdlos=windows
|
---|
| 2616 | fi
|
---|
| 2617 | if test "x$crossOS" != "x" ; then
|
---|
| 2618 | gsdlos=$crossOS
|
---|
| 2619 | gsdlarch=""
|
---|
| 2620 | fi
|
---|
| 2621 |
|
---|
| 2622 |
|
---|
[23356] | 2623 | # Check whether --enable-java was given.
|
---|
[25170] | 2624 | if test "${enable_java+set}" = set; then :
|
---|
[23356] | 2625 | enableval=$enable_java; ENABLE_JAVA=$enableval
|
---|
| 2626 | else
|
---|
| 2627 | ENABLE_JAVA=yes
|
---|
| 2628 | fi
|
---|
[15560] | 2629 |
|
---|
[23356] | 2630 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
| 2631 | ENABLE_JAVA=1
|
---|
| 2632 | if test "x$JAVA_HOME" != "x" ; then
|
---|
| 2633 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
| 2634 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
| 2635 | echo "and JAVA respectively"
|
---|
| 2636 | export JAVA_HOME=
|
---|
| 2637 | fi
|
---|
| 2638 | else
|
---|
| 2639 | ENABLE_JAVA=0
|
---|
| 2640 | fi
|
---|
| 2641 |
|
---|
| 2642 |
|
---|
[25170] | 2643 | if test -z "$ARCH_DEP_FLAGS" ; then
|
---|
| 2644 | ARCH_DEP_FLAGS=
|
---|
| 2645 | fi
|
---|
| 2646 |
|
---|
| 2647 |
|
---|
[23356] | 2648 | # Check whether --enable-accentfold was given.
|
---|
[25170] | 2649 | if test "${enable_accentfold+set}" = set; then :
|
---|
[23356] | 2650 | enableval=$enable_accentfold; ENABLE_ACCENTFOLD=$enableval
|
---|
[13482] | 2651 | else
|
---|
[22058] | 2652 | ENABLE_ACCENTFOLD=yes
|
---|
[23356] | 2653 | fi
|
---|
| 2654 |
|
---|
[22058] | 2655 | if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
|
---|
[13482] | 2656 | ENABLE_ACCENTFOLD=1
|
---|
[25170] | 2657 | $as_echo "#define ENABLE_ACCENTFOLD /**/" >>confdefs.h
|
---|
[22058] | 2658 |
|
---|
| 2659 | else
|
---|
| 2660 | ENABLE_ACCENTFOLD=0
|
---|
[20844] | 2661 | fi
|
---|
| 2662 |
|
---|
[22058] | 2663 |
|
---|
[13482] | 2664 |
|
---|
[23356] | 2665 | ac_ext=cpp
|
---|
[8063] | 2666 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 2667 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2668 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2669 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[23356] | 2670 | if test -z "$CXX"; then
|
---|
| 2671 | if test -n "$CCC"; then
|
---|
| 2672 | CXX=$CCC
|
---|
| 2673 | else
|
---|
| 2674 | if test -n "$ac_tool_prefix"; then
|
---|
| 2675 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
[8063] | 2676 | do
|
---|
| 2677 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2678 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[25170] | 2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 2680 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 2681 | if ${ac_cv_prog_CXX+:} false; then :
|
---|
[23356] | 2682 | $as_echo_n "(cached) " >&6
|
---|
[8063] | 2683 | else
|
---|
| 2684 | if test -n "$CXX"; then
|
---|
| 2685 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2686 | else
|
---|
[10192] | 2687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2688 | for as_dir in $PATH
|
---|
| 2689 | do
|
---|
| 2690 | IFS=$as_save_IFS
|
---|
| 2691 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 2692 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 2693 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[10192] | 2694 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
[25170] | 2695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 2696 | break 2
|
---|
| 2697 | fi
|
---|
[8063] | 2698 | done
|
---|
[25170] | 2699 | done
|
---|
[23356] | 2700 | IFS=$as_save_IFS
|
---|
[3365] | 2701 |
|
---|
[8063] | 2702 | fi
|
---|
| 2703 | fi
|
---|
| 2704 | CXX=$ac_cv_prog_CXX
|
---|
| 2705 | if test -n "$CXX"; then
|
---|
[25170] | 2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
---|
[23356] | 2707 | $as_echo "$CXX" >&6; }
|
---|
[8063] | 2708 | else
|
---|
[25170] | 2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 2710 | $as_echo "no" >&6; }
|
---|
[8063] | 2711 | fi
|
---|
[3365] | 2712 |
|
---|
[23356] | 2713 |
|
---|
[8063] | 2714 | test -n "$CXX" && break
|
---|
| 2715 | done
|
---|
| 2716 | fi
|
---|
| 2717 | if test -z "$CXX"; then
|
---|
| 2718 | ac_ct_CXX=$CXX
|
---|
[23356] | 2719 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
[3365] | 2720 | do
|
---|
[8063] | 2721 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 2722 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 2724 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 2725 | if ${ac_cv_prog_ac_ct_CXX+:} false; then :
|
---|
[23356] | 2726 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 2727 | else
|
---|
[8063] | 2728 | if test -n "$ac_ct_CXX"; then
|
---|
| 2729 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
[3365] | 2730 | else
|
---|
[10192] | 2731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2732 | for as_dir in $PATH
|
---|
| 2733 | do
|
---|
| 2734 | IFS=$as_save_IFS
|
---|
| 2735 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 2736 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 2737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[10192] | 2738 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
[25170] | 2739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 2740 | break 2
|
---|
| 2741 | fi
|
---|
[8063] | 2742 | done
|
---|
[25170] | 2743 | done
|
---|
[23356] | 2744 | IFS=$as_save_IFS
|
---|
[8063] | 2745 |
|
---|
[3365] | 2746 | fi
|
---|
| 2747 | fi
|
---|
[8063] | 2748 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2749 | if test -n "$ac_ct_CXX"; then
|
---|
[25170] | 2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
---|
[23356] | 2751 | $as_echo "$ac_ct_CXX" >&6; }
|
---|
[3365] | 2752 | else
|
---|
[25170] | 2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 2754 | $as_echo "no" >&6; }
|
---|
[3365] | 2755 | fi
|
---|
| 2756 |
|
---|
[23356] | 2757 |
|
---|
[8063] | 2758 | test -n "$ac_ct_CXX" && break
|
---|
[3365] | 2759 | done
|
---|
| 2760 |
|
---|
[23356] | 2761 | if test "x$ac_ct_CXX" = x; then
|
---|
| 2762 | CXX="g++"
|
---|
| 2763 | else
|
---|
| 2764 | case $cross_compiling:$ac_tool_warned in
|
---|
| 2765 | yes:)
|
---|
[25170] | 2766 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
[23356] | 2767 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 2768 | ac_tool_warned=yes ;;
|
---|
| 2769 | esac
|
---|
| 2770 | CXX=$ac_ct_CXX
|
---|
| 2771 | fi
|
---|
[8063] | 2772 | fi
|
---|
[3365] | 2773 |
|
---|
[23356] | 2774 | fi
|
---|
| 2775 | fi
|
---|
[10192] | 2776 | # Provide some information about the compiler.
|
---|
[25170] | 2777 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
---|
[23356] | 2778 | set X $ac_compile
|
---|
| 2779 | ac_compiler=$2
|
---|
[25170] | 2780 | for ac_option in --version -v -V -qversion; do
|
---|
| 2781 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
[23356] | 2782 | case "(($ac_try" in
|
---|
| 2783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2784 | *) ac_try_echo=$ac_try;;
|
---|
| 2785 | esac
|
---|
[25170] | 2786 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2787 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2788 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
[10192] | 2789 | ac_status=$?
|
---|
[25170] | 2790 | if test -s conftest.err; then
|
---|
| 2791 | sed '10a\
|
---|
| 2792 | ... rest of stderr output deleted ...
|
---|
| 2793 | 10q' conftest.err >conftest.er1
|
---|
| 2794 | cat conftest.er1 >&5
|
---|
| 2795 | fi
|
---|
| 2796 | rm -f conftest.er1 conftest.err
|
---|
| 2797 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2798 | test $ac_status = 0; }
|
---|
| 2799 | done
|
---|
[10192] | 2800 |
|
---|
[25170] | 2801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 2802 | /* end confdefs.h. */
|
---|
[3365] | 2803 |
|
---|
[8063] | 2804 | int
|
---|
| 2805 | main ()
|
---|
| 2806 | {
|
---|
[3365] | 2807 |
|
---|
[8063] | 2808 | ;
|
---|
| 2809 | return 0;
|
---|
| 2810 | }
|
---|
| 2811 | _ACEOF
|
---|
| 2812 | ac_clean_files_save=$ac_clean_files
|
---|
[23356] | 2813 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
[8063] | 2814 | # Try to create an executable without -o first, disregard a.out.
|
---|
[10192] | 2815 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
[8063] | 2816 | # of exeext.
|
---|
[25170] | 2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
|
---|
| 2818 | $as_echo_n "checking whether the C++ compiler works... " >&6; }
|
---|
[23356] | 2819 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
[22058] | 2820 |
|
---|
[23356] | 2821 | # The possible output files:
|
---|
| 2822 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
| 2823 |
|
---|
| 2824 | ac_rmfiles=
|
---|
| 2825 | for ac_file in $ac_files
|
---|
[10192] | 2826 | do
|
---|
[23356] | 2827 | case $ac_file in
|
---|
| 2828 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
| 2829 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
| 2830 | esac
|
---|
| 2831 | done
|
---|
| 2832 | rm -f $ac_rmfiles
|
---|
| 2833 |
|
---|
[25170] | 2834 | if { { ac_try="$ac_link_default"
|
---|
[23356] | 2835 | case "(($ac_try" in
|
---|
| 2836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2837 | *) ac_try_echo=$ac_try;;
|
---|
| 2838 | esac
|
---|
[25170] | 2839 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2840 | $as_echo "$ac_try_echo"; } >&5
|
---|
[23356] | 2841 | (eval "$ac_link_default") 2>&5
|
---|
| 2842 | ac_status=$?
|
---|
[25170] | 2843 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2844 | test $ac_status = 0; }; then :
|
---|
[23356] | 2845 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
| 2846 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
| 2847 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
| 2848 | # so that the user can short-circuit this test for compilers unknown to
|
---|
| 2849 | # Autoconf.
|
---|
| 2850 | for ac_file in $ac_files ''
|
---|
| 2851 | do
|
---|
[10192] | 2852 | test -f "$ac_file" || continue
|
---|
[8063] | 2853 | case $ac_file in
|
---|
[23356] | 2854 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
[10192] | 2855 | ;;
|
---|
| 2856 | [ab].out )
|
---|
| 2857 | # We found the default executable, but exeext='' is most
|
---|
| 2858 | # certainly right.
|
---|
| 2859 | break;;
|
---|
| 2860 | *.* )
|
---|
[25170] | 2861 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
[23356] | 2862 | then :; else
|
---|
| 2863 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 2864 | fi
|
---|
| 2865 | # We set ac_cv_exeext here because the later test for it is not
|
---|
| 2866 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
| 2867 | # argument, so we may need to know it at that point already.
|
---|
| 2868 | # Even if this section looks crufty: it has the advantage of
|
---|
| 2869 | # actually working.
|
---|
[10192] | 2870 | break;;
|
---|
| 2871 | * )
|
---|
| 2872 | break;;
|
---|
[8063] | 2873 | esac
|
---|
| 2874 | done
|
---|
[23356] | 2875 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
| 2876 |
|
---|
[8063] | 2877 | else
|
---|
[23356] | 2878 | ac_file=''
|
---|
| 2879 | fi
|
---|
[25170] | 2880 | if test -z "$ac_file"; then :
|
---|
| 2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2882 | $as_echo "no" >&6; }
|
---|
| 2883 | $as_echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2884 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2885 |
|
---|
[25170] | 2886 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 2887 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25170] | 2888 | as_fn_error 77 "C++ compiler cannot create executables
|
---|
| 2889 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
| 2890 | else
|
---|
| 2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 2892 | $as_echo "yes" >&6; }
|
---|
[8063] | 2893 | fi
|
---|
[25170] | 2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
|
---|
| 2895 | $as_echo_n "checking for C++ compiler default output file name... " >&6; }
|
---|
| 2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
| 2897 | $as_echo "$ac_file" >&6; }
|
---|
[8063] | 2898 | ac_exeext=$ac_cv_exeext
|
---|
[3365] | 2899 |
|
---|
[23356] | 2900 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
[8063] | 2901 | ac_clean_files=$ac_clean_files_save
|
---|
[25170] | 2902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
[23356] | 2903 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
[25170] | 2904 | if { { ac_try="$ac_link"
|
---|
[23356] | 2905 | case "(($ac_try" in
|
---|
| 2906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2907 | *) ac_try_echo=$ac_try;;
|
---|
| 2908 | esac
|
---|
[25170] | 2909 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2910 | $as_echo "$ac_try_echo"; } >&5
|
---|
[23356] | 2911 | (eval "$ac_link") 2>&5
|
---|
[8063] | 2912 | ac_status=$?
|
---|
[25170] | 2913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2914 | test $ac_status = 0; }; then :
|
---|
[8063] | 2915 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 2916 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 2917 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 2918 | # `rm'.
|
---|
[10192] | 2919 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 2920 | test -f "$ac_file" || continue
|
---|
[8063] | 2921 | case $ac_file in
|
---|
[23356] | 2922 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
[8063] | 2923 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
[10192] | 2924 | break;;
|
---|
[8063] | 2925 | * ) break;;
|
---|
| 2926 | esac
|
---|
| 2927 | done
|
---|
| 2928 | else
|
---|
[25170] | 2929 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 2930 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25170] | 2931 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
| 2932 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
[3365] | 2933 | fi
|
---|
[25170] | 2934 | rm -f conftest conftest$ac_cv_exeext
|
---|
| 2935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
[23356] | 2936 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
[3365] | 2937 |
|
---|
[8063] | 2938 | rm -f conftest.$ac_ext
|
---|
| 2939 | EXEEXT=$ac_cv_exeext
|
---|
| 2940 | ac_exeext=$EXEEXT
|
---|
[25170] | 2941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 2942 | /* end confdefs.h. */
|
---|
| 2943 | #include <stdio.h>
|
---|
| 2944 | int
|
---|
| 2945 | main ()
|
---|
| 2946 | {
|
---|
| 2947 | FILE *f = fopen ("conftest.out", "w");
|
---|
| 2948 | return ferror (f) || fclose (f) != 0;
|
---|
| 2949 |
|
---|
| 2950 | ;
|
---|
| 2951 | return 0;
|
---|
| 2952 | }
|
---|
| 2953 | _ACEOF
|
---|
| 2954 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
| 2955 | # Check that the compiler produces executables we can run. If not, either
|
---|
| 2956 | # the compiler is broken, or we cross compile.
|
---|
| 2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
| 2958 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
| 2959 | if test "$cross_compiling" != yes; then
|
---|
| 2960 | { { ac_try="$ac_link"
|
---|
| 2961 | case "(($ac_try" in
|
---|
| 2962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2963 | *) ac_try_echo=$ac_try;;
|
---|
| 2964 | esac
|
---|
| 2965 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2966 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2967 | (eval "$ac_link") 2>&5
|
---|
| 2968 | ac_status=$?
|
---|
| 2969 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2970 | test $ac_status = 0; }
|
---|
| 2971 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
| 2972 | { { case "(($ac_try" in
|
---|
| 2973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2974 | *) ac_try_echo=$ac_try;;
|
---|
| 2975 | esac
|
---|
| 2976 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2977 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2978 | (eval "$ac_try") 2>&5
|
---|
| 2979 | ac_status=$?
|
---|
| 2980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2981 | test $ac_status = 0; }; }; then
|
---|
| 2982 | cross_compiling=no
|
---|
| 2983 | else
|
---|
| 2984 | if test "$cross_compiling" = maybe; then
|
---|
| 2985 | cross_compiling=yes
|
---|
| 2986 | else
|
---|
| 2987 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2988 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 2989 | as_fn_error $? "cannot run C++ compiled programs.
|
---|
| 2990 | If you meant to cross compile, use \`--host'.
|
---|
| 2991 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
| 2992 | fi
|
---|
| 2993 | fi
|
---|
| 2994 | fi
|
---|
| 2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
| 2996 | $as_echo "$cross_compiling" >&6; }
|
---|
| 2997 |
|
---|
| 2998 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
| 2999 | ac_clean_files=$ac_clean_files_save
|
---|
| 3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
[23356] | 3001 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
[25170] | 3002 | if ${ac_cv_objext+:} false; then :
|
---|
[23356] | 3003 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3004 | else
|
---|
[25170] | 3005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 3006 | /* end confdefs.h. */
|
---|
[8063] | 3007 |
|
---|
| 3008 | int
|
---|
| 3009 | main ()
|
---|
| 3010 | {
|
---|
| 3011 |
|
---|
| 3012 | ;
|
---|
| 3013 | return 0;
|
---|
| 3014 | }
|
---|
| 3015 | _ACEOF
|
---|
| 3016 | rm -f conftest.o conftest.obj
|
---|
[25170] | 3017 | if { { ac_try="$ac_compile"
|
---|
[23356] | 3018 | case "(($ac_try" in
|
---|
| 3019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3020 | *) ac_try_echo=$ac_try;;
|
---|
| 3021 | esac
|
---|
[25170] | 3022 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3023 | $as_echo "$ac_try_echo"; } >&5
|
---|
[23356] | 3024 | (eval "$ac_compile") 2>&5
|
---|
[8063] | 3025 | ac_status=$?
|
---|
[25170] | 3026 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3027 | test $ac_status = 0; }; then :
|
---|
[23356] | 3028 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
| 3029 | test -f "$ac_file" || continue;
|
---|
[8063] | 3030 | case $ac_file in
|
---|
[23356] | 3031 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
[8063] | 3032 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 3033 | break;;
|
---|
| 3034 | esac
|
---|
| 3035 | done
|
---|
[3365] | 3036 | else
|
---|
[23356] | 3037 | $as_echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3038 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3039 |
|
---|
[25170] | 3040 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 3041 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25170] | 3042 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
| 3043 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
[3365] | 3044 | fi
|
---|
[8063] | 3045 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
[3365] | 3046 | fi
|
---|
[25170] | 3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
[23356] | 3048 | $as_echo "$ac_cv_objext" >&6; }
|
---|
[8063] | 3049 | OBJEXT=$ac_cv_objext
|
---|
| 3050 | ac_objext=$OBJEXT
|
---|
[25170] | 3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
|
---|
[23356] | 3052 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
---|
[25170] | 3053 | if ${ac_cv_cxx_compiler_gnu+:} false; then :
|
---|
[23356] | 3054 | $as_echo_n "(cached) " >&6
|
---|
[8063] | 3055 | else
|
---|
[25170] | 3056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 3057 | /* end confdefs.h. */
|
---|
[3365] | 3058 |
|
---|
[8063] | 3059 | int
|
---|
| 3060 | main ()
|
---|
| 3061 | {
|
---|
| 3062 | #ifndef __GNUC__
|
---|
| 3063 | choke me
|
---|
| 3064 | #endif
|
---|
[3365] | 3065 |
|
---|
[8063] | 3066 | ;
|
---|
| 3067 | return 0;
|
---|
| 3068 | }
|
---|
| 3069 | _ACEOF
|
---|
[25170] | 3070 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[8063] | 3071 | ac_compiler_gnu=yes
|
---|
[3365] | 3072 | else
|
---|
[25170] | 3073 | ac_compiler_gnu=no
|
---|
[3365] | 3074 | fi
|
---|
[23356] | 3075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 3076 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
[3365] | 3077 |
|
---|
[8063] | 3078 | fi
|
---|
[25170] | 3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
[23356] | 3080 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
| 3081 | if test $ac_compiler_gnu = yes; then
|
---|
| 3082 | GXX=yes
|
---|
| 3083 | else
|
---|
| 3084 | GXX=
|
---|
| 3085 | fi
|
---|
[8063] | 3086 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 3087 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
[25170] | 3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
|
---|
[23356] | 3089 | $as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
---|
[25170] | 3090 | if ${ac_cv_prog_cxx_g+:} false; then :
|
---|
[23356] | 3091 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3092 | else
|
---|
[23356] | 3093 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
| 3094 | ac_cxx_werror_flag=yes
|
---|
| 3095 | ac_cv_prog_cxx_g=no
|
---|
| 3096 | CXXFLAGS="-g"
|
---|
[25170] | 3097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 3098 | /* end confdefs.h. */
|
---|
[8063] | 3099 |
|
---|
| 3100 | int
|
---|
| 3101 | main ()
|
---|
| 3102 | {
|
---|
| 3103 |
|
---|
| 3104 | ;
|
---|
| 3105 | return 0;
|
---|
| 3106 | }
|
---|
| 3107 | _ACEOF
|
---|
[25170] | 3108 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[3365] | 3109 | ac_cv_prog_cxx_g=yes
|
---|
| 3110 | else
|
---|
[25170] | 3111 | CXXFLAGS=""
|
---|
| 3112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 3113 | /* end confdefs.h. */
|
---|
[10192] | 3114 |
|
---|
[8063] | 3115 | int
|
---|
| 3116 | main ()
|
---|
| 3117 | {
|
---|
[23356] | 3118 |
|
---|
[8063] | 3119 | ;
|
---|
| 3120 | return 0;
|
---|
| 3121 | }
|
---|
| 3122 | _ACEOF
|
---|
[25170] | 3123 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 3124 |
|
---|
[25148] | 3125 | else
|
---|
[25170] | 3126 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
[23356] | 3127 | CXXFLAGS="-g"
|
---|
[25170] | 3128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 3129 | /* end confdefs.h. */
|
---|
[10192] | 3130 |
|
---|
[8063] | 3131 | int
|
---|
| 3132 | main ()
|
---|
| 3133 | {
|
---|
[23356] | 3134 |
|
---|
[8063] | 3135 | ;
|
---|
| 3136 | return 0;
|
---|
| 3137 | }
|
---|
| 3138 | _ACEOF
|
---|
[25170] | 3139 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[23356] | 3140 | ac_cv_prog_cxx_g=yes
|
---|
| 3141 | fi
|
---|
| 3142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3143 | fi
|
---|
| 3144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3145 | fi
|
---|
| 3146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3147 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
| 3148 | fi
|
---|
[25170] | 3149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
|
---|
[23356] | 3150 | $as_echo "$ac_cv_prog_cxx_g" >&6; }
|
---|
| 3151 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 3152 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 3153 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 3154 | if test "$GXX" = yes; then
|
---|
| 3155 | CXXFLAGS="-g -O2"
|
---|
| 3156 | else
|
---|
| 3157 | CXXFLAGS="-g"
|
---|
| 3158 | fi
|
---|
[8063] | 3159 | else
|
---|
[23356] | 3160 | if test "$GXX" = yes; then
|
---|
| 3161 | CXXFLAGS="-O2"
|
---|
| 3162 | else
|
---|
| 3163 | CXXFLAGS=
|
---|
| 3164 | fi
|
---|
[8063] | 3165 | fi
|
---|
| 3166 | ac_ext=c
|
---|
| 3167 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3168 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3169 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3170 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3171 |
|
---|
[10192] | 3172 | for ac_prog in gawk mawk nawk awk
|
---|
[3365] | 3173 | do
|
---|
[8063] | 3174 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 3175 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 3176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3177 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3178 | if ${ac_cv_prog_AWK+:} false; then :
|
---|
[23356] | 3179 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3180 | else
|
---|
| 3181 | if test -n "$AWK"; then
|
---|
| 3182 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 3183 | else
|
---|
[10192] | 3184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3185 | for as_dir in $PATH
|
---|
| 3186 | do
|
---|
| 3187 | IFS=$as_save_IFS
|
---|
| 3188 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3189 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 3190 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[10192] | 3191 | ac_cv_prog_AWK="$ac_prog"
|
---|
[25170] | 3192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3193 | break 2
|
---|
| 3194 | fi
|
---|
[8063] | 3195 | done
|
---|
[25170] | 3196 | done
|
---|
[23356] | 3197 | IFS=$as_save_IFS
|
---|
[8063] | 3198 |
|
---|
[3365] | 3199 | fi
|
---|
| 3200 | fi
|
---|
[8063] | 3201 | AWK=$ac_cv_prog_AWK
|
---|
[3365] | 3202 | if test -n "$AWK"; then
|
---|
[25170] | 3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
[23356] | 3204 | $as_echo "$AWK" >&6; }
|
---|
[3365] | 3205 | else
|
---|
[25170] | 3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3207 | $as_echo "no" >&6; }
|
---|
[3365] | 3208 | fi
|
---|
| 3209 |
|
---|
[23356] | 3210 |
|
---|
[8063] | 3211 | test -n "$AWK" && break
|
---|
[3365] | 3212 | done
|
---|
| 3213 |
|
---|
| 3214 | for ac_prog in 'bison -y' byacc
|
---|
| 3215 | do
|
---|
[8063] | 3216 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 3217 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 3218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3219 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3220 | if ${ac_cv_prog_YACC+:} false; then :
|
---|
[23356] | 3221 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3222 | else
|
---|
| 3223 | if test -n "$YACC"; then
|
---|
| 3224 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 3225 | else
|
---|
[10192] | 3226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3227 | for as_dir in $PATH
|
---|
| 3228 | do
|
---|
| 3229 | IFS=$as_save_IFS
|
---|
| 3230 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3231 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 3232 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[10192] | 3233 | ac_cv_prog_YACC="$ac_prog"
|
---|
[25170] | 3234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3235 | break 2
|
---|
| 3236 | fi
|
---|
[8063] | 3237 | done
|
---|
[25170] | 3238 | done
|
---|
[23356] | 3239 | IFS=$as_save_IFS
|
---|
[8063] | 3240 |
|
---|
[3365] | 3241 | fi
|
---|
| 3242 | fi
|
---|
[8063] | 3243 | YACC=$ac_cv_prog_YACC
|
---|
[3365] | 3244 | if test -n "$YACC"; then
|
---|
[25170] | 3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
|
---|
[23356] | 3246 | $as_echo "$YACC" >&6; }
|
---|
[3365] | 3247 | else
|
---|
[25170] | 3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3249 | $as_echo "no" >&6; }
|
---|
[3365] | 3250 | fi
|
---|
| 3251 |
|
---|
[23356] | 3252 |
|
---|
[8063] | 3253 | test -n "$YACC" && break
|
---|
[3365] | 3254 | done
|
---|
| 3255 | test -n "$YACC" || YACC="yacc"
|
---|
| 3256 |
|
---|
[8063] | 3257 | ac_ext=c
|
---|
| 3258 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3259 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3260 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3261 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3262 | if test -n "$ac_tool_prefix"; then
|
---|
| 3263 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 3264 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[25170] | 3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3266 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3267 | if ${ac_cv_prog_CC+:} false; then :
|
---|
[23356] | 3268 | $as_echo_n "(cached) " >&6
|
---|
[8063] | 3269 | else
|
---|
| 3270 | if test -n "$CC"; then
|
---|
| 3271 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 3272 | else
|
---|
[10192] | 3273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3274 | for as_dir in $PATH
|
---|
| 3275 | do
|
---|
| 3276 | IFS=$as_save_IFS
|
---|
| 3277 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3278 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 3279 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[10192] | 3280 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
[25170] | 3281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3282 | break 2
|
---|
| 3283 | fi
|
---|
[8063] | 3284 | done
|
---|
[25170] | 3285 | done
|
---|
[23356] | 3286 | IFS=$as_save_IFS
|
---|
[8063] | 3287 |
|
---|
| 3288 | fi
|
---|
| 3289 | fi
|
---|
| 3290 | CC=$ac_cv_prog_CC
|
---|
| 3291 | if test -n "$CC"; then
|
---|
[25170] | 3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
[23356] | 3293 | $as_echo "$CC" >&6; }
|
---|
[8063] | 3294 | else
|
---|
[25170] | 3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3296 | $as_echo "no" >&6; }
|
---|
[8063] | 3297 | fi
|
---|
| 3298 |
|
---|
[23356] | 3299 |
|
---|
[8063] | 3300 | fi
|
---|
| 3301 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 3302 | ac_ct_CC=$CC
|
---|
| 3303 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
[3365] | 3304 | set dummy gcc; ac_word=$2
|
---|
[25170] | 3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3306 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3307 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
[23356] | 3308 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3309 | else
|
---|
[8063] | 3310 | if test -n "$ac_ct_CC"; then
|
---|
| 3311 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 3312 | else
|
---|
[10192] | 3313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3314 | for as_dir in $PATH
|
---|
| 3315 | do
|
---|
| 3316 | IFS=$as_save_IFS
|
---|
| 3317 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3318 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 3319 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[10192] | 3320 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
[25170] | 3321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3322 | break 2
|
---|
| 3323 | fi
|
---|
[8063] | 3324 | done
|
---|
[25170] | 3325 | done
|
---|
[23356] | 3326 | IFS=$as_save_IFS
|
---|
[8063] | 3327 |
|
---|
| 3328 | fi
|
---|
| 3329 | fi
|
---|
| 3330 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 3331 | if test -n "$ac_ct_CC"; then
|
---|
[25170] | 3332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
[23356] | 3333 | $as_echo "$ac_ct_CC" >&6; }
|
---|
[8063] | 3334 | else
|
---|
[25170] | 3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3336 | $as_echo "no" >&6; }
|
---|
[8063] | 3337 | fi
|
---|
| 3338 |
|
---|
[23356] | 3339 | if test "x$ac_ct_CC" = x; then
|
---|
| 3340 | CC=""
|
---|
| 3341 | else
|
---|
| 3342 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3343 | yes:)
|
---|
[25170] | 3344 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
[23356] | 3345 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 3346 | ac_tool_warned=yes ;;
|
---|
| 3347 | esac
|
---|
| 3348 | CC=$ac_ct_CC
|
---|
| 3349 | fi
|
---|
[8063] | 3350 | else
|
---|
| 3351 | CC="$ac_cv_prog_CC"
|
---|
| 3352 | fi
|
---|
| 3353 |
|
---|
| 3354 | if test -z "$CC"; then
|
---|
[23356] | 3355 | if test -n "$ac_tool_prefix"; then
|
---|
| 3356 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
[8063] | 3357 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[25170] | 3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3359 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3360 | if ${ac_cv_prog_CC+:} false; then :
|
---|
[23356] | 3361 | $as_echo_n "(cached) " >&6
|
---|
[8063] | 3362 | else
|
---|
[3365] | 3363 | if test -n "$CC"; then
|
---|
| 3364 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 3365 | else
|
---|
[10192] | 3366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3367 | for as_dir in $PATH
|
---|
| 3368 | do
|
---|
| 3369 | IFS=$as_save_IFS
|
---|
| 3370 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3371 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 3372 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[10192] | 3373 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
[25170] | 3374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3375 | break 2
|
---|
| 3376 | fi
|
---|
[8063] | 3377 | done
|
---|
[25170] | 3378 | done
|
---|
[23356] | 3379 | IFS=$as_save_IFS
|
---|
[8063] | 3380 |
|
---|
[3365] | 3381 | fi
|
---|
| 3382 | fi
|
---|
[8063] | 3383 | CC=$ac_cv_prog_CC
|
---|
[3365] | 3384 | if test -n "$CC"; then
|
---|
[25170] | 3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
[23356] | 3386 | $as_echo "$CC" >&6; }
|
---|
[3365] | 3387 | else
|
---|
[25170] | 3388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3389 | $as_echo "no" >&6; }
|
---|
[3365] | 3390 | fi
|
---|
| 3391 |
|
---|
[23356] | 3392 |
|
---|
[22058] | 3393 | fi
|
---|
[8063] | 3394 | fi
|
---|
[3365] | 3395 | if test -z "$CC"; then
|
---|
| 3396 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 3397 | set dummy cc; ac_word=$2
|
---|
[25170] | 3398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3399 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3400 | if ${ac_cv_prog_CC+:} false; then :
|
---|
[23356] | 3401 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3402 | else
|
---|
| 3403 | if test -n "$CC"; then
|
---|
| 3404 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 3405 | else
|
---|
| 3406 | ac_prog_rejected=no
|
---|
[10192] | 3407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3408 | for as_dir in $PATH
|
---|
| 3409 | do
|
---|
| 3410 | IFS=$as_save_IFS
|
---|
| 3411 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3412 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 3413 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[10192] | 3414 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 3415 | ac_prog_rejected=yes
|
---|
| 3416 | continue
|
---|
| 3417 | fi
|
---|
| 3418 | ac_cv_prog_CC="cc"
|
---|
[25170] | 3419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3420 | break 2
|
---|
| 3421 | fi
|
---|
[8063] | 3422 | done
|
---|
[25170] | 3423 | done
|
---|
[23356] | 3424 | IFS=$as_save_IFS
|
---|
[8063] | 3425 |
|
---|
[3365] | 3426 | if test $ac_prog_rejected = yes; then
|
---|
| 3427 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 3428 | set dummy $ac_cv_prog_CC
|
---|
| 3429 | shift
|
---|
[8063] | 3430 | if test $# != 0; then
|
---|
[3365] | 3431 | # We chose a different compiler from the bogus one.
|
---|
| 3432 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 3433 | # first if we set CC to just the basename; use the full file name.
|
---|
| 3434 | shift
|
---|
[10192] | 3435 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[3365] | 3436 | fi
|
---|
| 3437 | fi
|
---|
| 3438 | fi
|
---|
| 3439 | fi
|
---|
[8063] | 3440 | CC=$ac_cv_prog_CC
|
---|
[3365] | 3441 | if test -n "$CC"; then
|
---|
[25170] | 3442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
[23356] | 3443 | $as_echo "$CC" >&6; }
|
---|
[3365] | 3444 | else
|
---|
[25170] | 3445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3446 | $as_echo "no" >&6; }
|
---|
[3365] | 3447 | fi
|
---|
| 3448 |
|
---|
[23356] | 3449 |
|
---|
[8063] | 3450 | fi
|
---|
| 3451 | if test -z "$CC"; then
|
---|
| 3452 | if test -n "$ac_tool_prefix"; then
|
---|
[23356] | 3453 | for ac_prog in cl.exe
|
---|
[8063] | 3454 | do
|
---|
| 3455 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 3456 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[25170] | 3457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3458 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3459 | if ${ac_cv_prog_CC+:} false; then :
|
---|
[23356] | 3460 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3461 | else
|
---|
| 3462 | if test -n "$CC"; then
|
---|
| 3463 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 3464 | else
|
---|
[10192] | 3465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3466 | for as_dir in $PATH
|
---|
| 3467 | do
|
---|
| 3468 | IFS=$as_save_IFS
|
---|
| 3469 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3470 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 3471 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[10192] | 3472 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
[25170] | 3473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3474 | break 2
|
---|
| 3475 | fi
|
---|
[8063] | 3476 | done
|
---|
[25170] | 3477 | done
|
---|
[23356] | 3478 | IFS=$as_save_IFS
|
---|
[8063] | 3479 |
|
---|
[3365] | 3480 | fi
|
---|
| 3481 | fi
|
---|
[8063] | 3482 | CC=$ac_cv_prog_CC
|
---|
[3365] | 3483 | if test -n "$CC"; then
|
---|
[25170] | 3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
[23356] | 3485 | $as_echo "$CC" >&6; }
|
---|
[3365] | 3486 | else
|
---|
[25170] | 3487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3488 | $as_echo "no" >&6; }
|
---|
[3365] | 3489 | fi
|
---|
[8063] | 3490 |
|
---|
[23356] | 3491 |
|
---|
[8063] | 3492 | test -n "$CC" && break
|
---|
| 3493 | done
|
---|
[3365] | 3494 | fi
|
---|
[8063] | 3495 | if test -z "$CC"; then
|
---|
| 3496 | ac_ct_CC=$CC
|
---|
[23356] | 3497 | for ac_prog in cl.exe
|
---|
[8063] | 3498 | do
|
---|
| 3499 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3500 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3502 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3503 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
[23356] | 3504 | $as_echo_n "(cached) " >&6
|
---|
[8063] | 3505 | else
|
---|
| 3506 | if test -n "$ac_ct_CC"; then
|
---|
| 3507 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 3508 | else
|
---|
[10192] | 3509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3510 | for as_dir in $PATH
|
---|
| 3511 | do
|
---|
| 3512 | IFS=$as_save_IFS
|
---|
| 3513 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3514 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 3515 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[10192] | 3516 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
[25170] | 3517 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3518 | break 2
|
---|
| 3519 | fi
|
---|
[8063] | 3520 | done
|
---|
[25170] | 3521 | done
|
---|
[23356] | 3522 | IFS=$as_save_IFS
|
---|
[3365] | 3523 |
|
---|
[8063] | 3524 | fi
|
---|
| 3525 | fi
|
---|
| 3526 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 3527 | if test -n "$ac_ct_CC"; then
|
---|
[25170] | 3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
[23356] | 3529 | $as_echo "$ac_ct_CC" >&6; }
|
---|
[8063] | 3530 | else
|
---|
[25170] | 3531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3532 | $as_echo "no" >&6; }
|
---|
[8063] | 3533 | fi
|
---|
[3365] | 3534 |
|
---|
[23356] | 3535 |
|
---|
[8063] | 3536 | test -n "$ac_ct_CC" && break
|
---|
| 3537 | done
|
---|
[3365] | 3538 |
|
---|
[23356] | 3539 | if test "x$ac_ct_CC" = x; then
|
---|
| 3540 | CC=""
|
---|
| 3541 | else
|
---|
| 3542 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3543 | yes:)
|
---|
[25170] | 3544 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
[23356] | 3545 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 3546 | ac_tool_warned=yes ;;
|
---|
| 3547 | esac
|
---|
| 3548 | CC=$ac_ct_CC
|
---|
| 3549 | fi
|
---|
[3365] | 3550 | fi
|
---|
| 3551 |
|
---|
| 3552 | fi
|
---|
| 3553 |
|
---|
[10192] | 3554 |
|
---|
[25170] | 3555 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 3556 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25170] | 3557 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
| 3558 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
[8063] | 3559 |
|
---|
[10192] | 3560 | # Provide some information about the compiler.
|
---|
[25170] | 3561 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
[23356] | 3562 | set X $ac_compile
|
---|
| 3563 | ac_compiler=$2
|
---|
[25170] | 3564 | for ac_option in --version -v -V -qversion; do
|
---|
| 3565 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
[23356] | 3566 | case "(($ac_try" in
|
---|
| 3567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3568 | *) ac_try_echo=$ac_try;;
|
---|
| 3569 | esac
|
---|
[25170] | 3570 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3571 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3572 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
[10192] | 3573 | ac_status=$?
|
---|
[25170] | 3574 | if test -s conftest.err; then
|
---|
| 3575 | sed '10a\
|
---|
| 3576 | ... rest of stderr output deleted ...
|
---|
| 3577 | 10q' conftest.err >conftest.er1
|
---|
| 3578 | cat conftest.er1 >&5
|
---|
| 3579 | fi
|
---|
| 3580 | rm -f conftest.er1 conftest.err
|
---|
| 3581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3582 | test $ac_status = 0; }
|
---|
| 3583 | done
|
---|
[10192] | 3584 |
|
---|
[25170] | 3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
[23356] | 3586 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
[25170] | 3587 | if ${ac_cv_c_compiler_gnu+:} false; then :
|
---|
[23356] | 3588 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3589 | else
|
---|
[25170] | 3590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 3591 | /* end confdefs.h. */
|
---|
[8063] | 3592 |
|
---|
| 3593 | int
|
---|
| 3594 | main ()
|
---|
| 3595 | {
|
---|
| 3596 | #ifndef __GNUC__
|
---|
| 3597 | choke me
|
---|
[3365] | 3598 | #endif
|
---|
[8063] | 3599 |
|
---|
| 3600 | ;
|
---|
| 3601 | return 0;
|
---|
| 3602 | }
|
---|
| 3603 | _ACEOF
|
---|
[25170] | 3604 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[8063] | 3605 | ac_compiler_gnu=yes
|
---|
[8059] | 3606 | else
|
---|
[25170] | 3607 | ac_compiler_gnu=no
|
---|
[8059] | 3608 | fi
|
---|
[23356] | 3609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 3610 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 3611 |
|
---|
[8059] | 3612 | fi
|
---|
[25170] | 3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
[23356] | 3614 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
| 3615 | if test $ac_compiler_gnu = yes; then
|
---|
| 3616 | GCC=yes
|
---|
| 3617 | else
|
---|
| 3618 | GCC=
|
---|
| 3619 | fi
|
---|
[8063] | 3620 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 3621 | ac_save_CFLAGS=$CFLAGS
|
---|
[25170] | 3622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
[23356] | 3623 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
[25170] | 3624 | if ${ac_cv_prog_cc_g+:} false; then :
|
---|
[23356] | 3625 | $as_echo_n "(cached) " >&6
|
---|
[8063] | 3626 | else
|
---|
[23356] | 3627 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
| 3628 | ac_c_werror_flag=yes
|
---|
| 3629 | ac_cv_prog_cc_g=no
|
---|
| 3630 | CFLAGS="-g"
|
---|
[25170] | 3631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 3632 | /* end confdefs.h. */
|
---|
[3365] | 3633 |
|
---|
[8063] | 3634 | int
|
---|
| 3635 | main ()
|
---|
| 3636 | {
|
---|
[8059] | 3637 |
|
---|
[8063] | 3638 | ;
|
---|
| 3639 | return 0;
|
---|
| 3640 | }
|
---|
| 3641 | _ACEOF
|
---|
[25170] | 3642 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3365] | 3643 | ac_cv_prog_cc_g=yes
|
---|
| 3644 | else
|
---|
[25170] | 3645 | CFLAGS=""
|
---|
| 3646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 3647 | /* end confdefs.h. */
|
---|
[10192] | 3648 |
|
---|
[23356] | 3649 | int
|
---|
| 3650 | main ()
|
---|
| 3651 | {
|
---|
| 3652 |
|
---|
| 3653 | ;
|
---|
| 3654 | return 0;
|
---|
| 3655 | }
|
---|
| 3656 | _ACEOF
|
---|
[25170] | 3657 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 3658 |
|
---|
[25148] | 3659 | else
|
---|
[25170] | 3660 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
[23356] | 3661 | CFLAGS="-g"
|
---|
[25170] | 3662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 3663 | /* end confdefs.h. */
|
---|
| 3664 |
|
---|
| 3665 | int
|
---|
| 3666 | main ()
|
---|
| 3667 | {
|
---|
| 3668 |
|
---|
| 3669 | ;
|
---|
| 3670 | return 0;
|
---|
| 3671 | }
|
---|
| 3672 | _ACEOF
|
---|
[25170] | 3673 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 3674 | ac_cv_prog_cc_g=yes
|
---|
[3365] | 3675 | fi
|
---|
[23356] | 3676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 3677 | fi
|
---|
[23356] | 3678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3679 | fi
|
---|
| 3680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3681 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
| 3682 | fi
|
---|
[25170] | 3683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
[23356] | 3684 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
[3365] | 3685 | if test "$ac_test_CFLAGS" = set; then
|
---|
[8063] | 3686 | CFLAGS=$ac_save_CFLAGS
|
---|
[3365] | 3687 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 3688 | if test "$GCC" = yes; then
|
---|
| 3689 | CFLAGS="-g -O2"
|
---|
| 3690 | else
|
---|
| 3691 | CFLAGS="-g"
|
---|
| 3692 | fi
|
---|
| 3693 | else
|
---|
| 3694 | if test "$GCC" = yes; then
|
---|
| 3695 | CFLAGS="-O2"
|
---|
| 3696 | else
|
---|
| 3697 | CFLAGS=
|
---|
| 3698 | fi
|
---|
| 3699 | fi
|
---|
[25170] | 3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
[23356] | 3701 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
[25170] | 3702 | if ${ac_cv_prog_cc_c89+:} false; then :
|
---|
[23356] | 3703 | $as_echo_n "(cached) " >&6
|
---|
[10192] | 3704 | else
|
---|
[23356] | 3705 | ac_cv_prog_cc_c89=no
|
---|
[10192] | 3706 | ac_save_CC=$CC
|
---|
[25170] | 3707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 3708 | /* end confdefs.h. */
|
---|
| 3709 | #include <stdarg.h>
|
---|
| 3710 | #include <stdio.h>
|
---|
[30867] | 3711 | struct stat;
|
---|
[10192] | 3712 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 3713 | struct buf { int x; };
|
---|
| 3714 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 3715 | static char *e (p, i)
|
---|
| 3716 | char **p;
|
---|
| 3717 | int i;
|
---|
| 3718 | {
|
---|
| 3719 | return p[i];
|
---|
| 3720 | }
|
---|
| 3721 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 3722 | {
|
---|
| 3723 | char *s;
|
---|
| 3724 | va_list v;
|
---|
| 3725 | va_start (v,p);
|
---|
| 3726 | s = g (p, va_arg (v,int));
|
---|
| 3727 | va_end (v);
|
---|
| 3728 | return s;
|
---|
| 3729 | }
|
---|
| 3730 |
|
---|
| 3731 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 3732 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 3733 | These don't provoke an error unfortunately, instead are silently treated
|
---|
[23356] | 3734 | as 'x'. The following induces an error, until -std is added to get
|
---|
[10192] | 3735 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 3736 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
[23356] | 3737 | that's true only with -std. */
|
---|
[10192] | 3738 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 3739 |
|
---|
[23356] | 3740 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
| 3741 | inside strings and character constants. */
|
---|
| 3742 | #define FOO(x) 'x'
|
---|
| 3743 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
| 3744 |
|
---|
[10192] | 3745 | int test (int i, double x);
|
---|
| 3746 | struct s1 {int (*f) (int a);};
|
---|
| 3747 | struct s2 {int (*f) (double a);};
|
---|
| 3748 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 3749 | int argc;
|
---|
| 3750 | char **argv;
|
---|
| 3751 | int
|
---|
| 3752 | main ()
|
---|
| 3753 | {
|
---|
| 3754 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 3755 | ;
|
---|
| 3756 | return 0;
|
---|
| 3757 | }
|
---|
| 3758 | _ACEOF
|
---|
[23356] | 3759 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
| 3760 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[10192] | 3761 | do
|
---|
| 3762 | CC="$ac_save_CC $ac_arg"
|
---|
[25170] | 3763 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 3764 | ac_cv_prog_cc_c89=$ac_arg
|
---|
[10192] | 3765 | fi
|
---|
[23356] | 3766 | rm -f core conftest.err conftest.$ac_objext
|
---|
| 3767 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
[10192] | 3768 | done
|
---|
[23356] | 3769 | rm -f conftest.$ac_ext
|
---|
[10192] | 3770 | CC=$ac_save_CC
|
---|
| 3771 |
|
---|
| 3772 | fi
|
---|
[23356] | 3773 | # AC_CACHE_VAL
|
---|
| 3774 | case "x$ac_cv_prog_cc_c89" in
|
---|
| 3775 | x)
|
---|
[25170] | 3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
[23356] | 3777 | $as_echo "none needed" >&6; } ;;
|
---|
| 3778 | xno)
|
---|
[25170] | 3779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
[23356] | 3780 | $as_echo "unsupported" >&6; } ;;
|
---|
[10192] | 3781 | *)
|
---|
[23356] | 3782 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
[25170] | 3783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
[23356] | 3784 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
[10192] | 3785 | esac
|
---|
[25170] | 3786 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
[10192] | 3787 |
|
---|
[25170] | 3788 | fi
|
---|
[22058] | 3789 |
|
---|
[8063] | 3790 | ac_ext=c
|
---|
| 3791 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3792 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3793 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3794 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3795 |
|
---|
[3365] | 3796 | # Find a good install program. We prefer a C program (faster),
|
---|
| 3797 | # so one script is as good as another. But avoid the broken or
|
---|
| 3798 | # incompatible versions:
|
---|
| 3799 | # SysV /etc/install, /usr/sbin/install
|
---|
| 3800 | # SunOS /usr/etc/install
|
---|
| 3801 | # IRIX /sbin/install
|
---|
| 3802 | # AIX /bin/install
|
---|
[8063] | 3803 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
[3365] | 3804 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 3805 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 3806 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[10192] | 3807 | # OS/2's system install, which has a completely different semantic
|
---|
[3365] | 3808 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[23356] | 3809 | # Reject install programs that cannot install multiple files.
|
---|
[25170] | 3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
[23356] | 3811 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
[3365] | 3812 | if test -z "$INSTALL"; then
|
---|
[25170] | 3813 | if ${ac_cv_path_install+:} false; then :
|
---|
[23356] | 3814 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3815 | else
|
---|
[10192] | 3816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3817 | for as_dir in $PATH
|
---|
| 3818 | do
|
---|
| 3819 | IFS=$as_save_IFS
|
---|
| 3820 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3821 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 3822 | case $as_dir/ in #((
|
---|
| 3823 | ./ | .// | /[cC]/* | \
|
---|
[10192] | 3824 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
[25170] | 3825 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
[10192] | 3826 | /usr/ucb/* ) ;;
|
---|
| 3827 | *)
|
---|
| 3828 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 3829 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 3830 | # by default.
|
---|
| 3831 | for ac_prog in ginstall scoinst install; do
|
---|
| 3832 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 3833 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[3365] | 3834 | if test $ac_prog = install &&
|
---|
[10192] | 3835 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[3365] | 3836 | # AIX install. It has an incompatible calling convention.
|
---|
| 3837 | :
|
---|
[8063] | 3838 | elif test $ac_prog = install &&
|
---|
[10192] | 3839 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[8063] | 3840 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 3841 | :
|
---|
[3365] | 3842 | else
|
---|
[23356] | 3843 | rm -rf conftest.one conftest.two conftest.dir
|
---|
| 3844 | echo one > conftest.one
|
---|
| 3845 | echo two > conftest.two
|
---|
| 3846 | mkdir conftest.dir
|
---|
| 3847 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
| 3848 | test -s conftest.one && test -s conftest.two &&
|
---|
| 3849 | test -s conftest.dir/conftest.one &&
|
---|
| 3850 | test -s conftest.dir/conftest.two
|
---|
| 3851 | then
|
---|
| 3852 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 3853 | break 3
|
---|
| 3854 | fi
|
---|
[3365] | 3855 | fi
|
---|
| 3856 | fi
|
---|
| 3857 | done
|
---|
[10192] | 3858 | done
|
---|
| 3859 | ;;
|
---|
| 3860 | esac
|
---|
[3365] | 3861 |
|
---|
[25170] | 3862 | done
|
---|
[23356] | 3863 | IFS=$as_save_IFS
|
---|
[10192] | 3864 |
|
---|
[23356] | 3865 | rm -rf conftest.one conftest.two conftest.dir
|
---|
| 3866 |
|
---|
[3365] | 3867 | fi
|
---|
| 3868 | if test "${ac_cv_path_install+set}" = set; then
|
---|
[8063] | 3869 | INSTALL=$ac_cv_path_install
|
---|
[3365] | 3870 | else
|
---|
[23356] | 3871 | # As a last resort, use the slow shell script. Don't cache a
|
---|
| 3872 | # value for INSTALL within a source directory, because that will
|
---|
[3365] | 3873 | # break other packages using the cache if that directory is
|
---|
[23356] | 3874 | # removed, or if the value is a relative name.
|
---|
[8063] | 3875 | INSTALL=$ac_install_sh
|
---|
[3365] | 3876 | fi
|
---|
| 3877 | fi
|
---|
[25170] | 3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
[23356] | 3879 | $as_echo "$INSTALL" >&6; }
|
---|
[3365] | 3880 |
|
---|
| 3881 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 3882 | # It thinks the first close brace ends the variable substitution.
|
---|
| 3883 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 3884 |
|
---|
[8063] | 3885 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
[3365] | 3886 |
|
---|
| 3887 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 3888 |
|
---|
[25170] | 3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
[23356] | 3890 | $as_echo_n "checking whether ln -s works... " >&6; }
|
---|
[8063] | 3891 | LN_S=$as_ln_s
|
---|
| 3892 | if test "$LN_S" = "ln -s"; then
|
---|
[25170] | 3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
[23356] | 3894 | $as_echo "yes" >&6; }
|
---|
[3365] | 3895 | else
|
---|
[25170] | 3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
[23356] | 3897 | $as_echo "no, using $LN_S" >&6; }
|
---|
[3365] | 3898 | fi
|
---|
| 3899 |
|
---|
[25170] | 3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
[23356] | 3901 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
| 3902 | set x ${MAKE-make}
|
---|
| 3903 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
[25170] | 3904 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
---|
[23356] | 3905 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3906 | else
|
---|
[10192] | 3907 | cat >conftest.make <<\_ACEOF
|
---|
[23356] | 3908 | SHELL = /bin/sh
|
---|
[3365] | 3909 | all:
|
---|
[23356] | 3910 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
[10192] | 3911 | _ACEOF
|
---|
[25170] | 3912 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
[23356] | 3913 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
| 3914 | *@@@%%%=?*=@@@%%%*)
|
---|
| 3915 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
| 3916 | *)
|
---|
| 3917 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
| 3918 | esac
|
---|
[8063] | 3919 | rm -f conftest.make
|
---|
[3365] | 3920 | fi
|
---|
[23356] | 3921 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
[25170] | 3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
[23356] | 3923 | $as_echo "yes" >&6; }
|
---|
[3365] | 3924 | SET_MAKE=
|
---|
| 3925 | else
|
---|
[25170] | 3926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3927 | $as_echo "no" >&6; }
|
---|
[3365] | 3928 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3929 | fi
|
---|
| 3930 |
|
---|
[8063] | 3931 | if test -n "$ac_tool_prefix"; then
|
---|
| 3932 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3933 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[25170] | 3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3935 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3936 | if ${ac_cv_prog_RANLIB+:} false; then :
|
---|
[23356] | 3937 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 3938 | else
|
---|
| 3939 | if test -n "$RANLIB"; then
|
---|
| 3940 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3941 | else
|
---|
[10192] | 3942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3943 | for as_dir in $PATH
|
---|
| 3944 | do
|
---|
| 3945 | IFS=$as_save_IFS
|
---|
| 3946 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3947 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 3948 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[10192] | 3949 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
[25170] | 3950 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3951 | break 2
|
---|
| 3952 | fi
|
---|
[8063] | 3953 | done
|
---|
[25170] | 3954 | done
|
---|
[23356] | 3955 | IFS=$as_save_IFS
|
---|
[8063] | 3956 |
|
---|
[3365] | 3957 | fi
|
---|
| 3958 | fi
|
---|
[8063] | 3959 | RANLIB=$ac_cv_prog_RANLIB
|
---|
[3365] | 3960 | if test -n "$RANLIB"; then
|
---|
[25170] | 3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
[23356] | 3962 | $as_echo "$RANLIB" >&6; }
|
---|
[3365] | 3963 | else
|
---|
[25170] | 3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 3965 | $as_echo "no" >&6; }
|
---|
[3365] | 3966 | fi
|
---|
| 3967 |
|
---|
[23356] | 3968 |
|
---|
[8063] | 3969 | fi
|
---|
| 3970 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3971 | ac_ct_RANLIB=$RANLIB
|
---|
| 3972 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3973 | set dummy ranlib; ac_word=$2
|
---|
[25170] | 3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 3975 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 3976 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
|
---|
[23356] | 3977 | $as_echo_n "(cached) " >&6
|
---|
[8063] | 3978 | else
|
---|
| 3979 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3980 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3981 | else
|
---|
[10192] | 3982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3983 | for as_dir in $PATH
|
---|
| 3984 | do
|
---|
| 3985 | IFS=$as_save_IFS
|
---|
| 3986 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 3987 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 3988 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[10192] | 3989 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
[25170] | 3990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10192] | 3991 | break 2
|
---|
| 3992 | fi
|
---|
[8063] | 3993 | done
|
---|
[25170] | 3994 | done
|
---|
[23356] | 3995 | IFS=$as_save_IFS
|
---|
[3365] | 3996 |
|
---|
[8063] | 3997 | fi
|
---|
| 3998 | fi
|
---|
| 3999 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 4000 | if test -n "$ac_ct_RANLIB"; then
|
---|
[25170] | 4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
[23356] | 4002 | $as_echo "$ac_ct_RANLIB" >&6; }
|
---|
[8063] | 4003 | else
|
---|
[25170] | 4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4005 | $as_echo "no" >&6; }
|
---|
[8063] | 4006 | fi
|
---|
| 4007 |
|
---|
[23356] | 4008 | if test "x$ac_ct_RANLIB" = x; then
|
---|
| 4009 | RANLIB=":"
|
---|
| 4010 | else
|
---|
| 4011 | case $cross_compiling:$ac_tool_warned in
|
---|
| 4012 | yes:)
|
---|
[25170] | 4013 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
[23356] | 4014 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 4015 | ac_tool_warned=yes ;;
|
---|
| 4016 | esac
|
---|
| 4017 | RANLIB=$ac_ct_RANLIB
|
---|
| 4018 | fi
|
---|
[8063] | 4019 | else
|
---|
| 4020 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 4021 | fi
|
---|
| 4022 |
|
---|
[23356] | 4023 | if test $ENABLE_JAVA = "1" ; then
|
---|
[10192] | 4024 |
|
---|
| 4025 |
|
---|
[23356] | 4026 | if test "x$JAVA" = x ; then
|
---|
| 4027 | if test x$JAVAPREFIX = x; then
|
---|
| 4028 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
| 4029 | do
|
---|
| 4030 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4031 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 4032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 4033 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 4034 | if ${ac_cv_prog_JAVA+:} false; then :
|
---|
[23356] | 4035 | $as_echo_n "(cached) " >&6
|
---|
| 4036 | else
|
---|
| 4037 | if test -n "$JAVA"; then
|
---|
| 4038 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
| 4039 | else
|
---|
| 4040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4041 | for as_dir in $PATH
|
---|
| 4042 | do
|
---|
| 4043 | IFS=$as_save_IFS
|
---|
| 4044 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4045 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 4046 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 4047 | ac_cv_prog_JAVA="$ac_prog"
|
---|
[25170] | 4048 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 4049 | break 2
|
---|
| 4050 | fi
|
---|
| 4051 | done
|
---|
[25170] | 4052 | done
|
---|
[23356] | 4053 | IFS=$as_save_IFS
|
---|
| 4054 |
|
---|
| 4055 | fi
|
---|
| 4056 | fi
|
---|
| 4057 | JAVA=$ac_cv_prog_JAVA
|
---|
| 4058 | if test -n "$JAVA"; then
|
---|
[25170] | 4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
[23356] | 4060 | $as_echo "$JAVA" >&6; }
|
---|
| 4061 | else
|
---|
[25170] | 4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4063 | $as_echo "no" >&6; }
|
---|
| 4064 | fi
|
---|
| 4065 |
|
---|
| 4066 |
|
---|
| 4067 | test -n "$JAVA" && break
|
---|
| 4068 | done
|
---|
| 4069 |
|
---|
| 4070 | else
|
---|
| 4071 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
| 4072 | do
|
---|
| 4073 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4074 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 4076 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 4077 | if ${ac_cv_prog_JAVA+:} false; then :
|
---|
[23356] | 4078 | $as_echo_n "(cached) " >&6
|
---|
| 4079 | else
|
---|
| 4080 | if test -n "$JAVA"; then
|
---|
| 4081 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
| 4082 | else
|
---|
| 4083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4084 | for as_dir in $PATH
|
---|
| 4085 | do
|
---|
| 4086 | IFS=$as_save_IFS
|
---|
| 4087 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4088 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 4089 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 4090 | ac_cv_prog_JAVA="$ac_prog"
|
---|
[25170] | 4091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 4092 | break 2
|
---|
| 4093 | fi
|
---|
| 4094 | done
|
---|
[25170] | 4095 | done
|
---|
[23356] | 4096 | IFS=$as_save_IFS
|
---|
| 4097 |
|
---|
| 4098 | fi
|
---|
| 4099 | fi
|
---|
| 4100 | JAVA=$ac_cv_prog_JAVA
|
---|
| 4101 | if test -n "$JAVA"; then
|
---|
[25170] | 4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
[23356] | 4103 | $as_echo "$JAVA" >&6; }
|
---|
| 4104 | else
|
---|
[25170] | 4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4106 | $as_echo "no" >&6; }
|
---|
| 4107 | fi
|
---|
| 4108 |
|
---|
| 4109 |
|
---|
| 4110 | test -n "$JAVA" && break
|
---|
| 4111 | done
|
---|
| 4112 | test -n "$JAVA" || JAVA="$JAVAPREFIX"
|
---|
| 4113 |
|
---|
| 4114 | fi
|
---|
[25170] | 4115 | test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
|
---|
[23356] | 4116 | fi
|
---|
| 4117 |
|
---|
| 4118 |
|
---|
| 4119 | # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
|
---|
| 4120 | set dummy uudecode$EXEEXT; ac_word=$2
|
---|
[25170] | 4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 4122 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 4123 | if ${ac_cv_prog_uudecode+:} false; then :
|
---|
[23356] | 4124 | $as_echo_n "(cached) " >&6
|
---|
| 4125 | else
|
---|
| 4126 | if test -n "$uudecode"; then
|
---|
| 4127 | ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
|
---|
| 4128 | else
|
---|
| 4129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4130 | for as_dir in $PATH
|
---|
| 4131 | do
|
---|
| 4132 | IFS=$as_save_IFS
|
---|
| 4133 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4134 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 4135 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 4136 | ac_cv_prog_uudecode="yes"
|
---|
[25170] | 4137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 4138 | break 2
|
---|
| 4139 | fi
|
---|
| 4140 | done
|
---|
[25170] | 4141 | done
|
---|
[23356] | 4142 | IFS=$as_save_IFS
|
---|
| 4143 |
|
---|
| 4144 | fi
|
---|
| 4145 | fi
|
---|
| 4146 | uudecode=$ac_cv_prog_uudecode
|
---|
| 4147 | if test -n "$uudecode"; then
|
---|
[25170] | 4148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
|
---|
[23356] | 4149 | $as_echo "$uudecode" >&6; }
|
---|
| 4150 | else
|
---|
[25170] | 4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4152 | $as_echo "no" >&6; }
|
---|
| 4153 | fi
|
---|
| 4154 |
|
---|
| 4155 |
|
---|
| 4156 | if test x$uudecode = xyes; then
|
---|
[25170] | 4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
|
---|
[23356] | 4158 | $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
|
---|
[25170] | 4159 | if ${ac_cv_prog_uudecode_base64+:} false; then :
|
---|
[23356] | 4160 | $as_echo_n "(cached) " >&6
|
---|
| 4161 | else
|
---|
| 4162 |
|
---|
| 4163 | cat << \EOF > Test.uue
|
---|
| 4164 | begin-base64 644 Test.class
|
---|
| 4165 | yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
|
---|
| 4166 | bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
|
---|
| 4167 | bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
|
---|
| 4168 | YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
|
---|
| 4169 | aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
|
---|
| 4170 | AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
|
---|
| 4171 | AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
|
---|
| 4172 | ====
|
---|
| 4173 | EOF
|
---|
| 4174 | if uudecode$EXEEXT Test.uue; then
|
---|
| 4175 | ac_cv_prog_uudecode_base64=yes
|
---|
| 4176 | else
|
---|
[30867] | 4177 | echo "configure: 4177: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
|
---|
[23356] | 4178 | echo "configure: failed file was:" >&5
|
---|
| 4179 | cat Test.uue >&5
|
---|
| 4180 | ac_cv_prog_uudecode_base64=no
|
---|
| 4181 | fi
|
---|
| 4182 | rm -f Test.uue
|
---|
| 4183 | fi
|
---|
[25170] | 4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
|
---|
[23356] | 4185 | $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
|
---|
| 4186 | fi
|
---|
| 4187 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
| 4188 | rm -f Test.class
|
---|
[25170] | 4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
|
---|
[23356] | 4190 | $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
|
---|
| 4191 | if test x$ac_cv_prog_javac_works = xno; then
|
---|
[25170] | 4192 | as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
|
---|
[23356] | 4193 | fi
|
---|
| 4194 | if test x$ac_cv_prog_javac_works = x; then
|
---|
| 4195 |
|
---|
| 4196 | if test "x$JAVAC" = x ; then
|
---|
| 4197 | if test "x$JAVAPREFIX" = x; then
|
---|
| 4198 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 4199 | do
|
---|
| 4200 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4201 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 4202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 4203 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 4204 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
[23356] | 4205 | $as_echo_n "(cached) " >&6
|
---|
| 4206 | else
|
---|
| 4207 | if test -n "$JAVAC"; then
|
---|
| 4208 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 4209 | else
|
---|
| 4210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4211 | for as_dir in $PATH
|
---|
| 4212 | do
|
---|
| 4213 | IFS=$as_save_IFS
|
---|
| 4214 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4215 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 4216 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 4217 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[25170] | 4218 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 4219 | break 2
|
---|
| 4220 | fi
|
---|
| 4221 | done
|
---|
[25170] | 4222 | done
|
---|
[23356] | 4223 | IFS=$as_save_IFS
|
---|
| 4224 |
|
---|
| 4225 | fi
|
---|
| 4226 | fi
|
---|
| 4227 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 4228 | if test -n "$JAVAC"; then
|
---|
[25170] | 4229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
[23356] | 4230 | $as_echo "$JAVAC" >&6; }
|
---|
| 4231 | else
|
---|
[25170] | 4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4233 | $as_echo "no" >&6; }
|
---|
| 4234 | fi
|
---|
| 4235 |
|
---|
| 4236 |
|
---|
| 4237 | test -n "$JAVAC" && break
|
---|
| 4238 | done
|
---|
| 4239 |
|
---|
| 4240 | else
|
---|
| 4241 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 4242 | do
|
---|
| 4243 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4244 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 4245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 4246 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 4247 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
[23356] | 4248 | $as_echo_n "(cached) " >&6
|
---|
| 4249 | else
|
---|
| 4250 | if test -n "$JAVAC"; then
|
---|
| 4251 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 4252 | else
|
---|
| 4253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4254 | for as_dir in $PATH
|
---|
| 4255 | do
|
---|
| 4256 | IFS=$as_save_IFS
|
---|
| 4257 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4258 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 4259 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 4260 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[25170] | 4261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 4262 | break 2
|
---|
| 4263 | fi
|
---|
| 4264 | done
|
---|
[25170] | 4265 | done
|
---|
[23356] | 4266 | IFS=$as_save_IFS
|
---|
| 4267 |
|
---|
| 4268 | fi
|
---|
| 4269 | fi
|
---|
| 4270 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 4271 | if test -n "$JAVAC"; then
|
---|
[25170] | 4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
[23356] | 4273 | $as_echo "$JAVAC" >&6; }
|
---|
| 4274 | else
|
---|
[25170] | 4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4276 | $as_echo "no" >&6; }
|
---|
| 4277 | fi
|
---|
| 4278 |
|
---|
| 4279 |
|
---|
| 4280 | test -n "$JAVAC" && break
|
---|
| 4281 | done
|
---|
| 4282 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
| 4283 |
|
---|
| 4284 | fi
|
---|
[25170] | 4285 | test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
[23356] | 4286 | else
|
---|
| 4287 | echo "Checking for javac... $JAVAC"
|
---|
| 4288 | fi
|
---|
| 4289 |
|
---|
| 4290 |
|
---|
[25170] | 4291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
[23356] | 4292 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
[25170] | 4293 | if ${ac_cv_prog_javac_works+:} false; then :
|
---|
[23356] | 4294 | $as_echo_n "(cached) " >&6
|
---|
| 4295 | else
|
---|
| 4296 |
|
---|
| 4297 | JAVA_TEST=Test.java
|
---|
| 4298 | CLASS_TEST=Test.class
|
---|
| 4299 | cat << \EOF > $JAVA_TEST
|
---|
[30867] | 4300 | /* #line 4300 "configure" */
|
---|
[23356] | 4301 | public class Test {
|
---|
| 4302 | }
|
---|
| 4303 | EOF
|
---|
| 4304 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
[25170] | 4305 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
[23356] | 4306 | (eval $ac_try) 2>&5
|
---|
| 4307 | ac_status=$?
|
---|
[25170] | 4308 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 4309 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
[23356] | 4310 | ac_cv_prog_javac_works=yes
|
---|
| 4311 | else
|
---|
[25170] | 4312 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
[23356] | 4313 | echo "configure: failed program was:" >&5
|
---|
| 4314 | cat $JAVA_TEST >&5
|
---|
| 4315 | fi
|
---|
| 4316 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
| 4317 |
|
---|
| 4318 | fi
|
---|
[25170] | 4319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
[23356] | 4320 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
| 4321 | if test "x$JAVACFLAGS" = x ; then
|
---|
| 4322 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
| 4323 | fi
|
---|
| 4324 |
|
---|
| 4325 |
|
---|
| 4326 |
|
---|
| 4327 | fi
|
---|
| 4328 | fi
|
---|
[25170] | 4329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
|
---|
[23356] | 4330 | $as_echo_n "checking if $JAVA works... " >&6; }
|
---|
[25170] | 4331 | if ${ac_cv_prog_java_works+:} false; then :
|
---|
[23356] | 4332 | $as_echo_n "(cached) " >&6
|
---|
| 4333 | else
|
---|
| 4334 |
|
---|
| 4335 | JAVA_TEST=Test.java
|
---|
| 4336 | CLASS_TEST=Test.class
|
---|
| 4337 | TEST=Test
|
---|
| 4338 | cat << \EOF > $JAVA_TEST
|
---|
[30867] | 4339 | /* [#]line 4339 "configure" */
|
---|
[23356] | 4340 | public class Test {
|
---|
| 4341 | public static void main (String args[]) {
|
---|
| 4342 | System.exit (0);
|
---|
| 4343 | } }
|
---|
| 4344 | EOF
|
---|
| 4345 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
| 4346 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
[25170] | 4347 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
[23356] | 4348 | (eval $ac_try) 2>&5
|
---|
| 4349 | ac_status=$?
|
---|
[25170] | 4350 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 4351 | test $ac_status = 0; }; } && test -s $CLASS_TEST; then
|
---|
[23356] | 4352 | :
|
---|
| 4353 | else
|
---|
| 4354 | echo "configure: failed program was:" >&5
|
---|
| 4355 | cat $JAVA_TEST >&5
|
---|
[25170] | 4356 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
[23356] | 4357 | fi
|
---|
| 4358 | fi
|
---|
| 4359 | if { ac_try='$JAVA $JAVAFLAGS $TEST'
|
---|
[25170] | 4360 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
[23356] | 4361 | (eval $ac_try) 2>&5
|
---|
| 4362 | ac_status=$?
|
---|
[25170] | 4363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 4364 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
[23356] | 4365 | ac_cv_prog_java_works=yes
|
---|
| 4366 | else
|
---|
| 4367 | echo "configure: failed program was:" >&5
|
---|
| 4368 | cat $JAVA_TEST >&5
|
---|
[25170] | 4369 | as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
[23356] | 4370 | fi
|
---|
| 4371 | rm -fr $JAVA_TEST $CLASS_TEST Test.uue
|
---|
| 4372 |
|
---|
| 4373 | fi
|
---|
[25170] | 4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
|
---|
[23356] | 4375 | $as_echo "$ac_cv_prog_java_works" >&6; }
|
---|
| 4376 |
|
---|
| 4377 |
|
---|
| 4378 |
|
---|
| 4379 |
|
---|
| 4380 | if test "x$JAVAC" = x ; then
|
---|
| 4381 | if test "x$JAVAPREFIX" = x; then
|
---|
| 4382 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 4383 | do
|
---|
| 4384 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4385 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 4387 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 4388 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
[23356] | 4389 | $as_echo_n "(cached) " >&6
|
---|
| 4390 | else
|
---|
| 4391 | if test -n "$JAVAC"; then
|
---|
| 4392 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 4393 | else
|
---|
| 4394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4395 | for as_dir in $PATH
|
---|
| 4396 | do
|
---|
| 4397 | IFS=$as_save_IFS
|
---|
| 4398 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4399 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 4400 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 4401 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[25170] | 4402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 4403 | break 2
|
---|
| 4404 | fi
|
---|
| 4405 | done
|
---|
[25170] | 4406 | done
|
---|
[23356] | 4407 | IFS=$as_save_IFS
|
---|
| 4408 |
|
---|
| 4409 | fi
|
---|
| 4410 | fi
|
---|
| 4411 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 4412 | if test -n "$JAVAC"; then
|
---|
[25170] | 4413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
[23356] | 4414 | $as_echo "$JAVAC" >&6; }
|
---|
| 4415 | else
|
---|
[25170] | 4416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4417 | $as_echo "no" >&6; }
|
---|
| 4418 | fi
|
---|
| 4419 |
|
---|
| 4420 |
|
---|
| 4421 | test -n "$JAVAC" && break
|
---|
| 4422 | done
|
---|
| 4423 |
|
---|
| 4424 | else
|
---|
| 4425 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 4426 | do
|
---|
| 4427 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4428 | set dummy $ac_prog; ac_word=$2
|
---|
[25170] | 4429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
[23356] | 4430 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
[25170] | 4431 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
[23356] | 4432 | $as_echo_n "(cached) " >&6
|
---|
| 4433 | else
|
---|
| 4434 | if test -n "$JAVAC"; then
|
---|
| 4435 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 4436 | else
|
---|
| 4437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4438 | for as_dir in $PATH
|
---|
| 4439 | do
|
---|
| 4440 | IFS=$as_save_IFS
|
---|
| 4441 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4442 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[30867] | 4443 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 4444 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[25170] | 4445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 4446 | break 2
|
---|
| 4447 | fi
|
---|
| 4448 | done
|
---|
[25170] | 4449 | done
|
---|
[23356] | 4450 | IFS=$as_save_IFS
|
---|
| 4451 |
|
---|
| 4452 | fi
|
---|
| 4453 | fi
|
---|
| 4454 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 4455 | if test -n "$JAVAC"; then
|
---|
[25170] | 4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
[23356] | 4457 | $as_echo "$JAVAC" >&6; }
|
---|
| 4458 | else
|
---|
[25170] | 4459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 4460 | $as_echo "no" >&6; }
|
---|
| 4461 | fi
|
---|
| 4462 |
|
---|
| 4463 |
|
---|
| 4464 | test -n "$JAVAC" && break
|
---|
| 4465 | done
|
---|
| 4466 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
| 4467 |
|
---|
| 4468 | fi
|
---|
[25170] | 4469 | test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
[23356] | 4470 | else
|
---|
| 4471 | echo "Checking for javac... $JAVAC"
|
---|
| 4472 | fi
|
---|
| 4473 |
|
---|
| 4474 |
|
---|
[25170] | 4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
[23356] | 4476 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
[25170] | 4477 | if ${ac_cv_prog_javac_works+:} false; then :
|
---|
[23356] | 4478 | $as_echo_n "(cached) " >&6
|
---|
| 4479 | else
|
---|
| 4480 |
|
---|
| 4481 | JAVA_TEST=Test.java
|
---|
| 4482 | CLASS_TEST=Test.class
|
---|
| 4483 | cat << \EOF > $JAVA_TEST
|
---|
[30867] | 4484 | /* #line 4484 "configure" */
|
---|
[23356] | 4485 | public class Test {
|
---|
| 4486 | }
|
---|
| 4487 | EOF
|
---|
| 4488 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
[25170] | 4489 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
[23356] | 4490 | (eval $ac_try) 2>&5
|
---|
| 4491 | ac_status=$?
|
---|
[25170] | 4492 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 4493 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
[23356] | 4494 | ac_cv_prog_javac_works=yes
|
---|
| 4495 | else
|
---|
[25170] | 4496 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
[23356] | 4497 | echo "configure: failed program was:" >&5
|
---|
| 4498 | cat $JAVA_TEST >&5
|
---|
| 4499 | fi
|
---|
| 4500 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
| 4501 |
|
---|
| 4502 | fi
|
---|
[25170] | 4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
[23356] | 4504 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
| 4505 | if test "x$JAVACFLAGS" = x ; then
|
---|
| 4506 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
| 4507 | fi
|
---|
| 4508 |
|
---|
| 4509 |
|
---|
| 4510 |
|
---|
| 4511 | fi
|
---|
| 4512 |
|
---|
| 4513 |
|
---|
[8063] | 4514 | ac_ext=c
|
---|
| 4515 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4516 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4517 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4518 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[25170] | 4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
[23356] | 4520 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
[3365] | 4521 | # On Suns, sometimes $CPP names a directory.
|
---|
| 4522 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 4523 | CPP=
|
---|
| 4524 | fi
|
---|
| 4525 | if test -z "$CPP"; then
|
---|
[25170] | 4526 | if ${ac_cv_prog_CPP+:} false; then :
|
---|
[23356] | 4527 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 4528 | else
|
---|
[8063] | 4529 | # Double quotes because CPP needs to be expanded
|
---|
| 4530 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 4531 | do
|
---|
| 4532 | ac_preproc_ok=false
|
---|
| 4533 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 4534 | do
|
---|
| 4535 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 4536 | # with a fresh cross-compiler works.
|
---|
[10192] | 4537 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 4538 | # <limits.h> exists even on freestanding compilers.
|
---|
[3365] | 4539 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
[8063] | 4540 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[25170] | 4541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4542 | /* end confdefs.h. */
|
---|
| 4543 | #ifdef __STDC__
|
---|
| 4544 | # include <limits.h>
|
---|
| 4545 | #else
|
---|
| 4546 | # include <assert.h>
|
---|
| 4547 | #endif
|
---|
| 4548 | Syntax error
|
---|
| 4549 | _ACEOF
|
---|
[25170] | 4550 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 4551 |
|
---|
[25148] | 4552 | else
|
---|
[8063] | 4553 | # Broken: fails on valid input.
|
---|
| 4554 | continue
|
---|
| 4555 | fi
|
---|
[25170] | 4556 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
[25148] | 4557 |
|
---|
[23356] | 4558 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
[8063] | 4559 | # can be detected and how.
|
---|
[25170] | 4560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4561 | /* end confdefs.h. */
|
---|
[8063] | 4562 | #include <ac_nonexistent.h>
|
---|
| 4563 | _ACEOF
|
---|
[25170] | 4564 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
[8063] | 4565 | # Broken: success on invalid input.
|
---|
| 4566 | continue
|
---|
| 4567 | else
|
---|
| 4568 | # Passes both tests.
|
---|
| 4569 | ac_preproc_ok=:
|
---|
| 4570 | break
|
---|
| 4571 | fi
|
---|
[25170] | 4572 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
[25148] | 4573 |
|
---|
[8063] | 4574 | done
|
---|
| 4575 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[25170] | 4576 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
| 4577 | if $ac_preproc_ok; then :
|
---|
[10192] | 4578 | break
|
---|
[8063] | 4579 | fi
|
---|
| 4580 |
|
---|
| 4581 | done
|
---|
| 4582 | ac_cv_prog_CPP=$CPP
|
---|
| 4583 |
|
---|
| 4584 | fi
|
---|
| 4585 | CPP=$ac_cv_prog_CPP
|
---|
| 4586 | else
|
---|
| 4587 | ac_cv_prog_CPP=$CPP
|
---|
| 4588 | fi
|
---|
[25170] | 4589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
[23356] | 4590 | $as_echo "$CPP" >&6; }
|
---|
[8063] | 4591 | ac_preproc_ok=false
|
---|
| 4592 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 4593 | do
|
---|
| 4594 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 4595 | # with a fresh cross-compiler works.
|
---|
[10192] | 4596 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 4597 | # <limits.h> exists even on freestanding compilers.
|
---|
[8063] | 4598 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 4599 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[25170] | 4600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4601 | /* end confdefs.h. */
|
---|
| 4602 | #ifdef __STDC__
|
---|
| 4603 | # include <limits.h>
|
---|
| 4604 | #else
|
---|
| 4605 | # include <assert.h>
|
---|
| 4606 | #endif
|
---|
| 4607 | Syntax error
|
---|
| 4608 | _ACEOF
|
---|
[25170] | 4609 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 4610 |
|
---|
[25148] | 4611 | else
|
---|
[8063] | 4612 | # Broken: fails on valid input.
|
---|
| 4613 | continue
|
---|
[3365] | 4614 | fi
|
---|
[25170] | 4615 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
[25148] | 4616 |
|
---|
[23356] | 4617 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
[8063] | 4618 | # can be detected and how.
|
---|
[25170] | 4619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4620 | /* end confdefs.h. */
|
---|
[8063] | 4621 | #include <ac_nonexistent.h>
|
---|
| 4622 | _ACEOF
|
---|
[25170] | 4623 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
[8063] | 4624 | # Broken: success on invalid input.
|
---|
| 4625 | continue
|
---|
| 4626 | else
|
---|
| 4627 | # Passes both tests.
|
---|
| 4628 | ac_preproc_ok=:
|
---|
| 4629 | break
|
---|
[3365] | 4630 | fi
|
---|
[25170] | 4631 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
[25148] | 4632 |
|
---|
[8063] | 4633 | done
|
---|
| 4634 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[25170] | 4635 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
| 4636 | if $ac_preproc_ok; then :
|
---|
| 4637 |
|
---|
[3365] | 4638 | else
|
---|
[25170] | 4639 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 4640 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25170] | 4641 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
| 4642 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
[3365] | 4643 | fi
|
---|
| 4644 |
|
---|
[8063] | 4645 | ac_ext=c
|
---|
| 4646 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4647 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4648 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4649 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 4650 |
|
---|
[10192] | 4651 |
|
---|
[25170] | 4652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
[23356] | 4653 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
[25170] | 4654 | if ${ac_cv_path_GREP+:} false; then :
|
---|
[23356] | 4655 | $as_echo_n "(cached) " >&6
|
---|
[10192] | 4656 | else
|
---|
[23356] | 4657 | if test -z "$GREP"; then
|
---|
| 4658 | ac_path_GREP_found=false
|
---|
| 4659 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 4660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4661 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 4662 | do
|
---|
| 4663 | IFS=$as_save_IFS
|
---|
| 4664 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4665 | for ac_prog in grep ggrep; do
|
---|
[23356] | 4666 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4667 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
[30867] | 4668 | as_fn_executable_p "$ac_path_GREP" || continue
|
---|
[23356] | 4669 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
| 4670 | # Check for GNU $ac_path_GREP
|
---|
| 4671 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
| 4672 | *GNU*)
|
---|
| 4673 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
| 4674 | *)
|
---|
| 4675 | ac_count=0
|
---|
| 4676 | $as_echo_n 0123456789 >"conftest.in"
|
---|
| 4677 | while :
|
---|
| 4678 | do
|
---|
| 4679 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 4680 | mv "conftest.tmp" "conftest.in"
|
---|
| 4681 | cp "conftest.in" "conftest.nl"
|
---|
| 4682 | $as_echo 'GREP' >> "conftest.nl"
|
---|
| 4683 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 4684 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
[25170] | 4685 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
[23356] | 4686 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
| 4687 | # Best one so far, save it but keep looking for a better one
|
---|
| 4688 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
| 4689 | ac_path_GREP_max=$ac_count
|
---|
[10192] | 4690 | fi
|
---|
[23356] | 4691 | # 10*(2^10) chars as input seems more than enough
|
---|
| 4692 | test $ac_count -gt 10 && break
|
---|
| 4693 | done
|
---|
| 4694 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 4695 | esac
|
---|
[10192] | 4696 |
|
---|
[23356] | 4697 | $ac_path_GREP_found && break 3
|
---|
| 4698 | done
|
---|
| 4699 | done
|
---|
[25170] | 4700 | done
|
---|
[23356] | 4701 | IFS=$as_save_IFS
|
---|
| 4702 | if test -z "$ac_cv_path_GREP"; then
|
---|
[25170] | 4703 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
[23356] | 4704 | fi
|
---|
[3365] | 4705 | else
|
---|
[23356] | 4706 | ac_cv_path_GREP=$GREP
|
---|
[3365] | 4707 | fi
|
---|
| 4708 |
|
---|
[23356] | 4709 | fi
|
---|
[25170] | 4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
[23356] | 4711 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
| 4712 | GREP="$ac_cv_path_GREP"
|
---|
[8063] | 4713 |
|
---|
[3365] | 4714 |
|
---|
[25170] | 4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
[23356] | 4716 | $as_echo_n "checking for egrep... " >&6; }
|
---|
[25170] | 4717 | if ${ac_cv_path_EGREP+:} false; then :
|
---|
[23356] | 4718 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 4719 | else
|
---|
[23356] | 4720 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
| 4721 | then ac_cv_path_EGREP="$GREP -E"
|
---|
| 4722 | else
|
---|
| 4723 | if test -z "$EGREP"; then
|
---|
| 4724 | ac_path_EGREP_found=false
|
---|
| 4725 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 4726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4727 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 4728 | do
|
---|
| 4729 | IFS=$as_save_IFS
|
---|
| 4730 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 4731 | for ac_prog in egrep; do
|
---|
[23356] | 4732 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4733 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
[30867] | 4734 | as_fn_executable_p "$ac_path_EGREP" || continue
|
---|
[23356] | 4735 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
| 4736 | # Check for GNU $ac_path_EGREP
|
---|
| 4737 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
| 4738 | *GNU*)
|
---|
| 4739 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
| 4740 | *)
|
---|
| 4741 | ac_count=0
|
---|
| 4742 | $as_echo_n 0123456789 >"conftest.in"
|
---|
| 4743 | while :
|
---|
| 4744 | do
|
---|
| 4745 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 4746 | mv "conftest.tmp" "conftest.in"
|
---|
| 4747 | cp "conftest.in" "conftest.nl"
|
---|
| 4748 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
| 4749 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 4750 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
[25170] | 4751 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
[23356] | 4752 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
| 4753 | # Best one so far, save it but keep looking for a better one
|
---|
| 4754 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
| 4755 | ac_path_EGREP_max=$ac_count
|
---|
| 4756 | fi
|
---|
| 4757 | # 10*(2^10) chars as input seems more than enough
|
---|
| 4758 | test $ac_count -gt 10 && break
|
---|
| 4759 | done
|
---|
| 4760 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 4761 | esac
|
---|
[10192] | 4762 |
|
---|
[23356] | 4763 | $ac_path_EGREP_found && break 3
|
---|
| 4764 | done
|
---|
| 4765 | done
|
---|
[25170] | 4766 | done
|
---|
[23356] | 4767 | IFS=$as_save_IFS
|
---|
| 4768 | if test -z "$ac_cv_path_EGREP"; then
|
---|
[25170] | 4769 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
[23356] | 4770 | fi
|
---|
[10192] | 4771 | else
|
---|
[23356] | 4772 | ac_cv_path_EGREP=$EGREP
|
---|
[10192] | 4773 | fi
|
---|
| 4774 |
|
---|
[23356] | 4775 | fi
|
---|
[10192] | 4776 | fi
|
---|
[25170] | 4777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
[23356] | 4778 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
| 4779 | EGREP="$ac_cv_path_EGREP"
|
---|
[10192] | 4780 |
|
---|
[23356] | 4781 |
|
---|
[25170] | 4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
[23356] | 4783 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
[25170] | 4784 | if ${ac_cv_header_stdc+:} false; then :
|
---|
[23356] | 4785 | $as_echo_n "(cached) " >&6
|
---|
[10192] | 4786 | else
|
---|
[25170] | 4787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4788 | /* end confdefs.h. */
|
---|
| 4789 | #include <stdlib.h>
|
---|
| 4790 | #include <stdarg.h>
|
---|
| 4791 | #include <string.h>
|
---|
| 4792 | #include <float.h>
|
---|
| 4793 |
|
---|
| 4794 | int
|
---|
| 4795 | main ()
|
---|
| 4796 | {
|
---|
| 4797 |
|
---|
| 4798 | ;
|
---|
| 4799 | return 0;
|
---|
| 4800 | }
|
---|
| 4801 | _ACEOF
|
---|
[25170] | 4802 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10192] | 4803 | ac_cv_header_stdc=yes
|
---|
| 4804 | else
|
---|
[25170] | 4805 | ac_cv_header_stdc=no
|
---|
[10192] | 4806 | fi
|
---|
[23356] | 4807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10192] | 4808 |
|
---|
| 4809 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4810 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[25170] | 4811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4812 | /* end confdefs.h. */
|
---|
| 4813 | #include <string.h>
|
---|
| 4814 |
|
---|
| 4815 | _ACEOF
|
---|
| 4816 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 4817 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
| 4818 |
|
---|
[10192] | 4819 | else
|
---|
| 4820 | ac_cv_header_stdc=no
|
---|
| 4821 | fi
|
---|
| 4822 | rm -f conftest*
|
---|
| 4823 |
|
---|
| 4824 | fi
|
---|
| 4825 |
|
---|
| 4826 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4827 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[25170] | 4828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4829 | /* end confdefs.h. */
|
---|
| 4830 | #include <stdlib.h>
|
---|
| 4831 |
|
---|
| 4832 | _ACEOF
|
---|
| 4833 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 4834 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
| 4835 |
|
---|
[10192] | 4836 | else
|
---|
| 4837 | ac_cv_header_stdc=no
|
---|
| 4838 | fi
|
---|
| 4839 | rm -f conftest*
|
---|
| 4840 |
|
---|
| 4841 | fi
|
---|
| 4842 |
|
---|
| 4843 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4844 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[25170] | 4845 | if test "$cross_compiling" = yes; then :
|
---|
[10192] | 4846 | :
|
---|
| 4847 | else
|
---|
[25170] | 4848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4849 | /* end confdefs.h. */
|
---|
| 4850 | #include <ctype.h>
|
---|
[23356] | 4851 | #include <stdlib.h>
|
---|
[10192] | 4852 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 4853 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 4854 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 4855 | #else
|
---|
| 4856 | # define ISLOWER(c) \
|
---|
| 4857 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 4858 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 4859 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 4860 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 4861 | #endif
|
---|
| 4862 |
|
---|
| 4863 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 4864 | int
|
---|
| 4865 | main ()
|
---|
| 4866 | {
|
---|
| 4867 | int i;
|
---|
| 4868 | for (i = 0; i < 256; i++)
|
---|
| 4869 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 4870 | || toupper (i) != TOUPPER (i))
|
---|
[23356] | 4871 | return 2;
|
---|
| 4872 | return 0;
|
---|
[10192] | 4873 | }
|
---|
| 4874 | _ACEOF
|
---|
[25170] | 4875 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
| 4876 |
|
---|
[25148] | 4877 | else
|
---|
[25170] | 4878 | ac_cv_header_stdc=no
|
---|
[10192] | 4879 | fi
|
---|
[25170] | 4880 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 4881 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[10192] | 4882 | fi
|
---|
[23356] | 4883 |
|
---|
[10192] | 4884 | fi
|
---|
| 4885 | fi
|
---|
[25170] | 4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
[23356] | 4887 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
[10192] | 4888 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4889 |
|
---|
[25170] | 4890 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
[10192] | 4891 |
|
---|
| 4892 | fi
|
---|
| 4893 |
|
---|
| 4894 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
[23356] | 4895 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 4896 | inttypes.h stdint.h unistd.h
|
---|
[25170] | 4897 | do :
|
---|
| 4898 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 4899 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
| 4900 | "
|
---|
| 4901 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
[23356] | 4902 | cat >>confdefs.h <<_ACEOF
|
---|
| 4903 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 4904 | _ACEOF
|
---|
[10192] | 4905 |
|
---|
[23356] | 4906 | fi
|
---|
[10192] | 4907 |
|
---|
[23356] | 4908 | done
|
---|
[10192] | 4909 |
|
---|
| 4910 |
|
---|
| 4911 |
|
---|
[25170] | 4912 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
---|
| 4913 | if test "x$ac_cv_header_minix_config_h" = xyes; then :
|
---|
[23356] | 4914 | MINIX=yes
|
---|
| 4915 | else
|
---|
| 4916 | MINIX=
|
---|
| 4917 | fi
|
---|
[10192] | 4918 |
|
---|
| 4919 |
|
---|
[23356] | 4920 | if test "$MINIX" = yes; then
|
---|
[10192] | 4921 |
|
---|
[25170] | 4922 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
---|
[10192] | 4923 |
|
---|
[23356] | 4924 |
|
---|
[25170] | 4925 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
---|
[23356] | 4926 |
|
---|
| 4927 |
|
---|
[25170] | 4928 | $as_echo "#define _MINIX 1" >>confdefs.h
|
---|
[23356] | 4929 |
|
---|
| 4930 | fi
|
---|
| 4931 |
|
---|
| 4932 |
|
---|
[25170] | 4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
---|
[23356] | 4934 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
---|
[25170] | 4935 | if ${ac_cv_safe_to_define___extensions__+:} false; then :
|
---|
[23356] | 4936 | $as_echo_n "(cached) " >&6
|
---|
[10192] | 4937 | else
|
---|
[25170] | 4938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4939 | /* end confdefs.h. */
|
---|
| 4940 |
|
---|
[30867] | 4941 | # define __EXTENSIONS__ 1
|
---|
| 4942 | $ac_includes_default
|
---|
[23356] | 4943 | int
|
---|
| 4944 | main ()
|
---|
| 4945 | {
|
---|
| 4946 |
|
---|
| 4947 | ;
|
---|
| 4948 | return 0;
|
---|
| 4949 | }
|
---|
[10192] | 4950 | _ACEOF
|
---|
[25170] | 4951 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 4952 | ac_cv_safe_to_define___extensions__=yes
|
---|
[10192] | 4953 | else
|
---|
[25170] | 4954 | ac_cv_safe_to_define___extensions__=no
|
---|
[10192] | 4955 | fi
|
---|
[23356] | 4956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10192] | 4957 | fi
|
---|
[25170] | 4958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
---|
[23356] | 4959 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
---|
| 4960 | test $ac_cv_safe_to_define___extensions__ = yes &&
|
---|
[25170] | 4961 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
---|
[10192] | 4962 |
|
---|
[25170] | 4963 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
---|
[10192] | 4964 |
|
---|
[25170] | 4965 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
---|
[10192] | 4966 |
|
---|
[25170] | 4967 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
---|
[10192] | 4968 |
|
---|
[25170] | 4969 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
---|
[23356] | 4970 |
|
---|
| 4971 |
|
---|
[25170] | 4972 |
|
---|
| 4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
|
---|
[23356] | 4974 | $as_echo_n "checking for library containing strerror... " >&6; }
|
---|
[25170] | 4975 | if ${ac_cv_search_strerror+:} false; then :
|
---|
[23356] | 4976 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 4977 | else
|
---|
[23356] | 4978 | ac_func_search_save_LIBS=$LIBS
|
---|
[25170] | 4979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 4980 | /* end confdefs.h. */
|
---|
| 4981 |
|
---|
[23356] | 4982 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 4983 | Use char because int might match the return type of a GCC
|
---|
| 4984 | builtin and then its argument prototype would still apply. */
|
---|
| 4985 | #ifdef __cplusplus
|
---|
| 4986 | extern "C"
|
---|
| 4987 | #endif
|
---|
| 4988 | char strerror ();
|
---|
| 4989 | int
|
---|
| 4990 | main ()
|
---|
| 4991 | {
|
---|
| 4992 | return strerror ();
|
---|
| 4993 | ;
|
---|
| 4994 | return 0;
|
---|
| 4995 | }
|
---|
[10192] | 4996 | _ACEOF
|
---|
[23356] | 4997 | for ac_lib in '' cposix; do
|
---|
| 4998 | if test -z "$ac_lib"; then
|
---|
| 4999 | ac_res="none required"
|
---|
[22058] | 5000 | else
|
---|
[23356] | 5001 | ac_res=-l$ac_lib
|
---|
| 5002 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
[22058] | 5003 | fi
|
---|
[25170] | 5004 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[23356] | 5005 | ac_cv_search_strerror=$ac_res
|
---|
[22058] | 5006 | fi
|
---|
[25170] | 5007 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5008 | conftest$ac_exeext
|
---|
| 5009 | if ${ac_cv_search_strerror+:} false; then :
|
---|
[23356] | 5010 | break
|
---|
[3365] | 5011 | fi
|
---|
[23356] | 5012 | done
|
---|
[25170] | 5013 | if ${ac_cv_search_strerror+:} false; then :
|
---|
| 5014 |
|
---|
[10192] | 5015 | else
|
---|
[23356] | 5016 | ac_cv_search_strerror=no
|
---|
[3365] | 5017 | fi
|
---|
[23356] | 5018 | rm conftest.$ac_ext
|
---|
| 5019 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5020 | fi
|
---|
[25170] | 5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
|
---|
[23356] | 5022 | $as_echo "$ac_cv_search_strerror" >&6; }
|
---|
| 5023 | ac_res=$ac_cv_search_strerror
|
---|
[25170] | 5024 | if test "$ac_res" != no; then :
|
---|
[23356] | 5025 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[10192] | 5026 |
|
---|
| 5027 | fi
|
---|
[3365] | 5028 |
|
---|
[10192] | 5029 |
|
---|
[25170] | 5030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
[23356] | 5031 | $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
|
---|
[25170] | 5032 | if ${ac_cv_prog_cc_stdc+:} false; then :
|
---|
[23356] | 5033 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5034 | else
|
---|
| 5035 | ac_cv_prog_cc_stdc=no
|
---|
| 5036 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 5037 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 5038 | # breaks some systems' header files.
|
---|
| 5039 | # AIX -qlanglvl=ansi
|
---|
| 5040 | # Ultrix and OSF/1 -std1
|
---|
| 5041 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 5042 | # SVR4 -Xc
|
---|
| 5043 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 5044 | do
|
---|
| 5045 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[25170] | 5046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5047 | /* end confdefs.h. */
|
---|
[3365] | 5048 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 5049 | choke me
|
---|
[8063] | 5050 | #endif
|
---|
[3365] | 5051 |
|
---|
[8063] | 5052 | int
|
---|
| 5053 | main ()
|
---|
| 5054 | {
|
---|
[3365] | 5055 | int test (int i, double x);
|
---|
| 5056 | struct s1 {int (*f) (int a);};
|
---|
| 5057 | struct s2 {int (*f) (double a);};
|
---|
[8063] | 5058 | ;
|
---|
| 5059 | return 0;
|
---|
| 5060 | }
|
---|
| 5061 | _ACEOF
|
---|
[25170] | 5062 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3365] | 5063 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 5064 | fi
|
---|
[23356] | 5065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5066 | done
|
---|
| 5067 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 5068 |
|
---|
| 5069 | fi
|
---|
| 5070 |
|
---|
[25170] | 5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
|
---|
[23356] | 5072 | $as_echo "$ac_cv_prog_cc_stdc" >&6; }
|
---|
[3365] | 5073 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 5074 | x|xno) ;;
|
---|
| 5075 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 5076 | esac
|
---|
| 5077 |
|
---|
[10192] | 5078 |
|
---|
[25170] | 5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
|
---|
[23356] | 5080 | $as_echo_n "checking for function prototypes... " >&6; }
|
---|
[3365] | 5081 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[25170] | 5082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
[23356] | 5083 | $as_echo "yes" >&6; }
|
---|
[25170] | 5084 | $as_echo "#define PROTOTYPES 1" >>confdefs.h
|
---|
[3365] | 5085 |
|
---|
| 5086 | U= ANSI2KNR=
|
---|
| 5087 | else
|
---|
[25170] | 5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 5089 | $as_echo "no" >&6; }
|
---|
[3365] | 5090 | U=_ ANSI2KNR=ansi2knr
|
---|
| 5091 | fi
|
---|
| 5092 |
|
---|
[25170] | 5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
---|
[23356] | 5094 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
---|
[25170] | 5095 | if ${ac_cv_c_const+:} false; then :
|
---|
[23356] | 5096 | $as_echo_n "(cached) " >&6
|
---|
[8063] | 5097 | else
|
---|
[25170] | 5098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5099 | /* end confdefs.h. */
|
---|
[8063] | 5100 |
|
---|
| 5101 | int
|
---|
| 5102 | main ()
|
---|
| 5103 | {
|
---|
[30867] | 5104 |
|
---|
[8063] | 5105 | #ifndef __cplusplus
|
---|
[30867] | 5106 | /* Ultrix mips cc rejects this sort of thing. */
|
---|
[8063] | 5107 | typedef int charset[2];
|
---|
[30867] | 5108 | const charset cs = { 0, 0 };
|
---|
[8063] | 5109 | /* SunOS 4.1.1 cc rejects this. */
|
---|
[23356] | 5110 | char const *const *pcpcc;
|
---|
| 5111 | char **ppc;
|
---|
[8063] | 5112 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 5113 | struct point {int x, y;};
|
---|
| 5114 | static struct point const zero = {0,0};
|
---|
| 5115 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 5116 | It does not let you subtract one const X* pointer from another in
|
---|
| 5117 | an arm of an if-expression whose if-part is not a constant
|
---|
| 5118 | expression */
|
---|
| 5119 | const char *g = "string";
|
---|
[23356] | 5120 | pcpcc = &g + (g ? g-g : 0);
|
---|
[8063] | 5121 | /* HPUX 7.0 cc rejects these. */
|
---|
[23356] | 5122 | ++pcpcc;
|
---|
| 5123 | ppc = (char**) pcpcc;
|
---|
| 5124 | pcpcc = (char const *const *) ppc;
|
---|
[30867] | 5125 | { /* SCO 3.2v4 cc rejects this sort of thing. */
|
---|
| 5126 | char tx;
|
---|
| 5127 | char *t = &tx;
|
---|
[8063] | 5128 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
| 5129 |
|
---|
| 5130 | *t++ = 0;
|
---|
[23356] | 5131 | if (s) return 0;
|
---|
[8063] | 5132 | }
|
---|
| 5133 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 5134 | int x[] = {25, 17};
|
---|
| 5135 | const int *foo = &x[0];
|
---|
| 5136 | ++foo;
|
---|
| 5137 | }
|
---|
| 5138 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 5139 | typedef const int *iptr;
|
---|
| 5140 | iptr p = 0;
|
---|
| 5141 | ++p;
|
---|
| 5142 | }
|
---|
[30867] | 5143 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
|
---|
[8063] | 5144 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
[30867] | 5145 | struct s { int j; const int *ap[3]; } bx;
|
---|
| 5146 | struct s *b = &bx; b->j = 5;
|
---|
[8063] | 5147 | }
|
---|
| 5148 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 5149 | const int foo = 10;
|
---|
[23356] | 5150 | if (!foo) return 0;
|
---|
[8063] | 5151 | }
|
---|
[23356] | 5152 | return !cs[0] && !zero.x;
|
---|
[8063] | 5153 | #endif
|
---|
| 5154 |
|
---|
| 5155 | ;
|
---|
| 5156 | return 0;
|
---|
[3365] | 5157 | }
|
---|
[8063] | 5158 | _ACEOF
|
---|
[25170] | 5159 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3365] | 5160 | ac_cv_c_const=yes
|
---|
| 5161 | else
|
---|
[25170] | 5162 | ac_cv_c_const=no
|
---|
[3365] | 5163 | fi
|
---|
[23356] | 5164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5165 | fi
|
---|
[25170] | 5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
---|
[23356] | 5167 | $as_echo "$ac_cv_c_const" >&6; }
|
---|
[8063] | 5168 | if test $ac_cv_c_const = no; then
|
---|
[8059] | 5169 |
|
---|
[25170] | 5170 | $as_echo "#define const /**/" >>confdefs.h
|
---|
[3365] | 5171 |
|
---|
| 5172 | fi
|
---|
| 5173 |
|
---|
[25170] | 5174 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
|
---|
| 5175 | if test "x$ac_cv_type_off_t" = xyes; then :
|
---|
[10192] | 5176 |
|
---|
[8063] | 5177 | else
|
---|
[8059] | 5178 |
|
---|
[10192] | 5179 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 5180 | #define off_t long int
|
---|
[10192] | 5181 | _ACEOF
|
---|
[3365] | 5182 |
|
---|
| 5183 | fi
|
---|
| 5184 |
|
---|
[25170] | 5185 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
---|
| 5186 | if test "x$ac_cv_type_size_t" = xyes; then :
|
---|
[10192] | 5187 |
|
---|
[8063] | 5188 | else
|
---|
[8059] | 5189 |
|
---|
[10192] | 5190 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 5191 | #define size_t unsigned int
|
---|
[10192] | 5192 | _ACEOF
|
---|
[3365] | 5193 |
|
---|
| 5194 | fi
|
---|
| 5195 |
|
---|
[25170] | 5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
|
---|
[23356] | 5197 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
|
---|
[25170] | 5198 | if ${ac_cv_header_time+:} false; then :
|
---|
[23356] | 5199 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5200 | else
|
---|
[25170] | 5201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5202 | /* end confdefs.h. */
|
---|
[3365] | 5203 | #include <sys/types.h>
|
---|
| 5204 | #include <sys/time.h>
|
---|
| 5205 | #include <time.h>
|
---|
[8063] | 5206 |
|
---|
| 5207 | int
|
---|
| 5208 | main ()
|
---|
| 5209 | {
|
---|
[10192] | 5210 | if ((struct tm *) 0)
|
---|
| 5211 | return 0;
|
---|
[8063] | 5212 | ;
|
---|
| 5213 | return 0;
|
---|
| 5214 | }
|
---|
| 5215 | _ACEOF
|
---|
[25170] | 5216 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3365] | 5217 | ac_cv_header_time=yes
|
---|
| 5218 | else
|
---|
[25170] | 5219 | ac_cv_header_time=no
|
---|
[3365] | 5220 | fi
|
---|
[23356] | 5221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5222 | fi
|
---|
[25170] | 5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
|
---|
[23356] | 5224 | $as_echo "$ac_cv_header_time" >&6; }
|
---|
[8063] | 5225 | if test $ac_cv_header_time = yes; then
|
---|
[8059] | 5226 |
|
---|
[25170] | 5227 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
|
---|
[3365] | 5228 |
|
---|
| 5229 | fi
|
---|
| 5230 |
|
---|
[25170] | 5231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
[23356] | 5232 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
|
---|
[25170] | 5233 | if ${ac_cv_struct_tm+:} false; then :
|
---|
[23356] | 5234 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5235 | else
|
---|
[25170] | 5236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5237 | /* end confdefs.h. */
|
---|
[3365] | 5238 | #include <sys/types.h>
|
---|
| 5239 | #include <time.h>
|
---|
[8063] | 5240 |
|
---|
| 5241 | int
|
---|
| 5242 | main ()
|
---|
| 5243 | {
|
---|
[23356] | 5244 | struct tm tm;
|
---|
| 5245 | int *p = &tm.tm_sec;
|
---|
| 5246 | return !p;
|
---|
[8063] | 5247 | ;
|
---|
| 5248 | return 0;
|
---|
| 5249 | }
|
---|
| 5250 | _ACEOF
|
---|
[25170] | 5251 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3365] | 5252 | ac_cv_struct_tm=time.h
|
---|
| 5253 | else
|
---|
[25170] | 5254 | ac_cv_struct_tm=sys/time.h
|
---|
[3365] | 5255 | fi
|
---|
[23356] | 5256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5257 | fi
|
---|
[25170] | 5258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
|
---|
[23356] | 5259 | $as_echo "$ac_cv_struct_tm" >&6; }
|
---|
[8063] | 5260 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
[8059] | 5261 |
|
---|
[25170] | 5262 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
|
---|
[3365] | 5263 |
|
---|
| 5264 | fi
|
---|
| 5265 |
|
---|
[10192] | 5266 |
|
---|
[13698] | 5267 |
|
---|
[23356] | 5268 | # Check whether --with-unac was given.
|
---|
[25170] | 5269 | if test "${with_unac+set}" = set; then :
|
---|
[23356] | 5270 | withval=$with_unac; UNAC_DIR=$withval
|
---|
[13698] | 5271 | else
|
---|
| 5272 | UNAC_DIR="`pwd`/../packages/unac"
|
---|
[23356] | 5273 | fi
|
---|
| 5274 |
|
---|
[13698] | 5275 | cat >>confdefs.h <<_ACEOF
|
---|
| 5276 | #define UNAC_DIR "$UNAC_DIR"
|
---|
| 5277 | _ACEOF
|
---|
| 5278 |
|
---|
| 5279 |
|
---|
| 5280 |
|
---|
[20844] | 5281 | #AC_ARG_WITH(unac, [ --with-libiconv-prefix=dir Use local libiconv library], LIBICONV_DIR=$withval)
|
---|
| 5282 | #AC_DEFINE_UNQUOTED(LIBICONV_DIR, "$LIBICONV_DIR")
|
---|
| 5283 | #AC_SUBST(LIBICONV_DIR)
|
---|
[13698] | 5284 |
|
---|
[20832] | 5285 |
|
---|
[3365] | 5286 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[25170] | 5287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5288 | /* end confdefs.h. */
|
---|
[3365] | 5289 | #include <stdio.h>
|
---|
| 5290 |
|
---|
[8063] | 5291 | int
|
---|
| 5292 | main ()
|
---|
| 5293 | {
|
---|
| 5294 | FILE *rubbish = popen("yes", "r");
|
---|
| 5295 | ;
|
---|
| 5296 | return 0;
|
---|
| 5297 | }
|
---|
| 5298 | _ACEOF
|
---|
[25170] | 5299 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 5300 |
|
---|
[25148] | 5301 | else
|
---|
[25170] | 5302 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[3365] | 5303 | fi
|
---|
[23356] | 5304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5305 | fi
|
---|
| 5306 |
|
---|
[10192] | 5307 |
|
---|
[25170] | 5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lg" >&5
|
---|
[23356] | 5309 | $as_echo_n "checking for main in -lg... " >&6; }
|
---|
[25170] | 5310 | if ${ac_cv_lib_g_main+:} false; then :
|
---|
[23356] | 5311 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5312 | else
|
---|
[8063] | 5313 | ac_check_lib_save_LIBS=$LIBS
|
---|
[8059] | 5314 | LIBS="-lg $LIBS"
|
---|
[25170] | 5315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5316 | /* end confdefs.h. */
|
---|
[8059] | 5317 |
|
---|
[10192] | 5318 |
|
---|
[8063] | 5319 | int
|
---|
| 5320 | main ()
|
---|
| 5321 | {
|
---|
[23356] | 5322 | return main ();
|
---|
[8063] | 5323 | ;
|
---|
| 5324 | return 0;
|
---|
| 5325 | }
|
---|
| 5326 | _ACEOF
|
---|
[25170] | 5327 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8063] | 5328 | ac_cv_lib_g_main=yes
|
---|
[8059] | 5329 | else
|
---|
[25170] | 5330 | ac_cv_lib_g_main=no
|
---|
[8059] | 5331 | fi
|
---|
[25170] | 5332 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5333 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 5334 | LIBS=$ac_check_lib_save_LIBS
|
---|
[8059] | 5335 | fi
|
---|
[25170] | 5336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g_main" >&5
|
---|
[23356] | 5337 | $as_echo "$ac_cv_lib_g_main" >&6; }
|
---|
[25170] | 5338 | if test "x$ac_cv_lib_g_main" = xyes; then :
|
---|
[10192] | 5339 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 5340 | #define HAVE_LIBG 1
|
---|
[10192] | 5341 | _ACEOF
|
---|
[8059] | 5342 |
|
---|
| 5343 | LIBS="-lg $LIBS"
|
---|
| 5344 |
|
---|
| 5345 | fi
|
---|
| 5346 |
|
---|
[25170] | 5347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
|
---|
[23356] | 5348 | $as_echo_n "checking for main in -lm... " >&6; }
|
---|
[25170] | 5349 | if ${ac_cv_lib_m_main+:} false; then :
|
---|
[23356] | 5350 | $as_echo_n "(cached) " >&6
|
---|
[8059] | 5351 | else
|
---|
[8063] | 5352 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 5353 | LIBS="-lm $LIBS"
|
---|
[25170] | 5354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5355 | /* end confdefs.h. */
|
---|
[3365] | 5356 |
|
---|
[10192] | 5357 |
|
---|
[8063] | 5358 | int
|
---|
| 5359 | main ()
|
---|
| 5360 | {
|
---|
[23356] | 5361 | return main ();
|
---|
[8063] | 5362 | ;
|
---|
| 5363 | return 0;
|
---|
| 5364 | }
|
---|
| 5365 | _ACEOF
|
---|
[25170] | 5366 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8063] | 5367 | ac_cv_lib_m_main=yes
|
---|
[3365] | 5368 | else
|
---|
[25170] | 5369 | ac_cv_lib_m_main=no
|
---|
[3365] | 5370 | fi
|
---|
[25170] | 5371 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5372 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 5373 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 5374 | fi
|
---|
[25170] | 5375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
|
---|
[23356] | 5376 | $as_echo "$ac_cv_lib_m_main" >&6; }
|
---|
[25170] | 5377 | if test "x$ac_cv_lib_m_main" = xyes; then :
|
---|
[10192] | 5378 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 5379 | #define HAVE_LIBM 1
|
---|
[10192] | 5380 | _ACEOF
|
---|
[3365] | 5381 |
|
---|
| 5382 | LIBS="-lm $LIBS"
|
---|
| 5383 |
|
---|
| 5384 | fi
|
---|
| 5385 |
|
---|
[25170] | 5386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
|
---|
[23356] | 5387 | $as_echo_n "checking for main in -lcrypt... " >&6; }
|
---|
[25170] | 5388 | if ${ac_cv_lib_crypt_main+:} false; then :
|
---|
[23356] | 5389 | $as_echo_n "(cached) " >&6
|
---|
[8059] | 5390 | else
|
---|
[8063] | 5391 | ac_check_lib_save_LIBS=$LIBS
|
---|
[8059] | 5392 | LIBS="-lcrypt $LIBS"
|
---|
[25170] | 5393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5394 | /* end confdefs.h. */
|
---|
[8059] | 5395 |
|
---|
[10192] | 5396 |
|
---|
[8063] | 5397 | int
|
---|
| 5398 | main ()
|
---|
| 5399 | {
|
---|
[23356] | 5400 | return main ();
|
---|
[8063] | 5401 | ;
|
---|
| 5402 | return 0;
|
---|
| 5403 | }
|
---|
| 5404 | _ACEOF
|
---|
[25170] | 5405 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8063] | 5406 | ac_cv_lib_crypt_main=yes
|
---|
[8059] | 5407 | else
|
---|
[25170] | 5408 | ac_cv_lib_crypt_main=no
|
---|
[8059] | 5409 | fi
|
---|
[25170] | 5410 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5411 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 5412 | LIBS=$ac_check_lib_save_LIBS
|
---|
[8059] | 5413 | fi
|
---|
[25170] | 5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
|
---|
[23356] | 5415 | $as_echo "$ac_cv_lib_crypt_main" >&6; }
|
---|
[25170] | 5416 | if test "x$ac_cv_lib_crypt_main" = xyes; then :
|
---|
[10192] | 5417 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 5418 | #define HAVE_LIBCRYPT 1
|
---|
[10192] | 5419 | _ACEOF
|
---|
[8059] | 5420 |
|
---|
| 5421 | LIBS="-lcrypt $LIBS"
|
---|
| 5422 |
|
---|
| 5423 | fi
|
---|
| 5424 |
|
---|
[20845] | 5425 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
| 5426 | #AC_HAVE_LIBRARY(iconv)
|
---|
| 5427 | #fi
|
---|
[10192] | 5428 |
|
---|
| 5429 |
|
---|
[3365] | 5430 | ac_header_dirent=no
|
---|
[8063] | 5431 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
[23356] | 5432 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
[25170] | 5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
---|
[23356] | 5434 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
---|
[25170] | 5435 | if eval \${$as_ac_Header+:} false; then :
|
---|
[23356] | 5436 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5437 | else
|
---|
[25170] | 5438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5439 | /* end confdefs.h. */
|
---|
[3365] | 5440 | #include <sys/types.h>
|
---|
| 5441 | #include <$ac_hdr>
|
---|
[8063] | 5442 |
|
---|
| 5443 | int
|
---|
| 5444 | main ()
|
---|
| 5445 | {
|
---|
[10192] | 5446 | if ((DIR *) 0)
|
---|
| 5447 | return 0;
|
---|
[8063] | 5448 | ;
|
---|
| 5449 | return 0;
|
---|
| 5450 | }
|
---|
| 5451 | _ACEOF
|
---|
[25170] | 5452 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10192] | 5453 | eval "$as_ac_Header=yes"
|
---|
[3365] | 5454 | else
|
---|
[25170] | 5455 | eval "$as_ac_Header=no"
|
---|
[3365] | 5456 | fi
|
---|
[23356] | 5457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5458 | fi
|
---|
[25170] | 5459 | eval ac_res=\$$as_ac_Header
|
---|
| 5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
[23356] | 5461 | $as_echo "$ac_res" >&6; }
|
---|
[25170] | 5462 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
[10192] | 5463 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 5464 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
[10192] | 5465 | _ACEOF
|
---|
[8063] | 5466 |
|
---|
| 5467 | ac_header_dirent=$ac_hdr; break
|
---|
[3365] | 5468 | fi
|
---|
[8063] | 5469 |
|
---|
[3365] | 5470 | done
|
---|
| 5471 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 5472 | if test $ac_header_dirent = dirent.h; then
|
---|
[25170] | 5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
[23356] | 5474 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
[25170] | 5475 | if ${ac_cv_search_opendir+:} false; then :
|
---|
[23356] | 5476 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5477 | else
|
---|
[10192] | 5478 | ac_func_search_save_LIBS=$LIBS
|
---|
[25170] | 5479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5480 | /* end confdefs.h. */
|
---|
[8063] | 5481 |
|
---|
[23356] | 5482 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 5483 | Use char because int might match the return type of a GCC
|
---|
| 5484 | builtin and then its argument prototype would still apply. */
|
---|
[8063] | 5485 | #ifdef __cplusplus
|
---|
| 5486 | extern "C"
|
---|
| 5487 | #endif
|
---|
| 5488 | char opendir ();
|
---|
| 5489 | int
|
---|
| 5490 | main ()
|
---|
| 5491 | {
|
---|
[23356] | 5492 | return opendir ();
|
---|
[8063] | 5493 | ;
|
---|
| 5494 | return 0;
|
---|
| 5495 | }
|
---|
| 5496 | _ACEOF
|
---|
[23356] | 5497 | for ac_lib in '' dir; do
|
---|
| 5498 | if test -z "$ac_lib"; then
|
---|
| 5499 | ac_res="none required"
|
---|
| 5500 | else
|
---|
| 5501 | ac_res=-l$ac_lib
|
---|
| 5502 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5503 | fi
|
---|
[25170] | 5504 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[23356] | 5505 | ac_cv_search_opendir=$ac_res
|
---|
[3365] | 5506 | fi
|
---|
[25170] | 5507 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5508 | conftest$ac_exeext
|
---|
| 5509 | if ${ac_cv_search_opendir+:} false; then :
|
---|
[23356] | 5510 | break
|
---|
| 5511 | fi
|
---|
| 5512 | done
|
---|
[25170] | 5513 | if ${ac_cv_search_opendir+:} false; then :
|
---|
| 5514 |
|
---|
[10192] | 5515 | else
|
---|
[23356] | 5516 | ac_cv_search_opendir=no
|
---|
[3365] | 5517 | fi
|
---|
[23356] | 5518 | rm conftest.$ac_ext
|
---|
[10192] | 5519 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5520 | fi
|
---|
[25170] | 5521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
[23356] | 5522 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
| 5523 | ac_res=$ac_cv_search_opendir
|
---|
[25170] | 5524 | if test "$ac_res" != no; then :
|
---|
[23356] | 5525 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[3365] | 5526 |
|
---|
[10192] | 5527 | fi
|
---|
| 5528 |
|
---|
[3365] | 5529 | else
|
---|
[25170] | 5530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
[23356] | 5531 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
[25170] | 5532 | if ${ac_cv_search_opendir+:} false; then :
|
---|
[23356] | 5533 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5534 | else
|
---|
[10192] | 5535 | ac_func_search_save_LIBS=$LIBS
|
---|
[25170] | 5536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5537 | /* end confdefs.h. */
|
---|
[8063] | 5538 |
|
---|
[23356] | 5539 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 5540 | Use char because int might match the return type of a GCC
|
---|
| 5541 | builtin and then its argument prototype would still apply. */
|
---|
[8063] | 5542 | #ifdef __cplusplus
|
---|
| 5543 | extern "C"
|
---|
| 5544 | #endif
|
---|
| 5545 | char opendir ();
|
---|
| 5546 | int
|
---|
| 5547 | main ()
|
---|
| 5548 | {
|
---|
[23356] | 5549 | return opendir ();
|
---|
[8063] | 5550 | ;
|
---|
| 5551 | return 0;
|
---|
| 5552 | }
|
---|
| 5553 | _ACEOF
|
---|
[23356] | 5554 | for ac_lib in '' x; do
|
---|
| 5555 | if test -z "$ac_lib"; then
|
---|
| 5556 | ac_res="none required"
|
---|
| 5557 | else
|
---|
| 5558 | ac_res=-l$ac_lib
|
---|
| 5559 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5560 | fi
|
---|
[25170] | 5561 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[23356] | 5562 | ac_cv_search_opendir=$ac_res
|
---|
[3365] | 5563 | fi
|
---|
[25170] | 5564 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5565 | conftest$ac_exeext
|
---|
| 5566 | if ${ac_cv_search_opendir+:} false; then :
|
---|
[23356] | 5567 | break
|
---|
| 5568 | fi
|
---|
| 5569 | done
|
---|
[25170] | 5570 | if ${ac_cv_search_opendir+:} false; then :
|
---|
| 5571 |
|
---|
[10192] | 5572 | else
|
---|
[23356] | 5573 | ac_cv_search_opendir=no
|
---|
[3365] | 5574 | fi
|
---|
[23356] | 5575 | rm conftest.$ac_ext
|
---|
[10192] | 5576 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5577 | fi
|
---|
[25170] | 5578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
[23356] | 5579 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
| 5580 | ac_res=$ac_cv_search_opendir
|
---|
[25170] | 5581 | if test "$ac_res" != no; then :
|
---|
[23356] | 5582 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[3365] | 5583 |
|
---|
| 5584 | fi
|
---|
| 5585 |
|
---|
[10192] | 5586 | fi
|
---|
| 5587 |
|
---|
[25170] | 5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
[23356] | 5589 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
[25170] | 5590 | if ${ac_cv_header_stdc+:} false; then :
|
---|
[23356] | 5591 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5592 | else
|
---|
[25170] | 5593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5594 | /* end confdefs.h. */
|
---|
[3365] | 5595 | #include <stdlib.h>
|
---|
| 5596 | #include <stdarg.h>
|
---|
| 5597 | #include <string.h>
|
---|
| 5598 | #include <float.h>
|
---|
[8063] | 5599 |
|
---|
[10192] | 5600 | int
|
---|
| 5601 | main ()
|
---|
| 5602 | {
|
---|
| 5603 |
|
---|
| 5604 | ;
|
---|
| 5605 | return 0;
|
---|
| 5606 | }
|
---|
[8063] | 5607 | _ACEOF
|
---|
[25170] | 5608 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3365] | 5609 | ac_cv_header_stdc=yes
|
---|
| 5610 | else
|
---|
[25170] | 5611 | ac_cv_header_stdc=no
|
---|
[3365] | 5612 | fi
|
---|
[23356] | 5613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5614 |
|
---|
| 5615 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5616 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[25170] | 5617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5618 | /* end confdefs.h. */
|
---|
[3365] | 5619 | #include <string.h>
|
---|
[8063] | 5620 |
|
---|
| 5621 | _ACEOF
|
---|
[3365] | 5622 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 5623 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
| 5624 |
|
---|
[3365] | 5625 | else
|
---|
| 5626 | ac_cv_header_stdc=no
|
---|
| 5627 | fi
|
---|
| 5628 | rm -f conftest*
|
---|
| 5629 |
|
---|
| 5630 | fi
|
---|
| 5631 |
|
---|
| 5632 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5633 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[25170] | 5634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5635 | /* end confdefs.h. */
|
---|
[3365] | 5636 | #include <stdlib.h>
|
---|
[8063] | 5637 |
|
---|
| 5638 | _ACEOF
|
---|
[3365] | 5639 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 5640 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
| 5641 |
|
---|
[3365] | 5642 | else
|
---|
| 5643 | ac_cv_header_stdc=no
|
---|
| 5644 | fi
|
---|
| 5645 | rm -f conftest*
|
---|
| 5646 |
|
---|
| 5647 | fi
|
---|
| 5648 |
|
---|
| 5649 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5650 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[25170] | 5651 | if test "$cross_compiling" = yes; then :
|
---|
[3365] | 5652 | :
|
---|
| 5653 | else
|
---|
[25170] | 5654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5655 | /* end confdefs.h. */
|
---|
[3365] | 5656 | #include <ctype.h>
|
---|
[23356] | 5657 | #include <stdlib.h>
|
---|
[8063] | 5658 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5659 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5660 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5661 | #else
|
---|
[10192] | 5662 | # define ISLOWER(c) \
|
---|
| 5663 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5664 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5665 | || ('s' <= (c) && (c) <= 'z'))
|
---|
[8063] | 5666 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5667 | #endif
|
---|
| 5668 |
|
---|
[8059] | 5669 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
[8063] | 5670 | int
|
---|
| 5671 | main ()
|
---|
| 5672 | {
|
---|
| 5673 | int i;
|
---|
| 5674 | for (i = 0; i < 256; i++)
|
---|
| 5675 | if (XOR (islower (i), ISLOWER (i))
|
---|
[10192] | 5676 | || toupper (i) != TOUPPER (i))
|
---|
[23356] | 5677 | return 2;
|
---|
| 5678 | return 0;
|
---|
[8063] | 5679 | }
|
---|
| 5680 | _ACEOF
|
---|
[25170] | 5681 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
| 5682 |
|
---|
[25148] | 5683 | else
|
---|
[25170] | 5684 | ac_cv_header_stdc=no
|
---|
[3365] | 5685 | fi
|
---|
[25170] | 5686 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 5687 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[3365] | 5688 | fi
|
---|
[23356] | 5689 |
|
---|
[3365] | 5690 | fi
|
---|
| 5691 | fi
|
---|
[25170] | 5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
[23356] | 5693 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
[8063] | 5694 | if test $ac_cv_header_stdc = yes; then
|
---|
[8059] | 5695 |
|
---|
[25170] | 5696 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
[3365] | 5697 |
|
---|
| 5698 | fi
|
---|
| 5699 |
|
---|
[8063] | 5700 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
|
---|
[25170] | 5701 | do :
|
---|
| 5702 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5703 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
---|
| 5704 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
[10192] | 5705 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 5706 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
[10192] | 5707 | _ACEOF
|
---|
| 5708 |
|
---|
| 5709 | fi
|
---|
| 5710 |
|
---|
[3365] | 5711 | done
|
---|
| 5712 |
|
---|
[25170] | 5713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5714 | /* end confdefs.h. */
|
---|
[3365] | 5715 | #include <stdio.h>
|
---|
[8063] | 5716 |
|
---|
| 5717 | _ACEOF
|
---|
[3365] | 5718 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 5719 | $EGREP "fread" >/dev/null 2>&1; then :
|
---|
| 5720 | $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
|
---|
[3365] | 5721 |
|
---|
| 5722 | fi
|
---|
| 5723 | rm -f conftest*
|
---|
| 5724 |
|
---|
[25170] | 5725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5726 | /* end confdefs.h. */
|
---|
[3365] | 5727 | #include <stdio.h>
|
---|
[8063] | 5728 |
|
---|
| 5729 | _ACEOF
|
---|
[3365] | 5730 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 5731 | $EGREP "fgetc" >/dev/null 2>&1; then :
|
---|
| 5732 | $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
|
---|
[3365] | 5733 |
|
---|
| 5734 | fi
|
---|
| 5735 | rm -f conftest*
|
---|
| 5736 |
|
---|
[25170] | 5737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5738 | /* end confdefs.h. */
|
---|
[3365] | 5739 | #include <sys/procfs.h>
|
---|
[8063] | 5740 |
|
---|
| 5741 | _ACEOF
|
---|
[3365] | 5742 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 5743 | $EGREP "pr_brksize" >/dev/null 2>&1; then :
|
---|
| 5744 | $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
|
---|
[3365] | 5745 |
|
---|
| 5746 | fi
|
---|
| 5747 | rm -f conftest*
|
---|
| 5748 |
|
---|
[10192] | 5749 |
|
---|
[3365] | 5750 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5751 | # for constant arguments. Useless!
|
---|
[25170] | 5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
---|
[23356] | 5753 | $as_echo_n "checking for working alloca.h... " >&6; }
|
---|
[25170] | 5754 | if ${ac_cv_working_alloca_h+:} false; then :
|
---|
[23356] | 5755 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5756 | else
|
---|
[25170] | 5757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5758 | /* end confdefs.h. */
|
---|
[3365] | 5759 | #include <alloca.h>
|
---|
[8063] | 5760 | int
|
---|
| 5761 | main ()
|
---|
| 5762 | {
|
---|
| 5763 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
[23356] | 5764 | if (p) return 0;
|
---|
[8063] | 5765 | ;
|
---|
| 5766 | return 0;
|
---|
| 5767 | }
|
---|
| 5768 | _ACEOF
|
---|
[25170] | 5769 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8063] | 5770 | ac_cv_working_alloca_h=yes
|
---|
[3365] | 5771 | else
|
---|
[25170] | 5772 | ac_cv_working_alloca_h=no
|
---|
[3365] | 5773 | fi
|
---|
[25170] | 5774 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5775 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5776 | fi
|
---|
[25170] | 5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
---|
[23356] | 5778 | $as_echo "$ac_cv_working_alloca_h" >&6; }
|
---|
[8063] | 5779 | if test $ac_cv_working_alloca_h = yes; then
|
---|
[3365] | 5780 |
|
---|
[25170] | 5781 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
|
---|
[3365] | 5782 |
|
---|
| 5783 | fi
|
---|
| 5784 |
|
---|
[25170] | 5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
---|
[23356] | 5786 | $as_echo_n "checking for alloca... " >&6; }
|
---|
[25170] | 5787 | if ${ac_cv_func_alloca_works+:} false; then :
|
---|
[23356] | 5788 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5789 | else
|
---|
[25170] | 5790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5791 | /* end confdefs.h. */
|
---|
[3365] | 5792 | #ifdef __GNUC__
|
---|
| 5793 | # define alloca __builtin_alloca
|
---|
| 5794 | #else
|
---|
| 5795 | # ifdef _MSC_VER
|
---|
| 5796 | # include <malloc.h>
|
---|
| 5797 | # define alloca _alloca
|
---|
| 5798 | # else
|
---|
[23356] | 5799 | # ifdef HAVE_ALLOCA_H
|
---|
[3365] | 5800 | # include <alloca.h>
|
---|
| 5801 | # else
|
---|
| 5802 | # ifdef _AIX
|
---|
| 5803 | #pragma alloca
|
---|
| 5804 | # else
|
---|
| 5805 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
[25170] | 5806 | void *alloca (size_t);
|
---|
[3365] | 5807 | # endif
|
---|
| 5808 | # endif
|
---|
| 5809 | # endif
|
---|
| 5810 | # endif
|
---|
| 5811 | #endif
|
---|
| 5812 |
|
---|
[8063] | 5813 | int
|
---|
| 5814 | main ()
|
---|
| 5815 | {
|
---|
| 5816 | char *p = (char *) alloca (1);
|
---|
[23356] | 5817 | if (p) return 0;
|
---|
[8063] | 5818 | ;
|
---|
| 5819 | return 0;
|
---|
| 5820 | }
|
---|
| 5821 | _ACEOF
|
---|
[25170] | 5822 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[3365] | 5823 | ac_cv_func_alloca_works=yes
|
---|
| 5824 | else
|
---|
[25170] | 5825 | ac_cv_func_alloca_works=no
|
---|
[3365] | 5826 | fi
|
---|
[25170] | 5827 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5828 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5829 | fi
|
---|
[25170] | 5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
---|
[23356] | 5831 | $as_echo "$ac_cv_func_alloca_works" >&6; }
|
---|
[3365] | 5832 |
|
---|
| 5833 | if test $ac_cv_func_alloca_works = yes; then
|
---|
[8063] | 5834 |
|
---|
[25170] | 5835 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
---|
[3365] | 5836 |
|
---|
[8063] | 5837 | else
|
---|
| 5838 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5839 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5840 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5841 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
[8059] | 5842 |
|
---|
[23356] | 5843 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
[8063] | 5844 |
|
---|
[25170] | 5845 | $as_echo "#define C_ALLOCA 1" >>confdefs.h
|
---|
[3365] | 5846 |
|
---|
[10192] | 5847 |
|
---|
[25170] | 5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
[23356] | 5849 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
---|
[25170] | 5850 | if ${ac_cv_os_cray+:} false; then :
|
---|
[23356] | 5851 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5852 | else
|
---|
[25170] | 5853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5854 | /* end confdefs.h. */
|
---|
[23356] | 5855 | #if defined CRAY && ! defined CRAY2
|
---|
[3365] | 5856 | webecray
|
---|
| 5857 | #else
|
---|
| 5858 | wenotbecray
|
---|
| 5859 | #endif
|
---|
| 5860 |
|
---|
[8063] | 5861 | _ACEOF
|
---|
[3365] | 5862 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 5863 | $EGREP "webecray" >/dev/null 2>&1; then :
|
---|
[3365] | 5864 | ac_cv_os_cray=yes
|
---|
| 5865 | else
|
---|
| 5866 | ac_cv_os_cray=no
|
---|
| 5867 | fi
|
---|
| 5868 | rm -f conftest*
|
---|
| 5869 |
|
---|
| 5870 | fi
|
---|
[25170] | 5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
---|
[23356] | 5872 | $as_echo "$ac_cv_os_cray" >&6; }
|
---|
[3365] | 5873 | if test $ac_cv_os_cray = yes; then
|
---|
[8063] | 5874 | for ac_func in _getb67 GETB67 getb67; do
|
---|
[23356] | 5875 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[25170] | 5876 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
| 5877 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
[10192] | 5878 |
|
---|
| 5879 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 5880 | #define CRAY_STACKSEG_END $ac_func
|
---|
[10192] | 5881 | _ACEOF
|
---|
[3365] | 5882 |
|
---|
[8063] | 5883 | break
|
---|
[3365] | 5884 | fi
|
---|
| 5885 |
|
---|
[8063] | 5886 | done
|
---|
[3365] | 5887 | fi
|
---|
| 5888 |
|
---|
[25170] | 5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
---|
[23356] | 5890 | $as_echo_n "checking stack direction for C alloca... " >&6; }
|
---|
[25170] | 5891 | if ${ac_cv_c_stack_direction+:} false; then :
|
---|
[23356] | 5892 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5893 | else
|
---|
[25170] | 5894 | if test "$cross_compiling" = yes; then :
|
---|
[3365] | 5895 | ac_cv_c_stack_direction=0
|
---|
| 5896 | else
|
---|
[25170] | 5897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5898 | /* end confdefs.h. */
|
---|
[23356] | 5899 | $ac_includes_default
|
---|
[8063] | 5900 | int
|
---|
[30867] | 5901 | find_stack_direction (int *addr, int depth)
|
---|
[3365] | 5902 | {
|
---|
[30867] | 5903 | int dir, dummy = 0;
|
---|
| 5904 | if (! addr)
|
---|
| 5905 | addr = &dummy;
|
---|
| 5906 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
|
---|
| 5907 | dir = depth ? find_stack_direction (addr, depth - 1) : 0;
|
---|
| 5908 | return dir + dummy;
|
---|
[3365] | 5909 | }
|
---|
[8063] | 5910 |
|
---|
| 5911 | int
|
---|
[30867] | 5912 | main (int argc, char **argv)
|
---|
[3365] | 5913 | {
|
---|
[30867] | 5914 | return find_stack_direction (0, argc + !argv + 20) < 0;
|
---|
[3365] | 5915 | }
|
---|
[8063] | 5916 | _ACEOF
|
---|
[25170] | 5917 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
[3365] | 5918 | ac_cv_c_stack_direction=1
|
---|
| 5919 | else
|
---|
[25170] | 5920 | ac_cv_c_stack_direction=-1
|
---|
[3365] | 5921 | fi
|
---|
[25170] | 5922 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 5923 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[3365] | 5924 | fi
|
---|
[23356] | 5925 |
|
---|
[3365] | 5926 | fi
|
---|
[25170] | 5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
---|
[23356] | 5928 | $as_echo "$ac_cv_c_stack_direction" >&6; }
|
---|
[10192] | 5929 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 5930 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[10192] | 5931 | _ACEOF
|
---|
[3365] | 5932 |
|
---|
[10192] | 5933 |
|
---|
[3365] | 5934 | fi
|
---|
| 5935 |
|
---|
[8063] | 5936 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[25170] | 5937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
|
---|
[23356] | 5938 | $as_echo_n "checking whether $CC needs -traditional... " >&6; }
|
---|
[25170] | 5939 | if ${ac_cv_prog_gcc_traditional+:} false; then :
|
---|
[23356] | 5940 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5941 | else
|
---|
| 5942 | ac_pattern="Autoconf.*'x'"
|
---|
[25170] | 5943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5944 | /* end confdefs.h. */
|
---|
[3365] | 5945 | #include <sgtty.h>
|
---|
| 5946 | Autoconf TIOCGETP
|
---|
[8063] | 5947 | _ACEOF
|
---|
[3365] | 5948 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 5949 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
[3365] | 5950 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5951 | else
|
---|
| 5952 | ac_cv_prog_gcc_traditional=no
|
---|
| 5953 | fi
|
---|
| 5954 | rm -f conftest*
|
---|
| 5955 |
|
---|
[10192] | 5956 |
|
---|
[3365] | 5957 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[25170] | 5958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5959 | /* end confdefs.h. */
|
---|
[3365] | 5960 | #include <termio.h>
|
---|
| 5961 | Autoconf TCGETA
|
---|
[8063] | 5962 | _ACEOF
|
---|
[3365] | 5963 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[25170] | 5964 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
[3365] | 5965 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5966 | fi
|
---|
| 5967 | rm -f conftest*
|
---|
| 5968 |
|
---|
| 5969 | fi
|
---|
| 5970 | fi
|
---|
[25170] | 5971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
[23356] | 5972 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
|
---|
[3365] | 5973 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5974 | CC="$CC -traditional"
|
---|
| 5975 | fi
|
---|
| 5976 | fi
|
---|
| 5977 |
|
---|
[25170] | 5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
|
---|
[23356] | 5979 | $as_echo_n "checking return type of signal handlers... " >&6; }
|
---|
[25170] | 5980 | if ${ac_cv_type_signal+:} false; then :
|
---|
[23356] | 5981 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 5982 | else
|
---|
[25170] | 5983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 5984 | /* end confdefs.h. */
|
---|
[3365] | 5985 | #include <sys/types.h>
|
---|
| 5986 | #include <signal.h>
|
---|
| 5987 |
|
---|
[8063] | 5988 | int
|
---|
| 5989 | main ()
|
---|
| 5990 | {
|
---|
[23356] | 5991 | return *(signal (0, 0)) (0) == 1;
|
---|
[8063] | 5992 | ;
|
---|
| 5993 | return 0;
|
---|
| 5994 | }
|
---|
| 5995 | _ACEOF
|
---|
[25170] | 5996 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 5997 | ac_cv_type_signal=int
|
---|
| 5998 | else
|
---|
[25170] | 5999 | ac_cv_type_signal=void
|
---|
[3365] | 6000 | fi
|
---|
[23356] | 6001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 6002 | fi
|
---|
[25170] | 6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
|
---|
[23356] | 6004 | $as_echo "$ac_cv_type_signal" >&6; }
|
---|
[3365] | 6005 |
|
---|
[10192] | 6006 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 6007 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[10192] | 6008 | _ACEOF
|
---|
[3365] | 6009 |
|
---|
[10192] | 6010 |
|
---|
[8063] | 6011 | for ac_func in vprintf
|
---|
[25170] | 6012 | do :
|
---|
| 6013 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
|
---|
| 6014 | if test "x$ac_cv_func_vprintf" = xyes; then :
|
---|
[10192] | 6015 | cat >>confdefs.h <<_ACEOF
|
---|
[25170] | 6016 | #define HAVE_VPRINTF 1
|
---|
[10192] | 6017 | _ACEOF
|
---|
[3365] | 6018 |
|
---|
[25170] | 6019 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
|
---|
| 6020 | if test "x$ac_cv_func__doprnt" = xyes; then :
|
---|
[10192] | 6021 |
|
---|
[25170] | 6022 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
|
---|
[10192] | 6023 |
|
---|
[3365] | 6024 | fi
|
---|
| 6025 |
|
---|
| 6026 | fi
|
---|
[8063] | 6027 | done
|
---|
[3365] | 6028 |
|
---|
[10192] | 6029 |
|
---|
[3365] | 6030 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
[25170] | 6031 | do :
|
---|
| 6032 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6033 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
| 6034 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
[10192] | 6035 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 6036 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[10192] | 6037 | _ACEOF
|
---|
[8059] | 6038 |
|
---|
[3365] | 6039 | fi
|
---|
| 6040 | done
|
---|
| 6041 |
|
---|
[25170] | 6042 | ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
|
---|
| 6043 | if test "x$ac_cv_func_ftruncate" = xyes; then :
|
---|
| 6044 | $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
|
---|
[25148] | 6045 |
|
---|
| 6046 | else
|
---|
[25170] | 6047 | case " $LIBOBJS " in
|
---|
| 6048 | *" ftruncate.$ac_objext "* ) ;;
|
---|
| 6049 | *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
|
---|
| 6050 | ;;
|
---|
[25148] | 6051 | esac
|
---|
| 6052 |
|
---|
| 6053 | fi
|
---|
| 6054 |
|
---|
[25170] | 6055 | ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
|
---|
| 6056 | if test "x$ac_cv_func_strstr" = xyes; then :
|
---|
| 6057 | $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
|
---|
[10192] | 6058 |
|
---|
[3365] | 6059 | else
|
---|
[23356] | 6060 | case " $LIBOBJS " in
|
---|
[25170] | 6061 | *" strstr.$ac_objext "* ) ;;
|
---|
| 6062 | *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
|
---|
[23356] | 6063 | ;;
|
---|
| 6064 | esac
|
---|
[10192] | 6065 |
|
---|
[23356] | 6066 | fi
|
---|
[10192] | 6067 |
|
---|
[25170] | 6068 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
|
---|
| 6069 | if test "x$ac_cv_func_strcasecmp" = xyes; then :
|
---|
| 6070 | $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
|
---|
[10192] | 6071 |
|
---|
[25148] | 6072 | else
|
---|
[25170] | 6073 | case " $LIBOBJS " in
|
---|
| 6074 | *" strcasecmp.$ac_objext "* ) ;;
|
---|
| 6075 | *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
|
---|
| 6076 | ;;
|
---|
| 6077 | esac
|
---|
[10192] | 6078 |
|
---|
[25170] | 6079 | fi
|
---|
[25148] | 6080 |
|
---|
| 6081 |
|
---|
| 6082 |
|
---|
| 6083 |
|
---|
[25170] | 6084 | ac_fn_c_check_func "$LINENO" "textdomain" "ac_cv_func_textdomain"
|
---|
| 6085 | if test "x$ac_cv_func_textdomain" = xyes; then :
|
---|
| 6086 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h
|
---|
[25148] | 6087 |
|
---|
[8059] | 6088 | fi
|
---|
[8063] | 6089 |
|
---|
[8059] | 6090 |
|
---|
[10192] | 6091 | # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
|
---|
| 6092 | # a non-standard Path
|
---|
[10917] | 6093 | # is there a better way to do this??
|
---|
[25170] | 6094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS to set JNI options" >&5
|
---|
[23356] | 6095 | $as_echo_n "checking for OS to set JNI options... " >&6; }
|
---|
[10917] | 6096 | # set defaults
|
---|
| 6097 | JNIINC=""
|
---|
[26656] | 6098 | JNIPREFIX="lib"
|
---|
[10917] | 6099 | JNISUFFIX="so"
|
---|
[26656] | 6100 | JNICFLAGS=""
|
---|
| 6101 | JNILDFLAGS="-shared"
|
---|
[10917] | 6102 |
|
---|
[10192] | 6103 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[25170] | 6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
|
---|
[23356] | 6105 | $as_echo "Darwin" >&6; }
|
---|
[10192] | 6106 | JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
|
---|
| 6107 | JNISUFFIX="jnilib"
|
---|
[26656] | 6108 | JNILDFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
|
---|
[10192] | 6109 | fi
|
---|
[10917] | 6110 | if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
|
---|
[25170] | 6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
|
---|
[23356] | 6112 | $as_echo "Solaris" >&6; }
|
---|
[10917] | 6113 | JNIINC="-I\$(JAVA_HOME)/include/solaris "
|
---|
| 6114 | fi
|
---|
| 6115 | if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
|
---|
[25170] | 6116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
|
---|
[23356] | 6117 | $as_echo "Linux" >&6; }
|
---|
[18598] | 6118 | JNIINC="-I\$(JAVA_HOME)/include/linux -I\$(JAVA_HOME)/include "
|
---|
[10917] | 6119 | fi
|
---|
[10192] | 6120 |
|
---|
[26656] | 6121 | if test "x$crossOS" != "x" ; then
|
---|
| 6122 | if test "$crossOS" = "windows" ; then
|
---|
| 6123 | JNIINC="-I../../java-windows-include/win32 -I../../java-windows-include "
|
---|
| 6124 | JNICFLAGS="-shared -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at"
|
---|
| 6125 | JNIPREFIX=""
|
---|
| 6126 | JNISUFFIX="dll"
|
---|
| 6127 | fi
|
---|
| 6128 | fi
|
---|
[10192] | 6129 |
|
---|
| 6130 |
|
---|
| 6131 |
|
---|
[10917] | 6132 |
|
---|
[26656] | 6133 |
|
---|
| 6134 |
|
---|
| 6135 |
|
---|
[3365] | 6136 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 6137 | # ---------------------------------------------------------------------------
|
---|
[25170] | 6138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
|
---|
[23356] | 6139 | $as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
|
---|
[3365] | 6140 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[25170] | 6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
[23356] | 6142 | $as_echo "yes" >&6; }
|
---|
| 6143 | case " $LIBOBJS " in
|
---|
[10192] | 6144 | *" gmalloc.$ac_objext "* ) ;;
|
---|
[23356] | 6145 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
|
---|
| 6146 | ;;
|
---|
[10192] | 6147 | esac
|
---|
| 6148 |
|
---|
[25170] | 6149 | $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
|
---|
[3365] | 6150 |
|
---|
| 6151 | else
|
---|
[25170] | 6152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 6153 | $as_echo "no" >&6; }
|
---|
[25170] | 6154 | for ac_func in valloc
|
---|
| 6155 | do :
|
---|
| 6156 | ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
|
---|
| 6157 | if test "x$ac_cv_func_valloc" = xyes; then :
|
---|
[10192] | 6158 | cat >>confdefs.h <<_ACEOF
|
---|
[25170] | 6159 | #define HAVE_VALLOC 1
|
---|
[10192] | 6160 | _ACEOF
|
---|
[8059] | 6161 |
|
---|
[3365] | 6162 | fi
|
---|
| 6163 | done
|
---|
| 6164 |
|
---|
| 6165 | fi
|
---|
| 6166 |
|
---|
[25170] | 6167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
|
---|
[23356] | 6168 | $as_echo_n "checking if malloc debugging is wanted... " >&6; }
|
---|
[8063] | 6169 |
|
---|
[23356] | 6170 | # Check whether --with-dmalloc was given.
|
---|
[25170] | 6171 | if test "${with_dmalloc+set}" = set; then :
|
---|
[23356] | 6172 | withval=$with_dmalloc; if test "$withval" = yes; then
|
---|
[25170] | 6173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
[23356] | 6174 | $as_echo "yes" >&6; }
|
---|
[25170] | 6175 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
|
---|
[3365] | 6176 |
|
---|
| 6177 | LIBS="$LIBS -ldmalloc"
|
---|
| 6178 | LDFLAGS="$LDFLAGS -g"
|
---|
| 6179 | else
|
---|
[25170] | 6180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 6181 | $as_echo "no" >&6; }
|
---|
[3365] | 6182 | fi
|
---|
| 6183 | else
|
---|
[25170] | 6184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 6185 | $as_echo "no" >&6; }
|
---|
| 6186 | fi
|
---|
[3365] | 6187 |
|
---|
| 6188 |
|
---|
[25170] | 6189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
|
---|
[23356] | 6190 | $as_echo_n "checking which of rx or regex is wanted... " >&6; }
|
---|
| 6191 |
|
---|
| 6192 | # Check whether --with-regex was given.
|
---|
[25170] | 6193 | if test "${with_regex+set}" = set; then :
|
---|
[23356] | 6194 | withval=$with_regex; if test "$withval" = yes; then
|
---|
[3365] | 6195 | ac_with_regex=1
|
---|
[25170] | 6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
|
---|
[23356] | 6197 | $as_echo "regex" >&6; }
|
---|
[25170] | 6198 | $as_echo "#define WITH_REGEX 1" >>confdefs.h
|
---|
[3365] | 6199 |
|
---|
[23356] | 6200 | case " $LIBOBJS " in
|
---|
[10848] | 6201 | *" regex.$ac_objext "* ) ;;
|
---|
[23356] | 6202 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
| 6203 | ;;
|
---|
[10848] | 6204 | esac
|
---|
| 6205 |
|
---|
[3365] | 6206 | fi
|
---|
[23356] | 6207 | fi
|
---|
| 6208 |
|
---|
[3365] | 6209 | if test -z "$ac_with_regex"; then
|
---|
[25170] | 6210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
|
---|
[23356] | 6211 | $as_echo "rx" >&6; }
|
---|
[25170] | 6212 | ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
|
---|
| 6213 | if test "x$ac_cv_func_re_rx_search" = xyes; then :
|
---|
[10192] | 6214 |
|
---|
[3365] | 6215 | else
|
---|
[23356] | 6216 | # The cast to long int works around a bug in the HP C Compiler
|
---|
| 6217 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
| 6218 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
| 6219 | # This bug is HP SR number 8606223364.
|
---|
[25170] | 6220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5
|
---|
[23356] | 6221 | $as_echo_n "checking size of unsigned char *... " >&6; }
|
---|
[25170] | 6222 | if ${ac_cv_sizeof_unsigned_char_p+:} false; then :
|
---|
[23356] | 6223 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 6224 | else
|
---|
[25170] | 6225 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p" "$ac_includes_default"; then :
|
---|
[10192] | 6226 |
|
---|
[8063] | 6227 | else
|
---|
[25170] | 6228 | if test "$ac_cv_type_unsigned_char_p" = yes; then
|
---|
| 6229 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
[23356] | 6230 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25170] | 6231 | as_fn_error 77 "cannot compute sizeof (unsigned char *)
|
---|
| 6232 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
[23356] | 6233 | else
|
---|
| 6234 | ac_cv_sizeof_unsigned_char_p=0
|
---|
| 6235 | fi
|
---|
[8063] | 6236 | fi
|
---|
[25170] | 6237 |
|
---|
[8063] | 6238 | fi
|
---|
[25170] | 6239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5
|
---|
[23356] | 6240 | $as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; }
|
---|
[10192] | 6241 |
|
---|
| 6242 |
|
---|
| 6243 |
|
---|
| 6244 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 6245 | #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
|
---|
[10192] | 6246 | _ACEOF
|
---|
[3365] | 6247 |
|
---|
[10192] | 6248 |
|
---|
[3365] | 6249 | if test "$ac_cv_sizeof_unsigned_char_p" = 8
|
---|
| 6250 | then
|
---|
[25170] | 6251 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I'm forcing you to use regex because I can't
|
---|
[8063] | 6252 | find a local rx library and the one included with this
|
---|
| 6253 | distribution doesn't work on 64-bit machines like yours" >&5
|
---|
[23356] | 6254 | $as_echo "$as_me: WARNING: I'm forcing you to use regex because I can't
|
---|
[8063] | 6255 | find a local rx library and the one included with this
|
---|
| 6256 | distribution doesn't work on 64-bit machines like yours" >&2;}
|
---|
[23356] | 6257 | case " $LIBOBJS " in
|
---|
[10848] | 6258 | *" regex.$ac_objext "* ) ;;
|
---|
[23356] | 6259 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
| 6260 | ;;
|
---|
[10848] | 6261 | esac
|
---|
| 6262 |
|
---|
[3365] | 6263 | else
|
---|
[23356] | 6264 | case " $LIBOBJS " in
|
---|
[10848] | 6265 | *" rx.$ac_objext "* ) ;;
|
---|
[23356] | 6266 | *) LIBOBJS="$LIBOBJS rx.$ac_objext"
|
---|
| 6267 | ;;
|
---|
[10848] | 6268 | esac
|
---|
| 6269 |
|
---|
[3365] | 6270 | fi
|
---|
[8063] | 6271 |
|
---|
[3365] | 6272 | fi
|
---|
| 6273 |
|
---|
| 6274 | fi
|
---|
| 6275 |
|
---|
[25170] | 6276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU readline requested" >&5
|
---|
[23356] | 6277 | $as_echo_n "checking whether GNU readline requested... " >&6; }
|
---|
[8063] | 6278 |
|
---|
[23356] | 6279 | # Check whether --with-gnu_readline was given.
|
---|
[25170] | 6280 | if test "${with_gnu_readline+set}" = set; then :
|
---|
[23356] | 6281 | withval=$with_gnu_readline; if test "$withval" = yes; then
|
---|
[25170] | 6282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
[23356] | 6283 | $as_echo "yes" >&6; }
|
---|
[3365] | 6284 | ac_with_gnu_readline=1
|
---|
| 6285 | else
|
---|
[25170] | 6286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 6287 | $as_echo "no" >&6; }
|
---|
[3365] | 6288 | fi
|
---|
| 6289 | else
|
---|
[25170] | 6290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
[23356] | 6291 | $as_echo "no" >&6; }
|
---|
[10192] | 6292 | fi
|
---|
| 6293 |
|
---|
| 6294 |
|
---|
[23356] | 6295 | if test -n "$ac_with_gnu_readline"; then
|
---|
[25170] | 6296 | ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
|
---|
| 6297 | if test "x$ac_cv_header_readline_readline_h" = xyes; then :
|
---|
[3365] | 6298 | ac_mg_readline_header_found=1
|
---|
| 6299 | else
|
---|
[25170] | 6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find GNU readline headers; configuring without \
|
---|
[8063] | 6301 | GNU readline support" >&5
|
---|
[23356] | 6302 | $as_echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
|
---|
[8063] | 6303 | GNU readline support" >&2;}
|
---|
[3365] | 6304 | fi
|
---|
| 6305 |
|
---|
[10192] | 6306 |
|
---|
[3365] | 6307 | if test -n "$ac_mg_readline_header_found"; then
|
---|
| 6308 | # first check whether we can find the readline library itself
|
---|
[25170] | 6309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
|
---|
[23356] | 6310 | $as_echo_n "checking for main in -lreadline... " >&6; }
|
---|
[25170] | 6311 | if ${ac_cv_lib_readline_main+:} false; then :
|
---|
[23356] | 6312 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 6313 | else
|
---|
[8063] | 6314 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 6315 | LIBS="-lreadline $LIBS"
|
---|
[25170] | 6316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 6317 | /* end confdefs.h. */
|
---|
[3365] | 6318 |
|
---|
[10192] | 6319 |
|
---|
[8063] | 6320 | int
|
---|
| 6321 | main ()
|
---|
| 6322 | {
|
---|
[23356] | 6323 | return main ();
|
---|
[8063] | 6324 | ;
|
---|
| 6325 | return 0;
|
---|
| 6326 | }
|
---|
| 6327 | _ACEOF
|
---|
[25170] | 6328 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8063] | 6329 | ac_cv_lib_readline_main=yes
|
---|
[3365] | 6330 | else
|
---|
[25170] | 6331 | ac_cv_lib_readline_main=no
|
---|
[3365] | 6332 | fi
|
---|
[25170] | 6333 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 6334 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 6335 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 6336 | fi
|
---|
[25170] | 6337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
|
---|
[23356] | 6338 | $as_echo "$ac_cv_lib_readline_main" >&6; }
|
---|
[25170] | 6339 | if test "x$ac_cv_lib_readline_main" = xyes; then :
|
---|
[3365] | 6340 | ac_mg_readline_lib_found=1
|
---|
[25170] | 6341 | $as_echo "#define WITH_GNU_READLINE 1" >>confdefs.h
|
---|
[3365] | 6342 |
|
---|
| 6343 | LIBS="$LIBS -lreadline"
|
---|
| 6344 | else
|
---|
[25170] | 6345 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find GNU readline library; configuring without \
|
---|
[8063] | 6346 | GNU readline support" >&5
|
---|
[23356] | 6347 | $as_echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
|
---|
[8063] | 6348 | GNU readline support" >&2;}
|
---|
[3365] | 6349 | fi
|
---|
| 6350 |
|
---|
| 6351 | if test -n "$ac_mg_readline_lib_found"; then
|
---|
[8063] | 6352 | # on some systems, readline needs curses. It is difficult to
|
---|
[3365] | 6353 | # determine whether this is necessary on the current system,
|
---|
| 6354 | # since other undefined symbols can be turned up by an
|
---|
| 6355 | # AC_CHECK_LIB(readline, readline) test that are actually defined
|
---|
| 6356 | # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses,
|
---|
| 6357 | # we just bung it on and hope for the best.
|
---|
[25170] | 6358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
|
---|
[23356] | 6359 | $as_echo_n "checking for main in -lcurses... " >&6; }
|
---|
[25170] | 6360 | if ${ac_cv_lib_curses_main+:} false; then :
|
---|
[23356] | 6361 | $as_echo_n "(cached) " >&6
|
---|
[3365] | 6362 | else
|
---|
[8063] | 6363 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 6364 | LIBS="-lcurses $LIBS"
|
---|
[25170] | 6365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10192] | 6366 | /* end confdefs.h. */
|
---|
[3365] | 6367 |
|
---|
[10192] | 6368 |
|
---|
[8063] | 6369 | int
|
---|
| 6370 | main ()
|
---|
| 6371 | {
|
---|
[23356] | 6372 | return main ();
|
---|
[8063] | 6373 | ;
|
---|
| 6374 | return 0;
|
---|
| 6375 | }
|
---|
| 6376 | _ACEOF
|
---|
[25170] | 6377 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8063] | 6378 | ac_cv_lib_curses_main=yes
|
---|
[3365] | 6379 | else
|
---|
[25170] | 6380 | ac_cv_lib_curses_main=no
|
---|
[3365] | 6381 | fi
|
---|
[25170] | 6382 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 6383 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 6384 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 6385 | fi
|
---|
[25170] | 6386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
|
---|
[23356] | 6387 | $as_echo "$ac_cv_lib_curses_main" >&6; }
|
---|
[25170] | 6388 | if test "x$ac_cv_lib_curses_main" = xyes; then :
|
---|
[3365] | 6389 | LIBS="$LIBS -lcurses"
|
---|
| 6390 | fi
|
---|
| 6391 |
|
---|
| 6392 | fi
|
---|
| 6393 | fi
|
---|
| 6394 | fi
|
---|
| 6395 |
|
---|
[10192] | 6396 |
|
---|
[10848] | 6397 | # text for endianness
|
---|
[25170] | 6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
---|
[23356] | 6399 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
---|
[25170] | 6400 | if ${ac_cv_c_bigendian+:} false; then :
|
---|
[23356] | 6401 | $as_echo_n "(cached) " >&6
|
---|
[10848] | 6402 | else
|
---|
[23356] | 6403 | ac_cv_c_bigendian=unknown
|
---|
| 6404 | # See if we're dealing with a universal compiler.
|
---|
[25170] | 6405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 6406 | /* end confdefs.h. */
|
---|
| 6407 | #ifndef __APPLE_CC__
|
---|
| 6408 | not a universal capable compiler
|
---|
| 6409 | #endif
|
---|
| 6410 | typedef int dummy;
|
---|
| 6411 |
|
---|
[10848] | 6412 | _ACEOF
|
---|
[25170] | 6413 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 6414 |
|
---|
| 6415 | # Check for potential -arch flags. It is not universal unless
|
---|
[25170] | 6416 | # there are at least two -arch flags with different values.
|
---|
| 6417 | ac_arch=
|
---|
| 6418 | ac_prev=
|
---|
| 6419 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
---|
| 6420 | if test -n "$ac_prev"; then
|
---|
| 6421 | case $ac_word in
|
---|
| 6422 | i?86 | x86_64 | ppc | ppc64)
|
---|
| 6423 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
---|
| 6424 | ac_arch=$ac_word
|
---|
| 6425 | else
|
---|
| 6426 | ac_cv_c_bigendian=universal
|
---|
| 6427 | break
|
---|
| 6428 | fi
|
---|
| 6429 | ;;
|
---|
| 6430 | esac
|
---|
| 6431 | ac_prev=
|
---|
| 6432 | elif test "x$ac_word" = "x-arch"; then
|
---|
| 6433 | ac_prev=arch
|
---|
| 6434 | fi
|
---|
| 6435 | done
|
---|
[23356] | 6436 | fi
|
---|
| 6437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6438 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 6439 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
[25170] | 6440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10848] | 6441 | /* end confdefs.h. */
|
---|
| 6442 | #include <sys/types.h>
|
---|
[23356] | 6443 | #include <sys/param.h>
|
---|
[10848] | 6444 |
|
---|
| 6445 | int
|
---|
| 6446 | main ()
|
---|
| 6447 | {
|
---|
[23356] | 6448 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
---|
| 6449 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
---|
| 6450 | && LITTLE_ENDIAN)
|
---|
| 6451 | bogus endian macros
|
---|
| 6452 | #endif
|
---|
[10848] | 6453 |
|
---|
| 6454 | ;
|
---|
| 6455 | return 0;
|
---|
| 6456 | }
|
---|
| 6457 | _ACEOF
|
---|
[25170] | 6458 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10848] | 6459 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
[25170] | 6460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10848] | 6461 | /* end confdefs.h. */
|
---|
| 6462 | #include <sys/types.h>
|
---|
[23356] | 6463 | #include <sys/param.h>
|
---|
[10848] | 6464 |
|
---|
| 6465 | int
|
---|
| 6466 | main ()
|
---|
| 6467 | {
|
---|
| 6468 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
[23356] | 6469 | not big endian
|
---|
| 6470 | #endif
|
---|
[10848] | 6471 |
|
---|
| 6472 | ;
|
---|
| 6473 | return 0;
|
---|
| 6474 | }
|
---|
| 6475 | _ACEOF
|
---|
[25170] | 6476 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10848] | 6477 | ac_cv_c_bigendian=yes
|
---|
| 6478 | else
|
---|
[25170] | 6479 | ac_cv_c_bigendian=no
|
---|
[10848] | 6480 | fi
|
---|
[23356] | 6481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6482 | fi
|
---|
| 6483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6484 | fi
|
---|
| 6485 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 6486 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
---|
[25170] | 6487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 6488 | /* end confdefs.h. */
|
---|
| 6489 | #include <limits.h>
|
---|
[10848] | 6490 |
|
---|
[23356] | 6491 | int
|
---|
| 6492 | main ()
|
---|
| 6493 | {
|
---|
| 6494 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
---|
| 6495 | bogus endian macros
|
---|
| 6496 | #endif
|
---|
| 6497 |
|
---|
| 6498 | ;
|
---|
| 6499 | return 0;
|
---|
| 6500 | }
|
---|
[10848] | 6501 | _ACEOF
|
---|
[25170] | 6502 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 6503 | # It does; now see whether it defined to _BIG_ENDIAN or not.
|
---|
[25170] | 6504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10848] | 6505 | /* end confdefs.h. */
|
---|
[23356] | 6506 | #include <limits.h>
|
---|
| 6507 |
|
---|
[10848] | 6508 | int
|
---|
| 6509 | main ()
|
---|
| 6510 | {
|
---|
[23356] | 6511 | #ifndef _BIG_ENDIAN
|
---|
| 6512 | not big endian
|
---|
| 6513 | #endif
|
---|
| 6514 |
|
---|
[10848] | 6515 | ;
|
---|
| 6516 | return 0;
|
---|
| 6517 | }
|
---|
| 6518 | _ACEOF
|
---|
[25170] | 6519 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10848] | 6520 | ac_cv_c_bigendian=yes
|
---|
[23356] | 6521 | else
|
---|
[25170] | 6522 | ac_cv_c_bigendian=no
|
---|
[10848] | 6523 | fi
|
---|
[23356] | 6524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10848] | 6525 | fi
|
---|
[23356] | 6526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6527 | fi
|
---|
| 6528 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 6529 | # Compile a test program.
|
---|
[25170] | 6530 | if test "$cross_compiling" = yes; then :
|
---|
[23356] | 6531 | # Try to guess by grepping values from an object file.
|
---|
[25170] | 6532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[23356] | 6533 | /* end confdefs.h. */
|
---|
| 6534 | short int ascii_mm[] =
|
---|
| 6535 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 6536 | short int ascii_ii[] =
|
---|
| 6537 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 6538 | int use_ascii (int i) {
|
---|
| 6539 | return ascii_mm[i] + ascii_ii[i];
|
---|
| 6540 | }
|
---|
| 6541 | short int ebcdic_ii[] =
|
---|
| 6542 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 6543 | short int ebcdic_mm[] =
|
---|
| 6544 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 6545 | int use_ebcdic (int i) {
|
---|
| 6546 | return ebcdic_mm[i] + ebcdic_ii[i];
|
---|
| 6547 | }
|
---|
| 6548 | extern int foo;
|
---|
[10848] | 6549 |
|
---|
[23356] | 6550 | int
|
---|
| 6551 | main ()
|
---|
| 6552 | {
|
---|
| 6553 | return use_ascii (foo) == use_ebcdic (foo);
|
---|
| 6554 | ;
|
---|
| 6555 | return 0;
|
---|
| 6556 | }
|
---|
| 6557 | _ACEOF
|
---|
[25170] | 6558 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[23356] | 6559 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
---|
| 6560 | ac_cv_c_bigendian=yes
|
---|
| 6561 | fi
|
---|
| 6562 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 6563 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 6564 | ac_cv_c_bigendian=no
|
---|
| 6565 | else
|
---|
| 6566 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 6567 | ac_cv_c_bigendian=unknown
|
---|
| 6568 | fi
|
---|
| 6569 | fi
|
---|
[10848] | 6570 | fi
|
---|
[23356] | 6571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10848] | 6572 | else
|
---|
[25170] | 6573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10848] | 6574 | /* end confdefs.h. */
|
---|
[23356] | 6575 | $ac_includes_default
|
---|
[10848] | 6576 | int
|
---|
| 6577 | main ()
|
---|
| 6578 | {
|
---|
[23356] | 6579 |
|
---|
| 6580 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 6581 | union
|
---|
| 6582 | {
|
---|
| 6583 | long int l;
|
---|
| 6584 | char c[sizeof (long int)];
|
---|
| 6585 | } u;
|
---|
| 6586 | u.l = 1;
|
---|
| 6587 | return u.c[sizeof (long int) - 1] == 1;
|
---|
| 6588 |
|
---|
| 6589 | ;
|
---|
| 6590 | return 0;
|
---|
[10848] | 6591 | }
|
---|
| 6592 | _ACEOF
|
---|
[25170] | 6593 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
[10848] | 6594 | ac_cv_c_bigendian=no
|
---|
| 6595 | else
|
---|
[25170] | 6596 | ac_cv_c_bigendian=yes
|
---|
[10848] | 6597 | fi
|
---|
[25170] | 6598 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 6599 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[10848] | 6600 | fi
|
---|
[23356] | 6601 |
|
---|
| 6602 | fi
|
---|
[10848] | 6603 | fi
|
---|
[25170] | 6604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
---|
[23356] | 6605 | $as_echo "$ac_cv_c_bigendian" >&6; }
|
---|
| 6606 | case $ac_cv_c_bigendian in #(
|
---|
| 6607 | yes)
|
---|
[25170] | 6608 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
|
---|
[23356] | 6609 | ;; #(
|
---|
| 6610 | no)
|
---|
| 6611 | ;; #(
|
---|
| 6612 | universal)
|
---|
[10848] | 6613 |
|
---|
[25170] | 6614 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
---|
[10848] | 6615 |
|
---|
[23356] | 6616 | ;; #(
|
---|
| 6617 | *)
|
---|
[25170] | 6618 | as_fn_error $? "unknown endianness
|
---|
| 6619 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
---|
[23356] | 6620 | esac
|
---|
[10848] | 6621 |
|
---|
[23356] | 6622 |
|
---|
[3365] | 6623 | # ---------------------------------------------------------------------------
|
---|
| 6624 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[23356] | 6625 | case " $LIBOBJS " in
|
---|
[10192] | 6626 | *" xmalloc.$ac_objext "* ) ;;
|
---|
[23356] | 6627 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
|
---|
| 6628 | ;;
|
---|
[10192] | 6629 | esac
|
---|
| 6630 |
|
---|
[23356] | 6631 | case " $LIBOBJS " in
|
---|
[10192] | 6632 | *" error.$ac_objext "* ) ;;
|
---|
[23356] | 6633 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
| 6634 | ;;
|
---|
[10192] | 6635 | esac
|
---|
| 6636 |
|
---|
[3365] | 6637 | fi
|
---|
| 6638 |
|
---|
[10192] | 6639 |
|
---|
[3365] | 6640 | # ---------------------------------------------------------------------------
|
---|
| 6641 | # see if the user wants to override use of long long
|
---|
[23356] | 6642 | # Check whether --enable-override-longlong was given.
|
---|
[25170] | 6643 | if test "${enable_override_longlong+set}" = set; then :
|
---|
| 6644 | enableval=$enable_override_longlong; $as_echo "#define DISABLE_LONG_LONG 1" >>confdefs.h
|
---|
[3365] | 6645 |
|
---|
[23356] | 6646 | fi
|
---|
[3365] | 6647 |
|
---|
[10848] | 6648 |
|
---|
[23356] | 6649 |
|
---|
[3365] | 6650 | # ---------------------------------------------------------------------------
|
---|
| 6651 |
|
---|
[23356] | 6652 | ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
|
---|
| 6653 |
|
---|
| 6654 | ac_config_commands="$ac_config_commands default"
|
---|
| 6655 |
|
---|
[8063] | 6656 | cat >confcache <<\_ACEOF
|
---|
[3365] | 6657 | # This file is a shell script that caches the results of configure
|
---|
| 6658 | # tests run on this system so they can be shared between configure
|
---|
[8063] | 6659 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 6660 | # It is not useful on other systems. If it contains results you don't
|
---|
| 6661 | # want to keep, you may remove or edit it.
|
---|
[3365] | 6662 | #
|
---|
[8063] | 6663 | # config.status only pays attention to the cache file if you give it
|
---|
| 6664 | # the --recheck option to rerun configure.
|
---|
[3365] | 6665 | #
|
---|
[10192] | 6666 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
[8063] | 6667 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 6668 | # following values.
|
---|
| 6669 |
|
---|
| 6670 | _ACEOF
|
---|
| 6671 |
|
---|
[3365] | 6672 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 6673 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
[23356] | 6674 | # So, we kill variables containing newlines.
|
---|
[3365] | 6675 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 6676 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[23356] | 6677 | (
|
---|
| 6678 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
| 6679 | eval ac_val=\$$ac_var
|
---|
| 6680 | case $ac_val in #(
|
---|
| 6681 | *${as_nl}*)
|
---|
| 6682 | case $ac_var in #(
|
---|
[25170] | 6683 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
[23356] | 6684 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
| 6685 | esac
|
---|
| 6686 | case $ac_var in #(
|
---|
| 6687 | _ | IFS | as_nl) ;; #(
|
---|
| 6688 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
[25170] | 6689 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
[23356] | 6690 | esac ;;
|
---|
| 6691 | esac
|
---|
| 6692 | done
|
---|
| 6693 |
|
---|
[8063] | 6694 | (set) 2>&1 |
|
---|
[23356] | 6695 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
| 6696 | *${as_nl}ac_space=\ *)
|
---|
[25170] | 6697 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
| 6698 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
[8063] | 6699 | sed -n \
|
---|
[10192] | 6700 | "s/'/'\\\\''/g;
|
---|
| 6701 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[23356] | 6702 | ;; #(
|
---|
[8063] | 6703 | *)
|
---|
| 6704 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
[23356] | 6705 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
[8063] | 6706 | ;;
|
---|
[23356] | 6707 | esac |
|
---|
| 6708 | sort
|
---|
| 6709 | ) |
|
---|
[8063] | 6710 | sed '
|
---|
[23356] | 6711 | /^ac_cv_env_/b end
|
---|
[8063] | 6712 | t clear
|
---|
[23356] | 6713 | :clear
|
---|
[8063] | 6714 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 6715 | t end
|
---|
[23356] | 6716 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 6717 | :end' >>confcache
|
---|
| 6718 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
| 6719 | if test -w "$cache_file"; then
|
---|
[25170] | 6720 | if test "x$cache_file" != "x/dev/null"; then
|
---|
| 6721 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
[23356] | 6722 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
[25170] | 6723 | if test ! -f "$cache_file" || test -h "$cache_file"; then
|
---|
| 6724 | cat confcache >"$cache_file"
|
---|
| 6725 | else
|
---|
| 6726 | case $cache_file in #(
|
---|
| 6727 | */* | ?:*)
|
---|
| 6728 | mv -f confcache "$cache_file"$$ &&
|
---|
| 6729 | mv -f "$cache_file"$$ "$cache_file" ;; #(
|
---|
| 6730 | *)
|
---|
| 6731 | mv -f confcache "$cache_file" ;;
|
---|
| 6732 | esac
|
---|
| 6733 | fi
|
---|
| 6734 | fi
|
---|
[3365] | 6735 | else
|
---|
[25170] | 6736 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
[23356] | 6737 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
[3365] | 6738 | fi
|
---|
| 6739 | fi
|
---|
| 6740 | rm -f confcache
|
---|
| 6741 |
|
---|
| 6742 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 6743 | # Let make expand exec_prefix.
|
---|
| 6744 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 6745 |
|
---|
| 6746 | DEFS=-DHAVE_CONFIG_H
|
---|
| 6747 |
|
---|
[10192] | 6748 | ac_libobjs=
|
---|
| 6749 | ac_ltlibobjs=
|
---|
[25170] | 6750 | U=
|
---|
[10192] | 6751 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 6752 | # 1. Remove the extension, and $U if already installed.
|
---|
[23356] | 6753 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
| 6754 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
| 6755 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
| 6756 | # will be set to the directory where LIBOBJS objects are built.
|
---|
[25170] | 6757 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
| 6758 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
[10192] | 6759 | done
|
---|
| 6760 | LIBOBJS=$ac_libobjs
|
---|
| 6761 |
|
---|
| 6762 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 6763 |
|
---|
| 6764 |
|
---|
| 6765 |
|
---|
[23356] | 6766 |
|
---|
[25170] | 6767 | : "${CONFIG_STATUS=./config.status}"
|
---|
[23356] | 6768 | ac_write_fail=0
|
---|
[8063] | 6769 | ac_clean_files_save=$ac_clean_files
|
---|
| 6770 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
[25170] | 6771 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
[23356] | 6772 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
[25170] | 6773 | as_write_fail=0
|
---|
| 6774 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
[8063] | 6775 | #! $SHELL
|
---|
[10192] | 6776 | # Generated by $as_me.
|
---|
[3365] | 6777 | # Run this file to recreate the current configuration.
|
---|
| 6778 | # Compiler output produced by configure, useful for debugging
|
---|
[8063] | 6779 | # configure, is in config.log if it exists.
|
---|
[3365] | 6780 |
|
---|
[8063] | 6781 | debug=false
|
---|
[10192] | 6782 | ac_cs_recheck=false
|
---|
| 6783 | ac_cs_silent=false
|
---|
[25170] | 6784 |
|
---|
[8063] | 6785 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
[25170] | 6786 | export SHELL
|
---|
| 6787 | _ASEOF
|
---|
| 6788 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
| 6789 | ## -------------------- ##
|
---|
| 6790 | ## M4sh Initialization. ##
|
---|
| 6791 | ## -------------------- ##
|
---|
[8063] | 6792 |
|
---|
[23356] | 6793 | # Be more Bourne compatible
|
---|
| 6794 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[25170] | 6795 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
[8063] | 6796 | emulate sh
|
---|
| 6797 | NULLCMD=:
|
---|
[23356] | 6798 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
[10192] | 6799 | # is contrary to our usage. Disable this feature.
|
---|
| 6800 | alias -g '${1+"$@"}'='"$@"'
|
---|
[23356] | 6801 | setopt NO_GLOB_SUBST
|
---|
| 6802 | else
|
---|
[25170] | 6803 | case `(set -o) 2>/dev/null` in #(
|
---|
| 6804 | *posix*) :
|
---|
| 6805 | set -o posix ;; #(
|
---|
| 6806 | *) :
|
---|
| 6807 | ;;
|
---|
[23356] | 6808 | esac
|
---|
[8063] | 6809 | fi
|
---|
| 6810 |
|
---|
[23356] | 6811 |
|
---|
| 6812 | as_nl='
|
---|
| 6813 | '
|
---|
| 6814 | export as_nl
|
---|
| 6815 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
| 6816 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
| 6817 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 6818 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
[25170] | 6819 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
| 6820 | # but without wasting forks for bash or zsh.
|
---|
| 6821 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
| 6822 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 6823 | as_echo='print -r --'
|
---|
| 6824 | as_echo_n='print -rn --'
|
---|
| 6825 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
[23356] | 6826 | as_echo='printf %s\n'
|
---|
| 6827 | as_echo_n='printf %s'
|
---|
[10192] | 6828 | else
|
---|
[23356] | 6829 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
| 6830 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
| 6831 | as_echo_n='/usr/ucb/echo -n'
|
---|
| 6832 | else
|
---|
| 6833 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
| 6834 | as_echo_n_body='eval
|
---|
| 6835 | arg=$1;
|
---|
[25170] | 6836 | case $arg in #(
|
---|
[23356] | 6837 | *"$as_nl"*)
|
---|
| 6838 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
| 6839 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
| 6840 | esac;
|
---|
| 6841 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
| 6842 | '
|
---|
| 6843 | export as_echo_n_body
|
---|
| 6844 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
| 6845 | fi
|
---|
| 6846 | export as_echo_body
|
---|
| 6847 | as_echo='sh -c $as_echo_body as_echo'
|
---|
[10192] | 6848 | fi
|
---|
| 6849 |
|
---|
[23356] | 6850 | # The user is always right.
|
---|
| 6851 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 6852 | PATH_SEPARATOR=:
|
---|
| 6853 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
| 6854 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
| 6855 | PATH_SEPARATOR=';'
|
---|
| 6856 | }
|
---|
| 6857 | fi
|
---|
[10192] | 6858 |
|
---|
[23356] | 6859 |
|
---|
| 6860 | # IFS
|
---|
| 6861 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 6862 | # there to prevent editors from complaining about space-tab.
|
---|
| 6863 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 6864 | # splitting by setting IFS to empty value.)
|
---|
| 6865 | IFS=" "" $as_nl"
|
---|
| 6866 |
|
---|
| 6867 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
[25170] | 6868 | as_myself=
|
---|
| 6869 | case $0 in #((
|
---|
[23356] | 6870 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 6871 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 6872 | for as_dir in $PATH
|
---|
| 6873 | do
|
---|
| 6874 | IFS=$as_save_IFS
|
---|
| 6875 | test -z "$as_dir" && as_dir=.
|
---|
[25170] | 6876 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 6877 | done
|
---|
[23356] | 6878 | IFS=$as_save_IFS
|
---|
| 6879 |
|
---|
| 6880 | ;;
|
---|
| 6881 | esac
|
---|
| 6882 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 6883 | # in which case we are not to be found in the path.
|
---|
| 6884 | if test "x$as_myself" = x; then
|
---|
| 6885 | as_myself=$0
|
---|
| 6886 | fi
|
---|
| 6887 | if test ! -f "$as_myself"; then
|
---|
| 6888 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
[25170] | 6889 | exit 1
|
---|
[23356] | 6890 | fi
|
---|
| 6891 |
|
---|
[25170] | 6892 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
| 6893 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
| 6894 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
| 6895 | # trigger a bug in pdksh 5.2.14.
|
---|
| 6896 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
| 6897 | do eval test x\${$as_var+set} = xset \
|
---|
| 6898 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
[23356] | 6899 | done
|
---|
[10192] | 6900 | PS1='$ '
|
---|
| 6901 | PS2='> '
|
---|
| 6902 | PS4='+ '
|
---|
| 6903 |
|
---|
| 6904 | # NLS nuisances.
|
---|
[23356] | 6905 | LC_ALL=C
|
---|
| 6906 | export LC_ALL
|
---|
| 6907 | LANGUAGE=C
|
---|
| 6908 | export LANGUAGE
|
---|
| 6909 |
|
---|
[25170] | 6910 | # CDPATH.
|
---|
| 6911 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
| 6912 |
|
---|
| 6913 |
|
---|
| 6914 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
| 6915 | # ----------------------------------------
|
---|
| 6916 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
| 6917 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
| 6918 | # script with STATUS, using 1 if that was 0.
|
---|
| 6919 | as_fn_error ()
|
---|
| 6920 | {
|
---|
| 6921 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
| 6922 | if test "$4"; then
|
---|
| 6923 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 6924 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
| 6925 | fi
|
---|
| 6926 | $as_echo "$as_me: error: $2" >&2
|
---|
| 6927 | as_fn_exit $as_status
|
---|
| 6928 | } # as_fn_error
|
---|
| 6929 |
|
---|
| 6930 |
|
---|
| 6931 | # as_fn_set_status STATUS
|
---|
| 6932 | # -----------------------
|
---|
| 6933 | # Set $? to STATUS, without forking.
|
---|
| 6934 | as_fn_set_status ()
|
---|
| 6935 | {
|
---|
| 6936 | return $1
|
---|
| 6937 | } # as_fn_set_status
|
---|
| 6938 |
|
---|
| 6939 | # as_fn_exit STATUS
|
---|
| 6940 | # -----------------
|
---|
| 6941 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
| 6942 | as_fn_exit ()
|
---|
| 6943 | {
|
---|
| 6944 | set +e
|
---|
| 6945 | as_fn_set_status $1
|
---|
| 6946 | exit $1
|
---|
| 6947 | } # as_fn_exit
|
---|
| 6948 |
|
---|
| 6949 | # as_fn_unset VAR
|
---|
| 6950 | # ---------------
|
---|
| 6951 | # Portably unset VAR.
|
---|
| 6952 | as_fn_unset ()
|
---|
| 6953 | {
|
---|
| 6954 | { eval $1=; unset $1;}
|
---|
| 6955 | }
|
---|
| 6956 | as_unset=as_fn_unset
|
---|
| 6957 | # as_fn_append VAR VALUE
|
---|
| 6958 | # ----------------------
|
---|
| 6959 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
| 6960 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
| 6961 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
| 6962 | # implementations.
|
---|
| 6963 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
| 6964 | eval 'as_fn_append ()
|
---|
| 6965 | {
|
---|
| 6966 | eval $1+=\$2
|
---|
| 6967 | }'
|
---|
| 6968 | else
|
---|
| 6969 | as_fn_append ()
|
---|
| 6970 | {
|
---|
| 6971 | eval $1=\$$1\$2
|
---|
| 6972 | }
|
---|
| 6973 | fi # as_fn_append
|
---|
| 6974 |
|
---|
| 6975 | # as_fn_arith ARG...
|
---|
| 6976 | # ------------------
|
---|
| 6977 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
| 6978 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
| 6979 | # must be portable across $(()) and expr.
|
---|
| 6980 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
| 6981 | eval 'as_fn_arith ()
|
---|
| 6982 | {
|
---|
| 6983 | as_val=$(( $* ))
|
---|
| 6984 | }'
|
---|
| 6985 | else
|
---|
| 6986 | as_fn_arith ()
|
---|
| 6987 | {
|
---|
| 6988 | as_val=`expr "$@" || test $? -eq 1`
|
---|
| 6989 | }
|
---|
| 6990 | fi # as_fn_arith
|
---|
| 6991 |
|
---|
| 6992 |
|
---|
[23356] | 6993 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 6994 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
[10192] | 6995 | as_expr=expr
|
---|
| 6996 | else
|
---|
| 6997 | as_expr=false
|
---|
| 6998 | fi
|
---|
| 6999 |
|
---|
[23356] | 7000 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
[10192] | 7001 | as_basename=basename
|
---|
| 7002 | else
|
---|
| 7003 | as_basename=false
|
---|
| 7004 | fi
|
---|
| 7005 |
|
---|
[25170] | 7006 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 7007 | as_dirname=dirname
|
---|
| 7008 | else
|
---|
| 7009 | as_dirname=false
|
---|
| 7010 | fi
|
---|
[10192] | 7011 |
|
---|
[23356] | 7012 | as_me=`$as_basename -- "$0" ||
|
---|
[10192] | 7013 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 7014 | X"$0" : 'X\(//\)$' \| \
|
---|
[23356] | 7015 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 7016 | $as_echo X/"$0" |
|
---|
| 7017 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 7018 | s//\1/
|
---|
| 7019 | q
|
---|
| 7020 | }
|
---|
| 7021 | /^X\/\(\/\/\)$/{
|
---|
| 7022 | s//\1/
|
---|
| 7023 | q
|
---|
| 7024 | }
|
---|
| 7025 | /^X\/\(\/\).*/{
|
---|
| 7026 | s//\1/
|
---|
| 7027 | q
|
---|
| 7028 | }
|
---|
| 7029 | s/.*/./; q'`
|
---|
[8063] | 7030 |
|
---|
[25170] | 7031 | # Avoid depending upon Character Ranges.
|
---|
| 7032 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 7033 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 7034 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 7035 | as_cr_digits='0123456789'
|
---|
| 7036 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
[10192] | 7037 |
|
---|
[23356] | 7038 | ECHO_C= ECHO_N= ECHO_T=
|
---|
[25170] | 7039 | case `echo -n x` in #(((((
|
---|
[23356] | 7040 | -n*)
|
---|
[25170] | 7041 | case `echo 'xy\c'` in
|
---|
[23356] | 7042 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
[25170] | 7043 | xy) ECHO_C='\c';;
|
---|
| 7044 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
| 7045 | ECHO_T=' ';;
|
---|
[23356] | 7046 | esac;;
|
---|
| 7047 | *)
|
---|
| 7048 | ECHO_N='-n';;
|
---|
[10192] | 7049 | esac
|
---|
| 7050 |
|
---|
[23356] | 7051 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7052 | if test -d conf$$.dir; then
|
---|
| 7053 | rm -f conf$$.dir/conf$$.file
|
---|
[8063] | 7054 | else
|
---|
[23356] | 7055 | rm -f conf$$.dir
|
---|
| 7056 | mkdir conf$$.dir 2>/dev/null
|
---|
[8063] | 7057 | fi
|
---|
[23356] | 7058 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
| 7059 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7060 | as_ln_s='ln -s'
|
---|
| 7061 | # ... but there are two gotchas:
|
---|
| 7062 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 7063 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
[30867] | 7064 | # In both cases, we have to default to `cp -pR'.
|
---|
[23356] | 7065 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
[30867] | 7066 | as_ln_s='cp -pR'
|
---|
[23356] | 7067 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7068 | as_ln_s=ln
|
---|
| 7069 | else
|
---|
[30867] | 7070 | as_ln_s='cp -pR'
|
---|
[22058] | 7071 | fi
|
---|
[8063] | 7072 | else
|
---|
[30867] | 7073 | as_ln_s='cp -pR'
|
---|
[8063] | 7074 | fi
|
---|
[23356] | 7075 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 7076 | rmdir conf$$.dir 2>/dev/null
|
---|
[8063] | 7077 |
|
---|
[25170] | 7078 |
|
---|
| 7079 | # as_fn_mkdir_p
|
---|
| 7080 | # -------------
|
---|
| 7081 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
| 7082 | as_fn_mkdir_p ()
|
---|
| 7083 | {
|
---|
| 7084 |
|
---|
| 7085 | case $as_dir in #(
|
---|
| 7086 | -*) as_dir=./$as_dir;;
|
---|
| 7087 | esac
|
---|
| 7088 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
| 7089 | as_dirs=
|
---|
| 7090 | while :; do
|
---|
| 7091 | case $as_dir in #(
|
---|
| 7092 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
| 7093 | *) as_qdir=$as_dir;;
|
---|
| 7094 | esac
|
---|
| 7095 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 7096 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
| 7097 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7098 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 7099 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 7100 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 7101 | $as_echo X"$as_dir" |
|
---|
| 7102 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 7103 | s//\1/
|
---|
| 7104 | q
|
---|
| 7105 | }
|
---|
| 7106 | /^X\(\/\/\)[^/].*/{
|
---|
| 7107 | s//\1/
|
---|
| 7108 | q
|
---|
| 7109 | }
|
---|
| 7110 | /^X\(\/\/\)$/{
|
---|
| 7111 | s//\1/
|
---|
| 7112 | q
|
---|
| 7113 | }
|
---|
| 7114 | /^X\(\/\).*/{
|
---|
| 7115 | s//\1/
|
---|
| 7116 | q
|
---|
| 7117 | }
|
---|
| 7118 | s/.*/./; q'`
|
---|
| 7119 | test -d "$as_dir" && break
|
---|
| 7120 | done
|
---|
| 7121 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
| 7122 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
| 7123 |
|
---|
| 7124 |
|
---|
| 7125 | } # as_fn_mkdir_p
|
---|
[10192] | 7126 | if mkdir -p . 2>/dev/null; then
|
---|
[25170] | 7127 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
[8063] | 7128 | else
|
---|
[10192] | 7129 | test -d ./-p && rmdir ./-p
|
---|
| 7130 | as_mkdir_p=false
|
---|
[8063] | 7131 | fi
|
---|
| 7132 |
|
---|
| 7133 |
|
---|
[30867] | 7134 | # as_fn_executable_p FILE
|
---|
| 7135 | # -----------------------
|
---|
| 7136 | # Test if FILE is an executable regular file.
|
---|
| 7137 | as_fn_executable_p ()
|
---|
| 7138 | {
|
---|
| 7139 | test -f "$1" && test -x "$1"
|
---|
| 7140 | } # as_fn_executable_p
|
---|
| 7141 | as_test_x='test -x'
|
---|
| 7142 | as_executable_p=as_fn_executable_p
|
---|
| 7143 |
|
---|
[10192] | 7144 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 7145 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7146 |
|
---|
| 7147 | # Sed expression to map a string onto a valid variable name.
|
---|
| 7148 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7149 |
|
---|
| 7150 |
|
---|
[8063] | 7151 | exec 6>&1
|
---|
[25170] | 7152 | ## ----------------------------------- ##
|
---|
| 7153 | ## Main body of $CONFIG_STATUS script. ##
|
---|
| 7154 | ## ----------------------------------- ##
|
---|
| 7155 | _ASEOF
|
---|
| 7156 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
[8063] | 7157 |
|
---|
[25170] | 7158 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7159 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
[10192] | 7160 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
[23356] | 7161 | # values after options handling.
|
---|
| 7162 | ac_log="
|
---|
[10192] | 7163 | This file was extended by $as_me, which was
|
---|
[30867] | 7164 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
[10192] | 7165 |
|
---|
| 7166 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 7167 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 7168 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 7169 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 7170 | $ $0 $@
|
---|
| 7171 |
|
---|
[23356] | 7172 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 7173 | "
|
---|
| 7174 |
|
---|
[8063] | 7175 | _ACEOF
|
---|
| 7176 |
|
---|
[23356] | 7177 | case $ac_config_files in *"
|
---|
| 7178 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
| 7179 | esac
|
---|
[8063] | 7180 |
|
---|
[23356] | 7181 | case $ac_config_headers in *"
|
---|
| 7182 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
| 7183 | esac
|
---|
[8063] | 7184 |
|
---|
[22058] | 7185 |
|
---|
[23356] | 7186 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7187 | # Files that config.status was made for.
|
---|
| 7188 | config_files="$ac_config_files"
|
---|
| 7189 | config_headers="$ac_config_headers"
|
---|
| 7190 | config_commands="$ac_config_commands"
|
---|
[22058] | 7191 |
|
---|
[23356] | 7192 | _ACEOF
|
---|
[22058] | 7193 |
|
---|
[23356] | 7194 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[8063] | 7195 | ac_cs_usage="\
|
---|
[25170] | 7196 | \`$as_me' instantiates files and other configuration actions
|
---|
| 7197 | from templates according to the current configuration. Unless the files
|
---|
| 7198 | and actions are specified as TAGs, all are instantiated by default.
|
---|
[8063] | 7199 |
|
---|
[25170] | 7200 | Usage: $0 [OPTION]... [TAG]...
|
---|
[8063] | 7201 |
|
---|
| 7202 | -h, --help print this help, then exit
|
---|
[23356] | 7203 | -V, --version print version number and configuration settings, then exit
|
---|
[25170] | 7204 | --config print configuration, then exit
|
---|
[23356] | 7205 | -q, --quiet, --silent
|
---|
| 7206 | do not print progress messages
|
---|
[8063] | 7207 | -d, --debug don't remove temporary files
|
---|
| 7208 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
[23356] | 7209 | --file=FILE[:TEMPLATE]
|
---|
| 7210 | instantiate the configuration file FILE
|
---|
| 7211 | --header=FILE[:TEMPLATE]
|
---|
| 7212 | instantiate the configuration header FILE
|
---|
[8063] | 7213 |
|
---|
| 7214 | Configuration files:
|
---|
| 7215 | $config_files
|
---|
| 7216 |
|
---|
| 7217 | Configuration headers:
|
---|
| 7218 | $config_headers
|
---|
| 7219 |
|
---|
| 7220 | Configuration commands:
|
---|
| 7221 | $config_commands
|
---|
| 7222 |
|
---|
[25170] | 7223 | Report bugs to the package provider."
|
---|
[23356] | 7224 |
|
---|
[22058] | 7225 | _ACEOF
|
---|
[23356] | 7226 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
[25170] | 7227 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
[8063] | 7228 | ac_cs_version="\\
|
---|
| 7229 | config.status
|
---|
[30867] | 7230 | configured by $0, generated by GNU Autoconf 2.69,
|
---|
[25170] | 7231 | with options \\"\$ac_cs_config\\"
|
---|
[8063] | 7232 |
|
---|
[30867] | 7233 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
[8063] | 7234 | This config.status script is free software; the Free Software Foundation
|
---|
| 7235 | gives unlimited permission to copy, distribute and modify it."
|
---|
[23356] | 7236 |
|
---|
| 7237 | ac_pwd='$ac_pwd'
|
---|
| 7238 | srcdir='$srcdir'
|
---|
| 7239 | INSTALL='$INSTALL'
|
---|
| 7240 | AWK='$AWK'
|
---|
| 7241 | test -n "\$AWK" || AWK=awk
|
---|
[10192] | 7242 | _ACEOF
|
---|
[8063] | 7243 |
|
---|
[23356] | 7244 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7245 | # The default lists apply if the user does not specify any file.
|
---|
[8063] | 7246 | ac_need_defaults=:
|
---|
| 7247 | while test $# != 0
|
---|
[3365] | 7248 | do
|
---|
[8063] | 7249 | case $1 in
|
---|
[25170] | 7250 | --*=?*)
|
---|
[23356] | 7251 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
| 7252 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
[10192] | 7253 | ac_shift=:
|
---|
[8063] | 7254 | ;;
|
---|
[25170] | 7255 | --*=)
|
---|
| 7256 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
| 7257 | ac_optarg=
|
---|
| 7258 | ac_shift=:
|
---|
| 7259 | ;;
|
---|
[23356] | 7260 | *)
|
---|
[10192] | 7261 | ac_option=$1
|
---|
| 7262 | ac_optarg=$2
|
---|
| 7263 | ac_shift=shift
|
---|
| 7264 | ;;
|
---|
[8063] | 7265 | esac
|
---|
| 7266 |
|
---|
[10192] | 7267 | case $ac_option in
|
---|
[8063] | 7268 | # Handling of the options.
|
---|
[3365] | 7269 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
[10192] | 7270 | ac_cs_recheck=: ;;
|
---|
[23356] | 7271 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
| 7272 | $as_echo "$ac_cs_version"; exit ;;
|
---|
[25170] | 7273 | --config | --confi | --conf | --con | --co | --c )
|
---|
| 7274 | $as_echo "$ac_cs_config"; exit ;;
|
---|
[23356] | 7275 | --debug | --debu | --deb | --de | --d | -d )
|
---|
[8063] | 7276 | debug=: ;;
|
---|
| 7277 | --file | --fil | --fi | --f )
|
---|
[10192] | 7278 | $ac_shift
|
---|
[23356] | 7279 | case $ac_optarg in
|
---|
| 7280 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[25170] | 7281 | '') as_fn_error $? "missing file argument" ;;
|
---|
[23356] | 7282 | esac
|
---|
[25170] | 7283 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
[8063] | 7284 | ac_need_defaults=false;;
|
---|
| 7285 | --header | --heade | --head | --hea )
|
---|
[10192] | 7286 | $ac_shift
|
---|
[23356] | 7287 | case $ac_optarg in
|
---|
| 7288 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 7289 | esac
|
---|
[25170] | 7290 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
[8063] | 7291 | ac_need_defaults=false;;
|
---|
[23356] | 7292 | --he | --h)
|
---|
| 7293 | # Conflict between --help and --header
|
---|
[25170] | 7294 | as_fn_error $? "ambiguous option: \`$1'
|
---|
| 7295 | Try \`$0 --help' for more information.";;
|
---|
[23356] | 7296 | --help | --hel | -h )
|
---|
| 7297 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
[10192] | 7298 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 7299 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 7300 | ac_cs_silent=: ;;
|
---|
[8063] | 7301 |
|
---|
| 7302 | # This is an error.
|
---|
[25170] | 7303 | -*) as_fn_error $? "unrecognized option: \`$1'
|
---|
| 7304 | Try \`$0 --help' for more information." ;;
|
---|
[10192] | 7305 |
|
---|
[25170] | 7306 | *) as_fn_append ac_config_targets " $1"
|
---|
[23356] | 7307 | ac_need_defaults=false ;;
|
---|
[10192] | 7308 |
|
---|
[3365] | 7309 | esac
|
---|
[8063] | 7310 | shift
|
---|
[3365] | 7311 | done
|
---|
| 7312 |
|
---|
[10192] | 7313 | ac_configure_extra_args=
|
---|
[3365] | 7314 |
|
---|
[10192] | 7315 | if $ac_cs_silent; then
|
---|
| 7316 | exec 6>/dev/null
|
---|
| 7317 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 7318 | fi
|
---|
[8063] | 7319 |
|
---|
[10192] | 7320 | _ACEOF
|
---|
[23356] | 7321 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
[10192] | 7322 | if \$ac_cs_recheck; then
|
---|
[30867] | 7323 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
[23356] | 7324 | shift
|
---|
| 7325 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
| 7326 | CONFIG_SHELL='$SHELL'
|
---|
| 7327 | export CONFIG_SHELL
|
---|
| 7328 | exec "\$@"
|
---|
[10192] | 7329 | fi
|
---|
[8063] | 7330 |
|
---|
| 7331 | _ACEOF
|
---|
[23356] | 7332 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7333 | exec 5>>config.log
|
---|
| 7334 | {
|
---|
| 7335 | echo
|
---|
| 7336 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 7337 | ## Running $as_me. ##
|
---|
| 7338 | _ASBOX
|
---|
| 7339 | $as_echo "$ac_log"
|
---|
| 7340 | } >&5
|
---|
[3365] | 7341 |
|
---|
[23356] | 7342 | _ACEOF
|
---|
| 7343 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7344 | _ACEOF
|
---|
[10192] | 7345 |
|
---|
[23356] | 7346 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[22058] | 7347 |
|
---|
[23356] | 7348 | # Handling of arguments.
|
---|
[10192] | 7349 | for ac_config_target in $ac_config_targets
|
---|
| 7350 | do
|
---|
[23356] | 7351 | case $ac_config_target in
|
---|
| 7352 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 7353 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 7354 | "text/Makefile") CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
|
---|
| 7355 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
| 7356 | "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
|
---|
| 7357 | "java/org/greenstone/mgpp/Makefile") CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
|
---|
| 7358 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
|
---|
| 7359 |
|
---|
[25170] | 7360 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
[10192] | 7361 | esac
|
---|
| 7362 | done
|
---|
| 7363 |
|
---|
[23356] | 7364 |
|
---|
[8063] | 7365 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 7366 | # then the envvar interface is used. Set only those that are not.
|
---|
| 7367 | # We use the long form for the default assignment because of an extremely
|
---|
| 7368 | # bizarre bug on SunOS 4.1.3.
|
---|
| 7369 | if $ac_need_defaults; then
|
---|
| 7370 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 7371 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 7372 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
| 7373 | fi
|
---|
[3365] | 7374 |
|
---|
[10192] | 7375 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
[23356] | 7376 | # simply because there is no reason against having it here, and in addition,
|
---|
[10192] | 7377 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[23356] | 7378 | # Hook for its removal unless debugging.
|
---|
| 7379 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
| 7380 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
[8063] | 7381 | $debug ||
|
---|
| 7382 | {
|
---|
[25170] | 7383 | tmp= ac_tmp=
|
---|
[23356] | 7384 | trap 'exit_status=$?
|
---|
[25170] | 7385 | : "${ac_tmp:=$tmp}"
|
---|
| 7386 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
---|
[23356] | 7387 | ' 0
|
---|
[25170] | 7388 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
[8063] | 7389 | }
|
---|
| 7390 | # Create a (secure) tmp directory for tmp files.
|
---|
[10192] | 7391 |
|
---|
[8063] | 7392 | {
|
---|
[23356] | 7393 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
[25170] | 7394 | test -d "$tmp"
|
---|
[8063] | 7395 | } ||
|
---|
| 7396 | {
|
---|
[23356] | 7397 | tmp=./conf$$-$RANDOM
|
---|
| 7398 | (umask 077 && mkdir "$tmp")
|
---|
[25170] | 7399 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
| 7400 | ac_tmp=$tmp
|
---|
[23356] | 7401 |
|
---|
| 7402 | # Set up the scripts for CONFIG_FILES section.
|
---|
| 7403 | # No need to generate them if there are no CONFIG_FILES.
|
---|
| 7404 | # This happens for instance with `./config.status config.h'.
|
---|
| 7405 | if test -n "$CONFIG_FILES"; then
|
---|
| 7406 |
|
---|
| 7407 |
|
---|
[25170] | 7408 | ac_cr=`echo X | tr X '\015'`
|
---|
| 7409 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
| 7410 | # But we know of no other shell where ac_cr would be empty at this
|
---|
| 7411 | # point, so we can use a bashism as a fallback.
|
---|
| 7412 | if test "x$ac_cr" = x; then
|
---|
| 7413 | eval ac_cr=\$\'\\r\'
|
---|
| 7414 | fi
|
---|
[23356] | 7415 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
| 7416 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
[25148] | 7417 | ac_cs_awk_cr='\\r'
|
---|
[23356] | 7418 | else
|
---|
| 7419 | ac_cs_awk_cr=$ac_cr
|
---|
| 7420 | fi
|
---|
| 7421 |
|
---|
[25170] | 7422 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
---|
[23356] | 7423 | _ACEOF
|
---|
| 7424 |
|
---|
| 7425 |
|
---|
[8063] | 7426 | {
|
---|
[23356] | 7427 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
| 7428 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
| 7429 | echo "_ACEOF"
|
---|
| 7430 | } >conf$$subs.sh ||
|
---|
[25170] | 7431 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
| 7432 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
[23356] | 7433 | ac_delim='%!_!# '
|
---|
| 7434 | for ac_last_try in false false false false false :; do
|
---|
| 7435 | . ./conf$$subs.sh ||
|
---|
[25170] | 7436 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
[23356] | 7437 |
|
---|
| 7438 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
| 7439 | if test $ac_delim_n = $ac_delim_num; then
|
---|
| 7440 | break
|
---|
| 7441 | elif $ac_last_try; then
|
---|
[25170] | 7442 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
[23356] | 7443 | else
|
---|
| 7444 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
| 7445 | fi
|
---|
| 7446 | done
|
---|
| 7447 | rm -f conf$$subs.sh
|
---|
| 7448 |
|
---|
| 7449 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
[25170] | 7450 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
---|
[23356] | 7451 | _ACEOF
|
---|
| 7452 | sed -n '
|
---|
| 7453 | h
|
---|
| 7454 | s/^/S["/; s/!.*/"]=/
|
---|
| 7455 | p
|
---|
| 7456 | g
|
---|
| 7457 | s/^[^!]*!//
|
---|
| 7458 | :repl
|
---|
| 7459 | t repl
|
---|
| 7460 | s/'"$ac_delim"'$//
|
---|
| 7461 | t delim
|
---|
| 7462 | :nl
|
---|
| 7463 | h
|
---|
[25170] | 7464 | s/\(.\{148\}\)..*/\1/
|
---|
[23356] | 7465 | t more1
|
---|
| 7466 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
| 7467 | p
|
---|
| 7468 | n
|
---|
| 7469 | b repl
|
---|
| 7470 | :more1
|
---|
| 7471 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
| 7472 | p
|
---|
| 7473 | g
|
---|
| 7474 | s/.\{148\}//
|
---|
| 7475 | t nl
|
---|
| 7476 | :delim
|
---|
| 7477 | h
|
---|
[25170] | 7478 | s/\(.\{148\}\)..*/\1/
|
---|
[23356] | 7479 | t more2
|
---|
| 7480 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
| 7481 | p
|
---|
| 7482 | b
|
---|
| 7483 | :more2
|
---|
| 7484 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
| 7485 | p
|
---|
| 7486 | g
|
---|
| 7487 | s/.\{148\}//
|
---|
| 7488 | t delim
|
---|
| 7489 | ' <conf$$subs.awk | sed '
|
---|
| 7490 | /^[^""]/{
|
---|
| 7491 | N
|
---|
| 7492 | s/\n//
|
---|
[8063] | 7493 | }
|
---|
[23356] | 7494 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
| 7495 | rm -f conf$$subs.awk
|
---|
| 7496 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7497 | _ACAWK
|
---|
[25170] | 7498 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
---|
[23356] | 7499 | for (key in S) S_is_set[key] = 1
|
---|
| 7500 | FS = ""
|
---|
[8063] | 7501 |
|
---|
[23356] | 7502 | }
|
---|
| 7503 | {
|
---|
| 7504 | line = $ 0
|
---|
| 7505 | nfields = split(line, field, "@")
|
---|
| 7506 | substed = 0
|
---|
| 7507 | len = length(field[1])
|
---|
| 7508 | for (i = 2; i < nfields; i++) {
|
---|
| 7509 | key = field[i]
|
---|
| 7510 | keylen = length(key)
|
---|
| 7511 | if (S_is_set[key]) {
|
---|
| 7512 | value = S[key]
|
---|
| 7513 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
| 7514 | len += length(value) + length(field[++i])
|
---|
| 7515 | substed = 1
|
---|
| 7516 | } else
|
---|
| 7517 | len += 1 + keylen
|
---|
| 7518 | }
|
---|
| 7519 |
|
---|
| 7520 | print line
|
---|
| 7521 | }
|
---|
| 7522 |
|
---|
| 7523 | _ACAWK
|
---|
[22058] | 7524 | _ACEOF
|
---|
[23356] | 7525 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7526 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
| 7527 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
| 7528 | else
|
---|
| 7529 | cat
|
---|
[25170] | 7530 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
---|
| 7531 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
[23356] | 7532 | _ACEOF
|
---|
[22058] | 7533 |
|
---|
[25170] | 7534 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
| 7535 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
[23356] | 7536 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7537 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 7538 | if test "x$srcdir" = x.; then
|
---|
[25170] | 7539 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
| 7540 | h
|
---|
| 7541 | s///
|
---|
| 7542 | s/^/:/
|
---|
| 7543 | s/[ ]*$/:/
|
---|
| 7544 | s/:\$(srcdir):/:/g
|
---|
| 7545 | s/:\${srcdir}:/:/g
|
---|
| 7546 | s/:@srcdir@:/:/g
|
---|
| 7547 | s/^:*//
|
---|
[23356] | 7548 | s/:*$//
|
---|
[25170] | 7549 | x
|
---|
| 7550 | s/\(=[ ]*\).*/\1/
|
---|
| 7551 | G
|
---|
| 7552 | s/\n//
|
---|
[23356] | 7553 | s/^[^=]*=[ ]*$//
|
---|
| 7554 | }'
|
---|
| 7555 | fi
|
---|
[22058] | 7556 |
|
---|
[23356] | 7557 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7558 | fi # test -n "$CONFIG_FILES"
|
---|
[8063] | 7559 |
|
---|
[23356] | 7560 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
| 7561 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
| 7562 | # This happens for instance with `./config.status Makefile'.
|
---|
| 7563 | if test -n "$CONFIG_HEADERS"; then
|
---|
[25170] | 7564 | cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
---|
[23356] | 7565 | BEGIN {
|
---|
[10192] | 7566 | _ACEOF
|
---|
[3365] | 7567 |
|
---|
[23356] | 7568 | # Transform confdefs.h into an awk script `defines.awk', embedded as
|
---|
| 7569 | # here-document in config.status, that substitutes the proper values into
|
---|
| 7570 | # config.h.in to produce config.h.
|
---|
| 7571 |
|
---|
| 7572 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
| 7573 | # handling of long lines.
|
---|
| 7574 | ac_delim='%!_!# '
|
---|
| 7575 | for ac_last_try in false false :; do
|
---|
[25170] | 7576 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
| 7577 | if test -z "$ac_tt"; then
|
---|
[23356] | 7578 | break
|
---|
| 7579 | elif $ac_last_try; then
|
---|
[25170] | 7580 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
[23356] | 7581 | else
|
---|
| 7582 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
[3365] | 7583 | fi
|
---|
[23356] | 7584 | done
|
---|
[3365] | 7585 |
|
---|
[23356] | 7586 | # For the awk script, D is an array of macro values keyed by name,
|
---|
| 7587 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
| 7588 | # newline sequences.
|
---|
| 7589 |
|
---|
| 7590 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
| 7591 | sed -n '
|
---|
| 7592 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
| 7593 | t rset
|
---|
| 7594 | :rset
|
---|
| 7595 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
| 7596 | t def
|
---|
| 7597 | d
|
---|
| 7598 | :def
|
---|
| 7599 | s/\\$//
|
---|
| 7600 | t bsnl
|
---|
| 7601 | s/["\\]/\\&/g
|
---|
| 7602 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
| 7603 | D["\1"]=" \3"/p
|
---|
| 7604 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
| 7605 | d
|
---|
| 7606 | :bsnl
|
---|
| 7607 | s/["\\]/\\&/g
|
---|
| 7608 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
| 7609 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
| 7610 | t cont
|
---|
| 7611 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
| 7612 | t cont
|
---|
| 7613 | d
|
---|
| 7614 | :cont
|
---|
| 7615 | n
|
---|
| 7616 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
| 7617 | t clear
|
---|
| 7618 | :clear
|
---|
| 7619 | s/\\$//
|
---|
| 7620 | t bsnlc
|
---|
| 7621 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
| 7622 | d
|
---|
| 7623 | :bsnlc
|
---|
| 7624 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
| 7625 | b cont
|
---|
| 7626 | ' <confdefs.h | sed '
|
---|
| 7627 | s/'"$ac_delim"'/"\\\
|
---|
| 7628 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
| 7629 |
|
---|
| 7630 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7631 | for (key in D) D_is_set[key] = 1
|
---|
| 7632 | FS = ""
|
---|
| 7633 | }
|
---|
| 7634 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
| 7635 | line = \$ 0
|
---|
| 7636 | split(line, arg, " ")
|
---|
| 7637 | if (arg[1] == "#") {
|
---|
| 7638 | defundef = arg[2]
|
---|
| 7639 | mac1 = arg[3]
|
---|
| 7640 | } else {
|
---|
| 7641 | defundef = substr(arg[1], 2)
|
---|
| 7642 | mac1 = arg[2]
|
---|
| 7643 | }
|
---|
| 7644 | split(mac1, mac2, "(") #)
|
---|
| 7645 | macro = mac2[1]
|
---|
| 7646 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
| 7647 | if (D_is_set[macro]) {
|
---|
| 7648 | # Preserve the white space surrounding the "#".
|
---|
| 7649 | print prefix "define", macro P[macro] D[macro]
|
---|
| 7650 | next
|
---|
| 7651 | } else {
|
---|
| 7652 | # Replace #undef with comments. This is necessary, for example,
|
---|
| 7653 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 7654 | # on some systems where configure will not decide to define it.
|
---|
| 7655 | if (defundef == "undef") {
|
---|
| 7656 | print "/*", prefix defundef, macro, "*/"
|
---|
| 7657 | next
|
---|
| 7658 | }
|
---|
| 7659 | }
|
---|
| 7660 | }
|
---|
| 7661 | { print }
|
---|
| 7662 | _ACAWK
|
---|
[10192] | 7663 | _ACEOF
|
---|
[23356] | 7664 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[25170] | 7665 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
---|
[23356] | 7666 | fi # test -n "$CONFIG_HEADERS"
|
---|
| 7667 |
|
---|
| 7668 |
|
---|
| 7669 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
---|
| 7670 | shift
|
---|
| 7671 | for ac_tag
|
---|
| 7672 | do
|
---|
| 7673 | case $ac_tag in
|
---|
| 7674 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
[3365] | 7675 | esac
|
---|
[23356] | 7676 | case $ac_mode$ac_tag in
|
---|
| 7677 | :[FHL]*:*);;
|
---|
[25170] | 7678 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
[23356] | 7679 | :[FH]-) ac_tag=-:-;;
|
---|
| 7680 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
| 7681 | esac
|
---|
| 7682 | ac_save_IFS=$IFS
|
---|
| 7683 | IFS=:
|
---|
| 7684 | set x $ac_tag
|
---|
| 7685 | IFS=$ac_save_IFS
|
---|
| 7686 | shift
|
---|
| 7687 | ac_file=$1
|
---|
| 7688 | shift
|
---|
[3365] | 7689 |
|
---|
[23356] | 7690 | case $ac_mode in
|
---|
| 7691 | :L) ac_source=$1;;
|
---|
| 7692 | :[FH])
|
---|
| 7693 | ac_file_inputs=
|
---|
| 7694 | for ac_f
|
---|
| 7695 | do
|
---|
| 7696 | case $ac_f in
|
---|
[25170] | 7697 | -) ac_f="$ac_tmp/stdin";;
|
---|
[23356] | 7698 | *) # Look for the file first in the build tree, then in the source tree
|
---|
| 7699 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
| 7700 | # because $ac_f cannot contain `:'.
|
---|
| 7701 | test -f "$ac_f" ||
|
---|
| 7702 | case $ac_f in
|
---|
| 7703 | [\\/$]*) false;;
|
---|
| 7704 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
| 7705 | esac ||
|
---|
[25170] | 7706 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
[23356] | 7707 | esac
|
---|
| 7708 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
[25170] | 7709 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
[23356] | 7710 | done
|
---|
| 7711 |
|
---|
| 7712 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 7713 | # use $as_me), people would be surprised to read:
|
---|
| 7714 | # /* config.h. Generated by config.status. */
|
---|
| 7715 | configure_input='Generated from '`
|
---|
| 7716 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
| 7717 | `' by configure.'
|
---|
| 7718 | if test x"$ac_file" != x-; then
|
---|
| 7719 | configure_input="$ac_file. $configure_input"
|
---|
[25170] | 7720 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
[23356] | 7721 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
| 7722 | fi
|
---|
| 7723 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
| 7724 | case $configure_input in #(
|
---|
| 7725 | *\&* | *\|* | *\\* )
|
---|
| 7726 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
| 7727 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
| 7728 | *) ac_sed_conf_input=$configure_input;;
|
---|
| 7729 | esac
|
---|
| 7730 |
|
---|
| 7731 | case $ac_tag in
|
---|
[25170] | 7732 | *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
---|
| 7733 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
[23356] | 7734 | esac
|
---|
| 7735 | ;;
|
---|
| 7736 | esac
|
---|
| 7737 |
|
---|
| 7738 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
[10192] | 7739 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7740 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 7741 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
[23356] | 7742 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 7743 | $as_echo X"$ac_file" |
|
---|
| 7744 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 7745 | s//\1/
|
---|
| 7746 | q
|
---|
| 7747 | }
|
---|
| 7748 | /^X\(\/\/\)[^/].*/{
|
---|
| 7749 | s//\1/
|
---|
| 7750 | q
|
---|
| 7751 | }
|
---|
| 7752 | /^X\(\/\/\)$/{
|
---|
| 7753 | s//\1/
|
---|
| 7754 | q
|
---|
| 7755 | }
|
---|
| 7756 | /^X\(\/\).*/{
|
---|
| 7757 | s//\1/
|
---|
| 7758 | q
|
---|
| 7759 | }
|
---|
| 7760 | s/.*/./; q'`
|
---|
[25170] | 7761 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
[10192] | 7762 | ac_builddir=.
|
---|
| 7763 |
|
---|
[23356] | 7764 | case "$ac_dir" in
|
---|
| 7765 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7766 | *)
|
---|
| 7767 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
| 7768 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 7769 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
| 7770 | case $ac_top_builddir_sub in
|
---|
| 7771 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7772 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 7773 | esac ;;
|
---|
| 7774 | esac
|
---|
| 7775 | ac_abs_top_builddir=$ac_pwd
|
---|
| 7776 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 7777 | # for backward compatibility:
|
---|
| 7778 | ac_top_builddir=$ac_top_build_prefix
|
---|
[10192] | 7779 |
|
---|
| 7780 | case $srcdir in
|
---|
[23356] | 7781 | .) # We are building in place.
|
---|
[10192] | 7782 | ac_srcdir=.
|
---|
[23356] | 7783 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 7784 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 7785 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[10192] | 7786 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[23356] | 7787 | ac_top_srcdir=$srcdir
|
---|
| 7788 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 7789 | *) # Relative name.
|
---|
| 7790 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 7791 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 7792 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[10192] | 7793 | esac
|
---|
[23356] | 7794 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[3365] | 7795 |
|
---|
[10192] | 7796 |
|
---|
[23356] | 7797 | case $ac_mode in
|
---|
| 7798 | :F)
|
---|
| 7799 | #
|
---|
| 7800 | # CONFIG_FILE
|
---|
| 7801 | #
|
---|
[10192] | 7802 |
|
---|
[8063] | 7803 | case $INSTALL in
|
---|
| 7804 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[23356] | 7805 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
[3365] | 7806 | esac
|
---|
[23356] | 7807 | _ACEOF
|
---|
[3365] | 7808 |
|
---|
[23356] | 7809 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7810 | # If the template does not know about datarootdir, expand it.
|
---|
| 7811 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
| 7812 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
| 7813 | ac_sed_dataroot='
|
---|
| 7814 | /datarootdir/ {
|
---|
| 7815 | p
|
---|
| 7816 | q
|
---|
| 7817 | }
|
---|
| 7818 | /@datadir@/p
|
---|
| 7819 | /@docdir@/p
|
---|
| 7820 | /@infodir@/p
|
---|
| 7821 | /@localedir@/p
|
---|
[25170] | 7822 | /@mandir@/p'
|
---|
[23356] | 7823 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
| 7824 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
| 7825 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
[25170] | 7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
[23356] | 7827 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
| 7828 | _ACEOF
|
---|
| 7829 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7830 | ac_datarootdir_hack='
|
---|
| 7831 | s&@datadir@&$datadir&g
|
---|
| 7832 | s&@docdir@&$docdir&g
|
---|
| 7833 | s&@infodir@&$infodir&g
|
---|
| 7834 | s&@localedir@&$localedir&g
|
---|
| 7835 | s&@mandir@&$mandir&g
|
---|
[25170] | 7836 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
[23356] | 7837 | esac
|
---|
| 7838 | _ACEOF
|
---|
[3365] | 7839 |
|
---|
[23356] | 7840 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
| 7841 | # Shell code in configure.ac might set extrasub.
|
---|
| 7842 | # FIXME: do we really want to maintain this feature?
|
---|
| 7843 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7844 | ac_sed_extra="$ac_vpsub
|
---|
[8063] | 7845 | $extrasub
|
---|
[10192] | 7846 | _ACEOF
|
---|
[23356] | 7847 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[8063] | 7848 | :t
|
---|
| 7849 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
[23356] | 7850 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
| 7851 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
| 7852 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
| 7853 | s&@srcdir@&$ac_srcdir&;t t
|
---|
| 7854 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
| 7855 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
| 7856 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
| 7857 | s&@builddir@&$ac_builddir&;t t
|
---|
| 7858 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
| 7859 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
| 7860 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
| 7861 | $ac_datarootdir_hack
|
---|
| 7862 | "
|
---|
[25170] | 7863 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
---|
| 7864 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
[3365] | 7865 |
|
---|
[23356] | 7866 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
[25170] | 7867 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
---|
| 7868 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
---|
| 7869 | "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
---|
| 7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
| 7871 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
[23356] | 7872 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
[25170] | 7873 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
[8063] | 7874 |
|
---|
[25170] | 7875 | rm -f "$ac_tmp/stdin"
|
---|
[8063] | 7876 | case $ac_file in
|
---|
[25170] | 7877 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
---|
| 7878 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
---|
[23356] | 7879 | esac \
|
---|
[25170] | 7880 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
[23356] | 7881 | ;;
|
---|
| 7882 | :H)
|
---|
| 7883 | #
|
---|
| 7884 | # CONFIG_HEADER
|
---|
| 7885 | #
|
---|
[8063] | 7886 | if test x"$ac_file" != x-; then
|
---|
[23356] | 7887 | {
|
---|
| 7888 | $as_echo "/* $configure_input */" \
|
---|
[25170] | 7889 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
---|
| 7890 | } >"$ac_tmp/config.h" \
|
---|
| 7891 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
| 7892 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
---|
| 7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
[23356] | 7894 | $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
[8063] | 7895 | else
|
---|
[23356] | 7896 | rm -f "$ac_file"
|
---|
[25170] | 7897 | mv "$ac_tmp/config.h" "$ac_file" \
|
---|
| 7898 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
[3365] | 7899 | fi
|
---|
[8063] | 7900 | else
|
---|
[23356] | 7901 | $as_echo "/* $configure_input */" \
|
---|
[25170] | 7902 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
---|
| 7903 | || as_fn_error $? "could not create -" "$LINENO" 5
|
---|
[3365] | 7904 | fi
|
---|
[23356] | 7905 | ;;
|
---|
[3365] | 7906 |
|
---|
[25170] | 7907 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
---|
[23356] | 7908 | $as_echo "$as_me: executing $ac_file commands" >&6;}
|
---|
| 7909 | ;;
|
---|
| 7910 | esac
|
---|
[8063] | 7911 |
|
---|
[10192] | 7912 |
|
---|
[23356] | 7913 | case $ac_file$ac_mode in
|
---|
| 7914 | "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
|
---|
[10192] | 7915 |
|
---|
[8063] | 7916 | esac
|
---|
[23356] | 7917 | done # for ac_tag
|
---|
[3365] | 7918 |
|
---|
[8063] | 7919 |
|
---|
[25170] | 7920 | as_fn_exit 0
|
---|
[10192] | 7921 | _ACEOF
|
---|
[8063] | 7922 | ac_clean_files=$ac_clean_files_save
|
---|
[3365] | 7923 |
|
---|
[23356] | 7924 | test $ac_write_fail = 0 ||
|
---|
[25170] | 7925 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
[10192] | 7926 |
|
---|
[23356] | 7927 |
|
---|
[8063] | 7928 | # configure is writing to config.log, and then calls config.status.
|
---|
| 7929 | # config.status does its own redirection, appending to config.log.
|
---|
| 7930 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 7931 | # by configure, so config.status won't be able to write to it; its
|
---|
| 7932 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 7933 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 7934 | # appended to by config.status. When coming back to configure, we
|
---|
| 7935 | # need to make the FD available again.
|
---|
| 7936 | if test "$no_create" != yes; then
|
---|
| 7937 | ac_cs_success=:
|
---|
[10192] | 7938 | ac_config_status_args=
|
---|
| 7939 | test "$silent" = yes &&
|
---|
| 7940 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
[8063] | 7941 | exec 5>/dev/null
|
---|
[10192] | 7942 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
[8063] | 7943 | exec 5>>config.log
|
---|
| 7944 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 7945 | # would make configure fail if this is the last instruction.
|
---|
[25170] | 7946 | $ac_cs_success || as_fn_exit 1
|
---|
[8063] | 7947 | fi
|
---|
[23356] | 7948 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
[25170] | 7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
[23356] | 7950 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
| 7951 | fi
|
---|
[8063] | 7952 |
|
---|