source: trunk/packages/vizservers/configure @ 4060

Last change on this file since 4060 was 4060, checked in by ldelgass, 6 years ago

Add separate configure scripts for nanovis and vtkvis, remove them from the
vizservers configure (which now only configures nanoscale and pymolproxy).

  • Property svn:executable set to *
File size: 255.5 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for vizservers 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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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  }
81fi
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.)
89IFS=" ""        $as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104     ;;
105esac
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.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export 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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if 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
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -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
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
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
227fi
228fi
229           done;;
230       esac
231  as_found=false
232done
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
236fi; }
237IFS=$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.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $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
259exit 255
260fi
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
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_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.
308as_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.
318as_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.
366as_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.
376if (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  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # 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.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # 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.
411as_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
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_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.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_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
503ECHO_C= ECHO_N= ECHO_T=
504case `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';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (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
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_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.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 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.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='vizservers'
582PACKAGE_TARNAME='vizservers'
583PACKAGE_VERSION='0.1'
584PACKAGE_STRING='vizservers 0.1'
585PACKAGE_BUGREPORT='rappture@nanohub.org'
586PACKAGE_URL=''
587
588# Factoring default headers for most tests.
589ac_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
624ac_subst_vars='LTLIBOBJS
625LIBOBJS
626TCL_VERSION
627TCL_LIB_SPEC
628TCL_INC_SPEC
629SUBDIRS
630STATSDIR
631LD_RPATH
632CXXCPP
633ac_ct_CXX
634CXXFLAGS
635CXX
636MKDIR_P
637LN_S
638INSTALL_DATA
639INSTALL_SCRIPT
640INSTALL_PROGRAM
641XMKMF
642INSTALL_STUB_LIB
643INSTALL_LIB
644MAKE_STUB_LIB
645MAKE_LIB
646SHLIB_SUFFIX
647SHLIB_CFLAGS
648SHLIB_LD_LIBS
649TK_SHLIB_LD_EXTRAS
650TCL_SHLIB_LD_EXTRAS
651SHLIB_LD
652STLIB_LD
653LD_SEARCH_FLAGS
654CC_SEARCH_FLAGS
655LDFLAGS_OPTIMIZE
656LDFLAGS_DEBUG
657CFLAGS_WARNING
658CFLAGS_OPTIMIZE
659CFLAGS_DEBUG
660PLAT_SRCS
661PLAT_OBJS
662DL_OBJS
663DL_LIBS
664AR
665RANLIB
666EGREP
667GREP
668CPP
669OBJEXT
670EXEEXT
671ac_ct_CC
672CPPFLAGS
673LDFLAGS
674CFLAGS
675CC
676PYTHON
677target_alias
678host_alias
679build_alias
680LIBS
681ECHO_T
682ECHO_N
683ECHO_C
684DEFS
685mandir
686localedir
687libdir
688psdir
689pdfdir
690dvidir
691htmldir
692infodir
693docdir
694oldincludedir
695includedir
696localstatedir
697sharedstatedir
698sysconfdir
699datadir
700datarootdir
701libexecdir
702sbindir
703bindir
704program_transform_name
705prefix
706exec_prefix
707PACKAGE_URL
708PACKAGE_BUGREPORT
709PACKAGE_STRING
710PACKAGE_VERSION
711PACKAGE_TARNAME
712PACKAGE_NAME
713PATH_SEPARATOR
714SHELL'
715ac_subst_files=''
716ac_user_opts='
717enable_option_checking
718with_tcllib
719with_statsdir
720with_python
721enable_64bit
722enable_64bit_vis
723enable_corefoundation
724enable_load
725with_x
726'
727      ac_precious_vars='build_alias
728host_alias
729target_alias
730CC
731CFLAGS
732LDFLAGS
733LIBS
734CPPFLAGS
735CPP
736XMKMF
737CXX
738CXXFLAGS
739CCC
740CXXCPP'
741
742
743# Initialize some variables set by options.
744ac_init_help=
745ac_init_version=false
746ac_unrecognized_opts=
747ac_unrecognized_sep=
748# The variables have the same names as the options, with
749# dashes changed to underlines.
750cache_file=/dev/null
751exec_prefix=NONE
752no_create=
753no_recursion=
754prefix=NONE
755program_prefix=NONE
756program_suffix=NONE
757program_transform_name=s,x,x,
758silent=
759site=
760srcdir=
761verbose=
762x_includes=NONE
763x_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.)
771bindir='${exec_prefix}/bin'
772sbindir='${exec_prefix}/sbin'
773libexecdir='${exec_prefix}/libexec'
774datarootdir='${prefix}/share'
775datadir='${datarootdir}'
776sysconfdir='${prefix}/etc'
777sharedstatedir='${prefix}/com'
778localstatedir='${prefix}/var'
779includedir='${prefix}/include'
780oldincludedir='/usr/include'
781docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
782infodir='${datarootdir}/info'
783htmldir='${docdir}'
784dvidir='${docdir}'
785pdfdir='${docdir}'
786psdir='${docdir}'
787libdir='${exec_prefix}/lib'
788localedir='${datarootdir}/locale'
789mandir='${datarootdir}/man'
790
791ac_prev=
792ac_dashdash=
793for ac_option
794do
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'
1127Try \`$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
1149done
1150
1151if test -n "$ac_prev"; then
1152  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1153  as_fn_error $? "missing argument to $ac_option"
1154fi
1155
1156if 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
1162fi
1163
1164# Check all directory arguments for consistency.
1165for 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
1169do
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"
1183done
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.
1188build=$build_alias
1189host=$host_alias
1190target=$target_alias
1191
1192# FIXME: To remove some day.
1193if 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
1199fi
1200
1201ac_tool_prefix=
1202test -n "$host_alias" && ac_tool_prefix=$host_alias-
1203
1204test "$silent" = yes && exec 6>/dev/null
1205
1206
1207ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208ac_ls_di=`ls -di .` &&
1209ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1210  as_fn_error $? "working directory cannot be determined"
1211test "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.
1216if 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
1246else
1247  ac_srcdir_defaulted=no
1248fi
1249if 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"
1252fi
1253ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1254ac_abs_confdir=`(
1255        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1256        pwd)`
1257# When building in place, set srcdir=.
1258if test "$ac_abs_confdir" = "$ac_pwd"; then
1259  srcdir=.
1260fi
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.
1264case $srcdir in
1265*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266esac
1267for 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}
1272done
1273
1274#
1275# Report the --help message.
1276#
1277if 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 vizservers 0.1 to adapt to many kinds of systems.
1282
1283Usage: $0 [OPTION]... [VAR=VALUE]...
1284
1285To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286VAR=VALUE.  See below for descriptions of some of the useful variables.
1287
1288Defaults for the options are specified in brackets.
1289
1290Configuration:
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
1301Installation 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
1307By default, \`make install' will install all the files in
1308\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1309an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310for instance \`--prefix=\$HOME'.
1311
1312For better control, use the options below.
1313
1314Fine 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/vizservers]
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
1338X features:
1339  --x-includes=DIR    X include files are in DIR
1340  --x-libraries=DIR   X library files are in DIR
1341_ACEOF
1342fi
1343
1344if test -n "$ac_init_help"; then
1345  case $ac_init_help in
1346     short | recursive ) echo "Configuration of vizservers 0.1:";;
1347   esac
1348  cat <<\_ACEOF
1349
1350Optional 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
1359Optional 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-python=DIR       location of python [default=yes]
1366  --with-x                use the X Window System
1367
1368Some 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
1382Use these variables to override the choices made by `configure' or to help
1383it to find libraries and programs with nonstandard names/locations.
1384
1385Report bugs to <rappture@nanohub.org>.
1386_ACEOF
1387ac_status=$?
1388fi
1389
1390if 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
1398case "$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 ;;
1408esac
1409ac_abs_top_builddir=$ac_pwd
1410ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411# for backward compatibility:
1412ac_top_builddir=$ac_top_build_prefix
1413
1414case $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 ;;
1427esac
1428ac_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
1443fi
1444
1445test -n "$ac_init_help" && exit $ac_status
1446if $ac_init_version; then
1447  cat <<\_ACEOF
1448vizservers configure 0.1
1449generated by GNU Autoconf 2.69
1450
1451Copyright (C) 2012 Free Software Foundation, Inc.
1452This configure script is free software; the Free Software Foundation
1453gives unlimited permission to copy, distribute and modify it.
1454_ACEOF
1455  exit
1456fi
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.
1465ac_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"
1470case "(($ac_try" in
1471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1472  *) ac_try_echo=$ac_try;;
1473esac
1474eval 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
1489else
1490  $as_echo "$as_me: failed program was:" >&5
1491sed 's/^/| /' conftest.$ac_ext >&5
1492
1493        ac_retval=1
1494fi
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_cpp LINENO
1501# ----------------------
1502# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1503ac_fn_c_try_cpp ()
1504{
1505  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506  if { { ac_try="$ac_cpp conftest.$ac_ext"
1507case "(($ac_try" in
1508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509  *) ac_try_echo=$ac_try;;
1510esac
1511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512$as_echo "$ac_try_echo"; } >&5
1513  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1514  ac_status=$?
1515  if test -s conftest.err; then
1516    grep -v '^ *+' conftest.err >conftest.er1
1517    cat conftest.er1 >&5
1518    mv -f conftest.er1 conftest.err
1519  fi
1520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521  test $ac_status = 0; } > conftest.i && {
1522         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1523         test ! -s conftest.err
1524       }; then :
1525  ac_retval=0
1526else
1527  $as_echo "$as_me: failed program was:" >&5
1528sed 's/^/| /' conftest.$ac_ext >&5
1529
1530    ac_retval=1
1531fi
1532  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533  as_fn_set_status $ac_retval
1534
1535} # ac_fn_c_try_cpp
1536
1537# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1538# -------------------------------------------------------
1539# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1540# the include files in INCLUDES and setting the cache variable VAR
1541# accordingly.
1542ac_fn_c_check_header_mongrel ()
1543{
1544  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545  if eval \${$3+:} false; then :
1546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1547$as_echo_n "checking for $2... " >&6; }
1548if eval \${$3+:} false; then :
1549  $as_echo_n "(cached) " >&6
1550fi
1551eval ac_res=\$$3
1552               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1553$as_echo "$ac_res" >&6; }
1554else
1555  # Is the header compilable?
1556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1557$as_echo_n "checking $2 usability... " >&6; }
1558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1559/* end confdefs.h.  */
1560$4
1561#include <$2>
1562_ACEOF
1563if ac_fn_c_try_compile "$LINENO"; then :
1564  ac_header_compiler=yes
1565else
1566  ac_header_compiler=no
1567fi
1568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1570$as_echo "$ac_header_compiler" >&6; }
1571
1572# Is the header present?
1573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1574$as_echo_n "checking $2 presence... " >&6; }
1575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576/* end confdefs.h.  */
1577#include <$2>
1578_ACEOF
1579if ac_fn_c_try_cpp "$LINENO"; then :
1580  ac_header_preproc=yes
1581else
1582  ac_header_preproc=no
1583fi
1584rm -f conftest.err conftest.i conftest.$ac_ext
1585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1586$as_echo "$ac_header_preproc" >&6; }
1587
1588# So?  What about this header?
1589case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1590  yes:no: )
1591    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1592$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1593    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1594$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1595    ;;
1596  no:yes:* )
1597    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1598$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1599    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1600$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1601    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1602$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1603    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1604$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1605    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1606$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1607( $as_echo "## ----------------------------------- ##
1608## Report this to rappture@nanohub.org ##
1609## ----------------------------------- ##"
1610     ) | sed "s/^/$as_me: WARNING:     /" >&2
1611    ;;
1612esac
1613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614$as_echo_n "checking for $2... " >&6; }
1615if eval \${$3+:} false; then :
1616  $as_echo_n "(cached) " >&6
1617else
1618  eval "$3=\$ac_header_compiler"
1619fi
1620eval ac_res=\$$3
1621               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622$as_echo "$ac_res" >&6; }
1623fi
1624  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625
1626} # ac_fn_c_check_header_mongrel
1627
1628# ac_fn_c_try_run LINENO
1629# ----------------------
1630# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1631# that executables *can* be run.
1632ac_fn_c_try_run ()
1633{
1634  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635  if { { ac_try="$ac_link"
1636case "(($ac_try" in
1637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638  *) ac_try_echo=$ac_try;;
1639esac
1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641$as_echo "$ac_try_echo"; } >&5
1642  (eval "$ac_link") 2>&5
1643  ac_status=$?
1644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1646  { { case "(($ac_try" in
1647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648  *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652  (eval "$ac_try") 2>&5
1653  ac_status=$?
1654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655  test $ac_status = 0; }; }; then :
1656  ac_retval=0
1657else
1658  $as_echo "$as_me: program exited with status $ac_status" >&5
1659       $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662       ac_retval=$ac_status
1663fi
1664  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666  as_fn_set_status $ac_retval
1667
1668} # ac_fn_c_try_run
1669
1670# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1671# -------------------------------------------------------
1672# Tests whether HEADER exists and can be compiled using the include files in
1673# INCLUDES, setting the cache variable VAR accordingly.
1674ac_fn_c_check_header_compile ()
1675{
1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678$as_echo_n "checking for $2... " >&6; }
1679if eval \${$3+:} false; then :
1680  $as_echo_n "(cached) " >&6
1681else
1682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683/* end confdefs.h.  */
1684$4
1685#include <$2>
1686_ACEOF
1687if ac_fn_c_try_compile "$LINENO"; then :
1688  eval "$3=yes"
1689else
1690  eval "$3=no"
1691fi
1692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693fi
1694eval ac_res=\$$3
1695               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696$as_echo "$ac_res" >&6; }
1697  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698
1699} # ac_fn_c_check_header_compile
1700
1701# ac_fn_c_try_link LINENO
1702# -----------------------
1703# Try to link conftest.$ac_ext, and return whether this succeeded.
1704ac_fn_c_try_link ()
1705{
1706  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707  rm -f conftest.$ac_objext conftest$ac_exeext
1708  if { { ac_try="$ac_link"
1709case "(($ac_try" in
1710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711  *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715  (eval "$ac_link") 2>conftest.err
1716  ac_status=$?
1717  if test -s conftest.err; then
1718    grep -v '^ *+' conftest.err >conftest.er1
1719    cat conftest.er1 >&5
1720    mv -f conftest.er1 conftest.err
1721  fi
1722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723  test $ac_status = 0; } && {
1724         test -z "$ac_c_werror_flag" ||
1725         test ! -s conftest.err
1726       } && test -s conftest$ac_exeext && {
1727         test "$cross_compiling" = yes ||
1728         test -x conftest$ac_exeext
1729       }; then :
1730  ac_retval=0
1731else
1732  $as_echo "$as_me: failed program was:" >&5
1733sed 's/^/| /' conftest.$ac_ext >&5
1734
1735        ac_retval=1
1736fi
1737  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1738  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1739  # interfere with the next link command; also delete a directory that is
1740  # left behind by Apple's compiler.  We do this before executing the actions.
1741  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743  as_fn_set_status $ac_retval
1744
1745} # ac_fn_c_try_link
1746
1747# ac_fn_cxx_try_compile LINENO
1748# ----------------------------
1749# Try to compile conftest.$ac_ext, and return whether this succeeded.
1750ac_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"
1755case "(($ac_try" in
1756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757  *) ac_try_echo=$ac_try;;
1758esac
1759eval 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
1774else
1775  $as_echo "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
1778        ac_retval=1
1779fi
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.
1788ac_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"
1792case "(($ac_try" in
1793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794  *) ac_try_echo=$ac_try;;
1795esac
1796eval 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
1811else
1812  $as_echo "$as_me: failed program was:" >&5
1813sed 's/^/| /' conftest.$ac_ext >&5
1814
1815    ac_retval=1
1816fi
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.
1826ac_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"
1830case "(($ac_try" in
1831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832  *) ac_try_echo=$ac_try;;
1833esac
1834eval 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;;
1843esac
1844eval 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
1851else
1852  $as_echo "$as_me: program exited with status $ac_status" >&5
1853       $as_echo "$as_me: failed program was:" >&5
1854sed 's/^/| /' conftest.$ac_ext >&5
1855
1856       ac_retval=$ac_status
1857fi
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.
1869ac_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; }
1875if eval \${$3+:} false; then :
1876  $as_echo_n "(cached) " >&6
1877fi
1878eval ac_res=\$$3
1879               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
1881else
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; }
1885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886/* end confdefs.h.  */
1887$4
1888#include <$2>
1889_ACEOF
1890if ac_fn_cxx_try_compile "$LINENO"; then :
1891  ac_header_compiler=yes
1892else
1893  ac_header_compiler=no
1894fi
1895rm -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; }
1902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h.  */
1904#include <$2>
1905_ACEOF
1906if ac_fn_cxx_try_cpp "$LINENO"; then :
1907  ac_header_preproc=yes
1908else
1909  ac_header_preproc=no
1910fi
1911rm -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?
1916case $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    ;;
1939esac
1940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941$as_echo_n "checking for $2... " >&6; }
1942if eval \${$3+:} false; then :
1943  $as_echo_n "(cached) " >&6
1944else
1945  eval "$3=\$ac_header_compiler"
1946fi
1947eval ac_res=\$$3
1948               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
1950fi
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.
1958ac_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"
1963case "(($ac_try" in
1964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965  *) ac_try_echo=$ac_try;;
1966esac
1967eval 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
1985else
1986  $as_echo "$as_me: failed program was:" >&5
1987sed 's/^/| /' conftest.$ac_ext >&5
1988
1989        ac_retval=1
1990fi
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
2004ac_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; }
2009if eval \${$3+:} false; then :
2010  $as_echo_n "(cached) " >&6
2011else
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
2035extern "C"
2036#endif
2037char $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
2042choke me
2043#endif
2044
2045int
2046main ()
2047{
2048return $2 ();
2049  ;
2050  return 0;
2051}
2052_ACEOF
2053if ac_fn_cxx_try_link "$LINENO"; then :
2054  eval "$3=yes"
2055else
2056  eval "$3=no"
2057fi
2058rm -f core conftest.err conftest.$ac_objext \
2059    conftest$ac_exeext conftest.$ac_ext
2060fi
2061eval 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
2067cat >config.log <<_ACEOF
2068This file contains any messages produced by compilers while
2069running configure, to aid debugging if configure makes a mistake.
2070
2071It was created by vizservers $as_me 0.1, which was
2072generated by GNU Autoconf 2.69.  Invocation command line was
2073
2074  $ $0 $@
2075
2076_ACEOF
2077exec 5>>config.log
2078{
2079cat <<_ASUNAME
2080## --------- ##
2081## Platform. ##
2082## --------- ##
2083
2084hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2085uname -m = `(uname -m) 2>/dev/null || echo unknown`
2086uname -r = `(uname -r) 2>/dev/null || echo unknown`
2087uname -s = `(uname -s) 2>/dev/null || echo unknown`
2088uname -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
2103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104for as_dir in $PATH
2105do
2106  IFS=$as_save_IFS
2107  test -z "$as_dir" && as_dir=.
2108    $as_echo "PATH: $as_dir"
2109  done
2110IFS=$as_save_IFS
2111
2112} >&5
2113
2114cat >&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.
2129ac_configure_args=
2130ac_configure_args0=
2131ac_configure_args1=
2132ac_must_keep_next=false
2133for ac_pass in 1 2
2134do
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
2168done
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.
2177trap '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
2264for ac_signal in 1 2 13 15; do
2265  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2266done
2267ac_signal=0
2268
2269# confdefs.h avoids OS command line length limits that DEFS can exceed.
2270rm -f -r conftest* confdefs.h
2271
2272$as_echo "/* confdefs.h */" > confdefs.h
2273
2274# Predefined preprocessor variables.
2275
2276cat >>confdefs.h <<_ACEOF
2277#define PACKAGE_NAME "$PACKAGE_NAME"
2278_ACEOF
2279
2280cat >>confdefs.h <<_ACEOF
2281#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2282_ACEOF
2283
2284cat >>confdefs.h <<_ACEOF
2285#define PACKAGE_VERSION "$PACKAGE_VERSION"
2286_ACEOF
2287
2288cat >>confdefs.h <<_ACEOF
2289#define PACKAGE_STRING "$PACKAGE_STRING"
2290_ACEOF
2291
2292cat >>confdefs.h <<_ACEOF
2293#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2294_ACEOF
2295
2296cat >>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.
2303ac_site_file1=NONE
2304ac_site_file2=NONE
2305if 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
2312elif test "x$prefix" != xNONE; then
2313  ac_site_file1=$prefix/share/config.site
2314  ac_site_file2=$prefix/etc/config.site
2315else
2316  ac_site_file1=$ac_default_prefix/share/config.site
2317  ac_site_file2=$ac_default_prefix/etc/config.site
2318fi
2319for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2320do
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;}
2329as_fn_error $? "failed to load site script $ac_site_file
2330See \`config.log' for more details" "$LINENO" 5; }
2331  fi
2332done
2333
2334if 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
2345else
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
2349fi
2350
2351# Check that the precious variables saved in the cache have kept the same
2352# value.
2353ac_cache_corrupted=false
2354for 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
2400done
2401if $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
2407fi
2408## -------------------- ##
2409## Main body of script. ##
2410## -------------------- ##
2411
2412ac_ext=c
2413ac_cpp='$CPP $CPPFLAGS'
2414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416ac_compiler_gnu=$ac_cv_c_compiler_gnu
2417
2418
2419ac_aux_dir=
2420for 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
2434done
2435if test -z "$ac_aux_dir"; then
2436  as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5
2437fi
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.
2443ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2444ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2445ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2446
2447
2448ac_config_headers="$ac_config_headers nanoscale/config.h"
2449
2450
2451
2452# Check whether --with-tcllib was given.
2453if test "${with_tcllib+set}" = set; then :
2454  withval=$with_tcllib; with_tcllib=$withval
2455else
2456  with_tcllib=""
2457fi
2458
2459
2460
2461# Check whether --with-statsdir was given.
2462if test "${with_statsdir+set}" = set; then :
2463  withval=$with_statsdir; STATSDIR=$withval
2464else
2465  STATSDIR="/var/tmp/visservers"
2466fi
2467
2468
2469ac_ext=c
2470ac_cpp='$CPP $CPPFLAGS'
2471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2473ac_compiler_gnu=$ac_cv_c_compiler_gnu
2474if test -n "$ac_tool_prefix"; then
2475  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2476set dummy ${ac_tool_prefix}gcc; ac_word=$2
2477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2478$as_echo_n "checking for $ac_word... " >&6; }
2479if ${ac_cv_prog_CC+:} false; then :
2480  $as_echo_n "(cached) " >&6
2481else
2482  if test -n "$CC"; then
2483  ac_cv_prog_CC="$CC" # Let the user override the test.
2484else
2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486for as_dir in $PATH
2487do
2488  IFS=$as_save_IFS
2489  test -z "$as_dir" && as_dir=.
2490    for ac_exec_ext in '' $ac_executable_extensions; do
2491  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2492    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2494    break 2
2495  fi
2496done
2497  done
2498IFS=$as_save_IFS
2499
2500fi
2501fi
2502CC=$ac_cv_prog_CC
2503if test -n "$CC"; then
2504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2505$as_echo "$CC" >&6; }
2506else
2507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2508$as_echo "no" >&6; }
2509fi
2510
2511
2512fi
2513if test -z "$ac_cv_prog_CC"; then
2514  ac_ct_CC=$CC
2515  # Extract the first word of "gcc", so it can be a program name with args.
2516set dummy gcc; ac_word=$2
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518$as_echo_n "checking for $ac_word... " >&6; }
2519if ${ac_cv_prog_ac_ct_CC+:} false; then :
2520  $as_echo_n "(cached) " >&6
2521else
2522  if test -n "$ac_ct_CC"; then
2523  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2524else
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528  IFS=$as_save_IFS
2529  test -z "$as_dir" && as_dir=.
2530    for ac_exec_ext in '' $ac_executable_extensions; do
2531  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532    ac_cv_prog_ac_ct_CC="gcc"
2533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534    break 2
2535  fi
2536done
2537  done
2538IFS=$as_save_IFS
2539
2540fi
2541fi
2542ac_ct_CC=$ac_cv_prog_ac_ct_CC
2543if test -n "$ac_ct_CC"; then
2544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2545$as_echo "$ac_ct_CC" >&6; }
2546else
2547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548$as_echo "no" >&6; }
2549fi
2550
2551  if test "x$ac_ct_CC" = x; then
2552    CC=""
2553  else
2554    case $cross_compiling:$ac_tool_warned in
2555yes:)
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2558ac_tool_warned=yes ;;
2559esac
2560    CC=$ac_ct_CC
2561  fi
2562else
2563  CC="$ac_cv_prog_CC"
2564fi
2565
2566if test -z "$CC"; then
2567          if test -n "$ac_tool_prefix"; then
2568    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2569set dummy ${ac_tool_prefix}cc; ac_word=$2
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571$as_echo_n "checking for $ac_word... " >&6; }
2572if ${ac_cv_prog_CC+:} false; then :
2573  $as_echo_n "(cached) " >&6
2574else
2575  if test -n "$CC"; then
2576  ac_cv_prog_CC="$CC" # Let the user override the test.
2577else
2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581  IFS=$as_save_IFS
2582  test -z "$as_dir" && as_dir=.
2583    for ac_exec_ext in '' $ac_executable_extensions; do
2584  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2585    ac_cv_prog_CC="${ac_tool_prefix}cc"
2586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587    break 2
2588  fi
2589done
2590  done
2591IFS=$as_save_IFS
2592
2593fi
2594fi
2595CC=$ac_cv_prog_CC
2596if test -n "$CC"; then
2597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2598$as_echo "$CC" >&6; }
2599else
2600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601$as_echo "no" >&6; }
2602fi
2603
2604
2605  fi
2606fi
2607if test -z "$CC"; then
2608  # Extract the first word of "cc", so it can be a program name with args.
2609set dummy cc; ac_word=$2
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611$as_echo_n "checking for $ac_word... " >&6; }
2612if ${ac_cv_prog_CC+:} false; then :
2613  $as_echo_n "(cached) " >&6
2614else
2615  if test -n "$CC"; then
2616  ac_cv_prog_CC="$CC" # Let the user override the test.
2617else
2618  ac_prog_rejected=no
2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622  IFS=$as_save_IFS
2623  test -z "$as_dir" && as_dir=.
2624    for ac_exec_ext in '' $ac_executable_extensions; do
2625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2627       ac_prog_rejected=yes
2628       continue
2629     fi
2630    ac_cv_prog_CC="cc"
2631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632    break 2
2633  fi
2634done
2635  done
2636IFS=$as_save_IFS
2637
2638if test $ac_prog_rejected = yes; then
2639  # We found a bogon in the path, so make sure we never use it.
2640  set dummy $ac_cv_prog_CC
2641  shift
2642  if test $# != 0; then
2643    # We chose a different compiler from the bogus one.
2644    # However, it has the same basename, so the bogon will be chosen
2645    # first if we set CC to just the basename; use the full file name.
2646    shift
2647    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2648  fi
2649fi
2650fi
2651fi
2652CC=$ac_cv_prog_CC
2653if test -n "$CC"; then
2654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2655$as_echo "$CC" >&6; }
2656else
2657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658$as_echo "no" >&6; }
2659fi
2660
2661
2662fi
2663if test -z "$CC"; then
2664  if test -n "$ac_tool_prefix"; then
2665  for ac_prog in cl.exe
2666  do
2667    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2668set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670$as_echo_n "checking for $ac_word... " >&6; }
2671if ${ac_cv_prog_CC+:} false; then :
2672  $as_echo_n "(cached) " >&6
2673else
2674  if test -n "$CC"; then
2675  ac_cv_prog_CC="$CC" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680  IFS=$as_save_IFS
2681  test -z "$as_dir" && as_dir=.
2682    for ac_exec_ext in '' $ac_executable_extensions; do
2683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686    break 2
2687  fi
2688done
2689  done
2690IFS=$as_save_IFS
2691
2692fi
2693fi
2694CC=$ac_cv_prog_CC
2695if test -n "$CC"; then
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2697$as_echo "$CC" >&6; }
2698else
2699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700$as_echo "no" >&6; }
2701fi
2702
2703
2704    test -n "$CC" && break
2705  done
2706fi
2707if test -z "$CC"; then
2708  ac_ct_CC=$CC
2709  for ac_prog in cl.exe
2710do
2711  # Extract the first word of "$ac_prog", so it can be a program name with args.
2712set dummy $ac_prog; ac_word=$2
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714$as_echo_n "checking for $ac_word... " >&6; }
2715if ${ac_cv_prog_ac_ct_CC+:} false; then :
2716  $as_echo_n "(cached) " >&6
2717else
2718  if test -n "$ac_ct_CC"; then
2719  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724  IFS=$as_save_IFS
2725  test -z "$as_dir" && as_dir=.
2726    for ac_exec_ext in '' $ac_executable_extensions; do
2727  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728    ac_cv_prog_ac_ct_CC="$ac_prog"
2729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730    break 2
2731  fi
2732done
2733  done
2734IFS=$as_save_IFS
2735
2736fi
2737fi
2738ac_ct_CC=$ac_cv_prog_ac_ct_CC
2739if test -n "$ac_ct_CC"; then
2740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2741$as_echo "$ac_ct_CC" >&6; }
2742else
2743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744$as_echo "no" >&6; }
2745fi
2746
2747
2748  test -n "$ac_ct_CC" && break
2749done
2750
2751  if test "x$ac_ct_CC" = x; then
2752    CC=""
2753  else
2754    case $cross_compiling:$ac_tool_warned in
2755yes:)
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2758ac_tool_warned=yes ;;
2759esac
2760    CC=$ac_ct_CC
2761  fi
2762fi
2763
2764fi
2765
2766
2767test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2769as_fn_error $? "no acceptable C compiler found in \$PATH
2770See \`config.log' for more details" "$LINENO" 5; }
2771
2772# Provide some information about the compiler.
2773$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2774set X $ac_compile
2775ac_compiler=$2
2776for ac_option in --version -v -V -qversion; do
2777  { { ac_try="$ac_compiler $ac_option >&5"
2778case "(($ac_try" in
2779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780  *) ac_try_echo=$ac_try;;
2781esac
2782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2783$as_echo "$ac_try_echo"; } >&5
2784  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2785  ac_status=$?
2786  if test -s conftest.err; then
2787    sed '10a\
2788... rest of stderr output deleted ...
2789         10q' conftest.err >conftest.er1
2790    cat conftest.er1 >&5
2791  fi
2792  rm -f conftest.er1 conftest.err
2793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2794  test $ac_status = 0; }
2795done
2796
2797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2798/* end confdefs.h.  */
2799
2800int
2801main ()
2802{
2803
2804  ;
2805  return 0;
2806}
2807_ACEOF
2808ac_clean_files_save=$ac_clean_files
2809ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2810# Try to create an executable without -o first, disregard a.out.
2811# It will help us diagnose broken compilers, and finding out an intuition
2812# of exeext.
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2814$as_echo_n "checking whether the C compiler works... " >&6; }
2815ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2816
2817# The possible output files:
2818ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2819
2820ac_rmfiles=
2821for ac_file in $ac_files
2822do
2823  case $ac_file in
2824    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2825    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2826  esac
2827done
2828rm -f $ac_rmfiles
2829
2830if { { ac_try="$ac_link_default"
2831case "(($ac_try" in
2832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833  *) ac_try_echo=$ac_try;;
2834esac
2835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2836$as_echo "$ac_try_echo"; } >&5
2837  (eval "$ac_link_default") 2>&5
2838  ac_status=$?
2839  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2840  test $ac_status = 0; }; then :
2841  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2842# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2843# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2844# so that the user can short-circuit this test for compilers unknown to
2845# Autoconf.
2846for ac_file in $ac_files ''
2847do
2848  test -f "$ac_file" || continue
2849  case $ac_file in
2850    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2851        ;;
2852    [ab].out )
2853        # We found the default executable, but exeext='' is most
2854        # certainly right.
2855        break;;
2856    *.* )
2857        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2858        then :; else
2859           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2860        fi
2861        # We set ac_cv_exeext here because the later test for it is not
2862        # safe: cross compilers may not add the suffix if given an `-o'
2863        # argument, so we may need to know it at that point already.
2864        # Even if this section looks crufty: it has the advantage of
2865        # actually working.
2866        break;;
2867    * )
2868        break;;
2869  esac
2870done
2871test "$ac_cv_exeext" = no && ac_cv_exeext=
2872
2873else
2874  ac_file=''
2875fi
2876if test -z "$ac_file"; then :
2877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878$as_echo "no" >&6; }
2879$as_echo "$as_me: failed program was:" >&5
2880sed 's/^/| /' conftest.$ac_ext >&5
2881
2882{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2884as_fn_error 77 "C compiler cannot create executables
2885See \`config.log' for more details" "$LINENO" 5; }
2886else
2887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2888$as_echo "yes" >&6; }
2889fi
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2891$as_echo_n "checking for C compiler default output file name... " >&6; }
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2893$as_echo "$ac_file" >&6; }
2894ac_exeext=$ac_cv_exeext
2895
2896rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2897ac_clean_files=$ac_clean_files_save
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2899$as_echo_n "checking for suffix of executables... " >&6; }
2900if { { ac_try="$ac_link"
2901case "(($ac_try" in
2902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903  *) ac_try_echo=$ac_try;;
2904esac
2905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2906$as_echo "$ac_try_echo"; } >&5
2907  (eval "$ac_link") 2>&5
2908  ac_status=$?
2909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2910  test $ac_status = 0; }; then :
2911  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2912# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2913# work properly (i.e., refer to `conftest.exe'), while it won't with
2914# `rm'.
2915for ac_file in conftest.exe conftest conftest.*; do
2916  test -f "$ac_file" || continue
2917  case $ac_file in
2918    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2919    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2920          break;;
2921    * ) break;;
2922  esac
2923done
2924else
2925  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2927as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2928See \`config.log' for more details" "$LINENO" 5; }
2929fi
2930rm -f conftest conftest$ac_cv_exeext
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2932$as_echo "$ac_cv_exeext" >&6; }
2933
2934rm -f conftest.$ac_ext
2935EXEEXT=$ac_cv_exeext
2936ac_exeext=$EXEEXT
2937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938/* end confdefs.h.  */
2939#include <stdio.h>
2940int
2941main ()
2942{
2943FILE *f = fopen ("conftest.out", "w");
2944 return ferror (f) || fclose (f) != 0;
2945
2946  ;
2947  return 0;
2948}
2949_ACEOF
2950ac_clean_files="$ac_clean_files conftest.out"
2951# Check that the compiler produces executables we can run.  If not, either
2952# the compiler is broken, or we cross compile.
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2954$as_echo_n "checking whether we are cross compiling... " >&6; }
2955if test "$cross_compiling" != yes; then
2956  { { ac_try="$ac_link"
2957case "(($ac_try" in
2958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959  *) ac_try_echo=$ac_try;;
2960esac
2961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2962$as_echo "$ac_try_echo"; } >&5
2963  (eval "$ac_link") 2>&5
2964  ac_status=$?
2965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2966  test $ac_status = 0; }
2967  if { ac_try='./conftest$ac_cv_exeext'
2968  { { case "(($ac_try" in
2969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970  *) ac_try_echo=$ac_try;;
2971esac
2972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2973$as_echo "$ac_try_echo"; } >&5
2974  (eval "$ac_try") 2>&5
2975  ac_status=$?
2976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2977  test $ac_status = 0; }; }; then
2978    cross_compiling=no
2979  else
2980    if test "$cross_compiling" = maybe; then
2981        cross_compiling=yes
2982    else
2983        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2984$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2985as_fn_error $? "cannot run C compiled programs.
2986If you meant to cross compile, use \`--host'.
2987See \`config.log' for more details" "$LINENO" 5; }
2988    fi
2989  fi
2990fi
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2992$as_echo "$cross_compiling" >&6; }
2993
2994rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2995ac_clean_files=$ac_clean_files_save
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2997$as_echo_n "checking for suffix of object files... " >&6; }
2998if ${ac_cv_objext+:} false; then :
2999  $as_echo_n "(cached) " >&6
3000else
3001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002/* end confdefs.h.  */
3003
3004int
3005main ()
3006{
3007
3008  ;
3009  return 0;
3010}
3011_ACEOF
3012rm -f conftest.o conftest.obj
3013if { { ac_try="$ac_compile"
3014case "(($ac_try" in
3015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016  *) ac_try_echo=$ac_try;;
3017esac
3018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3019$as_echo "$ac_try_echo"; } >&5
3020  (eval "$ac_compile") 2>&5
3021  ac_status=$?
3022  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3023  test $ac_status = 0; }; then :
3024  for ac_file in conftest.o conftest.obj conftest.*; do
3025  test -f "$ac_file" || continue;
3026  case $ac_file in
3027    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3028    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3029       break;;
3030  esac
3031done
3032else
3033  $as_echo "$as_me: failed program was:" >&5
3034sed 's/^/| /' conftest.$ac_ext >&5
3035
3036{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038as_fn_error $? "cannot compute suffix of object files: cannot compile
3039See \`config.log' for more details" "$LINENO" 5; }
3040fi
3041rm -f conftest.$ac_cv_objext conftest.$ac_ext
3042fi
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3044$as_echo "$ac_cv_objext" >&6; }
3045OBJEXT=$ac_cv_objext
3046ac_objext=$OBJEXT
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3048$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3049if ${ac_cv_c_compiler_gnu+:} false; then :
3050  $as_echo_n "(cached) " >&6
3051else
3052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3053/* end confdefs.h.  */
3054
3055int
3056main ()
3057{
3058#ifndef __GNUC__
3059       choke me
3060#endif
3061
3062  ;
3063  return 0;
3064}
3065_ACEOF
3066if ac_fn_c_try_compile "$LINENO"; then :
3067  ac_compiler_gnu=yes
3068else
3069  ac_compiler_gnu=no
3070fi
3071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3072ac_cv_c_compiler_gnu=$ac_compiler_gnu
3073
3074fi
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3076$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3077if test $ac_compiler_gnu = yes; then
3078  GCC=yes
3079else
3080  GCC=
3081fi
3082ac_test_CFLAGS=${CFLAGS+set}
3083ac_save_CFLAGS=$CFLAGS
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3085$as_echo_n "checking whether $CC accepts -g... " >&6; }
3086if ${ac_cv_prog_cc_g+:} false; then :
3087  $as_echo_n "(cached) " >&6
3088else
3089  ac_save_c_werror_flag=$ac_c_werror_flag
3090   ac_c_werror_flag=yes
3091   ac_cv_prog_cc_g=no
3092   CFLAGS="-g"
3093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094/* end confdefs.h.  */
3095
3096int
3097main ()
3098{
3099
3100  ;
3101  return 0;
3102}
3103_ACEOF
3104if ac_fn_c_try_compile "$LINENO"; then :
3105  ac_cv_prog_cc_g=yes
3106else
3107  CFLAGS=""
3108      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109/* end confdefs.h.  */
3110
3111int
3112main ()
3113{
3114
3115  ;
3116  return 0;
3117}
3118_ACEOF
3119if ac_fn_c_try_compile "$LINENO"; then :
3120
3121else
3122  ac_c_werror_flag=$ac_save_c_werror_flag
3123         CFLAGS="-g"
3124         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125/* end confdefs.h.  */
3126
3127int
3128main ()
3129{
3130
3131  ;
3132  return 0;
3133}
3134_ACEOF
3135if ac_fn_c_try_compile "$LINENO"; then :
3136  ac_cv_prog_cc_g=yes
3137fi
3138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139fi
3140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3141fi
3142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143   ac_c_werror_flag=$ac_save_c_werror_flag
3144fi
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3146$as_echo "$ac_cv_prog_cc_g" >&6; }
3147if test "$ac_test_CFLAGS" = set; then
3148  CFLAGS=$ac_save_CFLAGS
3149elif test $ac_cv_prog_cc_g = yes; then
3150  if test "$GCC" = yes; then
3151    CFLAGS="-g -O2"
3152  else
3153    CFLAGS="-g"
3154  fi
3155else
3156  if test "$GCC" = yes; then
3157    CFLAGS="-O2"
3158  else
3159    CFLAGS=
3160  fi
3161fi
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3163$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3164if ${ac_cv_prog_cc_c89+:} false; then :
3165  $as_echo_n "(cached) " >&6
3166else
3167  ac_cv_prog_cc_c89=no
3168ac_save_CC=$CC
3169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170/* end confdefs.h.  */
3171#include <stdarg.h>
3172#include <stdio.h>
3173struct stat;
3174/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3175struct buf { int x; };
3176FILE * (*rcsopen) (struct buf *, struct stat *, int);
3177static char *e (p, i)
3178     char **p;
3179     int i;
3180{
3181  return p[i];
3182}
3183static char *f (char * (*g) (char **, int), char **p, ...)
3184{
3185  char *s;
3186  va_list v;
3187  va_start (v,p);
3188  s = g (p, va_arg (v,int));
3189  va_end (v);
3190  return s;
3191}
3192
3193/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3194   function prototypes and stuff, but not '\xHH' hex character constants.
3195   These don't provoke an error unfortunately, instead are silently treated
3196   as 'x'.  The following induces an error, until -std is added to get
3197   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3198   array size at least.  It's necessary to write '\x00'==0 to get something
3199   that's true only with -std.  */
3200int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3201
3202/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3203   inside strings and character constants.  */
3204#define FOO(x) 'x'
3205int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3206
3207int test (int i, double x);
3208struct s1 {int (*f) (int a);};
3209struct s2 {int (*f) (double a);};
3210int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3211int argc;
3212char **argv;
3213int
3214main ()
3215{
3216return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3217  ;
3218  return 0;
3219}
3220_ACEOF
3221for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3222        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3223do
3224  CC="$ac_save_CC $ac_arg"
3225  if ac_fn_c_try_compile "$LINENO"; then :
3226  ac_cv_prog_cc_c89=$ac_arg
3227fi
3228rm -f core conftest.err conftest.$ac_objext
3229  test "x$ac_cv_prog_cc_c89" != "xno" && break
3230done
3231rm -f conftest.$ac_ext
3232CC=$ac_save_CC
3233
3234fi
3235# AC_CACHE_VAL
3236case "x$ac_cv_prog_cc_c89" in
3237  x)
3238    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3239$as_echo "none needed" >&6; } ;;
3240  xno)
3241    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3242$as_echo "unsupported" >&6; } ;;
3243  *)
3244    CC="$CC $ac_cv_prog_cc_c89"
3245    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3246$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3247esac
3248if test "x$ac_cv_prog_cc_c89" != xno; then :
3249
3250fi
3251
3252ac_ext=c
3253ac_cpp='$CPP $CPPFLAGS'
3254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256ac_compiler_gnu=$ac_cv_c_compiler_gnu
3257
3258
3259ac_ext=c
3260ac_cpp='$CPP $CPPFLAGS'
3261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3265$as_echo_n "checking how to run the C preprocessor... " >&6; }
3266# On Suns, sometimes $CPP names a directory.
3267if test -n "$CPP" && test -d "$CPP"; then
3268  CPP=
3269fi
3270if test -z "$CPP"; then
3271  if ${ac_cv_prog_CPP+:} false; then :
3272  $as_echo_n "(cached) " >&6
3273else
3274      # Double quotes because CPP needs to be expanded
3275    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3276    do
3277      ac_preproc_ok=false
3278for ac_c_preproc_warn_flag in '' yes
3279do
3280  # Use a header file that comes with gcc, so configuring glibc
3281  # with a fresh cross-compiler works.
3282  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3283  # <limits.h> exists even on freestanding compilers.
3284  # On the NeXT, cc -E runs the code through the compiler's parser,
3285  # not just through cpp. "Syntax error" is here to catch this case.
3286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287/* end confdefs.h.  */
3288#ifdef __STDC__
3289# include <limits.h>
3290#else
3291# include <assert.h>
3292#endif
3293                     Syntax error
3294_ACEOF
3295if ac_fn_c_try_cpp "$LINENO"; then :
3296
3297else
3298  # Broken: fails on valid input.
3299continue
3300fi
3301rm -f conftest.err conftest.i conftest.$ac_ext
3302
3303  # OK, works on sane cases.  Now check whether nonexistent headers
3304  # can be detected and how.
3305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306/* end confdefs.h.  */
3307#include <ac_nonexistent.h>
3308_ACEOF
3309if ac_fn_c_try_cpp "$LINENO"; then :
3310  # Broken: success on invalid input.
3311continue
3312else
3313  # Passes both tests.
3314ac_preproc_ok=:
3315break
3316fi
3317rm -f conftest.err conftest.i conftest.$ac_ext
3318
3319done
3320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3321rm -f conftest.i conftest.err conftest.$ac_ext
3322if $ac_preproc_ok; then :
3323  break
3324fi
3325
3326    done
3327    ac_cv_prog_CPP=$CPP
3328
3329fi
3330  CPP=$ac_cv_prog_CPP
3331else
3332  ac_cv_prog_CPP=$CPP
3333fi
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3335$as_echo "$CPP" >&6; }
3336ac_preproc_ok=false
3337for ac_c_preproc_warn_flag in '' yes
3338do
3339  # Use a header file that comes with gcc, so configuring glibc
3340  # with a fresh cross-compiler works.
3341  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342  # <limits.h> exists even on freestanding compilers.
3343  # On the NeXT, cc -E runs the code through the compiler's parser,
3344  # not just through cpp. "Syntax error" is here to catch this case.
3345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346/* end confdefs.h.  */
3347#ifdef __STDC__
3348# include <limits.h>
3349#else
3350# include <assert.h>
3351#endif
3352                     Syntax error
3353_ACEOF
3354if ac_fn_c_try_cpp "$LINENO"; then :
3355
3356else
3357  # Broken: fails on valid input.
3358continue
3359fi
3360rm -f conftest.err conftest.i conftest.$ac_ext
3361
3362  # OK, works on sane cases.  Now check whether nonexistent headers
3363  # can be detected and how.
3364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365/* end confdefs.h.  */
3366#include <ac_nonexistent.h>
3367_ACEOF
3368if ac_fn_c_try_cpp "$LINENO"; then :
3369  # Broken: success on invalid input.
3370continue
3371else
3372  # Passes both tests.
3373ac_preproc_ok=:
3374break
3375fi
3376rm -f conftest.err conftest.i conftest.$ac_ext
3377
3378done
3379# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3380rm -f conftest.i conftest.err conftest.$ac_ext
3381if $ac_preproc_ok; then :
3382
3383else
3384  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3387See \`config.log' for more details" "$LINENO" 5; }
3388fi
3389
3390ac_ext=c
3391ac_cpp='$CPP $CPPFLAGS'
3392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395
3396
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3398$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3399if ${ac_cv_path_GREP+:} false; then :
3400  $as_echo_n "(cached) " >&6
3401else
3402  if test -z "$GREP"; then
3403  ac_path_GREP_found=false
3404  # Loop through the user's path and test for each of PROGNAME-LIST
3405  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3407do
3408  IFS=$as_save_IFS
3409  test -z "$as_dir" && as_dir=.
3410    for ac_prog in grep ggrep; do
3411    for ac_exec_ext in '' $ac_executable_extensions; do
3412      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3413      as_fn_executable_p "$ac_path_GREP" || continue
3414# Check for GNU ac_path_GREP and select it if it is found.
3415  # Check for GNU $ac_path_GREP
3416case `"$ac_path_GREP" --version 2>&1` in
3417*GNU*)
3418  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3419*)
3420  ac_count=0
3421  $as_echo_n 0123456789 >"conftest.in"
3422  while :
3423  do
3424    cat "conftest.in" "conftest.in" >"conftest.tmp"
3425    mv "conftest.tmp" "conftest.in"
3426    cp "conftest.in" "conftest.nl"
3427    $as_echo 'GREP' >> "conftest.nl"
3428    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3429    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3430    as_fn_arith $ac_count + 1 && ac_count=$as_val
3431    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3432      # Best one so far, save it but keep looking for a better one
3433      ac_cv_path_GREP="$ac_path_GREP"
3434      ac_path_GREP_max=$ac_count
3435    fi
3436    # 10*(2^10) chars as input seems more than enough
3437    test $ac_count -gt 10 && break
3438  done
3439  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3440esac
3441
3442      $ac_path_GREP_found && break 3
3443    done
3444  done
3445  done
3446IFS=$as_save_IFS
3447  if test -z "$ac_cv_path_GREP"; then
3448    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3449  fi
3450else
3451  ac_cv_path_GREP=$GREP
3452fi
3453
3454fi
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3456$as_echo "$ac_cv_path_GREP" >&6; }
3457 GREP="$ac_cv_path_GREP"
3458
3459
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3461$as_echo_n "checking for egrep... " >&6; }
3462if ${ac_cv_path_EGREP+:} false; then :
3463  $as_echo_n "(cached) " >&6
3464else
3465  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3466   then ac_cv_path_EGREP="$GREP -E"
3467   else
3468     if test -z "$EGREP"; then
3469  ac_path_EGREP_found=false
3470  # Loop through the user's path and test for each of PROGNAME-LIST
3471  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3473do
3474  IFS=$as_save_IFS
3475  test -z "$as_dir" && as_dir=.
3476    for ac_prog in egrep; do
3477    for ac_exec_ext in '' $ac_executable_extensions; do
3478      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3479      as_fn_executable_p "$ac_path_EGREP" || continue
3480# Check for GNU ac_path_EGREP and select it if it is found.
3481  # Check for GNU $ac_path_EGREP
3482case `"$ac_path_EGREP" --version 2>&1` in
3483*GNU*)
3484  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3485*)
3486  ac_count=0
3487  $as_echo_n 0123456789 >"conftest.in"
3488  while :
3489  do
3490    cat "conftest.in" "conftest.in" >"conftest.tmp"
3491    mv "conftest.tmp" "conftest.in"
3492    cp "conftest.in" "conftest.nl"
3493    $as_echo 'EGREP' >> "conftest.nl"
3494    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3495    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3496    as_fn_arith $ac_count + 1 && ac_count=$as_val
3497    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3498      # Best one so far, save it but keep looking for a better one
3499      ac_cv_path_EGREP="$ac_path_EGREP"
3500      ac_path_EGREP_max=$ac_count
3501    fi
3502    # 10*(2^10) chars as input seems more than enough
3503    test $ac_count -gt 10 && break
3504  done
3505  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3506esac
3507
3508      $ac_path_EGREP_found && break 3
3509    done
3510  done
3511  done
3512IFS=$as_save_IFS
3513  if test -z "$ac_cv_path_EGREP"; then
3514    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3515  fi
3516else
3517  ac_cv_path_EGREP=$EGREP
3518fi
3519
3520   fi
3521fi
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3523$as_echo "$ac_cv_path_EGREP" >&6; }
3524 EGREP="$ac_cv_path_EGREP"
3525
3526
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3528$as_echo_n "checking for ANSI C header files... " >&6; }
3529if ${ac_cv_header_stdc+:} false; then :
3530  $as_echo_n "(cached) " >&6
3531else
3532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533/* end confdefs.h.  */
3534#include <stdlib.h>
3535#include <stdarg.h>
3536#include <string.h>
3537#include <float.h>
3538
3539int
3540main ()
3541{
3542
3543  ;
3544  return 0;
3545}
3546_ACEOF
3547if ac_fn_c_try_compile "$LINENO"; then :
3548  ac_cv_header_stdc=yes
3549else
3550  ac_cv_header_stdc=no
3551fi
3552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553
3554if test $ac_cv_header_stdc = yes; then
3555  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557/* end confdefs.h.  */
3558#include <string.h>
3559
3560_ACEOF
3561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3562  $EGREP "memchr" >/dev/null 2>&1; then :
3563
3564else
3565  ac_cv_header_stdc=no
3566fi
3567rm -f conftest*
3568
3569fi
3570
3571if test $ac_cv_header_stdc = yes; then
3572  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h.  */
3575#include <stdlib.h>
3576
3577_ACEOF
3578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3579  $EGREP "free" >/dev/null 2>&1; then :
3580
3581else
3582  ac_cv_header_stdc=no
3583fi
3584rm -f conftest*
3585
3586fi
3587
3588if test $ac_cv_header_stdc = yes; then
3589  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3590  if test "$cross_compiling" = yes; then :
3591  :
3592else
3593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594/* end confdefs.h.  */
3595#include <ctype.h>
3596#include <stdlib.h>
3597#if ((' ' & 0x0FF) == 0x020)
3598# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3599# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3600#else
3601# define ISLOWER(c) \
3602                   (('a' <= (c) && (c) <= 'i') \
3603                     || ('j' <= (c) && (c) <= 'r') \
3604                     || ('s' <= (c) && (c) <= 'z'))
3605# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3606#endif
3607
3608#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3609int
3610main ()
3611{
3612  int i;
3613  for (i = 0; i < 256; i++)
3614    if (XOR (islower (i), ISLOWER (i))
3615        || toupper (i) != TOUPPER (i))
3616      return 2;
3617  return 0;
3618}
3619_ACEOF
3620if ac_fn_c_try_run "$LINENO"; then :
3621
3622else
3623  ac_cv_header_stdc=no
3624fi
3625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3626  conftest.$ac_objext conftest.beam conftest.$ac_ext
3627fi
3628
3629fi
3630fi
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3632$as_echo "$ac_cv_header_stdc" >&6; }
3633if test $ac_cv_header_stdc = yes; then
3634
3635$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3636
3637fi
3638
3639# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3640for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3641                  inttypes.h stdint.h unistd.h
3642do :
3643  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3644ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3645"
3646if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3647  cat >>confdefs.h <<_ACEOF
3648#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3649_ACEOF
3650
3651fi
3652
3653done
3654
3655
3656
3657PYTHON=""
3658PYTHON_CFLAGS=""
3659PYTHON_CPPFLAGS=""
3660PYTHON_DISTUTILS=""
3661PYTHON_INCLUDES=""
3662PYTHON_LDFLAGS=""
3663PYTHON_LIB=""
3664PYTHON_LIBDIR=""
3665PYTHON_SITE_DIR=""
3666PYTHON_SITE_PACKAGES=""
3667PYTHON_VERSION=""
3668pythondir=""
3669
3670# Check whether --with-python was given.
3671if test "${with_python+set}" = set; then :
3672  withval=$with_python;
3673else
3674  with_python=yes
3675fi
3676
3677
3678if test "$with_python" != "no" ; then
3679  if test "$with_python" = "yes" ; then
3680    # Extract the first word of "python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
3681set dummy python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683$as_echo_n "checking for $ac_word... " >&6; }
3684if ${ac_cv_path_PYTHON+:} false; then :
3685  $as_echo_n "(cached) " >&6
3686else
3687  case $PYTHON in
3688  [\\/]* | ?:[\\/]*)
3689  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3690  ;;
3691  *)
3692  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693for as_dir in $PATH
3694do
3695  IFS=$as_save_IFS
3696  test -z "$as_dir" && as_dir=.
3697    for ac_exec_ext in '' $ac_executable_extensions; do
3698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3699    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3701    break 2
3702  fi
3703done
3704  done
3705IFS=$as_save_IFS
3706
3707  ;;
3708esac
3709fi
3710PYTHON=$ac_cv_path_PYTHON
3711if test -n "$PYTHON"; then
3712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
3713$as_echo "$PYTHON" >&6; }
3714else
3715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716$as_echo "no" >&6; }
3717fi
3718
3719
3720  else
3721    # Extract the first word of "python", so it can be a program name with args.
3722set dummy python; ac_word=$2
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3724$as_echo_n "checking for $ac_word... " >&6; }
3725if ${ac_cv_path_PYTHON+:} false; then :
3726  $as_echo_n "(cached) " >&6
3727else
3728  case $PYTHON in
3729  [\\/]* | ?:[\\/]*)
3730  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3731  ;;
3732  *)
3733  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734as_dummy="${with_python}/bin:${with_python}"
3735for as_dir in $as_dummy
3736do
3737  IFS=$as_save_IFS
3738  test -z "$as_dir" && as_dir=.
3739    for ac_exec_ext in '' $ac_executable_extensions; do
3740  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743    break 2
3744  fi
3745done
3746  done
3747IFS=$as_save_IFS
3748
3749  ;;
3750esac
3751fi
3752PYTHON=$ac_cv_path_PYTHON
3753if test -n "$PYTHON"; then
3754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
3755$as_echo "$PYTHON" >&6; }
3756else
3757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758$as_echo "no" >&6; }
3759fi
3760
3761
3762  fi
3763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&5
3764$as_echo_n "checking for Python version... " >&6; }
3765  if test "x${PYTHON}" != "x"; then
3766    PYTHON_VERSION=`${PYTHON} -c "import sys; print sys.version[0:3]"`
3767  fi
3768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_VERSION" >&5
3769$as_echo "$PYTHON_VERSION" >&6; }
3770fi
3771
3772if test "x${PYTHON_VERSION}" != "x"; then
3773  PYTHON_INCLUDES=$incdir
3774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils" >&5
3775$as_echo_n "checking for Python distutils... " >&6; }
3776  PYTHON_DISTUTILS=""
3777  ${PYTHON} -c "from distutils.core import setup; setup(name='test')" \
3778        build build_ext 2>&1 > /dev/null
3779  if test $? = 0 ; then
3780    PYTHON_DISTUTILS="yes"
3781  fi
3782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_DISTUTILS" >&5
3783$as_echo "$PYTHON_DISTUTILS" >&6; }
3784  if test "${PYTHON_DISTUTILS}" = "yes" ; then
3785    PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
3786    #
3787    # Check for Python include path
3788    #
3789    { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to Python headers" >&5
3790$as_echo_n "checking path to Python headers... " >&6; }
3791    PYTHON_INCDIR=`${PYTHON} -c "import distutils.sysconfig; \
3792     print distutils.sysconfig.get_python_inc();"`
3793    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCDIR" >&5
3794$as_echo "$PYTHON_INCDIR" >&6; }
3795    #
3796    # Python distutils found, get settings from python directly
3797    #
3798    PYTHON_SITE_DIR="`${PYTHON} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(0);'`"
3799
3800    PYTHON_CFLAGS="`$PYTHON -c 'from distutils import sysconfig; flags = [\"-I\" + sysconfig.get_python_inc(0), \"-I\" + sysconfig.get_python_inc(1), \" \".join(sysconfig.get_config_var(\"CFLAGS\").split())]; print \" \".join(flags);'`"
3801    PYTHON_LDFLAGS="`$PYTHON -c 'from distutils import sysconfig; libs = sysconfig.get_config_var(\"LIBS\").split() + sysconfig.get_config_var(\"SYSLIBS\").split(); libs.append(\"-lpython\"+sysconfig.get_config_var(\"VERSION\")); print \" \".join(libs);'`"
3802    PYTHON_LIB="`$PYTHON -c 'from distutils import sysconfig; print \"python\" + sysconfig.get_config_var(\"VERSION\");'`"
3803    PYTHON_LIBDIR="`$PYTHON -c 'from distutils import sysconfig; print sysconfig.get_config_var(\"LIBDIR\");'`"
3804    save_CPPFLAGS=$CPPFLAGS
3805    CPPFLAGS="$CPPFLAGS -I${PYTHON_INCDIR}"
3806    for ac_header in Python.h
3807do :
3808  ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
3809if test "x$ac_cv_header_Python_h" = xyes; then :
3810  cat >>confdefs.h <<_ACEOF
3811#define HAVE_PYTHON_H 1
3812_ACEOF
3813 found=yes
3814else
3815  found=no
3816fi
3817
3818done
3819
3820    CPPFLAGS=$save_CPPFLAGS
3821    if test "$found" = "no" ; then
3822      PYTHON_DISTUTILS=""
3823    fi
3824  fi
3825fi
3826
3827
3828#------------------------------------------------------------------------
3829# Handle the --prefix=... option
3830#------------------------------------------------------------------------
3831
3832if test "${prefix}" = "NONE"; then
3833    prefix=/usr/local
3834fi
3835if test "${exec_prefix}" = "NONE"; then
3836    exec_prefix=$prefix
3837fi
3838
3839if test "x${incdir}" == "x"; then
3840  incdir=${exec_prefix}/include
3841fi
3842libdir=${exec_prefix}/lib
3843
3844if test "${libdir}" != "${prefix}/lib"; then
3845    LIB_SEARCH_DIRS="-L ${prefix}/lib -L ${libdir}"
3846else
3847    LIB_SEARCH_DIRS="-L ${libdir}"
3848fi
3849
3850if test -n "$ac_tool_prefix"; then
3851  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3852set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854$as_echo_n "checking for $ac_word... " >&6; }
3855if ${ac_cv_prog_RANLIB+:} false; then :
3856  $as_echo_n "(cached) " >&6
3857else
3858  if test -n "$RANLIB"; then
3859  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3860else
3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH
3863do
3864  IFS=$as_save_IFS
3865  test -z "$as_dir" && as_dir=.
3866    for ac_exec_ext in '' $ac_executable_extensions; do
3867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870    break 2
3871  fi
3872done
3873  done
3874IFS=$as_save_IFS
3875
3876fi
3877fi
3878RANLIB=$ac_cv_prog_RANLIB
3879if test -n "$RANLIB"; then
3880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3881$as_echo "$RANLIB" >&6; }
3882else
3883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884$as_echo "no" >&6; }
3885fi
3886
3887
3888fi
3889if test -z "$ac_cv_prog_RANLIB"; then
3890  ac_ct_RANLIB=$RANLIB
3891  # Extract the first word of "ranlib", so it can be a program name with args.
3892set dummy ranlib; ac_word=$2
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894$as_echo_n "checking for $ac_word... " >&6; }
3895if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3896  $as_echo_n "(cached) " >&6
3897else
3898  if test -n "$ac_ct_RANLIB"; then
3899  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3900else
3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904  IFS=$as_save_IFS
3905  test -z "$as_dir" && as_dir=.
3906    for ac_exec_ext in '' $ac_executable_extensions; do
3907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908    ac_cv_prog_ac_ct_RANLIB="ranlib"
3909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910    break 2
3911  fi
3912done
3913  done
3914IFS=$as_save_IFS
3915
3916fi
3917fi
3918ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3919if test -n "$ac_ct_RANLIB"; then
3920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3921$as_echo "$ac_ct_RANLIB" >&6; }
3922else
3923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924$as_echo "no" >&6; }
3925fi
3926
3927  if test "x$ac_ct_RANLIB" = x; then
3928    RANLIB=":"
3929  else
3930    case $cross_compiling:$ac_tool_warned in
3931yes:)
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3934ac_tool_warned=yes ;;
3935esac
3936    RANLIB=$ac_ct_RANLIB
3937  fi
3938else
3939  RANLIB="$ac_cv_prog_RANLIB"
3940fi
3941
3942
3943
3944    # Step 0.a: Enable 64 bit support?
3945
3946    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
3947$as_echo_n "checking if 64bit support is requested... " >&6; }
3948    # Check whether --enable-64bit was given.
3949if test "${enable_64bit+set}" = set; then :
3950  enableval=$enable_64bit; do64bit=$enableval
3951else
3952  do64bit=no
3953fi
3954
3955    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
3956$as_echo "$do64bit" >&6; }
3957
3958    # Step 0.b: Enable Solaris 64 bit VIS support?
3959
3960    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
3961$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
3962    # Check whether --enable-64bit-vis was given.
3963if test "${enable_64bit_vis+set}" = set; then :
3964  enableval=$enable_64bit_vis; do64bitVIS=$enableval
3965else
3966  do64bitVIS=no
3967fi
3968
3969    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
3970$as_echo "$do64bitVIS" >&6; }
3971
3972    if test "$do64bitVIS" = "yes"; then
3973        # Force 64bit on with VIS
3974        do64bit=yes
3975    fi
3976
3977    # Step 1: set the variable "system" to hold the name and version number
3978    # for the system.
3979
3980
3981    { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
3982$as_echo_n "checking system version... " >&6; }
3983if ${tcl_cv_sys_version+:} false; then :
3984  $as_echo_n "(cached) " >&6
3985else
3986
3987        if test -f /usr/lib/NextStep/software_version; then
3988            tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
3989        else
3990            tcl_cv_sys_version=`uname -s`-`uname -r`
3991            if test "$?" -ne 0 ; then
3992                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
3993$as_echo "$as_me: WARNING: can't find uname command" >&2;}
3994                tcl_cv_sys_version=unknown
3995            else
3996                # Special check for weird MP-RAS system (uname returns weird
3997                # results, and the version is kept in special file).
3998
3999                if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
4000                    tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
4001                fi
4002                if test "`uname -s`" = "AIX" ; then
4003                    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
4004                fi
4005            fi
4006        fi
4007
4008fi
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
4010$as_echo "$tcl_cv_sys_version" >&6; }
4011    system=$tcl_cv_sys_version
4012
4013
4014    # Step 2: check for existence of -ldl library.  This is needed because
4015    # Linux can use either -ldl or -ldld for dynamic loading.
4016
4017    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4018$as_echo_n "checking for dlopen in -ldl... " >&6; }
4019if ${ac_cv_lib_dl_dlopen+:} false; then :
4020  $as_echo_n "(cached) " >&6
4021else
4022  ac_check_lib_save_LIBS=$LIBS
4023LIBS="-ldl  $LIBS"
4024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025/* end confdefs.h.  */
4026
4027/* Override any GCC internal prototype to avoid an error.
4028   Use char because int might match the return type of a GCC
4029   builtin and then its argument prototype would still apply.  */
4030#ifdef __cplusplus
4031extern "C"
4032#endif
4033char dlopen ();
4034int
4035main ()
4036{
4037return dlopen ();
4038  ;
4039  return 0;
4040}
4041_ACEOF
4042if ac_fn_c_try_link "$LINENO"; then :
4043  ac_cv_lib_dl_dlopen=yes
4044else
4045  ac_cv_lib_dl_dlopen=no
4046fi
4047rm -f core conftest.err conftest.$ac_objext \
4048    conftest$ac_exeext conftest.$ac_ext
4049LIBS=$ac_check_lib_save_LIBS
4050fi
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4052$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4053if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
4054  have_dl=yes
4055else
4056  have_dl=no
4057fi
4058
4059
4060    # Require ranlib early so we can override it in special cases below.
4061
4062
4063
4064    # Step 3: set configuration options based on system name and version.
4065
4066    do64bit_ok=no
4067    LDFLAGS_ORIG="$LDFLAGS"
4068    TCL_EXPORT_FILE_SUFFIX=""
4069    UNSHARED_LIB_SUFFIX=""
4070    TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
4071    ECHO_VERSION='`echo ${VERSION}`'
4072    TCL_LIB_VERSIONS_OK=ok
4073    CFLAGS_DEBUG=-g
4074    CFLAGS_OPTIMIZE=-O
4075    if test "$GCC" = "yes" ; then
4076        CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing"
4077    else
4078        CFLAGS_WARNING=""
4079    fi
4080    TCL_NEEDS_EXP_FILE=0
4081    TCL_BUILD_EXP_FILE=""
4082    TCL_EXP_FILE=""
4083    # Extract the first word of "ar", so it can be a program name with args.
4084set dummy ar; ac_word=$2
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086$as_echo_n "checking for $ac_word... " >&6; }
4087if ${ac_cv_prog_AR+:} false; then :
4088  $as_echo_n "(cached) " >&6
4089else
4090  if test -n "$AR"; then
4091  ac_cv_prog_AR="$AR" # Let the user override the test.
4092else
4093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH
4095do
4096  IFS=$as_save_IFS
4097  test -z "$as_dir" && as_dir=.
4098    for ac_exec_ext in '' $ac_executable_extensions; do
4099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100    ac_cv_prog_AR="ar"
4101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102    break 2
4103  fi
4104done
4105  done
4106IFS=$as_save_IFS
4107
4108fi
4109fi
4110AR=$ac_cv_prog_AR
4111if test -n "$AR"; then
4112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4113$as_echo "$AR" >&6; }
4114else
4115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116$as_echo "no" >&6; }
4117fi
4118
4119
4120    if test "${AR}" = "" ; then
4121        as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
4122    fi
4123    STLIB_LD='${AR} cr'
4124    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
4125    PLAT_OBJS=""
4126    PLAT_SRCS=""
4127    case $system in
4128        AIX-*)
4129            if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
4130                # AIX requires the _r compiler when gcc isn't being used
4131                case "${CC}" in
4132                    *_r)
4133                        # ok ...
4134                        ;;
4135                    *)
4136                        CC=${CC}_r
4137                        ;;
4138                esac
4139                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
4140$as_echo "Using $CC for compiling with threads" >&6; }
4141            fi
4142            LIBS="$LIBS -lc"
4143            SHLIB_CFLAGS=""
4144            # Note: need the LIBS below, otherwise Tk won't find Tcl's
4145            # symbols when dynamically loaded into tclsh.
4146            SHLIB_LD_LIBS='${LIBS}'
4147            SHLIB_SUFFIX=".so"
4148
4149            DL_OBJS="tclLoadDl.o"
4150            LD_LIBRARY_PATH_VAR="LIBPATH"
4151
4152            # Check to enable 64-bit flags for compiler/linker on AIX 4+
4153            if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
4154                if test "$GCC" = "yes" ; then
4155                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
4156$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
4157                else
4158                    do64bit_ok=yes
4159                    CFLAGS="$CFLAGS -q64"
4160                    LDFLAGS="$LDFLAGS -q64"
4161                    RANLIB="${RANLIB} -X64"
4162                    AR="${AR} -X64"
4163                    SHLIB_LD_FLAGS="-b64"
4164                fi
4165            fi
4166
4167            if test "`uname -m`" = "ia64" ; then
4168                # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
4169                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
4170                # AIX-5 has dl* in libc.so
4171                DL_LIBS=""
4172                if test "$GCC" = "yes" ; then
4173                    CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
4174                else
4175                    CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
4176                fi
4177                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
4178            else
4179                if test "$GCC" = "yes" ; then
4180                    SHLIB_LD="gcc -shared"
4181                else
4182                    SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
4183                fi
4184                SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
4185                DL_LIBS="-ldl"
4186                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4187                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4188                TCL_NEEDS_EXP_FILE=1
4189                TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp'
4190            fi
4191
4192            # AIX v<=4.1 has some different flags than 4.2+
4193            if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then
4194                LIBOBJS="$LIBOBJS tclLoadAix.o"
4195                DL_LIBS="-lld"
4196            fi
4197
4198            # On AIX <=v4 systems, libbsd.a has to be linked in to support
4199            # non-blocking file IO.  This library has to be linked in after
4200            # the MATH_LIBS or it breaks the pow() function.  The way to
4201            # insure proper sequencing, is to add it to the tail of MATH_LIBS.
4202            # This library also supplies gettimeofday.
4203            #
4204            # AIX does not have a timezone field in struct tm. When the AIX
4205            # bsd library is used, the timezone global and the gettimeofday
4206            # methods are to be avoided for timezone deduction instead, we
4207            # deduce the timezone by comparing the localtime result on a
4208            # known GMT value.
4209
4210            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5
4211$as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
4212if ${ac_cv_lib_bsd_gettimeofday+:} false; then :
4213  $as_echo_n "(cached) " >&6
4214else
4215  ac_check_lib_save_LIBS=$LIBS
4216LIBS="-lbsd  $LIBS"
4217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218/* end confdefs.h.  */
4219
4220/* Override any GCC internal prototype to avoid an error.
4221   Use char because int might match the return type of a GCC
4222   builtin and then its argument prototype would still apply.  */
4223#ifdef __cplusplus
4224extern "C"
4225#endif
4226char gettimeofday ();
4227int
4228main ()
4229{
4230return gettimeofday ();
4231  ;
4232  return 0;
4233}
4234_ACEOF
4235if ac_fn_c_try_link "$LINENO"; then :
4236  ac_cv_lib_bsd_gettimeofday=yes
4237else
4238  ac_cv_lib_bsd_gettimeofday=no
4239fi
4240rm -f core conftest.err conftest.$ac_objext \
4241    conftest$ac_exeext conftest.$ac_ext
4242LIBS=$ac_check_lib_save_LIBS
4243fi
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5
4245$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
4246if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then :
4247  libbsd=yes
4248else
4249  libbsd=no
4250fi
4251
4252            if test $libbsd = yes; then
4253                MATH_LIBS="$MATH_LIBS -lbsd"
4254                $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h
4255
4256            fi
4257            ;;
4258        BeOS*)
4259            SHLIB_CFLAGS="-fPIC"
4260            SHLIB_LD="${CC} -nostart"
4261            SHLIB_LD_LIBS='${LIBS}'
4262            SHLIB_SUFFIX=".so"
4263            DL_OBJS="tclLoadDl.o"
4264            DL_LIBS="-ldl"
4265
4266            #-----------------------------------------------------------
4267            # Check for inet_ntoa in -lbind, for BeOS (which also needs
4268            # -lsocket, even if the network functions are in -lnet which
4269            # is always linked to, for compatibility.
4270            #-----------------------------------------------------------
4271            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
4272$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
4273if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
4274  $as_echo_n "(cached) " >&6
4275else
4276  ac_check_lib_save_LIBS=$LIBS
4277LIBS="-lbind  $LIBS"
4278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279/* end confdefs.h.  */
4280
4281/* Override any GCC internal prototype to avoid an error.
4282   Use char because int might match the return type of a GCC
4283   builtin and then its argument prototype would still apply.  */
4284#ifdef __cplusplus
4285extern "C"
4286#endif
4287char inet_ntoa ();
4288int
4289main ()
4290{
4291return inet_ntoa ();
4292  ;
4293  return 0;
4294}
4295_ACEOF
4296if ac_fn_c_try_link "$LINENO"; then :
4297  ac_cv_lib_bind_inet_ntoa=yes
4298else
4299  ac_cv_lib_bind_inet_ntoa=no
4300fi
4301rm -f core conftest.err conftest.$ac_objext \
4302    conftest$ac_exeext conftest.$ac_ext
4303LIBS=$ac_check_lib_save_LIBS
4304fi
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
4306$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
4307if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
4308  LIBS="$LIBS -lbind -lsocket"
4309fi
4310
4311            ;;
4312        BSD/OS-2.1*|BSD/OS-3*)
4313            SHLIB_CFLAGS=""
4314            SHLIB_LD="shlicc -r"
4315            SHLIB_LD_LIBS='${LIBS}'
4316            SHLIB_SUFFIX=".so"
4317            DL_OBJS="tclLoadDl.o"
4318            DL_LIBS="-ldl"
4319            CC_SEARCH_FLAGS=""
4320            LD_SEARCH_FLAGS=""
4321            ;;
4322        BSD/OS-4.*)
4323            SHLIB_CFLAGS="-export-dynamic -fPIC"
4324            SHLIB_LD="cc -shared"
4325            SHLIB_LD_LIBS='${LIBS}'
4326            SHLIB_SUFFIX=".so"
4327            DL_OBJS="tclLoadDl.o"
4328            DL_LIBS="-ldl"
4329            LDFLAGS="$LDFLAGS -export-dynamic"
4330            CC_SEARCH_FLAGS=""
4331            LD_SEARCH_FLAGS=""
4332            ;;
4333        dgux*)
4334            SHLIB_CFLAGS="-K PIC"
4335            SHLIB_LD="cc -G"
4336            SHLIB_LD_LIBS=""
4337            SHLIB_SUFFIX=".so"
4338            DL_OBJS="tclLoadDl.o"
4339            DL_LIBS="-ldl"
4340            CC_SEARCH_FLAGS=""
4341            LD_SEARCH_FLAGS=""
4342            ;;
4343        HP-UX-*.11.*)
4344            # Use updated header definitions where possible
4345            $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
4346          # Use the XOPEN network library
4347            $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
4348 # Use the XOPEN network library
4349            LIBS="$LIBS -lxnet"               # Use the XOPEN network library
4350
4351            if test "`uname -m`" = "ia64" ; then
4352                SHLIB_SUFFIX=".so"
4353            else
4354                SHLIB_SUFFIX=".sl"
4355            fi
4356            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
4357$as_echo_n "checking for shl_load in -ldld... " >&6; }
4358if ${ac_cv_lib_dld_shl_load+:} false; then :
4359  $as_echo_n "(cached) " >&6
4360else
4361  ac_check_lib_save_LIBS=$LIBS
4362LIBS="-ldld  $LIBS"
4363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364/* end confdefs.h.  */
4365
4366/* Override any GCC internal prototype to avoid an error.
4367   Use char because int might match the return type of a GCC
4368   builtin and then its argument prototype would still apply.  */
4369#ifdef __cplusplus
4370extern "C"
4371#endif
4372char shl_load ();
4373int
4374main ()
4375{
4376return shl_load ();
4377  ;
4378  return 0;
4379}
4380_ACEOF
4381if ac_fn_c_try_link "$LINENO"; then :
4382  ac_cv_lib_dld_shl_load=yes
4383else
4384  ac_cv_lib_dld_shl_load=no
4385fi
4386rm -f core conftest.err conftest.$ac_objext \
4387    conftest$ac_exeext conftest.$ac_ext
4388LIBS=$ac_check_lib_save_LIBS
4389fi
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
4391$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
4392if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
4393  tcl_ok=yes
4394else
4395  tcl_ok=no
4396fi
4397
4398            if test "$tcl_ok" = yes; then
4399                SHLIB_CFLAGS="+z"
4400                SHLIB_LD="ld -b"
4401                SHLIB_LD_LIBS='${LIBS}'
4402                DL_OBJS="tclLoadShl.o"
4403                DL_LIBS="-ldld"
4404                LDFLAGS="$LDFLAGS -Wl,-E"
4405                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
4406                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
4407                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
4408            fi
4409            if test "$GCC" = "yes" ; then
4410                SHLIB_LD="gcc -shared"
4411                SHLIB_LD_LIBS='${LIBS}'
4412                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4413            fi
4414
4415            # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
4416            #CFLAGS="$CFLAGS +DAportable"
4417
4418            # Check to enable 64-bit flags for compiler/linker
4419            if test "$do64bit" = "yes" ; then
4420                if test "$GCC" = "yes" ; then
4421                    hpux_arch=`${CC} -dumpmachine`
4422                    case $hpux_arch in
4423                        hppa64*)
4424                            # 64-bit gcc in use.  Fix flags for GNU ld.
4425                            do64bit_ok=yes
4426                            SHLIB_LD="${CC} -shared"
4427                            SHLIB_LD_LIBS='${LIBS}'
4428                            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4429                            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4430                            ;;
4431                        *)
4432                            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
4433$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
4434                            ;;
4435                    esac
4436                else
4437                    do64bit_ok=yes
4438                    CFLAGS="$CFLAGS +DD64"
4439                    LDFLAGS="$LDFLAGS +DD64"
4440                fi
4441            fi
4442            ;;
4443        HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
4444            SHLIB_SUFFIX=".sl"
4445            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
4446$as_echo_n "checking for shl_load in -ldld... " >&6; }
4447if ${ac_cv_lib_dld_shl_load+:} false; then :
4448  $as_echo_n "(cached) " >&6
4449else
4450  ac_check_lib_save_LIBS=$LIBS
4451LIBS="-ldld  $LIBS"
4452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453/* end confdefs.h.  */
4454
4455/* Override any GCC internal prototype to avoid an error.
4456   Use char because int might match the return type of a GCC
4457   builtin and then its argument prototype would still apply.  */
4458#ifdef __cplusplus
4459extern "C"
4460#endif
4461char shl_load ();
4462int
4463main ()
4464{
4465return shl_load ();
4466  ;
4467  return 0;
4468}
4469_ACEOF
4470if ac_fn_c_try_link "$LINENO"; then :
4471  ac_cv_lib_dld_shl_load=yes
4472else
4473  ac_cv_lib_dld_shl_load=no
4474fi
4475rm -f core conftest.err conftest.$ac_objext \
4476    conftest$ac_exeext conftest.$ac_ext
4477LIBS=$ac_check_lib_save_LIBS
4478fi
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
4480$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
4481if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
4482  tcl_ok=yes
4483else
4484  tcl_ok=no
4485fi
4486
4487            if test "$tcl_ok" = yes; then
4488                SHLIB_CFLAGS="+z"
4489                SHLIB_LD="ld -b"
4490                SHLIB_LD_LIBS=""
4491                DL_OBJS="tclLoadShl.o"
4492                DL_LIBS="-ldld"
4493                LDFLAGS="$LDFLAGS -Wl,-E"
4494                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
4495                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
4496                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
4497            fi
4498            ;;
4499        IRIX-4.*)
4500            SHLIB_CFLAGS="-G 0"
4501            SHLIB_SUFFIX=".a"
4502            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
4503            SHLIB_LD_LIBS='${LIBS}'
4504            DL_OBJS="tclLoadAout.o"
4505            DL_LIBS=""
4506            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
4507            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4508            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4509            SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
4510            ;;
4511        IRIX-5.*)
4512            SHLIB_CFLAGS=""
4513            SHLIB_LD="ld -shared -rdata_shared"
4514            SHLIB_LD_LIBS='${LIBS}'
4515            SHLIB_SUFFIX=".so"
4516            DL_OBJS="tclLoadDl.o"
4517            DL_LIBS=""
4518            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4519            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4520            ;;
4521        IRIX-6.*)
4522            SHLIB_CFLAGS=""
4523            SHLIB_LD="ld -n32 -shared -rdata_shared"
4524            SHLIB_LD_LIBS='${LIBS}'
4525            SHLIB_SUFFIX=".so"
4526            DL_OBJS="tclLoadDl.o"
4527            DL_LIBS=""
4528            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4529            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4530            if test "$GCC" = "yes" ; then
4531                CFLAGS="$CFLAGS -mabi=n32"
4532                LDFLAGS="$LDFLAGS -mabi=n32"
4533            else
4534                case $system in
4535                    IRIX-6.3)
4536                        # Use to build 6.2 compatible binaries on 6.3.
4537                        CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
4538                        ;;
4539                    *)
4540                        CFLAGS="$CFLAGS -n32"
4541                        ;;
4542                esac
4543                LDFLAGS="$LDFLAGS -n32"
4544            fi
4545            ;;
4546        IRIX64-6.*)
4547            SHLIB_CFLAGS=""
4548            SHLIB_LD="ld -n32 -shared -rdata_shared"
4549            SHLIB_LD_LIBS='${LIBS}'
4550            SHLIB_SUFFIX=".so"
4551            DL_OBJS="tclLoadDl.o"
4552            DL_LIBS=""
4553            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4554            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4555
4556            # Check to enable 64-bit flags for compiler/linker
4557
4558            if test "$do64bit" = "yes" ; then
4559                if test "$GCC" = "yes" ; then
4560                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
4561$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
4562                else
4563                    do64bit_ok=yes
4564                    SHLIB_LD="ld -64 -shared -rdata_shared"
4565                    CFLAGS="$CFLAGS -64"
4566                    LDFLAGS="$LDFLAGS -64"
4567                fi
4568            fi
4569            ;;
4570        Linux*)
4571            SHLIB_CFLAGS="-fPIC"
4572            SHLIB_LD_LIBS='${LIBS}'
4573            SHLIB_SUFFIX=".so"
4574
4575            CFLAGS_OPTIMIZE=-O2
4576            # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
4577            # when you inline the string and math operations.  Turn this off to
4578            # get rid of the warnings.
4579            #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
4580
4581            if test "$have_dl" = yes; then
4582                SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
4583                DL_OBJS="tclLoadDl.o"
4584                DL_LIBS="-ldl"
4585                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
4586                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4587                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4588            else
4589                ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
4590if test "x$ac_cv_header_dld_h" = xyes; then :
4591
4592                    SHLIB_LD="ld -shared"
4593                    DL_OBJS="tclLoadDld.o"
4594                    DL_LIBS="-ldld"
4595                    CC_SEARCH_FLAGS=""
4596                    LD_SEARCH_FLAGS=""
4597fi
4598
4599
4600            fi
4601            if test "`uname -m`" = "alpha" ; then
4602                CFLAGS="$CFLAGS -mieee"
4603            fi
4604            if test $do64bit = yes; then
4605                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
4606$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
4607if ${tcl_cv_cc_m64+:} false; then :
4608  $as_echo_n "(cached) " >&6
4609else
4610
4611                    hold_cflags=$CFLAGS
4612                    CFLAGS="$CFLAGS -m64"
4613                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614/* end confdefs.h.  */
4615
4616int
4617main ()
4618{
4619
4620  ;
4621  return 0;
4622}
4623_ACEOF
4624if ac_fn_c_try_link "$LINENO"; then :
4625  tcl_cv_cc_m64=yes
4626else
4627  tcl_cv_cc_m64=no
4628fi
4629rm -f core conftest.err conftest.$ac_objext \
4630    conftest$ac_exeext conftest.$ac_ext
4631                    CFLAGS=$hold_cflags
4632fi
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
4634$as_echo "$tcl_cv_cc_m64" >&6; }
4635                if test $tcl_cv_cc_m64 = yes; then
4636                    CFLAGS="$CFLAGS -m64"
4637                    do64bit_ok=yes
4638                fi
4639            fi
4640
4641            # The combo of gcc + glibc has a bug related
4642            # to inlining of functions like strtod(). The
4643            # -fno-builtin flag should address this problem
4644            # but it does not work. The -fno-inline flag
4645            # is kind of overkill but it works.
4646            # Disable inlining only when one of the
4647            # files in compat/*.c is being linked in.
4648            if test x"${LIBOBJS}" != x ; then
4649                CFLAGS="$CFLAGS -fno-inline"
4650            fi
4651
4652            # XIM peeking works under XFree86.
4653            $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h
4654
4655
4656            ;;
4657        GNU*)
4658            SHLIB_CFLAGS="-fPIC"
4659            SHLIB_LD_LIBS='${LIBS}'
4660            SHLIB_SUFFIX=".so"
4661
4662            if test "$have_dl" = yes; then
4663                SHLIB_LD="${CC} -shared"
4664                DL_OBJS=""
4665                DL_LIBS="-ldl"
4666                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
4667                CC_SEARCH_FLAGS=""
4668                LD_SEARCH_FLAGS=""
4669            else
4670                ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
4671if test "x$ac_cv_header_dld_h" = xyes; then :
4672
4673                    SHLIB_LD="ld -shared"
4674                    DL_OBJS=""
4675                    DL_LIBS="-ldld"
4676                    CC_SEARCH_FLAGS=""
4677                    LD_SEARCH_FLAGS=""
4678fi
4679
4680
4681            fi
4682            if test "`uname -m`" = "alpha" ; then
4683                CFLAGS="$CFLAGS -mieee"
4684            fi
4685            ;;
4686        Lynx*)
4687            SHLIB_CFLAGS="-fPIC"
4688            SHLIB_LD_LIBS='${LIBS}'
4689            SHLIB_SUFFIX=".so"
4690            CFLAGS_OPTIMIZE=-02
4691            SHLIB_LD="${CC} -shared "
4692            DL_OBJS="tclLoadDl.o"
4693            DL_LIBS="-mshared -ldl"
4694            LD_FLAGS="-Wl,--export-dynamic"
4695            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4696            LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4697            ;;
4698        MP-RAS-02*)
4699            SHLIB_CFLAGS="-K PIC"
4700            SHLIB_LD="cc -G"
4701            SHLIB_LD_LIBS=""
4702            SHLIB_SUFFIX=".so"
4703            DL_OBJS="tclLoadDl.o"
4704            DL_LIBS="-ldl"
4705            CC_SEARCH_FLAGS=""
4706            LD_SEARCH_FLAGS=""
4707            ;;
4708        MP-RAS-*)
4709            SHLIB_CFLAGS="-K PIC"
4710            SHLIB_LD="cc -G"
4711            SHLIB_LD_LIBS=""
4712            SHLIB_SUFFIX=".so"
4713            DL_OBJS="tclLoadDl.o"
4714            DL_LIBS="-ldl"
4715            LDFLAGS="$LDFLAGS -Wl,-Bexport"
4716            CC_SEARCH_FLAGS=""
4717            LD_SEARCH_FLAGS=""
4718            ;;
4719        NetBSD-*|FreeBSD-[1-2].*)
4720            # Not available on all versions:  check for include file.
4721            ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
4722if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4723
4724                # NetBSD/SPARC needs -fPIC, -fpic will not do.
4725                SHLIB_CFLAGS="-fPIC"
4726                SHLIB_LD="ld -Bshareable -x"
4727                SHLIB_LD_LIBS='${LIBS}'
4728                SHLIB_SUFFIX=".so"
4729                DL_OBJS="tclLoadDl.o"
4730                DL_LIBS=""
4731                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4732                LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4733                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
4734$as_echo_n "checking for ELF... " >&6; }
4735if ${tcl_cv_ld_elf+:} false; then :
4736  $as_echo_n "(cached) " >&6
4737else
4738
4739                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740/* end confdefs.h.  */
4741
4742#ifdef __ELF__
4743        yes
4744#endif
4745
4746_ACEOF
4747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4748  $EGREP "yes" >/dev/null 2>&1; then :
4749  tcl_cv_ld_elf=yes
4750else
4751  tcl_cv_ld_elf=no
4752fi
4753rm -f conftest*
4754
4755fi
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
4757$as_echo "$tcl_cv_ld_elf" >&6; }
4758                if test $tcl_cv_ld_elf = yes; then
4759                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
4760                else
4761                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
4762                fi
4763
4764else
4765
4766                SHLIB_CFLAGS=""
4767                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
4768                SHLIB_LD_LIBS='${LIBS}'
4769                SHLIB_SUFFIX=".a"
4770                DL_OBJS="tclLoadAout.o"
4771                DL_LIBS=""
4772                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4773                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4774                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4775
4776fi
4777
4778
4779
4780            # FreeBSD doesn't handle version numbers with dots.
4781
4782            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4783            TCL_LIB_VERSIONS_OK=nodots
4784            ;;
4785        OpenBSD-*)
4786            case `arch -s` in
4787            m88k|vax)
4788                SHLIB_CFLAGS=""
4789                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
4790                SHLIB_LD_LIBS='${LIBS}'
4791                SHLIB_SUFFIX=".a"
4792                DL_OBJS="tclLoadAout.o"
4793                DL_LIBS=""
4794                LDFLAGS=""
4795                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4796                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4797                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4798                ;;
4799            *)
4800                # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do.
4801                case `machine` in
4802                sparc|sparc64)
4803                    SHLIB_CFLAGS="-fPIC";;
4804                *)
4805                    SHLIB_CFLAGS="-fpic";;
4806                esac
4807                SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}"
4808                SHLIB_LD_LIBS='${LIBS}'
4809                SHLIB_SUFFIX=".so"
4810                DL_OBJS="tclLoadDl.o"
4811                DL_LIBS=""
4812                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4813                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4814                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
4815                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
4816$as_echo_n "checking for ELF... " >&6; }
4817if ${tcl_cv_ld_elf+:} false; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820
4821                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822/* end confdefs.h.  */
4823
4824#ifdef __ELF__
4825        yes
4826#endif
4827
4828_ACEOF
4829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4830  $EGREP "yes" >/dev/null 2>&1; then :
4831  tcl_cv_ld_elf=yes
4832else
4833  tcl_cv_ld_elf=no
4834fi
4835rm -f conftest*
4836
4837fi
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
4839$as_echo "$tcl_cv_ld_elf" >&6; }
4840                if test $tcl_cv_ld_elf = yes; then
4841                    LDFLAGS=-Wl,-export-dynamic
4842                else
4843                    LDFLAGS=""
4844                fi
4845                ;;
4846            esac
4847
4848            # OpenBSD doesn't do version numbers with dots.
4849            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4850            TCL_LIB_VERSIONS_OK=nodots
4851            ;;
4852        FreeBSD-*)
4853            # FreeBSD 3.* and greater have ELF.
4854            SHLIB_CFLAGS="-fPIC"
4855            SHLIB_LD="ld -Bshareable -x"
4856            SHLIB_LD_LIBS='${LIBS}'
4857            SHLIB_SUFFIX=".so"
4858            DL_OBJS="tclLoadDl.o"
4859            DL_LIBS=""
4860            LDFLAGS="$LDFLAGS -export-dynamic"
4861            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4862            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4863            if test "${TCL_THREADS}" = "1" ; then
4864                # The -pthread needs to go in the CFLAGS, not LIBS
4865                LIBS=`echo $LIBS | sed s/-pthread//`
4866                CFLAGS="$CFLAGS -pthread"
4867                LDFLAGS="$LDFLAGS -pthread"
4868            fi
4869            case $system in
4870            FreeBSD-3.*)
4871                # FreeBSD-3 doesn't handle version numbers with dots.
4872                UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4873                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
4874                TCL_LIB_VERSIONS_OK=nodots
4875                ;;
4876            esac
4877            ;;
4878        Darwin-*)
4879            CFLAGS_OPTIMIZE="-Os"
4880            SHLIB_CFLAGS="-fno-common"
4881            # To avoid discrepancies between what headers configure sees during
4882            # preprocessing tests and compiling tests, move any -isysroot and
4883            # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
4884            CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
4885                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
4886                if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
4887            CFLAGS="`echo " ${CFLAGS}" | \
4888                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
4889                if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
4890            if test $do64bit = yes; then
4891                case `arch` in
4892                    ppc)
4893                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
4894$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
4895if ${tcl_cv_cc_arch_ppc64+:} false; then :
4896  $as_echo_n "(cached) " >&6
4897else
4898
4899                            hold_cflags=$CFLAGS
4900                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
4901                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902/* end confdefs.h.  */
4903
4904int
4905main ()
4906{
4907
4908  ;
4909  return 0;
4910}
4911_ACEOF
4912if ac_fn_c_try_link "$LINENO"; then :
4913  tcl_cv_cc_arch_ppc64=yes
4914else
4915  tcl_cv_cc_arch_ppc64=no
4916fi
4917rm -f core conftest.err conftest.$ac_objext \
4918    conftest$ac_exeext conftest.$ac_ext
4919                            CFLAGS=$hold_cflags
4920fi
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
4922$as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
4923                        if test $tcl_cv_cc_arch_ppc64 = yes; then
4924                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
4925                            do64bit_ok=yes
4926                        fi;;
4927                    i386)
4928                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
4929$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
4930if ${tcl_cv_cc_arch_x86_64+:} false; then :
4931  $as_echo_n "(cached) " >&6
4932else
4933
4934                            hold_cflags=$CFLAGS
4935                            CFLAGS="$CFLAGS -arch x86_64"
4936                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937/* end confdefs.h.  */
4938
4939int
4940main ()
4941{
4942
4943  ;
4944  return 0;
4945}
4946_ACEOF
4947if ac_fn_c_try_link "$LINENO"; then :
4948  tcl_cv_cc_arch_x86_64=yes
4949else
4950  tcl_cv_cc_arch_x86_64=no
4951fi
4952rm -f core conftest.err conftest.$ac_objext \
4953    conftest$ac_exeext conftest.$ac_ext
4954                            CFLAGS=$hold_cflags
4955fi
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
4957$as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
4958                        if test $tcl_cv_cc_arch_x86_64 = yes; then
4959                            CFLAGS="$CFLAGS -arch x86_64"
4960                            do64bit_ok=yes
4961                        fi;;
4962                    *)
4963                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
4964$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
4965                esac
4966            else
4967                # Check for combined 32-bit and 64-bit fat build
4968                echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \
4969                    echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \
4970                    fat_32_64=yes
4971            fi
4972            SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}'
4973            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
4974$as_echo_n "checking if ld accepts -single_module flag... " >&6; }
4975if ${tcl_cv_ld_single_module+:} false; then :
4976  $as_echo_n "(cached) " >&6
4977else
4978
4979                hold_ldflags=$LDFLAGS
4980                LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
4981                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982/* end confdefs.h.  */
4983
4984int
4985main ()
4986{
4987int i;
4988  ;
4989  return 0;
4990}
4991_ACEOF
4992if ac_fn_c_try_link "$LINENO"; then :
4993  tcl_cv_ld_single_module=yes
4994else
4995  tcl_cv_ld_single_module=no
4996fi
4997rm -f core conftest.err conftest.$ac_objext \
4998    conftest$ac_exeext conftest.$ac_ext
4999                LDFLAGS=$hold_ldflags
5000fi
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
5002$as_echo "$tcl_cv_ld_single_module" >&6; }
5003            if test $tcl_cv_ld_single_module = yes; then
5004                SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
5005            fi
5006            SHLIB_LD_LIBS='${LIBS}'
5007            SHLIB_SUFFIX=".dylib"
5008            DL_OBJS="tclLoadDyld.o"
5009            DL_LIBS=""
5010            # Don't use -prebind when building for Mac OS X 10.4 or later only:
5011            test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
5012                "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \
5013                LDFLAGS="$LDFLAGS -prebind"
5014            LDFLAGS="$LDFLAGS -headerpad_max_install_names"
5015            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
5016$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
5017if ${tcl_cv_ld_search_paths_first+:} false; then :
5018  $as_echo_n "(cached) " >&6
5019else
5020
5021                hold_ldflags=$LDFLAGS
5022                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5023                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024/* end confdefs.h.  */
5025
5026int
5027main ()
5028{
5029int i;
5030  ;
5031  return 0;
5032}
5033_ACEOF
5034if ac_fn_c_try_link "$LINENO"; then :
5035  tcl_cv_ld_search_paths_first=yes
5036else
5037  tcl_cv_ld_search_paths_first=no
5038fi
5039rm -f core conftest.err conftest.$ac_objext \
5040    conftest$ac_exeext conftest.$ac_ext
5041                LDFLAGS=$hold_ldflags
5042fi
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
5044$as_echo "$tcl_cv_ld_search_paths_first" >&6; }
5045            if test $tcl_cv_ld_search_paths_first = yes; then
5046                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5047            fi
5048            CC_SEARCH_FLAGS=""
5049            LD_SEARCH_FLAGS=""
5050            LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
5051            PLAT_OBJS=\$\(MAC\_OSX_OBJS\)
5052            PLAT_SRCS=\$\(MAC\_OSX_SRCS\)
5053            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5
5054$as_echo_n "checking whether to use CoreFoundation... " >&6; }
5055            # Check whether --enable-corefoundation was given.
5056if test "${enable_corefoundation+set}" = set; then :
5057  enableval=$enable_corefoundation; tcl_corefoundation=$enableval
5058else
5059  tcl_corefoundation=yes
5060fi
5061
5062            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5
5063$as_echo "$tcl_corefoundation" >&6; }
5064            if test $tcl_corefoundation = yes; then
5065                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5
5066$as_echo_n "checking for CoreFoundation.framework... " >&6; }
5067if ${tcl_cv_lib_corefoundation+:} false; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070
5071                    hold_libs=$LIBS
5072                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
5073                        # On Tiger there is no 64-bit CF, so remove 64-bit archs
5074                        # from CFLAGS et al. while testing for presence of CF.
5075                        # 64-bit CF is disabled in tclUnixPort.h if necessary.
5076                        eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
5077                    done; fi
5078                    LIBS="$LIBS -framework CoreFoundation"
5079                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080/* end confdefs.h.  */
5081#include <CoreFoundation/CoreFoundation.h>
5082int
5083main ()
5084{
5085CFBundleRef b = CFBundleGetMainBundle();
5086  ;
5087  return 0;
5088}
5089_ACEOF
5090if ac_fn_c_try_link "$LINENO"; then :
5091  tcl_cv_lib_corefoundation=yes
5092else
5093  tcl_cv_lib_corefoundation=no
5094fi
5095rm -f core conftest.err conftest.$ac_objext \
5096    conftest$ac_exeext conftest.$ac_ext
5097                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
5098                        eval $v'="$hold_'$v'"'
5099                    done; fi; LIBS=$hold_libs
5100fi
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5
5102$as_echo "$tcl_cv_lib_corefoundation" >&6; }
5103                if test $tcl_cv_lib_corefoundation = yes; then
5104                    LIBS="$LIBS -framework CoreFoundation"
5105                    $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
5106
5107                else
5108                    tcl_corefoundation=no
5109                fi
5110                if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then
5111                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5
5112$as_echo_n "checking for 64-bit CoreFoundation... " >&6; }
5113if ${tcl_cv_lib_corefoundation_64+:} false; then :
5114  $as_echo_n "(cached) " >&6
5115else
5116
5117                        for v in CFLAGS CPPFLAGS LDFLAGS; do
5118                            eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
5119                        done
5120                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121/* end confdefs.h.  */
5122#include <CoreFoundation/CoreFoundation.h>
5123int
5124main ()
5125{
5126CFBundleRef b = CFBundleGetMainBundle();
5127  ;
5128  return 0;
5129}
5130_ACEOF
5131if ac_fn_c_try_link "$LINENO"; then :
5132  tcl_cv_lib_corefoundation_64=yes
5133else
5134  tcl_cv_lib_corefoundation_64=no
5135fi
5136rm -f core conftest.err conftest.$ac_objext \
5137    conftest$ac_exeext conftest.$ac_ext
5138                        for v in CFLAGS CPPFLAGS LDFLAGS; do
5139                            eval $v'="$hold_'$v'"'
5140                        done
5141fi
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5
5143$as_echo "$tcl_cv_lib_corefoundation_64" >&6; }
5144                    if test $tcl_cv_lib_corefoundation_64 = no; then
5145                        $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h
5146
5147                    fi
5148                fi
5149            fi
5150            $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h
5151
5152            ;;
5153        NEXTSTEP-*)
5154            SHLIB_CFLAGS=""
5155            SHLIB_LD="cc -nostdlib -r"
5156            SHLIB_LD_LIBS=""
5157            SHLIB_SUFFIX=".so"
5158            DL_OBJS="tclLoadNext.o"
5159            DL_LIBS=""
5160            CC_SEARCH_FLAGS=""
5161            LD_SEARCH_FLAGS=""
5162            ;;
5163        OS/390-*)
5164            CFLAGS_OPTIMIZE=""          # Optimizer is buggy
5165            $as_echo "#define _OE_SOCKETS 1" >>confdefs.h
5166        # needed in sys/socket.h
5167            ;;
5168        OSF1-1.0|OSF1-1.1|OSF1-1.2)
5169            # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
5170            SHLIB_CFLAGS=""
5171            # Hack: make package name same as library name
5172            SHLIB_LD='ld -R -export :'
5173            SHLIB_LD_LIBS=""
5174            SHLIB_SUFFIX=".so"
5175            DL_OBJS="tclLoadOSF.o"
5176            DL_LIBS=""
5177            CC_SEARCH_FLAGS=""
5178            LD_SEARCH_FLAGS=""
5179            ;;
5180        OSF1-1.*)
5181            # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
5182            SHLIB_CFLAGS="-fPIC"
5183            if test "$SHARED_BUILD" = "1" ; then
5184                SHLIB_LD="ld -shared"
5185            else
5186                SHLIB_LD="ld -non_shared"
5187            fi
5188            SHLIB_LD_LIBS=""
5189            SHLIB_SUFFIX=".so"
5190            DL_OBJS="tclLoadDl.o"
5191            DL_LIBS=""
5192            CC_SEARCH_FLAGS=""
5193            LD_SEARCH_FLAGS=""
5194            ;;
5195        OSF1-V*)
5196            # Digital OSF/1
5197            SHLIB_CFLAGS=""
5198            if test "$SHARED_BUILD" = "1" ; then
5199                SHLIB_LD='ld -shared -expect_unresolved "*"'
5200            else
5201                SHLIB_LD='ld -non_shared -expect_unresolved "*"'
5202            fi
5203            SHLIB_LD_LIBS=""
5204            SHLIB_SUFFIX=".so"
5205            DL_OBJS="tclLoadDl.o"
5206            DL_LIBS=""
5207            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
5208            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
5209            if test "$GCC" = "yes" ; then
5210                CFLAGS="$CFLAGS -mieee"
5211            else
5212                CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
5213            fi
5214            # see pthread_intro(3) for pthread support on osf1, k.furukawa
5215            if test "${TCL_THREADS}" = "1" ; then
5216                CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
5217                CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
5218                LIBS=`echo $LIBS | sed s/-lpthreads//`
5219                if test "$GCC" = "yes" ; then
5220                    LIBS="$LIBS -lpthread -lmach -lexc"
5221                else
5222                    CFLAGS="$CFLAGS -pthread"
5223                    LDFLAGS="$LDFLAGS -pthread"
5224                fi
5225            fi
5226
5227            ;;
5228        QNX-6*)
5229            # QNX RTP
5230            # This may work for all QNX, but it was only reported for v6.
5231            SHLIB_CFLAGS="-fPIC"
5232            SHLIB_LD="ld -Bshareable -x"
5233            SHLIB_LD_LIBS=""
5234            SHLIB_SUFFIX=".so"
5235            DL_OBJS="tclLoadDl.o"
5236            # dlopen is in -lc on QNX
5237            DL_LIBS=""
5238            CC_SEARCH_FLAGS=""
5239            LD_SEARCH_FLAGS=""
5240            ;;
5241        RISCos-*)
5242            SHLIB_CFLAGS="-G 0"
5243            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
5244            SHLIB_LD_LIBS='${LIBS}'
5245            SHLIB_SUFFIX=".a"
5246            DL_OBJS="tclLoadAout.o"
5247            DL_LIBS=""
5248            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
5249            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5250            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5251            ;;
5252        SCO_SV-3.2*)
5253            # Note, dlopen is available only on SCO 3.2.5 and greater. However,
5254            # this test works, since "uname -s" was non-standard in 3.2.4 and
5255            # below.
5256            if test "$GCC" = "yes" ; then
5257                SHLIB_CFLAGS="-fPIC -melf"
5258                LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
5259            else
5260                SHLIB_CFLAGS="-Kpic -belf"
5261                LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
5262            fi
5263            SHLIB_LD="ld -G"
5264            SHLIB_LD_LIBS=""
5265            SHLIB_SUFFIX=".so"
5266            DL_OBJS="tclLoadDl.o"
5267            DL_LIBS=""
5268            CC_SEARCH_FLAGS=""
5269            LD_SEARCH_FLAGS=""
5270            ;;
5271        SINIX*5.4*)
5272            SHLIB_CFLAGS="-K PIC"
5273            SHLIB_LD="cc -G"
5274            SHLIB_LD_LIBS=""
5275            SHLIB_SUFFIX=".so"
5276            DL_OBJS="tclLoadDl.o"
5277            DL_LIBS="-ldl"
5278            CC_SEARCH_FLAGS=""
5279            LD_SEARCH_FLAGS=""
5280            ;;
5281        SunOS-4*)
5282            SHLIB_CFLAGS="-PIC"
5283            SHLIB_LD="ld"
5284            SHLIB_LD_LIBS=""
5285            SHLIB_SUFFIX=".so"
5286            DL_OBJS="tclLoadDl.o"
5287            DL_LIBS="-ldl"
5288            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5289            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5290
5291            # SunOS can't handle version numbers with dots in them in library
5292            # specs, like -ltcl7.5, so use -ltcl75 instead.  Also, it
5293            # requires an extra version number at the end of .so file names.
5294            # So, the library has to have a name like libtcl75.so.1.0
5295
5296            SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
5297            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
5298            TCL_LIB_VERSIONS_OK=nodots
5299            ;;
5300        SunOS-5.[0-6])
5301            # Careful to not let 5.10+ fall into this case
5302
5303            # Note: If _REENTRANT isn't defined, then Solaris
5304            # won't define thread-safe library routines.
5305
5306            $as_echo "#define _REENTRANT 1" >>confdefs.h
5307
5308            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5309
5310
5311            SHLIB_CFLAGS="-KPIC"
5312
5313            # Note: need the LIBS below, otherwise Tk won't find Tcl's
5314            # symbols when dynamically loaded into tclsh.
5315
5316            SHLIB_LD_LIBS='${LIBS}'
5317            SHLIB_SUFFIX=".so"
5318            DL_OBJS="tclLoadDl.o"
5319            DL_LIBS="-ldl"
5320            if test "$GCC" = "yes" ; then
5321                SHLIB_LD="$CC -shared"
5322                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5323                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5324            else
5325                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
5326                CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
5327                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5328            fi
5329            ;;
5330        SunOS-5*)
5331            # Note: If _REENTRANT isn't defined, then Solaris
5332            # won't define thread-safe library routines.
5333
5334            $as_echo "#define _REENTRANT 1" >>confdefs.h
5335
5336            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5337
5338
5339            SHLIB_CFLAGS="-KPIC"
5340
5341            # Check to enable 64-bit flags for compiler/linker
5342            if test "$do64bit" = "yes" ; then
5343                arch=`isainfo`
5344                if test "$arch" = "sparcv9 sparc" ; then
5345                        if test "$GCC" = "yes" ; then
5346                            if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
5347                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
5348$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
5349                            else
5350                                do64bit_ok=yes
5351                                CFLAGS="$CFLAGS -m64 -mcpu=v9"
5352                                LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
5353                                SHLIB_CFLAGS="-fPIC"
5354                            fi
5355                        else
5356                            do64bit_ok=yes
5357                            if test "$do64bitVIS" = "yes" ; then
5358                                CFLAGS="$CFLAGS -xarch=v9a"
5359                                LDFLAGS="$LDFLAGS -xarch=v9a"
5360                            else
5361                                CFLAGS="$CFLAGS -xarch=v9"
5362                                LDFLAGS="$LDFLAGS -xarch=v9"
5363                            fi
5364                            # Solaris 64 uses this as well
5365                            #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
5366                        fi
5367                elif test "$arch" = "amd64 i386" ; then
5368                    if test "$GCC" = "yes" ; then
5369                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
5370$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
5371                    else
5372                        do64bit_ok=yes
5373                        CFLAGS="$CFLAGS -xarch=amd64"
5374                        LDFLAGS="$LDFLAGS -xarch=amd64"
5375                    fi
5376                else
5377                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
5378$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
5379                fi
5380            fi
5381
5382            # Note: need the LIBS below, otherwise Tk won't find Tcl's
5383            # symbols when dynamically loaded into tclsh.
5384
5385            SHLIB_LD_LIBS='${LIBS}'
5386            SHLIB_SUFFIX=".so"
5387            DL_OBJS="tclLoadDl.o"
5388            DL_LIBS="-ldl"
5389            if test "$GCC" = "yes" ; then
5390                SHLIB_LD="$CC -shared"
5391                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5392                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5393                if test "$do64bit_ok" = "yes" ; then
5394                    # We need to specify -static-libgcc or we need to
5395                    # add the path to the sparv9 libgcc.
5396                    SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
5397                    # for finding sparcv9 libgcc, get the regular libgcc
5398                    # path, remove so name and append 'sparcv9'
5399                    #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
5400                    #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
5401                fi
5402            else
5403                case $system in
5404                    SunOS-5.[1-9][0-9]*)
5405                        SHLIB_LD='${CC} -G -z text ${LDFLAGS}';;
5406                    *)
5407                        SHLIB_LD="/usr/ccs/bin/ld -G -z text";;
5408                esac
5409                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5410                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
5411            fi
5412            ;;
5413        ULTRIX-4.*)
5414            SHLIB_CFLAGS="-G 0"
5415            SHLIB_SUFFIX=".a"
5416            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
5417            SHLIB_LD_LIBS='${LIBS}'
5418            DL_OBJS="tclLoadAout.o"
5419            DL_LIBS=""
5420            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
5421            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5422            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5423            if test "$GCC" != "yes" ; then
5424                CFLAGS="$CFLAGS -DHAVE_TZSET -std1"
5425            fi
5426            ;;
5427        UNIX_SV* | UnixWare-5*)
5428            SHLIB_CFLAGS="-KPIC"
5429            SHLIB_LD="cc -G"
5430            SHLIB_LD_LIBS=""
5431            SHLIB_SUFFIX=".so"
5432            DL_OBJS="tclLoadDl.o"
5433            DL_LIBS="-ldl"
5434            # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
5435            # that don't grok the -Bexport option.  Test that it does.
5436            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
5437$as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
5438if ${tcl_cv_ld_Bexport+:} false; then :
5439  $as_echo_n "(cached) " >&6
5440else
5441
5442                hold_ldflags=$LDFLAGS
5443                LDFLAGS="$LDFLAGS -Wl,-Bexport"
5444                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445/* end confdefs.h.  */
5446
5447int
5448main ()
5449{
5450int i;
5451  ;
5452  return 0;
5453}
5454_ACEOF
5455if ac_fn_c_try_link "$LINENO"; then :
5456  tcl_cv_ld_Bexport=yes
5457else
5458  tcl_cv_ld_Bexport=no
5459fi
5460rm -f core conftest.err conftest.$ac_objext \
5461    conftest$ac_exeext conftest.$ac_ext
5462                LDFLAGS=$hold_ldflags
5463fi
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
5465$as_echo "$tcl_cv_ld_Bexport" >&6; }
5466            if test $tcl_cv_ld_Bexport = yes; then
5467                LDFLAGS="$LDFLAGS -Wl,-Bexport"
5468            fi
5469            CC_SEARCH_FLAGS=""
5470            LD_SEARCH_FLAGS=""
5471            ;;
5472    esac
5473
5474    if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
5475        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
5476$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
5477    fi
5478
5479
5480
5481
5482    # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic
5483    # Loading for Tcl -- What Became of It?".  Proc. 2nd Tcl/Tk Workshop,
5484    # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need
5485    # to determine which of several header files defines the a.out file
5486    # format (a.out.h, sys/exec.h, or sys/exec_aout.h).  At present, we
5487    # support only a file format that is more or less version-7-compatible.
5488    # In particular,
5489    #   - a.out files must begin with `struct exec'.
5490    #   - the N_TXTOFF on the `struct exec' must compute the seek address
5491    #     of the text segment
5492    #   - The `struct exec' must contain a_magic, a_text, a_data, a_bss
5493    #     and a_entry fields.
5494    # The following compilation should succeed if and only if either sys/exec.h
5495    # or a.out.h is usable for the purpose.
5496    #
5497    # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the
5498    # `struct exec' includes a second header that contains information that
5499    # duplicates the v7 fields that are needed.
5500
5501    if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
5502        { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5
5503$as_echo_n "checking sys/exec.h... " >&6; }
5504if ${tcl_cv_sysexec_h+:} false; then :
5505  $as_echo_n "(cached) " >&6
5506else
5507
5508        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509/* end confdefs.h.  */
5510#include <sys/exec.h>
5511int
5512main ()
5513{
5514
5515            struct exec foo;
5516            unsigned long seek;
5517            int flag;
5518#if defined(__mips) || defined(mips)
5519            seek = N_TXTOFF (foo.ex_f, foo.ex_o);
5520#else
5521            seek = N_TXTOFF (foo);
5522#endif
5523            flag = (foo.a_magic == OMAGIC);
5524            return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
5525
5526  ;
5527  return 0;
5528}
5529_ACEOF
5530if ac_fn_c_try_compile "$LINENO"; then :
5531  tcl_cv_sysexec_h=usable
5532else
5533  tcl_cv_sysexec_h=unusable
5534fi
5535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536fi
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5
5538$as_echo "$tcl_cv_sysexec_h" >&6; }
5539        if test $tcl_cv_sysexec_h = usable; then
5540            $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h
5541
5542        else
5543            { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5
5544$as_echo_n "checking a.out.h... " >&6; }
5545if ${tcl_cv_aout_h+:} false; then :
5546  $as_echo_n "(cached) " >&6
5547else
5548
5549            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550/* end confdefs.h.  */
5551#include <a.out.h>
5552int
5553main ()
5554{
5555
5556                struct exec foo;
5557                unsigned long seek;
5558                int flag;
5559#if defined(__mips) || defined(mips)
5560                seek = N_TXTOFF (foo.ex_f, foo.ex_o);
5561#else
5562                seek = N_TXTOFF (foo);
5563#endif
5564                flag = (foo.a_magic == OMAGIC);
5565                return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
5566
5567  ;
5568  return 0;
5569}
5570_ACEOF
5571if ac_fn_c_try_compile "$LINENO"; then :
5572  tcl_cv_aout_h=usable
5573else
5574  tcl_cv_aout_h=unusable
5575fi
5576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577fi
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5
5579$as_echo "$tcl_cv_aout_h" >&6; }
5580            if test $tcl_cv_aout_h = usable; then
5581                $as_echo "#define USE_A_OUT_H 1" >>confdefs.h
5582
5583            else
5584                { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5
5585$as_echo_n "checking sys/exec_aout.h... " >&6; }
5586if ${tcl_cv_sysexecaout_h+:} false; then :
5587  $as_echo_n "(cached) " >&6
5588else
5589
5590                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591/* end confdefs.h.  */
5592#include <sys/exec_aout.h>
5593int
5594main ()
5595{
5596
5597                    struct exec foo;
5598                    unsigned long seek;
5599                    int flag;
5600#if defined(__mips) || defined(mips)
5601                    seek = N_TXTOFF (foo.ex_f, foo.ex_o);
5602#else
5603                    seek = N_TXTOFF (foo);
5604#endif
5605                    flag = (foo.a_midmag == OMAGIC);
5606                    return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
5607
5608  ;
5609  return 0;
5610}
5611_ACEOF
5612if ac_fn_c_try_compile "$LINENO"; then :
5613  tcl_cv_sysexecaout_h=usable
5614else
5615  tcl_cv_sysexecaout_h=unusable
5616fi
5617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5618fi
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5
5620$as_echo "$tcl_cv_sysexecaout_h" >&6; }
5621                if test $tcl_cv_sysexecaout_h = usable; then
5622                    $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h
5623
5624                else
5625                    DL_OBJS=""
5626                fi
5627            fi
5628        fi
5629    fi
5630
5631    # Step 5: disable dynamic loading if requested via a command-line switch.
5632
5633    # Check whether --enable-load was given.
5634if test "${enable_load+set}" = set; then :
5635  enableval=$enable_load; tcl_ok=$enableval
5636else
5637  tcl_ok=yes
5638fi
5639
5640    if test "$tcl_ok" = "no"; then
5641        DL_OBJS=""
5642    fi
5643
5644    if test "x$DL_OBJS" != "x" ; then
5645        BUILD_DLTEST="\$(DLTEST_TARGETS)"
5646    else
5647        echo "Can't figure out how to do dynamic loading or shared libraries"
5648        echo "on this system."
5649        SHLIB_CFLAGS=""
5650        SHLIB_LD=""
5651        SHLIB_SUFFIX=""
5652        DL_OBJS="tclLoadNone.o"
5653        DL_LIBS=""
5654        LDFLAGS="$LDFLAGS_ORIG"
5655        CC_SEARCH_FLAGS=""
5656        LD_SEARCH_FLAGS=""
5657        BUILD_DLTEST=""
5658    fi
5659
5660    # If we're running gcc, then change the C flags for compiling shared
5661    # libraries to the right flags for gcc, instead of those for the
5662    # standard manufacturer compiler.
5663
5664    if test "$DL_OBJS" != "tclLoadNone.o" ; then
5665        if test "$GCC" = "yes" ; then
5666            case $system in
5667                AIX-*)
5668                    ;;
5669                BSD/OS*)
5670                    ;;
5671                IRIX*)
5672                    ;;
5673                NetBSD-*|FreeBSD-*|OpenBSD-*)
5674                    ;;
5675                Darwin-*)
5676                    ;;
5677                RISCos-*)
5678                    ;;
5679                SCO_SV-3.2*)
5680                    ;;
5681                ULTRIX-4.*)
5682                    ;;
5683                *)
5684                    SHLIB_CFLAGS="-fPIC"
5685                    ;;
5686            esac
5687        fi
5688    fi
5689
5690    if test "$SHARED_LIB_SUFFIX" = "" ; then
5691        SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}'
5692    fi
5693    if test "$UNSHARED_LIB_SUFFIX" = "" ; then
5694        UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
5695    fi
5696
5697    if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then
5698        LIB_SUFFIX=${SHARED_LIB_SUFFIX}
5699        MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
5700        INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
5701    else
5702        LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
5703
5704        if test "$RANLIB" = "" ; then
5705            MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
5706            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
5707        else
5708            MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
5709            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))'
5710        fi
5711
5712    fi
5713
5714
5715    # Stub lib does not depend on shared/static configuration
5716    if test "$RANLIB" = "" ; then
5717        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
5718        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)'
5719    else
5720        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
5721        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))'
5722    fi
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5757$as_echo_n "checking for X... " >&6; }
5758
5759
5760# Check whether --with-x was given.
5761if test "${with_x+set}" = set; then :
5762  withval=$with_x;
5763fi
5764
5765# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5766if test "x$with_x" = xno; then
5767  # The user explicitly disabled X.
5768  have_x=disabled
5769else
5770  case $x_includes,$x_libraries in #(
5771    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5772    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5773  $as_echo_n "(cached) " >&6
5774else
5775  # One or both of the vars are not set, and there is no cached value.
5776ac_x_includes=no ac_x_libraries=no
5777rm -f -r conftest.dir
5778if mkdir conftest.dir; then
5779  cd conftest.dir
5780  cat >Imakefile <<'_ACEOF'
5781incroot:
5782        @echo incroot='${INCROOT}'
5783usrlibdir:
5784        @echo usrlibdir='${USRLIBDIR}'
5785libdir:
5786        @echo libdir='${LIBDIR}'
5787_ACEOF
5788  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5789    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5790    for ac_var in incroot usrlibdir libdir; do
5791      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5792    done
5793    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5794    for ac_extension in a so sl dylib la dll; do
5795      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5796         test -f "$ac_im_libdir/libX11.$ac_extension"; then
5797        ac_im_usrlibdir=$ac_im_libdir; break
5798      fi
5799    done
5800    # Screen out bogus values from the imake configuration.  They are
5801    # bogus both because they are the default anyway, and because
5802    # using them would break gcc on systems where it needs fixed includes.
5803    case $ac_im_incroot in
5804        /usr/include) ac_x_includes= ;;
5805        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5806    esac
5807    case $ac_im_usrlibdir in
5808        /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5809        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5810    esac
5811  fi
5812  cd ..
5813  rm -f -r conftest.dir
5814fi
5815
5816# Standard set of common directories for X headers.
5817# Check X11 before X11Rn because it is often a symlink to the current release.
5818ac_x_header_dirs='
5819/usr/X11/include
5820/usr/X11R7/include
5821/usr/X11R6/include
5822/usr/X11R5/include
5823/usr/X11R4/include
5824
5825/usr/include/X11
5826/usr/include/X11R7
5827/usr/include/X11R6
5828/usr/include/X11R5
5829/usr/include/X11R4
5830
5831/usr/local/X11/include
5832/usr/local/X11R7/include
5833/usr/local/X11R6/include
5834/usr/local/X11R5/include
5835/usr/local/X11R4/include
5836
5837/usr/local/include/X11
5838/usr/local/include/X11R7
5839/usr/local/include/X11R6
5840/usr/local/include/X11R5
5841/usr/local/include/X11R4
5842
5843/usr/X386/include
5844/usr/x386/include
5845/usr/XFree86/include/X11
5846
5847/usr/include
5848/usr/local/include
5849/usr/unsupported/include
5850/usr/athena/include
5851/usr/local/x11r5/include
5852/usr/lpp/Xamples/include
5853
5854/usr/openwin/include
5855/usr/openwin/share/include'
5856
5857if test "$ac_x_includes" = no; then
5858  # Guess where to find include files, by looking for Xlib.h.
5859  # First, try using that file with no special directory specified.
5860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861/* end confdefs.h.  */
5862#include <X11/Xlib.h>
5863_ACEOF
5864if ac_fn_c_try_cpp "$LINENO"; then :
5865  # We can compile using X headers with no special include directory.
5866ac_x_includes=
5867else
5868  for ac_dir in $ac_x_header_dirs; do
5869  if test -r "$ac_dir/X11/Xlib.h"; then
5870    ac_x_includes=$ac_dir
5871    break
5872  fi
5873done
5874fi
5875rm -f conftest.err conftest.i conftest.$ac_ext
5876fi # $ac_x_includes = no
5877
5878if test "$ac_x_libraries" = no; then
5879  # Check for the libraries.
5880  # See if we find them without any special options.
5881  # Don't add to $LIBS permanently.
5882  ac_save_LIBS=$LIBS
5883  LIBS="-lX11 $LIBS"
5884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885/* end confdefs.h.  */
5886#include <X11/Xlib.h>
5887int
5888main ()
5889{
5890XrmInitialize ()
5891  ;
5892  return 0;
5893}
5894_ACEOF
5895if ac_fn_c_try_link "$LINENO"; then :
5896  LIBS=$ac_save_LIBS
5897# We can link X programs with no special library path.
5898ac_x_libraries=
5899else
5900  LIBS=$ac_save_LIBS
5901for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5902do
5903  # Don't even attempt the hair of trying to link an X program!
5904  for ac_extension in a so sl dylib la dll; do
5905    if test -r "$ac_dir/libX11.$ac_extension"; then
5906      ac_x_libraries=$ac_dir
5907      break 2
5908    fi
5909  done
5910done
5911fi
5912rm -f core conftest.err conftest.$ac_objext \
5913    conftest$ac_exeext conftest.$ac_ext
5914fi # $ac_x_libraries = no
5915
5916case $ac_x_includes,$ac_x_libraries in #(
5917  no,* | *,no | *\'*)
5918    # Didn't find X, or a directory has "'" in its name.
5919    ac_cv_have_x="have_x=no";; #(
5920  *)
5921    # Record where we found X for the cache.
5922    ac_cv_have_x="have_x=yes\
5923        ac_x_includes='$ac_x_includes'\
5924        ac_x_libraries='$ac_x_libraries'"
5925esac
5926fi
5927;; #(
5928    *) have_x=yes;;
5929  esac
5930  eval "$ac_cv_have_x"
5931fi # $with_x != no
5932
5933if test "$have_x" != yes; then
5934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5935$as_echo "$have_x" >&6; }
5936  no_x=yes
5937else
5938  # If each of the values was on the command line, it overrides each guess.
5939  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5940  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5941  # Update the cache value to reflect the command line values.
5942  ac_cv_have_x="have_x=yes\
5943        ac_x_includes='$x_includes'\
5944        ac_x_libraries='$x_libraries'"
5945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5946$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5947fi
5948
5949
5950# Find a good install program.  We prefer a C program (faster),
5951# so one script is as good as another.  But avoid the broken or
5952# incompatible versions:
5953# SysV /etc/install, /usr/sbin/install
5954# SunOS /usr/etc/install
5955# IRIX /sbin/install
5956# AIX /bin/install
5957# AmigaOS /C/install, which installs bootblocks on floppy discs
5958# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5959# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5960# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5961# OS/2's system install, which has a completely different semantic
5962# ./install, which can be erroneously created by make from ./install.sh.
5963# Reject install programs that cannot install multiple files.
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5965$as_echo_n "checking for a BSD-compatible install... " >&6; }
5966if test -z "$INSTALL"; then
5967if ${ac_cv_path_install+:} false; then :
5968  $as_echo_n "(cached) " >&6
5969else
5970  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971for as_dir in $PATH
5972do
5973  IFS=$as_save_IFS
5974  test -z "$as_dir" && as_dir=.
5975    # Account for people who put trailing slashes in PATH elements.
5976case $as_dir/ in #((
5977  ./ | .// | /[cC]/* | \
5978  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5979  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5980  /usr/ucb/* ) ;;
5981  *)
5982    # OSF1 and SCO ODT 3.0 have their own names for install.
5983    # Don't use installbsd from OSF since it installs stuff as root
5984    # by default.
5985    for ac_prog in ginstall scoinst install; do
5986      for ac_exec_ext in '' $ac_executable_extensions; do
5987        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5988          if test $ac_prog = install &&
5989            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5990            # AIX install.  It has an incompatible calling convention.
5991            :
5992          elif test $ac_prog = install &&
5993            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5994            # program-specific install script used by HP pwplus--don't use.
5995            :
5996          else
5997            rm -rf conftest.one conftest.two conftest.dir
5998            echo one > conftest.one
5999            echo two > conftest.two
6000            mkdir conftest.dir
6001            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6002              test -s conftest.one && test -s conftest.two &&
6003              test -s conftest.dir/conftest.one &&
6004              test -s conftest.dir/conftest.two
6005            then
6006              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6007              break 3
6008            fi
6009          fi
6010        fi
6011      done
6012    done
6013    ;;
6014esac
6015
6016  done
6017IFS=$as_save_IFS
6018
6019rm -rf conftest.one conftest.two conftest.dir
6020
6021fi
6022  if test "${ac_cv_path_install+set}" = set; then
6023    INSTALL=$ac_cv_path_install
6024  else
6025    # As a last resort, use the slow shell script.  Don't cache a
6026    # value for INSTALL within a source directory, because that will
6027    # break other packages using the cache if that directory is
6028    # removed, or if the value is a relative name.
6029    INSTALL=$ac_install_sh
6030  fi
6031fi
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6033$as_echo "$INSTALL" >&6; }
6034
6035# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6036# It thinks the first close brace ends the variable substitution.
6037test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6038
6039test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6040
6041test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6042
6043if test -n "$ac_tool_prefix"; then
6044  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6045set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047$as_echo_n "checking for $ac_word... " >&6; }
6048if ${ac_cv_prog_RANLIB+:} false; then :
6049  $as_echo_n "(cached) " >&6
6050else
6051  if test -n "$RANLIB"; then
6052  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6053else
6054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057  IFS=$as_save_IFS
6058  test -z "$as_dir" && as_dir=.
6059    for ac_exec_ext in '' $ac_executable_extensions; do
6060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063    break 2
6064  fi
6065done
6066  done
6067IFS=$as_save_IFS
6068
6069fi
6070fi
6071RANLIB=$ac_cv_prog_RANLIB
6072if test -n "$RANLIB"; then
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6074$as_echo "$RANLIB" >&6; }
6075else
6076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077$as_echo "no" >&6; }
6078fi
6079
6080
6081fi
6082if test -z "$ac_cv_prog_RANLIB"; then
6083  ac_ct_RANLIB=$RANLIB
6084  # Extract the first word of "ranlib", so it can be a program name with args.
6085set dummy ranlib; ac_word=$2
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087$as_echo_n "checking for $ac_word... " >&6; }
6088if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6089  $as_echo_n "(cached) " >&6
6090else
6091  if test -n "$ac_ct_RANLIB"; then
6092  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6093else
6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095for as_dir in $PATH
6096do
6097  IFS=$as_save_IFS
6098  test -z "$as_dir" && as_dir=.
6099    for ac_exec_ext in '' $ac_executable_extensions; do
6100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6101    ac_cv_prog_ac_ct_RANLIB="ranlib"
6102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103    break 2
6104  fi
6105done
6106  done
6107IFS=$as_save_IFS
6108
6109fi
6110fi
6111ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6112if test -n "$ac_ct_RANLIB"; then
6113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6114$as_echo "$ac_ct_RANLIB" >&6; }
6115else
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117$as_echo "no" >&6; }
6118fi
6119
6120  if test "x$ac_ct_RANLIB" = x; then
6121    RANLIB=":"
6122  else
6123    case $cross_compiling:$ac_tool_warned in
6124yes:)
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6127ac_tool_warned=yes ;;
6128esac
6129    RANLIB=$ac_ct_RANLIB
6130  fi
6131else
6132  RANLIB="$ac_cv_prog_RANLIB"
6133fi
6134
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6136$as_echo_n "checking whether ln -s works... " >&6; }
6137LN_S=$as_ln_s
6138if test "$LN_S" = "ln -s"; then
6139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6140$as_echo "yes" >&6; }
6141else
6142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6143$as_echo "no, using $LN_S" >&6; }
6144fi
6145
6146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6147$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6148if test -z "$MKDIR_P"; then
6149  if ${ac_cv_path_mkdir+:} false; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6154do
6155  IFS=$as_save_IFS
6156  test -z "$as_dir" && as_dir=.
6157    for ac_prog in mkdir gmkdir; do
6158         for ac_exec_ext in '' $ac_executable_extensions; do
6159           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6160           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6161             'mkdir (GNU coreutils) '* | \
6162             'mkdir (coreutils) '* | \
6163             'mkdir (fileutils) '4.1*)
6164               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6165               break 3;;
6166           esac
6167         done
6168       done
6169  done
6170IFS=$as_save_IFS
6171
6172fi
6173
6174  test -d ./--version && rmdir ./--version
6175  if test "${ac_cv_path_mkdir+set}" = set; then
6176    MKDIR_P="$ac_cv_path_mkdir -p"
6177  else
6178    # As a last resort, use the slow shell script.  Don't cache a
6179    # value for MKDIR_P within a source directory, because that will
6180    # break other packages using the cache if that directory is
6181    # removed, or if the value is a relative name.
6182    MKDIR_P="$ac_install_sh -d"
6183  fi
6184fi
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6186$as_echo "$MKDIR_P" >&6; }
6187
6188
6189ac_ext=c
6190ac_cpp='$CPP $CPPFLAGS'
6191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194if test -n "$ac_tool_prefix"; then
6195  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6196set dummy ${ac_tool_prefix}gcc; ac_word=$2
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198$as_echo_n "checking for $ac_word... " >&6; }
6199if ${ac_cv_prog_CC+:} false; then :
6200  $as_echo_n "(cached) " >&6
6201else
6202  if test -n "$CC"; then
6203  ac_cv_prog_CC="$CC" # Let the user override the test.
6204else
6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206for as_dir in $PATH
6207do
6208  IFS=$as_save_IFS
6209  test -z "$as_dir" && as_dir=.
6210    for ac_exec_ext in '' $ac_executable_extensions; do
6211  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212    ac_cv_prog_CC="${ac_tool_prefix}gcc"
6213    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214    break 2
6215  fi
6216done
6217  done
6218IFS=$as_save_IFS
6219
6220fi
6221fi
6222CC=$ac_cv_prog_CC
6223if test -n "$CC"; then
6224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6225$as_echo "$CC" >&6; }
6226else
6227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228$as_echo "no" >&6; }
6229fi
6230
6231
6232fi
6233if test -z "$ac_cv_prog_CC"; then
6234  ac_ct_CC=$CC
6235  # Extract the first word of "gcc", so it can be a program name with args.
6236set dummy gcc; ac_word=$2
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238$as_echo_n "checking for $ac_word... " >&6; }
6239if ${ac_cv_prog_ac_ct_CC+:} false; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  if test -n "$ac_ct_CC"; then
6243  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248  IFS=$as_save_IFS
6249  test -z "$as_dir" && as_dir=.
6250    for ac_exec_ext in '' $ac_executable_extensions; do
6251  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252    ac_cv_prog_ac_ct_CC="gcc"
6253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254    break 2
6255  fi
6256done
6257  done
6258IFS=$as_save_IFS
6259
6260fi
6261fi
6262ac_ct_CC=$ac_cv_prog_ac_ct_CC
6263if test -n "$ac_ct_CC"; then
6264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6265$as_echo "$ac_ct_CC" >&6; }
6266else
6267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268$as_echo "no" >&6; }
6269fi
6270
6271  if test "x$ac_ct_CC" = x; then
6272    CC=""
6273  else
6274    case $cross_compiling:$ac_tool_warned in
6275yes:)
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278ac_tool_warned=yes ;;
6279esac
6280    CC=$ac_ct_CC
6281  fi
6282else
6283  CC="$ac_cv_prog_CC"
6284fi
6285
6286if test -z "$CC"; then
6287          if test -n "$ac_tool_prefix"; then
6288    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6289set dummy ${ac_tool_prefix}cc; ac_word=$2
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291$as_echo_n "checking for $ac_word... " >&6; }
6292if ${ac_cv_prog_CC+:} false; then :
6293  $as_echo_n "(cached) " >&6
6294else
6295  if test -n "$CC"; then
6296  ac_cv_prog_CC="$CC" # Let the user override the test.
6297else
6298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299for as_dir in $PATH
6300do
6301  IFS=$as_save_IFS
6302  test -z "$as_dir" && as_dir=.
6303    for ac_exec_ext in '' $ac_executable_extensions; do
6304  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6305    ac_cv_prog_CC="${ac_tool_prefix}cc"
6306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307    break 2
6308  fi
6309done
6310  done
6311IFS=$as_save_IFS
6312
6313fi
6314fi
6315CC=$ac_cv_prog_CC
6316if test -n "$CC"; then
6317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6318$as_echo "$CC" >&6; }
6319else
6320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321$as_echo "no" >&6; }
6322fi
6323
6324
6325  fi
6326fi
6327if test -z "$CC"; then
6328  # Extract the first word of "cc", so it can be a program name with args.
6329set dummy cc; ac_word=$2
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331$as_echo_n "checking for $ac_word... " >&6; }
6332if ${ac_cv_prog_CC+:} false; then :
6333  $as_echo_n "(cached) " >&6
6334else
6335  if test -n "$CC"; then
6336  ac_cv_prog_CC="$CC" # Let the user override the test.
6337else
6338  ac_prog_rejected=no
6339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340for as_dir in $PATH
6341do
6342  IFS=$as_save_IFS
6343  test -z "$as_dir" && as_dir=.
6344    for ac_exec_ext in '' $ac_executable_extensions; do
6345  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6347       ac_prog_rejected=yes
6348       continue
6349     fi
6350    ac_cv_prog_CC="cc"
6351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352    break 2
6353  fi
6354done
6355  done
6356IFS=$as_save_IFS
6357
6358if test $ac_prog_rejected = yes; then
6359  # We found a bogon in the path, so make sure we never use it.
6360  set dummy $ac_cv_prog_CC
6361  shift
6362  if test $# != 0; then
6363    # We chose a different compiler from the bogus one.
6364    # However, it has the same basename, so the bogon will be chosen
6365    # first if we set CC to just the basename; use the full file name.
6366    shift
6367    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6368  fi
6369fi
6370fi
6371fi
6372CC=$ac_cv_prog_CC
6373if test -n "$CC"; then
6374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6375$as_echo "$CC" >&6; }
6376else
6377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378$as_echo "no" >&6; }
6379fi
6380
6381
6382fi
6383if test -z "$CC"; then
6384  if test -n "$ac_tool_prefix"; then
6385  for ac_prog in cl.exe
6386  do
6387    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6388set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390$as_echo_n "checking for $ac_word... " >&6; }
6391if ${ac_cv_prog_CC+:} false; then :
6392  $as_echo_n "(cached) " >&6
6393else
6394  if test -n "$CC"; then
6395  ac_cv_prog_CC="$CC" # Let the user override the test.
6396else
6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398for as_dir in $PATH
6399do
6400  IFS=$as_save_IFS
6401  test -z "$as_dir" && as_dir=.
6402    for ac_exec_ext in '' $ac_executable_extensions; do
6403  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406    break 2
6407  fi
6408done
6409  done
6410IFS=$as_save_IFS
6411
6412fi
6413fi
6414CC=$ac_cv_prog_CC
6415if test -n "$CC"; then
6416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6417$as_echo "$CC" >&6; }
6418else
6419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420$as_echo "no" >&6; }
6421fi
6422
6423
6424    test -n "$CC" && break
6425  done
6426fi
6427if test -z "$CC"; then
6428  ac_ct_CC=$CC
6429  for ac_prog in cl.exe
6430do
6431  # Extract the first word of "$ac_prog", so it can be a program name with args.
6432set dummy $ac_prog; ac_word=$2
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434$as_echo_n "checking for $ac_word... " >&6; }
6435if ${ac_cv_prog_ac_ct_CC+:} false; then :
6436  $as_echo_n "(cached) " >&6
6437else
6438  if test -n "$ac_ct_CC"; then
6439  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6440else
6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444  IFS=$as_save_IFS
6445  test -z "$as_dir" && as_dir=.
6446    for ac_exec_ext in '' $ac_executable_extensions; do
6447  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448    ac_cv_prog_ac_ct_CC="$ac_prog"
6449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450    break 2
6451  fi
6452done
6453  done
6454IFS=$as_save_IFS
6455
6456fi
6457fi
6458ac_ct_CC=$ac_cv_prog_ac_ct_CC
6459if test -n "$ac_ct_CC"; then
6460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6461$as_echo "$ac_ct_CC" >&6; }
6462else
6463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464$as_echo "no" >&6; }
6465fi
6466
6467
6468  test -n "$ac_ct_CC" && break
6469done
6470
6471  if test "x$ac_ct_CC" = x; then
6472    CC=""
6473  else
6474    case $cross_compiling:$ac_tool_warned in
6475yes:)
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6478ac_tool_warned=yes ;;
6479esac
6480    CC=$ac_ct_CC
6481  fi
6482fi
6483
6484fi
6485
6486
6487test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6489as_fn_error $? "no acceptable C compiler found in \$PATH
6490See \`config.log' for more details" "$LINENO" 5; }
6491
6492# Provide some information about the compiler.
6493$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6494set X $ac_compile
6495ac_compiler=$2
6496for ac_option in --version -v -V -qversion; do
6497  { { ac_try="$ac_compiler $ac_option >&5"
6498case "(($ac_try" in
6499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500  *) ac_try_echo=$ac_try;;
6501esac
6502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6503$as_echo "$ac_try_echo"; } >&5
6504  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6505  ac_status=$?
6506  if test -s conftest.err; then
6507    sed '10a\
6508... rest of stderr output deleted ...
6509         10q' conftest.err >conftest.er1
6510    cat conftest.er1 >&5
6511  fi
6512  rm -f conftest.er1 conftest.err
6513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514  test $ac_status = 0; }
6515done
6516
6517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6518$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6519if ${ac_cv_c_compiler_gnu+:} false; then :
6520  $as_echo_n "(cached) " >&6
6521else
6522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523/* end confdefs.h.  */
6524
6525int
6526main ()
6527{
6528#ifndef __GNUC__
6529       choke me
6530#endif
6531
6532  ;
6533  return 0;
6534}
6535_ACEOF
6536if ac_fn_c_try_compile "$LINENO"; then :
6537  ac_compiler_gnu=yes
6538else
6539  ac_compiler_gnu=no
6540fi
6541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542ac_cv_c_compiler_gnu=$ac_compiler_gnu
6543
6544fi
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6546$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6547if test $ac_compiler_gnu = yes; then
6548  GCC=yes
6549else
6550  GCC=
6551fi
6552ac_test_CFLAGS=${CFLAGS+set}
6553ac_save_CFLAGS=$CFLAGS
6554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6555$as_echo_n "checking whether $CC accepts -g... " >&6; }
6556if ${ac_cv_prog_cc_g+:} false; then :
6557  $as_echo_n "(cached) " >&6
6558else
6559  ac_save_c_werror_flag=$ac_c_werror_flag
6560   ac_c_werror_flag=yes
6561   ac_cv_prog_cc_g=no
6562   CFLAGS="-g"
6563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564/* end confdefs.h.  */
6565
6566int
6567main ()
6568{
6569
6570  ;
6571  return 0;
6572}
6573_ACEOF
6574if ac_fn_c_try_compile "$LINENO"; then :
6575  ac_cv_prog_cc_g=yes
6576else
6577  CFLAGS=""
6578      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579/* end confdefs.h.  */
6580
6581int
6582main ()
6583{
6584
6585  ;
6586  return 0;
6587}
6588_ACEOF
6589if ac_fn_c_try_compile "$LINENO"; then :
6590
6591else
6592  ac_c_werror_flag=$ac_save_c_werror_flag
6593         CFLAGS="-g"
6594         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595/* end confdefs.h.  */
6596
6597int
6598main ()
6599{
6600
6601  ;
6602  return 0;
6603}
6604_ACEOF
6605if ac_fn_c_try_compile "$LINENO"; then :
6606  ac_cv_prog_cc_g=yes
6607fi
6608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609fi
6610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611fi
6612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613   ac_c_werror_flag=$ac_save_c_werror_flag
6614fi
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6616$as_echo "$ac_cv_prog_cc_g" >&6; }
6617if test "$ac_test_CFLAGS" = set; then
6618  CFLAGS=$ac_save_CFLAGS
6619elif test $ac_cv_prog_cc_g = yes; then
6620  if test "$GCC" = yes; then
6621    CFLAGS="-g -O2"
6622  else
6623    CFLAGS="-g"
6624  fi
6625else
6626  if test "$GCC" = yes; then
6627    CFLAGS="-O2"
6628  else
6629    CFLAGS=
6630  fi
6631fi
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6633$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6634if ${ac_cv_prog_cc_c89+:} false; then :
6635  $as_echo_n "(cached) " >&6
6636else
6637  ac_cv_prog_cc_c89=no
6638ac_save_CC=$CC
6639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640/* end confdefs.h.  */
6641#include <stdarg.h>
6642#include <stdio.h>
6643struct stat;
6644/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6645struct buf { int x; };
6646FILE * (*rcsopen) (struct buf *, struct stat *, int);
6647static char *e (p, i)
6648     char **p;
6649     int i;
6650{
6651  return p[i];
6652}
6653static char *f (char * (*g) (char **, int), char **p, ...)
6654{
6655  char *s;
6656  va_list v;
6657  va_start (v,p);
6658  s = g (p, va_arg (v,int));
6659  va_end (v);
6660  return s;
6661}
6662
6663/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6664   function prototypes and stuff, but not '\xHH' hex character constants.
6665   These don't provoke an error unfortunately, instead are silently treated
6666   as 'x'.  The following induces an error, until -std is added to get
6667   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6668   array size at least.  It's necessary to write '\x00'==0 to get something
6669   that's true only with -std.  */
6670int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6671
6672/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6673   inside strings and character constants.  */
6674#define FOO(x) 'x'
6675int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6676
6677int test (int i, double x);
6678struct s1 {int (*f) (int a);};
6679struct s2 {int (*f) (double a);};
6680int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6681int argc;
6682char **argv;
6683int
6684main ()
6685{
6686return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6687  ;
6688  return 0;
6689}
6690_ACEOF
6691for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6692        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6693do
6694  CC="$ac_save_CC $ac_arg"
6695  if ac_fn_c_try_compile "$LINENO"; then :
6696  ac_cv_prog_cc_c89=$ac_arg
6697fi
6698rm -f core conftest.err conftest.$ac_objext
6699  test "x$ac_cv_prog_cc_c89" != "xno" && break
6700done
6701rm -f conftest.$ac_ext
6702CC=$ac_save_CC
6703
6704fi
6705# AC_CACHE_VAL
6706case "x$ac_cv_prog_cc_c89" in
6707  x)
6708    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6709$as_echo "none needed" >&6; } ;;
6710  xno)
6711    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6712$as_echo "unsupported" >&6; } ;;
6713  *)
6714    CC="$CC $ac_cv_prog_cc_c89"
6715    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6716$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6717esac
6718if test "x$ac_cv_prog_cc_c89" != xno; then :
6719
6720fi
6721
6722ac_ext=c
6723ac_cpp='$CPP $CPPFLAGS'
6724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6726ac_compiler_gnu=$ac_cv_c_compiler_gnu
6727
6728ac_ext=c
6729ac_cpp='$CPP $CPPFLAGS'
6730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6732ac_compiler_gnu=$ac_cv_c_compiler_gnu
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6734$as_echo_n "checking how to run the C preprocessor... " >&6; }
6735# On Suns, sometimes $CPP names a directory.
6736if test -n "$CPP" && test -d "$CPP"; then
6737  CPP=
6738fi
6739if test -z "$CPP"; then
6740  if ${ac_cv_prog_CPP+:} false; then :
6741  $as_echo_n "(cached) " >&6
6742else
6743      # Double quotes because CPP needs to be expanded
6744    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6745    do
6746      ac_preproc_ok=false
6747for ac_c_preproc_warn_flag in '' yes
6748do
6749  # Use a header file that comes with gcc, so configuring glibc
6750  # with a fresh cross-compiler works.
6751  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6752  # <limits.h> exists even on freestanding compilers.
6753  # On the NeXT, cc -E runs the code through the compiler's parser,
6754  # not just through cpp. "Syntax error" is here to catch this case.
6755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756/* end confdefs.h.  */
6757#ifdef __STDC__
6758# include <limits.h>
6759#else
6760# include <assert.h>
6761#endif
6762                     Syntax error
6763_ACEOF
6764if ac_fn_c_try_cpp "$LINENO"; then :
6765
6766else
6767  # Broken: fails on valid input.
6768continue
6769fi
6770rm -f conftest.err conftest.i conftest.$ac_ext
6771
6772  # OK, works on sane cases.  Now check whether nonexistent headers
6773  # can be detected and how.
6774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775/* end confdefs.h.  */
6776#include <ac_nonexistent.h>
6777_ACEOF
6778if ac_fn_c_try_cpp "$LINENO"; then :
6779  # Broken: success on invalid input.
6780continue
6781else
6782  # Passes both tests.
6783ac_preproc_ok=:
6784break
6785fi
6786rm -f conftest.err conftest.i conftest.$ac_ext
6787
6788done
6789# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6790rm -f conftest.i conftest.err conftest.$ac_ext
6791if $ac_preproc_ok; then :
6792  break
6793fi
6794
6795    done
6796    ac_cv_prog_CPP=$CPP
6797
6798fi
6799  CPP=$ac_cv_prog_CPP
6800else
6801  ac_cv_prog_CPP=$CPP
6802fi
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6804$as_echo "$CPP" >&6; }
6805ac_preproc_ok=false
6806for ac_c_preproc_warn_flag in '' yes
6807do
6808  # Use a header file that comes with gcc, so configuring glibc
6809  # with a fresh cross-compiler works.
6810  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6811  # <limits.h> exists even on freestanding compilers.
6812  # On the NeXT, cc -E runs the code through the compiler's parser,
6813  # not just through cpp. "Syntax error" is here to catch this case.
6814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815/* end confdefs.h.  */
6816#ifdef __STDC__
6817# include <limits.h>
6818#else
6819# include <assert.h>
6820#endif
6821                     Syntax error
6822_ACEOF
6823if ac_fn_c_try_cpp "$LINENO"; then :
6824
6825else
6826  # Broken: fails on valid input.
6827continue
6828fi
6829rm -f conftest.err conftest.i conftest.$ac_ext
6830
6831  # OK, works on sane cases.  Now check whether nonexistent headers
6832  # can be detected and how.
6833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834/* end confdefs.h.  */
6835#include <ac_nonexistent.h>
6836_ACEOF
6837if ac_fn_c_try_cpp "$LINENO"; then :
6838  # Broken: success on invalid input.
6839continue
6840else
6841  # Passes both tests.
6842ac_preproc_ok=:
6843break
6844fi
6845rm -f conftest.err conftest.i conftest.$ac_ext
6846
6847done
6848# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6849rm -f conftest.i conftest.err conftest.$ac_ext
6850if $ac_preproc_ok; then :
6851
6852else
6853  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6855as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6856See \`config.log' for more details" "$LINENO" 5; }
6857fi
6858
6859ac_ext=c
6860ac_cpp='$CPP $CPPFLAGS'
6861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863ac_compiler_gnu=$ac_cv_c_compiler_gnu
6864
6865ac_ext=cpp
6866ac_cpp='$CXXCPP $CPPFLAGS'
6867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6870if test -z "$CXX"; then
6871  if test -n "$CCC"; then
6872    CXX=$CCC
6873  else
6874    if test -n "$ac_tool_prefix"; then
6875  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6876  do
6877    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6878set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880$as_echo_n "checking for $ac_word... " >&6; }
6881if ${ac_cv_prog_CXX+:} false; then :
6882  $as_echo_n "(cached) " >&6
6883else
6884  if test -n "$CXX"; then
6885  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6886else
6887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888for as_dir in $PATH
6889do
6890  IFS=$as_save_IFS
6891  test -z "$as_dir" && as_dir=.
6892    for ac_exec_ext in '' $ac_executable_extensions; do
6893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896    break 2
6897  fi
6898done
6899  done
6900IFS=$as_save_IFS
6901
6902fi
6903fi
6904CXX=$ac_cv_prog_CXX
6905if test -n "$CXX"; then
6906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6907$as_echo "$CXX" >&6; }
6908else
6909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910$as_echo "no" >&6; }
6911fi
6912
6913
6914    test -n "$CXX" && break
6915  done
6916fi
6917if test -z "$CXX"; then
6918  ac_ct_CXX=$CXX
6919  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6920do
6921  # Extract the first word of "$ac_prog", so it can be a program name with args.
6922set dummy $ac_prog; ac_word=$2
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924$as_echo_n "checking for $ac_word... " >&6; }
6925if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6926  $as_echo_n "(cached) " >&6
6927else
6928  if test -n "$ac_ct_CXX"; then
6929  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6930else
6931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934  IFS=$as_save_IFS
6935  test -z "$as_dir" && as_dir=.
6936    for ac_exec_ext in '' $ac_executable_extensions; do
6937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6938    ac_cv_prog_ac_ct_CXX="$ac_prog"
6939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940    break 2
6941  fi
6942done
6943  done
6944IFS=$as_save_IFS
6945
6946fi
6947fi
6948ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6949if test -n "$ac_ct_CXX"; then
6950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6951$as_echo "$ac_ct_CXX" >&6; }
6952else
6953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954$as_echo "no" >&6; }
6955fi
6956
6957
6958  test -n "$ac_ct_CXX" && break
6959done
6960
6961  if test "x$ac_ct_CXX" = x; then
6962    CXX="g++"
6963  else
6964    case $cross_compiling:$ac_tool_warned in
6965yes:)
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6968ac_tool_warned=yes ;;
6969esac
6970    CXX=$ac_ct_CXX
6971  fi
6972fi
6973
6974  fi
6975fi
6976# Provide some information about the compiler.
6977$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6978set X $ac_compile
6979ac_compiler=$2
6980for ac_option in --version -v -V -qversion; do
6981  { { ac_try="$ac_compiler $ac_option >&5"
6982case "(($ac_try" in
6983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984  *) ac_try_echo=$ac_try;;
6985esac
6986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6987$as_echo "$ac_try_echo"; } >&5
6988  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6989  ac_status=$?
6990  if test -s conftest.err; then
6991    sed '10a\
6992... rest of stderr output deleted ...
6993         10q' conftest.err >conftest.er1
6994    cat conftest.er1 >&5
6995  fi
6996  rm -f conftest.er1 conftest.err
6997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6998  test $ac_status = 0; }
6999done
7000
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7002$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7003if ${ac_cv_cxx_compiler_gnu+:} false; then :
7004  $as_echo_n "(cached) " >&6
7005else
7006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007/* end confdefs.h.  */
7008
7009int
7010main ()
7011{
7012#ifndef __GNUC__
7013       choke me
7014#endif
7015
7016  ;
7017  return 0;
7018}
7019_ACEOF
7020if ac_fn_cxx_try_compile "$LINENO"; then :
7021  ac_compiler_gnu=yes
7022else
7023  ac_compiler_gnu=no
7024fi
7025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7026ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7027
7028fi
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7030$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7031if test $ac_compiler_gnu = yes; then
7032  GXX=yes
7033else
7034  GXX=
7035fi
7036ac_test_CXXFLAGS=${CXXFLAGS+set}
7037ac_save_CXXFLAGS=$CXXFLAGS
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7039$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7040if ${ac_cv_prog_cxx_g+:} false; then :
7041  $as_echo_n "(cached) " >&6
7042else
7043  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7044   ac_cxx_werror_flag=yes
7045   ac_cv_prog_cxx_g=no
7046   CXXFLAGS="-g"
7047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048/* end confdefs.h.  */
7049
7050int
7051main ()
7052{
7053
7054  ;
7055  return 0;
7056}
7057_ACEOF
7058if ac_fn_cxx_try_compile "$LINENO"; then :
7059  ac_cv_prog_cxx_g=yes
7060else
7061  CXXFLAGS=""
7062      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063/* end confdefs.h.  */
7064
7065int
7066main ()
7067{
7068
7069  ;
7070  return 0;
7071}
7072_ACEOF
7073if ac_fn_cxx_try_compile "$LINENO"; then :
7074
7075else
7076  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7077         CXXFLAGS="-g"
7078         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079/* end confdefs.h.  */
7080
7081int
7082main ()
7083{
7084
7085  ;
7086  return 0;
7087}
7088_ACEOF
7089if ac_fn_cxx_try_compile "$LINENO"; then :
7090  ac_cv_prog_cxx_g=yes
7091fi
7092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093fi
7094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095fi
7096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7098fi
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7100$as_echo "$ac_cv_prog_cxx_g" >&6; }
7101if test "$ac_test_CXXFLAGS" = set; then
7102  CXXFLAGS=$ac_save_CXXFLAGS
7103elif test $ac_cv_prog_cxx_g = yes; then
7104  if test "$GXX" = yes; then
7105    CXXFLAGS="-g -O2"
7106  else
7107    CXXFLAGS="-g"
7108  fi
7109else
7110  if test "$GXX" = yes; then
7111    CXXFLAGS="-O2"
7112  else
7113    CXXFLAGS=
7114  fi
7115fi
7116ac_ext=c
7117ac_cpp='$CPP $CPPFLAGS'
7118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7120ac_compiler_gnu=$ac_cv_c_compiler_gnu
7121
7122ac_ext=cpp
7123ac_cpp='$CXXCPP $CPPFLAGS'
7124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7128$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7129if test -z "$CXXCPP"; then
7130  if ${ac_cv_prog_CXXCPP+:} false; then :
7131  $as_echo_n "(cached) " >&6
7132else
7133      # Double quotes because CXXCPP needs to be expanded
7134    for CXXCPP in "$CXX -E" "/lib/cpp"
7135    do
7136      ac_preproc_ok=false
7137for ac_cxx_preproc_warn_flag in '' yes
7138do
7139  # Use a header file that comes with gcc, so configuring glibc
7140  # with a fresh cross-compiler works.
7141  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7142  # <limits.h> exists even on freestanding compilers.
7143  # On the NeXT, cc -E runs the code through the compiler's parser,
7144  # not just through cpp. "Syntax error" is here to catch this case.
7145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146/* end confdefs.h.  */
7147#ifdef __STDC__
7148# include <limits.h>
7149#else
7150# include <assert.h>
7151#endif
7152                     Syntax error
7153_ACEOF
7154if ac_fn_cxx_try_cpp "$LINENO"; then :
7155
7156else
7157  # Broken: fails on valid input.
7158continue
7159fi
7160rm -f conftest.err conftest.i conftest.$ac_ext
7161
7162  # OK, works on sane cases.  Now check whether nonexistent headers
7163  # can be detected and how.
7164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165/* end confdefs.h.  */
7166#include <ac_nonexistent.h>
7167_ACEOF
7168if ac_fn_cxx_try_cpp "$LINENO"; then :
7169  # Broken: success on invalid input.
7170continue
7171else
7172  # Passes both tests.
7173ac_preproc_ok=:
7174break
7175fi
7176rm -f conftest.err conftest.i conftest.$ac_ext
7177
7178done
7179# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7180rm -f conftest.i conftest.err conftest.$ac_ext
7181if $ac_preproc_ok; then :
7182  break
7183fi
7184
7185    done
7186    ac_cv_prog_CXXCPP=$CXXCPP
7187
7188fi
7189  CXXCPP=$ac_cv_prog_CXXCPP
7190else
7191  ac_cv_prog_CXXCPP=$CXXCPP
7192fi
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7194$as_echo "$CXXCPP" >&6; }
7195ac_preproc_ok=false
7196for ac_cxx_preproc_warn_flag in '' yes
7197do
7198  # Use a header file that comes with gcc, so configuring glibc
7199  # with a fresh cross-compiler works.
7200  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7201  # <limits.h> exists even on freestanding compilers.
7202  # On the NeXT, cc -E runs the code through the compiler's parser,
7203  # not just through cpp. "Syntax error" is here to catch this case.
7204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205/* end confdefs.h.  */
7206#ifdef __STDC__
7207# include <limits.h>
7208#else
7209# include <assert.h>
7210#endif
7211                     Syntax error
7212_ACEOF
7213if ac_fn_cxx_try_cpp "$LINENO"; then :
7214
7215else
7216  # Broken: fails on valid input.
7217continue
7218fi
7219rm -f conftest.err conftest.i conftest.$ac_ext
7220
7221  # OK, works on sane cases.  Now check whether nonexistent headers
7222  # can be detected and how.
7223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224/* end confdefs.h.  */
7225#include <ac_nonexistent.h>
7226_ACEOF
7227if ac_fn_cxx_try_cpp "$LINENO"; then :
7228  # Broken: success on invalid input.
7229continue
7230else
7231  # Passes both tests.
7232ac_preproc_ok=:
7233break
7234fi
7235rm -f conftest.err conftest.i conftest.$ac_ext
7236
7237done
7238# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7239rm -f conftest.i conftest.err conftest.$ac_ext
7240if $ac_preproc_ok; then :
7241
7242else
7243  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7245as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
7246See \`config.log' for more details" "$LINENO" 5; }
7247fi
7248
7249ac_ext=c
7250ac_cpp='$CPP $CPPFLAGS'
7251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7253ac_compiler_gnu=$ac_cv_c_compiler_gnu
7254
7255ac_ext=cpp
7256ac_cpp='$CXXCPP $CPPFLAGS'
7257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7260if test -z "$CXX"; then
7261  if test -n "$CCC"; then
7262    CXX=$CCC
7263  else
7264    if test -n "$ac_tool_prefix"; then
7265  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7266  do
7267    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7268set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270$as_echo_n "checking for $ac_word... " >&6; }
7271if ${ac_cv_prog_CXX+:} false; then :
7272  $as_echo_n "(cached) " >&6
7273else
7274  if test -n "$CXX"; then
7275  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7276else
7277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278for as_dir in $PATH
7279do
7280  IFS=$as_save_IFS
7281  test -z "$as_dir" && as_dir=.
7282    for ac_exec_ext in '' $ac_executable_extensions; do
7283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286    break 2
7287  fi
7288done
7289  done
7290IFS=$as_save_IFS
7291
7292fi
7293fi
7294CXX=$ac_cv_prog_CXX
7295if test -n "$CXX"; then
7296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7297$as_echo "$CXX" >&6; }
7298else
7299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300$as_echo "no" >&6; }
7301fi
7302
7303
7304    test -n "$CXX" && break
7305  done
7306fi
7307if test -z "$CXX"; then
7308  ac_ct_CXX=$CXX
7309  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7310do
7311  # Extract the first word of "$ac_prog", so it can be a program name with args.
7312set dummy $ac_prog; ac_word=$2
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314$as_echo_n "checking for $ac_word... " >&6; }
7315if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7316  $as_echo_n "(cached) " >&6
7317else
7318  if test -n "$ac_ct_CXX"; then
7319  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7320else
7321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322for as_dir in $PATH
7323do
7324  IFS=$as_save_IFS
7325  test -z "$as_dir" && as_dir=.
7326    for ac_exec_ext in '' $ac_executable_extensions; do
7327  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328    ac_cv_prog_ac_ct_CXX="$ac_prog"
7329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330    break 2
7331  fi
7332done
7333  done
7334IFS=$as_save_IFS
7335
7336fi
7337fi
7338ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7339if test -n "$ac_ct_CXX"; then
7340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7341$as_echo "$ac_ct_CXX" >&6; }
7342else
7343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344$as_echo "no" >&6; }
7345fi
7346
7347
7348  test -n "$ac_ct_CXX" && break
7349done
7350
7351  if test "x$ac_ct_CXX" = x; then
7352    CXX="g++"
7353  else
7354    case $cross_compiling:$ac_tool_warned in
7355yes:)
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7358ac_tool_warned=yes ;;
7359esac
7360    CXX=$ac_ct_CXX
7361  fi
7362fi
7363
7364  fi
7365fi
7366# Provide some information about the compiler.
7367$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7368set X $ac_compile
7369ac_compiler=$2
7370for ac_option in --version -v -V -qversion; do
7371  { { ac_try="$ac_compiler $ac_option >&5"
7372case "(($ac_try" in
7373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374  *) ac_try_echo=$ac_try;;
7375esac
7376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7377$as_echo "$ac_try_echo"; } >&5
7378  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7379  ac_status=$?
7380  if test -s conftest.err; then
7381    sed '10a\
7382... rest of stderr output deleted ...
7383         10q' conftest.err >conftest.er1
7384    cat conftest.er1 >&5
7385  fi
7386  rm -f conftest.er1 conftest.err
7387  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7388  test $ac_status = 0; }
7389done
7390
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7392$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7393if ${ac_cv_cxx_compiler_gnu+:} false; then :
7394  $as_echo_n "(cached) " >&6
7395else
7396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397/* end confdefs.h.  */
7398
7399int
7400main ()
7401{
7402#ifndef __GNUC__
7403       choke me
7404#endif
7405
7406  ;
7407  return 0;
7408}
7409_ACEOF
7410if ac_fn_cxx_try_compile "$LINENO"; then :
7411  ac_compiler_gnu=yes
7412else
7413  ac_compiler_gnu=no
7414fi
7415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7416ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7417
7418fi
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7420$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7421if test $ac_compiler_gnu = yes; then
7422  GXX=yes
7423else
7424  GXX=
7425fi
7426ac_test_CXXFLAGS=${CXXFLAGS+set}
7427ac_save_CXXFLAGS=$CXXFLAGS
7428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7429$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7430if ${ac_cv_prog_cxx_g+:} false; then :
7431  $as_echo_n "(cached) " >&6
7432else
7433  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7434   ac_cxx_werror_flag=yes
7435   ac_cv_prog_cxx_g=no
7436   CXXFLAGS="-g"
7437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438/* end confdefs.h.  */
7439
7440int
7441main ()
7442{
7443
7444  ;
7445  return 0;
7446}
7447_ACEOF
7448if ac_fn_cxx_try_compile "$LINENO"; then :
7449  ac_cv_prog_cxx_g=yes
7450else
7451  CXXFLAGS=""
7452      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453/* end confdefs.h.  */
7454
7455int
7456main ()
7457{
7458
7459  ;
7460  return 0;
7461}
7462_ACEOF
7463if ac_fn_cxx_try_compile "$LINENO"; then :
7464
7465else
7466  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7467         CXXFLAGS="-g"
7468         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469/* end confdefs.h.  */
7470
7471int
7472main ()
7473{
7474
7475  ;
7476  return 0;
7477}
7478_ACEOF
7479if ac_fn_cxx_try_compile "$LINENO"; then :
7480  ac_cv_prog_cxx_g=yes
7481fi
7482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483fi
7484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485fi
7486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7488fi
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7490$as_echo "$ac_cv_prog_cxx_g" >&6; }
7491if test "$ac_test_CXXFLAGS" = set; then
7492  CXXFLAGS=$ac_save_CXXFLAGS
7493elif test $ac_cv_prog_cxx_g = yes; then
7494  if test "$GXX" = yes; then
7495    CXXFLAGS="-g -O2"
7496  else
7497    CXXFLAGS="-g"
7498  fi
7499else
7500  if test "$GXX" = yes; then
7501    CXXFLAGS="-O2"
7502  else
7503    CXXFLAGS=
7504  fi
7505fi
7506ac_ext=c
7507ac_cpp='$CPP $CPPFLAGS'
7508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7510ac_compiler_gnu=$ac_cv_c_compiler_gnu
7511
7512ac_ext=cpp
7513ac_cpp='$CXXCPP $CPPFLAGS'
7514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7517
7518
7519
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7521$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7522if ${ac_cv_c_bigendian+:} false; then :
7523  $as_echo_n "(cached) " >&6
7524else
7525  ac_cv_c_bigendian=unknown
7526    # See if we're dealing with a universal compiler.
7527    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528/* end confdefs.h.  */
7529#ifndef __APPLE_CC__
7530               not a universal capable compiler
7531             #endif
7532             typedef int dummy;
7533
7534_ACEOF
7535if ac_fn_cxx_try_compile "$LINENO"; then :
7536
7537        # Check for potential -arch flags.  It is not universal unless
7538        # there are at least two -arch flags with different values.
7539        ac_arch=
7540        ac_prev=
7541        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7542         if test -n "$ac_prev"; then
7543           case $ac_word in
7544             i?86 | x86_64 | ppc | ppc64)
7545               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7546                 ac_arch=$ac_word
7547               else
7548                 ac_cv_c_bigendian=universal
7549                 break
7550               fi
7551               ;;
7552           esac
7553           ac_prev=
7554         elif test "x$ac_word" = "x-arch"; then
7555           ac_prev=arch
7556         fi
7557       done
7558fi
7559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560    if test $ac_cv_c_bigendian = unknown; then
7561      # See if sys/param.h defines the BYTE_ORDER macro.
7562      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563/* end confdefs.h.  */
7564#include <sys/types.h>
7565             #include <sys/param.h>
7566
7567int
7568main ()
7569{
7570#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7571                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7572                     && LITTLE_ENDIAN)
7573              bogus endian macros
7574             #endif
7575
7576  ;
7577  return 0;
7578}
7579_ACEOF
7580if ac_fn_cxx_try_compile "$LINENO"; then :
7581  # It does; now see whether it defined to BIG_ENDIAN or not.
7582         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583/* end confdefs.h.  */
7584#include <sys/types.h>
7585                #include <sys/param.h>
7586
7587int
7588main ()
7589{
7590#if BYTE_ORDER != BIG_ENDIAN
7591                 not big endian
7592                #endif
7593
7594  ;
7595  return 0;
7596}
7597_ACEOF
7598if ac_fn_cxx_try_compile "$LINENO"; then :
7599  ac_cv_c_bigendian=yes
7600else
7601  ac_cv_c_bigendian=no
7602fi
7603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604fi
7605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606    fi
7607    if test $ac_cv_c_bigendian = unknown; then
7608      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7609      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610/* end confdefs.h.  */
7611#include <limits.h>
7612
7613int
7614main ()
7615{
7616#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7617              bogus endian macros
7618             #endif
7619
7620  ;
7621  return 0;
7622}
7623_ACEOF
7624if ac_fn_cxx_try_compile "$LINENO"; then :
7625  # It does; now see whether it defined to _BIG_ENDIAN or not.
7626         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627/* end confdefs.h.  */
7628#include <limits.h>
7629
7630int
7631main ()
7632{
7633#ifndef _BIG_ENDIAN
7634                 not big endian
7635                #endif
7636
7637  ;
7638  return 0;
7639}
7640_ACEOF
7641if ac_fn_cxx_try_compile "$LINENO"; then :
7642  ac_cv_c_bigendian=yes
7643else
7644  ac_cv_c_bigendian=no
7645fi
7646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7647fi
7648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649    fi
7650    if test $ac_cv_c_bigendian = unknown; then
7651      # Compile a test program.
7652      if test "$cross_compiling" = yes; then :
7653  # Try to guess by grepping values from an object file.
7654         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655/* end confdefs.h.  */
7656short int ascii_mm[] =
7657                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7658                short int ascii_ii[] =
7659                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7660                int use_ascii (int i) {
7661                  return ascii_mm[i] + ascii_ii[i];
7662                }
7663                short int ebcdic_ii[] =
7664                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7665                short int ebcdic_mm[] =
7666                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7667                int use_ebcdic (int i) {
7668                  return ebcdic_mm[i] + ebcdic_ii[i];
7669                }
7670                extern int foo;
7671
7672int
7673main ()
7674{
7675return use_ascii (foo) == use_ebcdic (foo);
7676  ;
7677  return 0;
7678}
7679_ACEOF
7680if ac_fn_cxx_try_compile "$LINENO"; then :
7681  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7682              ac_cv_c_bigendian=yes
7683            fi
7684            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7685              if test "$ac_cv_c_bigendian" = unknown; then
7686                ac_cv_c_bigendian=no
7687              else
7688                # finding both strings is unlikely to happen, but who knows?
7689                ac_cv_c_bigendian=unknown
7690              fi
7691            fi
7692fi
7693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694else
7695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696/* end confdefs.h.  */
7697$ac_includes_default
7698int
7699main ()
7700{
7701
7702             /* Are we little or big endian?  From Harbison&Steele.  */
7703             union
7704             {
7705               long int l;
7706               char c[sizeof (long int)];
7707             } u;
7708             u.l = 1;
7709             return u.c[sizeof (long int) - 1] == 1;
7710
7711  ;
7712  return 0;
7713}
7714_ACEOF
7715if ac_fn_cxx_try_run "$LINENO"; then :
7716  ac_cv_c_bigendian=no
7717else
7718  ac_cv_c_bigendian=yes
7719fi
7720rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7721  conftest.$ac_objext conftest.beam conftest.$ac_ext
7722fi
7723
7724    fi
7725fi
7726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7727$as_echo "$ac_cv_c_bigendian" >&6; }
7728 case $ac_cv_c_bigendian in #(
7729   yes)
7730     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7731;; #(
7732   no)
7733      ;; #(
7734   universal)
7735
7736$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7737
7738     ;; #(
7739   *)
7740     as_fn_error $? "unknown endianness
7741 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7742 esac
7743
7744
7745# Save the values as shell variables so that we can substitute them
7746# into bltHash.h for situtations where there's no bltInt.h.
7747
7748LD_RPATH="";
7749
7750#
7751# Need to check for the following dependencies:
7752#       Rappture headers and library (done)
7753#       Tcl headers and library (done)
7754#       GL headers and library
7755#       GLuT headers and library
7756#       GLEW header and library
7757#       Cg headers and library
7758#       CgGL headers and library
7759#       pthread library
7760#
7761
7762TCL_VERSION="8.4"
7763for dir in \
7764 ${exec_prefix} \
7765 ${exec_prefix}/lib ; do
7766  tclconfig="${dir}/tclConfig.sh"
7767  if test -f "$tclconfig" ; then
7768    . $tclconfig
7769    break
7770  fi
7771done
7772TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
7773
7774if test "x$with_tcllib" != "x" ; then
7775   tclconfig="${with_tcllib}/tclConfig.sh"
7776   if test -f "$tclconfig" ; then
7777    . $tclconfig
7778   fi
7779   TCL_LIB_SPEC="-L${with_tcllib} -ltcl${TCL_VERSION}"
7780fi
7781if test "x$with_tclinclude" != "x" ; then
7782   TCL_INC_SPEC="-I${with_tclinclude}"
7783fi
7784
7785
7786ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glew.h" "ac_cv_header_GL_glew_h" "$ac_includes_default"
7787if test "x$ac_cv_header_GL_glew_h" = xyes; then :
7788
7789fi
7790
7791
7792
7793for ac_header in stdio.h unistd.h stdlib.h string.h sys/types.h
7794do :
7795  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7796ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7797if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7798  cat >>confdefs.h <<_ACEOF
7799#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7800_ACEOF
7801
7802fi
7803
7804done
7805
7806for ac_header in sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h
7807do :
7808  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7809ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7810if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7811  cat >>confdefs.h <<_ACEOF
7812#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7813_ACEOF
7814
7815fi
7816
7817done
7818
7819
7820for ac_func in accept4
7821do :
7822  ac_fn_cxx_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
7823if test "x$ac_cv_func_accept4" = xyes; then :
7824  cat >>confdefs.h <<_ACEOF
7825#define HAVE_ACCEPT4 1
7826_ACEOF
7827
7828fi
7829done
7830
7831
7832SUBDIRS="nanoscale pymolproxy"
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanoscale/renderservers.tcl pymolproxy/Makefile start_nanoscale.sh"
7843
7844cat >confcache <<\_ACEOF
7845# This file is a shell script that caches the results of configure
7846# tests run on this system so they can be shared between configure
7847# scripts and configure runs, see configure's option --config-cache.
7848# It is not useful on other systems.  If it contains results you don't
7849# want to keep, you may remove or edit it.
7850#
7851# config.status only pays attention to the cache file if you give it
7852# the --recheck option to rerun configure.
7853#
7854# `ac_cv_env_foo' variables (set or unset) will be overridden when
7855# loading this file, other *unset* `ac_cv_foo' will be assigned the
7856# following values.
7857
7858_ACEOF
7859
7860# The following way of writing the cache mishandles newlines in values,
7861# but we know of no workaround that is simple, portable, and efficient.
7862# So, we kill variables containing newlines.
7863# Ultrix sh set writes to stderr and can't be redirected directly,
7864# and sets the high bit in the cache file unless we assign to the vars.
7865(
7866  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7867    eval ac_val=\$$ac_var
7868    case $ac_val in #(
7869    *${as_nl}*)
7870      case $ac_var in #(
7871      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7872$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7873      esac
7874      case $ac_var in #(
7875      _ | IFS | as_nl) ;; #(
7876      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7877      *) { eval $ac_var=; unset $ac_var;} ;;
7878      esac ;;
7879    esac
7880  done
7881
7882  (set) 2>&1 |
7883    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7884    *${as_nl}ac_space=\ *)
7885      # `set' does not quote correctly, so add quotes: double-quote
7886      # substitution turns \\\\ into \\, and sed turns \\ into \.
7887      sed -n \
7888        "s/'/'\\\\''/g;
7889          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7890      ;; #(
7891    *)
7892      # `set' quotes correctly as required by POSIX, so do not add quotes.
7893      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7894      ;;
7895    esac |
7896    sort
7897) |
7898  sed '
7899     /^ac_cv_env_/b end
7900     t clear
7901     :clear
7902     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7903     t end
7904     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7905     :end' >>confcache
7906if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7907  if test -w "$cache_file"; then
7908    if test "x$cache_file" != "x/dev/null"; then
7909      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7910$as_echo "$as_me: updating cache $cache_file" >&6;}
7911      if test ! -f "$cache_file" || test -h "$cache_file"; then
7912        cat confcache >"$cache_file"
7913      else
7914        case $cache_file in #(
7915        */* | ?:*)
7916          mv -f confcache "$cache_file"$$ &&
7917          mv -f "$cache_file"$$ "$cache_file" ;; #(
7918        *)
7919          mv -f confcache "$cache_file" ;;
7920        esac
7921      fi
7922    fi
7923  else
7924    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7925$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7926  fi
7927fi
7928rm -f confcache
7929
7930test "x$prefix" = xNONE && prefix=$ac_default_prefix
7931# Let make expand exec_prefix.
7932test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7933
7934DEFS=-DHAVE_CONFIG_H
7935
7936ac_libobjs=
7937ac_ltlibobjs=
7938U=
7939for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7940  # 1. Remove the extension, and $U if already installed.
7941  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7942  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7943  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7944  #    will be set to the directory where LIBOBJS objects are built.
7945  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7946  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7947done
7948LIBOBJS=$ac_libobjs
7949
7950LTLIBOBJS=$ac_ltlibobjs
7951
7952
7953
7954
7955: "${CONFIG_STATUS=./config.status}"
7956ac_write_fail=0
7957ac_clean_files_save=$ac_clean_files
7958ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7960$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7961as_write_fail=0
7962cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7963#! $SHELL
7964# Generated by $as_me.
7965# Run this file to recreate the current configuration.
7966# Compiler output produced by configure, useful for debugging
7967# configure, is in config.log if it exists.
7968
7969debug=false
7970ac_cs_recheck=false
7971ac_cs_silent=false
7972
7973SHELL=\${CONFIG_SHELL-$SHELL}
7974export SHELL
7975_ASEOF
7976cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7977## -------------------- ##
7978## M4sh Initialization. ##
7979## -------------------- ##
7980
7981# Be more Bourne compatible
7982DUALCASE=1; export DUALCASE # for MKS sh
7983if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7984  emulate sh
7985  NULLCMD=:
7986  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7987  # is contrary to our usage.  Disable this feature.
7988  alias -g '${1+"$@"}'='"$@"'
7989  setopt NO_GLOB_SUBST
7990else
7991  case `(set -o) 2>/dev/null` in #(
7992  *posix*) :
7993    set -o posix ;; #(
7994  *) :
7995     ;;
7996esac
7997fi
7998
7999
8000as_nl='
8001'
8002export as_nl
8003# Printing a long string crashes Solaris 7 /usr/bin/printf.
8004as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8005as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8006as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8007# Prefer a ksh shell builtin over an external printf program on Solaris,
8008# but without wasting forks for bash or zsh.
8009if test -z "$BASH_VERSION$ZSH_VERSION" \
8010    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8011  as_echo='print -r --'
8012  as_echo_n='print -rn --'
8013elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8014  as_echo='printf %s\n'
8015  as_echo_n='printf %s'
8016else
8017  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8018    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8019    as_echo_n='/usr/ucb/echo -n'
8020  else
8021    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8022    as_echo_n_body='eval
8023      arg=$1;
8024      case $arg in #(
8025      *"$as_nl"*)
8026        expr "X$arg" : "X\\(.*\\)$as_nl";
8027        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8028      esac;
8029      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8030    '
8031    export as_echo_n_body
8032    as_echo_n='sh -c $as_echo_n_body as_echo'
8033  fi
8034  export as_echo_body
8035  as_echo='sh -c $as_echo_body as_echo'
8036fi
8037
8038# The user is always right.
8039if test "${PATH_SEPARATOR+set}" != set; then
8040  PATH_SEPARATOR=:
8041  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8042    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8043      PATH_SEPARATOR=';'
8044  }
8045fi
8046
8047
8048# IFS
8049# We need space, tab and new line, in precisely that order.  Quoting is
8050# there to prevent editors from complaining about space-tab.
8051# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8052# splitting by setting IFS to empty value.)
8053IFS=" ""        $as_nl"
8054
8055# Find who we are.  Look in the path if we contain no directory separator.
8056as_myself=
8057case $0 in #((
8058  *[\\/]* ) as_myself=$0 ;;
8059  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060for as_dir in $PATH
8061do
8062  IFS=$as_save_IFS
8063  test -z "$as_dir" && as_dir=.
8064    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8065  done
8066IFS=$as_save_IFS
8067
8068     ;;
8069esac
8070# We did not find ourselves, most probably we were run as `sh COMMAND'
8071# in which case we are not to be found in the path.
8072if test "x$as_myself" = x; then
8073  as_myself=$0
8074fi
8075if test ! -f "$as_myself"; then
8076  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8077  exit 1
8078fi
8079
8080# Unset variables that we do not need and which cause bugs (e.g. in
8081# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8082# suppresses any "Segmentation fault" message there.  '((' could
8083# trigger a bug in pdksh 5.2.14.
8084for as_var in BASH_ENV ENV MAIL MAILPATH
8085do eval test x\${$as_var+set} = xset \
8086  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8087done
8088PS1='$ '
8089PS2='> '
8090PS4='+ '
8091
8092# NLS nuisances.
8093LC_ALL=C
8094export LC_ALL
8095LANGUAGE=C
8096export LANGUAGE
8097
8098# CDPATH.
8099(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8100
8101
8102# as_fn_error STATUS ERROR [LINENO LOG_FD]
8103# ----------------------------------------
8104# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8105# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8106# script with STATUS, using 1 if that was 0.
8107as_fn_error ()
8108{
8109  as_status=$1; test $as_status -eq 0 && as_status=1
8110  if test "$4"; then
8111    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8112    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8113  fi
8114  $as_echo "$as_me: error: $2" >&2
8115  as_fn_exit $as_status
8116} # as_fn_error
8117
8118
8119# as_fn_set_status STATUS
8120# -----------------------
8121# Set $? to STATUS, without forking.
8122as_fn_set_status ()
8123{
8124  return $1
8125} # as_fn_set_status
8126
8127# as_fn_exit STATUS
8128# -----------------
8129# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8130as_fn_exit ()
8131{
8132  set +e
8133  as_fn_set_status $1
8134  exit $1
8135} # as_fn_exit
8136
8137# as_fn_unset VAR
8138# ---------------
8139# Portably unset VAR.
8140as_fn_unset ()
8141{
8142  { eval $1=; unset $1;}
8143}
8144as_unset=as_fn_unset
8145# as_fn_append VAR VALUE
8146# ----------------------
8147# Append the text in VALUE to the end of the definition contained in VAR. Take
8148# advantage of any shell optimizations that allow amortized linear growth over
8149# repeated appends, instead of the typical quadratic growth present in naive
8150# implementations.
8151if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8152  eval 'as_fn_append ()
8153  {
8154    eval $1+=\$2
8155  }'
8156else
8157  as_fn_append ()
8158  {
8159    eval $1=\$$1\$2
8160  }
8161fi # as_fn_append
8162
8163# as_fn_arith ARG...
8164# ------------------
8165# Perform arithmetic evaluation on the ARGs, and store the result in the
8166# global $as_val. Take advantage of shells that can avoid forks. The arguments
8167# must be portable across $(()) and expr.
8168if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8169  eval 'as_fn_arith ()
8170  {
8171    as_val=$(( $* ))
8172  }'
8173else
8174  as_fn_arith ()
8175  {
8176    as_val=`expr "$@" || test $? -eq 1`
8177  }
8178fi # as_fn_arith
8179
8180
8181if expr a : '\(a\)' >/dev/null 2>&1 &&
8182   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8183  as_expr=expr
8184else
8185  as_expr=false
8186fi
8187
8188if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8189  as_basename=basename
8190else
8191  as_basename=false
8192fi
8193
8194if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8195  as_dirname=dirname
8196else
8197  as_dirname=false
8198fi
8199
8200as_me=`$as_basename -- "$0" ||
8201$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8202         X"$0" : 'X\(//\)$' \| \
8203         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8204$as_echo X/"$0" |
8205    sed '/^.*\/\([^/][^/]*\)\/*$/{
8206            s//\1/
8207            q
8208          }
8209          /^X\/\(\/\/\)$/{
8210            s//\1/
8211            q
8212          }
8213          /^X\/\(\/\).*/{
8214            s//\1/
8215            q
8216          }
8217          s/.*/./; q'`
8218
8219# Avoid depending upon Character Ranges.
8220as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8221as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8222as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8223as_cr_digits='0123456789'
8224as_cr_alnum=$as_cr_Letters$as_cr_digits
8225
8226ECHO_C= ECHO_N= ECHO_T=
8227case `echo -n x` in #(((((
8228-n*)
8229  case `echo 'xy\c'` in
8230  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
8231  xy)  ECHO_C='\c';;
8232  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8233       ECHO_T=' ';;
8234  esac;;
8235*)
8236  ECHO_N='-n';;
8237esac
8238
8239rm -f conf$$ conf$$.exe conf$$.file
8240if test -d conf$$.dir; then
8241  rm -f conf$$.dir/conf$$.file
8242else
8243  rm -f conf$$.dir
8244  mkdir conf$$.dir 2>/dev/null
8245fi
8246if (echo >conf$$.file) 2>/dev/null; then
8247  if ln -s conf$$.file conf$$ 2>/dev/null; then
8248    as_ln_s='ln -s'
8249    # ... but there are two gotchas:
8250    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8251    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8252    # In both cases, we have to default to `cp -pR'.
8253    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8254      as_ln_s='cp -pR'
8255  elif ln conf$$.file conf$$ 2>/dev/null; then
8256    as_ln_s=ln
8257  else
8258    as_ln_s='cp -pR'
8259  fi
8260else
8261  as_ln_s='cp -pR'
8262fi
8263rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8264rmdir conf$$.dir 2>/dev/null
8265
8266
8267# as_fn_mkdir_p
8268# -------------
8269# Create "$as_dir" as a directory, including parents if necessary.
8270as_fn_mkdir_p ()
8271{
8272
8273  case $as_dir in #(
8274  -*) as_dir=./$as_dir;;
8275  esac
8276  test -d "$as_dir" || eval $as_mkdir_p || {
8277    as_dirs=
8278    while :; do
8279      case $as_dir in #(
8280      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8281      *) as_qdir=$as_dir;;
8282      esac
8283      as_dirs="'$as_qdir' $as_dirs"
8284      as_dir=`$as_dirname -- "$as_dir" ||
8285$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8286         X"$as_dir" : 'X\(//\)[^/]' \| \
8287         X"$as_dir" : 'X\(//\)$' \| \
8288         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8289$as_echo X"$as_dir" |
8290    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8291            s//\1/
8292            q
8293          }
8294          /^X\(\/\/\)[^/].*/{
8295            s//\1/
8296            q
8297          }
8298          /^X\(\/\/\)$/{
8299            s//\1/
8300            q
8301          }
8302          /^X\(\/\).*/{
8303            s//\1/
8304            q
8305          }
8306          s/.*/./; q'`
8307      test -d "$as_dir" && break
8308    done
8309    test -z "$as_dirs" || eval "mkdir $as_dirs"
8310  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8311
8312
8313} # as_fn_mkdir_p
8314if mkdir -p . 2>/dev/null; then
8315  as_mkdir_p='mkdir -p "$as_dir"'
8316else
8317  test -d ./-p && rmdir ./-p
8318  as_mkdir_p=false
8319fi
8320
8321
8322# as_fn_executable_p FILE
8323# -----------------------
8324# Test if FILE is an executable regular file.
8325as_fn_executable_p ()
8326{
8327  test -f "$1" && test -x "$1"
8328} # as_fn_executable_p
8329as_test_x='test -x'
8330as_executable_p=as_fn_executable_p
8331
8332# Sed expression to map a string onto a valid CPP name.
8333as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8334
8335# Sed expression to map a string onto a valid variable name.
8336as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8337
8338
8339exec 6>&1
8340## ----------------------------------- ##
8341## Main body of $CONFIG_STATUS script. ##
8342## ----------------------------------- ##
8343_ASEOF
8344test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8345
8346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8347# Save the log message, to keep $0 and so on meaningful, and to
8348# report actual input values of CONFIG_FILES etc. instead of their
8349# values after options handling.
8350ac_log="
8351This file was extended by vizservers $as_me 0.1, which was
8352generated by GNU Autoconf 2.69.  Invocation command line was
8353
8354  CONFIG_FILES    = $CONFIG_FILES
8355  CONFIG_HEADERS  = $CONFIG_HEADERS
8356  CONFIG_LINKS    = $CONFIG_LINKS
8357  CONFIG_COMMANDS = $CONFIG_COMMANDS
8358  $ $0 $@
8359
8360on `(hostname || uname -n) 2>/dev/null | sed 1q`
8361"
8362
8363_ACEOF
8364
8365case $ac_config_files in *"
8366"*) set x $ac_config_files; shift; ac_config_files=$*;;
8367esac
8368
8369case $ac_config_headers in *"
8370"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8371esac
8372
8373
8374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8375# Files that config.status was made for.
8376config_files="$ac_config_files"
8377config_headers="$ac_config_headers"
8378
8379_ACEOF
8380
8381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8382ac_cs_usage="\
8383\`$as_me' instantiates files and other configuration actions
8384from templates according to the current configuration.  Unless the files
8385and actions are specified as TAGs, all are instantiated by default.
8386
8387Usage: $0 [OPTION]... [TAG]...
8388
8389  -h, --help       print this help, then exit
8390  -V, --version    print version number and configuration settings, then exit
8391      --config     print configuration, then exit
8392  -q, --quiet, --silent
8393                   do not print progress messages
8394  -d, --debug      don't remove temporary files
8395      --recheck    update $as_me by reconfiguring in the same conditions
8396      --file=FILE[:TEMPLATE]
8397                   instantiate the configuration file FILE
8398      --header=FILE[:TEMPLATE]
8399                   instantiate the configuration header FILE
8400
8401Configuration files:
8402$config_files
8403
8404Configuration headers:
8405$config_headers
8406
8407Report bugs to <rappture@nanohub.org>."
8408
8409_ACEOF
8410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8411ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8412ac_cs_version="\\
8413vizservers config.status 0.1
8414configured by $0, generated by GNU Autoconf 2.69,
8415  with options \\"\$ac_cs_config\\"
8416
8417Copyright (C) 2012 Free Software Foundation, Inc.
8418This config.status script is free software; the Free Software Foundation
8419gives unlimited permission to copy, distribute and modify it."
8420
8421ac_pwd='$ac_pwd'
8422srcdir='$srcdir'
8423INSTALL='$INSTALL'
8424MKDIR_P='$MKDIR_P'
8425test -n "\$AWK" || AWK=awk
8426_ACEOF
8427
8428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8429# The default lists apply if the user does not specify any file.
8430ac_need_defaults=:
8431while test $# != 0
8432do
8433  case $1 in
8434  --*=?*)
8435    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8436    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8437    ac_shift=:
8438    ;;
8439  --*=)
8440    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8441    ac_optarg=
8442    ac_shift=:
8443    ;;
8444  *)
8445    ac_option=$1
8446    ac_optarg=$2
8447    ac_shift=shift
8448    ;;
8449  esac
8450
8451  case $ac_option in
8452  # Handling of the options.
8453  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8454    ac_cs_recheck=: ;;
8455  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8456    $as_echo "$ac_cs_version"; exit ;;
8457  --config | --confi | --conf | --con | --co | --c )
8458    $as_echo "$ac_cs_config"; exit ;;
8459  --debug | --debu | --deb | --de | --d | -d )
8460    debug=: ;;
8461  --file | --fil | --fi | --f )
8462    $ac_shift
8463    case $ac_optarg in
8464    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8465    '') as_fn_error $? "missing file argument" ;;
8466    esac
8467    as_fn_append CONFIG_FILES " '$ac_optarg'"
8468    ac_need_defaults=false;;
8469  --header | --heade | --head | --hea )
8470    $ac_shift
8471    case $ac_optarg in
8472    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8473    esac
8474    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8475    ac_need_defaults=false;;
8476  --he | --h)
8477    # Conflict between --help and --header
8478    as_fn_error $? "ambiguous option: \`$1'
8479Try \`$0 --help' for more information.";;
8480  --help | --hel | -h )
8481    $as_echo "$ac_cs_usage"; exit ;;
8482  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8483  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8484    ac_cs_silent=: ;;
8485
8486  # This is an error.
8487  -*) as_fn_error $? "unrecognized option: \`$1'
8488Try \`$0 --help' for more information." ;;
8489
8490  *) as_fn_append ac_config_targets " $1"
8491     ac_need_defaults=false ;;
8492
8493  esac
8494  shift
8495done
8496
8497ac_configure_extra_args=
8498
8499if $ac_cs_silent; then
8500  exec 6>/dev/null
8501  ac_configure_extra_args="$ac_configure_extra_args --silent"
8502fi
8503
8504_ACEOF
8505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8506if \$ac_cs_recheck; then
8507  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8508  shift
8509  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8510  CONFIG_SHELL='$SHELL'
8511  export CONFIG_SHELL
8512  exec "\$@"
8513fi
8514
8515_ACEOF
8516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8517exec 5>>config.log
8518{
8519  echo
8520  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8521## Running $as_me. ##
8522_ASBOX
8523  $as_echo "$ac_log"
8524} >&5
8525
8526_ACEOF
8527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8528_ACEOF
8529
8530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8531
8532# Handling of arguments.
8533for ac_config_target in $ac_config_targets
8534do
8535  case $ac_config_target in
8536    "nanoscale/config.h") CONFIG_HEADERS="$CONFIG_HEADERS nanoscale/config.h" ;;
8537    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8538    "nanoscale/Makefile") CONFIG_FILES="$CONFIG_FILES nanoscale/Makefile" ;;
8539    "nanoscale/renderservers.tcl") CONFIG_FILES="$CONFIG_FILES nanoscale/renderservers.tcl" ;;
8540    "pymolproxy/Makefile") CONFIG_FILES="$CONFIG_FILES pymolproxy/Makefile" ;;
8541    "start_nanoscale.sh") CONFIG_FILES="$CONFIG_FILES start_nanoscale.sh" ;;
8542
8543  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8544  esac
8545done
8546
8547
8548# If the user did not use the arguments to specify the items to instantiate,
8549# then the envvar interface is used.  Set only those that are not.
8550# We use the long form for the default assignment because of an extremely
8551# bizarre bug on SunOS 4.1.3.
8552if $ac_need_defaults; then
8553  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8554  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8555fi
8556
8557# Have a temporary directory for convenience.  Make it in the build tree
8558# simply because there is no reason against having it here, and in addition,
8559# creating and moving files from /tmp can sometimes cause problems.
8560# Hook for its removal unless debugging.
8561# Note that there is a small window in which the directory will not be cleaned:
8562# after its creation but before its name has been assigned to `$tmp'.
8563$debug ||
8564{
8565  tmp= ac_tmp=
8566  trap 'exit_status=$?
8567  : "${ac_tmp:=$tmp}"
8568  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8569' 0
8570  trap 'as_fn_exit 1' 1 2 13 15
8571}
8572# Create a (secure) tmp directory for tmp files.
8573
8574{
8575  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8576  test -d "$tmp"
8577}  ||
8578{
8579  tmp=./conf$$-$RANDOM
8580  (umask 077 && mkdir "$tmp")
8581} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8582ac_tmp=$tmp
8583
8584# Set up the scripts for CONFIG_FILES section.
8585# No need to generate them if there are no CONFIG_FILES.
8586# This happens for instance with `./config.status config.h'.
8587if test -n "$CONFIG_FILES"; then
8588
8589
8590ac_cr=`echo X | tr X '\015'`
8591# On cygwin, bash can eat \r inside `` if the user requested igncr.
8592# But we know of no other shell where ac_cr would be empty at this
8593# point, so we can use a bashism as a fallback.
8594if test "x$ac_cr" = x; then
8595  eval ac_cr=\$\'\\r\'
8596fi
8597ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8598if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8599  ac_cs_awk_cr='\\r'
8600else
8601  ac_cs_awk_cr=$ac_cr
8602fi
8603
8604echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8605_ACEOF
8606
8607
8608{
8609  echo "cat >conf$$subs.awk <<_ACEOF" &&
8610  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8611  echo "_ACEOF"
8612} >conf$$subs.sh ||
8613  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8614ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8615ac_delim='%!_!# '
8616for ac_last_try in false false false false false :; do
8617  . ./conf$$subs.sh ||
8618    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8619
8620  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8621  if test $ac_delim_n = $ac_delim_num; then
8622    break
8623  elif $ac_last_try; then
8624    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8625  else
8626    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8627  fi
8628done
8629rm -f conf$$subs.sh
8630
8631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8632cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8633_ACEOF
8634sed -n '
8635h
8636s/^/S["/; s/!.*/"]=/
8637p
8638g
8639s/^[^!]*!//
8640:repl
8641t repl
8642s/'"$ac_delim"'$//
8643t delim
8644:nl
8645h
8646s/\(.\{148\}\)..*/\1/
8647t more1
8648s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8649p
8650n
8651b repl
8652:more1
8653s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8654p
8655g
8656s/.\{148\}//
8657t nl
8658:delim
8659h
8660s/\(.\{148\}\)..*/\1/
8661t more2
8662s/["\\]/\\&/g; s/^/"/; s/$/"/
8663p
8664b
8665:more2
8666s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8667p
8668g
8669s/.\{148\}//
8670t delim
8671' <conf$$subs.awk | sed '
8672/^[^""]/{
8673  N
8674  s/\n//
8675}
8676' >>$CONFIG_STATUS || ac_write_fail=1
8677rm -f conf$$subs.awk
8678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8679_ACAWK
8680cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8681  for (key in S) S_is_set[key] = 1
8682  FS = ""
8683
8684}
8685{
8686  line = $ 0
8687  nfields = split(line, field, "@")
8688  substed = 0
8689  len = length(field[1])
8690  for (i = 2; i < nfields; i++) {
8691    key = field[i]
8692    keylen = length(key)
8693    if (S_is_set[key]) {
8694      value = S[key]
8695      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8696      len += length(value) + length(field[++i])
8697      substed = 1
8698    } else
8699      len += 1 + keylen
8700  }
8701
8702  print line
8703}
8704
8705_ACAWK
8706_ACEOF
8707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8708if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8709  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8710else
8711  cat
8712fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8713  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8714_ACEOF
8715
8716# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8717# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8718# trailing colons and then remove the whole line if VPATH becomes empty
8719# (actually we leave an empty line to preserve line numbers).
8720if test "x$srcdir" = x.; then
8721  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
8722h
8723s///
8724s/^/:/
8725s/[      ]*$/:/
8726s/:\$(srcdir):/:/g
8727s/:\${srcdir}:/:/g
8728s/:@srcdir@:/:/g
8729s/^:*//
8730s/:*$//
8731x
8732s/\(=[   ]*\).*/\1/
8733G
8734s/\n//
8735s/^[^=]*=[       ]*$//
8736}'
8737fi
8738
8739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8740fi # test -n "$CONFIG_FILES"
8741
8742# Set up the scripts for CONFIG_HEADERS section.
8743# No need to generate them if there are no CONFIG_HEADERS.
8744# This happens for instance with `./config.status Makefile'.
8745if test -n "$CONFIG_HEADERS"; then
8746cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8747BEGIN {
8748_ACEOF
8749
8750# Transform confdefs.h into an awk script `defines.awk', embedded as
8751# here-document in config.status, that substitutes the proper values into
8752# config.h.in to produce config.h.
8753
8754# Create a delimiter string that does not exist in confdefs.h, to ease
8755# handling of long lines.
8756ac_delim='%!_!# '
8757for ac_last_try in false false :; do
8758  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8759  if test -z "$ac_tt"; then
8760    break
8761  elif $ac_last_try; then
8762    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8763  else
8764    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8765  fi
8766done
8767
8768# For the awk script, D is an array of macro values keyed by name,
8769# likewise P contains macro parameters if any.  Preserve backslash
8770# newline sequences.
8771
8772ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8773sed -n '
8774s/.\{148\}/&'"$ac_delim"'/g
8775t rset
8776:rset
8777s/^[     ]*#[    ]*define[       ][      ]*/ /
8778t def
8779d
8780:def
8781s/\\$//
8782t bsnl
8783s/["\\]/\\&/g
8784s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8785D["\1"]=" \3"/p
8786s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
8787d
8788:bsnl
8789s/["\\]/\\&/g
8790s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8791D["\1"]=" \3\\\\\\n"\\/p
8792t cont
8793s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8794t cont
8795d
8796:cont
8797n
8798s/.\{148\}/&'"$ac_delim"'/g
8799t clear
8800:clear
8801s/\\$//
8802t bsnlc
8803s/["\\]/\\&/g; s/^/"/; s/$/"/p
8804d
8805:bsnlc
8806s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8807b cont
8808' <confdefs.h | sed '
8809s/'"$ac_delim"'/"\\\
8810"/g' >>$CONFIG_STATUS || ac_write_fail=1
8811
8812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8813  for (key in D) D_is_set[key] = 1
8814  FS = ""
8815}
8816/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8817  line = \$ 0
8818  split(line, arg, " ")
8819  if (arg[1] == "#") {
8820    defundef = arg[2]
8821    mac1 = arg[3]
8822  } else {
8823    defundef = substr(arg[1], 2)
8824    mac1 = arg[2]
8825  }
8826  split(mac1, mac2, "(") #)
8827  macro = mac2[1]
8828  prefix = substr(line, 1, index(line, defundef) - 1)
8829  if (D_is_set[macro]) {
8830    # Preserve the white space surrounding the "#".
8831    print prefix "define", macro P[macro] D[macro]
8832    next
8833  } else {
8834    # Replace #undef with comments.  This is necessary, for example,
8835    # in the case of _POSIX_SOURCE, which is predefined and required
8836    # on some systems where configure will not decide to define it.
8837    if (defundef == "undef") {
8838      print "/*", prefix defundef, macro, "*/"
8839      next
8840    }
8841  }
8842}
8843{ print }
8844_ACAWK
8845_ACEOF
8846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8847  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8848fi # test -n "$CONFIG_HEADERS"
8849
8850
8851eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
8852shift
8853for ac_tag
8854do
8855  case $ac_tag in
8856  :[FHLC]) ac_mode=$ac_tag; continue;;
8857  esac
8858  case $ac_mode$ac_tag in
8859  :[FHL]*:*);;
8860  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8861  :[FH]-) ac_tag=-:-;;
8862  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8863  esac
8864  ac_save_IFS=$IFS
8865  IFS=:
8866  set x $ac_tag
8867  IFS=$ac_save_IFS
8868  shift
8869  ac_file=$1
8870  shift
8871
8872  case $ac_mode in
8873  :L) ac_source=$1;;
8874  :[FH])
8875    ac_file_inputs=
8876    for ac_f
8877    do
8878      case $ac_f in
8879      -) ac_f="$ac_tmp/stdin";;
8880      *) # Look for the file first in the build tree, then in the source tree
8881         # (if the path is not absolute).  The absolute path cannot be DOS-style,
8882         # because $ac_f cannot contain `:'.
8883         test -f "$ac_f" ||
8884           case $ac_f in
8885           [\\/$]*) false;;
8886           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8887           esac ||
8888           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8889      esac
8890      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8891      as_fn_append ac_file_inputs " '$ac_f'"
8892    done
8893
8894    # Let's still pretend it is `configure' which instantiates (i.e., don't
8895    # use $as_me), people would be surprised to read:
8896    #    /* config.h.  Generated by config.status.  */
8897    configure_input='Generated from '`
8898          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8899        `' by configure.'
8900    if test x"$ac_file" != x-; then
8901      configure_input="$ac_file.  $configure_input"
8902      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8903$as_echo "$as_me: creating $ac_file" >&6;}
8904    fi
8905    # Neutralize special characters interpreted by sed in replacement strings.
8906    case $configure_input in #(
8907    *\&* | *\|* | *\\* )
8908       ac_sed_conf_input=`$as_echo "$configure_input" |
8909       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8910    *) ac_sed_conf_input=$configure_input;;
8911    esac
8912
8913    case $ac_tag in
8914    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8915      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8916    esac
8917    ;;
8918  esac
8919
8920  ac_dir=`$as_dirname -- "$ac_file" ||
8921$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8922         X"$ac_file" : 'X\(//\)[^/]' \| \
8923         X"$ac_file" : 'X\(//\)$' \| \
8924         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8925$as_echo X"$ac_file" |
8926    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8927            s//\1/
8928            q
8929          }
8930          /^X\(\/\/\)[^/].*/{
8931            s//\1/
8932            q
8933          }
8934          /^X\(\/\/\)$/{
8935            s//\1/
8936            q
8937          }
8938          /^X\(\/\).*/{
8939            s//\1/
8940            q
8941          }
8942          s/.*/./; q'`
8943  as_dir="$ac_dir"; as_fn_mkdir_p
8944  ac_builddir=.
8945
8946case "$ac_dir" in
8947.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8948*)
8949  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8950  # A ".." for each directory in $ac_dir_suffix.
8951  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8952  case $ac_top_builddir_sub in
8953  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8954  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8955  esac ;;
8956esac
8957ac_abs_top_builddir=$ac_pwd
8958ac_abs_builddir=$ac_pwd$ac_dir_suffix
8959# for backward compatibility:
8960ac_top_builddir=$ac_top_build_prefix
8961
8962case $srcdir in
8963  .)  # We are building in place.
8964    ac_srcdir=.
8965    ac_top_srcdir=$ac_top_builddir_sub
8966    ac_abs_top_srcdir=$ac_pwd ;;
8967  [\\/]* | ?:[\\/]* )  # Absolute name.
8968    ac_srcdir=$srcdir$ac_dir_suffix;
8969    ac_top_srcdir=$srcdir
8970    ac_abs_top_srcdir=$srcdir ;;
8971  *) # Relative name.
8972    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8973    ac_top_srcdir=$ac_top_build_prefix$srcdir
8974    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8975esac
8976ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8977
8978
8979  case $ac_mode in
8980  :F)
8981  #
8982  # CONFIG_FILE
8983  #
8984
8985  case $INSTALL in
8986  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8987  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8988  esac
8989  ac_MKDIR_P=$MKDIR_P
8990  case $MKDIR_P in
8991  [\\/$]* | ?:[\\/]* ) ;;
8992  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8993  esac
8994_ACEOF
8995
8996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8997# If the template does not know about datarootdir, expand it.
8998# FIXME: This hack should be removed a few years after 2.60.
8999ac_datarootdir_hack=; ac_datarootdir_seen=
9000ac_sed_dataroot='
9001/datarootdir/ {
9002  p
9003  q
9004}
9005/@datadir@/p
9006/@docdir@/p
9007/@infodir@/p
9008/@localedir@/p
9009/@mandir@/p'
9010case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9011*datarootdir*) ac_datarootdir_seen=yes;;
9012*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9013  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9014$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9015_ACEOF
9016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9017  ac_datarootdir_hack='
9018  s&@datadir@&$datadir&g
9019  s&@docdir@&$docdir&g
9020  s&@infodir@&$infodir&g
9021  s&@localedir@&$localedir&g
9022  s&@mandir@&$mandir&g
9023  s&\\\${datarootdir}&$datarootdir&g' ;;
9024esac
9025_ACEOF
9026
9027# Neutralize VPATH when `$srcdir' = `.'.
9028# Shell code in configure.ac might set extrasub.
9029# FIXME: do we really want to maintain this feature?
9030cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9031ac_sed_extra="$ac_vpsub
9032$extrasub
9033_ACEOF
9034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9035:t
9036/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9037s|@configure_input@|$ac_sed_conf_input|;t t
9038s&@top_builddir@&$ac_top_builddir_sub&;t t
9039s&@top_build_prefix@&$ac_top_build_prefix&;t t
9040s&@srcdir@&$ac_srcdir&;t t
9041s&@abs_srcdir@&$ac_abs_srcdir&;t t
9042s&@top_srcdir@&$ac_top_srcdir&;t t
9043s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9044s&@builddir@&$ac_builddir&;t t
9045s&@abs_builddir@&$ac_abs_builddir&;t t
9046s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9047s&@INSTALL@&$ac_INSTALL&;t t
9048s&@MKDIR_P@&$ac_MKDIR_P&;t t
9049$ac_datarootdir_hack
9050"
9051eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9052  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9053
9054test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9055  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9056  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
9057      "$ac_tmp/out"`; test -z "$ac_out"; } &&
9058  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9059which seems to be undefined.  Please make sure it is defined" >&5
9060$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9061which seems to be undefined.  Please make sure it is defined" >&2;}
9062
9063  rm -f "$ac_tmp/stdin"
9064  case $ac_file in
9065  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9066  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9067  esac \
9068  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9069 ;;
9070  :H)
9071  #
9072  # CONFIG_HEADER
9073  #
9074  if test x"$ac_file" != x-; then
9075    {
9076      $as_echo "/* $configure_input  */" \
9077      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9078    } >"$ac_tmp/config.h" \
9079      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9080    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9081      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9082$as_echo "$as_me: $ac_file is unchanged" >&6;}
9083    else
9084      rm -f "$ac_file"
9085      mv "$ac_tmp/config.h" "$ac_file" \
9086        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9087    fi
9088  else
9089    $as_echo "/* $configure_input  */" \
9090      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9091      || as_fn_error $? "could not create -" "$LINENO" 5
9092  fi
9093 ;;
9094
9095
9096  esac
9097
9098done # for ac_tag
9099
9100
9101as_fn_exit 0
9102_ACEOF
9103ac_clean_files=$ac_clean_files_save
9104
9105test $ac_write_fail = 0 ||
9106  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9107
9108
9109# configure is writing to config.log, and then calls config.status.
9110# config.status does its own redirection, appending to config.log.
9111# Unfortunately, on DOS this fails, as config.log is still kept open
9112# by configure, so config.status won't be able to write to it; its
9113# output is simply discarded.  So we exec the FD to /dev/null,
9114# effectively closing config.log, so it can be properly (re)opened and
9115# appended to by config.status.  When coming back to configure, we
9116# need to make the FD available again.
9117if test "$no_create" != yes; then
9118  ac_cs_success=:
9119  ac_config_status_args=
9120  test "$silent" = yes &&
9121    ac_config_status_args="$ac_config_status_args --quiet"
9122  exec 5>/dev/null
9123  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9124  exec 5>>config.log
9125  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9126  # would make configure fail if this is the last instruction.
9127  $ac_cs_success || as_fn_exit 1
9128fi
9129if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9130  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9131$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9132fi
9133
Note: See TracBrowser for help on using the repository browser.