[4584] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
| 3 | # Generated by GNU Autoconf 2.69 for nanoscale 0.1. |
---|
| 4 | # |
---|
| 5 | # Report bugs to <rappture@nanohub.org>. |
---|
| 6 | # |
---|
| 7 | # |
---|
| 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
---|
| 9 | # |
---|
| 10 | # |
---|
| 11 | # This configure script is free software; the Free Software Foundation |
---|
| 12 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 13 | ## -------------------- ## |
---|
| 14 | ## M4sh Initialization. ## |
---|
| 15 | ## -------------------- ## |
---|
| 16 | |
---|
| 17 | # Be more Bourne compatible |
---|
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
| 20 | emulate sh |
---|
| 21 | NULLCMD=: |
---|
| 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
| 23 | # is contrary to our usage. Disable this feature. |
---|
| 24 | alias -g '${1+"$@"}'='"$@"' |
---|
| 25 | setopt NO_GLOB_SUBST |
---|
| 26 | else |
---|
| 27 | case `(set -o) 2>/dev/null` in #( |
---|
| 28 | *posix*) : |
---|
| 29 | set -o posix ;; #( |
---|
| 30 | *) : |
---|
| 31 | ;; |
---|
| 32 | esac |
---|
| 33 | fi |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | as_nl=' |
---|
| 37 | ' |
---|
| 38 | export as_nl |
---|
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
| 44 | # but without wasting forks for bash or zsh. |
---|
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
| 47 | as_echo='print -r --' |
---|
| 48 | as_echo_n='print -rn --' |
---|
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
| 50 | as_echo='printf %s\n' |
---|
| 51 | as_echo_n='printf %s' |
---|
| 52 | else |
---|
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
| 55 | as_echo_n='/usr/ucb/echo -n' |
---|
| 56 | else |
---|
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
| 58 | as_echo_n_body='eval |
---|
| 59 | arg=$1; |
---|
| 60 | case $arg in #( |
---|
| 61 | *"$as_nl"*) |
---|
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
| 64 | esac; |
---|
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
| 66 | ' |
---|
| 67 | export as_echo_n_body |
---|
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
| 69 | fi |
---|
| 70 | export as_echo_body |
---|
| 71 | as_echo='sh -c $as_echo_body as_echo' |
---|
| 72 | fi |
---|
| 73 | |
---|
| 74 | # The user is always right. |
---|
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 76 | PATH_SEPARATOR=: |
---|
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
| 79 | PATH_SEPARATOR=';' |
---|
| 80 | } |
---|
| 81 | fi |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | # IFS |
---|
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
| 86 | # there to prevent editors from complaining about space-tab. |
---|
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
| 88 | # splitting by setting IFS to empty value.) |
---|
| 89 | IFS=" "" $as_nl" |
---|
| 90 | |
---|
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
---|
| 92 | as_myself= |
---|
| 93 | case $0 in #(( |
---|
| 94 | *[\\/]* ) as_myself=$0 ;; |
---|
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 96 | for as_dir in $PATH |
---|
| 97 | do |
---|
| 98 | IFS=$as_save_IFS |
---|
| 99 | test -z "$as_dir" && as_dir=. |
---|
| 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 101 | done |
---|
| 102 | IFS=$as_save_IFS |
---|
| 103 | |
---|
| 104 | ;; |
---|
| 105 | esac |
---|
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 107 | # in which case we are not to be found in the path. |
---|
| 108 | if test "x$as_myself" = x; then |
---|
| 109 | as_myself=$0 |
---|
| 110 | fi |
---|
| 111 | if test ! -f "$as_myself"; then |
---|
| 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
| 113 | exit 1 |
---|
| 114 | fi |
---|
| 115 | |
---|
| 116 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
| 118 | # suppresses any "Segmentation fault" message there. '((' could |
---|
| 119 | # trigger a bug in pdksh 5.2.14. |
---|
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
| 121 | do eval test x\${$as_var+set} = xset \ |
---|
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
| 123 | done |
---|
| 124 | PS1='$ ' |
---|
| 125 | PS2='> ' |
---|
| 126 | PS4='+ ' |
---|
| 127 | |
---|
| 128 | # NLS nuisances. |
---|
| 129 | LC_ALL=C |
---|
| 130 | export LC_ALL |
---|
| 131 | LANGUAGE=C |
---|
| 132 | export LANGUAGE |
---|
| 133 | |
---|
| 134 | # CDPATH. |
---|
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
| 136 | |
---|
| 137 | # Use a proper internal environment variable to ensure we don't fall |
---|
| 138 | # into an infinite loop, continuously re-executing ourselves. |
---|
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
---|
| 140 | _as_can_reexec=no; export _as_can_reexec; |
---|
| 141 | # We cannot yet assume a decent shell, so we have to provide a |
---|
| 142 | # neutralization value for shells without unset; and this also |
---|
| 143 | # works around shells that cannot unset nonexistent variables. |
---|
| 144 | # Preserve -v and -x to the replacement shell. |
---|
| 145 | BASH_ENV=/dev/null |
---|
| 146 | ENV=/dev/null |
---|
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
| 148 | case $- in # (((( |
---|
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
| 150 | *v* ) as_opts=-v ;; |
---|
| 151 | *x* ) as_opts=-x ;; |
---|
| 152 | * ) as_opts= ;; |
---|
| 153 | esac |
---|
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
| 156 | # out after a failed `exec'. |
---|
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
| 158 | as_fn_exit 255 |
---|
| 159 | fi |
---|
| 160 | # We don't want this to propagate to other subprocesses. |
---|
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
---|
| 162 | if test "x$CONFIG_SHELL" = x; then |
---|
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
| 164 | emulate sh |
---|
| 165 | NULLCMD=: |
---|
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
| 167 | # is contrary to our usage. Disable this feature. |
---|
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
| 169 | setopt NO_GLOB_SUBST |
---|
| 170 | else |
---|
| 171 | case \`(set -o) 2>/dev/null\` in #( |
---|
| 172 | *posix*) : |
---|
| 173 | set -o posix ;; #( |
---|
| 174 | *) : |
---|
| 175 | ;; |
---|
| 176 | esac |
---|
| 177 | fi |
---|
| 178 | " |
---|
| 179 | as_required="as_fn_return () { (exit \$1); } |
---|
| 180 | as_fn_success () { as_fn_return 0; } |
---|
| 181 | as_fn_failure () { as_fn_return 1; } |
---|
| 182 | as_fn_ret_success () { return 0; } |
---|
| 183 | as_fn_ret_failure () { return 1; } |
---|
| 184 | |
---|
| 185 | exitcode=0 |
---|
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
| 191 | |
---|
| 192 | else |
---|
| 193 | exitcode=1; echo positional parameters were not saved. |
---|
| 194 | fi |
---|
| 195 | test x\$exitcode = x0 || exit 1 |
---|
| 196 | test -x / || exit 1" |
---|
| 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
| 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
| 201 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
| 202 | if (eval "$as_required") 2>/dev/null; then : |
---|
| 203 | as_have_required=yes |
---|
| 204 | else |
---|
| 205 | as_have_required=no |
---|
| 206 | fi |
---|
| 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
| 208 | |
---|
| 209 | else |
---|
| 210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 211 | as_found=false |
---|
| 212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 213 | do |
---|
| 214 | IFS=$as_save_IFS |
---|
| 215 | test -z "$as_dir" && as_dir=. |
---|
| 216 | as_found=: |
---|
| 217 | case $as_dir in #( |
---|
| 218 | /*) |
---|
| 219 | for as_base in sh bash ksh sh5; do |
---|
| 220 | # Try only shells that exist, to save several forks. |
---|
| 221 | as_shell=$as_dir/$as_base |
---|
| 222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
| 223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
| 224 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
| 225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
| 226 | break 2 |
---|
| 227 | fi |
---|
| 228 | fi |
---|
| 229 | done;; |
---|
| 230 | esac |
---|
| 231 | as_found=false |
---|
| 232 | done |
---|
| 233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
| 234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
| 235 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
| 236 | fi; } |
---|
| 237 | IFS=$as_save_IFS |
---|
| 238 | |
---|
| 239 | |
---|
| 240 | if test "x$CONFIG_SHELL" != x; then : |
---|
| 241 | export CONFIG_SHELL |
---|
| 242 | # We cannot yet assume a decent shell, so we have to provide a |
---|
| 243 | # neutralization value for shells without unset; and this also |
---|
| 244 | # works around shells that cannot unset nonexistent variables. |
---|
| 245 | # Preserve -v and -x to the replacement shell. |
---|
| 246 | BASH_ENV=/dev/null |
---|
| 247 | ENV=/dev/null |
---|
| 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
| 249 | case $- in # (((( |
---|
| 250 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
| 251 | *v* ) as_opts=-v ;; |
---|
| 252 | *x* ) as_opts=-x ;; |
---|
| 253 | * ) as_opts= ;; |
---|
| 254 | esac |
---|
| 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
| 256 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
| 257 | # out after a failed `exec'. |
---|
| 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
| 259 | exit 255 |
---|
| 260 | fi |
---|
| 261 | |
---|
| 262 | if test x$as_have_required = xno; then : |
---|
| 263 | $as_echo "$0: This script requires a shell more modern than all" |
---|
| 264 | $as_echo "$0: the shells that I found on your system." |
---|
| 265 | if test x${ZSH_VERSION+set} = xset ; then |
---|
| 266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
| 267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
| 268 | else |
---|
| 269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
---|
| 270 | $0: rappture@nanohub.org about your system, including any |
---|
| 271 | $0: error possibly output before this message. Then install |
---|
| 272 | $0: a modern shell, or manually run the script under such a |
---|
| 273 | $0: shell if you do have one." |
---|
| 274 | fi |
---|
| 275 | exit 1 |
---|
| 276 | fi |
---|
| 277 | fi |
---|
| 278 | fi |
---|
| 279 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 280 | export SHELL |
---|
| 281 | # Unset more variables known to interfere with behavior of common tools. |
---|
| 282 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
| 283 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
| 284 | |
---|
| 285 | ## --------------------- ## |
---|
| 286 | ## M4sh Shell Functions. ## |
---|
| 287 | ## --------------------- ## |
---|
| 288 | # as_fn_unset VAR |
---|
| 289 | # --------------- |
---|
| 290 | # Portably unset VAR. |
---|
| 291 | as_fn_unset () |
---|
| 292 | { |
---|
| 293 | { eval $1=; unset $1;} |
---|
| 294 | } |
---|
| 295 | as_unset=as_fn_unset |
---|
| 296 | |
---|
| 297 | # as_fn_set_status STATUS |
---|
| 298 | # ----------------------- |
---|
| 299 | # Set $? to STATUS, without forking. |
---|
| 300 | as_fn_set_status () |
---|
| 301 | { |
---|
| 302 | return $1 |
---|
| 303 | } # as_fn_set_status |
---|
| 304 | |
---|
| 305 | # as_fn_exit STATUS |
---|
| 306 | # ----------------- |
---|
| 307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
| 308 | as_fn_exit () |
---|
| 309 | { |
---|
| 310 | set +e |
---|
| 311 | as_fn_set_status $1 |
---|
| 312 | exit $1 |
---|
| 313 | } # as_fn_exit |
---|
| 314 | |
---|
| 315 | # as_fn_mkdir_p |
---|
| 316 | # ------------- |
---|
| 317 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
| 318 | as_fn_mkdir_p () |
---|
| 319 | { |
---|
| 320 | |
---|
| 321 | case $as_dir in #( |
---|
| 322 | -*) as_dir=./$as_dir;; |
---|
| 323 | esac |
---|
| 324 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
| 325 | as_dirs= |
---|
| 326 | while :; do |
---|
| 327 | case $as_dir in #( |
---|
| 328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
| 329 | *) as_qdir=$as_dir;; |
---|
| 330 | esac |
---|
| 331 | as_dirs="'$as_qdir' $as_dirs" |
---|
| 332 | as_dir=`$as_dirname -- "$as_dir" || |
---|
| 333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 335 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 337 | $as_echo X"$as_dir" | |
---|
| 338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 339 | s//\1/ |
---|
| 340 | q |
---|
| 341 | } |
---|
| 342 | /^X\(\/\/\)[^/].*/{ |
---|
| 343 | s//\1/ |
---|
| 344 | q |
---|
| 345 | } |
---|
| 346 | /^X\(\/\/\)$/{ |
---|
| 347 | s//\1/ |
---|
| 348 | q |
---|
| 349 | } |
---|
| 350 | /^X\(\/\).*/{ |
---|
| 351 | s//\1/ |
---|
| 352 | q |
---|
| 353 | } |
---|
| 354 | s/.*/./; q'` |
---|
| 355 | test -d "$as_dir" && break |
---|
| 356 | done |
---|
| 357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
| 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
| 359 | |
---|
| 360 | |
---|
| 361 | } # as_fn_mkdir_p |
---|
| 362 | |
---|
| 363 | # as_fn_executable_p FILE |
---|
| 364 | # ----------------------- |
---|
| 365 | # Test if FILE is an executable regular file. |
---|
| 366 | as_fn_executable_p () |
---|
| 367 | { |
---|
| 368 | test -f "$1" && test -x "$1" |
---|
| 369 | } # as_fn_executable_p |
---|
| 370 | # as_fn_append VAR VALUE |
---|
| 371 | # ---------------------- |
---|
| 372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
| 373 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
| 374 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
| 375 | # implementations. |
---|
| 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
| 377 | eval 'as_fn_append () |
---|
| 378 | { |
---|
| 379 | eval $1+=\$2 |
---|
| 380 | }' |
---|
| 381 | else |
---|
| 382 | as_fn_append () |
---|
| 383 | { |
---|
| 384 | eval $1=\$$1\$2 |
---|
| 385 | } |
---|
| 386 | fi # as_fn_append |
---|
| 387 | |
---|
| 388 | # as_fn_arith ARG... |
---|
| 389 | # ------------------ |
---|
| 390 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
| 391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
| 392 | # must be portable across $(()) and expr. |
---|
| 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
| 394 | eval 'as_fn_arith () |
---|
| 395 | { |
---|
| 396 | as_val=$(( $* )) |
---|
| 397 | }' |
---|
| 398 | else |
---|
| 399 | as_fn_arith () |
---|
| 400 | { |
---|
| 401 | as_val=`expr "$@" || test $? -eq 1` |
---|
| 402 | } |
---|
| 403 | fi # as_fn_arith |
---|
| 404 | |
---|
| 405 | |
---|
| 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
| 407 | # ---------------------------------------- |
---|
| 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
| 409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
| 410 | # script with STATUS, using 1 if that was 0. |
---|
| 411 | as_fn_error () |
---|
| 412 | { |
---|
| 413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
| 414 | if test "$4"; then |
---|
| 415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
| 417 | fi |
---|
| 418 | $as_echo "$as_me: error: $2" >&2 |
---|
| 419 | as_fn_exit $as_status |
---|
| 420 | } # as_fn_error |
---|
| 421 | |
---|
| 422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
| 424 | as_expr=expr |
---|
| 425 | else |
---|
| 426 | as_expr=false |
---|
| 427 | fi |
---|
| 428 | |
---|
| 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
| 430 | as_basename=basename |
---|
| 431 | else |
---|
| 432 | as_basename=false |
---|
| 433 | fi |
---|
| 434 | |
---|
| 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 436 | as_dirname=dirname |
---|
| 437 | else |
---|
| 438 | as_dirname=false |
---|
| 439 | fi |
---|
| 440 | |
---|
| 441 | as_me=`$as_basename -- "$0" || |
---|
| 442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 443 | X"$0" : 'X\(//\)$' \| \ |
---|
| 444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 445 | $as_echo X/"$0" | |
---|
| 446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
| 447 | s//\1/ |
---|
| 448 | q |
---|
| 449 | } |
---|
| 450 | /^X\/\(\/\/\)$/{ |
---|
| 451 | s//\1/ |
---|
| 452 | q |
---|
| 453 | } |
---|
| 454 | /^X\/\(\/\).*/{ |
---|
| 455 | s//\1/ |
---|
| 456 | q |
---|
| 457 | } |
---|
| 458 | s/.*/./; q'` |
---|
| 459 | |
---|
| 460 | # Avoid depending upon Character Ranges. |
---|
| 461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 464 | as_cr_digits='0123456789' |
---|
| 465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 466 | |
---|
| 467 | |
---|
| 468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
| 469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
| 470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
| 471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
| 472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
| 473 | sed -n ' |
---|
| 474 | p |
---|
| 475 | /[$]LINENO/= |
---|
| 476 | ' <$as_myself | |
---|
| 477 | sed ' |
---|
| 478 | s/[$]LINENO.*/&-/ |
---|
| 479 | t lineno |
---|
| 480 | b |
---|
| 481 | :lineno |
---|
| 482 | N |
---|
| 483 | :loop |
---|
| 484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
| 485 | t loop |
---|
| 486 | s/-\n.*// |
---|
| 487 | ' >$as_me.lineno && |
---|
| 488 | chmod +x "$as_me.lineno" || |
---|
| 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
| 490 | |
---|
| 491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
---|
| 492 | # already done that, so ensure we don't try to do so again and fall |
---|
| 493 | # in an infinite loop. This has already happened in practice. |
---|
| 494 | _as_can_reexec=no; export _as_can_reexec |
---|
| 495 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 496 | # (the dirname of $[0] is not the place where we might find the |
---|
| 497 | # original and so on. Autoconf is especially sensitive to this). |
---|
| 498 | . "./$as_me.lineno" |
---|
| 499 | # Exit status is that of the last command. |
---|
| 500 | exit |
---|
| 501 | } |
---|
| 502 | |
---|
| 503 | ECHO_C= ECHO_N= ECHO_T= |
---|
| 504 | case `echo -n x` in #((((( |
---|
| 505 | -n*) |
---|
| 506 | case `echo 'xy\c'` in |
---|
| 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
| 508 | xy) ECHO_C='\c';; |
---|
| 509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
| 510 | ECHO_T=' ';; |
---|
| 511 | esac;; |
---|
| 512 | *) |
---|
| 513 | ECHO_N='-n';; |
---|
| 514 | esac |
---|
| 515 | |
---|
| 516 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 517 | if test -d conf$$.dir; then |
---|
| 518 | rm -f conf$$.dir/conf$$.file |
---|
| 519 | else |
---|
| 520 | rm -f conf$$.dir |
---|
| 521 | mkdir conf$$.dir 2>/dev/null |
---|
| 522 | fi |
---|
| 523 | if (echo >conf$$.file) 2>/dev/null; then |
---|
| 524 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 525 | as_ln_s='ln -s' |
---|
| 526 | # ... but there are two gotchas: |
---|
| 527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
| 528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
| 529 | # In both cases, we have to default to `cp -pR'. |
---|
| 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
| 531 | as_ln_s='cp -pR' |
---|
| 532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 533 | as_ln_s=ln |
---|
| 534 | else |
---|
| 535 | as_ln_s='cp -pR' |
---|
| 536 | fi |
---|
| 537 | else |
---|
| 538 | as_ln_s='cp -pR' |
---|
| 539 | fi |
---|
| 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 541 | rmdir conf$$.dir 2>/dev/null |
---|
| 542 | |
---|
| 543 | if mkdir -p . 2>/dev/null; then |
---|
| 544 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
| 545 | else |
---|
| 546 | test -d ./-p && rmdir ./-p |
---|
| 547 | as_mkdir_p=false |
---|
| 548 | fi |
---|
| 549 | |
---|
| 550 | as_test_x='test -x' |
---|
| 551 | as_executable_p=as_fn_executable_p |
---|
| 552 | |
---|
| 553 | # Sed expression to map a string onto a valid CPP name. |
---|
| 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 555 | |
---|
| 556 | # Sed expression to map a string onto a valid variable name. |
---|
| 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 558 | |
---|
| 559 | |
---|
| 560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
| 561 | exec 6>&1 |
---|
| 562 | |
---|
| 563 | # Name of the host. |
---|
| 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
| 565 | # so uname gets run too. |
---|
| 566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 567 | |
---|
| 568 | # |
---|
| 569 | # Initializations. |
---|
| 570 | # |
---|
| 571 | ac_default_prefix=/usr/local |
---|
| 572 | ac_clean_files= |
---|
| 573 | ac_config_libobj_dir=. |
---|
| 574 | LIBOBJS= |
---|
| 575 | cross_compiling=no |
---|
| 576 | subdirs= |
---|
| 577 | MFLAGS= |
---|
| 578 | MAKEFLAGS= |
---|
| 579 | |
---|
| 580 | # Identity of this package. |
---|
| 581 | PACKAGE_NAME='nanoscale' |
---|
| 582 | PACKAGE_TARNAME='nanoscale' |
---|
| 583 | PACKAGE_VERSION='0.1' |
---|
| 584 | PACKAGE_STRING='nanoscale 0.1' |
---|
| 585 | PACKAGE_BUGREPORT='rappture@nanohub.org' |
---|
| 586 | PACKAGE_URL='' |
---|
| 587 | |
---|
| 588 | # Factoring default headers for most tests. |
---|
| 589 | ac_includes_default="\ |
---|
| 590 | #include <stdio.h> |
---|
| 591 | #ifdef HAVE_SYS_TYPES_H |
---|
| 592 | # include <sys/types.h> |
---|
| 593 | #endif |
---|
| 594 | #ifdef HAVE_SYS_STAT_H |
---|
| 595 | # include <sys/stat.h> |
---|
| 596 | #endif |
---|
| 597 | #ifdef STDC_HEADERS |
---|
| 598 | # include <stdlib.h> |
---|
| 599 | # include <stddef.h> |
---|
| 600 | #else |
---|
| 601 | # ifdef HAVE_STDLIB_H |
---|
| 602 | # include <stdlib.h> |
---|
| 603 | # endif |
---|
| 604 | #endif |
---|
| 605 | #ifdef HAVE_STRING_H |
---|
| 606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
| 607 | # include <memory.h> |
---|
| 608 | # endif |
---|
| 609 | # include <string.h> |
---|
| 610 | #endif |
---|
| 611 | #ifdef HAVE_STRINGS_H |
---|
| 612 | # include <strings.h> |
---|
| 613 | #endif |
---|
| 614 | #ifdef HAVE_INTTYPES_H |
---|
| 615 | # include <inttypes.h> |
---|
| 616 | #endif |
---|
| 617 | #ifdef HAVE_STDINT_H |
---|
| 618 | # include <stdint.h> |
---|
| 619 | #endif |
---|
| 620 | #ifdef HAVE_UNISTD_H |
---|
| 621 | # include <unistd.h> |
---|
| 622 | #endif" |
---|
| 623 | |
---|
| 624 | ac_subst_vars='LTLIBOBJS |
---|
| 625 | LIBOBJS |
---|
| 626 | TCL_VERSION |
---|
| 627 | TCL_LIB_SPEC |
---|
| 628 | TCL_INC_SPEC |
---|
| 629 | SUBDIRS |
---|
| 630 | STATSDIR |
---|
| 631 | LOGDIR |
---|
| 632 | LD_RPATH |
---|
| 633 | CXXCPP |
---|
| 634 | ac_ct_CXX |
---|
| 635 | CXXFLAGS |
---|
| 636 | CXX |
---|
| 637 | MKDIR_P |
---|
| 638 | LN_S |
---|
| 639 | INSTALL_DATA |
---|
| 640 | INSTALL_SCRIPT |
---|
| 641 | INSTALL_PROGRAM |
---|
| 642 | XMKMF |
---|
| 643 | INSTALL_STUB_LIB |
---|
| 644 | INSTALL_LIB |
---|
| 645 | MAKE_STUB_LIB |
---|
| 646 | MAKE_LIB |
---|
| 647 | SHLIB_SUFFIX |
---|
| 648 | SHLIB_CFLAGS |
---|
| 649 | SHLIB_LD_LIBS |
---|
| 650 | TK_SHLIB_LD_EXTRAS |
---|
| 651 | TCL_SHLIB_LD_EXTRAS |
---|
| 652 | SHLIB_LD |
---|
| 653 | STLIB_LD |
---|
| 654 | LD_SEARCH_FLAGS |
---|
| 655 | CC_SEARCH_FLAGS |
---|
| 656 | LDFLAGS_OPTIMIZE |
---|
| 657 | LDFLAGS_DEBUG |
---|
| 658 | CFLAGS_WARNING |
---|
| 659 | CFLAGS_OPTIMIZE |
---|
| 660 | CFLAGS_DEBUG |
---|
| 661 | PLAT_SRCS |
---|
| 662 | PLAT_OBJS |
---|
| 663 | DL_OBJS |
---|
| 664 | DL_LIBS |
---|
| 665 | EGREP |
---|
| 666 | GREP |
---|
| 667 | CPP |
---|
| 668 | AR |
---|
| 669 | RANLIB |
---|
| 670 | OBJEXT |
---|
| 671 | EXEEXT |
---|
| 672 | ac_ct_CC |
---|
| 673 | CPPFLAGS |
---|
| 674 | LDFLAGS |
---|
| 675 | CFLAGS |
---|
| 676 | CC |
---|
| 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 |
---|
| 707 | PACKAGE_URL |
---|
| 708 | PACKAGE_BUGREPORT |
---|
| 709 | PACKAGE_STRING |
---|
| 710 | PACKAGE_VERSION |
---|
| 711 | PACKAGE_TARNAME |
---|
| 712 | PACKAGE_NAME |
---|
| 713 | PATH_SEPARATOR |
---|
| 714 | SHELL' |
---|
| 715 | ac_subst_files='' |
---|
| 716 | ac_user_opts=' |
---|
| 717 | enable_option_checking |
---|
| 718 | with_tcllib |
---|
| 719 | with_statsdir |
---|
| 720 | with_logdir |
---|
| 721 | enable_64bit |
---|
| 722 | enable_64bit_vis |
---|
| 723 | enable_corefoundation |
---|
| 724 | enable_load |
---|
| 725 | with_x |
---|
| 726 | ' |
---|
| 727 | ac_precious_vars='build_alias |
---|
| 728 | host_alias |
---|
| 729 | target_alias |
---|
| 730 | CC |
---|
| 731 | CFLAGS |
---|
| 732 | LDFLAGS |
---|
| 733 | LIBS |
---|
| 734 | CPPFLAGS |
---|
| 735 | CPP |
---|
| 736 | XMKMF |
---|
| 737 | CXX |
---|
| 738 | CXXFLAGS |
---|
| 739 | CCC |
---|
| 740 | CXXCPP' |
---|
| 741 | |
---|
| 742 | |
---|
| 743 | # Initialize some variables set by options. |
---|
| 744 | ac_init_help= |
---|
| 745 | ac_init_version=false |
---|
| 746 | ac_unrecognized_opts= |
---|
| 747 | ac_unrecognized_sep= |
---|
| 748 | # The variables have the same names as the options, with |
---|
| 749 | # dashes changed to underlines. |
---|
| 750 | cache_file=/dev/null |
---|
| 751 | exec_prefix=NONE |
---|
| 752 | no_create= |
---|
| 753 | no_recursion= |
---|
| 754 | prefix=NONE |
---|
| 755 | program_prefix=NONE |
---|
| 756 | program_suffix=NONE |
---|
| 757 | program_transform_name=s,x,x, |
---|
| 758 | silent= |
---|
| 759 | site= |
---|
| 760 | srcdir= |
---|
| 761 | verbose= |
---|
| 762 | x_includes=NONE |
---|
| 763 | x_libraries=NONE |
---|
| 764 | |
---|
| 765 | # Installation directory options. |
---|
| 766 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 767 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 768 | # by default will actually change. |
---|
| 769 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
| 770 | # (The list follows the same order as the GNU Coding Standards.) |
---|
| 771 | bindir='${exec_prefix}/bin' |
---|
| 772 | sbindir='${exec_prefix}/sbin' |
---|
| 773 | libexecdir='${exec_prefix}/libexec' |
---|
| 774 | datarootdir='${prefix}/share' |
---|
| 775 | datadir='${datarootdir}' |
---|
| 776 | sysconfdir='${prefix}/etc' |
---|
| 777 | sharedstatedir='${prefix}/com' |
---|
| 778 | localstatedir='${prefix}/var' |
---|
| 779 | includedir='${prefix}/include' |
---|
| 780 | oldincludedir='/usr/include' |
---|
| 781 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
| 782 | infodir='${datarootdir}/info' |
---|
| 783 | htmldir='${docdir}' |
---|
| 784 | dvidir='${docdir}' |
---|
| 785 | pdfdir='${docdir}' |
---|
| 786 | psdir='${docdir}' |
---|
| 787 | libdir='${exec_prefix}/lib' |
---|
| 788 | localedir='${datarootdir}/locale' |
---|
| 789 | mandir='${datarootdir}/man' |
---|
| 790 | |
---|
| 791 | ac_prev= |
---|
| 792 | ac_dashdash= |
---|
| 793 | for ac_option |
---|
| 794 | do |
---|
| 795 | # If the previous option needs an argument, assign it. |
---|
| 796 | if test -n "$ac_prev"; then |
---|
| 797 | eval $ac_prev=\$ac_option |
---|
| 798 | ac_prev= |
---|
| 799 | continue |
---|
| 800 | fi |
---|
| 801 | |
---|
| 802 | case $ac_option in |
---|
| 803 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
| 804 | *=) ac_optarg= ;; |
---|
| 805 | *) ac_optarg=yes ;; |
---|
| 806 | esac |
---|
| 807 | |
---|
| 808 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 809 | |
---|
| 810 | case $ac_dashdash$ac_option in |
---|
| 811 | --) |
---|
| 812 | ac_dashdash=yes ;; |
---|
| 813 | |
---|
| 814 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 815 | ac_prev=bindir ;; |
---|
| 816 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 817 | bindir=$ac_optarg ;; |
---|
| 818 | |
---|
| 819 | -build | --build | --buil | --bui | --bu) |
---|
| 820 | ac_prev=build_alias ;; |
---|
| 821 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 822 | build_alias=$ac_optarg ;; |
---|
| 823 | |
---|
| 824 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 825 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 826 | ac_prev=cache_file ;; |
---|
| 827 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 828 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 829 | cache_file=$ac_optarg ;; |
---|
| 830 | |
---|
| 831 | --config-cache | -C) |
---|
| 832 | cache_file=config.cache ;; |
---|
| 833 | |
---|
| 834 | -datadir | --datadir | --datadi | --datad) |
---|
| 835 | ac_prev=datadir ;; |
---|
| 836 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
| 837 | datadir=$ac_optarg ;; |
---|
| 838 | |
---|
| 839 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
| 840 | | --dataroo | --dataro | --datar) |
---|
| 841 | ac_prev=datarootdir ;; |
---|
| 842 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
| 843 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
| 844 | datarootdir=$ac_optarg ;; |
---|
| 845 | |
---|
| 846 | -disable-* | --disable-*) |
---|
| 847 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
| 848 | # Reject names that are not valid shell variable names. |
---|
| 849 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 850 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
| 851 | ac_useropt_orig=$ac_useropt |
---|
| 852 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 853 | case $ac_user_opts in |
---|
| 854 | *" |
---|
| 855 | "enable_$ac_useropt" |
---|
| 856 | "*) ;; |
---|
| 857 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
| 858 | ac_unrecognized_sep=', ';; |
---|
| 859 | esac |
---|
| 860 | eval enable_$ac_useropt=no ;; |
---|
| 861 | |
---|
| 862 | -docdir | --docdir | --docdi | --doc | --do) |
---|
| 863 | ac_prev=docdir ;; |
---|
| 864 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
| 865 | docdir=$ac_optarg ;; |
---|
| 866 | |
---|
| 867 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
| 868 | ac_prev=dvidir ;; |
---|
| 869 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
| 870 | dvidir=$ac_optarg ;; |
---|
| 871 | |
---|
| 872 | -enable-* | --enable-*) |
---|
| 873 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
| 874 | # Reject names that are not valid shell variable names. |
---|
| 875 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 876 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
| 877 | ac_useropt_orig=$ac_useropt |
---|
| 878 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 879 | case $ac_user_opts in |
---|
| 880 | *" |
---|
| 881 | "enable_$ac_useropt" |
---|
| 882 | "*) ;; |
---|
| 883 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
| 884 | ac_unrecognized_sep=', ';; |
---|
| 885 | esac |
---|
| 886 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
| 887 | |
---|
| 888 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 889 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 890 | | --exec | --exe | --ex) |
---|
| 891 | ac_prev=exec_prefix ;; |
---|
| 892 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 893 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 894 | | --exec=* | --exe=* | --ex=*) |
---|
| 895 | exec_prefix=$ac_optarg ;; |
---|
| 896 | |
---|
| 897 | -gas | --gas | --ga | --g) |
---|
| 898 | # Obsolete; use --with-gas. |
---|
| 899 | with_gas=yes ;; |
---|
| 900 | |
---|
| 901 | -help | --help | --hel | --he | -h) |
---|
| 902 | ac_init_help=long ;; |
---|
| 903 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 904 | ac_init_help=recursive ;; |
---|
| 905 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 906 | ac_init_help=short ;; |
---|
| 907 | |
---|
| 908 | -host | --host | --hos | --ho) |
---|
| 909 | ac_prev=host_alias ;; |
---|
| 910 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 911 | host_alias=$ac_optarg ;; |
---|
| 912 | |
---|
| 913 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
| 914 | ac_prev=htmldir ;; |
---|
| 915 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
| 916 | | --ht=*) |
---|
| 917 | htmldir=$ac_optarg ;; |
---|
| 918 | |
---|
| 919 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 920 | | --includ | --inclu | --incl | --inc) |
---|
| 921 | ac_prev=includedir ;; |
---|
| 922 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 923 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 924 | includedir=$ac_optarg ;; |
---|
| 925 | |
---|
| 926 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 927 | ac_prev=infodir ;; |
---|
| 928 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 929 | infodir=$ac_optarg ;; |
---|
| 930 | |
---|
| 931 | -libdir | --libdir | --libdi | --libd) |
---|
| 932 | ac_prev=libdir ;; |
---|
| 933 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 934 | libdir=$ac_optarg ;; |
---|
| 935 | |
---|
| 936 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 937 | | --libexe | --libex | --libe) |
---|
| 938 | ac_prev=libexecdir ;; |
---|
| 939 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 940 | | --libexe=* | --libex=* | --libe=*) |
---|
| 941 | libexecdir=$ac_optarg ;; |
---|
| 942 | |
---|
| 943 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
| 944 | ac_prev=localedir ;; |
---|
| 945 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
| 946 | localedir=$ac_optarg ;; |
---|
| 947 | |
---|
| 948 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 949 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
| 950 | ac_prev=localstatedir ;; |
---|
| 951 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 952 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
| 953 | localstatedir=$ac_optarg ;; |
---|
| 954 | |
---|
| 955 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 956 | ac_prev=mandir ;; |
---|
| 957 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 958 | mandir=$ac_optarg ;; |
---|
| 959 | |
---|
| 960 | -nfp | --nfp | --nf) |
---|
| 961 | # Obsolete; use --without-fp. |
---|
| 962 | with_fp=no ;; |
---|
| 963 | |
---|
| 964 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 965 | | --no-cr | --no-c | -n) |
---|
| 966 | no_create=yes ;; |
---|
| 967 | |
---|
| 968 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 969 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 970 | no_recursion=yes ;; |
---|
| 971 | |
---|
| 972 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 973 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 974 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 975 | ac_prev=oldincludedir ;; |
---|
| 976 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 977 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 978 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 979 | oldincludedir=$ac_optarg ;; |
---|
| 980 | |
---|
| 981 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 982 | ac_prev=prefix ;; |
---|
| 983 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 984 | prefix=$ac_optarg ;; |
---|
| 985 | |
---|
| 986 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 987 | | --program-pre | --program-pr | --program-p) |
---|
| 988 | ac_prev=program_prefix ;; |
---|
| 989 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 990 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 991 | program_prefix=$ac_optarg ;; |
---|
| 992 | |
---|
| 993 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 994 | | --program-suf | --program-su | --program-s) |
---|
| 995 | ac_prev=program_suffix ;; |
---|
| 996 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 997 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 998 | program_suffix=$ac_optarg ;; |
---|
| 999 | |
---|
| 1000 | -program-transform-name | --program-transform-name \ |
---|
| 1001 | | --program-transform-nam | --program-transform-na \ |
---|
| 1002 | | --program-transform-n | --program-transform- \ |
---|
| 1003 | | --program-transform | --program-transfor \ |
---|
| 1004 | | --program-transfo | --program-transf \ |
---|
| 1005 | | --program-trans | --program-tran \ |
---|
| 1006 | | --progr-tra | --program-tr | --program-t) |
---|
| 1007 | ac_prev=program_transform_name ;; |
---|
| 1008 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 1009 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 1010 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 1011 | | --program-transform=* | --program-transfor=* \ |
---|
| 1012 | | --program-transfo=* | --program-transf=* \ |
---|
| 1013 | | --program-trans=* | --program-tran=* \ |
---|
| 1014 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 1015 | program_transform_name=$ac_optarg ;; |
---|
| 1016 | |
---|
| 1017 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
| 1018 | ac_prev=pdfdir ;; |
---|
| 1019 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
| 1020 | pdfdir=$ac_optarg ;; |
---|
| 1021 | |
---|
| 1022 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
| 1023 | ac_prev=psdir ;; |
---|
| 1024 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
| 1025 | psdir=$ac_optarg ;; |
---|
| 1026 | |
---|
| 1027 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1028 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1029 | silent=yes ;; |
---|
| 1030 | |
---|
| 1031 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 1032 | ac_prev=sbindir ;; |
---|
| 1033 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 1034 | | --sbi=* | --sb=*) |
---|
| 1035 | sbindir=$ac_optarg ;; |
---|
| 1036 | |
---|
| 1037 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 1038 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 1039 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 1040 | | --sha | --sh) |
---|
| 1041 | ac_prev=sharedstatedir ;; |
---|
| 1042 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 1043 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 1044 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 1045 | | --sha=* | --sh=*) |
---|
| 1046 | sharedstatedir=$ac_optarg ;; |
---|
| 1047 | |
---|
| 1048 | -site | --site | --sit) |
---|
| 1049 | ac_prev=site ;; |
---|
| 1050 | -site=* | --site=* | --sit=*) |
---|
| 1051 | site=$ac_optarg ;; |
---|
| 1052 | |
---|
| 1053 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 1054 | ac_prev=srcdir ;; |
---|
| 1055 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 1056 | srcdir=$ac_optarg ;; |
---|
| 1057 | |
---|
| 1058 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 1059 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 1060 | ac_prev=sysconfdir ;; |
---|
| 1061 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 1062 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 1063 | sysconfdir=$ac_optarg ;; |
---|
| 1064 | |
---|
| 1065 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 1066 | ac_prev=target_alias ;; |
---|
| 1067 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 1068 | target_alias=$ac_optarg ;; |
---|
| 1069 | |
---|
| 1070 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 1071 | verbose=yes ;; |
---|
| 1072 | |
---|
| 1073 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 1074 | ac_init_version=: ;; |
---|
| 1075 | |
---|
| 1076 | -with-* | --with-*) |
---|
| 1077 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
| 1078 | # Reject names that are not valid shell variable names. |
---|
| 1079 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 1080 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
| 1081 | ac_useropt_orig=$ac_useropt |
---|
| 1082 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 1083 | case $ac_user_opts in |
---|
| 1084 | *" |
---|
| 1085 | "with_$ac_useropt" |
---|
| 1086 | "*) ;; |
---|
| 1087 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
| 1088 | ac_unrecognized_sep=', ';; |
---|
| 1089 | esac |
---|
| 1090 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
| 1091 | |
---|
| 1092 | -without-* | --without-*) |
---|
| 1093 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
| 1094 | # Reject names that are not valid shell variable names. |
---|
| 1095 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
| 1096 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
| 1097 | ac_useropt_orig=$ac_useropt |
---|
| 1098 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
| 1099 | case $ac_user_opts in |
---|
| 1100 | *" |
---|
| 1101 | "with_$ac_useropt" |
---|
| 1102 | "*) ;; |
---|
| 1103 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
| 1104 | ac_unrecognized_sep=', ';; |
---|
| 1105 | esac |
---|
| 1106 | eval with_$ac_useropt=no ;; |
---|
| 1107 | |
---|
| 1108 | --x) |
---|
| 1109 | # Obsolete; use --with-x. |
---|
| 1110 | with_x=yes ;; |
---|
| 1111 | |
---|
| 1112 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 1113 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 1114 | ac_prev=x_includes ;; |
---|
| 1115 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 1116 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 1117 | x_includes=$ac_optarg ;; |
---|
| 1118 | |
---|
| 1119 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 1120 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 1121 | ac_prev=x_libraries ;; |
---|
| 1122 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 1123 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 1124 | x_libraries=$ac_optarg ;; |
---|
| 1125 | |
---|
| 1126 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
| 1127 | Try \`$0 --help' for more information" |
---|
| 1128 | ;; |
---|
| 1129 | |
---|
| 1130 | *=*) |
---|
| 1131 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 1132 | # Reject names that are not valid shell variable names. |
---|
| 1133 | case $ac_envvar in #( |
---|
| 1134 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
| 1135 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
| 1136 | esac |
---|
| 1137 | eval $ac_envvar=\$ac_optarg |
---|
| 1138 | export $ac_envvar ;; |
---|
| 1139 | |
---|
| 1140 | *) |
---|
| 1141 | # FIXME: should be removed in autoconf 3.0. |
---|
| 1142 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
| 1143 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 1144 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 1145 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
| 1146 | ;; |
---|
| 1147 | |
---|
| 1148 | esac |
---|
| 1149 | done |
---|
| 1150 | |
---|
| 1151 | if test -n "$ac_prev"; then |
---|
| 1152 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
| 1153 | as_fn_error $? "missing argument to $ac_option" |
---|
| 1154 | fi |
---|
| 1155 | |
---|
| 1156 | if test -n "$ac_unrecognized_opts"; then |
---|
| 1157 | case $enable_option_checking in |
---|
| 1158 | no) ;; |
---|
| 1159 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
| 1160 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
| 1161 | esac |
---|
| 1162 | fi |
---|
| 1163 | |
---|
| 1164 | # Check all directory arguments for consistency. |
---|
| 1165 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
| 1166 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
| 1167 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
| 1168 | libdir localedir mandir |
---|
| 1169 | do |
---|
| 1170 | eval ac_val=\$$ac_var |
---|
| 1171 | # Remove trailing slashes. |
---|
| 1172 | case $ac_val in |
---|
| 1173 | */ ) |
---|
| 1174 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
| 1175 | eval $ac_var=\$ac_val;; |
---|
| 1176 | esac |
---|
| 1177 | # Be sure to have absolute directory names. |
---|
| 1178 | case $ac_val in |
---|
| 1179 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
| 1180 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
| 1181 | esac |
---|
| 1182 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
| 1183 | done |
---|
| 1184 | |
---|
| 1185 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 1186 | # used to hold the argument of --host etc. |
---|
| 1187 | # FIXME: To remove some day. |
---|
| 1188 | build=$build_alias |
---|
| 1189 | host=$host_alias |
---|
| 1190 | target=$target_alias |
---|
| 1191 | |
---|
| 1192 | # FIXME: To remove some day. |
---|
| 1193 | if test "x$host_alias" != x; then |
---|
| 1194 | if test "x$build_alias" = x; then |
---|
| 1195 | cross_compiling=maybe |
---|
| 1196 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 1197 | cross_compiling=yes |
---|
| 1198 | fi |
---|
| 1199 | fi |
---|
| 1200 | |
---|
| 1201 | ac_tool_prefix= |
---|
| 1202 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 1203 | |
---|
| 1204 | test "$silent" = yes && exec 6>/dev/null |
---|
| 1205 | |
---|
| 1206 | |
---|
| 1207 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
| 1208 | ac_ls_di=`ls -di .` && |
---|
| 1209 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
| 1210 | as_fn_error $? "working directory cannot be determined" |
---|
| 1211 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
| 1212 | as_fn_error $? "pwd does not report name of working directory" |
---|
| 1213 | |
---|
| 1214 | |
---|
| 1215 | # Find the source files, if location was not specified. |
---|
| 1216 | if test -z "$srcdir"; then |
---|
| 1217 | ac_srcdir_defaulted=yes |
---|
| 1218 | # Try the directory containing this script, then the parent directory. |
---|
| 1219 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
| 1220 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 1221 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
| 1222 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
| 1223 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 1224 | $as_echo X"$as_myself" | |
---|
| 1225 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 1226 | s//\1/ |
---|
| 1227 | q |
---|
| 1228 | } |
---|
| 1229 | /^X\(\/\/\)[^/].*/{ |
---|
| 1230 | s//\1/ |
---|
| 1231 | q |
---|
| 1232 | } |
---|
| 1233 | /^X\(\/\/\)$/{ |
---|
| 1234 | s//\1/ |
---|
| 1235 | q |
---|
| 1236 | } |
---|
| 1237 | /^X\(\/\).*/{ |
---|
| 1238 | s//\1/ |
---|
| 1239 | q |
---|
| 1240 | } |
---|
| 1241 | s/.*/./; q'` |
---|
| 1242 | srcdir=$ac_confdir |
---|
| 1243 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
| 1244 | srcdir=.. |
---|
| 1245 | fi |
---|
| 1246 | else |
---|
| 1247 | ac_srcdir_defaulted=no |
---|
| 1248 | fi |
---|
| 1249 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
| 1250 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
| 1251 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
| 1252 | fi |
---|
| 1253 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
| 1254 | ac_abs_confdir=`( |
---|
| 1255 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
| 1256 | pwd)` |
---|
| 1257 | # When building in place, set srcdir=. |
---|
| 1258 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
| 1259 | srcdir=. |
---|
| 1260 | fi |
---|
| 1261 | # Remove unnecessary trailing slashes from srcdir. |
---|
| 1262 | # Double slashes in file names in object file debugging info |
---|
| 1263 | # mess up M-x gdb in Emacs. |
---|
| 1264 | case $srcdir in |
---|
| 1265 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
| 1266 | esac |
---|
| 1267 | for ac_var in $ac_precious_vars; do |
---|
| 1268 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1269 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
| 1270 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1271 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
| 1272 | done |
---|
| 1273 | |
---|
| 1274 | # |
---|
| 1275 | # Report the --help message. |
---|
| 1276 | # |
---|
| 1277 | if test "$ac_init_help" = "long"; then |
---|
| 1278 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 1279 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 1280 | cat <<_ACEOF |
---|
| 1281 | \`configure' configures nanoscale 0.1 to adapt to many kinds of systems. |
---|
| 1282 | |
---|
| 1283 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 1284 | |
---|
| 1285 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 1286 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 1287 | |
---|
| 1288 | Defaults for the options are specified in brackets. |
---|
| 1289 | |
---|
| 1290 | Configuration: |
---|
| 1291 | -h, --help display this help and exit |
---|
| 1292 | --help=short display options specific to this package |
---|
| 1293 | --help=recursive display the short help of all the included packages |
---|
| 1294 | -V, --version display version information and exit |
---|
| 1295 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
| 1296 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 1297 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 1298 | -n, --no-create do not create output files |
---|
| 1299 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 1300 | |
---|
| 1301 | Installation directories: |
---|
| 1302 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 1303 | [$ac_default_prefix] |
---|
| 1304 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 1305 | [PREFIX] |
---|
| 1306 | |
---|
| 1307 | By default, \`make install' will install all the files in |
---|
| 1308 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 1309 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 1310 | for instance \`--prefix=\$HOME'. |
---|
| 1311 | |
---|
| 1312 | For better control, use the options below. |
---|
| 1313 | |
---|
| 1314 | Fine tuning of the installation directories: |
---|
| 1315 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 1316 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 1317 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 1318 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 1319 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 1320 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 1321 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 1322 | --includedir=DIR C header files [PREFIX/include] |
---|
| 1323 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 1324 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
| 1325 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
| 1326 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
| 1327 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
| 1328 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
| 1329 | --docdir=DIR documentation root [DATAROOTDIR/doc/nanoscale] |
---|
| 1330 | --htmldir=DIR html documentation [DOCDIR] |
---|
| 1331 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
| 1332 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
| 1333 | --psdir=DIR ps documentation [DOCDIR] |
---|
| 1334 | _ACEOF |
---|
| 1335 | |
---|
| 1336 | cat <<\_ACEOF |
---|
| 1337 | |
---|
| 1338 | X features: |
---|
| 1339 | --x-includes=DIR X include files are in DIR |
---|
| 1340 | --x-libraries=DIR X library files are in DIR |
---|
| 1341 | _ACEOF |
---|
| 1342 | fi |
---|
| 1343 | |
---|
| 1344 | if test -n "$ac_init_help"; then |
---|
| 1345 | case $ac_init_help in |
---|
| 1346 | short | recursive ) echo "Configuration of nanoscale 0.1:";; |
---|
| 1347 | esac |
---|
| 1348 | cat <<\_ACEOF |
---|
| 1349 | |
---|
| 1350 | Optional Features: |
---|
| 1351 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
| 1352 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 1353 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 1354 | --enable-64bit enable 64bit support (where applicable) |
---|
| 1355 | --enable-64bit-vis enable 64bit Sparc VIS support |
---|
| 1356 | --enable-corefoundation use CoreFoundation API --enable-corefoundation |
---|
| 1357 | --disable-load disallow dynamic loading and "load" command |
---|
| 1358 | |
---|
| 1359 | Optional Packages: |
---|
| 1360 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 1361 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 1362 | --with-tcllib=DIR location of Tcl binary library libtclstubs.a |
---|
| 1363 | [default=/usr/lib] |
---|
| 1364 | --with-statsdir=DIR Write statistics in DIR |
---|
| 1365 | --with-logdir=DIR Write log files in DIR |
---|
| 1366 | --with-x use the X Window System |
---|
| 1367 | |
---|
| 1368 | Some influential environment variables: |
---|
| 1369 | CC C compiler command |
---|
| 1370 | CFLAGS C compiler flags |
---|
| 1371 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 1372 | nonstandard directory <lib dir> |
---|
| 1373 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
| 1374 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
| 1375 | you have headers in a nonstandard directory <include dir> |
---|
| 1376 | CPP C preprocessor |
---|
| 1377 | XMKMF Path to xmkmf, Makefile generator for X Window System |
---|
| 1378 | CXX C++ compiler command |
---|
| 1379 | CXXFLAGS C++ compiler flags |
---|
| 1380 | CXXCPP C++ preprocessor |
---|
| 1381 | |
---|
| 1382 | Use these variables to override the choices made by `configure' or to help |
---|
| 1383 | it to find libraries and programs with nonstandard names/locations. |
---|
| 1384 | |
---|
| 1385 | Report bugs to <rappture@nanohub.org>. |
---|
| 1386 | _ACEOF |
---|
| 1387 | ac_status=$? |
---|
| 1388 | fi |
---|
| 1389 | |
---|
| 1390 | if test "$ac_init_help" = "recursive"; then |
---|
| 1391 | # If there are subdirs, report their specific --help. |
---|
| 1392 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 1393 | test -d "$ac_dir" || |
---|
| 1394 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
| 1395 | continue |
---|
| 1396 | ac_builddir=. |
---|
| 1397 | |
---|
| 1398 | case "$ac_dir" in |
---|
| 1399 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1400 | *) |
---|
| 1401 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
| 1402 | # A ".." for each directory in $ac_dir_suffix. |
---|
| 1403 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
| 1404 | case $ac_top_builddir_sub in |
---|
| 1405 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1406 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 1407 | esac ;; |
---|
| 1408 | esac |
---|
| 1409 | ac_abs_top_builddir=$ac_pwd |
---|
| 1410 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 1411 | # for backward compatibility: |
---|
| 1412 | ac_top_builddir=$ac_top_build_prefix |
---|
| 1413 | |
---|
| 1414 | case $srcdir in |
---|
| 1415 | .) # We are building in place. |
---|
| 1416 | ac_srcdir=. |
---|
| 1417 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 1418 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 1419 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
| 1420 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 1421 | ac_top_srcdir=$srcdir |
---|
| 1422 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 1423 | *) # Relative name. |
---|
| 1424 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 1425 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 1426 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
| 1427 | esac |
---|
| 1428 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
| 1429 | |
---|
| 1430 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
| 1431 | # Check for guested configure. |
---|
| 1432 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
| 1433 | echo && |
---|
| 1434 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
| 1435 | elif test -f "$ac_srcdir/configure"; then |
---|
| 1436 | echo && |
---|
| 1437 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
| 1438 | else |
---|
| 1439 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 1440 | fi || ac_status=$? |
---|
| 1441 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
| 1442 | done |
---|
| 1443 | fi |
---|
| 1444 | |
---|
| 1445 | test -n "$ac_init_help" && exit $ac_status |
---|
| 1446 | if $ac_init_version; then |
---|
| 1447 | cat <<\_ACEOF |
---|
| 1448 | nanoscale configure 0.1 |
---|
| 1449 | generated by GNU Autoconf 2.69 |
---|
| 1450 | |
---|
| 1451 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
| 1452 | This configure script is free software; the Free Software Foundation |
---|
| 1453 | gives unlimited permission to copy, distribute and modify it. |
---|
| 1454 | _ACEOF |
---|
| 1455 | exit |
---|
| 1456 | fi |
---|
| 1457 | |
---|
| 1458 | ## ------------------------ ## |
---|
| 1459 | ## Autoconf initialization. ## |
---|
| 1460 | ## ------------------------ ## |
---|
| 1461 | |
---|
| 1462 | # ac_fn_c_try_compile LINENO |
---|
| 1463 | # -------------------------- |
---|
| 1464 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
| 1465 | ac_fn_c_try_compile () |
---|
| 1466 | { |
---|
| 1467 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1468 | rm -f conftest.$ac_objext |
---|
| 1469 | if { { ac_try="$ac_compile" |
---|
| 1470 | case "(($ac_try" in |
---|
| 1471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1472 | *) ac_try_echo=$ac_try;; |
---|
| 1473 | esac |
---|
| 1474 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1475 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1476 | (eval "$ac_compile") 2>conftest.err |
---|
| 1477 | ac_status=$? |
---|
| 1478 | if test -s conftest.err; then |
---|
| 1479 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1480 | cat conftest.er1 >&5 |
---|
| 1481 | mv -f conftest.er1 conftest.err |
---|
| 1482 | fi |
---|
| 1483 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1484 | test $ac_status = 0; } && { |
---|
| 1485 | test -z "$ac_c_werror_flag" || |
---|
| 1486 | test ! -s conftest.err |
---|
| 1487 | } && test -s conftest.$ac_objext; then : |
---|
| 1488 | ac_retval=0 |
---|
| 1489 | else |
---|
| 1490 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1491 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1492 | |
---|
| 1493 | ac_retval=1 |
---|
| 1494 | fi |
---|
| 1495 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1496 | as_fn_set_status $ac_retval |
---|
| 1497 | |
---|
| 1498 | } # ac_fn_c_try_compile |
---|
| 1499 | |
---|
| 1500 | # ac_fn_c_try_link LINENO |
---|
| 1501 | # ----------------------- |
---|
| 1502 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
| 1503 | ac_fn_c_try_link () |
---|
| 1504 | { |
---|
| 1505 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1506 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 1507 | if { { ac_try="$ac_link" |
---|
| 1508 | case "(($ac_try" in |
---|
| 1509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1510 | *) ac_try_echo=$ac_try;; |
---|
| 1511 | esac |
---|
| 1512 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1513 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1514 | (eval "$ac_link") 2>conftest.err |
---|
| 1515 | ac_status=$? |
---|
| 1516 | if test -s conftest.err; then |
---|
| 1517 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1518 | cat conftest.er1 >&5 |
---|
| 1519 | mv -f conftest.er1 conftest.err |
---|
| 1520 | fi |
---|
| 1521 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1522 | test $ac_status = 0; } && { |
---|
| 1523 | test -z "$ac_c_werror_flag" || |
---|
| 1524 | test ! -s conftest.err |
---|
| 1525 | } && test -s conftest$ac_exeext && { |
---|
| 1526 | test "$cross_compiling" = yes || |
---|
| 1527 | test -x conftest$ac_exeext |
---|
| 1528 | }; then : |
---|
| 1529 | ac_retval=0 |
---|
| 1530 | else |
---|
| 1531 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1532 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1533 | |
---|
| 1534 | ac_retval=1 |
---|
| 1535 | fi |
---|
| 1536 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
| 1537 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
| 1538 | # interfere with the next link command; also delete a directory that is |
---|
| 1539 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
| 1540 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
| 1541 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1542 | as_fn_set_status $ac_retval |
---|
| 1543 | |
---|
| 1544 | } # ac_fn_c_try_link |
---|
| 1545 | |
---|
| 1546 | # ac_fn_c_try_cpp LINENO |
---|
| 1547 | # ---------------------- |
---|
| 1548 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
| 1549 | ac_fn_c_try_cpp () |
---|
| 1550 | { |
---|
| 1551 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1552 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 1553 | case "(($ac_try" in |
---|
| 1554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1555 | *) ac_try_echo=$ac_try;; |
---|
| 1556 | esac |
---|
| 1557 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1558 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1559 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
| 1560 | ac_status=$? |
---|
| 1561 | if test -s conftest.err; then |
---|
| 1562 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1563 | cat conftest.er1 >&5 |
---|
| 1564 | mv -f conftest.er1 conftest.err |
---|
| 1565 | fi |
---|
| 1566 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1567 | test $ac_status = 0; } > conftest.i && { |
---|
| 1568 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
| 1569 | test ! -s conftest.err |
---|
| 1570 | }; then : |
---|
| 1571 | ac_retval=0 |
---|
| 1572 | else |
---|
| 1573 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1574 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1575 | |
---|
| 1576 | ac_retval=1 |
---|
| 1577 | fi |
---|
| 1578 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1579 | as_fn_set_status $ac_retval |
---|
| 1580 | |
---|
| 1581 | } # ac_fn_c_try_cpp |
---|
| 1582 | |
---|
| 1583 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
| 1584 | # ------------------------------------------------------- |
---|
| 1585 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
| 1586 | # the include files in INCLUDES and setting the cache variable VAR |
---|
| 1587 | # accordingly. |
---|
| 1588 | ac_fn_c_check_header_mongrel () |
---|
| 1589 | { |
---|
| 1590 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1591 | if eval \${$3+:} false; then : |
---|
| 1592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1593 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1594 | if eval \${$3+:} false; then : |
---|
| 1595 | $as_echo_n "(cached) " >&6 |
---|
| 1596 | fi |
---|
| 1597 | eval ac_res=\$$3 |
---|
| 1598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1599 | $as_echo "$ac_res" >&6; } |
---|
| 1600 | else |
---|
| 1601 | # Is the header compilable? |
---|
| 1602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
| 1603 | $as_echo_n "checking $2 usability... " >&6; } |
---|
| 1604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1605 | /* end confdefs.h. */ |
---|
| 1606 | $4 |
---|
| 1607 | #include <$2> |
---|
| 1608 | _ACEOF |
---|
| 1609 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 1610 | ac_header_compiler=yes |
---|
| 1611 | else |
---|
| 1612 | ac_header_compiler=no |
---|
| 1613 | fi |
---|
| 1614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
| 1616 | $as_echo "$ac_header_compiler" >&6; } |
---|
| 1617 | |
---|
| 1618 | # Is the header present? |
---|
| 1619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
| 1620 | $as_echo_n "checking $2 presence... " >&6; } |
---|
| 1621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1622 | /* end confdefs.h. */ |
---|
| 1623 | #include <$2> |
---|
| 1624 | _ACEOF |
---|
| 1625 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 1626 | ac_header_preproc=yes |
---|
| 1627 | else |
---|
| 1628 | ac_header_preproc=no |
---|
| 1629 | fi |
---|
| 1630 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 1631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
| 1632 | $as_echo "$ac_header_preproc" >&6; } |
---|
| 1633 | |
---|
| 1634 | # So? What about this header? |
---|
| 1635 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
| 1636 | yes:no: ) |
---|
| 1637 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 1638 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 1639 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
| 1640 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
| 1641 | ;; |
---|
| 1642 | no:yes:* ) |
---|
| 1643 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
| 1644 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
| 1645 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
| 1646 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
| 1647 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
| 1648 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
| 1649 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 1650 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 1651 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
| 1652 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
| 1653 | ( $as_echo "## ----------------------------------- ## |
---|
| 1654 | ## Report this to rappture@nanohub.org ## |
---|
| 1655 | ## ----------------------------------- ##" |
---|
| 1656 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 1657 | ;; |
---|
| 1658 | esac |
---|
| 1659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1660 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1661 | if eval \${$3+:} false; then : |
---|
| 1662 | $as_echo_n "(cached) " >&6 |
---|
| 1663 | else |
---|
| 1664 | eval "$3=\$ac_header_compiler" |
---|
| 1665 | fi |
---|
| 1666 | eval ac_res=\$$3 |
---|
| 1667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1668 | $as_echo "$ac_res" >&6; } |
---|
| 1669 | fi |
---|
| 1670 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1671 | |
---|
| 1672 | } # ac_fn_c_check_header_mongrel |
---|
| 1673 | |
---|
| 1674 | # ac_fn_c_try_run LINENO |
---|
| 1675 | # ---------------------- |
---|
| 1676 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
| 1677 | # that executables *can* be run. |
---|
| 1678 | ac_fn_c_try_run () |
---|
| 1679 | { |
---|
| 1680 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1681 | if { { ac_try="$ac_link" |
---|
| 1682 | case "(($ac_try" in |
---|
| 1683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1684 | *) ac_try_echo=$ac_try;; |
---|
| 1685 | esac |
---|
| 1686 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1687 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1688 | (eval "$ac_link") 2>&5 |
---|
| 1689 | ac_status=$? |
---|
| 1690 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1691 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
| 1692 | { { case "(($ac_try" in |
---|
| 1693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1694 | *) ac_try_echo=$ac_try;; |
---|
| 1695 | esac |
---|
| 1696 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1697 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1698 | (eval "$ac_try") 2>&5 |
---|
| 1699 | ac_status=$? |
---|
| 1700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1701 | test $ac_status = 0; }; }; then : |
---|
| 1702 | ac_retval=0 |
---|
| 1703 | else |
---|
| 1704 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 1705 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1706 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1707 | |
---|
| 1708 | ac_retval=$ac_status |
---|
| 1709 | fi |
---|
| 1710 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
| 1711 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1712 | as_fn_set_status $ac_retval |
---|
| 1713 | |
---|
| 1714 | } # ac_fn_c_try_run |
---|
| 1715 | |
---|
| 1716 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
| 1717 | # ------------------------------------------------------- |
---|
| 1718 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
| 1719 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
| 1720 | ac_fn_c_check_header_compile () |
---|
| 1721 | { |
---|
| 1722 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1724 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1725 | if eval \${$3+:} false; then : |
---|
| 1726 | $as_echo_n "(cached) " >&6 |
---|
| 1727 | else |
---|
| 1728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1729 | /* end confdefs.h. */ |
---|
| 1730 | $4 |
---|
| 1731 | #include <$2> |
---|
| 1732 | _ACEOF |
---|
| 1733 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 1734 | eval "$3=yes" |
---|
| 1735 | else |
---|
| 1736 | eval "$3=no" |
---|
| 1737 | fi |
---|
| 1738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1739 | fi |
---|
| 1740 | eval ac_res=\$$3 |
---|
| 1741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1742 | $as_echo "$ac_res" >&6; } |
---|
| 1743 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1744 | |
---|
| 1745 | } # ac_fn_c_check_header_compile |
---|
| 1746 | |
---|
| 1747 | # ac_fn_cxx_try_compile LINENO |
---|
| 1748 | # ---------------------------- |
---|
| 1749 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
| 1750 | ac_fn_cxx_try_compile () |
---|
| 1751 | { |
---|
| 1752 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1753 | rm -f conftest.$ac_objext |
---|
| 1754 | if { { ac_try="$ac_compile" |
---|
| 1755 | case "(($ac_try" in |
---|
| 1756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1757 | *) ac_try_echo=$ac_try;; |
---|
| 1758 | esac |
---|
| 1759 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1760 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1761 | (eval "$ac_compile") 2>conftest.err |
---|
| 1762 | ac_status=$? |
---|
| 1763 | if test -s conftest.err; then |
---|
| 1764 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1765 | cat conftest.er1 >&5 |
---|
| 1766 | mv -f conftest.er1 conftest.err |
---|
| 1767 | fi |
---|
| 1768 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1769 | test $ac_status = 0; } && { |
---|
| 1770 | test -z "$ac_cxx_werror_flag" || |
---|
| 1771 | test ! -s conftest.err |
---|
| 1772 | } && test -s conftest.$ac_objext; then : |
---|
| 1773 | ac_retval=0 |
---|
| 1774 | else |
---|
| 1775 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1776 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1777 | |
---|
| 1778 | ac_retval=1 |
---|
| 1779 | fi |
---|
| 1780 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1781 | as_fn_set_status $ac_retval |
---|
| 1782 | |
---|
| 1783 | } # ac_fn_cxx_try_compile |
---|
| 1784 | |
---|
| 1785 | # ac_fn_cxx_try_cpp LINENO |
---|
| 1786 | # ------------------------ |
---|
| 1787 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
| 1788 | ac_fn_cxx_try_cpp () |
---|
| 1789 | { |
---|
| 1790 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1791 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 1792 | case "(($ac_try" in |
---|
| 1793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1794 | *) ac_try_echo=$ac_try;; |
---|
| 1795 | esac |
---|
| 1796 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1797 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1798 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
| 1799 | ac_status=$? |
---|
| 1800 | if test -s conftest.err; then |
---|
| 1801 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1802 | cat conftest.er1 >&5 |
---|
| 1803 | mv -f conftest.er1 conftest.err |
---|
| 1804 | fi |
---|
| 1805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1806 | test $ac_status = 0; } > conftest.i && { |
---|
| 1807 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
| 1808 | test ! -s conftest.err |
---|
| 1809 | }; then : |
---|
| 1810 | ac_retval=0 |
---|
| 1811 | else |
---|
| 1812 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1813 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1814 | |
---|
| 1815 | ac_retval=1 |
---|
| 1816 | fi |
---|
| 1817 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1818 | as_fn_set_status $ac_retval |
---|
| 1819 | |
---|
| 1820 | } # ac_fn_cxx_try_cpp |
---|
| 1821 | |
---|
| 1822 | # ac_fn_cxx_try_run LINENO |
---|
| 1823 | # ------------------------ |
---|
| 1824 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
| 1825 | # that executables *can* be run. |
---|
| 1826 | ac_fn_cxx_try_run () |
---|
| 1827 | { |
---|
| 1828 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1829 | if { { ac_try="$ac_link" |
---|
| 1830 | case "(($ac_try" in |
---|
| 1831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1832 | *) ac_try_echo=$ac_try;; |
---|
| 1833 | esac |
---|
| 1834 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1835 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1836 | (eval "$ac_link") 2>&5 |
---|
| 1837 | ac_status=$? |
---|
| 1838 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1839 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
| 1840 | { { case "(($ac_try" in |
---|
| 1841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1842 | *) ac_try_echo=$ac_try;; |
---|
| 1843 | esac |
---|
| 1844 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1845 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1846 | (eval "$ac_try") 2>&5 |
---|
| 1847 | ac_status=$? |
---|
| 1848 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1849 | test $ac_status = 0; }; }; then : |
---|
| 1850 | ac_retval=0 |
---|
| 1851 | else |
---|
| 1852 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 1853 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1854 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1855 | |
---|
| 1856 | ac_retval=$ac_status |
---|
| 1857 | fi |
---|
| 1858 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
| 1859 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1860 | as_fn_set_status $ac_retval |
---|
| 1861 | |
---|
| 1862 | } # ac_fn_cxx_try_run |
---|
| 1863 | |
---|
| 1864 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
| 1865 | # --------------------------------------------------------- |
---|
| 1866 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
| 1867 | # the include files in INCLUDES and setting the cache variable VAR |
---|
| 1868 | # accordingly. |
---|
| 1869 | ac_fn_cxx_check_header_mongrel () |
---|
| 1870 | { |
---|
| 1871 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1872 | if eval \${$3+:} false; then : |
---|
| 1873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1874 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1875 | if eval \${$3+:} false; then : |
---|
| 1876 | $as_echo_n "(cached) " >&6 |
---|
| 1877 | fi |
---|
| 1878 | eval ac_res=\$$3 |
---|
| 1879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1880 | $as_echo "$ac_res" >&6; } |
---|
| 1881 | else |
---|
| 1882 | # Is the header compilable? |
---|
| 1883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
| 1884 | $as_echo_n "checking $2 usability... " >&6; } |
---|
| 1885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1886 | /* end confdefs.h. */ |
---|
| 1887 | $4 |
---|
| 1888 | #include <$2> |
---|
| 1889 | _ACEOF |
---|
| 1890 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 1891 | ac_header_compiler=yes |
---|
| 1892 | else |
---|
| 1893 | ac_header_compiler=no |
---|
| 1894 | fi |
---|
| 1895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
| 1897 | $as_echo "$ac_header_compiler" >&6; } |
---|
| 1898 | |
---|
| 1899 | # Is the header present? |
---|
| 1900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
| 1901 | $as_echo_n "checking $2 presence... " >&6; } |
---|
| 1902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 1903 | /* end confdefs.h. */ |
---|
| 1904 | #include <$2> |
---|
| 1905 | _ACEOF |
---|
| 1906 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
| 1907 | ac_header_preproc=yes |
---|
| 1908 | else |
---|
| 1909 | ac_header_preproc=no |
---|
| 1910 | fi |
---|
| 1911 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 1912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
| 1913 | $as_echo "$ac_header_preproc" >&6; } |
---|
| 1914 | |
---|
| 1915 | # So? What about this header? |
---|
| 1916 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
---|
| 1917 | yes:no: ) |
---|
| 1918 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 1919 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 1920 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
| 1921 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
| 1922 | ;; |
---|
| 1923 | no:yes:* ) |
---|
| 1924 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
| 1925 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
| 1926 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
| 1927 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
| 1928 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
| 1929 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
| 1930 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 1931 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 1932 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
| 1933 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
| 1934 | ( $as_echo "## ----------------------------------- ## |
---|
| 1935 | ## Report this to rappture@nanohub.org ## |
---|
| 1936 | ## ----------------------------------- ##" |
---|
| 1937 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 1938 | ;; |
---|
| 1939 | esac |
---|
| 1940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 1941 | $as_echo_n "checking for $2... " >&6; } |
---|
| 1942 | if eval \${$3+:} false; then : |
---|
| 1943 | $as_echo_n "(cached) " >&6 |
---|
| 1944 | else |
---|
| 1945 | eval "$3=\$ac_header_compiler" |
---|
| 1946 | fi |
---|
| 1947 | eval ac_res=\$$3 |
---|
| 1948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 1949 | $as_echo "$ac_res" >&6; } |
---|
| 1950 | fi |
---|
| 1951 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1952 | |
---|
| 1953 | } # ac_fn_cxx_check_header_mongrel |
---|
| 1954 | |
---|
| 1955 | # ac_fn_cxx_try_link LINENO |
---|
| 1956 | # ------------------------- |
---|
| 1957 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
| 1958 | ac_fn_cxx_try_link () |
---|
| 1959 | { |
---|
| 1960 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 1961 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 1962 | if { { ac_try="$ac_link" |
---|
| 1963 | case "(($ac_try" in |
---|
| 1964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 1965 | *) ac_try_echo=$ac_try;; |
---|
| 1966 | esac |
---|
| 1967 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 1968 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 1969 | (eval "$ac_link") 2>conftest.err |
---|
| 1970 | ac_status=$? |
---|
| 1971 | if test -s conftest.err; then |
---|
| 1972 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
| 1973 | cat conftest.er1 >&5 |
---|
| 1974 | mv -f conftest.er1 conftest.err |
---|
| 1975 | fi |
---|
| 1976 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 1977 | test $ac_status = 0; } && { |
---|
| 1978 | test -z "$ac_cxx_werror_flag" || |
---|
| 1979 | test ! -s conftest.err |
---|
| 1980 | } && test -s conftest$ac_exeext && { |
---|
| 1981 | test "$cross_compiling" = yes || |
---|
| 1982 | test -x conftest$ac_exeext |
---|
| 1983 | }; then : |
---|
| 1984 | ac_retval=0 |
---|
| 1985 | else |
---|
| 1986 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 1987 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1988 | |
---|
| 1989 | ac_retval=1 |
---|
| 1990 | fi |
---|
| 1991 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
| 1992 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
| 1993 | # interfere with the next link command; also delete a directory that is |
---|
| 1994 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
| 1995 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
| 1996 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 1997 | as_fn_set_status $ac_retval |
---|
| 1998 | |
---|
| 1999 | } # ac_fn_cxx_try_link |
---|
| 2000 | |
---|
| 2001 | # ac_fn_cxx_check_func LINENO FUNC VAR |
---|
| 2002 | # ------------------------------------ |
---|
| 2003 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
| 2004 | ac_fn_cxx_check_func () |
---|
| 2005 | { |
---|
| 2006 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 2007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
| 2008 | $as_echo_n "checking for $2... " >&6; } |
---|
| 2009 | if eval \${$3+:} false; then : |
---|
| 2010 | $as_echo_n "(cached) " >&6 |
---|
| 2011 | else |
---|
| 2012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 2013 | /* end confdefs.h. */ |
---|
| 2014 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
| 2015 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 2016 | #define $2 innocuous_$2 |
---|
| 2017 | |
---|
| 2018 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 2019 | which can conflict with char $2 (); below. |
---|
| 2020 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 2021 | <limits.h> exists even on freestanding compilers. */ |
---|
| 2022 | |
---|
| 2023 | #ifdef __STDC__ |
---|
| 2024 | # include <limits.h> |
---|
| 2025 | #else |
---|
| 2026 | # include <assert.h> |
---|
| 2027 | #endif |
---|
| 2028 | |
---|
| 2029 | #undef $2 |
---|
| 2030 | |
---|
| 2031 | /* Override any GCC internal prototype to avoid an error. |
---|
| 2032 | Use char because int might match the return type of a GCC |
---|
| 2033 | builtin and then its argument prototype would still apply. */ |
---|
| 2034 | #ifdef __cplusplus |
---|
| 2035 | extern "C" |
---|
| 2036 | #endif |
---|
| 2037 | char $2 (); |
---|
| 2038 | /* The GNU C library defines this for functions which it implements |
---|
| 2039 | to always fail with ENOSYS. Some functions are actually named |
---|
| 2040 | something starting with __ and the normal name is an alias. */ |
---|
| 2041 | #if defined __stub_$2 || defined __stub___$2 |
---|
| 2042 | choke me |
---|
| 2043 | #endif |
---|
| 2044 | |
---|
| 2045 | int |
---|
| 2046 | main () |
---|
| 2047 | { |
---|
| 2048 | return $2 (); |
---|
| 2049 | ; |
---|
| 2050 | return 0; |
---|
| 2051 | } |
---|
| 2052 | _ACEOF |
---|
| 2053 | if ac_fn_cxx_try_link "$LINENO"; then : |
---|
| 2054 | eval "$3=yes" |
---|
| 2055 | else |
---|
| 2056 | eval "$3=no" |
---|
| 2057 | fi |
---|
| 2058 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 2059 | conftest$ac_exeext conftest.$ac_ext |
---|
| 2060 | fi |
---|
| 2061 | eval ac_res=\$$3 |
---|
| 2062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
| 2063 | $as_echo "$ac_res" >&6; } |
---|
| 2064 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
| 2065 | |
---|
| 2066 | } # ac_fn_cxx_check_func |
---|
| 2067 | cat >config.log <<_ACEOF |
---|
| 2068 | This file contains any messages produced by compilers while |
---|
| 2069 | running configure, to aid debugging if configure makes a mistake. |
---|
| 2070 | |
---|
| 2071 | It was created by nanoscale $as_me 0.1, which was |
---|
| 2072 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
| 2073 | |
---|
| 2074 | $ $0 $@ |
---|
| 2075 | |
---|
| 2076 | _ACEOF |
---|
| 2077 | exec 5>>config.log |
---|
| 2078 | { |
---|
| 2079 | cat <<_ASUNAME |
---|
| 2080 | ## --------- ## |
---|
| 2081 | ## Platform. ## |
---|
| 2082 | ## --------- ## |
---|
| 2083 | |
---|
| 2084 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 2085 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 2086 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 2087 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 2088 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 2089 | |
---|
| 2090 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 2091 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 2092 | |
---|
| 2093 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 2094 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 2095 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 2096 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
| 2097 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 2098 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 2099 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 2100 | |
---|
| 2101 | _ASUNAME |
---|
| 2102 | |
---|
| 2103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2104 | for as_dir in $PATH |
---|
| 2105 | do |
---|
| 2106 | IFS=$as_save_IFS |
---|
| 2107 | test -z "$as_dir" && as_dir=. |
---|
| 2108 | $as_echo "PATH: $as_dir" |
---|
| 2109 | done |
---|
| 2110 | IFS=$as_save_IFS |
---|
| 2111 | |
---|
| 2112 | } >&5 |
---|
| 2113 | |
---|
| 2114 | cat >&5 <<_ACEOF |
---|
| 2115 | |
---|
| 2116 | |
---|
| 2117 | ## ----------- ## |
---|
| 2118 | ## Core tests. ## |
---|
| 2119 | ## ----------- ## |
---|
| 2120 | |
---|
| 2121 | _ACEOF |
---|
| 2122 | |
---|
| 2123 | |
---|
| 2124 | # Keep a trace of the command line. |
---|
| 2125 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 2126 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 2127 | # Also quote any args containing shell meta-characters. |
---|
| 2128 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 2129 | ac_configure_args= |
---|
| 2130 | ac_configure_args0= |
---|
| 2131 | ac_configure_args1= |
---|
| 2132 | ac_must_keep_next=false |
---|
| 2133 | for ac_pass in 1 2 |
---|
| 2134 | do |
---|
| 2135 | for ac_arg |
---|
| 2136 | do |
---|
| 2137 | case $ac_arg in |
---|
| 2138 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 2139 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 2140 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 2141 | continue ;; |
---|
| 2142 | *\'*) |
---|
| 2143 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 2144 | esac |
---|
| 2145 | case $ac_pass in |
---|
| 2146 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
| 2147 | 2) |
---|
| 2148 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
| 2149 | if test $ac_must_keep_next = true; then |
---|
| 2150 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 2151 | else |
---|
| 2152 | case $ac_arg in |
---|
| 2153 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 2154 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 2155 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 2156 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 2157 | case "$ac_configure_args0 " in |
---|
| 2158 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 2159 | esac |
---|
| 2160 | ;; |
---|
| 2161 | -* ) ac_must_keep_next=true ;; |
---|
| 2162 | esac |
---|
| 2163 | fi |
---|
| 2164 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
| 2165 | ;; |
---|
| 2166 | esac |
---|
| 2167 | done |
---|
| 2168 | done |
---|
| 2169 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
| 2170 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
| 2171 | |
---|
| 2172 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 2173 | # config.log. We remove comments because anyway the quotes in there |
---|
| 2174 | # would cause problems or look ugly. |
---|
| 2175 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
| 2176 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
| 2177 | trap 'exit_status=$? |
---|
| 2178 | # Save into config.log some information that might help in debugging. |
---|
| 2179 | { |
---|
| 2180 | echo |
---|
| 2181 | |
---|
| 2182 | $as_echo "## ---------------- ## |
---|
| 2183 | ## Cache variables. ## |
---|
| 2184 | ## ---------------- ##" |
---|
| 2185 | echo |
---|
| 2186 | # The following way of writing the cache mishandles newlines in values, |
---|
| 2187 | ( |
---|
| 2188 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
| 2189 | eval ac_val=\$$ac_var |
---|
| 2190 | case $ac_val in #( |
---|
| 2191 | *${as_nl}*) |
---|
| 2192 | case $ac_var in #( |
---|
| 2193 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
| 2194 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
| 2195 | esac |
---|
| 2196 | case $ac_var in #( |
---|
| 2197 | _ | IFS | as_nl) ;; #( |
---|
| 2198 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
| 2199 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
| 2200 | esac ;; |
---|
| 2201 | esac |
---|
| 2202 | done |
---|
| 2203 | (set) 2>&1 | |
---|
| 2204 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
| 2205 | *${as_nl}ac_space=\ *) |
---|
| 2206 | sed -n \ |
---|
| 2207 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
| 2208 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
| 2209 | ;; #( |
---|
| 2210 | *) |
---|
| 2211 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
| 2212 | ;; |
---|
| 2213 | esac | |
---|
| 2214 | sort |
---|
| 2215 | ) |
---|
| 2216 | echo |
---|
| 2217 | |
---|
| 2218 | $as_echo "## ----------------- ## |
---|
| 2219 | ## Output variables. ## |
---|
| 2220 | ## ----------------- ##" |
---|
| 2221 | echo |
---|
| 2222 | for ac_var in $ac_subst_vars |
---|
| 2223 | do |
---|
| 2224 | eval ac_val=\$$ac_var |
---|
| 2225 | case $ac_val in |
---|
| 2226 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
| 2227 | esac |
---|
| 2228 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
| 2229 | done | sort |
---|
| 2230 | echo |
---|
| 2231 | |
---|
| 2232 | if test -n "$ac_subst_files"; then |
---|
| 2233 | $as_echo "## ------------------- ## |
---|
| 2234 | ## File substitutions. ## |
---|
| 2235 | ## ------------------- ##" |
---|
| 2236 | echo |
---|
| 2237 | for ac_var in $ac_subst_files |
---|
| 2238 | do |
---|
| 2239 | eval ac_val=\$$ac_var |
---|
| 2240 | case $ac_val in |
---|
| 2241 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
| 2242 | esac |
---|
| 2243 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
| 2244 | done | sort |
---|
| 2245 | echo |
---|
| 2246 | fi |
---|
| 2247 | |
---|
| 2248 | if test -s confdefs.h; then |
---|
| 2249 | $as_echo "## ----------- ## |
---|
| 2250 | ## confdefs.h. ## |
---|
| 2251 | ## ----------- ##" |
---|
| 2252 | echo |
---|
| 2253 | cat confdefs.h |
---|
| 2254 | echo |
---|
| 2255 | fi |
---|
| 2256 | test "$ac_signal" != 0 && |
---|
| 2257 | $as_echo "$as_me: caught signal $ac_signal" |
---|
| 2258 | $as_echo "$as_me: exit $exit_status" |
---|
| 2259 | } >&5 |
---|
| 2260 | rm -f core *.core core.conftest.* && |
---|
| 2261 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 2262 | exit $exit_status |
---|
| 2263 | ' 0 |
---|
| 2264 | for ac_signal in 1 2 13 15; do |
---|
| 2265 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
| 2266 | done |
---|
| 2267 | ac_signal=0 |
---|
| 2268 | |
---|
| 2269 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 2270 | rm -f -r conftest* confdefs.h |
---|
| 2271 | |
---|
| 2272 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
| 2273 | |
---|
| 2274 | # Predefined preprocessor variables. |
---|
| 2275 | |
---|
| 2276 | cat >>confdefs.h <<_ACEOF |
---|
| 2277 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 2278 | _ACEOF |
---|
| 2279 | |
---|
| 2280 | cat >>confdefs.h <<_ACEOF |
---|
| 2281 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 2282 | _ACEOF |
---|
| 2283 | |
---|
| 2284 | cat >>confdefs.h <<_ACEOF |
---|
| 2285 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 2286 | _ACEOF |
---|
| 2287 | |
---|
| 2288 | cat >>confdefs.h <<_ACEOF |
---|
| 2289 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 2290 | _ACEOF |
---|
| 2291 | |
---|
| 2292 | cat >>confdefs.h <<_ACEOF |
---|
| 2293 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 2294 | _ACEOF |
---|
| 2295 | |
---|
| 2296 | cat >>confdefs.h <<_ACEOF |
---|
| 2297 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
| 2298 | _ACEOF |
---|
| 2299 | |
---|
| 2300 | |
---|
| 2301 | # Let the site file select an alternate cache file if it wants to. |
---|
| 2302 | # Prefer an explicitly selected file to automatically selected ones. |
---|
| 2303 | ac_site_file1=NONE |
---|
| 2304 | ac_site_file2=NONE |
---|
| 2305 | if test -n "$CONFIG_SITE"; then |
---|
| 2306 | # We do not want a PATH search for config.site. |
---|
| 2307 | case $CONFIG_SITE in #(( |
---|
| 2308 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
| 2309 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
| 2310 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
| 2311 | esac |
---|
| 2312 | elif test "x$prefix" != xNONE; then |
---|
| 2313 | ac_site_file1=$prefix/share/config.site |
---|
| 2314 | ac_site_file2=$prefix/etc/config.site |
---|
| 2315 | else |
---|
| 2316 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
| 2317 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
| 2318 | fi |
---|
| 2319 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
| 2320 | do |
---|
| 2321 | test "x$ac_site_file" = xNONE && continue |
---|
| 2322 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
| 2323 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
| 2324 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 2325 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 2326 | . "$ac_site_file" \ |
---|
| 2327 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2328 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2329 | as_fn_error $? "failed to load site script $ac_site_file |
---|
| 2330 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 2331 | fi |
---|
| 2332 | done |
---|
| 2333 | |
---|
| 2334 | if test -r "$cache_file"; then |
---|
| 2335 | # Some versions of bash will fail to source /dev/null (special files |
---|
| 2336 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
| 2337 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
| 2338 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
| 2339 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 2340 | case $cache_file in |
---|
| 2341 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
| 2342 | *) . "./$cache_file";; |
---|
| 2343 | esac |
---|
| 2344 | fi |
---|
| 2345 | else |
---|
| 2346 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
| 2347 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 2348 | >$cache_file |
---|
| 2349 | fi |
---|
| 2350 | |
---|
| 2351 | # Check that the precious variables saved in the cache have kept the same |
---|
| 2352 | # value. |
---|
| 2353 | ac_cache_corrupted=false |
---|
| 2354 | for ac_var in $ac_precious_vars; do |
---|
| 2355 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 2356 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 2357 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
| 2358 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
| 2359 | case $ac_old_set,$ac_new_set in |
---|
| 2360 | set,) |
---|
| 2361 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 2362 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 2363 | ac_cache_corrupted=: ;; |
---|
| 2364 | ,set) |
---|
| 2365 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 2366 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 2367 | ac_cache_corrupted=: ;; |
---|
| 2368 | ,);; |
---|
| 2369 | *) |
---|
| 2370 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 2371 | # differences in whitespace do not lead to failure. |
---|
| 2372 | ac_old_val_w=`echo x $ac_old_val` |
---|
| 2373 | ac_new_val_w=`echo x $ac_new_val` |
---|
| 2374 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
| 2375 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 2376 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 2377 | ac_cache_corrupted=: |
---|
| 2378 | else |
---|
| 2379 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
| 2380 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
| 2381 | eval $ac_var=\$ac_old_val |
---|
| 2382 | fi |
---|
| 2383 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
| 2384 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
| 2385 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
| 2386 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
| 2387 | fi;; |
---|
| 2388 | esac |
---|
| 2389 | # Pass precious variables to config.status. |
---|
| 2390 | if test "$ac_new_set" = set; then |
---|
| 2391 | case $ac_new_val in |
---|
| 2392 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 2393 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 2394 | esac |
---|
| 2395 | case " $ac_configure_args " in |
---|
| 2396 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 2397 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
| 2398 | esac |
---|
| 2399 | fi |
---|
| 2400 | done |
---|
| 2401 | if $ac_cache_corrupted; then |
---|
| 2402 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2403 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2404 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
| 2405 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 2406 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
| 2407 | fi |
---|
| 2408 | ## -------------------- ## |
---|
| 2409 | ## Main body of script. ## |
---|
| 2410 | ## -------------------- ## |
---|
| 2411 | |
---|
| 2412 | ac_ext=c |
---|
| 2413 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2414 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2415 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2416 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2417 | |
---|
| 2418 | |
---|
| 2419 | ac_aux_dir= |
---|
| 2420 | for ac_dir in cf "$srcdir"/cf; do |
---|
| 2421 | if test -f "$ac_dir/install-sh"; then |
---|
| 2422 | ac_aux_dir=$ac_dir |
---|
| 2423 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 2424 | break |
---|
| 2425 | elif test -f "$ac_dir/install.sh"; then |
---|
| 2426 | ac_aux_dir=$ac_dir |
---|
| 2427 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 2428 | break |
---|
| 2429 | elif test -f "$ac_dir/shtool"; then |
---|
| 2430 | ac_aux_dir=$ac_dir |
---|
| 2431 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 2432 | break |
---|
| 2433 | fi |
---|
| 2434 | done |
---|
| 2435 | if test -z "$ac_aux_dir"; then |
---|
| 2436 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5 |
---|
| 2437 | fi |
---|
| 2438 | |
---|
| 2439 | # These three variables are undocumented and unsupported, |
---|
| 2440 | # and are intended to be withdrawn in a future Autoconf release. |
---|
| 2441 | # They can cause serious problems if a builder's source tree is in a directory |
---|
| 2442 | # whose full name contains unusual characters. |
---|
| 2443 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
| 2444 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
| 2445 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
| 2446 | |
---|
| 2447 | |
---|
| 2448 | ac_config_headers="$ac_config_headers config.h" |
---|
| 2449 | |
---|
| 2450 | |
---|
| 2451 | |
---|
| 2452 | # Check whether --with-tcllib was given. |
---|
| 2453 | if test "${with_tcllib+set}" = set; then : |
---|
| 2454 | withval=$with_tcllib; with_tcllib=$withval |
---|
| 2455 | else |
---|
| 2456 | with_tcllib="" |
---|
| 2457 | fi |
---|
| 2458 | |
---|
| 2459 | |
---|
| 2460 | |
---|
| 2461 | # Check whether --with-statsdir was given. |
---|
| 2462 | if test "${with_statsdir+set}" = set; then : |
---|
| 2463 | withval=$with_statsdir; STATSDIR=$withval |
---|
| 2464 | else |
---|
| 2465 | STATSDIR="/var/tmp/visservers" |
---|
| 2466 | fi |
---|
| 2467 | |
---|
| 2468 | |
---|
| 2469 | |
---|
| 2470 | # Check whether --with-logdir was given. |
---|
| 2471 | if test "${with_logdir+set}" = set; then : |
---|
| 2472 | withval=$with_logdir; LOGDIR=$withval |
---|
| 2473 | else |
---|
| 2474 | LOGDIR="/tmp" |
---|
| 2475 | fi |
---|
| 2476 | |
---|
| 2477 | |
---|
| 2478 | #------------------------------------------------------------------------ |
---|
| 2479 | # Handle the --prefix=... option |
---|
| 2480 | #------------------------------------------------------------------------ |
---|
| 2481 | |
---|
| 2482 | if test "${prefix}" = "NONE"; then |
---|
| 2483 | prefix=/usr/local |
---|
| 2484 | fi |
---|
| 2485 | if test "${exec_prefix}" = "NONE"; then |
---|
| 2486 | exec_prefix=$prefix |
---|
| 2487 | fi |
---|
| 2488 | |
---|
| 2489 | if test "x${incdir}" == "x"; then |
---|
| 2490 | incdir=${exec_prefix}/include |
---|
| 2491 | fi |
---|
| 2492 | libdir=${exec_prefix}/lib |
---|
| 2493 | |
---|
| 2494 | if test "${libdir}" != "${prefix}/lib"; then |
---|
| 2495 | LIB_SEARCH_DIRS="-L ${prefix}/lib -L ${libdir}" |
---|
| 2496 | else |
---|
| 2497 | LIB_SEARCH_DIRS="-L ${libdir}" |
---|
| 2498 | fi |
---|
| 2499 | |
---|
| 2500 | ac_ext=c |
---|
| 2501 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2502 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2503 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2504 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2505 | if test -n "$ac_tool_prefix"; then |
---|
| 2506 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2507 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2509 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2510 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 2511 | $as_echo_n "(cached) " >&6 |
---|
| 2512 | else |
---|
| 2513 | if test -n "$CC"; then |
---|
| 2514 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2515 | else |
---|
| 2516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2517 | for as_dir in $PATH |
---|
| 2518 | do |
---|
| 2519 | IFS=$as_save_IFS |
---|
| 2520 | test -z "$as_dir" && as_dir=. |
---|
| 2521 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2522 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2523 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2525 | break 2 |
---|
| 2526 | fi |
---|
| 2527 | done |
---|
| 2528 | done |
---|
| 2529 | IFS=$as_save_IFS |
---|
| 2530 | |
---|
| 2531 | fi |
---|
| 2532 | fi |
---|
| 2533 | CC=$ac_cv_prog_CC |
---|
| 2534 | if test -n "$CC"; then |
---|
| 2535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 2536 | $as_echo "$CC" >&6; } |
---|
| 2537 | else |
---|
| 2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2539 | $as_echo "no" >&6; } |
---|
| 2540 | fi |
---|
| 2541 | |
---|
| 2542 | |
---|
| 2543 | fi |
---|
| 2544 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2545 | ac_ct_CC=$CC |
---|
| 2546 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2547 | set dummy gcc; ac_word=$2 |
---|
| 2548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2549 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2550 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
| 2551 | $as_echo_n "(cached) " >&6 |
---|
| 2552 | else |
---|
| 2553 | if test -n "$ac_ct_CC"; then |
---|
| 2554 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2555 | else |
---|
| 2556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2557 | for as_dir in $PATH |
---|
| 2558 | do |
---|
| 2559 | IFS=$as_save_IFS |
---|
| 2560 | test -z "$as_dir" && as_dir=. |
---|
| 2561 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2562 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2563 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2565 | break 2 |
---|
| 2566 | fi |
---|
| 2567 | done |
---|
| 2568 | done |
---|
| 2569 | IFS=$as_save_IFS |
---|
| 2570 | |
---|
| 2571 | fi |
---|
| 2572 | fi |
---|
| 2573 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2574 | if test -n "$ac_ct_CC"; then |
---|
| 2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
| 2576 | $as_echo "$ac_ct_CC" >&6; } |
---|
| 2577 | else |
---|
| 2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2579 | $as_echo "no" >&6; } |
---|
| 2580 | fi |
---|
| 2581 | |
---|
| 2582 | if test "x$ac_ct_CC" = x; then |
---|
| 2583 | CC="" |
---|
| 2584 | else |
---|
| 2585 | case $cross_compiling:$ac_tool_warned in |
---|
| 2586 | yes:) |
---|
| 2587 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 2588 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 2589 | ac_tool_warned=yes ;; |
---|
| 2590 | esac |
---|
| 2591 | CC=$ac_ct_CC |
---|
| 2592 | fi |
---|
| 2593 | else |
---|
| 2594 | CC="$ac_cv_prog_CC" |
---|
| 2595 | fi |
---|
| 2596 | |
---|
| 2597 | if test -z "$CC"; then |
---|
| 2598 | if test -n "$ac_tool_prefix"; then |
---|
| 2599 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2600 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2602 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2603 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 2604 | $as_echo_n "(cached) " >&6 |
---|
| 2605 | else |
---|
| 2606 | if test -n "$CC"; then |
---|
| 2607 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2608 | else |
---|
| 2609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2610 | for as_dir in $PATH |
---|
| 2611 | do |
---|
| 2612 | IFS=$as_save_IFS |
---|
| 2613 | test -z "$as_dir" && as_dir=. |
---|
| 2614 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2615 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2616 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2617 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2618 | break 2 |
---|
| 2619 | fi |
---|
| 2620 | done |
---|
| 2621 | done |
---|
| 2622 | IFS=$as_save_IFS |
---|
| 2623 | |
---|
| 2624 | fi |
---|
| 2625 | fi |
---|
| 2626 | CC=$ac_cv_prog_CC |
---|
| 2627 | if test -n "$CC"; then |
---|
| 2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 2629 | $as_echo "$CC" >&6; } |
---|
| 2630 | else |
---|
| 2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2632 | $as_echo "no" >&6; } |
---|
| 2633 | fi |
---|
| 2634 | |
---|
| 2635 | |
---|
| 2636 | fi |
---|
| 2637 | fi |
---|
| 2638 | if test -z "$CC"; then |
---|
| 2639 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2640 | set dummy cc; ac_word=$2 |
---|
| 2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2642 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2643 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 2644 | $as_echo_n "(cached) " >&6 |
---|
| 2645 | else |
---|
| 2646 | if test -n "$CC"; then |
---|
| 2647 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2648 | else |
---|
| 2649 | ac_prog_rejected=no |
---|
| 2650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2651 | for as_dir in $PATH |
---|
| 2652 | do |
---|
| 2653 | IFS=$as_save_IFS |
---|
| 2654 | test -z "$as_dir" && as_dir=. |
---|
| 2655 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2656 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2657 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2658 | ac_prog_rejected=yes |
---|
| 2659 | continue |
---|
| 2660 | fi |
---|
| 2661 | ac_cv_prog_CC="cc" |
---|
| 2662 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2663 | break 2 |
---|
| 2664 | fi |
---|
| 2665 | done |
---|
| 2666 | done |
---|
| 2667 | IFS=$as_save_IFS |
---|
| 2668 | |
---|
| 2669 | if test $ac_prog_rejected = yes; then |
---|
| 2670 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2671 | set dummy $ac_cv_prog_CC |
---|
| 2672 | shift |
---|
| 2673 | if test $# != 0; then |
---|
| 2674 | # We chose a different compiler from the bogus one. |
---|
| 2675 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2676 | # first if we set CC to just the basename; use the full file name. |
---|
| 2677 | shift |
---|
| 2678 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2679 | fi |
---|
| 2680 | fi |
---|
| 2681 | fi |
---|
| 2682 | fi |
---|
| 2683 | CC=$ac_cv_prog_CC |
---|
| 2684 | if test -n "$CC"; then |
---|
| 2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 2686 | $as_echo "$CC" >&6; } |
---|
| 2687 | else |
---|
| 2688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2689 | $as_echo "no" >&6; } |
---|
| 2690 | fi |
---|
| 2691 | |
---|
| 2692 | |
---|
| 2693 | fi |
---|
| 2694 | if test -z "$CC"; then |
---|
| 2695 | if test -n "$ac_tool_prefix"; then |
---|
| 2696 | for ac_prog in cl.exe |
---|
| 2697 | do |
---|
| 2698 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2699 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2701 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2702 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 2703 | $as_echo_n "(cached) " >&6 |
---|
| 2704 | else |
---|
| 2705 | if test -n "$CC"; then |
---|
| 2706 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2707 | else |
---|
| 2708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2709 | for as_dir in $PATH |
---|
| 2710 | do |
---|
| 2711 | IFS=$as_save_IFS |
---|
| 2712 | test -z "$as_dir" && as_dir=. |
---|
| 2713 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2714 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2715 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2716 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2717 | break 2 |
---|
| 2718 | fi |
---|
| 2719 | done |
---|
| 2720 | done |
---|
| 2721 | IFS=$as_save_IFS |
---|
| 2722 | |
---|
| 2723 | fi |
---|
| 2724 | fi |
---|
| 2725 | CC=$ac_cv_prog_CC |
---|
| 2726 | if test -n "$CC"; then |
---|
| 2727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 2728 | $as_echo "$CC" >&6; } |
---|
| 2729 | else |
---|
| 2730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2731 | $as_echo "no" >&6; } |
---|
| 2732 | fi |
---|
| 2733 | |
---|
| 2734 | |
---|
| 2735 | test -n "$CC" && break |
---|
| 2736 | done |
---|
| 2737 | fi |
---|
| 2738 | if test -z "$CC"; then |
---|
| 2739 | ac_ct_CC=$CC |
---|
| 2740 | for ac_prog in cl.exe |
---|
| 2741 | do |
---|
| 2742 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2743 | set dummy $ac_prog; ac_word=$2 |
---|
| 2744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 2745 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 2746 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
| 2747 | $as_echo_n "(cached) " >&6 |
---|
| 2748 | else |
---|
| 2749 | if test -n "$ac_ct_CC"; then |
---|
| 2750 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2751 | else |
---|
| 2752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2753 | for as_dir in $PATH |
---|
| 2754 | do |
---|
| 2755 | IFS=$as_save_IFS |
---|
| 2756 | test -z "$as_dir" && as_dir=. |
---|
| 2757 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2758 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2759 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2761 | break 2 |
---|
| 2762 | fi |
---|
| 2763 | done |
---|
| 2764 | done |
---|
| 2765 | IFS=$as_save_IFS |
---|
| 2766 | |
---|
| 2767 | fi |
---|
| 2768 | fi |
---|
| 2769 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2770 | if test -n "$ac_ct_CC"; then |
---|
| 2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
| 2772 | $as_echo "$ac_ct_CC" >&6; } |
---|
| 2773 | else |
---|
| 2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2775 | $as_echo "no" >&6; } |
---|
| 2776 | fi |
---|
| 2777 | |
---|
| 2778 | |
---|
| 2779 | test -n "$ac_ct_CC" && break |
---|
| 2780 | done |
---|
| 2781 | |
---|
| 2782 | if test "x$ac_ct_CC" = x; then |
---|
| 2783 | CC="" |
---|
| 2784 | else |
---|
| 2785 | case $cross_compiling:$ac_tool_warned in |
---|
| 2786 | yes:) |
---|
| 2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 2788 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 2789 | ac_tool_warned=yes ;; |
---|
| 2790 | esac |
---|
| 2791 | CC=$ac_ct_CC |
---|
| 2792 | fi |
---|
| 2793 | fi |
---|
| 2794 | |
---|
| 2795 | fi |
---|
| 2796 | |
---|
| 2797 | |
---|
| 2798 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2799 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2800 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
| 2801 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 2802 | |
---|
| 2803 | # Provide some information about the compiler. |
---|
| 2804 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
| 2805 | set X $ac_compile |
---|
| 2806 | ac_compiler=$2 |
---|
| 2807 | for ac_option in --version -v -V -qversion; do |
---|
| 2808 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
| 2809 | case "(($ac_try" in |
---|
| 2810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2811 | *) ac_try_echo=$ac_try;; |
---|
| 2812 | esac |
---|
| 2813 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2814 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 2815 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
| 2816 | ac_status=$? |
---|
| 2817 | if test -s conftest.err; then |
---|
| 2818 | sed '10a\ |
---|
| 2819 | ... rest of stderr output deleted ... |
---|
| 2820 | 10q' conftest.err >conftest.er1 |
---|
| 2821 | cat conftest.er1 >&5 |
---|
| 2822 | fi |
---|
| 2823 | rm -f conftest.er1 conftest.err |
---|
| 2824 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2825 | test $ac_status = 0; } |
---|
| 2826 | done |
---|
| 2827 | |
---|
| 2828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 2829 | /* end confdefs.h. */ |
---|
| 2830 | |
---|
| 2831 | int |
---|
| 2832 | main () |
---|
| 2833 | { |
---|
| 2834 | |
---|
| 2835 | ; |
---|
| 2836 | return 0; |
---|
| 2837 | } |
---|
| 2838 | _ACEOF |
---|
| 2839 | ac_clean_files_save=$ac_clean_files |
---|
| 2840 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
| 2841 | # Try to create an executable without -o first, disregard a.out. |
---|
| 2842 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 2843 | # of exeext. |
---|
| 2844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
---|
| 2845 | $as_echo_n "checking whether the C compiler works... " >&6; } |
---|
| 2846 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 2847 | |
---|
| 2848 | # The possible output files: |
---|
| 2849 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
| 2850 | |
---|
| 2851 | ac_rmfiles= |
---|
| 2852 | for ac_file in $ac_files |
---|
| 2853 | do |
---|
| 2854 | case $ac_file in |
---|
| 2855 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
| 2856 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
| 2857 | esac |
---|
| 2858 | done |
---|
| 2859 | rm -f $ac_rmfiles |
---|
| 2860 | |
---|
| 2861 | if { { ac_try="$ac_link_default" |
---|
| 2862 | case "(($ac_try" in |
---|
| 2863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2864 | *) ac_try_echo=$ac_try;; |
---|
| 2865 | esac |
---|
| 2866 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2867 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 2868 | (eval "$ac_link_default") 2>&5 |
---|
| 2869 | ac_status=$? |
---|
| 2870 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2871 | test $ac_status = 0; }; then : |
---|
| 2872 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
| 2873 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
| 2874 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
| 2875 | # so that the user can short-circuit this test for compilers unknown to |
---|
| 2876 | # Autoconf. |
---|
| 2877 | for ac_file in $ac_files '' |
---|
| 2878 | do |
---|
| 2879 | test -f "$ac_file" || continue |
---|
| 2880 | case $ac_file in |
---|
| 2881 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
| 2882 | ;; |
---|
| 2883 | [ab].out ) |
---|
| 2884 | # We found the default executable, but exeext='' is most |
---|
| 2885 | # certainly right. |
---|
| 2886 | break;; |
---|
| 2887 | *.* ) |
---|
| 2888 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
| 2889 | then :; else |
---|
| 2890 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2891 | fi |
---|
| 2892 | # We set ac_cv_exeext here because the later test for it is not |
---|
| 2893 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
| 2894 | # argument, so we may need to know it at that point already. |
---|
| 2895 | # Even if this section looks crufty: it has the advantage of |
---|
| 2896 | # actually working. |
---|
| 2897 | break;; |
---|
| 2898 | * ) |
---|
| 2899 | break;; |
---|
| 2900 | esac |
---|
| 2901 | done |
---|
| 2902 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
| 2903 | |
---|
| 2904 | else |
---|
| 2905 | ac_file='' |
---|
| 2906 | fi |
---|
| 2907 | if test -z "$ac_file"; then : |
---|
| 2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 2909 | $as_echo "no" >&6; } |
---|
| 2910 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 2911 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2912 | |
---|
| 2913 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2914 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2915 | as_fn_error 77 "C compiler cannot create executables |
---|
| 2916 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 2917 | else |
---|
| 2918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
| 2919 | $as_echo "yes" >&6; } |
---|
| 2920 | fi |
---|
| 2921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
---|
| 2922 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
---|
| 2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
| 2924 | $as_echo "$ac_file" >&6; } |
---|
| 2925 | ac_exeext=$ac_cv_exeext |
---|
| 2926 | |
---|
| 2927 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
| 2928 | ac_clean_files=$ac_clean_files_save |
---|
| 2929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
| 2930 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
| 2931 | if { { ac_try="$ac_link" |
---|
| 2932 | case "(($ac_try" in |
---|
| 2933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2934 | *) ac_try_echo=$ac_try;; |
---|
| 2935 | esac |
---|
| 2936 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2937 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 2938 | (eval "$ac_link") 2>&5 |
---|
| 2939 | ac_status=$? |
---|
| 2940 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2941 | test $ac_status = 0; }; then : |
---|
| 2942 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2943 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2944 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2945 | # `rm'. |
---|
| 2946 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2947 | test -f "$ac_file" || continue |
---|
| 2948 | case $ac_file in |
---|
| 2949 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
| 2950 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2951 | break;; |
---|
| 2952 | * ) break;; |
---|
| 2953 | esac |
---|
| 2954 | done |
---|
| 2955 | else |
---|
| 2956 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 2957 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 2958 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
| 2959 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 2960 | fi |
---|
| 2961 | rm -f conftest conftest$ac_cv_exeext |
---|
| 2962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
| 2963 | $as_echo "$ac_cv_exeext" >&6; } |
---|
| 2964 | |
---|
| 2965 | rm -f conftest.$ac_ext |
---|
| 2966 | EXEEXT=$ac_cv_exeext |
---|
| 2967 | ac_exeext=$EXEEXT |
---|
| 2968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 2969 | /* end confdefs.h. */ |
---|
| 2970 | #include <stdio.h> |
---|
| 2971 | int |
---|
| 2972 | main () |
---|
| 2973 | { |
---|
| 2974 | FILE *f = fopen ("conftest.out", "w"); |
---|
| 2975 | return ferror (f) || fclose (f) != 0; |
---|
| 2976 | |
---|
| 2977 | ; |
---|
| 2978 | return 0; |
---|
| 2979 | } |
---|
| 2980 | _ACEOF |
---|
| 2981 | ac_clean_files="$ac_clean_files conftest.out" |
---|
| 2982 | # Check that the compiler produces executables we can run. If not, either |
---|
| 2983 | # the compiler is broken, or we cross compile. |
---|
| 2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
| 2985 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
| 2986 | if test "$cross_compiling" != yes; then |
---|
| 2987 | { { ac_try="$ac_link" |
---|
| 2988 | case "(($ac_try" in |
---|
| 2989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2990 | *) ac_try_echo=$ac_try;; |
---|
| 2991 | esac |
---|
| 2992 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 2993 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 2994 | (eval "$ac_link") 2>&5 |
---|
| 2995 | ac_status=$? |
---|
| 2996 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 2997 | test $ac_status = 0; } |
---|
| 2998 | if { ac_try='./conftest$ac_cv_exeext' |
---|
| 2999 | { { case "(($ac_try" in |
---|
| 3000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3001 | *) ac_try_echo=$ac_try;; |
---|
| 3002 | esac |
---|
| 3003 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 3004 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 3005 | (eval "$ac_try") 2>&5 |
---|
| 3006 | ac_status=$? |
---|
| 3007 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 3008 | test $ac_status = 0; }; }; then |
---|
| 3009 | cross_compiling=no |
---|
| 3010 | else |
---|
| 3011 | if test "$cross_compiling" = maybe; then |
---|
| 3012 | cross_compiling=yes |
---|
| 3013 | else |
---|
| 3014 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 3015 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 3016 | as_fn_error $? "cannot run C compiled programs. |
---|
| 3017 | If you meant to cross compile, use \`--host'. |
---|
| 3018 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 3019 | fi |
---|
| 3020 | fi |
---|
| 3021 | fi |
---|
| 3022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
| 3023 | $as_echo "$cross_compiling" >&6; } |
---|
| 3024 | |
---|
| 3025 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
| 3026 | ac_clean_files=$ac_clean_files_save |
---|
| 3027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
| 3028 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
| 3029 | if ${ac_cv_objext+:} false; then : |
---|
| 3030 | $as_echo_n "(cached) " >&6 |
---|
| 3031 | else |
---|
| 3032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3033 | /* end confdefs.h. */ |
---|
| 3034 | |
---|
| 3035 | int |
---|
| 3036 | main () |
---|
| 3037 | { |
---|
| 3038 | |
---|
| 3039 | ; |
---|
| 3040 | return 0; |
---|
| 3041 | } |
---|
| 3042 | _ACEOF |
---|
| 3043 | rm -f conftest.o conftest.obj |
---|
| 3044 | if { { ac_try="$ac_compile" |
---|
| 3045 | case "(($ac_try" in |
---|
| 3046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3047 | *) ac_try_echo=$ac_try;; |
---|
| 3048 | esac |
---|
| 3049 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 3050 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 3051 | (eval "$ac_compile") 2>&5 |
---|
| 3052 | ac_status=$? |
---|
| 3053 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 3054 | test $ac_status = 0; }; then : |
---|
| 3055 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
| 3056 | test -f "$ac_file" || continue; |
---|
| 3057 | case $ac_file in |
---|
| 3058 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
| 3059 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 3060 | break;; |
---|
| 3061 | esac |
---|
| 3062 | done |
---|
| 3063 | else |
---|
| 3064 | $as_echo "$as_me: failed program was:" >&5 |
---|
| 3065 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3066 | |
---|
| 3067 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 3068 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 3069 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
| 3070 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 3071 | fi |
---|
| 3072 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 3073 | fi |
---|
| 3074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
| 3075 | $as_echo "$ac_cv_objext" >&6; } |
---|
| 3076 | OBJEXT=$ac_cv_objext |
---|
| 3077 | ac_objext=$OBJEXT |
---|
| 3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
| 3079 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
| 3080 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
| 3081 | $as_echo_n "(cached) " >&6 |
---|
| 3082 | else |
---|
| 3083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3084 | /* end confdefs.h. */ |
---|
| 3085 | |
---|
| 3086 | int |
---|
| 3087 | main () |
---|
| 3088 | { |
---|
| 3089 | #ifndef __GNUC__ |
---|
| 3090 | choke me |
---|
| 3091 | #endif |
---|
| 3092 | |
---|
| 3093 | ; |
---|
| 3094 | return 0; |
---|
| 3095 | } |
---|
| 3096 | _ACEOF |
---|
| 3097 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 3098 | ac_compiler_gnu=yes |
---|
| 3099 | else |
---|
| 3100 | ac_compiler_gnu=no |
---|
| 3101 | fi |
---|
| 3102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3103 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 3104 | |
---|
| 3105 | fi |
---|
| 3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 3107 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
| 3108 | if test $ac_compiler_gnu = yes; then |
---|
| 3109 | GCC=yes |
---|
| 3110 | else |
---|
| 3111 | GCC= |
---|
| 3112 | fi |
---|
| 3113 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 3114 | ac_save_CFLAGS=$CFLAGS |
---|
| 3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
| 3116 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
| 3117 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
| 3118 | $as_echo_n "(cached) " >&6 |
---|
| 3119 | else |
---|
| 3120 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
| 3121 | ac_c_werror_flag=yes |
---|
| 3122 | ac_cv_prog_cc_g=no |
---|
| 3123 | CFLAGS="-g" |
---|
| 3124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3125 | /* end confdefs.h. */ |
---|
| 3126 | |
---|
| 3127 | int |
---|
| 3128 | main () |
---|
| 3129 | { |
---|
| 3130 | |
---|
| 3131 | ; |
---|
| 3132 | return 0; |
---|
| 3133 | } |
---|
| 3134 | _ACEOF |
---|
| 3135 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 3136 | ac_cv_prog_cc_g=yes |
---|
| 3137 | else |
---|
| 3138 | CFLAGS="" |
---|
| 3139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3140 | /* end confdefs.h. */ |
---|
| 3141 | |
---|
| 3142 | int |
---|
| 3143 | main () |
---|
| 3144 | { |
---|
| 3145 | |
---|
| 3146 | ; |
---|
| 3147 | return 0; |
---|
| 3148 | } |
---|
| 3149 | _ACEOF |
---|
| 3150 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 3151 | |
---|
| 3152 | else |
---|
| 3153 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 3154 | CFLAGS="-g" |
---|
| 3155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3156 | /* end confdefs.h. */ |
---|
| 3157 | |
---|
| 3158 | int |
---|
| 3159 | main () |
---|
| 3160 | { |
---|
| 3161 | |
---|
| 3162 | ; |
---|
| 3163 | return 0; |
---|
| 3164 | } |
---|
| 3165 | _ACEOF |
---|
| 3166 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 3167 | ac_cv_prog_cc_g=yes |
---|
| 3168 | fi |
---|
| 3169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3170 | fi |
---|
| 3171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3172 | fi |
---|
| 3173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3174 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 3175 | fi |
---|
| 3176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
| 3177 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
| 3178 | if test "$ac_test_CFLAGS" = set; then |
---|
| 3179 | CFLAGS=$ac_save_CFLAGS |
---|
| 3180 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 3181 | if test "$GCC" = yes; then |
---|
| 3182 | CFLAGS="-g -O2" |
---|
| 3183 | else |
---|
| 3184 | CFLAGS="-g" |
---|
| 3185 | fi |
---|
| 3186 | else |
---|
| 3187 | if test "$GCC" = yes; then |
---|
| 3188 | CFLAGS="-O2" |
---|
| 3189 | else |
---|
| 3190 | CFLAGS= |
---|
| 3191 | fi |
---|
| 3192 | fi |
---|
| 3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
| 3194 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
| 3195 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
| 3196 | $as_echo_n "(cached) " >&6 |
---|
| 3197 | else |
---|
| 3198 | ac_cv_prog_cc_c89=no |
---|
| 3199 | ac_save_CC=$CC |
---|
| 3200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3201 | /* end confdefs.h. */ |
---|
| 3202 | #include <stdarg.h> |
---|
| 3203 | #include <stdio.h> |
---|
| 3204 | struct stat; |
---|
| 3205 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 3206 | struct buf { int x; }; |
---|
| 3207 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 3208 | static char *e (p, i) |
---|
| 3209 | char **p; |
---|
| 3210 | int i; |
---|
| 3211 | { |
---|
| 3212 | return p[i]; |
---|
| 3213 | } |
---|
| 3214 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 3215 | { |
---|
| 3216 | char *s; |
---|
| 3217 | va_list v; |
---|
| 3218 | va_start (v,p); |
---|
| 3219 | s = g (p, va_arg (v,int)); |
---|
| 3220 | va_end (v); |
---|
| 3221 | return s; |
---|
| 3222 | } |
---|
| 3223 | |
---|
| 3224 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 3225 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 3226 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 3227 | as 'x'. The following induces an error, until -std is added to get |
---|
| 3228 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 3229 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 3230 | that's true only with -std. */ |
---|
| 3231 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 3232 | |
---|
| 3233 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
| 3234 | inside strings and character constants. */ |
---|
| 3235 | #define FOO(x) 'x' |
---|
| 3236 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
| 3237 | |
---|
| 3238 | int test (int i, double x); |
---|
| 3239 | struct s1 {int (*f) (int a);}; |
---|
| 3240 | struct s2 {int (*f) (double a);}; |
---|
| 3241 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3242 | int argc; |
---|
| 3243 | char **argv; |
---|
| 3244 | int |
---|
| 3245 | main () |
---|
| 3246 | { |
---|
| 3247 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3248 | ; |
---|
| 3249 | return 0; |
---|
| 3250 | } |
---|
| 3251 | _ACEOF |
---|
| 3252 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
| 3253 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3254 | do |
---|
| 3255 | CC="$ac_save_CC $ac_arg" |
---|
| 3256 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 3257 | ac_cv_prog_cc_c89=$ac_arg |
---|
| 3258 | fi |
---|
| 3259 | rm -f core conftest.err conftest.$ac_objext |
---|
| 3260 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
| 3261 | done |
---|
| 3262 | rm -f conftest.$ac_ext |
---|
| 3263 | CC=$ac_save_CC |
---|
| 3264 | |
---|
| 3265 | fi |
---|
| 3266 | # AC_CACHE_VAL |
---|
| 3267 | case "x$ac_cv_prog_cc_c89" in |
---|
| 3268 | x) |
---|
| 3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
| 3270 | $as_echo "none needed" >&6; } ;; |
---|
| 3271 | xno) |
---|
| 3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
| 3273 | $as_echo "unsupported" >&6; } ;; |
---|
| 3274 | *) |
---|
| 3275 | CC="$CC $ac_cv_prog_cc_c89" |
---|
| 3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
| 3277 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
| 3278 | esac |
---|
| 3279 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
| 3280 | |
---|
| 3281 | fi |
---|
| 3282 | |
---|
| 3283 | ac_ext=c |
---|
| 3284 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3285 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3286 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3287 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3288 | |
---|
| 3289 | |
---|
| 3290 | if test -n "$ac_tool_prefix"; then |
---|
| 3291 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 3292 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
| 3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3294 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3295 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
| 3296 | $as_echo_n "(cached) " >&6 |
---|
| 3297 | else |
---|
| 3298 | if test -n "$RANLIB"; then |
---|
| 3299 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 3300 | else |
---|
| 3301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3302 | for as_dir in $PATH |
---|
| 3303 | do |
---|
| 3304 | IFS=$as_save_IFS |
---|
| 3305 | test -z "$as_dir" && as_dir=. |
---|
| 3306 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3307 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3308 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
| 3309 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3310 | break 2 |
---|
| 3311 | fi |
---|
| 3312 | done |
---|
| 3313 | done |
---|
| 3314 | IFS=$as_save_IFS |
---|
| 3315 | |
---|
| 3316 | fi |
---|
| 3317 | fi |
---|
| 3318 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 3319 | if test -n "$RANLIB"; then |
---|
| 3320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
| 3321 | $as_echo "$RANLIB" >&6; } |
---|
| 3322 | else |
---|
| 3323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3324 | $as_echo "no" >&6; } |
---|
| 3325 | fi |
---|
| 3326 | |
---|
| 3327 | |
---|
| 3328 | fi |
---|
| 3329 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 3330 | ac_ct_RANLIB=$RANLIB |
---|
| 3331 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 3332 | set dummy ranlib; ac_word=$2 |
---|
| 3333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3334 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3335 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
| 3336 | $as_echo_n "(cached) " >&6 |
---|
| 3337 | else |
---|
| 3338 | if test -n "$ac_ct_RANLIB"; then |
---|
| 3339 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 3340 | else |
---|
| 3341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3342 | for as_dir in $PATH |
---|
| 3343 | do |
---|
| 3344 | IFS=$as_save_IFS |
---|
| 3345 | test -z "$as_dir" && as_dir=. |
---|
| 3346 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3347 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3348 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
| 3349 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3350 | break 2 |
---|
| 3351 | fi |
---|
| 3352 | done |
---|
| 3353 | done |
---|
| 3354 | IFS=$as_save_IFS |
---|
| 3355 | |
---|
| 3356 | fi |
---|
| 3357 | fi |
---|
| 3358 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 3359 | if test -n "$ac_ct_RANLIB"; then |
---|
| 3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
| 3361 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
| 3362 | else |
---|
| 3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3364 | $as_echo "no" >&6; } |
---|
| 3365 | fi |
---|
| 3366 | |
---|
| 3367 | if test "x$ac_ct_RANLIB" = x; then |
---|
| 3368 | RANLIB=":" |
---|
| 3369 | else |
---|
| 3370 | case $cross_compiling:$ac_tool_warned in |
---|
| 3371 | yes:) |
---|
| 3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 3373 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 3374 | ac_tool_warned=yes ;; |
---|
| 3375 | esac |
---|
| 3376 | RANLIB=$ac_ct_RANLIB |
---|
| 3377 | fi |
---|
| 3378 | else |
---|
| 3379 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 3380 | fi |
---|
| 3381 | |
---|
| 3382 | ac_ext=c |
---|
| 3383 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3384 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3385 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3386 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
| 3388 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
| 3389 | # On Suns, sometimes $CPP names a directory. |
---|
| 3390 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3391 | CPP= |
---|
| 3392 | fi |
---|
| 3393 | if test -z "$CPP"; then |
---|
| 3394 | if ${ac_cv_prog_CPP+:} false; then : |
---|
| 3395 | $as_echo_n "(cached) " >&6 |
---|
| 3396 | else |
---|
| 3397 | # Double quotes because CPP needs to be expanded |
---|
| 3398 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3399 | do |
---|
| 3400 | ac_preproc_ok=false |
---|
| 3401 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3402 | do |
---|
| 3403 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3404 | # with a fresh cross-compiler works. |
---|
| 3405 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3406 | # <limits.h> exists even on freestanding compilers. |
---|
| 3407 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3408 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3410 | /* end confdefs.h. */ |
---|
| 3411 | #ifdef __STDC__ |
---|
| 3412 | # include <limits.h> |
---|
| 3413 | #else |
---|
| 3414 | # include <assert.h> |
---|
| 3415 | #endif |
---|
| 3416 | Syntax error |
---|
| 3417 | _ACEOF |
---|
| 3418 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 3419 | |
---|
| 3420 | else |
---|
| 3421 | # Broken: fails on valid input. |
---|
| 3422 | continue |
---|
| 3423 | fi |
---|
| 3424 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 3425 | |
---|
| 3426 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
| 3427 | # can be detected and how. |
---|
| 3428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3429 | /* end confdefs.h. */ |
---|
| 3430 | #include <ac_nonexistent.h> |
---|
| 3431 | _ACEOF |
---|
| 3432 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 3433 | # Broken: success on invalid input. |
---|
| 3434 | continue |
---|
| 3435 | else |
---|
| 3436 | # Passes both tests. |
---|
| 3437 | ac_preproc_ok=: |
---|
| 3438 | break |
---|
| 3439 | fi |
---|
| 3440 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 3441 | |
---|
| 3442 | done |
---|
| 3443 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3444 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
| 3445 | if $ac_preproc_ok; then : |
---|
| 3446 | break |
---|
| 3447 | fi |
---|
| 3448 | |
---|
| 3449 | done |
---|
| 3450 | ac_cv_prog_CPP=$CPP |
---|
| 3451 | |
---|
| 3452 | fi |
---|
| 3453 | CPP=$ac_cv_prog_CPP |
---|
| 3454 | else |
---|
| 3455 | ac_cv_prog_CPP=$CPP |
---|
| 3456 | fi |
---|
| 3457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
| 3458 | $as_echo "$CPP" >&6; } |
---|
| 3459 | ac_preproc_ok=false |
---|
| 3460 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3461 | do |
---|
| 3462 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3463 | # with a fresh cross-compiler works. |
---|
| 3464 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3465 | # <limits.h> exists even on freestanding compilers. |
---|
| 3466 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3467 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3469 | /* end confdefs.h. */ |
---|
| 3470 | #ifdef __STDC__ |
---|
| 3471 | # include <limits.h> |
---|
| 3472 | #else |
---|
| 3473 | # include <assert.h> |
---|
| 3474 | #endif |
---|
| 3475 | Syntax error |
---|
| 3476 | _ACEOF |
---|
| 3477 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 3478 | |
---|
| 3479 | else |
---|
| 3480 | # Broken: fails on valid input. |
---|
| 3481 | continue |
---|
| 3482 | fi |
---|
| 3483 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 3484 | |
---|
| 3485 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
| 3486 | # can be detected and how. |
---|
| 3487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3488 | /* end confdefs.h. */ |
---|
| 3489 | #include <ac_nonexistent.h> |
---|
| 3490 | _ACEOF |
---|
| 3491 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 3492 | # Broken: success on invalid input. |
---|
| 3493 | continue |
---|
| 3494 | else |
---|
| 3495 | # Passes both tests. |
---|
| 3496 | ac_preproc_ok=: |
---|
| 3497 | break |
---|
| 3498 | fi |
---|
| 3499 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 3500 | |
---|
| 3501 | done |
---|
| 3502 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3503 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
| 3504 | if $ac_preproc_ok; then : |
---|
| 3505 | |
---|
| 3506 | else |
---|
| 3507 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 3508 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 3509 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
| 3510 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 3511 | fi |
---|
| 3512 | |
---|
| 3513 | ac_ext=c |
---|
| 3514 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3516 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3517 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3518 | |
---|
| 3519 | |
---|
| 3520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
| 3521 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
| 3522 | if ${ac_cv_path_GREP+:} false; then : |
---|
| 3523 | $as_echo_n "(cached) " >&6 |
---|
| 3524 | else |
---|
| 3525 | if test -z "$GREP"; then |
---|
| 3526 | ac_path_GREP_found=false |
---|
| 3527 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
| 3528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3529 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
| 3530 | do |
---|
| 3531 | IFS=$as_save_IFS |
---|
| 3532 | test -z "$as_dir" && as_dir=. |
---|
| 3533 | for ac_prog in grep ggrep; do |
---|
| 3534 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3535 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
| 3536 | as_fn_executable_p "$ac_path_GREP" || continue |
---|
| 3537 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
| 3538 | # Check for GNU $ac_path_GREP |
---|
| 3539 | case `"$ac_path_GREP" --version 2>&1` in |
---|
| 3540 | *GNU*) |
---|
| 3541 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
| 3542 | *) |
---|
| 3543 | ac_count=0 |
---|
| 3544 | $as_echo_n 0123456789 >"conftest.in" |
---|
| 3545 | while : |
---|
| 3546 | do |
---|
| 3547 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
| 3548 | mv "conftest.tmp" "conftest.in" |
---|
| 3549 | cp "conftest.in" "conftest.nl" |
---|
| 3550 | $as_echo 'GREP' >> "conftest.nl" |
---|
| 3551 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
| 3552 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
| 3553 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
| 3554 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
| 3555 | # Best one so far, save it but keep looking for a better one |
---|
| 3556 | ac_cv_path_GREP="$ac_path_GREP" |
---|
| 3557 | ac_path_GREP_max=$ac_count |
---|
| 3558 | fi |
---|
| 3559 | # 10*(2^10) chars as input seems more than enough |
---|
| 3560 | test $ac_count -gt 10 && break |
---|
| 3561 | done |
---|
| 3562 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
| 3563 | esac |
---|
| 3564 | |
---|
| 3565 | $ac_path_GREP_found && break 3 |
---|
| 3566 | done |
---|
| 3567 | done |
---|
| 3568 | done |
---|
| 3569 | IFS=$as_save_IFS |
---|
| 3570 | if test -z "$ac_cv_path_GREP"; then |
---|
| 3571 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
| 3572 | fi |
---|
| 3573 | else |
---|
| 3574 | ac_cv_path_GREP=$GREP |
---|
| 3575 | fi |
---|
| 3576 | |
---|
| 3577 | fi |
---|
| 3578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
| 3579 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
| 3580 | GREP="$ac_cv_path_GREP" |
---|
| 3581 | |
---|
| 3582 | |
---|
| 3583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
| 3584 | $as_echo_n "checking for egrep... " >&6; } |
---|
| 3585 | if ${ac_cv_path_EGREP+:} false; then : |
---|
| 3586 | $as_echo_n "(cached) " >&6 |
---|
| 3587 | else |
---|
| 3588 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
| 3589 | then ac_cv_path_EGREP="$GREP -E" |
---|
| 3590 | else |
---|
| 3591 | if test -z "$EGREP"; then |
---|
| 3592 | ac_path_EGREP_found=false |
---|
| 3593 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
| 3594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3595 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
| 3596 | do |
---|
| 3597 | IFS=$as_save_IFS |
---|
| 3598 | test -z "$as_dir" && as_dir=. |
---|
| 3599 | for ac_prog in egrep; do |
---|
| 3600 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3601 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
| 3602 | as_fn_executable_p "$ac_path_EGREP" || continue |
---|
| 3603 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
| 3604 | # Check for GNU $ac_path_EGREP |
---|
| 3605 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
| 3606 | *GNU*) |
---|
| 3607 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
| 3608 | *) |
---|
| 3609 | ac_count=0 |
---|
| 3610 | $as_echo_n 0123456789 >"conftest.in" |
---|
| 3611 | while : |
---|
| 3612 | do |
---|
| 3613 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
| 3614 | mv "conftest.tmp" "conftest.in" |
---|
| 3615 | cp "conftest.in" "conftest.nl" |
---|
| 3616 | $as_echo 'EGREP' >> "conftest.nl" |
---|
| 3617 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
| 3618 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
| 3619 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
| 3620 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
| 3621 | # Best one so far, save it but keep looking for a better one |
---|
| 3622 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
| 3623 | ac_path_EGREP_max=$ac_count |
---|
| 3624 | fi |
---|
| 3625 | # 10*(2^10) chars as input seems more than enough |
---|
| 3626 | test $ac_count -gt 10 && break |
---|
| 3627 | done |
---|
| 3628 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
| 3629 | esac |
---|
| 3630 | |
---|
| 3631 | $ac_path_EGREP_found && break 3 |
---|
| 3632 | done |
---|
| 3633 | done |
---|
| 3634 | done |
---|
| 3635 | IFS=$as_save_IFS |
---|
| 3636 | if test -z "$ac_cv_path_EGREP"; then |
---|
| 3637 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
| 3638 | fi |
---|
| 3639 | else |
---|
| 3640 | ac_cv_path_EGREP=$EGREP |
---|
| 3641 | fi |
---|
| 3642 | |
---|
| 3643 | fi |
---|
| 3644 | fi |
---|
| 3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
| 3646 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
| 3647 | EGREP="$ac_cv_path_EGREP" |
---|
| 3648 | |
---|
| 3649 | |
---|
| 3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
| 3651 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
| 3652 | if ${ac_cv_header_stdc+:} false; then : |
---|
| 3653 | $as_echo_n "(cached) " >&6 |
---|
| 3654 | else |
---|
| 3655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3656 | /* end confdefs.h. */ |
---|
| 3657 | #include <stdlib.h> |
---|
| 3658 | #include <stdarg.h> |
---|
| 3659 | #include <string.h> |
---|
| 3660 | #include <float.h> |
---|
| 3661 | |
---|
| 3662 | int |
---|
| 3663 | main () |
---|
| 3664 | { |
---|
| 3665 | |
---|
| 3666 | ; |
---|
| 3667 | return 0; |
---|
| 3668 | } |
---|
| 3669 | _ACEOF |
---|
| 3670 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 3671 | ac_cv_header_stdc=yes |
---|
| 3672 | else |
---|
| 3673 | ac_cv_header_stdc=no |
---|
| 3674 | fi |
---|
| 3675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3676 | |
---|
| 3677 | if test $ac_cv_header_stdc = yes; then |
---|
| 3678 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3680 | /* end confdefs.h. */ |
---|
| 3681 | #include <string.h> |
---|
| 3682 | |
---|
| 3683 | _ACEOF |
---|
| 3684 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3685 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
| 3686 | |
---|
| 3687 | else |
---|
| 3688 | ac_cv_header_stdc=no |
---|
| 3689 | fi |
---|
| 3690 | rm -f conftest* |
---|
| 3691 | |
---|
| 3692 | fi |
---|
| 3693 | |
---|
| 3694 | if test $ac_cv_header_stdc = yes; then |
---|
| 3695 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3697 | /* end confdefs.h. */ |
---|
| 3698 | #include <stdlib.h> |
---|
| 3699 | |
---|
| 3700 | _ACEOF |
---|
| 3701 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3702 | $EGREP "free" >/dev/null 2>&1; then : |
---|
| 3703 | |
---|
| 3704 | else |
---|
| 3705 | ac_cv_header_stdc=no |
---|
| 3706 | fi |
---|
| 3707 | rm -f conftest* |
---|
| 3708 | |
---|
| 3709 | fi |
---|
| 3710 | |
---|
| 3711 | if test $ac_cv_header_stdc = yes; then |
---|
| 3712 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3713 | if test "$cross_compiling" = yes; then : |
---|
| 3714 | : |
---|
| 3715 | else |
---|
| 3716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3717 | /* end confdefs.h. */ |
---|
| 3718 | #include <ctype.h> |
---|
| 3719 | #include <stdlib.h> |
---|
| 3720 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3721 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3722 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3723 | #else |
---|
| 3724 | # define ISLOWER(c) \ |
---|
| 3725 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3726 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3727 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3728 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3729 | #endif |
---|
| 3730 | |
---|
| 3731 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3732 | int |
---|
| 3733 | main () |
---|
| 3734 | { |
---|
| 3735 | int i; |
---|
| 3736 | for (i = 0; i < 256; i++) |
---|
| 3737 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3738 | || toupper (i) != TOUPPER (i)) |
---|
| 3739 | return 2; |
---|
| 3740 | return 0; |
---|
| 3741 | } |
---|
| 3742 | _ACEOF |
---|
| 3743 | if ac_fn_c_try_run "$LINENO"; then : |
---|
| 3744 | |
---|
| 3745 | else |
---|
| 3746 | ac_cv_header_stdc=no |
---|
| 3747 | fi |
---|
| 3748 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
| 3749 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 3750 | fi |
---|
| 3751 | |
---|
| 3752 | fi |
---|
| 3753 | fi |
---|
| 3754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
| 3755 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
| 3756 | if test $ac_cv_header_stdc = yes; then |
---|
| 3757 | |
---|
| 3758 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
| 3759 | |
---|
| 3760 | fi |
---|
| 3761 | |
---|
| 3762 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
| 3763 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 3764 | inttypes.h stdint.h unistd.h |
---|
| 3765 | do : |
---|
| 3766 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3767 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
| 3768 | " |
---|
| 3769 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
| 3770 | cat >>confdefs.h <<_ACEOF |
---|
| 3771 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3772 | _ACEOF |
---|
| 3773 | |
---|
| 3774 | fi |
---|
| 3775 | |
---|
| 3776 | done |
---|
| 3777 | |
---|
| 3778 | |
---|
| 3779 | |
---|
| 3780 | |
---|
| 3781 | # Step 0.a: Enable 64 bit support? |
---|
| 3782 | |
---|
| 3783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5 |
---|
| 3784 | $as_echo_n "checking if 64bit support is requested... " >&6; } |
---|
| 3785 | # Check whether --enable-64bit was given. |
---|
| 3786 | if test "${enable_64bit+set}" = set; then : |
---|
| 3787 | enableval=$enable_64bit; do64bit=$enableval |
---|
| 3788 | else |
---|
| 3789 | do64bit=no |
---|
| 3790 | fi |
---|
| 3791 | |
---|
| 3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 |
---|
| 3793 | $as_echo "$do64bit" >&6; } |
---|
| 3794 | |
---|
| 3795 | # Step 0.b: Enable Solaris 64 bit VIS support? |
---|
| 3796 | |
---|
| 3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5 |
---|
| 3798 | $as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; } |
---|
| 3799 | # Check whether --enable-64bit-vis was given. |
---|
| 3800 | if test "${enable_64bit_vis+set}" = set; then : |
---|
| 3801 | enableval=$enable_64bit_vis; do64bitVIS=$enableval |
---|
| 3802 | else |
---|
| 3803 | do64bitVIS=no |
---|
| 3804 | fi |
---|
| 3805 | |
---|
| 3806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 |
---|
| 3807 | $as_echo "$do64bitVIS" >&6; } |
---|
| 3808 | |
---|
| 3809 | if test "$do64bitVIS" = "yes"; then |
---|
| 3810 | # Force 64bit on with VIS |
---|
| 3811 | do64bit=yes |
---|
| 3812 | fi |
---|
| 3813 | |
---|
| 3814 | # Step 1: set the variable "system" to hold the name and version number |
---|
| 3815 | # for the system. |
---|
| 3816 | |
---|
| 3817 | |
---|
| 3818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5 |
---|
| 3819 | $as_echo_n "checking system version... " >&6; } |
---|
| 3820 | if ${tcl_cv_sys_version+:} false; then : |
---|
| 3821 | $as_echo_n "(cached) " >&6 |
---|
| 3822 | else |
---|
| 3823 | |
---|
| 3824 | if test -f /usr/lib/NextStep/software_version; then |
---|
| 3825 | tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` |
---|
| 3826 | else |
---|
| 3827 | tcl_cv_sys_version=`uname -s`-`uname -r` |
---|
| 3828 | if test "$?" -ne 0 ; then |
---|
| 3829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 |
---|
| 3830 | $as_echo "$as_me: WARNING: can't find uname command" >&2;} |
---|
| 3831 | tcl_cv_sys_version=unknown |
---|
| 3832 | else |
---|
| 3833 | # Special check for weird MP-RAS system (uname returns weird |
---|
| 3834 | # results, and the version is kept in special file). |
---|
| 3835 | |
---|
| 3836 | if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then |
---|
| 3837 | tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` |
---|
| 3838 | fi |
---|
| 3839 | if test "`uname -s`" = "AIX" ; then |
---|
| 3840 | tcl_cv_sys_version=AIX-`uname -v`.`uname -r` |
---|
| 3841 | fi |
---|
| 3842 | fi |
---|
| 3843 | fi |
---|
| 3844 | |
---|
| 3845 | fi |
---|
| 3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 |
---|
| 3847 | $as_echo "$tcl_cv_sys_version" >&6; } |
---|
| 3848 | system=$tcl_cv_sys_version |
---|
| 3849 | |
---|
| 3850 | |
---|
| 3851 | # Step 2: check for existence of -ldl library. This is needed because |
---|
| 3852 | # Linux can use either -ldl or -ldld for dynamic loading. |
---|
| 3853 | |
---|
| 3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
---|
| 3855 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
---|
| 3856 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
---|
| 3857 | $as_echo_n "(cached) " >&6 |
---|
| 3858 | else |
---|
| 3859 | ac_check_lib_save_LIBS=$LIBS |
---|
| 3860 | LIBS="-ldl $LIBS" |
---|
| 3861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 3862 | /* end confdefs.h. */ |
---|
| 3863 | |
---|
| 3864 | /* Override any GCC internal prototype to avoid an error. |
---|
| 3865 | Use char because int might match the return type of a GCC |
---|
| 3866 | builtin and then its argument prototype would still apply. */ |
---|
| 3867 | #ifdef __cplusplus |
---|
| 3868 | extern "C" |
---|
| 3869 | #endif |
---|
| 3870 | char dlopen (); |
---|
| 3871 | int |
---|
| 3872 | main () |
---|
| 3873 | { |
---|
| 3874 | return dlopen (); |
---|
| 3875 | ; |
---|
| 3876 | return 0; |
---|
| 3877 | } |
---|
| 3878 | _ACEOF |
---|
| 3879 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 3880 | ac_cv_lib_dl_dlopen=yes |
---|
| 3881 | else |
---|
| 3882 | ac_cv_lib_dl_dlopen=no |
---|
| 3883 | fi |
---|
| 3884 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 3885 | conftest$ac_exeext conftest.$ac_ext |
---|
| 3886 | LIBS=$ac_check_lib_save_LIBS |
---|
| 3887 | fi |
---|
| 3888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
| 3889 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
---|
| 3890 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
---|
| 3891 | have_dl=yes |
---|
| 3892 | else |
---|
| 3893 | have_dl=no |
---|
| 3894 | fi |
---|
| 3895 | |
---|
| 3896 | |
---|
| 3897 | # Require ranlib early so we can override it in special cases below. |
---|
| 3898 | |
---|
| 3899 | |
---|
| 3900 | |
---|
| 3901 | # Step 3: set configuration options based on system name and version. |
---|
| 3902 | |
---|
| 3903 | do64bit_ok=no |
---|
| 3904 | LDFLAGS_ORIG="$LDFLAGS" |
---|
| 3905 | TCL_EXPORT_FILE_SUFFIX="" |
---|
| 3906 | UNSHARED_LIB_SUFFIX="" |
---|
| 3907 | TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`' |
---|
| 3908 | ECHO_VERSION='`echo ${VERSION}`' |
---|
| 3909 | TCL_LIB_VERSIONS_OK=ok |
---|
| 3910 | CFLAGS_DEBUG=-g |
---|
| 3911 | CFLAGS_OPTIMIZE=-O |
---|
| 3912 | if test "$GCC" = "yes" ; then |
---|
| 3913 | CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing" |
---|
| 3914 | else |
---|
| 3915 | CFLAGS_WARNING="" |
---|
| 3916 | fi |
---|
| 3917 | TCL_NEEDS_EXP_FILE=0 |
---|
| 3918 | TCL_BUILD_EXP_FILE="" |
---|
| 3919 | TCL_EXP_FILE="" |
---|
| 3920 | # Extract the first word of "ar", so it can be a program name with args. |
---|
| 3921 | set dummy ar; ac_word=$2 |
---|
| 3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 3923 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 3924 | if ${ac_cv_prog_AR+:} false; then : |
---|
| 3925 | $as_echo_n "(cached) " >&6 |
---|
| 3926 | else |
---|
| 3927 | if test -n "$AR"; then |
---|
| 3928 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
| 3929 | else |
---|
| 3930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3931 | for as_dir in $PATH |
---|
| 3932 | do |
---|
| 3933 | IFS=$as_save_IFS |
---|
| 3934 | test -z "$as_dir" && as_dir=. |
---|
| 3935 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3936 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3937 | ac_cv_prog_AR="ar" |
---|
| 3938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3939 | break 2 |
---|
| 3940 | fi |
---|
| 3941 | done |
---|
| 3942 | done |
---|
| 3943 | IFS=$as_save_IFS |
---|
| 3944 | |
---|
| 3945 | fi |
---|
| 3946 | fi |
---|
| 3947 | AR=$ac_cv_prog_AR |
---|
| 3948 | if test -n "$AR"; then |
---|
| 3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
---|
| 3950 | $as_echo "$AR" >&6; } |
---|
| 3951 | else |
---|
| 3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 3953 | $as_echo "no" >&6; } |
---|
| 3954 | fi |
---|
| 3955 | |
---|
| 3956 | |
---|
| 3957 | if test "${AR}" = "" ; then |
---|
| 3958 | as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 |
---|
| 3959 | fi |
---|
| 3960 | STLIB_LD='${AR} cr' |
---|
| 3961 | LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" |
---|
| 3962 | PLAT_OBJS="" |
---|
| 3963 | PLAT_SRCS="" |
---|
| 3964 | case $system in |
---|
| 3965 | AIX-*) |
---|
| 3966 | if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then |
---|
| 3967 | # AIX requires the _r compiler when gcc isn't being used |
---|
| 3968 | case "${CC}" in |
---|
| 3969 | *_r) |
---|
| 3970 | # ok ... |
---|
| 3971 | ;; |
---|
| 3972 | *) |
---|
| 3973 | CC=${CC}_r |
---|
| 3974 | ;; |
---|
| 3975 | esac |
---|
| 3976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5 |
---|
| 3977 | $as_echo "Using $CC for compiling with threads" >&6; } |
---|
| 3978 | fi |
---|
| 3979 | LIBS="$LIBS -lc" |
---|
| 3980 | SHLIB_CFLAGS="" |
---|
| 3981 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
| 3982 | # symbols when dynamically loaded into tclsh. |
---|
| 3983 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 3984 | SHLIB_SUFFIX=".so" |
---|
| 3985 | |
---|
| 3986 | DL_OBJS="tclLoadDl.o" |
---|
| 3987 | LD_LIBRARY_PATH_VAR="LIBPATH" |
---|
| 3988 | |
---|
| 3989 | # Check to enable 64-bit flags for compiler/linker on AIX 4+ |
---|
| 3990 | if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then |
---|
| 3991 | if test "$GCC" = "yes" ; then |
---|
| 3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
| 3993 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
| 3994 | else |
---|
| 3995 | do64bit_ok=yes |
---|
| 3996 | CFLAGS="$CFLAGS -q64" |
---|
| 3997 | LDFLAGS="$LDFLAGS -q64" |
---|
| 3998 | RANLIB="${RANLIB} -X64" |
---|
| 3999 | AR="${AR} -X64" |
---|
| 4000 | SHLIB_LD_FLAGS="-b64" |
---|
| 4001 | fi |
---|
| 4002 | fi |
---|
| 4003 | |
---|
| 4004 | if test "`uname -m`" = "ia64" ; then |
---|
| 4005 | # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC |
---|
| 4006 | SHLIB_LD="/usr/ccs/bin/ld -G -z text" |
---|
| 4007 | # AIX-5 has dl* in libc.so |
---|
| 4008 | DL_LIBS="" |
---|
| 4009 | if test "$GCC" = "yes" ; then |
---|
| 4010 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
| 4011 | else |
---|
| 4012 | CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' |
---|
| 4013 | fi |
---|
| 4014 | LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
| 4015 | else |
---|
| 4016 | if test "$GCC" = "yes" ; then |
---|
| 4017 | SHLIB_LD="gcc -shared" |
---|
| 4018 | else |
---|
| 4019 | SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" |
---|
| 4020 | fi |
---|
| 4021 | SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}" |
---|
| 4022 | DL_LIBS="-ldl" |
---|
| 4023 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
| 4024 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
| 4025 | TCL_NEEDS_EXP_FILE=1 |
---|
| 4026 | TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp' |
---|
| 4027 | fi |
---|
| 4028 | |
---|
| 4029 | # AIX v<=4.1 has some different flags than 4.2+ |
---|
| 4030 | if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then |
---|
| 4031 | LIBOBJS="$LIBOBJS tclLoadAix.o" |
---|
| 4032 | DL_LIBS="-lld" |
---|
| 4033 | fi |
---|
| 4034 | |
---|
| 4035 | # On AIX <=v4 systems, libbsd.a has to be linked in to support |
---|
| 4036 | # non-blocking file IO. This library has to be linked in after |
---|
| 4037 | # the MATH_LIBS or it breaks the pow() function. The way to |
---|
| 4038 | # insure proper sequencing, is to add it to the tail of MATH_LIBS. |
---|
| 4039 | # This library also supplies gettimeofday. |
---|
| 4040 | # |
---|
| 4041 | # AIX does not have a timezone field in struct tm. When the AIX |
---|
| 4042 | # bsd library is used, the timezone global and the gettimeofday |
---|
| 4043 | # methods are to be avoided for timezone deduction instead, we |
---|
| 4044 | # deduce the timezone by comparing the localtime result on a |
---|
| 4045 | # known GMT value. |
---|
| 4046 | |
---|
| 4047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5 |
---|
| 4048 | $as_echo_n "checking for gettimeofday in -lbsd... " >&6; } |
---|
| 4049 | if ${ac_cv_lib_bsd_gettimeofday+:} false; then : |
---|
| 4050 | $as_echo_n "(cached) " >&6 |
---|
| 4051 | else |
---|
| 4052 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4053 | LIBS="-lbsd $LIBS" |
---|
| 4054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4055 | /* end confdefs.h. */ |
---|
| 4056 | |
---|
| 4057 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4058 | Use char because int might match the return type of a GCC |
---|
| 4059 | builtin and then its argument prototype would still apply. */ |
---|
| 4060 | #ifdef __cplusplus |
---|
| 4061 | extern "C" |
---|
| 4062 | #endif |
---|
| 4063 | char gettimeofday (); |
---|
| 4064 | int |
---|
| 4065 | main () |
---|
| 4066 | { |
---|
| 4067 | return gettimeofday (); |
---|
| 4068 | ; |
---|
| 4069 | return 0; |
---|
| 4070 | } |
---|
| 4071 | _ACEOF |
---|
| 4072 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 4073 | ac_cv_lib_bsd_gettimeofday=yes |
---|
| 4074 | else |
---|
| 4075 | ac_cv_lib_bsd_gettimeofday=no |
---|
| 4076 | fi |
---|
| 4077 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4078 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4079 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4080 | fi |
---|
| 4081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5 |
---|
| 4082 | $as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; } |
---|
| 4083 | if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then : |
---|
| 4084 | libbsd=yes |
---|
| 4085 | else |
---|
| 4086 | libbsd=no |
---|
| 4087 | fi |
---|
| 4088 | |
---|
| 4089 | if test $libbsd = yes; then |
---|
| 4090 | MATH_LIBS="$MATH_LIBS -lbsd" |
---|
| 4091 | $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h |
---|
| 4092 | |
---|
| 4093 | fi |
---|
| 4094 | ;; |
---|
| 4095 | BeOS*) |
---|
| 4096 | SHLIB_CFLAGS="-fPIC" |
---|
| 4097 | SHLIB_LD="${CC} -nostart" |
---|
| 4098 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4099 | SHLIB_SUFFIX=".so" |
---|
| 4100 | DL_OBJS="tclLoadDl.o" |
---|
| 4101 | DL_LIBS="-ldl" |
---|
| 4102 | |
---|
| 4103 | #----------------------------------------------------------- |
---|
| 4104 | # Check for inet_ntoa in -lbind, for BeOS (which also needs |
---|
| 4105 | # -lsocket, even if the network functions are in -lnet which |
---|
| 4106 | # is always linked to, for compatibility. |
---|
| 4107 | #----------------------------------------------------------- |
---|
| 4108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5 |
---|
| 4109 | $as_echo_n "checking for inet_ntoa in -lbind... " >&6; } |
---|
| 4110 | if ${ac_cv_lib_bind_inet_ntoa+:} false; then : |
---|
| 4111 | $as_echo_n "(cached) " >&6 |
---|
| 4112 | else |
---|
| 4113 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4114 | LIBS="-lbind $LIBS" |
---|
| 4115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4116 | /* end confdefs.h. */ |
---|
| 4117 | |
---|
| 4118 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4119 | Use char because int might match the return type of a GCC |
---|
| 4120 | builtin and then its argument prototype would still apply. */ |
---|
| 4121 | #ifdef __cplusplus |
---|
| 4122 | extern "C" |
---|
| 4123 | #endif |
---|
| 4124 | char inet_ntoa (); |
---|
| 4125 | int |
---|
| 4126 | main () |
---|
| 4127 | { |
---|
| 4128 | return inet_ntoa (); |
---|
| 4129 | ; |
---|
| 4130 | return 0; |
---|
| 4131 | } |
---|
| 4132 | _ACEOF |
---|
| 4133 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 4134 | ac_cv_lib_bind_inet_ntoa=yes |
---|
| 4135 | else |
---|
| 4136 | ac_cv_lib_bind_inet_ntoa=no |
---|
| 4137 | fi |
---|
| 4138 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4139 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4140 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4141 | fi |
---|
| 4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5 |
---|
| 4143 | $as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; } |
---|
| 4144 | if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then : |
---|
| 4145 | LIBS="$LIBS -lbind -lsocket" |
---|
| 4146 | fi |
---|
| 4147 | |
---|
| 4148 | ;; |
---|
| 4149 | BSD/OS-2.1*|BSD/OS-3*) |
---|
| 4150 | SHLIB_CFLAGS="" |
---|
| 4151 | SHLIB_LD="shlicc -r" |
---|
| 4152 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4153 | SHLIB_SUFFIX=".so" |
---|
| 4154 | DL_OBJS="tclLoadDl.o" |
---|
| 4155 | DL_LIBS="-ldl" |
---|
| 4156 | CC_SEARCH_FLAGS="" |
---|
| 4157 | LD_SEARCH_FLAGS="" |
---|
| 4158 | ;; |
---|
| 4159 | BSD/OS-4.*) |
---|
| 4160 | SHLIB_CFLAGS="-export-dynamic -fPIC" |
---|
| 4161 | SHLIB_LD="cc -shared" |
---|
| 4162 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4163 | SHLIB_SUFFIX=".so" |
---|
| 4164 | DL_OBJS="tclLoadDl.o" |
---|
| 4165 | DL_LIBS="-ldl" |
---|
| 4166 | LDFLAGS="$LDFLAGS -export-dynamic" |
---|
| 4167 | CC_SEARCH_FLAGS="" |
---|
| 4168 | LD_SEARCH_FLAGS="" |
---|
| 4169 | ;; |
---|
| 4170 | dgux*) |
---|
| 4171 | SHLIB_CFLAGS="-K PIC" |
---|
| 4172 | SHLIB_LD="cc -G" |
---|
| 4173 | SHLIB_LD_LIBS="" |
---|
| 4174 | SHLIB_SUFFIX=".so" |
---|
| 4175 | DL_OBJS="tclLoadDl.o" |
---|
| 4176 | DL_LIBS="-ldl" |
---|
| 4177 | CC_SEARCH_FLAGS="" |
---|
| 4178 | LD_SEARCH_FLAGS="" |
---|
| 4179 | ;; |
---|
| 4180 | HP-UX-*.11.*) |
---|
| 4181 | # Use updated header definitions where possible |
---|
| 4182 | $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h |
---|
| 4183 | # Use the XOPEN network library |
---|
| 4184 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
---|
| 4185 | # Use the XOPEN network library |
---|
| 4186 | LIBS="$LIBS -lxnet" # Use the XOPEN network library |
---|
| 4187 | |
---|
| 4188 | if test "`uname -m`" = "ia64" ; then |
---|
| 4189 | SHLIB_SUFFIX=".so" |
---|
| 4190 | else |
---|
| 4191 | SHLIB_SUFFIX=".sl" |
---|
| 4192 | fi |
---|
| 4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
---|
| 4194 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
---|
| 4195 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
---|
| 4196 | $as_echo_n "(cached) " >&6 |
---|
| 4197 | else |
---|
| 4198 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4199 | LIBS="-ldld $LIBS" |
---|
| 4200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4201 | /* end confdefs.h. */ |
---|
| 4202 | |
---|
| 4203 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4204 | Use char because int might match the return type of a GCC |
---|
| 4205 | builtin and then its argument prototype would still apply. */ |
---|
| 4206 | #ifdef __cplusplus |
---|
| 4207 | extern "C" |
---|
| 4208 | #endif |
---|
| 4209 | char shl_load (); |
---|
| 4210 | int |
---|
| 4211 | main () |
---|
| 4212 | { |
---|
| 4213 | return shl_load (); |
---|
| 4214 | ; |
---|
| 4215 | return 0; |
---|
| 4216 | } |
---|
| 4217 | _ACEOF |
---|
| 4218 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 4219 | ac_cv_lib_dld_shl_load=yes |
---|
| 4220 | else |
---|
| 4221 | ac_cv_lib_dld_shl_load=no |
---|
| 4222 | fi |
---|
| 4223 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4224 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4225 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4226 | fi |
---|
| 4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
| 4228 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
---|
| 4229 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
---|
| 4230 | tcl_ok=yes |
---|
| 4231 | else |
---|
| 4232 | tcl_ok=no |
---|
| 4233 | fi |
---|
| 4234 | |
---|
| 4235 | if test "$tcl_ok" = yes; then |
---|
| 4236 | SHLIB_CFLAGS="+z" |
---|
| 4237 | SHLIB_LD="ld -b" |
---|
| 4238 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4239 | DL_OBJS="tclLoadShl.o" |
---|
| 4240 | DL_LIBS="-ldld" |
---|
| 4241 | LDFLAGS="$LDFLAGS -Wl,-E" |
---|
| 4242 | CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' |
---|
| 4243 | LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' |
---|
| 4244 | LD_LIBRARY_PATH_VAR="SHLIB_PATH" |
---|
| 4245 | fi |
---|
| 4246 | if test "$GCC" = "yes" ; then |
---|
| 4247 | SHLIB_LD="gcc -shared" |
---|
| 4248 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4249 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
| 4250 | fi |
---|
| 4251 | |
---|
| 4252 | # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc |
---|
| 4253 | #CFLAGS="$CFLAGS +DAportable" |
---|
| 4254 | |
---|
| 4255 | # Check to enable 64-bit flags for compiler/linker |
---|
| 4256 | if test "$do64bit" = "yes" ; then |
---|
| 4257 | if test "$GCC" = "yes" ; then |
---|
| 4258 | hpux_arch=`${CC} -dumpmachine` |
---|
| 4259 | case $hpux_arch in |
---|
| 4260 | hppa64*) |
---|
| 4261 | # 64-bit gcc in use. Fix flags for GNU ld. |
---|
| 4262 | do64bit_ok=yes |
---|
| 4263 | SHLIB_LD="${CC} -shared" |
---|
| 4264 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4265 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
| 4266 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
| 4267 | ;; |
---|
| 4268 | *) |
---|
| 4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
| 4270 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
| 4271 | ;; |
---|
| 4272 | esac |
---|
| 4273 | else |
---|
| 4274 | do64bit_ok=yes |
---|
| 4275 | CFLAGS="$CFLAGS +DD64" |
---|
| 4276 | LDFLAGS="$LDFLAGS +DD64" |
---|
| 4277 | fi |
---|
| 4278 | fi |
---|
| 4279 | ;; |
---|
| 4280 | HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) |
---|
| 4281 | SHLIB_SUFFIX=".sl" |
---|
| 4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
---|
| 4283 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
---|
| 4284 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
---|
| 4285 | $as_echo_n "(cached) " >&6 |
---|
| 4286 | else |
---|
| 4287 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4288 | LIBS="-ldld $LIBS" |
---|
| 4289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4290 | /* end confdefs.h. */ |
---|
| 4291 | |
---|
| 4292 | /* Override any GCC internal prototype to avoid an error. |
---|
| 4293 | Use char because int might match the return type of a GCC |
---|
| 4294 | builtin and then its argument prototype would still apply. */ |
---|
| 4295 | #ifdef __cplusplus |
---|
| 4296 | extern "C" |
---|
| 4297 | #endif |
---|
| 4298 | char shl_load (); |
---|
| 4299 | int |
---|
| 4300 | main () |
---|
| 4301 | { |
---|
| 4302 | return shl_load (); |
---|
| 4303 | ; |
---|
| 4304 | return 0; |
---|
| 4305 | } |
---|
| 4306 | _ACEOF |
---|
| 4307 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 4308 | ac_cv_lib_dld_shl_load=yes |
---|
| 4309 | else |
---|
| 4310 | ac_cv_lib_dld_shl_load=no |
---|
| 4311 | fi |
---|
| 4312 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4313 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4314 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4315 | fi |
---|
| 4316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
| 4317 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
---|
| 4318 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
---|
| 4319 | tcl_ok=yes |
---|
| 4320 | else |
---|
| 4321 | tcl_ok=no |
---|
| 4322 | fi |
---|
| 4323 | |
---|
| 4324 | if test "$tcl_ok" = yes; then |
---|
| 4325 | SHLIB_CFLAGS="+z" |
---|
| 4326 | SHLIB_LD="ld -b" |
---|
| 4327 | SHLIB_LD_LIBS="" |
---|
| 4328 | DL_OBJS="tclLoadShl.o" |
---|
| 4329 | DL_LIBS="-ldld" |
---|
| 4330 | LDFLAGS="$LDFLAGS -Wl,-E" |
---|
| 4331 | CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' |
---|
| 4332 | LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' |
---|
| 4333 | LD_LIBRARY_PATH_VAR="SHLIB_PATH" |
---|
| 4334 | fi |
---|
| 4335 | ;; |
---|
| 4336 | IRIX-4.*) |
---|
| 4337 | SHLIB_CFLAGS="-G 0" |
---|
| 4338 | SHLIB_SUFFIX=".a" |
---|
| 4339 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
| 4340 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4341 | DL_OBJS="tclLoadAout.o" |
---|
| 4342 | DL_LIBS="" |
---|
| 4343 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
| 4344 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
| 4345 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
| 4346 | SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' |
---|
| 4347 | ;; |
---|
| 4348 | IRIX-5.*) |
---|
| 4349 | SHLIB_CFLAGS="" |
---|
| 4350 | SHLIB_LD="ld -shared -rdata_shared" |
---|
| 4351 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4352 | SHLIB_SUFFIX=".so" |
---|
| 4353 | DL_OBJS="tclLoadDl.o" |
---|
| 4354 | DL_LIBS="" |
---|
| 4355 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
| 4356 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
| 4357 | ;; |
---|
| 4358 | IRIX-6.*) |
---|
| 4359 | SHLIB_CFLAGS="" |
---|
| 4360 | SHLIB_LD="ld -n32 -shared -rdata_shared" |
---|
| 4361 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4362 | SHLIB_SUFFIX=".so" |
---|
| 4363 | DL_OBJS="tclLoadDl.o" |
---|
| 4364 | DL_LIBS="" |
---|
| 4365 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
| 4366 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
| 4367 | if test "$GCC" = "yes" ; then |
---|
| 4368 | CFLAGS="$CFLAGS -mabi=n32" |
---|
| 4369 | LDFLAGS="$LDFLAGS -mabi=n32" |
---|
| 4370 | else |
---|
| 4371 | case $system in |
---|
| 4372 | IRIX-6.3) |
---|
| 4373 | # Use to build 6.2 compatible binaries on 6.3. |
---|
| 4374 | CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" |
---|
| 4375 | ;; |
---|
| 4376 | *) |
---|
| 4377 | CFLAGS="$CFLAGS -n32" |
---|
| 4378 | ;; |
---|
| 4379 | esac |
---|
| 4380 | LDFLAGS="$LDFLAGS -n32" |
---|
| 4381 | fi |
---|
| 4382 | ;; |
---|
| 4383 | IRIX64-6.*) |
---|
| 4384 | SHLIB_CFLAGS="" |
---|
| 4385 | SHLIB_LD="ld -n32 -shared -rdata_shared" |
---|
| 4386 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4387 | SHLIB_SUFFIX=".so" |
---|
| 4388 | DL_OBJS="tclLoadDl.o" |
---|
| 4389 | DL_LIBS="" |
---|
| 4390 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
| 4391 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
| 4392 | |
---|
| 4393 | # Check to enable 64-bit flags for compiler/linker |
---|
| 4394 | |
---|
| 4395 | if test "$do64bit" = "yes" ; then |
---|
| 4396 | if test "$GCC" = "yes" ; then |
---|
| 4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5 |
---|
| 4398 | $as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} |
---|
| 4399 | else |
---|
| 4400 | do64bit_ok=yes |
---|
| 4401 | SHLIB_LD="ld -64 -shared -rdata_shared" |
---|
| 4402 | CFLAGS="$CFLAGS -64" |
---|
| 4403 | LDFLAGS="$LDFLAGS -64" |
---|
| 4404 | fi |
---|
| 4405 | fi |
---|
| 4406 | ;; |
---|
| 4407 | Linux*) |
---|
| 4408 | SHLIB_CFLAGS="-fPIC" |
---|
| 4409 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4410 | SHLIB_SUFFIX=".so" |
---|
| 4411 | |
---|
| 4412 | CFLAGS_OPTIMIZE=-O2 |
---|
| 4413 | # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings |
---|
| 4414 | # when you inline the string and math operations. Turn this off to |
---|
| 4415 | # get rid of the warnings. |
---|
| 4416 | #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" |
---|
| 4417 | |
---|
| 4418 | if test "$have_dl" = yes; then |
---|
| 4419 | SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' |
---|
| 4420 | DL_OBJS="tclLoadDl.o" |
---|
| 4421 | DL_LIBS="-ldl" |
---|
| 4422 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" |
---|
| 4423 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
| 4424 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
| 4425 | else |
---|
| 4426 | ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" |
---|
| 4427 | if test "x$ac_cv_header_dld_h" = xyes; then : |
---|
| 4428 | |
---|
| 4429 | SHLIB_LD="ld -shared" |
---|
| 4430 | DL_OBJS="tclLoadDld.o" |
---|
| 4431 | DL_LIBS="-ldld" |
---|
| 4432 | CC_SEARCH_FLAGS="" |
---|
| 4433 | LD_SEARCH_FLAGS="" |
---|
| 4434 | fi |
---|
| 4435 | |
---|
| 4436 | |
---|
| 4437 | fi |
---|
| 4438 | if test "`uname -m`" = "alpha" ; then |
---|
| 4439 | CFLAGS="$CFLAGS -mieee" |
---|
| 4440 | fi |
---|
| 4441 | if test $do64bit = yes; then |
---|
| 4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5 |
---|
| 4443 | $as_echo_n "checking if compiler accepts -m64 flag... " >&6; } |
---|
| 4444 | if ${tcl_cv_cc_m64+:} false; then : |
---|
| 4445 | $as_echo_n "(cached) " >&6 |
---|
| 4446 | else |
---|
| 4447 | |
---|
| 4448 | hold_cflags=$CFLAGS |
---|
| 4449 | CFLAGS="$CFLAGS -m64" |
---|
| 4450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4451 | /* end confdefs.h. */ |
---|
| 4452 | |
---|
| 4453 | int |
---|
| 4454 | main () |
---|
| 4455 | { |
---|
| 4456 | |
---|
| 4457 | ; |
---|
| 4458 | return 0; |
---|
| 4459 | } |
---|
| 4460 | _ACEOF |
---|
| 4461 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 4462 | tcl_cv_cc_m64=yes |
---|
| 4463 | else |
---|
| 4464 | tcl_cv_cc_m64=no |
---|
| 4465 | fi |
---|
| 4466 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4467 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4468 | CFLAGS=$hold_cflags |
---|
| 4469 | fi |
---|
| 4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5 |
---|
| 4471 | $as_echo "$tcl_cv_cc_m64" >&6; } |
---|
| 4472 | if test $tcl_cv_cc_m64 = yes; then |
---|
| 4473 | CFLAGS="$CFLAGS -m64" |
---|
| 4474 | do64bit_ok=yes |
---|
| 4475 | fi |
---|
| 4476 | fi |
---|
| 4477 | |
---|
| 4478 | # The combo of gcc + glibc has a bug related |
---|
| 4479 | # to inlining of functions like strtod(). The |
---|
| 4480 | # -fno-builtin flag should address this problem |
---|
| 4481 | # but it does not work. The -fno-inline flag |
---|
| 4482 | # is kind of overkill but it works. |
---|
| 4483 | # Disable inlining only when one of the |
---|
| 4484 | # files in compat/*.c is being linked in. |
---|
| 4485 | if test x"${LIBOBJS}" != x ; then |
---|
| 4486 | CFLAGS="$CFLAGS -fno-inline" |
---|
| 4487 | fi |
---|
| 4488 | |
---|
| 4489 | # XIM peeking works under XFree86. |
---|
| 4490 | $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h |
---|
| 4491 | |
---|
| 4492 | |
---|
| 4493 | ;; |
---|
| 4494 | GNU*) |
---|
| 4495 | SHLIB_CFLAGS="-fPIC" |
---|
| 4496 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4497 | SHLIB_SUFFIX=".so" |
---|
| 4498 | |
---|
| 4499 | if test "$have_dl" = yes; then |
---|
| 4500 | SHLIB_LD="${CC} -shared" |
---|
| 4501 | DL_OBJS="" |
---|
| 4502 | DL_LIBS="-ldl" |
---|
| 4503 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" |
---|
| 4504 | CC_SEARCH_FLAGS="" |
---|
| 4505 | LD_SEARCH_FLAGS="" |
---|
| 4506 | else |
---|
| 4507 | ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" |
---|
| 4508 | if test "x$ac_cv_header_dld_h" = xyes; then : |
---|
| 4509 | |
---|
| 4510 | SHLIB_LD="ld -shared" |
---|
| 4511 | DL_OBJS="" |
---|
| 4512 | DL_LIBS="-ldld" |
---|
| 4513 | CC_SEARCH_FLAGS="" |
---|
| 4514 | LD_SEARCH_FLAGS="" |
---|
| 4515 | fi |
---|
| 4516 | |
---|
| 4517 | |
---|
| 4518 | fi |
---|
| 4519 | if test "`uname -m`" = "alpha" ; then |
---|
| 4520 | CFLAGS="$CFLAGS -mieee" |
---|
| 4521 | fi |
---|
| 4522 | ;; |
---|
| 4523 | Lynx*) |
---|
| 4524 | SHLIB_CFLAGS="-fPIC" |
---|
| 4525 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4526 | SHLIB_SUFFIX=".so" |
---|
| 4527 | CFLAGS_OPTIMIZE=-02 |
---|
| 4528 | SHLIB_LD="${CC} -shared " |
---|
| 4529 | DL_OBJS="tclLoadDl.o" |
---|
| 4530 | DL_LIBS="-mshared -ldl" |
---|
| 4531 | LD_FLAGS="-Wl,--export-dynamic" |
---|
| 4532 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
| 4533 | LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
| 4534 | ;; |
---|
| 4535 | MP-RAS-02*) |
---|
| 4536 | SHLIB_CFLAGS="-K PIC" |
---|
| 4537 | SHLIB_LD="cc -G" |
---|
| 4538 | SHLIB_LD_LIBS="" |
---|
| 4539 | SHLIB_SUFFIX=".so" |
---|
| 4540 | DL_OBJS="tclLoadDl.o" |
---|
| 4541 | DL_LIBS="-ldl" |
---|
| 4542 | CC_SEARCH_FLAGS="" |
---|
| 4543 | LD_SEARCH_FLAGS="" |
---|
| 4544 | ;; |
---|
| 4545 | MP-RAS-*) |
---|
| 4546 | SHLIB_CFLAGS="-K PIC" |
---|
| 4547 | SHLIB_LD="cc -G" |
---|
| 4548 | SHLIB_LD_LIBS="" |
---|
| 4549 | SHLIB_SUFFIX=".so" |
---|
| 4550 | DL_OBJS="tclLoadDl.o" |
---|
| 4551 | DL_LIBS="-ldl" |
---|
| 4552 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
| 4553 | CC_SEARCH_FLAGS="" |
---|
| 4554 | LD_SEARCH_FLAGS="" |
---|
| 4555 | ;; |
---|
| 4556 | NetBSD-*|FreeBSD-[1-2].*) |
---|
| 4557 | # Not available on all versions: check for include file. |
---|
| 4558 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
---|
| 4559 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
---|
| 4560 | |
---|
| 4561 | # NetBSD/SPARC needs -fPIC, -fpic will not do. |
---|
| 4562 | SHLIB_CFLAGS="-fPIC" |
---|
| 4563 | SHLIB_LD="ld -Bshareable -x" |
---|
| 4564 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4565 | SHLIB_SUFFIX=".so" |
---|
| 4566 | DL_OBJS="tclLoadDl.o" |
---|
| 4567 | DL_LIBS="" |
---|
| 4568 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
| 4569 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
| 4570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 |
---|
| 4571 | $as_echo_n "checking for ELF... " >&6; } |
---|
| 4572 | if ${tcl_cv_ld_elf+:} false; then : |
---|
| 4573 | $as_echo_n "(cached) " >&6 |
---|
| 4574 | else |
---|
| 4575 | |
---|
| 4576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4577 | /* end confdefs.h. */ |
---|
| 4578 | |
---|
| 4579 | #ifdef __ELF__ |
---|
| 4580 | yes |
---|
| 4581 | #endif |
---|
| 4582 | |
---|
| 4583 | _ACEOF |
---|
| 4584 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 4585 | $EGREP "yes" >/dev/null 2>&1; then : |
---|
| 4586 | tcl_cv_ld_elf=yes |
---|
| 4587 | else |
---|
| 4588 | tcl_cv_ld_elf=no |
---|
| 4589 | fi |
---|
| 4590 | rm -f conftest* |
---|
| 4591 | |
---|
| 4592 | fi |
---|
| 4593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 |
---|
| 4594 | $as_echo "$tcl_cv_ld_elf" >&6; } |
---|
| 4595 | if test $tcl_cv_ld_elf = yes; then |
---|
| 4596 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' |
---|
| 4597 | else |
---|
| 4598 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
| 4599 | fi |
---|
| 4600 | |
---|
| 4601 | else |
---|
| 4602 | |
---|
| 4603 | SHLIB_CFLAGS="" |
---|
| 4604 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" |
---|
| 4605 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4606 | SHLIB_SUFFIX=".a" |
---|
| 4607 | DL_OBJS="tclLoadAout.o" |
---|
| 4608 | DL_LIBS="" |
---|
| 4609 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
| 4610 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
| 4611 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
| 4612 | |
---|
| 4613 | fi |
---|
| 4614 | |
---|
| 4615 | |
---|
| 4616 | |
---|
| 4617 | # FreeBSD doesn't handle version numbers with dots. |
---|
| 4618 | |
---|
| 4619 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
| 4620 | TCL_LIB_VERSIONS_OK=nodots |
---|
| 4621 | ;; |
---|
| 4622 | OpenBSD-*) |
---|
| 4623 | case `arch -s` in |
---|
| 4624 | m88k|vax) |
---|
| 4625 | SHLIB_CFLAGS="" |
---|
| 4626 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" |
---|
| 4627 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4628 | SHLIB_SUFFIX=".a" |
---|
| 4629 | DL_OBJS="tclLoadAout.o" |
---|
| 4630 | DL_LIBS="" |
---|
| 4631 | LDFLAGS="" |
---|
| 4632 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
| 4633 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
| 4634 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
| 4635 | ;; |
---|
| 4636 | *) |
---|
| 4637 | # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do. |
---|
| 4638 | case `machine` in |
---|
| 4639 | sparc|sparc64) |
---|
| 4640 | SHLIB_CFLAGS="-fPIC";; |
---|
| 4641 | *) |
---|
| 4642 | SHLIB_CFLAGS="-fpic";; |
---|
| 4643 | esac |
---|
| 4644 | SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}" |
---|
| 4645 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4646 | SHLIB_SUFFIX=".so" |
---|
| 4647 | DL_OBJS="tclLoadDl.o" |
---|
| 4648 | DL_LIBS="" |
---|
| 4649 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
| 4650 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
| 4651 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
| 4652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 |
---|
| 4653 | $as_echo_n "checking for ELF... " >&6; } |
---|
| 4654 | if ${tcl_cv_ld_elf+:} false; then : |
---|
| 4655 | $as_echo_n "(cached) " >&6 |
---|
| 4656 | else |
---|
| 4657 | |
---|
| 4658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4659 | /* end confdefs.h. */ |
---|
| 4660 | |
---|
| 4661 | #ifdef __ELF__ |
---|
| 4662 | yes |
---|
| 4663 | #endif |
---|
| 4664 | |
---|
| 4665 | _ACEOF |
---|
| 4666 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 4667 | $EGREP "yes" >/dev/null 2>&1; then : |
---|
| 4668 | tcl_cv_ld_elf=yes |
---|
| 4669 | else |
---|
| 4670 | tcl_cv_ld_elf=no |
---|
| 4671 | fi |
---|
| 4672 | rm -f conftest* |
---|
| 4673 | |
---|
| 4674 | fi |
---|
| 4675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 |
---|
| 4676 | $as_echo "$tcl_cv_ld_elf" >&6; } |
---|
| 4677 | if test $tcl_cv_ld_elf = yes; then |
---|
| 4678 | LDFLAGS=-Wl,-export-dynamic |
---|
| 4679 | else |
---|
| 4680 | LDFLAGS="" |
---|
| 4681 | fi |
---|
| 4682 | ;; |
---|
| 4683 | esac |
---|
| 4684 | |
---|
| 4685 | # OpenBSD doesn't do version numbers with dots. |
---|
| 4686 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
| 4687 | TCL_LIB_VERSIONS_OK=nodots |
---|
| 4688 | ;; |
---|
| 4689 | FreeBSD-*) |
---|
| 4690 | # FreeBSD 3.* and greater have ELF. |
---|
| 4691 | SHLIB_CFLAGS="-fPIC" |
---|
| 4692 | SHLIB_LD="ld -Bshareable -x" |
---|
| 4693 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4694 | SHLIB_SUFFIX=".so" |
---|
| 4695 | DL_OBJS="tclLoadDl.o" |
---|
| 4696 | DL_LIBS="" |
---|
| 4697 | LDFLAGS="$LDFLAGS -export-dynamic" |
---|
| 4698 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
| 4699 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
| 4700 | if test "${TCL_THREADS}" = "1" ; then |
---|
| 4701 | # The -pthread needs to go in the CFLAGS, not LIBS |
---|
| 4702 | LIBS=`echo $LIBS | sed s/-pthread//` |
---|
| 4703 | CFLAGS="$CFLAGS -pthread" |
---|
| 4704 | LDFLAGS="$LDFLAGS -pthread" |
---|
| 4705 | fi |
---|
| 4706 | case $system in |
---|
| 4707 | FreeBSD-3.*) |
---|
| 4708 | # FreeBSD-3 doesn't handle version numbers with dots. |
---|
| 4709 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
| 4710 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' |
---|
| 4711 | TCL_LIB_VERSIONS_OK=nodots |
---|
| 4712 | ;; |
---|
| 4713 | esac |
---|
| 4714 | ;; |
---|
| 4715 | Darwin-*) |
---|
| 4716 | CFLAGS_OPTIMIZE="-Os" |
---|
| 4717 | SHLIB_CFLAGS="-fno-common" |
---|
| 4718 | # To avoid discrepancies between what headers configure sees during |
---|
| 4719 | # preprocessing tests and compiling tests, move any -isysroot and |
---|
| 4720 | # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: |
---|
| 4721 | CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ |
---|
| 4722 | awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ |
---|
| 4723 | if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" |
---|
| 4724 | CFLAGS="`echo " ${CFLAGS}" | \ |
---|
| 4725 | awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ |
---|
| 4726 | if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" |
---|
| 4727 | if test $do64bit = yes; then |
---|
| 4728 | case `arch` in |
---|
| 4729 | ppc) |
---|
| 4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5 |
---|
| 4731 | $as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; } |
---|
| 4732 | if ${tcl_cv_cc_arch_ppc64+:} false; then : |
---|
| 4733 | $as_echo_n "(cached) " >&6 |
---|
| 4734 | else |
---|
| 4735 | |
---|
| 4736 | hold_cflags=$CFLAGS |
---|
| 4737 | CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" |
---|
| 4738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4739 | /* end confdefs.h. */ |
---|
| 4740 | |
---|
| 4741 | int |
---|
| 4742 | main () |
---|
| 4743 | { |
---|
| 4744 | |
---|
| 4745 | ; |
---|
| 4746 | return 0; |
---|
| 4747 | } |
---|
| 4748 | _ACEOF |
---|
| 4749 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 4750 | tcl_cv_cc_arch_ppc64=yes |
---|
| 4751 | else |
---|
| 4752 | tcl_cv_cc_arch_ppc64=no |
---|
| 4753 | fi |
---|
| 4754 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4755 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4756 | CFLAGS=$hold_cflags |
---|
| 4757 | fi |
---|
| 4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5 |
---|
| 4759 | $as_echo "$tcl_cv_cc_arch_ppc64" >&6; } |
---|
| 4760 | if test $tcl_cv_cc_arch_ppc64 = yes; then |
---|
| 4761 | CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" |
---|
| 4762 | do64bit_ok=yes |
---|
| 4763 | fi;; |
---|
| 4764 | i386) |
---|
| 4765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5 |
---|
| 4766 | $as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; } |
---|
| 4767 | if ${tcl_cv_cc_arch_x86_64+:} false; then : |
---|
| 4768 | $as_echo_n "(cached) " >&6 |
---|
| 4769 | else |
---|
| 4770 | |
---|
| 4771 | hold_cflags=$CFLAGS |
---|
| 4772 | CFLAGS="$CFLAGS -arch x86_64" |
---|
| 4773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4774 | /* end confdefs.h. */ |
---|
| 4775 | |
---|
| 4776 | int |
---|
| 4777 | main () |
---|
| 4778 | { |
---|
| 4779 | |
---|
| 4780 | ; |
---|
| 4781 | return 0; |
---|
| 4782 | } |
---|
| 4783 | _ACEOF |
---|
| 4784 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 4785 | tcl_cv_cc_arch_x86_64=yes |
---|
| 4786 | else |
---|
| 4787 | tcl_cv_cc_arch_x86_64=no |
---|
| 4788 | fi |
---|
| 4789 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4790 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4791 | CFLAGS=$hold_cflags |
---|
| 4792 | fi |
---|
| 4793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5 |
---|
| 4794 | $as_echo "$tcl_cv_cc_arch_x86_64" >&6; } |
---|
| 4795 | if test $tcl_cv_cc_arch_x86_64 = yes; then |
---|
| 4796 | CFLAGS="$CFLAGS -arch x86_64" |
---|
| 4797 | do64bit_ok=yes |
---|
| 4798 | fi;; |
---|
| 4799 | *) |
---|
| 4800 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 |
---|
| 4801 | $as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; |
---|
| 4802 | esac |
---|
| 4803 | else |
---|
| 4804 | # Check for combined 32-bit and 64-bit fat build |
---|
| 4805 | echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \ |
---|
| 4806 | echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \ |
---|
| 4807 | fat_32_64=yes |
---|
| 4808 | fi |
---|
| 4809 | SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}' |
---|
| 4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5 |
---|
| 4811 | $as_echo_n "checking if ld accepts -single_module flag... " >&6; } |
---|
| 4812 | if ${tcl_cv_ld_single_module+:} false; then : |
---|
| 4813 | $as_echo_n "(cached) " >&6 |
---|
| 4814 | else |
---|
| 4815 | |
---|
| 4816 | hold_ldflags=$LDFLAGS |
---|
| 4817 | LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" |
---|
| 4818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4819 | /* end confdefs.h. */ |
---|
| 4820 | |
---|
| 4821 | int |
---|
| 4822 | main () |
---|
| 4823 | { |
---|
| 4824 | int i; |
---|
| 4825 | ; |
---|
| 4826 | return 0; |
---|
| 4827 | } |
---|
| 4828 | _ACEOF |
---|
| 4829 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 4830 | tcl_cv_ld_single_module=yes |
---|
| 4831 | else |
---|
| 4832 | tcl_cv_ld_single_module=no |
---|
| 4833 | fi |
---|
| 4834 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4835 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4836 | LDFLAGS=$hold_ldflags |
---|
| 4837 | fi |
---|
| 4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5 |
---|
| 4839 | $as_echo "$tcl_cv_ld_single_module" >&6; } |
---|
| 4840 | if test $tcl_cv_ld_single_module = yes; then |
---|
| 4841 | SHLIB_LD="${SHLIB_LD} -Wl,-single_module" |
---|
| 4842 | fi |
---|
| 4843 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 4844 | SHLIB_SUFFIX=".dylib" |
---|
| 4845 | DL_OBJS="tclLoadDyld.o" |
---|
| 4846 | DL_LIBS="" |
---|
| 4847 | # Don't use -prebind when building for Mac OS X 10.4 or later only: |
---|
| 4848 | test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ |
---|
| 4849 | "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \ |
---|
| 4850 | LDFLAGS="$LDFLAGS -prebind" |
---|
| 4851 | LDFLAGS="$LDFLAGS -headerpad_max_install_names" |
---|
| 4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5 |
---|
| 4853 | $as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; } |
---|
| 4854 | if ${tcl_cv_ld_search_paths_first+:} false; then : |
---|
| 4855 | $as_echo_n "(cached) " >&6 |
---|
| 4856 | else |
---|
| 4857 | |
---|
| 4858 | hold_ldflags=$LDFLAGS |
---|
| 4859 | LDFLAGS="$LDFLAGS -Wl,-search_paths_first" |
---|
| 4860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4861 | /* end confdefs.h. */ |
---|
| 4862 | |
---|
| 4863 | int |
---|
| 4864 | main () |
---|
| 4865 | { |
---|
| 4866 | int i; |
---|
| 4867 | ; |
---|
| 4868 | return 0; |
---|
| 4869 | } |
---|
| 4870 | _ACEOF |
---|
| 4871 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 4872 | tcl_cv_ld_search_paths_first=yes |
---|
| 4873 | else |
---|
| 4874 | tcl_cv_ld_search_paths_first=no |
---|
| 4875 | fi |
---|
| 4876 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4877 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4878 | LDFLAGS=$hold_ldflags |
---|
| 4879 | fi |
---|
| 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5 |
---|
| 4881 | $as_echo "$tcl_cv_ld_search_paths_first" >&6; } |
---|
| 4882 | if test $tcl_cv_ld_search_paths_first = yes; then |
---|
| 4883 | LDFLAGS="$LDFLAGS -Wl,-search_paths_first" |
---|
| 4884 | fi |
---|
| 4885 | CC_SEARCH_FLAGS="" |
---|
| 4886 | LD_SEARCH_FLAGS="" |
---|
| 4887 | LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" |
---|
| 4888 | PLAT_OBJS=\$\(MAC\_OSX_OBJS\) |
---|
| 4889 | PLAT_SRCS=\$\(MAC\_OSX_SRCS\) |
---|
| 4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5 |
---|
| 4891 | $as_echo_n "checking whether to use CoreFoundation... " >&6; } |
---|
| 4892 | # Check whether --enable-corefoundation was given. |
---|
| 4893 | if test "${enable_corefoundation+set}" = set; then : |
---|
| 4894 | enableval=$enable_corefoundation; tcl_corefoundation=$enableval |
---|
| 4895 | else |
---|
| 4896 | tcl_corefoundation=yes |
---|
| 4897 | fi |
---|
| 4898 | |
---|
| 4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5 |
---|
| 4900 | $as_echo "$tcl_corefoundation" >&6; } |
---|
| 4901 | if test $tcl_corefoundation = yes; then |
---|
| 4902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5 |
---|
| 4903 | $as_echo_n "checking for CoreFoundation.framework... " >&6; } |
---|
| 4904 | if ${tcl_cv_lib_corefoundation+:} false; then : |
---|
| 4905 | $as_echo_n "(cached) " >&6 |
---|
| 4906 | else |
---|
| 4907 | |
---|
| 4908 | hold_libs=$LIBS |
---|
| 4909 | if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
| 4910 | # On Tiger there is no 64-bit CF, so remove 64-bit archs |
---|
| 4911 | # from CFLAGS et al. while testing for presence of CF. |
---|
| 4912 | # 64-bit CF is disabled in tclUnixPort.h if necessary. |
---|
| 4913 | eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' |
---|
| 4914 | done; fi |
---|
| 4915 | LIBS="$LIBS -framework CoreFoundation" |
---|
| 4916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4917 | /* end confdefs.h. */ |
---|
| 4918 | #include <CoreFoundation/CoreFoundation.h> |
---|
| 4919 | int |
---|
| 4920 | main () |
---|
| 4921 | { |
---|
| 4922 | CFBundleRef b = CFBundleGetMainBundle(); |
---|
| 4923 | ; |
---|
| 4924 | return 0; |
---|
| 4925 | } |
---|
| 4926 | _ACEOF |
---|
| 4927 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 4928 | tcl_cv_lib_corefoundation=yes |
---|
| 4929 | else |
---|
| 4930 | tcl_cv_lib_corefoundation=no |
---|
| 4931 | fi |
---|
| 4932 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4933 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4934 | if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
| 4935 | eval $v'="$hold_'$v'"' |
---|
| 4936 | done; fi; LIBS=$hold_libs |
---|
| 4937 | fi |
---|
| 4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5 |
---|
| 4939 | $as_echo "$tcl_cv_lib_corefoundation" >&6; } |
---|
| 4940 | if test $tcl_cv_lib_corefoundation = yes; then |
---|
| 4941 | LIBS="$LIBS -framework CoreFoundation" |
---|
| 4942 | $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h |
---|
| 4943 | |
---|
| 4944 | else |
---|
| 4945 | tcl_corefoundation=no |
---|
| 4946 | fi |
---|
| 4947 | if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then |
---|
| 4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5 |
---|
| 4949 | $as_echo_n "checking for 64-bit CoreFoundation... " >&6; } |
---|
| 4950 | if ${tcl_cv_lib_corefoundation_64+:} false; then : |
---|
| 4951 | $as_echo_n "(cached) " >&6 |
---|
| 4952 | else |
---|
| 4953 | |
---|
| 4954 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
| 4955 | eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' |
---|
| 4956 | done |
---|
| 4957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 4958 | /* end confdefs.h. */ |
---|
| 4959 | #include <CoreFoundation/CoreFoundation.h> |
---|
| 4960 | int |
---|
| 4961 | main () |
---|
| 4962 | { |
---|
| 4963 | CFBundleRef b = CFBundleGetMainBundle(); |
---|
| 4964 | ; |
---|
| 4965 | return 0; |
---|
| 4966 | } |
---|
| 4967 | _ACEOF |
---|
| 4968 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 4969 | tcl_cv_lib_corefoundation_64=yes |
---|
| 4970 | else |
---|
| 4971 | tcl_cv_lib_corefoundation_64=no |
---|
| 4972 | fi |
---|
| 4973 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 4974 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4975 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
| 4976 | eval $v'="$hold_'$v'"' |
---|
| 4977 | done |
---|
| 4978 | fi |
---|
| 4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5 |
---|
| 4980 | $as_echo "$tcl_cv_lib_corefoundation_64" >&6; } |
---|
| 4981 | if test $tcl_cv_lib_corefoundation_64 = no; then |
---|
| 4982 | $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h |
---|
| 4983 | |
---|
| 4984 | fi |
---|
| 4985 | fi |
---|
| 4986 | fi |
---|
| 4987 | $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h |
---|
| 4988 | |
---|
| 4989 | ;; |
---|
| 4990 | NEXTSTEP-*) |
---|
| 4991 | SHLIB_CFLAGS="" |
---|
| 4992 | SHLIB_LD="cc -nostdlib -r" |
---|
| 4993 | SHLIB_LD_LIBS="" |
---|
| 4994 | SHLIB_SUFFIX=".so" |
---|
| 4995 | DL_OBJS="tclLoadNext.o" |
---|
| 4996 | DL_LIBS="" |
---|
| 4997 | CC_SEARCH_FLAGS="" |
---|
| 4998 | LD_SEARCH_FLAGS="" |
---|
| 4999 | ;; |
---|
| 5000 | OS/390-*) |
---|
| 5001 | CFLAGS_OPTIMIZE="" # Optimizer is buggy |
---|
| 5002 | $as_echo "#define _OE_SOCKETS 1" >>confdefs.h |
---|
| 5003 | # needed in sys/socket.h |
---|
| 5004 | ;; |
---|
| 5005 | OSF1-1.0|OSF1-1.1|OSF1-1.2) |
---|
| 5006 | # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 |
---|
| 5007 | SHLIB_CFLAGS="" |
---|
| 5008 | # Hack: make package name same as library name |
---|
| 5009 | SHLIB_LD='ld -R -export :' |
---|
| 5010 | SHLIB_LD_LIBS="" |
---|
| 5011 | SHLIB_SUFFIX=".so" |
---|
| 5012 | DL_OBJS="tclLoadOSF.o" |
---|
| 5013 | DL_LIBS="" |
---|
| 5014 | CC_SEARCH_FLAGS="" |
---|
| 5015 | LD_SEARCH_FLAGS="" |
---|
| 5016 | ;; |
---|
| 5017 | OSF1-1.*) |
---|
| 5018 | # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 |
---|
| 5019 | SHLIB_CFLAGS="-fPIC" |
---|
| 5020 | if test "$SHARED_BUILD" = "1" ; then |
---|
| 5021 | SHLIB_LD="ld -shared" |
---|
| 5022 | else |
---|
| 5023 | SHLIB_LD="ld -non_shared" |
---|
| 5024 | fi |
---|
| 5025 | SHLIB_LD_LIBS="" |
---|
| 5026 | SHLIB_SUFFIX=".so" |
---|
| 5027 | DL_OBJS="tclLoadDl.o" |
---|
| 5028 | DL_LIBS="" |
---|
| 5029 | CC_SEARCH_FLAGS="" |
---|
| 5030 | LD_SEARCH_FLAGS="" |
---|
| 5031 | ;; |
---|
| 5032 | OSF1-V*) |
---|
| 5033 | # Digital OSF/1 |
---|
| 5034 | SHLIB_CFLAGS="" |
---|
| 5035 | if test "$SHARED_BUILD" = "1" ; then |
---|
| 5036 | SHLIB_LD='ld -shared -expect_unresolved "*"' |
---|
| 5037 | else |
---|
| 5038 | SHLIB_LD='ld -non_shared -expect_unresolved "*"' |
---|
| 5039 | fi |
---|
| 5040 | SHLIB_LD_LIBS="" |
---|
| 5041 | SHLIB_SUFFIX=".so" |
---|
| 5042 | DL_OBJS="tclLoadDl.o" |
---|
| 5043 | DL_LIBS="" |
---|
| 5044 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
| 5045 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
| 5046 | if test "$GCC" = "yes" ; then |
---|
| 5047 | CFLAGS="$CFLAGS -mieee" |
---|
| 5048 | else |
---|
| 5049 | CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" |
---|
| 5050 | fi |
---|
| 5051 | # see pthread_intro(3) for pthread support on osf1, k.furukawa |
---|
| 5052 | if test "${TCL_THREADS}" = "1" ; then |
---|
| 5053 | CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" |
---|
| 5054 | CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" |
---|
| 5055 | LIBS=`echo $LIBS | sed s/-lpthreads//` |
---|
| 5056 | if test "$GCC" = "yes" ; then |
---|
| 5057 | LIBS="$LIBS -lpthread -lmach -lexc" |
---|
| 5058 | else |
---|
| 5059 | CFLAGS="$CFLAGS -pthread" |
---|
| 5060 | LDFLAGS="$LDFLAGS -pthread" |
---|
| 5061 | fi |
---|
| 5062 | fi |
---|
| 5063 | |
---|
| 5064 | ;; |
---|
| 5065 | QNX-6*) |
---|
| 5066 | # QNX RTP |
---|
| 5067 | # This may work for all QNX, but it was only reported for v6. |
---|
| 5068 | SHLIB_CFLAGS="-fPIC" |
---|
| 5069 | SHLIB_LD="ld -Bshareable -x" |
---|
| 5070 | SHLIB_LD_LIBS="" |
---|
| 5071 | SHLIB_SUFFIX=".so" |
---|
| 5072 | DL_OBJS="tclLoadDl.o" |
---|
| 5073 | # dlopen is in -lc on QNX |
---|
| 5074 | DL_LIBS="" |
---|
| 5075 | CC_SEARCH_FLAGS="" |
---|
| 5076 | LD_SEARCH_FLAGS="" |
---|
| 5077 | ;; |
---|
| 5078 | RISCos-*) |
---|
| 5079 | SHLIB_CFLAGS="-G 0" |
---|
| 5080 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
| 5081 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 5082 | SHLIB_SUFFIX=".a" |
---|
| 5083 | DL_OBJS="tclLoadAout.o" |
---|
| 5084 | DL_LIBS="" |
---|
| 5085 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
| 5086 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
| 5087 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
| 5088 | ;; |
---|
| 5089 | SCO_SV-3.2*) |
---|
| 5090 | # Note, dlopen is available only on SCO 3.2.5 and greater. However, |
---|
| 5091 | # this test works, since "uname -s" was non-standard in 3.2.4 and |
---|
| 5092 | # below. |
---|
| 5093 | if test "$GCC" = "yes" ; then |
---|
| 5094 | SHLIB_CFLAGS="-fPIC -melf" |
---|
| 5095 | LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" |
---|
| 5096 | else |
---|
| 5097 | SHLIB_CFLAGS="-Kpic -belf" |
---|
| 5098 | LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" |
---|
| 5099 | fi |
---|
| 5100 | SHLIB_LD="ld -G" |
---|
| 5101 | SHLIB_LD_LIBS="" |
---|
| 5102 | SHLIB_SUFFIX=".so" |
---|
| 5103 | DL_OBJS="tclLoadDl.o" |
---|
| 5104 | DL_LIBS="" |
---|
| 5105 | CC_SEARCH_FLAGS="" |
---|
| 5106 | LD_SEARCH_FLAGS="" |
---|
| 5107 | ;; |
---|
| 5108 | SINIX*5.4*) |
---|
| 5109 | SHLIB_CFLAGS="-K PIC" |
---|
| 5110 | SHLIB_LD="cc -G" |
---|
| 5111 | SHLIB_LD_LIBS="" |
---|
| 5112 | SHLIB_SUFFIX=".so" |
---|
| 5113 | DL_OBJS="tclLoadDl.o" |
---|
| 5114 | DL_LIBS="-ldl" |
---|
| 5115 | CC_SEARCH_FLAGS="" |
---|
| 5116 | LD_SEARCH_FLAGS="" |
---|
| 5117 | ;; |
---|
| 5118 | SunOS-4*) |
---|
| 5119 | SHLIB_CFLAGS="-PIC" |
---|
| 5120 | SHLIB_LD="ld" |
---|
| 5121 | SHLIB_LD_LIBS="" |
---|
| 5122 | SHLIB_SUFFIX=".so" |
---|
| 5123 | DL_OBJS="tclLoadDl.o" |
---|
| 5124 | DL_LIBS="-ldl" |
---|
| 5125 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
| 5126 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
| 5127 | |
---|
| 5128 | # SunOS can't handle version numbers with dots in them in library |
---|
| 5129 | # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it |
---|
| 5130 | # requires an extra version number at the end of .so file names. |
---|
| 5131 | # So, the library has to have a name like libtcl75.so.1.0 |
---|
| 5132 | |
---|
| 5133 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
| 5134 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
| 5135 | TCL_LIB_VERSIONS_OK=nodots |
---|
| 5136 | ;; |
---|
| 5137 | SunOS-5.[0-6]) |
---|
| 5138 | # Careful to not let 5.10+ fall into this case |
---|
| 5139 | |
---|
| 5140 | # Note: If _REENTRANT isn't defined, then Solaris |
---|
| 5141 | # won't define thread-safe library routines. |
---|
| 5142 | |
---|
| 5143 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
---|
| 5144 | |
---|
| 5145 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
---|
| 5146 | |
---|
| 5147 | |
---|
| 5148 | SHLIB_CFLAGS="-KPIC" |
---|
| 5149 | |
---|
| 5150 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
| 5151 | # symbols when dynamically loaded into tclsh. |
---|
| 5152 | |
---|
| 5153 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 5154 | SHLIB_SUFFIX=".so" |
---|
| 5155 | DL_OBJS="tclLoadDl.o" |
---|
| 5156 | DL_LIBS="-ldl" |
---|
| 5157 | if test "$GCC" = "yes" ; then |
---|
| 5158 | SHLIB_LD="$CC -shared" |
---|
| 5159 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
| 5160 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
| 5161 | else |
---|
| 5162 | SHLIB_LD="/usr/ccs/bin/ld -G -z text" |
---|
| 5163 | CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
| 5164 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
| 5165 | fi |
---|
| 5166 | ;; |
---|
| 5167 | SunOS-5*) |
---|
| 5168 | # Note: If _REENTRANT isn't defined, then Solaris |
---|
| 5169 | # won't define thread-safe library routines. |
---|
| 5170 | |
---|
| 5171 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
---|
| 5172 | |
---|
| 5173 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
---|
| 5174 | |
---|
| 5175 | |
---|
| 5176 | SHLIB_CFLAGS="-KPIC" |
---|
| 5177 | |
---|
| 5178 | # Check to enable 64-bit flags for compiler/linker |
---|
| 5179 | if test "$do64bit" = "yes" ; then |
---|
| 5180 | arch=`isainfo` |
---|
| 5181 | if test "$arch" = "sparcv9 sparc" ; then |
---|
| 5182 | if test "$GCC" = "yes" ; then |
---|
| 5183 | if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then |
---|
| 5184 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 |
---|
| 5185 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} |
---|
| 5186 | else |
---|
| 5187 | do64bit_ok=yes |
---|
| 5188 | CFLAGS="$CFLAGS -m64 -mcpu=v9" |
---|
| 5189 | LDFLAGS="$LDFLAGS -m64 -mcpu=v9" |
---|
| 5190 | SHLIB_CFLAGS="-fPIC" |
---|
| 5191 | fi |
---|
| 5192 | else |
---|
| 5193 | do64bit_ok=yes |
---|
| 5194 | if test "$do64bitVIS" = "yes" ; then |
---|
| 5195 | CFLAGS="$CFLAGS -xarch=v9a" |
---|
| 5196 | LDFLAGS="$LDFLAGS -xarch=v9a" |
---|
| 5197 | else |
---|
| 5198 | CFLAGS="$CFLAGS -xarch=v9" |
---|
| 5199 | LDFLAGS="$LDFLAGS -xarch=v9" |
---|
| 5200 | fi |
---|
| 5201 | # Solaris 64 uses this as well |
---|
| 5202 | #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" |
---|
| 5203 | fi |
---|
| 5204 | elif test "$arch" = "amd64 i386" ; then |
---|
| 5205 | if test "$GCC" = "yes" ; then |
---|
| 5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
| 5207 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
| 5208 | else |
---|
| 5209 | do64bit_ok=yes |
---|
| 5210 | CFLAGS="$CFLAGS -xarch=amd64" |
---|
| 5211 | LDFLAGS="$LDFLAGS -xarch=amd64" |
---|
| 5212 | fi |
---|
| 5213 | else |
---|
| 5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5 |
---|
| 5215 | $as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} |
---|
| 5216 | fi |
---|
| 5217 | fi |
---|
| 5218 | |
---|
| 5219 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
| 5220 | # symbols when dynamically loaded into tclsh. |
---|
| 5221 | |
---|
| 5222 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 5223 | SHLIB_SUFFIX=".so" |
---|
| 5224 | DL_OBJS="tclLoadDl.o" |
---|
| 5225 | DL_LIBS="-ldl" |
---|
| 5226 | if test "$GCC" = "yes" ; then |
---|
| 5227 | SHLIB_LD="$CC -shared" |
---|
| 5228 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
| 5229 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
| 5230 | if test "$do64bit_ok" = "yes" ; then |
---|
| 5231 | # We need to specify -static-libgcc or we need to |
---|
| 5232 | # add the path to the sparv9 libgcc. |
---|
| 5233 | SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" |
---|
| 5234 | # for finding sparcv9 libgcc, get the regular libgcc |
---|
| 5235 | # path, remove so name and append 'sparcv9' |
---|
| 5236 | #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." |
---|
| 5237 | #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" |
---|
| 5238 | fi |
---|
| 5239 | else |
---|
| 5240 | case $system in |
---|
| 5241 | SunOS-5.[1-9][0-9]*) |
---|
| 5242 | SHLIB_LD='${CC} -G -z text ${LDFLAGS}';; |
---|
| 5243 | *) |
---|
| 5244 | SHLIB_LD="/usr/ccs/bin/ld -G -z text";; |
---|
| 5245 | esac |
---|
| 5246 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
| 5247 | LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
| 5248 | fi |
---|
| 5249 | ;; |
---|
| 5250 | ULTRIX-4.*) |
---|
| 5251 | SHLIB_CFLAGS="-G 0" |
---|
| 5252 | SHLIB_SUFFIX=".a" |
---|
| 5253 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
| 5254 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 5255 | DL_OBJS="tclLoadAout.o" |
---|
| 5256 | DL_LIBS="" |
---|
| 5257 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
| 5258 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
| 5259 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
| 5260 | if test "$GCC" != "yes" ; then |
---|
| 5261 | CFLAGS="$CFLAGS -DHAVE_TZSET -std1" |
---|
| 5262 | fi |
---|
| 5263 | ;; |
---|
| 5264 | UNIX_SV* | UnixWare-5*) |
---|
| 5265 | SHLIB_CFLAGS="-KPIC" |
---|
| 5266 | SHLIB_LD="cc -G" |
---|
| 5267 | SHLIB_LD_LIBS="" |
---|
| 5268 | SHLIB_SUFFIX=".so" |
---|
| 5269 | DL_OBJS="tclLoadDl.o" |
---|
| 5270 | DL_LIBS="-ldl" |
---|
| 5271 | # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers |
---|
| 5272 | # that don't grok the -Bexport option. Test that it does. |
---|
| 5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5 |
---|
| 5274 | $as_echo_n "checking for ld accepts -Bexport flag... " >&6; } |
---|
| 5275 | if ${tcl_cv_ld_Bexport+:} false; then : |
---|
| 5276 | $as_echo_n "(cached) " >&6 |
---|
| 5277 | else |
---|
| 5278 | |
---|
| 5279 | hold_ldflags=$LDFLAGS |
---|
| 5280 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
| 5281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5282 | /* end confdefs.h. */ |
---|
| 5283 | |
---|
| 5284 | int |
---|
| 5285 | main () |
---|
| 5286 | { |
---|
| 5287 | int i; |
---|
| 5288 | ; |
---|
| 5289 | return 0; |
---|
| 5290 | } |
---|
| 5291 | _ACEOF |
---|
| 5292 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5293 | tcl_cv_ld_Bexport=yes |
---|
| 5294 | else |
---|
| 5295 | tcl_cv_ld_Bexport=no |
---|
| 5296 | fi |
---|
| 5297 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5298 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5299 | LDFLAGS=$hold_ldflags |
---|
| 5300 | fi |
---|
| 5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5 |
---|
| 5302 | $as_echo "$tcl_cv_ld_Bexport" >&6; } |
---|
| 5303 | if test $tcl_cv_ld_Bexport = yes; then |
---|
| 5304 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
| 5305 | fi |
---|
| 5306 | CC_SEARCH_FLAGS="" |
---|
| 5307 | LD_SEARCH_FLAGS="" |
---|
| 5308 | ;; |
---|
| 5309 | esac |
---|
| 5310 | |
---|
| 5311 | if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then |
---|
| 5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 |
---|
| 5313 | $as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} |
---|
| 5314 | fi |
---|
| 5315 | |
---|
| 5316 | |
---|
| 5317 | |
---|
| 5318 | |
---|
| 5319 | # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic |
---|
| 5320 | # Loading for Tcl -- What Became of It?". Proc. 2nd Tcl/Tk Workshop, |
---|
| 5321 | # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need |
---|
| 5322 | # to determine which of several header files defines the a.out file |
---|
| 5323 | # format (a.out.h, sys/exec.h, or sys/exec_aout.h). At present, we |
---|
| 5324 | # support only a file format that is more or less version-7-compatible. |
---|
| 5325 | # In particular, |
---|
| 5326 | # - a.out files must begin with `struct exec'. |
---|
| 5327 | # - the N_TXTOFF on the `struct exec' must compute the seek address |
---|
| 5328 | # of the text segment |
---|
| 5329 | # - The `struct exec' must contain a_magic, a_text, a_data, a_bss |
---|
| 5330 | # and a_entry fields. |
---|
| 5331 | # The following compilation should succeed if and only if either sys/exec.h |
---|
| 5332 | # or a.out.h is usable for the purpose. |
---|
| 5333 | # |
---|
| 5334 | # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the |
---|
| 5335 | # `struct exec' includes a second header that contains information that |
---|
| 5336 | # duplicates the v7 fields that are needed. |
---|
| 5337 | |
---|
| 5338 | if test "x$DL_OBJS" = "xtclLoadAout.o" ; then |
---|
| 5339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5 |
---|
| 5340 | $as_echo_n "checking sys/exec.h... " >&6; } |
---|
| 5341 | if ${tcl_cv_sysexec_h+:} false; then : |
---|
| 5342 | $as_echo_n "(cached) " >&6 |
---|
| 5343 | else |
---|
| 5344 | |
---|
| 5345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5346 | /* end confdefs.h. */ |
---|
| 5347 | #include <sys/exec.h> |
---|
| 5348 | int |
---|
| 5349 | main () |
---|
| 5350 | { |
---|
| 5351 | |
---|
| 5352 | struct exec foo; |
---|
| 5353 | unsigned long seek; |
---|
| 5354 | int flag; |
---|
| 5355 | #if defined(__mips) || defined(mips) |
---|
| 5356 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
| 5357 | #else |
---|
| 5358 | seek = N_TXTOFF (foo); |
---|
| 5359 | #endif |
---|
| 5360 | flag = (foo.a_magic == OMAGIC); |
---|
| 5361 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
| 5362 | |
---|
| 5363 | ; |
---|
| 5364 | return 0; |
---|
| 5365 | } |
---|
| 5366 | _ACEOF |
---|
| 5367 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 5368 | tcl_cv_sysexec_h=usable |
---|
| 5369 | else |
---|
| 5370 | tcl_cv_sysexec_h=unusable |
---|
| 5371 | fi |
---|
| 5372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5373 | fi |
---|
| 5374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5 |
---|
| 5375 | $as_echo "$tcl_cv_sysexec_h" >&6; } |
---|
| 5376 | if test $tcl_cv_sysexec_h = usable; then |
---|
| 5377 | $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h |
---|
| 5378 | |
---|
| 5379 | else |
---|
| 5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5 |
---|
| 5381 | $as_echo_n "checking a.out.h... " >&6; } |
---|
| 5382 | if ${tcl_cv_aout_h+:} false; then : |
---|
| 5383 | $as_echo_n "(cached) " >&6 |
---|
| 5384 | else |
---|
| 5385 | |
---|
| 5386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5387 | /* end confdefs.h. */ |
---|
| 5388 | #include <a.out.h> |
---|
| 5389 | int |
---|
| 5390 | main () |
---|
| 5391 | { |
---|
| 5392 | |
---|
| 5393 | struct exec foo; |
---|
| 5394 | unsigned long seek; |
---|
| 5395 | int flag; |
---|
| 5396 | #if defined(__mips) || defined(mips) |
---|
| 5397 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
| 5398 | #else |
---|
| 5399 | seek = N_TXTOFF (foo); |
---|
| 5400 | #endif |
---|
| 5401 | flag = (foo.a_magic == OMAGIC); |
---|
| 5402 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
| 5403 | |
---|
| 5404 | ; |
---|
| 5405 | return 0; |
---|
| 5406 | } |
---|
| 5407 | _ACEOF |
---|
| 5408 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 5409 | tcl_cv_aout_h=usable |
---|
| 5410 | else |
---|
| 5411 | tcl_cv_aout_h=unusable |
---|
| 5412 | fi |
---|
| 5413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5414 | fi |
---|
| 5415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5 |
---|
| 5416 | $as_echo "$tcl_cv_aout_h" >&6; } |
---|
| 5417 | if test $tcl_cv_aout_h = usable; then |
---|
| 5418 | $as_echo "#define USE_A_OUT_H 1" >>confdefs.h |
---|
| 5419 | |
---|
| 5420 | else |
---|
| 5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5 |
---|
| 5422 | $as_echo_n "checking sys/exec_aout.h... " >&6; } |
---|
| 5423 | if ${tcl_cv_sysexecaout_h+:} false; then : |
---|
| 5424 | $as_echo_n "(cached) " >&6 |
---|
| 5425 | else |
---|
| 5426 | |
---|
| 5427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5428 | /* end confdefs.h. */ |
---|
| 5429 | #include <sys/exec_aout.h> |
---|
| 5430 | int |
---|
| 5431 | main () |
---|
| 5432 | { |
---|
| 5433 | |
---|
| 5434 | struct exec foo; |
---|
| 5435 | unsigned long seek; |
---|
| 5436 | int flag; |
---|
| 5437 | #if defined(__mips) || defined(mips) |
---|
| 5438 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
| 5439 | #else |
---|
| 5440 | seek = N_TXTOFF (foo); |
---|
| 5441 | #endif |
---|
| 5442 | flag = (foo.a_midmag == OMAGIC); |
---|
| 5443 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
| 5444 | |
---|
| 5445 | ; |
---|
| 5446 | return 0; |
---|
| 5447 | } |
---|
| 5448 | _ACEOF |
---|
| 5449 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 5450 | tcl_cv_sysexecaout_h=usable |
---|
| 5451 | else |
---|
| 5452 | tcl_cv_sysexecaout_h=unusable |
---|
| 5453 | fi |
---|
| 5454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5455 | fi |
---|
| 5456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5 |
---|
| 5457 | $as_echo "$tcl_cv_sysexecaout_h" >&6; } |
---|
| 5458 | if test $tcl_cv_sysexecaout_h = usable; then |
---|
| 5459 | $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h |
---|
| 5460 | |
---|
| 5461 | else |
---|
| 5462 | DL_OBJS="" |
---|
| 5463 | fi |
---|
| 5464 | fi |
---|
| 5465 | fi |
---|
| 5466 | fi |
---|
| 5467 | |
---|
| 5468 | # Step 5: disable dynamic loading if requested via a command-line switch. |
---|
| 5469 | |
---|
| 5470 | # Check whether --enable-load was given. |
---|
| 5471 | if test "${enable_load+set}" = set; then : |
---|
| 5472 | enableval=$enable_load; tcl_ok=$enableval |
---|
| 5473 | else |
---|
| 5474 | tcl_ok=yes |
---|
| 5475 | fi |
---|
| 5476 | |
---|
| 5477 | if test "$tcl_ok" = "no"; then |
---|
| 5478 | DL_OBJS="" |
---|
| 5479 | fi |
---|
| 5480 | |
---|
| 5481 | if test "x$DL_OBJS" != "x" ; then |
---|
| 5482 | BUILD_DLTEST="\$(DLTEST_TARGETS)" |
---|
| 5483 | else |
---|
| 5484 | echo "Can't figure out how to do dynamic loading or shared libraries" |
---|
| 5485 | echo "on this system." |
---|
| 5486 | SHLIB_CFLAGS="" |
---|
| 5487 | SHLIB_LD="" |
---|
| 5488 | SHLIB_SUFFIX="" |
---|
| 5489 | DL_OBJS="tclLoadNone.o" |
---|
| 5490 | DL_LIBS="" |
---|
| 5491 | LDFLAGS="$LDFLAGS_ORIG" |
---|
| 5492 | CC_SEARCH_FLAGS="" |
---|
| 5493 | LD_SEARCH_FLAGS="" |
---|
| 5494 | BUILD_DLTEST="" |
---|
| 5495 | fi |
---|
| 5496 | |
---|
| 5497 | # If we're running gcc, then change the C flags for compiling shared |
---|
| 5498 | # libraries to the right flags for gcc, instead of those for the |
---|
| 5499 | # standard manufacturer compiler. |
---|
| 5500 | |
---|
| 5501 | if test "$DL_OBJS" != "tclLoadNone.o" ; then |
---|
| 5502 | if test "$GCC" = "yes" ; then |
---|
| 5503 | case $system in |
---|
| 5504 | AIX-*) |
---|
| 5505 | ;; |
---|
| 5506 | BSD/OS*) |
---|
| 5507 | ;; |
---|
| 5508 | IRIX*) |
---|
| 5509 | ;; |
---|
| 5510 | NetBSD-*|FreeBSD-*|OpenBSD-*) |
---|
| 5511 | ;; |
---|
| 5512 | Darwin-*) |
---|
| 5513 | ;; |
---|
| 5514 | RISCos-*) |
---|
| 5515 | ;; |
---|
| 5516 | SCO_SV-3.2*) |
---|
| 5517 | ;; |
---|
| 5518 | ULTRIX-4.*) |
---|
| 5519 | ;; |
---|
| 5520 | *) |
---|
| 5521 | SHLIB_CFLAGS="-fPIC" |
---|
| 5522 | ;; |
---|
| 5523 | esac |
---|
| 5524 | fi |
---|
| 5525 | fi |
---|
| 5526 | |
---|
| 5527 | if test "$SHARED_LIB_SUFFIX" = "" ; then |
---|
| 5528 | SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}' |
---|
| 5529 | fi |
---|
| 5530 | if test "$UNSHARED_LIB_SUFFIX" = "" ; then |
---|
| 5531 | UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' |
---|
| 5532 | fi |
---|
| 5533 | |
---|
| 5534 | if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then |
---|
| 5535 | LIB_SUFFIX=${SHARED_LIB_SUFFIX} |
---|
| 5536 | MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' |
---|
| 5537 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' |
---|
| 5538 | else |
---|
| 5539 | LIB_SUFFIX=${UNSHARED_LIB_SUFFIX} |
---|
| 5540 | |
---|
| 5541 | if test "$RANLIB" = "" ; then |
---|
| 5542 | MAKE_LIB='$(STLIB_LD) $@ ${OBJS}' |
---|
| 5543 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' |
---|
| 5544 | else |
---|
| 5545 | MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@' |
---|
| 5546 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))' |
---|
| 5547 | fi |
---|
| 5548 | |
---|
| 5549 | fi |
---|
| 5550 | |
---|
| 5551 | |
---|
| 5552 | # Stub lib does not depend on shared/static configuration |
---|
| 5553 | if test "$RANLIB" = "" ; then |
---|
| 5554 | MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}' |
---|
| 5555 | INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)' |
---|
| 5556 | else |
---|
| 5557 | MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@' |
---|
| 5558 | INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))' |
---|
| 5559 | fi |
---|
| 5560 | |
---|
| 5561 | |
---|
| 5562 | |
---|
| 5563 | |
---|
| 5564 | |
---|
| 5565 | |
---|
| 5566 | |
---|
| 5567 | |
---|
| 5568 | |
---|
| 5569 | |
---|
| 5570 | |
---|
| 5571 | |
---|
| 5572 | |
---|
| 5573 | |
---|
| 5574 | |
---|
| 5575 | |
---|
| 5576 | |
---|
| 5577 | |
---|
| 5578 | |
---|
| 5579 | |
---|
| 5580 | |
---|
| 5581 | |
---|
| 5582 | |
---|
| 5583 | |
---|
| 5584 | |
---|
| 5585 | |
---|
| 5586 | |
---|
| 5587 | |
---|
| 5588 | |
---|
| 5589 | |
---|
| 5590 | |
---|
| 5591 | |
---|
| 5592 | |
---|
| 5593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
---|
| 5594 | $as_echo_n "checking for X... " >&6; } |
---|
| 5595 | |
---|
| 5596 | |
---|
| 5597 | # Check whether --with-x was given. |
---|
| 5598 | if test "${with_x+set}" = set; then : |
---|
| 5599 | withval=$with_x; |
---|
| 5600 | fi |
---|
| 5601 | |
---|
| 5602 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
| 5603 | if test "x$with_x" = xno; then |
---|
| 5604 | # The user explicitly disabled X. |
---|
| 5605 | have_x=disabled |
---|
| 5606 | else |
---|
| 5607 | case $x_includes,$x_libraries in #( |
---|
| 5608 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
---|
| 5609 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
---|
| 5610 | $as_echo_n "(cached) " >&6 |
---|
| 5611 | else |
---|
| 5612 | # One or both of the vars are not set, and there is no cached value. |
---|
| 5613 | ac_x_includes=no ac_x_libraries=no |
---|
| 5614 | rm -f -r conftest.dir |
---|
| 5615 | if mkdir conftest.dir; then |
---|
| 5616 | cd conftest.dir |
---|
| 5617 | cat >Imakefile <<'_ACEOF' |
---|
| 5618 | incroot: |
---|
| 5619 | @echo incroot='${INCROOT}' |
---|
| 5620 | usrlibdir: |
---|
| 5621 | @echo usrlibdir='${USRLIBDIR}' |
---|
| 5622 | libdir: |
---|
| 5623 | @echo libdir='${LIBDIR}' |
---|
| 5624 | _ACEOF |
---|
| 5625 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
| 5626 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
| 5627 | for ac_var in incroot usrlibdir libdir; do |
---|
| 5628 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
---|
| 5629 | done |
---|
| 5630 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
| 5631 | for ac_extension in a so sl dylib la dll; do |
---|
| 5632 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
---|
| 5633 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
---|
| 5634 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
| 5635 | fi |
---|
| 5636 | done |
---|
| 5637 | # Screen out bogus values from the imake configuration. They are |
---|
| 5638 | # bogus both because they are the default anyway, and because |
---|
| 5639 | # using them would break gcc on systems where it needs fixed includes. |
---|
| 5640 | case $ac_im_incroot in |
---|
| 5641 | /usr/include) ac_x_includes= ;; |
---|
| 5642 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
---|
| 5643 | esac |
---|
| 5644 | case $ac_im_usrlibdir in |
---|
| 5645 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
---|
| 5646 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
---|
| 5647 | esac |
---|
| 5648 | fi |
---|
| 5649 | cd .. |
---|
| 5650 | rm -f -r conftest.dir |
---|
| 5651 | fi |
---|
| 5652 | |
---|
| 5653 | # Standard set of common directories for X headers. |
---|
| 5654 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
| 5655 | ac_x_header_dirs=' |
---|
| 5656 | /usr/X11/include |
---|
| 5657 | /usr/X11R7/include |
---|
| 5658 | /usr/X11R6/include |
---|
| 5659 | /usr/X11R5/include |
---|
| 5660 | /usr/X11R4/include |
---|
| 5661 | |
---|
| 5662 | /usr/include/X11 |
---|
| 5663 | /usr/include/X11R7 |
---|
| 5664 | /usr/include/X11R6 |
---|
| 5665 | /usr/include/X11R5 |
---|
| 5666 | /usr/include/X11R4 |
---|
| 5667 | |
---|
| 5668 | /usr/local/X11/include |
---|
| 5669 | /usr/local/X11R7/include |
---|
| 5670 | /usr/local/X11R6/include |
---|
| 5671 | /usr/local/X11R5/include |
---|
| 5672 | /usr/local/X11R4/include |
---|
| 5673 | |
---|
| 5674 | /usr/local/include/X11 |
---|
| 5675 | /usr/local/include/X11R7 |
---|
| 5676 | /usr/local/include/X11R6 |
---|
| 5677 | /usr/local/include/X11R5 |
---|
| 5678 | /usr/local/include/X11R4 |
---|
| 5679 | |
---|
| 5680 | /usr/X386/include |
---|
| 5681 | /usr/x386/include |
---|
| 5682 | /usr/XFree86/include/X11 |
---|
| 5683 | |
---|
| 5684 | /usr/include |
---|
| 5685 | /usr/local/include |
---|
| 5686 | /usr/unsupported/include |
---|
| 5687 | /usr/athena/include |
---|
| 5688 | /usr/local/x11r5/include |
---|
| 5689 | /usr/lpp/Xamples/include |
---|
| 5690 | |
---|
| 5691 | /usr/openwin/include |
---|
| 5692 | /usr/openwin/share/include' |
---|
| 5693 | |
---|
| 5694 | if test "$ac_x_includes" = no; then |
---|
| 5695 | # Guess where to find include files, by looking for Xlib.h. |
---|
| 5696 | # First, try using that file with no special directory specified. |
---|
| 5697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5698 | /* end confdefs.h. */ |
---|
| 5699 | #include <X11/Xlib.h> |
---|
| 5700 | _ACEOF |
---|
| 5701 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 5702 | # We can compile using X headers with no special include directory. |
---|
| 5703 | ac_x_includes= |
---|
| 5704 | else |
---|
| 5705 | for ac_dir in $ac_x_header_dirs; do |
---|
| 5706 | if test -r "$ac_dir/X11/Xlib.h"; then |
---|
| 5707 | ac_x_includes=$ac_dir |
---|
| 5708 | break |
---|
| 5709 | fi |
---|
| 5710 | done |
---|
| 5711 | fi |
---|
| 5712 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 5713 | fi # $ac_x_includes = no |
---|
| 5714 | |
---|
| 5715 | if test "$ac_x_libraries" = no; then |
---|
| 5716 | # Check for the libraries. |
---|
| 5717 | # See if we find them without any special options. |
---|
| 5718 | # Don't add to $LIBS permanently. |
---|
| 5719 | ac_save_LIBS=$LIBS |
---|
| 5720 | LIBS="-lX11 $LIBS" |
---|
| 5721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 5722 | /* end confdefs.h. */ |
---|
| 5723 | #include <X11/Xlib.h> |
---|
| 5724 | int |
---|
| 5725 | main () |
---|
| 5726 | { |
---|
| 5727 | XrmInitialize () |
---|
| 5728 | ; |
---|
| 5729 | return 0; |
---|
| 5730 | } |
---|
| 5731 | _ACEOF |
---|
| 5732 | if ac_fn_c_try_link "$LINENO"; then : |
---|
| 5733 | LIBS=$ac_save_LIBS |
---|
| 5734 | # We can link X programs with no special library path. |
---|
| 5735 | ac_x_libraries= |
---|
| 5736 | else |
---|
| 5737 | LIBS=$ac_save_LIBS |
---|
| 5738 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
---|
| 5739 | do |
---|
| 5740 | # Don't even attempt the hair of trying to link an X program! |
---|
| 5741 | for ac_extension in a so sl dylib la dll; do |
---|
| 5742 | if test -r "$ac_dir/libX11.$ac_extension"; then |
---|
| 5743 | ac_x_libraries=$ac_dir |
---|
| 5744 | break 2 |
---|
| 5745 | fi |
---|
| 5746 | done |
---|
| 5747 | done |
---|
| 5748 | fi |
---|
| 5749 | rm -f core conftest.err conftest.$ac_objext \ |
---|
| 5750 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5751 | fi # $ac_x_libraries = no |
---|
| 5752 | |
---|
| 5753 | case $ac_x_includes,$ac_x_libraries in #( |
---|
| 5754 | no,* | *,no | *\'*) |
---|
| 5755 | # Didn't find X, or a directory has "'" in its name. |
---|
| 5756 | ac_cv_have_x="have_x=no";; #( |
---|
| 5757 | *) |
---|
| 5758 | # Record where we found X for the cache. |
---|
| 5759 | ac_cv_have_x="have_x=yes\ |
---|
| 5760 | ac_x_includes='$ac_x_includes'\ |
---|
| 5761 | ac_x_libraries='$ac_x_libraries'" |
---|
| 5762 | esac |
---|
| 5763 | fi |
---|
| 5764 | ;; #( |
---|
| 5765 | *) have_x=yes;; |
---|
| 5766 | esac |
---|
| 5767 | eval "$ac_cv_have_x" |
---|
| 5768 | fi # $with_x != no |
---|
| 5769 | |
---|
| 5770 | if test "$have_x" != yes; then |
---|
| 5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
---|
| 5772 | $as_echo "$have_x" >&6; } |
---|
| 5773 | no_x=yes |
---|
| 5774 | else |
---|
| 5775 | # If each of the values was on the command line, it overrides each guess. |
---|
| 5776 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
| 5777 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
| 5778 | # Update the cache value to reflect the command line values. |
---|
| 5779 | ac_cv_have_x="have_x=yes\ |
---|
| 5780 | ac_x_includes='$x_includes'\ |
---|
| 5781 | ac_x_libraries='$x_libraries'" |
---|
| 5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
---|
| 5783 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
---|
| 5784 | fi |
---|
| 5785 | |
---|
| 5786 | |
---|
| 5787 | # Find a good install program. We prefer a C program (faster), |
---|
| 5788 | # so one script is as good as another. But avoid the broken or |
---|
| 5789 | # incompatible versions: |
---|
| 5790 | # SysV /etc/install, /usr/sbin/install |
---|
| 5791 | # SunOS /usr/etc/install |
---|
| 5792 | # IRIX /sbin/install |
---|
| 5793 | # AIX /bin/install |
---|
| 5794 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 5795 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 5796 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 5797 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 5798 | # OS/2's system install, which has a completely different semantic |
---|
| 5799 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 5800 | # Reject install programs that cannot install multiple files. |
---|
| 5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
| 5802 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
| 5803 | if test -z "$INSTALL"; then |
---|
| 5804 | if ${ac_cv_path_install+:} false; then : |
---|
| 5805 | $as_echo_n "(cached) " >&6 |
---|
| 5806 | else |
---|
| 5807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 5808 | for as_dir in $PATH |
---|
| 5809 | do |
---|
| 5810 | IFS=$as_save_IFS |
---|
| 5811 | test -z "$as_dir" && as_dir=. |
---|
| 5812 | # Account for people who put trailing slashes in PATH elements. |
---|
| 5813 | case $as_dir/ in #(( |
---|
| 5814 | ./ | .// | /[cC]/* | \ |
---|
| 5815 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 5816 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
| 5817 | /usr/ucb/* ) ;; |
---|
| 5818 | *) |
---|
| 5819 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 5820 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 5821 | # by default. |
---|
| 5822 | for ac_prog in ginstall scoinst install; do |
---|
| 5823 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 5824 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 5825 | if test $ac_prog = install && |
---|
| 5826 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 5827 | # AIX install. It has an incompatible calling convention. |
---|
| 5828 | : |
---|
| 5829 | elif test $ac_prog = install && |
---|
| 5830 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 5831 | # program-specific install script used by HP pwplus--don't use. |
---|
| 5832 | : |
---|
| 5833 | else |
---|
| 5834 | rm -rf conftest.one conftest.two conftest.dir |
---|
| 5835 | echo one > conftest.one |
---|
| 5836 | echo two > conftest.two |
---|
| 5837 | mkdir conftest.dir |
---|
| 5838 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
| 5839 | test -s conftest.one && test -s conftest.two && |
---|
| 5840 | test -s conftest.dir/conftest.one && |
---|
| 5841 | test -s conftest.dir/conftest.two |
---|
| 5842 | then |
---|
| 5843 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 5844 | break 3 |
---|
| 5845 | fi |
---|
| 5846 | fi |
---|
| 5847 | fi |
---|
| 5848 | done |
---|
| 5849 | done |
---|
| 5850 | ;; |
---|
| 5851 | esac |
---|
| 5852 | |
---|
| 5853 | done |
---|
| 5854 | IFS=$as_save_IFS |
---|
| 5855 | |
---|
| 5856 | rm -rf conftest.one conftest.two conftest.dir |
---|
| 5857 | |
---|
| 5858 | fi |
---|
| 5859 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 5860 | INSTALL=$ac_cv_path_install |
---|
| 5861 | else |
---|
| 5862 | # As a last resort, use the slow shell script. Don't cache a |
---|
| 5863 | # value for INSTALL within a source directory, because that will |
---|
| 5864 | # break other packages using the cache if that directory is |
---|
| 5865 | # removed, or if the value is a relative name. |
---|
| 5866 | INSTALL=$ac_install_sh |
---|
| 5867 | fi |
---|
| 5868 | fi |
---|
| 5869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
| 5870 | $as_echo "$INSTALL" >&6; } |
---|
| 5871 | |
---|
| 5872 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 5873 | # It thinks the first close brace ends the variable substitution. |
---|
| 5874 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 5875 | |
---|
| 5876 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 5877 | |
---|
| 5878 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 5879 | |
---|
| 5880 | if test -n "$ac_tool_prefix"; then |
---|
| 5881 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 5882 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
| 5883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 5884 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 5885 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
| 5886 | $as_echo_n "(cached) " >&6 |
---|
| 5887 | else |
---|
| 5888 | if test -n "$RANLIB"; then |
---|
| 5889 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 5890 | else |
---|
| 5891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 5892 | for as_dir in $PATH |
---|
| 5893 | do |
---|
| 5894 | IFS=$as_save_IFS |
---|
| 5895 | test -z "$as_dir" && as_dir=. |
---|
| 5896 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 5897 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 5898 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
| 5899 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 5900 | break 2 |
---|
| 5901 | fi |
---|
| 5902 | done |
---|
| 5903 | done |
---|
| 5904 | IFS=$as_save_IFS |
---|
| 5905 | |
---|
| 5906 | fi |
---|
| 5907 | fi |
---|
| 5908 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 5909 | if test -n "$RANLIB"; then |
---|
| 5910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
| 5911 | $as_echo "$RANLIB" >&6; } |
---|
| 5912 | else |
---|
| 5913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 5914 | $as_echo "no" >&6; } |
---|
| 5915 | fi |
---|
| 5916 | |
---|
| 5917 | |
---|
| 5918 | fi |
---|
| 5919 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 5920 | ac_ct_RANLIB=$RANLIB |
---|
| 5921 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 5922 | set dummy ranlib; ac_word=$2 |
---|
| 5923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 5924 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 5925 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
| 5926 | $as_echo_n "(cached) " >&6 |
---|
| 5927 | else |
---|
| 5928 | if test -n "$ac_ct_RANLIB"; then |
---|
| 5929 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 5930 | else |
---|
| 5931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 5932 | for as_dir in $PATH |
---|
| 5933 | do |
---|
| 5934 | IFS=$as_save_IFS |
---|
| 5935 | test -z "$as_dir" && as_dir=. |
---|
| 5936 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 5937 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 5938 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
| 5939 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 5940 | break 2 |
---|
| 5941 | fi |
---|
| 5942 | done |
---|
| 5943 | done |
---|
| 5944 | IFS=$as_save_IFS |
---|
| 5945 | |
---|
| 5946 | fi |
---|
| 5947 | fi |
---|
| 5948 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 5949 | if test -n "$ac_ct_RANLIB"; then |
---|
| 5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
| 5951 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
| 5952 | else |
---|
| 5953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 5954 | $as_echo "no" >&6; } |
---|
| 5955 | fi |
---|
| 5956 | |
---|
| 5957 | if test "x$ac_ct_RANLIB" = x; then |
---|
| 5958 | RANLIB=":" |
---|
| 5959 | else |
---|
| 5960 | case $cross_compiling:$ac_tool_warned in |
---|
| 5961 | yes:) |
---|
| 5962 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 5963 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 5964 | ac_tool_warned=yes ;; |
---|
| 5965 | esac |
---|
| 5966 | RANLIB=$ac_ct_RANLIB |
---|
| 5967 | fi |
---|
| 5968 | else |
---|
| 5969 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 5970 | fi |
---|
| 5971 | |
---|
| 5972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
---|
| 5973 | $as_echo_n "checking whether ln -s works... " >&6; } |
---|
| 5974 | LN_S=$as_ln_s |
---|
| 5975 | if test "$LN_S" = "ln -s"; then |
---|
| 5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
| 5977 | $as_echo "yes" >&6; } |
---|
| 5978 | else |
---|
| 5979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
---|
| 5980 | $as_echo "no, using $LN_S" >&6; } |
---|
| 5981 | fi |
---|
| 5982 | |
---|
| 5983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
| 5984 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
| 5985 | if test -z "$MKDIR_P"; then |
---|
| 5986 | if ${ac_cv_path_mkdir+:} false; then : |
---|
| 5987 | $as_echo_n "(cached) " >&6 |
---|
| 5988 | else |
---|
| 5989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 5990 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
| 5991 | do |
---|
| 5992 | IFS=$as_save_IFS |
---|
| 5993 | test -z "$as_dir" && as_dir=. |
---|
| 5994 | for ac_prog in mkdir gmkdir; do |
---|
| 5995 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 5996 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
---|
| 5997 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
| 5998 | 'mkdir (GNU coreutils) '* | \ |
---|
| 5999 | 'mkdir (coreutils) '* | \ |
---|
| 6000 | 'mkdir (fileutils) '4.1*) |
---|
| 6001 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
| 6002 | break 3;; |
---|
| 6003 | esac |
---|
| 6004 | done |
---|
| 6005 | done |
---|
| 6006 | done |
---|
| 6007 | IFS=$as_save_IFS |
---|
| 6008 | |
---|
| 6009 | fi |
---|
| 6010 | |
---|
| 6011 | test -d ./--version && rmdir ./--version |
---|
| 6012 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
| 6013 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
| 6014 | else |
---|
| 6015 | # As a last resort, use the slow shell script. Don't cache a |
---|
| 6016 | # value for MKDIR_P within a source directory, because that will |
---|
| 6017 | # break other packages using the cache if that directory is |
---|
| 6018 | # removed, or if the value is a relative name. |
---|
| 6019 | MKDIR_P="$ac_install_sh -d" |
---|
| 6020 | fi |
---|
| 6021 | fi |
---|
| 6022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
| 6023 | $as_echo "$MKDIR_P" >&6; } |
---|
| 6024 | |
---|
| 6025 | |
---|
| 6026 | ac_ext=c |
---|
| 6027 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 6028 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 6029 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 6030 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 6031 | if test -n "$ac_tool_prefix"; then |
---|
| 6032 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 6033 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 6035 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 6036 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 6037 | $as_echo_n "(cached) " >&6 |
---|
| 6038 | else |
---|
| 6039 | if test -n "$CC"; then |
---|
| 6040 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 6041 | else |
---|
| 6042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6043 | for as_dir in $PATH |
---|
| 6044 | do |
---|
| 6045 | IFS=$as_save_IFS |
---|
| 6046 | test -z "$as_dir" && as_dir=. |
---|
| 6047 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 6048 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 6049 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 6050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 6051 | break 2 |
---|
| 6052 | fi |
---|
| 6053 | done |
---|
| 6054 | done |
---|
| 6055 | IFS=$as_save_IFS |
---|
| 6056 | |
---|
| 6057 | fi |
---|
| 6058 | fi |
---|
| 6059 | CC=$ac_cv_prog_CC |
---|
| 6060 | if test -n "$CC"; then |
---|
| 6061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 6062 | $as_echo "$CC" >&6; } |
---|
| 6063 | else |
---|
| 6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 6065 | $as_echo "no" >&6; } |
---|
| 6066 | fi |
---|
| 6067 | |
---|
| 6068 | |
---|
| 6069 | fi |
---|
| 6070 | if test -z "$ac_cv_prog_CC"; then |
---|
| 6071 | ac_ct_CC=$CC |
---|
| 6072 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 6073 | set dummy gcc; ac_word=$2 |
---|
| 6074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 6075 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 6076 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
| 6077 | $as_echo_n "(cached) " >&6 |
---|
| 6078 | else |
---|
| 6079 | if test -n "$ac_ct_CC"; then |
---|
| 6080 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 6081 | else |
---|
| 6082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6083 | for as_dir in $PATH |
---|
| 6084 | do |
---|
| 6085 | IFS=$as_save_IFS |
---|
| 6086 | test -z "$as_dir" && as_dir=. |
---|
| 6087 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 6088 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 6089 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 6090 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 6091 | break 2 |
---|
| 6092 | fi |
---|
| 6093 | done |
---|
| 6094 | done |
---|
| 6095 | IFS=$as_save_IFS |
---|
| 6096 | |
---|
| 6097 | fi |
---|
| 6098 | fi |
---|
| 6099 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 6100 | if test -n "$ac_ct_CC"; then |
---|
| 6101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
| 6102 | $as_echo "$ac_ct_CC" >&6; } |
---|
| 6103 | else |
---|
| 6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 6105 | $as_echo "no" >&6; } |
---|
| 6106 | fi |
---|
| 6107 | |
---|
| 6108 | if test "x$ac_ct_CC" = x; then |
---|
| 6109 | CC="" |
---|
| 6110 | else |
---|
| 6111 | case $cross_compiling:$ac_tool_warned in |
---|
| 6112 | yes:) |
---|
| 6113 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 6114 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 6115 | ac_tool_warned=yes ;; |
---|
| 6116 | esac |
---|
| 6117 | CC=$ac_ct_CC |
---|
| 6118 | fi |
---|
| 6119 | else |
---|
| 6120 | CC="$ac_cv_prog_CC" |
---|
| 6121 | fi |
---|
| 6122 | |
---|
| 6123 | if test -z "$CC"; then |
---|
| 6124 | if test -n "$ac_tool_prefix"; then |
---|
| 6125 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 6126 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 6127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 6128 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 6129 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 6130 | $as_echo_n "(cached) " >&6 |
---|
| 6131 | else |
---|
| 6132 | if test -n "$CC"; then |
---|
| 6133 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 6134 | else |
---|
| 6135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6136 | for as_dir in $PATH |
---|
| 6137 | do |
---|
| 6138 | IFS=$as_save_IFS |
---|
| 6139 | test -z "$as_dir" && as_dir=. |
---|
| 6140 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 6141 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 6142 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 6143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 6144 | break 2 |
---|
| 6145 | fi |
---|
| 6146 | done |
---|
| 6147 | done |
---|
| 6148 | IFS=$as_save_IFS |
---|
| 6149 | |
---|
| 6150 | fi |
---|
| 6151 | fi |
---|
| 6152 | CC=$ac_cv_prog_CC |
---|
| 6153 | if test -n "$CC"; then |
---|
| 6154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 6155 | $as_echo "$CC" >&6; } |
---|
| 6156 | else |
---|
| 6157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 6158 | $as_echo "no" >&6; } |
---|
| 6159 | fi |
---|
| 6160 | |
---|
| 6161 | |
---|
| 6162 | fi |
---|
| 6163 | fi |
---|
| 6164 | if test -z "$CC"; then |
---|
| 6165 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 6166 | set dummy cc; ac_word=$2 |
---|
| 6167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 6168 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 6169 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 6170 | $as_echo_n "(cached) " >&6 |
---|
| 6171 | else |
---|
| 6172 | if test -n "$CC"; then |
---|
| 6173 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 6174 | else |
---|
| 6175 | ac_prog_rejected=no |
---|
| 6176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6177 | for as_dir in $PATH |
---|
| 6178 | do |
---|
| 6179 | IFS=$as_save_IFS |
---|
| 6180 | test -z "$as_dir" && as_dir=. |
---|
| 6181 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 6182 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 6183 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 6184 | ac_prog_rejected=yes |
---|
| 6185 | continue |
---|
| 6186 | fi |
---|
| 6187 | ac_cv_prog_CC="cc" |
---|
| 6188 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 6189 | break 2 |
---|
| 6190 | fi |
---|
| 6191 | done |
---|
| 6192 | done |
---|
| 6193 | IFS=$as_save_IFS |
---|
| 6194 | |
---|
| 6195 | if test $ac_prog_rejected = yes; then |
---|
| 6196 | # We found a bogon in the path, so make sure we never use it. |
---|
| 6197 | set dummy $ac_cv_prog_CC |
---|
| 6198 | shift |
---|
| 6199 | if test $# != 0; then |
---|
| 6200 | # We chose a different compiler from the bogus one. |
---|
| 6201 | # However, it has the same basename, so the bogon will be chosen |
---|
| 6202 | # first if we set CC to just the basename; use the full file name. |
---|
| 6203 | shift |
---|
| 6204 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 6205 | fi |
---|
| 6206 | fi |
---|
| 6207 | fi |
---|
| 6208 | fi |
---|
| 6209 | CC=$ac_cv_prog_CC |
---|
| 6210 | if test -n "$CC"; then |
---|
| 6211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 6212 | $as_echo "$CC" >&6; } |
---|
| 6213 | else |
---|
| 6214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 6215 | $as_echo "no" >&6; } |
---|
| 6216 | fi |
---|
| 6217 | |
---|
| 6218 | |
---|
| 6219 | fi |
---|
| 6220 | if test -z "$CC"; then |
---|
| 6221 | if test -n "$ac_tool_prefix"; then |
---|
| 6222 | for ac_prog in cl.exe |
---|
| 6223 | do |
---|
| 6224 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 6225 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 6227 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 6228 | if ${ac_cv_prog_CC+:} false; then : |
---|
| 6229 | $as_echo_n "(cached) " >&6 |
---|
| 6230 | else |
---|
| 6231 | if test -n "$CC"; then |
---|
| 6232 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 6233 | else |
---|
| 6234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6235 | for as_dir in $PATH |
---|
| 6236 | do |
---|
| 6237 | IFS=$as_save_IFS |
---|
| 6238 | test -z "$as_dir" && as_dir=. |
---|
| 6239 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 6240 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 6241 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 6242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 6243 | break 2 |
---|
| 6244 | fi |
---|
| 6245 | done |
---|
| 6246 | done |
---|
| 6247 | IFS=$as_save_IFS |
---|
| 6248 | |
---|
| 6249 | fi |
---|
| 6250 | fi |
---|
| 6251 | CC=$ac_cv_prog_CC |
---|
| 6252 | if test -n "$CC"; then |
---|
| 6253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
| 6254 | $as_echo "$CC" >&6; } |
---|
| 6255 | else |
---|
| 6256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 6257 | $as_echo "no" >&6; } |
---|
| 6258 | fi |
---|
| 6259 | |
---|
| 6260 | |
---|
| 6261 | test -n "$CC" && break |
---|
| 6262 | done |
---|
| 6263 | fi |
---|
| 6264 | if test -z "$CC"; then |
---|
| 6265 | ac_ct_CC=$CC |
---|
| 6266 | for ac_prog in cl.exe |
---|
| 6267 | do |
---|
| 6268 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 6269 | set dummy $ac_prog; ac_word=$2 |
---|
| 6270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 6271 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 6272 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
| 6273 | $as_echo_n "(cached) " >&6 |
---|
| 6274 | else |
---|
| 6275 | if test -n "$ac_ct_CC"; then |
---|
| 6276 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 6277 | else |
---|
| 6278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6279 | for as_dir in $PATH |
---|
| 6280 | do |
---|
| 6281 | IFS=$as_save_IFS |
---|
| 6282 | test -z "$as_dir" && as_dir=. |
---|
| 6283 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 6284 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 6285 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 6286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 6287 | break 2 |
---|
| 6288 | fi |
---|
| 6289 | done |
---|
| 6290 | done |
---|
| 6291 | IFS=$as_save_IFS |
---|
| 6292 | |
---|
| 6293 | fi |
---|
| 6294 | fi |
---|
| 6295 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 6296 | if test -n "$ac_ct_CC"; then |
---|
| 6297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
| 6298 | $as_echo "$ac_ct_CC" >&6; } |
---|
| 6299 | else |
---|
| 6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 6301 | $as_echo "no" >&6; } |
---|
| 6302 | fi |
---|
| 6303 | |
---|
| 6304 | |
---|
| 6305 | test -n "$ac_ct_CC" && break |
---|
| 6306 | done |
---|
| 6307 | |
---|
| 6308 | if test "x$ac_ct_CC" = x; then |
---|
| 6309 | CC="" |
---|
| 6310 | else |
---|
| 6311 | case $cross_compiling:$ac_tool_warned in |
---|
| 6312 | yes:) |
---|
| 6313 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 6314 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 6315 | ac_tool_warned=yes ;; |
---|
| 6316 | esac |
---|
| 6317 | CC=$ac_ct_CC |
---|
| 6318 | fi |
---|
| 6319 | fi |
---|
| 6320 | |
---|
| 6321 | fi |
---|
| 6322 | |
---|
| 6323 | |
---|
| 6324 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 6325 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 6326 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
| 6327 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 6328 | |
---|
| 6329 | # Provide some information about the compiler. |
---|
| 6330 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
| 6331 | set X $ac_compile |
---|
| 6332 | ac_compiler=$2 |
---|
| 6333 | for ac_option in --version -v -V -qversion; do |
---|
| 6334 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
| 6335 | case "(($ac_try" in |
---|
| 6336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 6337 | *) ac_try_echo=$ac_try;; |
---|
| 6338 | esac |
---|
| 6339 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 6340 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 6341 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
| 6342 | ac_status=$? |
---|
| 6343 | if test -s conftest.err; then |
---|
| 6344 | sed '10a\ |
---|
| 6345 | ... rest of stderr output deleted ... |
---|
| 6346 | 10q' conftest.err >conftest.er1 |
---|
| 6347 | cat conftest.er1 >&5 |
---|
| 6348 | fi |
---|
| 6349 | rm -f conftest.er1 conftest.err |
---|
| 6350 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 6351 | test $ac_status = 0; } |
---|
| 6352 | done |
---|
| 6353 | |
---|
| 6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
| 6355 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
| 6356 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
| 6357 | $as_echo_n "(cached) " >&6 |
---|
| 6358 | else |
---|
| 6359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 6360 | /* end confdefs.h. */ |
---|
| 6361 | |
---|
| 6362 | int |
---|
| 6363 | main () |
---|
| 6364 | { |
---|
| 6365 | #ifndef __GNUC__ |
---|
| 6366 | choke me |
---|
| 6367 | #endif |
---|
| 6368 | |
---|
| 6369 | ; |
---|
| 6370 | return 0; |
---|
| 6371 | } |
---|
| 6372 | _ACEOF |
---|
| 6373 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 6374 | ac_compiler_gnu=yes |
---|
| 6375 | else |
---|
| 6376 | ac_compiler_gnu=no |
---|
| 6377 | fi |
---|
| 6378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6379 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 6380 | |
---|
| 6381 | fi |
---|
| 6382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 6383 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
| 6384 | if test $ac_compiler_gnu = yes; then |
---|
| 6385 | GCC=yes |
---|
| 6386 | else |
---|
| 6387 | GCC= |
---|
| 6388 | fi |
---|
| 6389 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 6390 | ac_save_CFLAGS=$CFLAGS |
---|
| 6391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
| 6392 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
| 6393 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
| 6394 | $as_echo_n "(cached) " >&6 |
---|
| 6395 | else |
---|
| 6396 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
| 6397 | ac_c_werror_flag=yes |
---|
| 6398 | ac_cv_prog_cc_g=no |
---|
| 6399 | CFLAGS="-g" |
---|
| 6400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 6401 | /* end confdefs.h. */ |
---|
| 6402 | |
---|
| 6403 | int |
---|
| 6404 | main () |
---|
| 6405 | { |
---|
| 6406 | |
---|
| 6407 | ; |
---|
| 6408 | return 0; |
---|
| 6409 | } |
---|
| 6410 | _ACEOF |
---|
| 6411 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 6412 | ac_cv_prog_cc_g=yes |
---|
| 6413 | else |
---|
| 6414 | CFLAGS="" |
---|
| 6415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 6416 | /* end confdefs.h. */ |
---|
| 6417 | |
---|
| 6418 | int |
---|
| 6419 | main () |
---|
| 6420 | { |
---|
| 6421 | |
---|
| 6422 | ; |
---|
| 6423 | return 0; |
---|
| 6424 | } |
---|
| 6425 | _ACEOF |
---|
| 6426 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 6427 | |
---|
| 6428 | else |
---|
| 6429 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 6430 | CFLAGS="-g" |
---|
| 6431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 6432 | /* end confdefs.h. */ |
---|
| 6433 | |
---|
| 6434 | int |
---|
| 6435 | main () |
---|
| 6436 | { |
---|
| 6437 | |
---|
| 6438 | ; |
---|
| 6439 | return 0; |
---|
| 6440 | } |
---|
| 6441 | _ACEOF |
---|
| 6442 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 6443 | ac_cv_prog_cc_g=yes |
---|
| 6444 | fi |
---|
| 6445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6446 | fi |
---|
| 6447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6448 | fi |
---|
| 6449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6450 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 6451 | fi |
---|
| 6452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
| 6453 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
| 6454 | if test "$ac_test_CFLAGS" = set; then |
---|
| 6455 | CFLAGS=$ac_save_CFLAGS |
---|
| 6456 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 6457 | if test "$GCC" = yes; then |
---|
| 6458 | CFLAGS="-g -O2" |
---|
| 6459 | else |
---|
| 6460 | CFLAGS="-g" |
---|
| 6461 | fi |
---|
| 6462 | else |
---|
| 6463 | if test "$GCC" = yes; then |
---|
| 6464 | CFLAGS="-O2" |
---|
| 6465 | else |
---|
| 6466 | CFLAGS= |
---|
| 6467 | fi |
---|
| 6468 | fi |
---|
| 6469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
| 6470 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
| 6471 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
| 6472 | $as_echo_n "(cached) " >&6 |
---|
| 6473 | else |
---|
| 6474 | ac_cv_prog_cc_c89=no |
---|
| 6475 | ac_save_CC=$CC |
---|
| 6476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 6477 | /* end confdefs.h. */ |
---|
| 6478 | #include <stdarg.h> |
---|
| 6479 | #include <stdio.h> |
---|
| 6480 | struct stat; |
---|
| 6481 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 6482 | struct buf { int x; }; |
---|
| 6483 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 6484 | static char *e (p, i) |
---|
| 6485 | char **p; |
---|
| 6486 | int i; |
---|
| 6487 | { |
---|
| 6488 | return p[i]; |
---|
| 6489 | } |
---|
| 6490 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 6491 | { |
---|
| 6492 | char *s; |
---|
| 6493 | va_list v; |
---|
| 6494 | va_start (v,p); |
---|
| 6495 | s = g (p, va_arg (v,int)); |
---|
| 6496 | va_end (v); |
---|
| 6497 | return s; |
---|
| 6498 | } |
---|
| 6499 | |
---|
| 6500 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 6501 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 6502 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 6503 | as 'x'. The following induces an error, until -std is added to get |
---|
| 6504 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 6505 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 6506 | that's true only with -std. */ |
---|
| 6507 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 6508 | |
---|
| 6509 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
| 6510 | inside strings and character constants. */ |
---|
| 6511 | #define FOO(x) 'x' |
---|
| 6512 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
| 6513 | |
---|
| 6514 | int test (int i, double x); |
---|
| 6515 | struct s1 {int (*f) (int a);}; |
---|
| 6516 | struct s2 {int (*f) (double a);}; |
---|
| 6517 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 6518 | int argc; |
---|
| 6519 | char **argv; |
---|
| 6520 | int |
---|
| 6521 | main () |
---|
| 6522 | { |
---|
| 6523 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 6524 | ; |
---|
| 6525 | return 0; |
---|
| 6526 | } |
---|
| 6527 | _ACEOF |
---|
| 6528 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
| 6529 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 6530 | do |
---|
| 6531 | CC="$ac_save_CC $ac_arg" |
---|
| 6532 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
| 6533 | ac_cv_prog_cc_c89=$ac_arg |
---|
| 6534 | fi |
---|
| 6535 | rm -f core conftest.err conftest.$ac_objext |
---|
| 6536 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
| 6537 | done |
---|
| 6538 | rm -f conftest.$ac_ext |
---|
| 6539 | CC=$ac_save_CC |
---|
| 6540 | |
---|
| 6541 | fi |
---|
| 6542 | # AC_CACHE_VAL |
---|
| 6543 | case "x$ac_cv_prog_cc_c89" in |
---|
| 6544 | x) |
---|
| 6545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
| 6546 | $as_echo "none needed" >&6; } ;; |
---|
| 6547 | xno) |
---|
| 6548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
| 6549 | $as_echo "unsupported" >&6; } ;; |
---|
| 6550 | *) |
---|
| 6551 | CC="$CC $ac_cv_prog_cc_c89" |
---|
| 6552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
| 6553 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
| 6554 | esac |
---|
| 6555 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
| 6556 | |
---|
| 6557 | fi |
---|
| 6558 | |
---|
| 6559 | ac_ext=c |
---|
| 6560 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 6561 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 6562 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 6563 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 6564 | |
---|
| 6565 | ac_ext=c |
---|
| 6566 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 6567 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 6568 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 6569 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 6570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
| 6571 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
| 6572 | # On Suns, sometimes $CPP names a directory. |
---|
| 6573 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 6574 | CPP= |
---|
| 6575 | fi |
---|
| 6576 | if test -z "$CPP"; then |
---|
| 6577 | if ${ac_cv_prog_CPP+:} false; then : |
---|
| 6578 | $as_echo_n "(cached) " >&6 |
---|
| 6579 | else |
---|
| 6580 | # Double quotes because CPP needs to be expanded |
---|
| 6581 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 6582 | do |
---|
| 6583 | ac_preproc_ok=false |
---|
| 6584 | for ac_c_preproc_warn_flag in '' yes |
---|
| 6585 | do |
---|
| 6586 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 6587 | # with a fresh cross-compiler works. |
---|
| 6588 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 6589 | # <limits.h> exists even on freestanding compilers. |
---|
| 6590 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 6591 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 6592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 6593 | /* end confdefs.h. */ |
---|
| 6594 | #ifdef __STDC__ |
---|
| 6595 | # include <limits.h> |
---|
| 6596 | #else |
---|
| 6597 | # include <assert.h> |
---|
| 6598 | #endif |
---|
| 6599 | Syntax error |
---|
| 6600 | _ACEOF |
---|
| 6601 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 6602 | |
---|
| 6603 | else |
---|
| 6604 | # Broken: fails on valid input. |
---|
| 6605 | continue |
---|
| 6606 | fi |
---|
| 6607 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 6608 | |
---|
| 6609 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
| 6610 | # can be detected and how. |
---|
| 6611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 6612 | /* end confdefs.h. */ |
---|
| 6613 | #include <ac_nonexistent.h> |
---|
| 6614 | _ACEOF |
---|
| 6615 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 6616 | # Broken: success on invalid input. |
---|
| 6617 | continue |
---|
| 6618 | else |
---|
| 6619 | # Passes both tests. |
---|
| 6620 | ac_preproc_ok=: |
---|
| 6621 | break |
---|
| 6622 | fi |
---|
| 6623 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 6624 | |
---|
| 6625 | done |
---|
| 6626 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 6627 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
| 6628 | if $ac_preproc_ok; then : |
---|
| 6629 | break |
---|
| 6630 | fi |
---|
| 6631 | |
---|
| 6632 | done |
---|
| 6633 | ac_cv_prog_CPP=$CPP |
---|
| 6634 | |
---|
| 6635 | fi |
---|
| 6636 | CPP=$ac_cv_prog_CPP |
---|
| 6637 | else |
---|
| 6638 | ac_cv_prog_CPP=$CPP |
---|
| 6639 | fi |
---|
| 6640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
| 6641 | $as_echo "$CPP" >&6; } |
---|
| 6642 | ac_preproc_ok=false |
---|
| 6643 | for ac_c_preproc_warn_flag in '' yes |
---|
| 6644 | do |
---|
| 6645 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 6646 | # with a fresh cross-compiler works. |
---|
| 6647 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 6648 | # <limits.h> exists even on freestanding compilers. |
---|
| 6649 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 6650 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 6651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 6652 | /* end confdefs.h. */ |
---|
| 6653 | #ifdef __STDC__ |
---|
| 6654 | # include <limits.h> |
---|
| 6655 | #else |
---|
| 6656 | # include <assert.h> |
---|
| 6657 | #endif |
---|
| 6658 | Syntax error |
---|
| 6659 | _ACEOF |
---|
| 6660 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 6661 | |
---|
| 6662 | else |
---|
| 6663 | # Broken: fails on valid input. |
---|
| 6664 | continue |
---|
| 6665 | fi |
---|
| 6666 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 6667 | |
---|
| 6668 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
| 6669 | # can be detected and how. |
---|
| 6670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 6671 | /* end confdefs.h. */ |
---|
| 6672 | #include <ac_nonexistent.h> |
---|
| 6673 | _ACEOF |
---|
| 6674 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
| 6675 | # Broken: success on invalid input. |
---|
| 6676 | continue |
---|
| 6677 | else |
---|
| 6678 | # Passes both tests. |
---|
| 6679 | ac_preproc_ok=: |
---|
| 6680 | break |
---|
| 6681 | fi |
---|
| 6682 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 6683 | |
---|
| 6684 | done |
---|
| 6685 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 6686 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
| 6687 | if $ac_preproc_ok; then : |
---|
| 6688 | |
---|
| 6689 | else |
---|
| 6690 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 6691 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 6692 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
| 6693 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 6694 | fi |
---|
| 6695 | |
---|
| 6696 | ac_ext=c |
---|
| 6697 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 6698 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 6699 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 6700 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 6701 | |
---|
| 6702 | ac_ext=cpp |
---|
| 6703 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 6704 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 6705 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 6706 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 6707 | if test -z "$CXX"; then |
---|
| 6708 | if test -n "$CCC"; then |
---|
| 6709 | CXX=$CCC |
---|
| 6710 | else |
---|
| 6711 | if test -n "$ac_tool_prefix"; then |
---|
| 6712 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
| 6713 | do |
---|
| 6714 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 6715 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 6717 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 6718 | if ${ac_cv_prog_CXX+:} false; then : |
---|
| 6719 | $as_echo_n "(cached) " >&6 |
---|
| 6720 | else |
---|
| 6721 | if test -n "$CXX"; then |
---|
| 6722 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 6723 | else |
---|
| 6724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6725 | for as_dir in $PATH |
---|
| 6726 | do |
---|
| 6727 | IFS=$as_save_IFS |
---|
| 6728 | test -z "$as_dir" && as_dir=. |
---|
| 6729 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 6730 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 6731 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 6732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 6733 | break 2 |
---|
| 6734 | fi |
---|
| 6735 | done |
---|
| 6736 | done |
---|
| 6737 | IFS=$as_save_IFS |
---|
| 6738 | |
---|
| 6739 | fi |
---|
| 6740 | fi |
---|
| 6741 | CXX=$ac_cv_prog_CXX |
---|
| 6742 | if test -n "$CXX"; then |
---|
| 6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
| 6744 | $as_echo "$CXX" >&6; } |
---|
| 6745 | else |
---|
| 6746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 6747 | $as_echo "no" >&6; } |
---|
| 6748 | fi |
---|
| 6749 | |
---|
| 6750 | |
---|
| 6751 | test -n "$CXX" && break |
---|
| 6752 | done |
---|
| 6753 | fi |
---|
| 6754 | if test -z "$CXX"; then |
---|
| 6755 | ac_ct_CXX=$CXX |
---|
| 6756 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
| 6757 | do |
---|
| 6758 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 6759 | set dummy $ac_prog; ac_word=$2 |
---|
| 6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 6761 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 6762 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
| 6763 | $as_echo_n "(cached) " >&6 |
---|
| 6764 | else |
---|
| 6765 | if test -n "$ac_ct_CXX"; then |
---|
| 6766 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 6767 | else |
---|
| 6768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6769 | for as_dir in $PATH |
---|
| 6770 | do |
---|
| 6771 | IFS=$as_save_IFS |
---|
| 6772 | test -z "$as_dir" && as_dir=. |
---|
| 6773 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 6774 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 6775 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 6776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 6777 | break 2 |
---|
| 6778 | fi |
---|
| 6779 | done |
---|
| 6780 | done |
---|
| 6781 | IFS=$as_save_IFS |
---|
| 6782 | |
---|
| 6783 | fi |
---|
| 6784 | fi |
---|
| 6785 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 6786 | if test -n "$ac_ct_CXX"; then |
---|
| 6787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
| 6788 | $as_echo "$ac_ct_CXX" >&6; } |
---|
| 6789 | else |
---|
| 6790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 6791 | $as_echo "no" >&6; } |
---|
| 6792 | fi |
---|
| 6793 | |
---|
| 6794 | |
---|
| 6795 | test -n "$ac_ct_CXX" && break |
---|
| 6796 | done |
---|
| 6797 | |
---|
| 6798 | if test "x$ac_ct_CXX" = x; then |
---|
| 6799 | CXX="g++" |
---|
| 6800 | else |
---|
| 6801 | case $cross_compiling:$ac_tool_warned in |
---|
| 6802 | yes:) |
---|
| 6803 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 6804 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 6805 | ac_tool_warned=yes ;; |
---|
| 6806 | esac |
---|
| 6807 | CXX=$ac_ct_CXX |
---|
| 6808 | fi |
---|
| 6809 | fi |
---|
| 6810 | |
---|
| 6811 | fi |
---|
| 6812 | fi |
---|
| 6813 | # Provide some information about the compiler. |
---|
| 6814 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
| 6815 | set X $ac_compile |
---|
| 6816 | ac_compiler=$2 |
---|
| 6817 | for ac_option in --version -v -V -qversion; do |
---|
| 6818 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
| 6819 | case "(($ac_try" in |
---|
| 6820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 6821 | *) ac_try_echo=$ac_try;; |
---|
| 6822 | esac |
---|
| 6823 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 6824 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 6825 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
| 6826 | ac_status=$? |
---|
| 6827 | if test -s conftest.err; then |
---|
| 6828 | sed '10a\ |
---|
| 6829 | ... rest of stderr output deleted ... |
---|
| 6830 | 10q' conftest.err >conftest.er1 |
---|
| 6831 | cat conftest.er1 >&5 |
---|
| 6832 | fi |
---|
| 6833 | rm -f conftest.er1 conftest.err |
---|
| 6834 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 6835 | test $ac_status = 0; } |
---|
| 6836 | done |
---|
| 6837 | |
---|
| 6838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 6839 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
| 6840 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
| 6841 | $as_echo_n "(cached) " >&6 |
---|
| 6842 | else |
---|
| 6843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 6844 | /* end confdefs.h. */ |
---|
| 6845 | |
---|
| 6846 | int |
---|
| 6847 | main () |
---|
| 6848 | { |
---|
| 6849 | #ifndef __GNUC__ |
---|
| 6850 | choke me |
---|
| 6851 | #endif |
---|
| 6852 | |
---|
| 6853 | ; |
---|
| 6854 | return 0; |
---|
| 6855 | } |
---|
| 6856 | _ACEOF |
---|
| 6857 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 6858 | ac_compiler_gnu=yes |
---|
| 6859 | else |
---|
| 6860 | ac_compiler_gnu=no |
---|
| 6861 | fi |
---|
| 6862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6863 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 6864 | |
---|
| 6865 | fi |
---|
| 6866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 6867 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
| 6868 | if test $ac_compiler_gnu = yes; then |
---|
| 6869 | GXX=yes |
---|
| 6870 | else |
---|
| 6871 | GXX= |
---|
| 6872 | fi |
---|
| 6873 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 6874 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 6875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
| 6876 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
| 6877 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
| 6878 | $as_echo_n "(cached) " >&6 |
---|
| 6879 | else |
---|
| 6880 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
| 6881 | ac_cxx_werror_flag=yes |
---|
| 6882 | ac_cv_prog_cxx_g=no |
---|
| 6883 | CXXFLAGS="-g" |
---|
| 6884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 6885 | /* end confdefs.h. */ |
---|
| 6886 | |
---|
| 6887 | int |
---|
| 6888 | main () |
---|
| 6889 | { |
---|
| 6890 | |
---|
| 6891 | ; |
---|
| 6892 | return 0; |
---|
| 6893 | } |
---|
| 6894 | _ACEOF |
---|
| 6895 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 6896 | ac_cv_prog_cxx_g=yes |
---|
| 6897 | else |
---|
| 6898 | CXXFLAGS="" |
---|
| 6899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 6900 | /* end confdefs.h. */ |
---|
| 6901 | |
---|
| 6902 | int |
---|
| 6903 | main () |
---|
| 6904 | { |
---|
| 6905 | |
---|
| 6906 | ; |
---|
| 6907 | return 0; |
---|
| 6908 | } |
---|
| 6909 | _ACEOF |
---|
| 6910 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 6911 | |
---|
| 6912 | else |
---|
| 6913 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
| 6914 | CXXFLAGS="-g" |
---|
| 6915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 6916 | /* end confdefs.h. */ |
---|
| 6917 | |
---|
| 6918 | int |
---|
| 6919 | main () |
---|
| 6920 | { |
---|
| 6921 | |
---|
| 6922 | ; |
---|
| 6923 | return 0; |
---|
| 6924 | } |
---|
| 6925 | _ACEOF |
---|
| 6926 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 6927 | ac_cv_prog_cxx_g=yes |
---|
| 6928 | fi |
---|
| 6929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6930 | fi |
---|
| 6931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6932 | fi |
---|
| 6933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6934 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
| 6935 | fi |
---|
| 6936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 6937 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
| 6938 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 6939 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 6940 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 6941 | if test "$GXX" = yes; then |
---|
| 6942 | CXXFLAGS="-g -O2" |
---|
| 6943 | else |
---|
| 6944 | CXXFLAGS="-g" |
---|
| 6945 | fi |
---|
| 6946 | else |
---|
| 6947 | if test "$GXX" = yes; then |
---|
| 6948 | CXXFLAGS="-O2" |
---|
| 6949 | else |
---|
| 6950 | CXXFLAGS= |
---|
| 6951 | fi |
---|
| 6952 | fi |
---|
| 6953 | ac_ext=c |
---|
| 6954 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 6955 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 6956 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 6957 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 6958 | |
---|
| 6959 | ac_ext=cpp |
---|
| 6960 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 6961 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 6962 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 6963 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 6964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
---|
| 6965 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
---|
| 6966 | if test -z "$CXXCPP"; then |
---|
| 6967 | if ${ac_cv_prog_CXXCPP+:} false; then : |
---|
| 6968 | $as_echo_n "(cached) " >&6 |
---|
| 6969 | else |
---|
| 6970 | # Double quotes because CXXCPP needs to be expanded |
---|
| 6971 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
| 6972 | do |
---|
| 6973 | ac_preproc_ok=false |
---|
| 6974 | for ac_cxx_preproc_warn_flag in '' yes |
---|
| 6975 | do |
---|
| 6976 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 6977 | # with a fresh cross-compiler works. |
---|
| 6978 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 6979 | # <limits.h> exists even on freestanding compilers. |
---|
| 6980 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 6981 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 6982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 6983 | /* end confdefs.h. */ |
---|
| 6984 | #ifdef __STDC__ |
---|
| 6985 | # include <limits.h> |
---|
| 6986 | #else |
---|
| 6987 | # include <assert.h> |
---|
| 6988 | #endif |
---|
| 6989 | Syntax error |
---|
| 6990 | _ACEOF |
---|
| 6991 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
| 6992 | |
---|
| 6993 | else |
---|
| 6994 | # Broken: fails on valid input. |
---|
| 6995 | continue |
---|
| 6996 | fi |
---|
| 6997 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 6998 | |
---|
| 6999 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
| 7000 | # can be detected and how. |
---|
| 7001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 7002 | /* end confdefs.h. */ |
---|
| 7003 | #include <ac_nonexistent.h> |
---|
| 7004 | _ACEOF |
---|
| 7005 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
| 7006 | # Broken: success on invalid input. |
---|
| 7007 | continue |
---|
| 7008 | else |
---|
| 7009 | # Passes both tests. |
---|
| 7010 | ac_preproc_ok=: |
---|
| 7011 | break |
---|
| 7012 | fi |
---|
| 7013 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 7014 | |
---|
| 7015 | done |
---|
| 7016 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 7017 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
| 7018 | if $ac_preproc_ok; then : |
---|
| 7019 | break |
---|
| 7020 | fi |
---|
| 7021 | |
---|
| 7022 | done |
---|
| 7023 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
| 7024 | |
---|
| 7025 | fi |
---|
| 7026 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
| 7027 | else |
---|
| 7028 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
| 7029 | fi |
---|
| 7030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
---|
| 7031 | $as_echo "$CXXCPP" >&6; } |
---|
| 7032 | ac_preproc_ok=false |
---|
| 7033 | for ac_cxx_preproc_warn_flag in '' yes |
---|
| 7034 | do |
---|
| 7035 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 7036 | # with a fresh cross-compiler works. |
---|
| 7037 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 7038 | # <limits.h> exists even on freestanding compilers. |
---|
| 7039 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 7040 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 7041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 7042 | /* end confdefs.h. */ |
---|
| 7043 | #ifdef __STDC__ |
---|
| 7044 | # include <limits.h> |
---|
| 7045 | #else |
---|
| 7046 | # include <assert.h> |
---|
| 7047 | #endif |
---|
| 7048 | Syntax error |
---|
| 7049 | _ACEOF |
---|
| 7050 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
| 7051 | |
---|
| 7052 | else |
---|
| 7053 | # Broken: fails on valid input. |
---|
| 7054 | continue |
---|
| 7055 | fi |
---|
| 7056 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 7057 | |
---|
| 7058 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
| 7059 | # can be detected and how. |
---|
| 7060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 7061 | /* end confdefs.h. */ |
---|
| 7062 | #include <ac_nonexistent.h> |
---|
| 7063 | _ACEOF |
---|
| 7064 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
---|
| 7065 | # Broken: success on invalid input. |
---|
| 7066 | continue |
---|
| 7067 | else |
---|
| 7068 | # Passes both tests. |
---|
| 7069 | ac_preproc_ok=: |
---|
| 7070 | break |
---|
| 7071 | fi |
---|
| 7072 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
| 7073 | |
---|
| 7074 | done |
---|
| 7075 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 7076 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
| 7077 | if $ac_preproc_ok; then : |
---|
| 7078 | |
---|
| 7079 | else |
---|
| 7080 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
| 7081 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
| 7082 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
| 7083 | See \`config.log' for more details" "$LINENO" 5; } |
---|
| 7084 | fi |
---|
| 7085 | |
---|
| 7086 | ac_ext=c |
---|
| 7087 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 7088 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 7089 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 7090 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 7091 | |
---|
| 7092 | ac_ext=cpp |
---|
| 7093 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 7094 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 7095 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 7096 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 7097 | if test -z "$CXX"; then |
---|
| 7098 | if test -n "$CCC"; then |
---|
| 7099 | CXX=$CCC |
---|
| 7100 | else |
---|
| 7101 | if test -n "$ac_tool_prefix"; then |
---|
| 7102 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
| 7103 | do |
---|
| 7104 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 7105 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 7106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 7107 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 7108 | if ${ac_cv_prog_CXX+:} false; then : |
---|
| 7109 | $as_echo_n "(cached) " >&6 |
---|
| 7110 | else |
---|
| 7111 | if test -n "$CXX"; then |
---|
| 7112 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 7113 | else |
---|
| 7114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 7115 | for as_dir in $PATH |
---|
| 7116 | do |
---|
| 7117 | IFS=$as_save_IFS |
---|
| 7118 | test -z "$as_dir" && as_dir=. |
---|
| 7119 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 7120 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 7121 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 7122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 7123 | break 2 |
---|
| 7124 | fi |
---|
| 7125 | done |
---|
| 7126 | done |
---|
| 7127 | IFS=$as_save_IFS |
---|
| 7128 | |
---|
| 7129 | fi |
---|
| 7130 | fi |
---|
| 7131 | CXX=$ac_cv_prog_CXX |
---|
| 7132 | if test -n "$CXX"; then |
---|
| 7133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
| 7134 | $as_echo "$CXX" >&6; } |
---|
| 7135 | else |
---|
| 7136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 7137 | $as_echo "no" >&6; } |
---|
| 7138 | fi |
---|
| 7139 | |
---|
| 7140 | |
---|
| 7141 | test -n "$CXX" && break |
---|
| 7142 | done |
---|
| 7143 | fi |
---|
| 7144 | if test -z "$CXX"; then |
---|
| 7145 | ac_ct_CXX=$CXX |
---|
| 7146 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
| 7147 | do |
---|
| 7148 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 7149 | set dummy $ac_prog; ac_word=$2 |
---|
| 7150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
| 7151 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
| 7152 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
| 7153 | $as_echo_n "(cached) " >&6 |
---|
| 7154 | else |
---|
| 7155 | if test -n "$ac_ct_CXX"; then |
---|
| 7156 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 7157 | else |
---|
| 7158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 7159 | for as_dir in $PATH |
---|
| 7160 | do |
---|
| 7161 | IFS=$as_save_IFS |
---|
| 7162 | test -z "$as_dir" && as_dir=. |
---|
| 7163 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 7164 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 7165 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 7166 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 7167 | break 2 |
---|
| 7168 | fi |
---|
| 7169 | done |
---|
| 7170 | done |
---|
| 7171 | IFS=$as_save_IFS |
---|
| 7172 | |
---|
| 7173 | fi |
---|
| 7174 | fi |
---|
| 7175 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 7176 | if test -n "$ac_ct_CXX"; then |
---|
| 7177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
| 7178 | $as_echo "$ac_ct_CXX" >&6; } |
---|
| 7179 | else |
---|
| 7180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
| 7181 | $as_echo "no" >&6; } |
---|
| 7182 | fi |
---|
| 7183 | |
---|
| 7184 | |
---|
| 7185 | test -n "$ac_ct_CXX" && break |
---|
| 7186 | done |
---|
| 7187 | |
---|
| 7188 | if test "x$ac_ct_CXX" = x; then |
---|
| 7189 | CXX="g++" |
---|
| 7190 | else |
---|
| 7191 | case $cross_compiling:$ac_tool_warned in |
---|
| 7192 | yes:) |
---|
| 7193 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
| 7194 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
| 7195 | ac_tool_warned=yes ;; |
---|
| 7196 | esac |
---|
| 7197 | CXX=$ac_ct_CXX |
---|
| 7198 | fi |
---|
| 7199 | fi |
---|
| 7200 | |
---|
| 7201 | fi |
---|
| 7202 | fi |
---|
| 7203 | # Provide some information about the compiler. |
---|
| 7204 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
| 7205 | set X $ac_compile |
---|
| 7206 | ac_compiler=$2 |
---|
| 7207 | for ac_option in --version -v -V -qversion; do |
---|
| 7208 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
| 7209 | case "(($ac_try" in |
---|
| 7210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 7211 | *) ac_try_echo=$ac_try;; |
---|
| 7212 | esac |
---|
| 7213 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
| 7214 | $as_echo "$ac_try_echo"; } >&5 |
---|
| 7215 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
| 7216 | ac_status=$? |
---|
| 7217 | if test -s conftest.err; then |
---|
| 7218 | sed '10a\ |
---|
| 7219 | ... rest of stderr output deleted ... |
---|
| 7220 | 10q' conftest.err >conftest.er1 |
---|
| 7221 | cat conftest.er1 >&5 |
---|
| 7222 | fi |
---|
| 7223 | rm -f conftest.er1 conftest.err |
---|
| 7224 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
| 7225 | test $ac_status = 0; } |
---|
| 7226 | done |
---|
| 7227 | |
---|
| 7228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 7229 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
| 7230 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
| 7231 | $as_echo_n "(cached) " >&6 |
---|
| 7232 | else |
---|
| 7233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 7234 | /* end confdefs.h. */ |
---|
| 7235 | |
---|
| 7236 | int |
---|
| 7237 | main () |
---|
| 7238 | { |
---|
| 7239 | #ifndef __GNUC__ |
---|
| 7240 | choke me |
---|
| 7241 | #endif |
---|
| 7242 | |
---|
| 7243 | ; |
---|
| 7244 | return 0; |
---|
| 7245 | } |
---|
| 7246 | _ACEOF |
---|
| 7247 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 7248 | ac_compiler_gnu=yes |
---|
| 7249 | else |
---|
| 7250 | ac_compiler_gnu=no |
---|
| 7251 | fi |
---|
| 7252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7253 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 7254 | |
---|
| 7255 | fi |
---|
| 7256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 7257 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
| 7258 | if test $ac_compiler_gnu = yes; then |
---|
| 7259 | GXX=yes |
---|
| 7260 | else |
---|
| 7261 | GXX= |
---|
| 7262 | fi |
---|
| 7263 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 7264 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 7265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
| 7266 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
| 7267 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
| 7268 | $as_echo_n "(cached) " >&6 |
---|
| 7269 | else |
---|
| 7270 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
| 7271 | ac_cxx_werror_flag=yes |
---|
| 7272 | ac_cv_prog_cxx_g=no |
---|
| 7273 | CXXFLAGS="-g" |
---|
| 7274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 7275 | /* end confdefs.h. */ |
---|
| 7276 | |
---|
| 7277 | int |
---|
| 7278 | main () |
---|
| 7279 | { |
---|
| 7280 | |
---|
| 7281 | ; |
---|
| 7282 | return 0; |
---|
| 7283 | } |
---|
| 7284 | _ACEOF |
---|
| 7285 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 7286 | ac_cv_prog_cxx_g=yes |
---|
| 7287 | else |
---|
| 7288 | CXXFLAGS="" |
---|
| 7289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 7290 | /* end confdefs.h. */ |
---|
| 7291 | |
---|
| 7292 | int |
---|
| 7293 | main () |
---|
| 7294 | { |
---|
| 7295 | |
---|
| 7296 | ; |
---|
| 7297 | return 0; |
---|
| 7298 | } |
---|
| 7299 | _ACEOF |
---|
| 7300 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 7301 | |
---|
| 7302 | else |
---|
| 7303 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
| 7304 | CXXFLAGS="-g" |
---|
| 7305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 7306 | /* end confdefs.h. */ |
---|
| 7307 | |
---|
| 7308 | int |
---|
| 7309 | main () |
---|
| 7310 | { |
---|
| 7311 | |
---|
| 7312 | ; |
---|
| 7313 | return 0; |
---|
| 7314 | } |
---|
| 7315 | _ACEOF |
---|
| 7316 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 7317 | ac_cv_prog_cxx_g=yes |
---|
| 7318 | fi |
---|
| 7319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7320 | fi |
---|
| 7321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7322 | fi |
---|
| 7323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7324 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
| 7325 | fi |
---|
| 7326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 7327 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
| 7328 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 7329 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 7330 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 7331 | if test "$GXX" = yes; then |
---|
| 7332 | CXXFLAGS="-g -O2" |
---|
| 7333 | else |
---|
| 7334 | CXXFLAGS="-g" |
---|
| 7335 | fi |
---|
| 7336 | else |
---|
| 7337 | if test "$GXX" = yes; then |
---|
| 7338 | CXXFLAGS="-O2" |
---|
| 7339 | else |
---|
| 7340 | CXXFLAGS= |
---|
| 7341 | fi |
---|
| 7342 | fi |
---|
| 7343 | ac_ext=c |
---|
| 7344 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 7345 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 7346 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 7347 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 7348 | |
---|
| 7349 | ac_ext=cpp |
---|
| 7350 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 7351 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 7352 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 7353 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 7354 | |
---|
| 7355 | |
---|
| 7356 | |
---|
| 7357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
---|
| 7358 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
---|
| 7359 | if ${ac_cv_c_bigendian+:} false; then : |
---|
| 7360 | $as_echo_n "(cached) " >&6 |
---|
| 7361 | else |
---|
| 7362 | ac_cv_c_bigendian=unknown |
---|
| 7363 | # See if we're dealing with a universal compiler. |
---|
| 7364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 7365 | /* end confdefs.h. */ |
---|
| 7366 | #ifndef __APPLE_CC__ |
---|
| 7367 | not a universal capable compiler |
---|
| 7368 | #endif |
---|
| 7369 | typedef int dummy; |
---|
| 7370 | |
---|
| 7371 | _ACEOF |
---|
| 7372 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 7373 | |
---|
| 7374 | # Check for potential -arch flags. It is not universal unless |
---|
| 7375 | # there are at least two -arch flags with different values. |
---|
| 7376 | ac_arch= |
---|
| 7377 | ac_prev= |
---|
| 7378 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
---|
| 7379 | if test -n "$ac_prev"; then |
---|
| 7380 | case $ac_word in |
---|
| 7381 | i?86 | x86_64 | ppc | ppc64) |
---|
| 7382 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
---|
| 7383 | ac_arch=$ac_word |
---|
| 7384 | else |
---|
| 7385 | ac_cv_c_bigendian=universal |
---|
| 7386 | break |
---|
| 7387 | fi |
---|
| 7388 | ;; |
---|
| 7389 | esac |
---|
| 7390 | ac_prev= |
---|
| 7391 | elif test "x$ac_word" = "x-arch"; then |
---|
| 7392 | ac_prev=arch |
---|
| 7393 | fi |
---|
| 7394 | done |
---|
| 7395 | fi |
---|
| 7396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7397 | if test $ac_cv_c_bigendian = unknown; then |
---|
| 7398 | # See if sys/param.h defines the BYTE_ORDER macro. |
---|
| 7399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 7400 | /* end confdefs.h. */ |
---|
| 7401 | #include <sys/types.h> |
---|
| 7402 | #include <sys/param.h> |
---|
| 7403 | |
---|
| 7404 | int |
---|
| 7405 | main () |
---|
| 7406 | { |
---|
| 7407 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
---|
| 7408 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
---|
| 7409 | && LITTLE_ENDIAN) |
---|
| 7410 | bogus endian macros |
---|
| 7411 | #endif |
---|
| 7412 | |
---|
| 7413 | ; |
---|
| 7414 | return 0; |
---|
| 7415 | } |
---|
| 7416 | _ACEOF |
---|
| 7417 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 7418 | # It does; now see whether it defined to BIG_ENDIAN or not. |
---|
| 7419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 7420 | /* end confdefs.h. */ |
---|
| 7421 | #include <sys/types.h> |
---|
| 7422 | #include <sys/param.h> |
---|
| 7423 | |
---|
| 7424 | int |
---|
| 7425 | main () |
---|
| 7426 | { |
---|
| 7427 | #if BYTE_ORDER != BIG_ENDIAN |
---|
| 7428 | not big endian |
---|
| 7429 | #endif |
---|
| 7430 | |
---|
| 7431 | ; |
---|
| 7432 | return 0; |
---|
| 7433 | } |
---|
| 7434 | _ACEOF |
---|
| 7435 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 7436 | ac_cv_c_bigendian=yes |
---|
| 7437 | else |
---|
| 7438 | ac_cv_c_bigendian=no |
---|
| 7439 | fi |
---|
| 7440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7441 | fi |
---|
| 7442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7443 | fi |
---|
| 7444 | if test $ac_cv_c_bigendian = unknown; then |
---|
| 7445 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
---|
| 7446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 7447 | /* end confdefs.h. */ |
---|
| 7448 | #include <limits.h> |
---|
| 7449 | |
---|
| 7450 | int |
---|
| 7451 | main () |
---|
| 7452 | { |
---|
| 7453 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
---|
| 7454 | bogus endian macros |
---|
| 7455 | #endif |
---|
| 7456 | |
---|
| 7457 | ; |
---|
| 7458 | return 0; |
---|
| 7459 | } |
---|
| 7460 | _ACEOF |
---|
| 7461 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 7462 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
---|
| 7463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 7464 | /* end confdefs.h. */ |
---|
| 7465 | #include <limits.h> |
---|
| 7466 | |
---|
| 7467 | int |
---|
| 7468 | main () |
---|
| 7469 | { |
---|
| 7470 | #ifndef _BIG_ENDIAN |
---|
| 7471 | not big endian |
---|
| 7472 | #endif |
---|
| 7473 | |
---|
| 7474 | ; |
---|
| 7475 | return 0; |
---|
| 7476 | } |
---|
| 7477 | _ACEOF |
---|
| 7478 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 7479 | ac_cv_c_bigendian=yes |
---|
| 7480 | else |
---|
| 7481 | ac_cv_c_bigendian=no |
---|
| 7482 | fi |
---|
| 7483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7484 | fi |
---|
| 7485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7486 | fi |
---|
| 7487 | if test $ac_cv_c_bigendian = unknown; then |
---|
| 7488 | # Compile a test program. |
---|
| 7489 | if test "$cross_compiling" = yes; then : |
---|
| 7490 | # Try to guess by grepping values from an object file. |
---|
| 7491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 7492 | /* end confdefs.h. */ |
---|
| 7493 | short int ascii_mm[] = |
---|
| 7494 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
---|
| 7495 | short int ascii_ii[] = |
---|
| 7496 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
---|
| 7497 | int use_ascii (int i) { |
---|
| 7498 | return ascii_mm[i] + ascii_ii[i]; |
---|
| 7499 | } |
---|
| 7500 | short int ebcdic_ii[] = |
---|
| 7501 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
---|
| 7502 | short int ebcdic_mm[] = |
---|
| 7503 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
---|
| 7504 | int use_ebcdic (int i) { |
---|
| 7505 | return ebcdic_mm[i] + ebcdic_ii[i]; |
---|
| 7506 | } |
---|
| 7507 | extern int foo; |
---|
| 7508 | |
---|
| 7509 | int |
---|
| 7510 | main () |
---|
| 7511 | { |
---|
| 7512 | return use_ascii (foo) == use_ebcdic (foo); |
---|
| 7513 | ; |
---|
| 7514 | return 0; |
---|
| 7515 | } |
---|
| 7516 | _ACEOF |
---|
| 7517 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
| 7518 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
---|
| 7519 | ac_cv_c_bigendian=yes |
---|
| 7520 | fi |
---|
| 7521 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
---|
| 7522 | if test "$ac_cv_c_bigendian" = unknown; then |
---|
| 7523 | ac_cv_c_bigendian=no |
---|
| 7524 | else |
---|
| 7525 | # finding both strings is unlikely to happen, but who knows? |
---|
| 7526 | ac_cv_c_bigendian=unknown |
---|
| 7527 | fi |
---|
| 7528 | fi |
---|
| 7529 | fi |
---|
| 7530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7531 | else |
---|
| 7532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
| 7533 | /* end confdefs.h. */ |
---|
| 7534 | $ac_includes_default |
---|
| 7535 | int |
---|
| 7536 | main () |
---|
| 7537 | { |
---|
| 7538 | |
---|
| 7539 | /* Are we little or big endian? From Harbison&Steele. */ |
---|
| 7540 | union |
---|
| 7541 | { |
---|
| 7542 | long int l; |
---|
| 7543 | char c[sizeof (long int)]; |
---|
| 7544 | } u; |
---|
| 7545 | u.l = 1; |
---|
| 7546 | return u.c[sizeof (long int) - 1] == 1; |
---|
| 7547 | |
---|
| 7548 | ; |
---|
| 7549 | return 0; |
---|
| 7550 | } |
---|
| 7551 | _ACEOF |
---|
| 7552 | if ac_fn_cxx_try_run "$LINENO"; then : |
---|
| 7553 | ac_cv_c_bigendian=no |
---|
| 7554 | else |
---|
| 7555 | ac_cv_c_bigendian=yes |
---|
| 7556 | fi |
---|
| 7557 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
| 7558 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
| 7559 | fi |
---|
| 7560 | |
---|
| 7561 | fi |
---|
| 7562 | fi |
---|
| 7563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
---|
| 7564 | $as_echo "$ac_cv_c_bigendian" >&6; } |
---|
| 7565 | case $ac_cv_c_bigendian in #( |
---|
| 7566 | yes) |
---|
| 7567 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
---|
| 7568 | ;; #( |
---|
| 7569 | no) |
---|
| 7570 | ;; #( |
---|
| 7571 | universal) |
---|
| 7572 | |
---|
| 7573 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
---|
| 7574 | |
---|
| 7575 | ;; #( |
---|
| 7576 | *) |
---|
| 7577 | as_fn_error $? "unknown endianness |
---|
| 7578 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
---|
| 7579 | esac |
---|
| 7580 | |
---|
| 7581 | |
---|
| 7582 | # Save the values as shell variables so that we can substitute them |
---|
| 7583 | # into bltHash.h for situtations where there's no bltInt.h. |
---|
| 7584 | |
---|
| 7585 | LD_RPATH=""; |
---|
| 7586 | |
---|
| 7587 | # |
---|
| 7588 | # Need to check for the following dependencies: |
---|
| 7589 | # Rappture headers and library (done) |
---|
| 7590 | # Tcl headers and library (done) |
---|
| 7591 | # GL headers and library |
---|
| 7592 | # GLEW header and library |
---|
| 7593 | # pthread library |
---|
| 7594 | # |
---|
| 7595 | |
---|
| 7596 | TCL_VERSION="8.4" |
---|
| 7597 | for dir in \ |
---|
| 7598 | ${exec_prefix} \ |
---|
| 7599 | ${exec_prefix}/lib ; do |
---|
| 7600 | tclconfig="${dir}/tclConfig.sh" |
---|
| 7601 | if test -f "$tclconfig" ; then |
---|
| 7602 | . $tclconfig |
---|
| 7603 | break |
---|
| 7604 | fi |
---|
| 7605 | done |
---|
| 7606 | TCL_INC_SPEC="$TCL_INCLUDE_SPEC" |
---|
| 7607 | |
---|
| 7608 | if test "x$with_tcllib" != "x" ; then |
---|
| 7609 | tclconfig="${with_tcllib}/tclConfig.sh" |
---|
| 7610 | if test -f "$tclconfig" ; then |
---|
| 7611 | . $tclconfig |
---|
| 7612 | fi |
---|
| 7613 | TCL_LIB_SPEC="-L${with_tcllib} -ltcl${TCL_VERSION}" |
---|
| 7614 | fi |
---|
| 7615 | if test "x$with_tclinclude" != "x" ; then |
---|
| 7616 | TCL_INC_SPEC="-I${with_tclinclude}" |
---|
| 7617 | fi |
---|
| 7618 | |
---|
| 7619 | |
---|
| 7620 | for ac_header in stdio.h unistd.h stdlib.h string.h sys/types.h |
---|
| 7621 | do : |
---|
| 7622 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7623 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
| 7624 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
| 7625 | cat >>confdefs.h <<_ACEOF |
---|
| 7626 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7627 | _ACEOF |
---|
| 7628 | |
---|
| 7629 | fi |
---|
| 7630 | |
---|
| 7631 | done |
---|
| 7632 | |
---|
| 7633 | for ac_header in sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h |
---|
| 7634 | do : |
---|
| 7635 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7636 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
| 7637 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
| 7638 | cat >>confdefs.h <<_ACEOF |
---|
| 7639 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7640 | _ACEOF |
---|
| 7641 | |
---|
| 7642 | fi |
---|
| 7643 | |
---|
| 7644 | done |
---|
| 7645 | |
---|
| 7646 | |
---|
| 7647 | for ac_func in accept4 |
---|
| 7648 | do : |
---|
| 7649 | ac_fn_cxx_check_func "$LINENO" "accept4" "ac_cv_func_accept4" |
---|
| 7650 | if test "x$ac_cv_func_accept4" = xyes; then : |
---|
| 7651 | cat >>confdefs.h <<_ACEOF |
---|
| 7652 | #define HAVE_ACCEPT4 1 |
---|
| 7653 | _ACEOF |
---|
| 7654 | |
---|
| 7655 | fi |
---|
| 7656 | done |
---|
| 7657 | |
---|
| 7658 | for ac_func in mkstemps |
---|
| 7659 | do : |
---|
| 7660 | ac_fn_cxx_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps" |
---|
| 7661 | if test "x$ac_cv_func_mkstemps" = xyes; then : |
---|
| 7662 | cat >>confdefs.h <<_ACEOF |
---|
| 7663 | #define HAVE_MKSTEMPS 1 |
---|
| 7664 | _ACEOF |
---|
| 7665 | |
---|
| 7666 | fi |
---|
| 7667 | done |
---|
| 7668 | |
---|
| 7669 | |
---|
| 7670 | |
---|
| 7671 | |
---|
| 7672 | |
---|
| 7673 | |
---|
| 7674 | |
---|
| 7675 | |
---|
| 7676 | |
---|
| 7677 | |
---|
| 7678 | ac_config_files="$ac_config_files Makefile renderservers.tcl start_nanoscale.sh" |
---|
| 7679 | |
---|
| 7680 | cat >confcache <<\_ACEOF |
---|
| 7681 | # This file is a shell script that caches the results of configure |
---|
| 7682 | # tests run on this system so they can be shared between configure |
---|
| 7683 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 7684 | # It is not useful on other systems. If it contains results you don't |
---|
| 7685 | # want to keep, you may remove or edit it. |
---|
| 7686 | # |
---|
| 7687 | # config.status only pays attention to the cache file if you give it |
---|
| 7688 | # the --recheck option to rerun configure. |
---|
| 7689 | # |
---|
| 7690 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 7691 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 7692 | # following values. |
---|
| 7693 | |
---|
| 7694 | _ACEOF |
---|
| 7695 | |
---|
| 7696 | # The following way of writing the cache mishandles newlines in values, |
---|
| 7697 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 7698 | # So, we kill variables containing newlines. |
---|
| 7699 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 7700 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 7701 | ( |
---|
| 7702 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
| 7703 | eval ac_val=\$$ac_var |
---|
| 7704 | case $ac_val in #( |
---|
| 7705 | *${as_nl}*) |
---|
| 7706 | case $ac_var in #( |
---|
| 7707 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
| 7708 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
| 7709 | esac |
---|
| 7710 | case $ac_var in #( |
---|
| 7711 | _ | IFS | as_nl) ;; #( |
---|
| 7712 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
| 7713 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
| 7714 | esac ;; |
---|
| 7715 | esac |
---|
| 7716 | done |
---|
| 7717 | |
---|
| 7718 | (set) 2>&1 | |
---|
| 7719 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
| 7720 | *${as_nl}ac_space=\ *) |
---|
| 7721 | # `set' does not quote correctly, so add quotes: double-quote |
---|
| 7722 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
| 7723 | sed -n \ |
---|
| 7724 | "s/'/'\\\\''/g; |
---|
| 7725 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 7726 | ;; #( |
---|
| 7727 | *) |
---|
| 7728 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 7729 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
| 7730 | ;; |
---|
| 7731 | esac | |
---|
| 7732 | sort |
---|
| 7733 | ) | |
---|
| 7734 | sed ' |
---|
| 7735 | /^ac_cv_env_/b end |
---|
| 7736 | t clear |
---|
| 7737 | :clear |
---|
| 7738 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 7739 | t end |
---|
| 7740 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 7741 | :end' >>confcache |
---|
| 7742 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
| 7743 | if test -w "$cache_file"; then |
---|
| 7744 | if test "x$cache_file" != "x/dev/null"; then |
---|
| 7745 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
| 7746 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
| 7747 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
| 7748 | cat confcache >"$cache_file" |
---|
| 7749 | else |
---|
| 7750 | case $cache_file in #( |
---|
| 7751 | */* | ?:*) |
---|
| 7752 | mv -f confcache "$cache_file"$$ && |
---|
| 7753 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
| 7754 | *) |
---|
| 7755 | mv -f confcache "$cache_file" ;; |
---|
| 7756 | esac |
---|
| 7757 | fi |
---|
| 7758 | fi |
---|
| 7759 | else |
---|
| 7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
| 7761 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
| 7762 | fi |
---|
| 7763 | fi |
---|
| 7764 | rm -f confcache |
---|
| 7765 | |
---|
| 7766 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 7767 | # Let make expand exec_prefix. |
---|
| 7768 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 7769 | |
---|
| 7770 | DEFS=-DHAVE_CONFIG_H |
---|
| 7771 | |
---|
| 7772 | ac_libobjs= |
---|
| 7773 | ac_ltlibobjs= |
---|
| 7774 | U= |
---|
| 7775 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 7776 | # 1. Remove the extension, and $U if already installed. |
---|
| 7777 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
| 7778 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
| 7779 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
| 7780 | # will be set to the directory where LIBOBJS objects are built. |
---|
| 7781 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
| 7782 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
| 7783 | done |
---|
| 7784 | LIBOBJS=$ac_libobjs |
---|
| 7785 | |
---|
| 7786 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 7787 | |
---|
| 7788 | |
---|
| 7789 | |
---|
| 7790 | |
---|
| 7791 | : "${CONFIG_STATUS=./config.status}" |
---|
| 7792 | ac_write_fail=0 |
---|
| 7793 | ac_clean_files_save=$ac_clean_files |
---|
| 7794 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 7795 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
| 7796 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 7797 | as_write_fail=0 |
---|
| 7798 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
| 7799 | #! $SHELL |
---|
| 7800 | # Generated by $as_me. |
---|
| 7801 | # Run this file to recreate the current configuration. |
---|
| 7802 | # Compiler output produced by configure, useful for debugging |
---|
| 7803 | # configure, is in config.log if it exists. |
---|
| 7804 | |
---|
| 7805 | debug=false |
---|
| 7806 | ac_cs_recheck=false |
---|
| 7807 | ac_cs_silent=false |
---|
| 7808 | |
---|
| 7809 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 7810 | export SHELL |
---|
| 7811 | _ASEOF |
---|
| 7812 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
| 7813 | ## -------------------- ## |
---|
| 7814 | ## M4sh Initialization. ## |
---|
| 7815 | ## -------------------- ## |
---|
| 7816 | |
---|
| 7817 | # Be more Bourne compatible |
---|
| 7818 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 7819 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
| 7820 | emulate sh |
---|
| 7821 | NULLCMD=: |
---|
| 7822 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
| 7823 | # is contrary to our usage. Disable this feature. |
---|
| 7824 | alias -g '${1+"$@"}'='"$@"' |
---|
| 7825 | setopt NO_GLOB_SUBST |
---|
| 7826 | else |
---|
| 7827 | case `(set -o) 2>/dev/null` in #( |
---|
| 7828 | *posix*) : |
---|
| 7829 | set -o posix ;; #( |
---|
| 7830 | *) : |
---|
| 7831 | ;; |
---|
| 7832 | esac |
---|
| 7833 | fi |
---|
| 7834 | |
---|
| 7835 | |
---|
| 7836 | as_nl=' |
---|
| 7837 | ' |
---|
| 7838 | export as_nl |
---|
| 7839 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
| 7840 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
| 7841 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
| 7842 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
| 7843 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
| 7844 | # but without wasting forks for bash or zsh. |
---|
| 7845 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
| 7846 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
| 7847 | as_echo='print -r --' |
---|
| 7848 | as_echo_n='print -rn --' |
---|
| 7849 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
| 7850 | as_echo='printf %s\n' |
---|
| 7851 | as_echo_n='printf %s' |
---|
| 7852 | else |
---|
| 7853 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
| 7854 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
| 7855 | as_echo_n='/usr/ucb/echo -n' |
---|
| 7856 | else |
---|
| 7857 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
| 7858 | as_echo_n_body='eval |
---|
| 7859 | arg=$1; |
---|
| 7860 | case $arg in #( |
---|
| 7861 | *"$as_nl"*) |
---|
| 7862 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
| 7863 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
| 7864 | esac; |
---|
| 7865 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
| 7866 | ' |
---|
| 7867 | export as_echo_n_body |
---|
| 7868 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
| 7869 | fi |
---|
| 7870 | export as_echo_body |
---|
| 7871 | as_echo='sh -c $as_echo_body as_echo' |
---|
| 7872 | fi |
---|
| 7873 | |
---|
| 7874 | # The user is always right. |
---|
| 7875 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 7876 | PATH_SEPARATOR=: |
---|
| 7877 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
| 7878 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
| 7879 | PATH_SEPARATOR=';' |
---|
| 7880 | } |
---|
| 7881 | fi |
---|
| 7882 | |
---|
| 7883 | |
---|
| 7884 | # IFS |
---|
| 7885 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
| 7886 | # there to prevent editors from complaining about space-tab. |
---|
| 7887 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
| 7888 | # splitting by setting IFS to empty value.) |
---|
| 7889 | IFS=" "" $as_nl" |
---|
| 7890 | |
---|
| 7891 | # Find who we are. Look in the path if we contain no directory separator. |
---|
| 7892 | as_myself= |
---|
| 7893 | case $0 in #(( |
---|
| 7894 | *[\\/]* ) as_myself=$0 ;; |
---|
| 7895 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 7896 | for as_dir in $PATH |
---|
| 7897 | do |
---|
| 7898 | IFS=$as_save_IFS |
---|
| 7899 | test -z "$as_dir" && as_dir=. |
---|
| 7900 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 7901 | done |
---|
| 7902 | IFS=$as_save_IFS |
---|
| 7903 | |
---|
| 7904 | ;; |
---|
| 7905 | esac |
---|
| 7906 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 7907 | # in which case we are not to be found in the path. |
---|
| 7908 | if test "x$as_myself" = x; then |
---|
| 7909 | as_myself=$0 |
---|
| 7910 | fi |
---|
| 7911 | if test ! -f "$as_myself"; then |
---|
| 7912 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
| 7913 | exit 1 |
---|
| 7914 | fi |
---|
| 7915 | |
---|
| 7916 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
| 7917 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
| 7918 | # suppresses any "Segmentation fault" message there. '((' could |
---|
| 7919 | # trigger a bug in pdksh 5.2.14. |
---|
| 7920 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
| 7921 | do eval test x\${$as_var+set} = xset \ |
---|
| 7922 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
| 7923 | done |
---|
| 7924 | PS1='$ ' |
---|
| 7925 | PS2='> ' |
---|
| 7926 | PS4='+ ' |
---|
| 7927 | |
---|
| 7928 | # NLS nuisances. |
---|
| 7929 | LC_ALL=C |
---|
| 7930 | export LC_ALL |
---|
| 7931 | LANGUAGE=C |
---|
| 7932 | export LANGUAGE |
---|
| 7933 | |
---|
| 7934 | # CDPATH. |
---|
| 7935 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
| 7936 | |
---|
| 7937 | |
---|
| 7938 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
| 7939 | # ---------------------------------------- |
---|
| 7940 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
| 7941 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
| 7942 | # script with STATUS, using 1 if that was 0. |
---|
| 7943 | as_fn_error () |
---|
| 7944 | { |
---|
| 7945 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
| 7946 | if test "$4"; then |
---|
| 7947 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
| 7948 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
| 7949 | fi |
---|
| 7950 | $as_echo "$as_me: error: $2" >&2 |
---|
| 7951 | as_fn_exit $as_status |
---|
| 7952 | } # as_fn_error |
---|
| 7953 | |
---|
| 7954 | |
---|
| 7955 | # as_fn_set_status STATUS |
---|
| 7956 | # ----------------------- |
---|
| 7957 | # Set $? to STATUS, without forking. |
---|
| 7958 | as_fn_set_status () |
---|
| 7959 | { |
---|
| 7960 | return $1 |
---|
| 7961 | } # as_fn_set_status |
---|
| 7962 | |
---|
| 7963 | # as_fn_exit STATUS |
---|
| 7964 | # ----------------- |
---|
| 7965 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
| 7966 | as_fn_exit () |
---|
| 7967 | { |
---|
| 7968 | set +e |
---|
| 7969 | as_fn_set_status $1 |
---|
| 7970 | exit $1 |
---|
| 7971 | } # as_fn_exit |
---|
| 7972 | |
---|
| 7973 | # as_fn_unset VAR |
---|
| 7974 | # --------------- |
---|
| 7975 | # Portably unset VAR. |
---|
| 7976 | as_fn_unset () |
---|
| 7977 | { |
---|
| 7978 | { eval $1=; unset $1;} |
---|
| 7979 | } |
---|
| 7980 | as_unset=as_fn_unset |
---|
| 7981 | # as_fn_append VAR VALUE |
---|
| 7982 | # ---------------------- |
---|
| 7983 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
| 7984 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
| 7985 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
| 7986 | # implementations. |
---|
| 7987 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
| 7988 | eval 'as_fn_append () |
---|
| 7989 | { |
---|
| 7990 | eval $1+=\$2 |
---|
| 7991 | }' |
---|
| 7992 | else |
---|
| 7993 | as_fn_append () |
---|
| 7994 | { |
---|
| 7995 | eval $1=\$$1\$2 |
---|
| 7996 | } |
---|
| 7997 | fi # as_fn_append |
---|
| 7998 | |
---|
| 7999 | # as_fn_arith ARG... |
---|
| 8000 | # ------------------ |
---|
| 8001 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
| 8002 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
| 8003 | # must be portable across $(()) and expr. |
---|
| 8004 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
| 8005 | eval 'as_fn_arith () |
---|
| 8006 | { |
---|
| 8007 | as_val=$(( $* )) |
---|
| 8008 | }' |
---|
| 8009 | else |
---|
| 8010 | as_fn_arith () |
---|
| 8011 | { |
---|
| 8012 | as_val=`expr "$@" || test $? -eq 1` |
---|
| 8013 | } |
---|
| 8014 | fi # as_fn_arith |
---|
| 8015 | |
---|
| 8016 | |
---|
| 8017 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 8018 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
| 8019 | as_expr=expr |
---|
| 8020 | else |
---|
| 8021 | as_expr=false |
---|
| 8022 | fi |
---|
| 8023 | |
---|
| 8024 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
| 8025 | as_basename=basename |
---|
| 8026 | else |
---|
| 8027 | as_basename=false |
---|
| 8028 | fi |
---|
| 8029 | |
---|
| 8030 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 8031 | as_dirname=dirname |
---|
| 8032 | else |
---|
| 8033 | as_dirname=false |
---|
| 8034 | fi |
---|
| 8035 | |
---|
| 8036 | as_me=`$as_basename -- "$0" || |
---|
| 8037 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 8038 | X"$0" : 'X\(//\)$' \| \ |
---|
| 8039 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 8040 | $as_echo X/"$0" | |
---|
| 8041 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
| 8042 | s//\1/ |
---|
| 8043 | q |
---|
| 8044 | } |
---|
| 8045 | /^X\/\(\/\/\)$/{ |
---|
| 8046 | s//\1/ |
---|
| 8047 | q |
---|
| 8048 | } |
---|
| 8049 | /^X\/\(\/\).*/{ |
---|
| 8050 | s//\1/ |
---|
| 8051 | q |
---|
| 8052 | } |
---|
| 8053 | s/.*/./; q'` |
---|
| 8054 | |
---|
| 8055 | # Avoid depending upon Character Ranges. |
---|
| 8056 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 8057 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 8058 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 8059 | as_cr_digits='0123456789' |
---|
| 8060 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 8061 | |
---|
| 8062 | ECHO_C= ECHO_N= ECHO_T= |
---|
| 8063 | case `echo -n x` in #((((( |
---|
| 8064 | -n*) |
---|
| 8065 | case `echo 'xy\c'` in |
---|
| 8066 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
| 8067 | xy) ECHO_C='\c';; |
---|
| 8068 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
| 8069 | ECHO_T=' ';; |
---|
| 8070 | esac;; |
---|
| 8071 | *) |
---|
| 8072 | ECHO_N='-n';; |
---|
| 8073 | esac |
---|
| 8074 | |
---|
| 8075 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 8076 | if test -d conf$$.dir; then |
---|
| 8077 | rm -f conf$$.dir/conf$$.file |
---|
| 8078 | else |
---|
| 8079 | rm -f conf$$.dir |
---|
| 8080 | mkdir conf$$.dir 2>/dev/null |
---|
| 8081 | fi |
---|
| 8082 | if (echo >conf$$.file) 2>/dev/null; then |
---|
| 8083 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 8084 | as_ln_s='ln -s' |
---|
| 8085 | # ... but there are two gotchas: |
---|
| 8086 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
| 8087 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
| 8088 | # In both cases, we have to default to `cp -pR'. |
---|
| 8089 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
| 8090 | as_ln_s='cp -pR' |
---|
| 8091 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 8092 | as_ln_s=ln |
---|
| 8093 | else |
---|
| 8094 | as_ln_s='cp -pR' |
---|
| 8095 | fi |
---|
| 8096 | else |
---|
| 8097 | as_ln_s='cp -pR' |
---|
| 8098 | fi |
---|
| 8099 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 8100 | rmdir conf$$.dir 2>/dev/null |
---|
| 8101 | |
---|
| 8102 | |
---|
| 8103 | # as_fn_mkdir_p |
---|
| 8104 | # ------------- |
---|
| 8105 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
| 8106 | as_fn_mkdir_p () |
---|
| 8107 | { |
---|
| 8108 | |
---|
| 8109 | case $as_dir in #( |
---|
| 8110 | -*) as_dir=./$as_dir;; |
---|
| 8111 | esac |
---|
| 8112 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
| 8113 | as_dirs= |
---|
| 8114 | while :; do |
---|
| 8115 | case $as_dir in #( |
---|
| 8116 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
| 8117 | *) as_qdir=$as_dir;; |
---|
| 8118 | esac |
---|
| 8119 | as_dirs="'$as_qdir' $as_dirs" |
---|
| 8120 | as_dir=`$as_dirname -- "$as_dir" || |
---|
| 8121 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8122 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 8123 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 8124 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 8125 | $as_echo X"$as_dir" | |
---|
| 8126 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 8127 | s//\1/ |
---|
| 8128 | q |
---|
| 8129 | } |
---|
| 8130 | /^X\(\/\/\)[^/].*/{ |
---|
| 8131 | s//\1/ |
---|
| 8132 | q |
---|
| 8133 | } |
---|
| 8134 | /^X\(\/\/\)$/{ |
---|
| 8135 | s//\1/ |
---|
| 8136 | q |
---|
| 8137 | } |
---|
| 8138 | /^X\(\/\).*/{ |
---|
| 8139 | s//\1/ |
---|
| 8140 | q |
---|
| 8141 | } |
---|
| 8142 | s/.*/./; q'` |
---|
| 8143 | test -d "$as_dir" && break |
---|
| 8144 | done |
---|
| 8145 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
| 8146 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
| 8147 | |
---|
| 8148 | |
---|
| 8149 | } # as_fn_mkdir_p |
---|
| 8150 | if mkdir -p . 2>/dev/null; then |
---|
| 8151 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
| 8152 | else |
---|
| 8153 | test -d ./-p && rmdir ./-p |
---|
| 8154 | as_mkdir_p=false |
---|
| 8155 | fi |
---|
| 8156 | |
---|
| 8157 | |
---|
| 8158 | # as_fn_executable_p FILE |
---|
| 8159 | # ----------------------- |
---|
| 8160 | # Test if FILE is an executable regular file. |
---|
| 8161 | as_fn_executable_p () |
---|
| 8162 | { |
---|
| 8163 | test -f "$1" && test -x "$1" |
---|
| 8164 | } # as_fn_executable_p |
---|
| 8165 | as_test_x='test -x' |
---|
| 8166 | as_executable_p=as_fn_executable_p |
---|
| 8167 | |
---|
| 8168 | # Sed expression to map a string onto a valid CPP name. |
---|
| 8169 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 8170 | |
---|
| 8171 | # Sed expression to map a string onto a valid variable name. |
---|
| 8172 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 8173 | |
---|
| 8174 | |
---|
| 8175 | exec 6>&1 |
---|
| 8176 | ## ----------------------------------- ## |
---|
| 8177 | ## Main body of $CONFIG_STATUS script. ## |
---|
| 8178 | ## ----------------------------------- ## |
---|
| 8179 | _ASEOF |
---|
| 8180 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
| 8181 | |
---|
| 8182 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 8183 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
| 8184 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 8185 | # values after options handling. |
---|
| 8186 | ac_log=" |
---|
| 8187 | This file was extended by nanoscale $as_me 0.1, which was |
---|
| 8188 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
| 8189 | |
---|
| 8190 | CONFIG_FILES = $CONFIG_FILES |
---|
| 8191 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 8192 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 8193 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 8194 | $ $0 $@ |
---|
| 8195 | |
---|
| 8196 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 8197 | " |
---|
| 8198 | |
---|
| 8199 | _ACEOF |
---|
| 8200 | |
---|
| 8201 | case $ac_config_files in *" |
---|
| 8202 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
| 8203 | esac |
---|
| 8204 | |
---|
| 8205 | case $ac_config_headers in *" |
---|
| 8206 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
| 8207 | esac |
---|
| 8208 | |
---|
| 8209 | |
---|
| 8210 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 8211 | # Files that config.status was made for. |
---|
| 8212 | config_files="$ac_config_files" |
---|
| 8213 | config_headers="$ac_config_headers" |
---|
| 8214 | |
---|
| 8215 | _ACEOF |
---|
| 8216 | |
---|
| 8217 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 8218 | ac_cs_usage="\ |
---|
| 8219 | \`$as_me' instantiates files and other configuration actions |
---|
| 8220 | from templates according to the current configuration. Unless the files |
---|
| 8221 | and actions are specified as TAGs, all are instantiated by default. |
---|
| 8222 | |
---|
| 8223 | Usage: $0 [OPTION]... [TAG]... |
---|
| 8224 | |
---|
| 8225 | -h, --help print this help, then exit |
---|
| 8226 | -V, --version print version number and configuration settings, then exit |
---|
| 8227 | --config print configuration, then exit |
---|
| 8228 | -q, --quiet, --silent |
---|
| 8229 | do not print progress messages |
---|
| 8230 | -d, --debug don't remove temporary files |
---|
| 8231 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 8232 | --file=FILE[:TEMPLATE] |
---|
| 8233 | instantiate the configuration file FILE |
---|
| 8234 | --header=FILE[:TEMPLATE] |
---|
| 8235 | instantiate the configuration header FILE |
---|
| 8236 | |
---|
| 8237 | Configuration files: |
---|
| 8238 | $config_files |
---|
| 8239 | |
---|
| 8240 | Configuration headers: |
---|
| 8241 | $config_headers |
---|
| 8242 | |
---|
| 8243 | Report bugs to <rappture@nanohub.org>." |
---|
| 8244 | |
---|
| 8245 | _ACEOF |
---|
| 8246 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 8247 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
| 8248 | ac_cs_version="\\ |
---|
| 8249 | nanoscale config.status 0.1 |
---|
| 8250 | configured by $0, generated by GNU Autoconf 2.69, |
---|
| 8251 | with options \\"\$ac_cs_config\\" |
---|
| 8252 | |
---|
| 8253 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
| 8254 | This config.status script is free software; the Free Software Foundation |
---|
| 8255 | gives unlimited permission to copy, distribute and modify it." |
---|
| 8256 | |
---|
| 8257 | ac_pwd='$ac_pwd' |
---|
| 8258 | srcdir='$srcdir' |
---|
| 8259 | INSTALL='$INSTALL' |
---|
| 8260 | MKDIR_P='$MKDIR_P' |
---|
| 8261 | test -n "\$AWK" || AWK=awk |
---|
| 8262 | _ACEOF |
---|
| 8263 | |
---|
| 8264 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 8265 | # The default lists apply if the user does not specify any file. |
---|
| 8266 | ac_need_defaults=: |
---|
| 8267 | while test $# != 0 |
---|
| 8268 | do |
---|
| 8269 | case $1 in |
---|
| 8270 | --*=?*) |
---|
| 8271 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
| 8272 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
| 8273 | ac_shift=: |
---|
| 8274 | ;; |
---|
| 8275 | --*=) |
---|
| 8276 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
| 8277 | ac_optarg= |
---|
| 8278 | ac_shift=: |
---|
| 8279 | ;; |
---|
| 8280 | *) |
---|
| 8281 | ac_option=$1 |
---|
| 8282 | ac_optarg=$2 |
---|
| 8283 | ac_shift=shift |
---|
| 8284 | ;; |
---|
| 8285 | esac |
---|
| 8286 | |
---|
| 8287 | case $ac_option in |
---|
| 8288 | # Handling of the options. |
---|
| 8289 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 8290 | ac_cs_recheck=: ;; |
---|
| 8291 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
| 8292 | $as_echo "$ac_cs_version"; exit ;; |
---|
| 8293 | --config | --confi | --conf | --con | --co | --c ) |
---|
| 8294 | $as_echo "$ac_cs_config"; exit ;; |
---|
| 8295 | --debug | --debu | --deb | --de | --d | -d ) |
---|
| 8296 | debug=: ;; |
---|
| 8297 | --file | --fil | --fi | --f ) |
---|
| 8298 | $ac_shift |
---|
| 8299 | case $ac_optarg in |
---|
| 8300 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 8301 | '') as_fn_error $? "missing file argument" ;; |
---|
| 8302 | esac |
---|
| 8303 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
| 8304 | ac_need_defaults=false;; |
---|
| 8305 | --header | --heade | --head | --hea ) |
---|
| 8306 | $ac_shift |
---|
| 8307 | case $ac_optarg in |
---|
| 8308 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 8309 | esac |
---|
| 8310 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
| 8311 | ac_need_defaults=false;; |
---|
| 8312 | --he | --h) |
---|
| 8313 | # Conflict between --help and --header |
---|
| 8314 | as_fn_error $? "ambiguous option: \`$1' |
---|
| 8315 | Try \`$0 --help' for more information.";; |
---|
| 8316 | --help | --hel | -h ) |
---|
| 8317 | $as_echo "$ac_cs_usage"; exit ;; |
---|
| 8318 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 8319 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 8320 | ac_cs_silent=: ;; |
---|
| 8321 | |
---|
| 8322 | # This is an error. |
---|
| 8323 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
| 8324 | Try \`$0 --help' for more information." ;; |
---|
| 8325 | |
---|
| 8326 | *) as_fn_append ac_config_targets " $1" |
---|
| 8327 | ac_need_defaults=false ;; |
---|
| 8328 | |
---|
| 8329 | esac |
---|
| 8330 | shift |
---|
| 8331 | done |
---|
| 8332 | |
---|
| 8333 | ac_configure_extra_args= |
---|
| 8334 | |
---|
| 8335 | if $ac_cs_silent; then |
---|
| 8336 | exec 6>/dev/null |
---|
| 8337 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 8338 | fi |
---|
| 8339 | |
---|
| 8340 | _ACEOF |
---|
| 8341 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 8342 | if \$ac_cs_recheck; then |
---|
| 8343 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 8344 | shift |
---|
| 8345 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
| 8346 | CONFIG_SHELL='$SHELL' |
---|
| 8347 | export CONFIG_SHELL |
---|
| 8348 | exec "\$@" |
---|
| 8349 | fi |
---|
| 8350 | |
---|
| 8351 | _ACEOF |
---|
| 8352 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 8353 | exec 5>>config.log |
---|
| 8354 | { |
---|
| 8355 | echo |
---|
| 8356 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 8357 | ## Running $as_me. ## |
---|
| 8358 | _ASBOX |
---|
| 8359 | $as_echo "$ac_log" |
---|
| 8360 | } >&5 |
---|
| 8361 | |
---|
| 8362 | _ACEOF |
---|
| 8363 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 8364 | _ACEOF |
---|
| 8365 | |
---|
| 8366 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 8367 | |
---|
| 8368 | # Handling of arguments. |
---|
| 8369 | for ac_config_target in $ac_config_targets |
---|
| 8370 | do |
---|
| 8371 | case $ac_config_target in |
---|
| 8372 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
| 8373 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 8374 | "renderservers.tcl") CONFIG_FILES="$CONFIG_FILES renderservers.tcl" ;; |
---|
| 8375 | "start_nanoscale.sh") CONFIG_FILES="$CONFIG_FILES start_nanoscale.sh" ;; |
---|
| 8376 | |
---|
| 8377 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
| 8378 | esac |
---|
| 8379 | done |
---|
| 8380 | |
---|
| 8381 | |
---|
| 8382 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 8383 | # then the envvar interface is used. Set only those that are not. |
---|
| 8384 | # We use the long form for the default assignment because of an extremely |
---|
| 8385 | # bizarre bug on SunOS 4.1.3. |
---|
| 8386 | if $ac_need_defaults; then |
---|
| 8387 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 8388 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 8389 | fi |
---|
| 8390 | |
---|
| 8391 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 8392 | # simply because there is no reason against having it here, and in addition, |
---|
| 8393 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 8394 | # Hook for its removal unless debugging. |
---|
| 8395 | # Note that there is a small window in which the directory will not be cleaned: |
---|
| 8396 | # after its creation but before its name has been assigned to `$tmp'. |
---|
| 8397 | $debug || |
---|
| 8398 | { |
---|
| 8399 | tmp= ac_tmp= |
---|
| 8400 | trap 'exit_status=$? |
---|
| 8401 | : "${ac_tmp:=$tmp}" |
---|
| 8402 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
| 8403 | ' 0 |
---|
| 8404 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
| 8405 | } |
---|
| 8406 | # Create a (secure) tmp directory for tmp files. |
---|
| 8407 | |
---|
| 8408 | { |
---|
| 8409 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
| 8410 | test -d "$tmp" |
---|
| 8411 | } || |
---|
| 8412 | { |
---|
| 8413 | tmp=./conf$$-$RANDOM |
---|
| 8414 | (umask 077 && mkdir "$tmp") |
---|
| 8415 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
| 8416 | ac_tmp=$tmp |
---|
| 8417 | |
---|
| 8418 | # Set up the scripts for CONFIG_FILES section. |
---|
| 8419 | # No need to generate them if there are no CONFIG_FILES. |
---|
| 8420 | # This happens for instance with `./config.status config.h'. |
---|
| 8421 | if test -n "$CONFIG_FILES"; then |
---|
| 8422 | |
---|
| 8423 | |
---|
| 8424 | ac_cr=`echo X | tr X '\015'` |
---|
| 8425 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
| 8426 | # But we know of no other shell where ac_cr would be empty at this |
---|
| 8427 | # point, so we can use a bashism as a fallback. |
---|
| 8428 | if test "x$ac_cr" = x; then |
---|
| 8429 | eval ac_cr=\$\'\\r\' |
---|
| 8430 | fi |
---|
| 8431 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
| 8432 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
| 8433 | ac_cs_awk_cr='\\r' |
---|
| 8434 | else |
---|
| 8435 | ac_cs_awk_cr=$ac_cr |
---|
| 8436 | fi |
---|
| 8437 | |
---|
| 8438 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
| 8439 | _ACEOF |
---|
| 8440 | |
---|
| 8441 | |
---|
| 8442 | { |
---|
| 8443 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
| 8444 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
| 8445 | echo "_ACEOF" |
---|
| 8446 | } >conf$$subs.sh || |
---|
| 8447 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
| 8448 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
| 8449 | ac_delim='%!_!# ' |
---|
| 8450 | for ac_last_try in false false false false false :; do |
---|
| 8451 | . ./conf$$subs.sh || |
---|
| 8452 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
| 8453 | |
---|
| 8454 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
| 8455 | if test $ac_delim_n = $ac_delim_num; then |
---|
| 8456 | break |
---|
| 8457 | elif $ac_last_try; then |
---|
| 8458 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
| 8459 | else |
---|
| 8460 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
| 8461 | fi |
---|
| 8462 | done |
---|
| 8463 | rm -f conf$$subs.sh |
---|
| 8464 | |
---|
| 8465 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 8466 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
| 8467 | _ACEOF |
---|
| 8468 | sed -n ' |
---|
| 8469 | h |
---|
| 8470 | s/^/S["/; s/!.*/"]=/ |
---|
| 8471 | p |
---|
| 8472 | g |
---|
| 8473 | s/^[^!]*!// |
---|
| 8474 | :repl |
---|
| 8475 | t repl |
---|
| 8476 | s/'"$ac_delim"'$// |
---|
| 8477 | t delim |
---|
| 8478 | :nl |
---|
| 8479 | h |
---|
| 8480 | s/\(.\{148\}\)..*/\1/ |
---|
| 8481 | t more1 |
---|
| 8482 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
| 8483 | p |
---|
| 8484 | n |
---|
| 8485 | b repl |
---|
| 8486 | :more1 |
---|
| 8487 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
| 8488 | p |
---|
| 8489 | g |
---|
| 8490 | s/.\{148\}// |
---|
| 8491 | t nl |
---|
| 8492 | :delim |
---|
| 8493 | h |
---|
| 8494 | s/\(.\{148\}\)..*/\1/ |
---|
| 8495 | t more2 |
---|
| 8496 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
| 8497 | p |
---|
| 8498 | b |
---|
| 8499 | :more2 |
---|
| 8500 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
| 8501 | p |
---|
| 8502 | g |
---|
| 8503 | s/.\{148\}// |
---|
| 8504 | t delim |
---|
| 8505 | ' <conf$$subs.awk | sed ' |
---|
| 8506 | /^[^""]/{ |
---|
| 8507 | N |
---|
| 8508 | s/\n// |
---|
| 8509 | } |
---|
| 8510 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
| 8511 | rm -f conf$$subs.awk |
---|
| 8512 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 8513 | _ACAWK |
---|
| 8514 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
| 8515 | for (key in S) S_is_set[key] = 1 |
---|
| 8516 | FS = "" |
---|
| 8517 | |
---|
| 8518 | } |
---|
| 8519 | { |
---|
| 8520 | line = $ 0 |
---|
| 8521 | nfields = split(line, field, "@") |
---|
| 8522 | substed = 0 |
---|
| 8523 | len = length(field[1]) |
---|
| 8524 | for (i = 2; i < nfields; i++) { |
---|
| 8525 | key = field[i] |
---|
| 8526 | keylen = length(key) |
---|
| 8527 | if (S_is_set[key]) { |
---|
| 8528 | value = S[key] |
---|
| 8529 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
| 8530 | len += length(value) + length(field[++i]) |
---|
| 8531 | substed = 1 |
---|
| 8532 | } else |
---|
| 8533 | len += 1 + keylen |
---|
| 8534 | } |
---|
| 8535 | |
---|
| 8536 | print line |
---|
| 8537 | } |
---|
| 8538 | |
---|
| 8539 | _ACAWK |
---|
| 8540 | _ACEOF |
---|
| 8541 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 8542 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
| 8543 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
| 8544 | else |
---|
| 8545 | cat |
---|
| 8546 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
| 8547 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
| 8548 | _ACEOF |
---|
| 8549 | |
---|
| 8550 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
| 8551 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
| 8552 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 8553 | # (actually we leave an empty line to preserve line numbers). |
---|
| 8554 | if test "x$srcdir" = x.; then |
---|
| 8555 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
| 8556 | h |
---|
| 8557 | s/// |
---|
| 8558 | s/^/:/ |
---|
| 8559 | s/[ ]*$/:/ |
---|
| 8560 | s/:\$(srcdir):/:/g |
---|
| 8561 | s/:\${srcdir}:/:/g |
---|
| 8562 | s/:@srcdir@:/:/g |
---|
| 8563 | s/^:*// |
---|
| 8564 | s/:*$// |
---|
| 8565 | x |
---|
| 8566 | s/\(=[ ]*\).*/\1/ |
---|
| 8567 | G |
---|
| 8568 | s/\n// |
---|
| 8569 | s/^[^=]*=[ ]*$// |
---|
| 8570 | }' |
---|
| 8571 | fi |
---|
| 8572 | |
---|
| 8573 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 8574 | fi # test -n "$CONFIG_FILES" |
---|
| 8575 | |
---|
| 8576 | # Set up the scripts for CONFIG_HEADERS section. |
---|
| 8577 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
| 8578 | # This happens for instance with `./config.status Makefile'. |
---|
| 8579 | if test -n "$CONFIG_HEADERS"; then |
---|
| 8580 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
| 8581 | BEGIN { |
---|
| 8582 | _ACEOF |
---|
| 8583 | |
---|
| 8584 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
| 8585 | # here-document in config.status, that substitutes the proper values into |
---|
| 8586 | # config.h.in to produce config.h. |
---|
| 8587 | |
---|
| 8588 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
| 8589 | # handling of long lines. |
---|
| 8590 | ac_delim='%!_!# ' |
---|
| 8591 | for ac_last_try in false false :; do |
---|
| 8592 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
| 8593 | if test -z "$ac_tt"; then |
---|
| 8594 | break |
---|
| 8595 | elif $ac_last_try; then |
---|
| 8596 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
| 8597 | else |
---|
| 8598 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
| 8599 | fi |
---|
| 8600 | done |
---|
| 8601 | |
---|
| 8602 | # For the awk script, D is an array of macro values keyed by name, |
---|
| 8603 | # likewise P contains macro parameters if any. Preserve backslash |
---|
| 8604 | # newline sequences. |
---|
| 8605 | |
---|
| 8606 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
| 8607 | sed -n ' |
---|
| 8608 | s/.\{148\}/&'"$ac_delim"'/g |
---|
| 8609 | t rset |
---|
| 8610 | :rset |
---|
| 8611 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
| 8612 | t def |
---|
| 8613 | d |
---|
| 8614 | :def |
---|
| 8615 | s/\\$// |
---|
| 8616 | t bsnl |
---|
| 8617 | s/["\\]/\\&/g |
---|
| 8618 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
| 8619 | D["\1"]=" \3"/p |
---|
| 8620 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
| 8621 | d |
---|
| 8622 | :bsnl |
---|
| 8623 | s/["\\]/\\&/g |
---|
| 8624 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
| 8625 | D["\1"]=" \3\\\\\\n"\\/p |
---|
| 8626 | t cont |
---|
| 8627 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
| 8628 | t cont |
---|
| 8629 | d |
---|
| 8630 | :cont |
---|
| 8631 | n |
---|
| 8632 | s/.\{148\}/&'"$ac_delim"'/g |
---|
| 8633 | t clear |
---|
| 8634 | :clear |
---|
| 8635 | s/\\$// |
---|
| 8636 | t bsnlc |
---|
| 8637 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
| 8638 | d |
---|
| 8639 | :bsnlc |
---|
| 8640 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
| 8641 | b cont |
---|
| 8642 | ' <confdefs.h | sed ' |
---|
| 8643 | s/'"$ac_delim"'/"\\\ |
---|
| 8644 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
| 8645 | |
---|
| 8646 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 8647 | for (key in D) D_is_set[key] = 1 |
---|
| 8648 | FS = "" |
---|
| 8649 | } |
---|
| 8650 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
| 8651 | line = \$ 0 |
---|
| 8652 | split(line, arg, " ") |
---|
| 8653 | if (arg[1] == "#") { |
---|
| 8654 | defundef = arg[2] |
---|
| 8655 | mac1 = arg[3] |
---|
| 8656 | } else { |
---|
| 8657 | defundef = substr(arg[1], 2) |
---|
| 8658 | mac1 = arg[2] |
---|
| 8659 | } |
---|
| 8660 | split(mac1, mac2, "(") #) |
---|
| 8661 | macro = mac2[1] |
---|
| 8662 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
| 8663 | if (D_is_set[macro]) { |
---|
| 8664 | # Preserve the white space surrounding the "#". |
---|
| 8665 | print prefix "define", macro P[macro] D[macro] |
---|
| 8666 | next |
---|
| 8667 | } else { |
---|
| 8668 | # Replace #undef with comments. This is necessary, for example, |
---|
| 8669 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 8670 | # on some systems where configure will not decide to define it. |
---|
| 8671 | if (defundef == "undef") { |
---|
| 8672 | print "/*", prefix defundef, macro, "*/" |
---|
| 8673 | next |
---|
| 8674 | } |
---|
| 8675 | } |
---|
| 8676 | } |
---|
| 8677 | { print } |
---|
| 8678 | _ACAWK |
---|
| 8679 | _ACEOF |
---|
| 8680 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 8681 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
| 8682 | fi # test -n "$CONFIG_HEADERS" |
---|
| 8683 | |
---|
| 8684 | |
---|
| 8685 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
---|
| 8686 | shift |
---|
| 8687 | for ac_tag |
---|
| 8688 | do |
---|
| 8689 | case $ac_tag in |
---|
| 8690 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
| 8691 | esac |
---|
| 8692 | case $ac_mode$ac_tag in |
---|
| 8693 | :[FHL]*:*);; |
---|
| 8694 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
| 8695 | :[FH]-) ac_tag=-:-;; |
---|
| 8696 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
| 8697 | esac |
---|
| 8698 | ac_save_IFS=$IFS |
---|
| 8699 | IFS=: |
---|
| 8700 | set x $ac_tag |
---|
| 8701 | IFS=$ac_save_IFS |
---|
| 8702 | shift |
---|
| 8703 | ac_file=$1 |
---|
| 8704 | shift |
---|
| 8705 | |
---|
| 8706 | case $ac_mode in |
---|
| 8707 | :L) ac_source=$1;; |
---|
| 8708 | :[FH]) |
---|
| 8709 | ac_file_inputs= |
---|
| 8710 | for ac_f |
---|
| 8711 | do |
---|
| 8712 | case $ac_f in |
---|
| 8713 | -) ac_f="$ac_tmp/stdin";; |
---|
| 8714 | *) # Look for the file first in the build tree, then in the source tree |
---|
| 8715 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
| 8716 | # because $ac_f cannot contain `:'. |
---|
| 8717 | test -f "$ac_f" || |
---|
| 8718 | case $ac_f in |
---|
| 8719 | [\\/$]*) false;; |
---|
| 8720 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
| 8721 | esac || |
---|
| 8722 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
| 8723 | esac |
---|
| 8724 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
| 8725 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
| 8726 | done |
---|
| 8727 | |
---|
| 8728 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 8729 | # use $as_me), people would be surprised to read: |
---|
| 8730 | # /* config.h. Generated by config.status. */ |
---|
| 8731 | configure_input='Generated from '` |
---|
| 8732 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
| 8733 | `' by configure.' |
---|
| 8734 | if test x"$ac_file" != x-; then |
---|
| 8735 | configure_input="$ac_file. $configure_input" |
---|
| 8736 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
| 8737 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
| 8738 | fi |
---|
| 8739 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
| 8740 | case $configure_input in #( |
---|
| 8741 | *\&* | *\|* | *\\* ) |
---|
| 8742 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
| 8743 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
| 8744 | *) ac_sed_conf_input=$configure_input;; |
---|
| 8745 | esac |
---|
| 8746 | |
---|
| 8747 | case $ac_tag in |
---|
| 8748 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
| 8749 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
| 8750 | esac |
---|
| 8751 | ;; |
---|
| 8752 | esac |
---|
| 8753 | |
---|
| 8754 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
| 8755 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8756 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 8757 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 8758 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
| 8759 | $as_echo X"$ac_file" | |
---|
| 8760 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 8761 | s//\1/ |
---|
| 8762 | q |
---|
| 8763 | } |
---|
| 8764 | /^X\(\/\/\)[^/].*/{ |
---|
| 8765 | s//\1/ |
---|
| 8766 | q |
---|
| 8767 | } |
---|
| 8768 | /^X\(\/\/\)$/{ |
---|
| 8769 | s//\1/ |
---|
| 8770 | q |
---|
| 8771 | } |
---|
| 8772 | /^X\(\/\).*/{ |
---|
| 8773 | s//\1/ |
---|
| 8774 | q |
---|
| 8775 | } |
---|
| 8776 | s/.*/./; q'` |
---|
| 8777 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
| 8778 | ac_builddir=. |
---|
| 8779 | |
---|
| 8780 | case "$ac_dir" in |
---|
| 8781 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 8782 | *) |
---|
| 8783 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
| 8784 | # A ".." for each directory in $ac_dir_suffix. |
---|
| 8785 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
| 8786 | case $ac_top_builddir_sub in |
---|
| 8787 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 8788 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 8789 | esac ;; |
---|
| 8790 | esac |
---|
| 8791 | ac_abs_top_builddir=$ac_pwd |
---|
| 8792 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 8793 | # for backward compatibility: |
---|
| 8794 | ac_top_builddir=$ac_top_build_prefix |
---|
| 8795 | |
---|
| 8796 | case $srcdir in |
---|
| 8797 | .) # We are building in place. |
---|
| 8798 | ac_srcdir=. |
---|
| 8799 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 8800 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 8801 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
| 8802 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 8803 | ac_top_srcdir=$srcdir |
---|
| 8804 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 8805 | *) # Relative name. |
---|
| 8806 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 8807 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 8808 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
| 8809 | esac |
---|
| 8810 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
| 8811 | |
---|
| 8812 | |
---|
| 8813 | case $ac_mode in |
---|
| 8814 | :F) |
---|
| 8815 | # |
---|
| 8816 | # CONFIG_FILE |
---|
| 8817 | # |
---|
| 8818 | |
---|
| 8819 | case $INSTALL in |
---|
| 8820 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 8821 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
| 8822 | esac |
---|
| 8823 | ac_MKDIR_P=$MKDIR_P |
---|
| 8824 | case $MKDIR_P in |
---|
| 8825 | [\\/$]* | ?:[\\/]* ) ;; |
---|
| 8826 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
| 8827 | esac |
---|
| 8828 | _ACEOF |
---|
| 8829 | |
---|
| 8830 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 8831 | # If the template does not know about datarootdir, expand it. |
---|
| 8832 | # FIXME: This hack should be removed a few years after 2.60. |
---|
| 8833 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
| 8834 | ac_sed_dataroot=' |
---|
| 8835 | /datarootdir/ { |
---|
| 8836 | p |
---|
| 8837 | q |
---|
| 8838 | } |
---|
| 8839 | /@datadir@/p |
---|
| 8840 | /@docdir@/p |
---|
| 8841 | /@infodir@/p |
---|
| 8842 | /@localedir@/p |
---|
| 8843 | /@mandir@/p' |
---|
| 8844 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
| 8845 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
| 8846 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
| 8847 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
| 8848 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
| 8849 | _ACEOF |
---|
| 8850 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 8851 | ac_datarootdir_hack=' |
---|
| 8852 | s&@datadir@&$datadir&g |
---|
| 8853 | s&@docdir@&$docdir&g |
---|
| 8854 | s&@infodir@&$infodir&g |
---|
| 8855 | s&@localedir@&$localedir&g |
---|
| 8856 | s&@mandir@&$mandir&g |
---|
| 8857 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
| 8858 | esac |
---|
| 8859 | _ACEOF |
---|
| 8860 | |
---|
| 8861 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
| 8862 | # Shell code in configure.ac might set extrasub. |
---|
| 8863 | # FIXME: do we really want to maintain this feature? |
---|
| 8864 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
| 8865 | ac_sed_extra="$ac_vpsub |
---|
| 8866 | $extrasub |
---|
| 8867 | _ACEOF |
---|
| 8868 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
| 8869 | :t |
---|
| 8870 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 8871 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
| 8872 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
| 8873 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
| 8874 | s&@srcdir@&$ac_srcdir&;t t |
---|
| 8875 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
| 8876 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
| 8877 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
| 8878 | s&@builddir@&$ac_builddir&;t t |
---|
| 8879 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
| 8880 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
| 8881 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
| 8882 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
| 8883 | $ac_datarootdir_hack |
---|
| 8884 | " |
---|
| 8885 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
| 8886 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
| 8887 | |
---|
| 8888 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
| 8889 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
| 8890 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
| 8891 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
| 8892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 8893 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
| 8894 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 8895 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
| 8896 | |
---|
| 8897 | rm -f "$ac_tmp/stdin" |
---|
| 8898 | case $ac_file in |
---|
| 8899 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
| 8900 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
| 8901 | esac \ |
---|
| 8902 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
| 8903 | ;; |
---|
| 8904 | :H) |
---|
| 8905 | # |
---|
| 8906 | # CONFIG_HEADER |
---|
| 8907 | # |
---|
| 8908 | if test x"$ac_file" != x-; then |
---|
| 8909 | { |
---|
| 8910 | $as_echo "/* $configure_input */" \ |
---|
| 8911 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
| 8912 | } >"$ac_tmp/config.h" \ |
---|
| 8913 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
| 8914 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
| 8915 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
| 8916 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 8917 | else |
---|
| 8918 | rm -f "$ac_file" |
---|
| 8919 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
| 8920 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
| 8921 | fi |
---|
| 8922 | else |
---|
| 8923 | $as_echo "/* $configure_input */" \ |
---|
| 8924 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
| 8925 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
| 8926 | fi |
---|
| 8927 | ;; |
---|
| 8928 | |
---|
| 8929 | |
---|
| 8930 | esac |
---|
| 8931 | |
---|
| 8932 | done # for ac_tag |
---|
| 8933 | |
---|
| 8934 | |
---|
| 8935 | as_fn_exit 0 |
---|
| 8936 | _ACEOF |
---|
| 8937 | ac_clean_files=$ac_clean_files_save |
---|
| 8938 | |
---|
| 8939 | test $ac_write_fail = 0 || |
---|
| 8940 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
| 8941 | |
---|
| 8942 | |
---|
| 8943 | # configure is writing to config.log, and then calls config.status. |
---|
| 8944 | # config.status does its own redirection, appending to config.log. |
---|
| 8945 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 8946 | # by configure, so config.status won't be able to write to it; its |
---|
| 8947 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 8948 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 8949 | # appended to by config.status. When coming back to configure, we |
---|
| 8950 | # need to make the FD available again. |
---|
| 8951 | if test "$no_create" != yes; then |
---|
| 8952 | ac_cs_success=: |
---|
| 8953 | ac_config_status_args= |
---|
| 8954 | test "$silent" = yes && |
---|
| 8955 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 8956 | exec 5>/dev/null |
---|
| 8957 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 8958 | exec 5>>config.log |
---|
| 8959 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 8960 | # would make configure fail if this is the last instruction. |
---|
| 8961 | $ac_cs_success || as_fn_exit 1 |
---|
| 8962 | fi |
---|
| 8963 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
| 8964 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
| 8965 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
| 8966 | fi |
---|
| 8967 | |
---|