6eda32a4cd5d480465049f870b0f4555a9c61118
[ctsim.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for CTSim 5.1.3.
4 #
5 # Report bugs to <ctsim-users@b9.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org and ctsim-users@b9.com
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
235 $0: have one."
236   fi
237   exit 1
238 fi
239 fi
240 fi
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255   { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264   return $1
265 } # as_fn_set_status
266
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
271 {
272   set +e
273   as_fn_set_status $1
274   exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
283   case $as_dir in #(
284   -*) as_dir=./$as_dir;;
285   esac
286   test -d "$as_dir" || eval $as_mkdir_p || {
287     as_dirs=
288     while :; do
289       case $as_dir in #(
290       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291       *) as_qdir=$as_dir;;
292       esac
293       as_dirs="'$as_qdir' $as_dirs"
294       as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296          X"$as_dir" : 'X\(//\)[^/]' \| \
297          X"$as_dir" : 'X\(//\)$' \| \
298          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301             s//\1/
302             q
303           }
304           /^X\(\/\/\)[^/].*/{
305             s//\1/
306             q
307           }
308           /^X\(\/\/\)$/{
309             s//\1/
310             q
311           }
312           /^X\(\/\).*/{
313             s//\1/
314             q
315           }
316           s/.*/./; q'`
317       test -d "$as_dir" && break
318     done
319     test -z "$as_dirs" || eval "mkdir $as_dirs"
320   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331   eval 'as_fn_append ()
332   {
333     eval $1+=\$2
334   }'
335 else
336   as_fn_append ()
337   {
338     eval $1=\$$1\$2
339   }
340 fi # as_fn_append
341
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348   eval 'as_fn_arith ()
349   {
350     as_val=$(( $* ))
351   }'
352 else
353   as_fn_arith ()
354   {
355     as_val=`expr "$@" || test $? -eq 1`
356   }
357 fi # as_fn_arith
358
359
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
366 {
367   as_status=$?; test $as_status -eq 0 && as_status=1
368   if test "$3"; then
369     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371   fi
372   $as_echo "$as_me: error: $1" >&2
373   as_fn_exit $as_status
374 } # as_fn_error
375
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377    test "X`expr 00001 : '.*\(...\)'`" = X001; then
378   as_expr=expr
379 else
380   as_expr=false
381 fi
382
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384   as_basename=basename
385 else
386   as_basename=false
387 fi
388
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390   as_dirname=dirname
391 else
392   as_dirname=false
393 fi
394
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397          X"$0" : 'X\(//\)$' \| \
398          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400     sed '/^.*\/\([^/][^/]*\)\/*$/{
401             s//\1/
402             q
403           }
404           /^X\/\(\/\/\)$/{
405             s//\1/
406             q
407           }
408           /^X\/\(\/\).*/{
409             s//\1/
410             q
411           }
412           s/.*/./; q'`
413
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422   as_lineno_1=$LINENO as_lineno_1a=$LINENO
423   as_lineno_2=$LINENO as_lineno_2a=$LINENO
424   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427   sed -n '
428     p
429     /[$]LINENO/=
430   ' <$as_myself |
431     sed '
432       s/[$]LINENO.*/&-/
433       t lineno
434       b
435       :lineno
436       N
437       :loop
438       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439       t loop
440       s/-\n.*//
441     ' >$as_me.lineno &&
442   chmod +x "$as_me.lineno" ||
443     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445   # Don't try to exec as it changes $[0], causing all sort of problems
446   # (the dirname of $[0] is not the place where we might find the
447   # original and so on.  Autoconf is especially sensitive to this).
448   . "./$as_me.lineno"
449   # Exit status is that of the last command.
450   exit
451 }
452
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456   case `echo 'xy\c'` in
457   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
458   xy)  ECHO_C='\c';;
459   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460        ECHO_T=' ';;
461   esac;;
462 *)
463   ECHO_N='-n';;
464 esac
465
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468   rm -f conf$$.dir/conf$$.file
469 else
470   rm -f conf$$.dir
471   mkdir conf$$.dir 2>/dev/null
472 fi
473 if (echo >conf$$.file) 2>/dev/null; then
474   if ln -s conf$$.file conf$$ 2>/dev/null; then
475     as_ln_s='ln -s'
476     # ... but there are two gotchas:
477     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479     # In both cases, we have to default to `cp -p'.
480     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481       as_ln_s='cp -p'
482   elif ln conf$$.file conf$$ 2>/dev/null; then
483     as_ln_s=ln
484   else
485     as_ln_s='cp -p'
486   fi
487 else
488   as_ln_s='cp -p'
489 fi
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
492
493 if mkdir -p . 2>/dev/null; then
494   as_mkdir_p='mkdir -p "$as_dir"'
495 else
496   test -d ./-p && rmdir ./-p
497   as_mkdir_p=false
498 fi
499
500 if test -x / >/dev/null 2>&1; then
501   as_test_x='test -x'
502 else
503   if ls -dL / >/dev/null 2>&1; then
504     as_ls_L_option=L
505   else
506     as_ls_L_option=
507   fi
508   as_test_x='
509     eval sh -c '\''
510       if test -d "$1"; then
511         test -d "$1/.";
512       else
513         case $1 in #(
514         -*)set "./$1";;
515         esac;
516         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517         ???[sx]*):;;*)false;;esac;fi
518     '\'' sh
519   '
520 fi
521 as_executable_p=$as_test_x
522
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530 exec 7<&0 </dev/null 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='CTSim'
551 PACKAGE_TARNAME='ctsim'
552 PACKAGE_VERSION='5.1.3'
553 PACKAGE_STRING='CTSim 5.1.3'
554 PACKAGE_BUGREPORT='ctsim-users@b9.com'
555 PACKAGE_URL='http://www.ctsim.org/'
556
557 ac_unique_file="src/ctsim.cpp"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 #  include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 #  include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_subst_vars='am__EXEEXT_FALSE
595 am__EXEEXT_TRUE
596 LTLIBOBJS
597 LIBOBJS
598 lamdefs
599 lamprograms
600 ctlibs
601 HAVE_WXWINDOWS_FALSE
602 HAVE_WXWINDOWS_TRUE
603 wxlibs
604 wxcflags
605 HAVE_SGP_FALSE
606 HAVE_SGP_TRUE
607 my_includes
608 NO_X_FALSE
609 NO_X_TRUE
610 X_BASIC_LIBS
611 X_TOOLKIT_LIBS
612 X_EXTRA_LIBS
613 X_LIBS
614 X_PRE_LIBS
615 X_CFLAGS
616 XMKMF
617 USE_LAM_FALSE
618 USE_LAM_TRUE
619 webenabled
620 USE_HTML_FALSE
621 USE_HTML_TRUE
622 htmldata
623 cgiprograms
624 webdataurl
625 webdatadir
626 cgibinurl
627 cgibindir
628 mpienable
629 lamdir
630 DEBUG_FALSE
631 DEBUG_TRUE
632 INCLUDED_GETOPT_LONG_FALSE
633 INCLUDED_GETOPT_LONG_TRUE
634 host_os
635 host_vendor
636 host_cpu
637 host
638 build_os
639 build_vendor
640 build_cpu
641 build
642 wxconfig
643 EGREP
644 GREP
645 CPP
646 am__fastdepCXX_FALSE
647 am__fastdepCXX_TRUE
648 CXXDEPMODE
649 ac_ct_CXX
650 CXXFLAGS
651 CXX
652 am__fastdepCC_FALSE
653 am__fastdepCC_TRUE
654 CCDEPMODE
655 AMDEPBACKSLASH
656 AMDEP_FALSE
657 AMDEP_TRUE
658 am__quote
659 am__include
660 DEPDIR
661 OBJEXT
662 EXEEXT
663 ac_ct_CC
664 CPPFLAGS
665 LDFLAGS
666 CFLAGS
667 CC
668 RANLIB
669 am__untar
670 am__tar
671 AMTAR
672 am__leading_dot
673 SET_MAKE
674 AWK
675 mkdir_p
676 MKDIR_P
677 INSTALL_STRIP_PROGRAM
678 STRIP
679 install_sh
680 MAKEINFO
681 AUTOHEADER
682 AUTOMAKE
683 AUTOCONF
684 ACLOCAL
685 VERSION
686 PACKAGE
687 CYGPATH_W
688 am__isrc
689 INSTALL_DATA
690 INSTALL_SCRIPT
691 INSTALL_PROGRAM
692 MAINT
693 MAINTAINER_MODE_FALSE
694 MAINTAINER_MODE_TRUE
695 target_alias
696 host_alias
697 build_alias
698 LIBS
699 ECHO_T
700 ECHO_N
701 ECHO_C
702 DEFS
703 mandir
704 localedir
705 libdir
706 psdir
707 pdfdir
708 dvidir
709 htmldir
710 infodir
711 docdir
712 oldincludedir
713 includedir
714 localstatedir
715 sharedstatedir
716 sysconfdir
717 datadir
718 datarootdir
719 libexecdir
720 sbindir
721 bindir
722 program_transform_name
723 prefix
724 exec_prefix
725 PACKAGE_URL
726 PACKAGE_BUGREPORT
727 PACKAGE_STRING
728 PACKAGE_VERSION
729 PACKAGE_TARNAME
730 PACKAGE_NAME
731 PATH_SEPARATOR
732 SHELL'
733 ac_subst_files=''
734 ac_user_opts='
735 enable_option_checking
736 enable_maintainer_mode
737 enable_dependency_tracking
738 enable_debug
739 enable_verbose_warnings
740 enable_static
741 with_lam
742 with_ctn
743 with_mcpu
744 with_cgibin_dir
745 with_cgibin_url
746 with_webdata_dir
747 with_webdata_url
748 with_html_dir
749 with_x
750 enable_dmalloc
751 enable_efence
752 '
753       ac_precious_vars='build_alias
754 host_alias
755 target_alias
756 CC
757 CFLAGS
758 LDFLAGS
759 LIBS
760 CPPFLAGS
761 CXX
762 CXXFLAGS
763 CCC
764 CPP
765 XMKMF'
766
767
768 # Initialize some variables set by options.
769 ac_init_help=
770 ac_init_version=false
771 ac_unrecognized_opts=
772 ac_unrecognized_sep=
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
775 cache_file=/dev/null
776 exec_prefix=NONE
777 no_create=
778 no_recursion=
779 prefix=NONE
780 program_prefix=NONE
781 program_suffix=NONE
782 program_transform_name=s,x,x,
783 silent=
784 site=
785 srcdir=
786 verbose=
787 x_includes=NONE
788 x_libraries=NONE
789
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir='${exec_prefix}/bin'
797 sbindir='${exec_prefix}/sbin'
798 libexecdir='${exec_prefix}/libexec'
799 datarootdir='${prefix}/share'
800 datadir='${datarootdir}'
801 sysconfdir='${prefix}/etc'
802 sharedstatedir='${prefix}/com'
803 localstatedir='${prefix}/var'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807 infodir='${datarootdir}/info'
808 htmldir='${docdir}'
809 dvidir='${docdir}'
810 pdfdir='${docdir}'
811 psdir='${docdir}'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
815
816 ac_prev=
817 ac_dashdash=
818 for ac_option
819 do
820   # If the previous option needs an argument, assign it.
821   if test -n "$ac_prev"; then
822     eval $ac_prev=\$ac_option
823     ac_prev=
824     continue
825   fi
826
827   case $ac_option in
828   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829   *)    ac_optarg=yes ;;
830   esac
831
832   # Accept the important Cygnus configure options, so we can diagnose typos.
833
834   case $ac_dashdash$ac_option in
835   --)
836     ac_dashdash=yes ;;
837
838   -bindir | --bindir | --bindi | --bind | --bin | --bi)
839     ac_prev=bindir ;;
840   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841     bindir=$ac_optarg ;;
842
843   -build | --build | --buil | --bui | --bu)
844     ac_prev=build_alias ;;
845   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846     build_alias=$ac_optarg ;;
847
848   -cache-file | --cache-file | --cache-fil | --cache-fi \
849   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850     ac_prev=cache_file ;;
851   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853     cache_file=$ac_optarg ;;
854
855   --config-cache | -C)
856     cache_file=config.cache ;;
857
858   -datadir | --datadir | --datadi | --datad)
859     ac_prev=datadir ;;
860   -datadir=* | --datadir=* | --datadi=* | --datad=*)
861     datadir=$ac_optarg ;;
862
863   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864   | --dataroo | --dataro | --datar)
865     ac_prev=datarootdir ;;
866   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868     datarootdir=$ac_optarg ;;
869
870   -disable-* | --disable-*)
871     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872     # Reject names that are not valid shell variable names.
873     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874       as_fn_error "invalid feature name: $ac_useropt"
875     ac_useropt_orig=$ac_useropt
876     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877     case $ac_user_opts in
878       *"
879 "enable_$ac_useropt"
880 "*) ;;
881       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882          ac_unrecognized_sep=', ';;
883     esac
884     eval enable_$ac_useropt=no ;;
885
886   -docdir | --docdir | --docdi | --doc | --do)
887     ac_prev=docdir ;;
888   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889     docdir=$ac_optarg ;;
890
891   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892     ac_prev=dvidir ;;
893   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894     dvidir=$ac_optarg ;;
895
896   -enable-* | --enable-*)
897     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898     # Reject names that are not valid shell variable names.
899     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900       as_fn_error "invalid feature name: $ac_useropt"
901     ac_useropt_orig=$ac_useropt
902     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903     case $ac_user_opts in
904       *"
905 "enable_$ac_useropt"
906 "*) ;;
907       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908          ac_unrecognized_sep=', ';;
909     esac
910     eval enable_$ac_useropt=\$ac_optarg ;;
911
912   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914   | --exec | --exe | --ex)
915     ac_prev=exec_prefix ;;
916   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918   | --exec=* | --exe=* | --ex=*)
919     exec_prefix=$ac_optarg ;;
920
921   -gas | --gas | --ga | --g)
922     # Obsolete; use --with-gas.
923     with_gas=yes ;;
924
925   -help | --help | --hel | --he | -h)
926     ac_init_help=long ;;
927   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928     ac_init_help=recursive ;;
929   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930     ac_init_help=short ;;
931
932   -host | --host | --hos | --ho)
933     ac_prev=host_alias ;;
934   -host=* | --host=* | --hos=* | --ho=*)
935     host_alias=$ac_optarg ;;
936
937   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938     ac_prev=htmldir ;;
939   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940   | --ht=*)
941     htmldir=$ac_optarg ;;
942
943   -includedir | --includedir | --includedi | --included | --include \
944   | --includ | --inclu | --incl | --inc)
945     ac_prev=includedir ;;
946   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947   | --includ=* | --inclu=* | --incl=* | --inc=*)
948     includedir=$ac_optarg ;;
949
950   -infodir | --infodir | --infodi | --infod | --info | --inf)
951     ac_prev=infodir ;;
952   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953     infodir=$ac_optarg ;;
954
955   -libdir | --libdir | --libdi | --libd)
956     ac_prev=libdir ;;
957   -libdir=* | --libdir=* | --libdi=* | --libd=*)
958     libdir=$ac_optarg ;;
959
960   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961   | --libexe | --libex | --libe)
962     ac_prev=libexecdir ;;
963   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964   | --libexe=* | --libex=* | --libe=*)
965     libexecdir=$ac_optarg ;;
966
967   -localedir | --localedir | --localedi | --localed | --locale)
968     ac_prev=localedir ;;
969   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970     localedir=$ac_optarg ;;
971
972   -localstatedir | --localstatedir | --localstatedi | --localstated \
973   | --localstate | --localstat | --localsta | --localst | --locals)
974     ac_prev=localstatedir ;;
975   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977     localstatedir=$ac_optarg ;;
978
979   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980     ac_prev=mandir ;;
981   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982     mandir=$ac_optarg ;;
983
984   -nfp | --nfp | --nf)
985     # Obsolete; use --without-fp.
986     with_fp=no ;;
987
988   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989   | --no-cr | --no-c | -n)
990     no_create=yes ;;
991
992   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994     no_recursion=yes ;;
995
996   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998   | --oldin | --oldi | --old | --ol | --o)
999     ac_prev=oldincludedir ;;
1000   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003     oldincludedir=$ac_optarg ;;
1004
1005   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006     ac_prev=prefix ;;
1007   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008     prefix=$ac_optarg ;;
1009
1010   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011   | --program-pre | --program-pr | --program-p)
1012     ac_prev=program_prefix ;;
1013   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015     program_prefix=$ac_optarg ;;
1016
1017   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018   | --program-suf | --program-su | --program-s)
1019     ac_prev=program_suffix ;;
1020   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022     program_suffix=$ac_optarg ;;
1023
1024   -program-transform-name | --program-transform-name \
1025   | --program-transform-nam | --program-transform-na \
1026   | --program-transform-n | --program-transform- \
1027   | --program-transform | --program-transfor \
1028   | --program-transfo | --program-transf \
1029   | --program-trans | --program-tran \
1030   | --progr-tra | --program-tr | --program-t)
1031     ac_prev=program_transform_name ;;
1032   -program-transform-name=* | --program-transform-name=* \
1033   | --program-transform-nam=* | --program-transform-na=* \
1034   | --program-transform-n=* | --program-transform-=* \
1035   | --program-transform=* | --program-transfor=* \
1036   | --program-transfo=* | --program-transf=* \
1037   | --program-trans=* | --program-tran=* \
1038   | --progr-tra=* | --program-tr=* | --program-t=*)
1039     program_transform_name=$ac_optarg ;;
1040
1041   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042     ac_prev=pdfdir ;;
1043   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044     pdfdir=$ac_optarg ;;
1045
1046   -psdir | --psdir | --psdi | --psd | --ps)
1047     ac_prev=psdir ;;
1048   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049     psdir=$ac_optarg ;;
1050
1051   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052   | -silent | --silent | --silen | --sile | --sil)
1053     silent=yes ;;
1054
1055   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056     ac_prev=sbindir ;;
1057   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058   | --sbi=* | --sb=*)
1059     sbindir=$ac_optarg ;;
1060
1061   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063   | --sharedst | --shareds | --shared | --share | --shar \
1064   | --sha | --sh)
1065     ac_prev=sharedstatedir ;;
1066   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069   | --sha=* | --sh=*)
1070     sharedstatedir=$ac_optarg ;;
1071
1072   -site | --site | --sit)
1073     ac_prev=site ;;
1074   -site=* | --site=* | --sit=*)
1075     site=$ac_optarg ;;
1076
1077   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078     ac_prev=srcdir ;;
1079   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080     srcdir=$ac_optarg ;;
1081
1082   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083   | --syscon | --sysco | --sysc | --sys | --sy)
1084     ac_prev=sysconfdir ;;
1085   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087     sysconfdir=$ac_optarg ;;
1088
1089   -target | --target | --targe | --targ | --tar | --ta | --t)
1090     ac_prev=target_alias ;;
1091   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092     target_alias=$ac_optarg ;;
1093
1094   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095     verbose=yes ;;
1096
1097   -version | --version | --versio | --versi | --vers | -V)
1098     ac_init_version=: ;;
1099
1100   -with-* | --with-*)
1101     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102     # Reject names that are not valid shell variable names.
1103     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104       as_fn_error "invalid package name: $ac_useropt"
1105     ac_useropt_orig=$ac_useropt
1106     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107     case $ac_user_opts in
1108       *"
1109 "with_$ac_useropt"
1110 "*) ;;
1111       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112          ac_unrecognized_sep=', ';;
1113     esac
1114     eval with_$ac_useropt=\$ac_optarg ;;
1115
1116   -without-* | --without-*)
1117     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120       as_fn_error "invalid package name: $ac_useropt"
1121     ac_useropt_orig=$ac_useropt
1122     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123     case $ac_user_opts in
1124       *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128          ac_unrecognized_sep=', ';;
1129     esac
1130     eval with_$ac_useropt=no ;;
1131
1132   --x)
1133     # Obsolete; use --with-x.
1134     with_x=yes ;;
1135
1136   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137   | --x-incl | --x-inc | --x-in | --x-i)
1138     ac_prev=x_includes ;;
1139   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141     x_includes=$ac_optarg ;;
1142
1143   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145     ac_prev=x_libraries ;;
1146   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148     x_libraries=$ac_optarg ;;
1149
1150   -*) as_fn_error "unrecognized option: \`$ac_option'
1151 Try \`$0 --help' for more information."
1152     ;;
1153
1154   *=*)
1155     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156     # Reject names that are not valid shell variable names.
1157     case $ac_envvar in #(
1158       '' | [0-9]* | *[!_$as_cr_alnum]* )
1159       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1160     esac
1161     eval $ac_envvar=\$ac_optarg
1162     export $ac_envvar ;;
1163
1164   *)
1165     # FIXME: should be removed in autoconf 3.0.
1166     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1170     ;;
1171
1172   esac
1173 done
1174
1175 if test -n "$ac_prev"; then
1176   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177   as_fn_error "missing argument to $ac_option"
1178 fi
1179
1180 if test -n "$ac_unrecognized_opts"; then
1181   case $enable_option_checking in
1182     no) ;;
1183     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1184     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185   esac
1186 fi
1187
1188 # Check all directory arguments for consistency.
1189 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190                 datadir sysconfdir sharedstatedir localstatedir includedir \
1191                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192                 libdir localedir mandir
1193 do
1194   eval ac_val=\$$ac_var
1195   # Remove trailing slashes.
1196   case $ac_val in
1197     */ )
1198       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199       eval $ac_var=\$ac_val;;
1200   esac
1201   # Be sure to have absolute directory names.
1202   case $ac_val in
1203     [\\/$]* | ?:[\\/]* )  continue;;
1204     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205   esac
1206   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1207 done
1208
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1212 build=$build_alias
1213 host=$host_alias
1214 target=$target_alias
1215
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x; then
1218   if test "x$build_alias" = x; then
1219     cross_compiling=maybe
1220     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221     If a cross compiler is detected then cross compile mode will be used." >&2
1222   elif test "x$build_alias" != "x$host_alias"; then
1223     cross_compiling=yes
1224   fi
1225 fi
1226
1227 ac_tool_prefix=
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1229
1230 test "$silent" = yes && exec 6>/dev/null
1231
1232
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236   as_fn_error "working directory cannot be determined"
1237 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1238   as_fn_error "pwd does not report name of working directory"
1239
1240
1241 # Find the source files, if location was not specified.
1242 if test -z "$srcdir"; then
1243   ac_srcdir_defaulted=yes
1244   # Try the directory containing this script, then the parent directory.
1245   ac_confdir=`$as_dirname -- "$as_myself" ||
1246 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247          X"$as_myself" : 'X\(//\)[^/]' \| \
1248          X"$as_myself" : 'X\(//\)$' \| \
1249          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1250 $as_echo X"$as_myself" |
1251     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252             s//\1/
1253             q
1254           }
1255           /^X\(\/\/\)[^/].*/{
1256             s//\1/
1257             q
1258           }
1259           /^X\(\/\/\)$/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\).*/{
1264             s//\1/
1265             q
1266           }
1267           s/.*/./; q'`
1268   srcdir=$ac_confdir
1269   if test ! -r "$srcdir/$ac_unique_file"; then
1270     srcdir=..
1271   fi
1272 else
1273   ac_srcdir_defaulted=no
1274 fi
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1277   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1278 fi
1279 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1280 ac_abs_confdir=`(
1281         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1282         pwd)`
1283 # When building in place, set srcdir=.
1284 if test "$ac_abs_confdir" = "$ac_pwd"; then
1285   srcdir=.
1286 fi
1287 # Remove unnecessary trailing slashes from srcdir.
1288 # Double slashes in file names in object file debugging info
1289 # mess up M-x gdb in Emacs.
1290 case $srcdir in
1291 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292 esac
1293 for ac_var in $ac_precious_vars; do
1294   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295   eval ac_env_${ac_var}_value=\$${ac_var}
1296   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 done
1299
1300 #
1301 # Report the --help message.
1302 #
1303 if test "$ac_init_help" = "long"; then
1304   # Omit some internal or obsolete options to make the list less imposing.
1305   # This message is too long to be a string in the A/UX 3.1 sh.
1306   cat <<_ACEOF
1307 \`configure' configures CTSim 5.1.3 to adapt to many kinds of systems.
1308
1309 Usage: $0 [OPTION]... [VAR=VALUE]...
1310
1311 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312 VAR=VALUE.  See below for descriptions of some of the useful variables.
1313
1314 Defaults for the options are specified in brackets.
1315
1316 Configuration:
1317   -h, --help              display this help and exit
1318       --help=short        display options specific to this package
1319       --help=recursive    display the short help of all the included packages
1320   -V, --version           display version information and exit
1321   -q, --quiet, --silent   do not print \`checking...' messages
1322       --cache-file=FILE   cache test results in FILE [disabled]
1323   -C, --config-cache      alias for \`--cache-file=config.cache'
1324   -n, --no-create         do not create output files
1325       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1326
1327 Installation directories:
1328   --prefix=PREFIX         install architecture-independent files in PREFIX
1329                           [$ac_default_prefix]
1330   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1331                           [PREFIX]
1332
1333 By default, \`make install' will install all the files in
1334 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1335 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336 for instance \`--prefix=\$HOME'.
1337
1338 For better control, use the options below.
1339
1340 Fine tuning of the installation directories:
1341   --bindir=DIR            user executables [EPREFIX/bin]
1342   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1343   --libexecdir=DIR        program executables [EPREFIX/libexec]
1344   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1345   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1346   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1347   --libdir=DIR            object code libraries [EPREFIX/lib]
1348   --includedir=DIR        C header files [PREFIX/include]
1349   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1350   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1351   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1352   --infodir=DIR           info documentation [DATAROOTDIR/info]
1353   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1354   --mandir=DIR            man documentation [DATAROOTDIR/man]
1355   --docdir=DIR            documentation root [DATAROOTDIR/doc/ctsim]
1356   --htmldir=DIR           html documentation [DOCDIR]
1357   --dvidir=DIR            dvi documentation [DOCDIR]
1358   --pdfdir=DIR            pdf documentation [DOCDIR]
1359   --psdir=DIR             ps documentation [DOCDIR]
1360 _ACEOF
1361
1362   cat <<\_ACEOF
1363
1364 Program names:
1365   --program-prefix=PREFIX            prepend PREFIX to installed program names
1366   --program-suffix=SUFFIX            append SUFFIX to installed program names
1367   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1368
1369 X features:
1370   --x-includes=DIR    X include files are in DIR
1371   --x-libraries=DIR   X library files are in DIR
1372
1373 System types:
1374   --build=BUILD     configure for building on BUILD [guessed]
1375   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1376 _ACEOF
1377 fi
1378
1379 if test -n "$ac_init_help"; then
1380   case $ac_init_help in
1381      short | recursive ) echo "Configuration of CTSim 5.1.3:";;
1382    esac
1383   cat <<\_ACEOF
1384
1385 Optional Features:
1386   --disable-option-checking  ignore unrecognized --enable/--with options
1387   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1388   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1389   --enable-maintainer-mode  enable make rules and dependencies not useful
1390                           (and sometimes confusing) to the casual installer
1391   --disable-dependency-tracking  speeds up one-time build
1392   --enable-dependency-tracking   do not reject slow dependency extractors
1393   --enable-debug          Turn on debugging
1394   --enable-verbose-warnings
1395                           Enable verbose compiler warnings.
1396   --enable-static
1397                             Enable static executables.
1398   --enable-dmalloc        Use dmalloc memory allocation
1399   --enable-efence        Use ElectricFence memory allocation
1400
1401 Optional Packages:
1402   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1403   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1404   --with-lam=PATH         Set path of LAM MPI
1405   --with-ctn=PATH         Set path of CTN DICOM library
1406   --with-mcpu=CPU         Set name of CPU for gcc -mcpu
1407   --with-cgibin-dir=PATH  Set path of CGI binaries directory
1408   --with-cgibin-url=PATH  Set URL path of CGI binaries
1409   --with-webdata-dir=PATH Set path of webdata
1410   --with-webdata-url=PATH Set URL path of webdata
1411   --with-html-dir=PATH    Set directory of html files
1412   --with-x                use the X Window System
1413
1414 Some influential environment variables:
1415   CC          C compiler command
1416   CFLAGS      C compiler flags
1417   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1418               nonstandard directory <lib dir>
1419   LIBS        libraries to pass to the linker, e.g. -l<library>
1420   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1421               you have headers in a nonstandard directory <include dir>
1422   CXX         C++ compiler command
1423   CXXFLAGS    C++ compiler flags
1424   CPP         C preprocessor
1425   XMKMF       Path to xmkmf, Makefile generator for X Window System
1426
1427 Use these variables to override the choices made by `configure' or to help
1428 it to find libraries and programs with nonstandard names/locations.
1429
1430 Report bugs to <ctsim-users@b9.com>.
1431 CTSim home page: <http://www.ctsim.org/>.
1432 _ACEOF
1433 ac_status=$?
1434 fi
1435
1436 if test "$ac_init_help" = "recursive"; then
1437   # If there are subdirs, report their specific --help.
1438   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439     test -d "$ac_dir" ||
1440       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1441       continue
1442     ac_builddir=.
1443
1444 case "$ac_dir" in
1445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *)
1447   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1448   # A ".." for each directory in $ac_dir_suffix.
1449   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450   case $ac_top_builddir_sub in
1451   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453   esac ;;
1454 esac
1455 ac_abs_top_builddir=$ac_pwd
1456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457 # for backward compatibility:
1458 ac_top_builddir=$ac_top_build_prefix
1459
1460 case $srcdir in
1461   .)  # We are building in place.
1462     ac_srcdir=.
1463     ac_top_srcdir=$ac_top_builddir_sub
1464     ac_abs_top_srcdir=$ac_pwd ;;
1465   [\\/]* | ?:[\\/]* )  # Absolute name.
1466     ac_srcdir=$srcdir$ac_dir_suffix;
1467     ac_top_srcdir=$srcdir
1468     ac_abs_top_srcdir=$srcdir ;;
1469   *) # Relative name.
1470     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471     ac_top_srcdir=$ac_top_build_prefix$srcdir
1472     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473 esac
1474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475
1476     cd "$ac_dir" || { ac_status=$?; continue; }
1477     # Check for guested configure.
1478     if test -f "$ac_srcdir/configure.gnu"; then
1479       echo &&
1480       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481     elif test -f "$ac_srcdir/configure"; then
1482       echo &&
1483       $SHELL "$ac_srcdir/configure" --help=recursive
1484     else
1485       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486     fi || ac_status=$?
1487     cd "$ac_pwd" || { ac_status=$?; break; }
1488   done
1489 fi
1490
1491 test -n "$ac_init_help" && exit $ac_status
1492 if $ac_init_version; then
1493   cat <<\_ACEOF
1494 CTSim configure 5.1.3
1495 generated by GNU Autoconf 2.64
1496
1497 Copyright (C) 2009 Free Software Foundation, Inc.
1498 This configure script is free software; the Free Software Foundation
1499 gives unlimited permission to copy, distribute and modify it.
1500 _ACEOF
1501   exit
1502 fi
1503
1504 ## ------------------------ ##
1505 ## Autoconf initialization. ##
1506 ## ------------------------ ##
1507
1508 # ac_fn_c_try_compile LINENO
1509 # --------------------------
1510 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1511 ac_fn_c_try_compile ()
1512 {
1513   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514   rm -f conftest.$ac_objext
1515   if { { ac_try="$ac_compile"
1516 case "(($ac_try" in
1517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518   *) ac_try_echo=$ac_try;;
1519 esac
1520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 $as_echo "$ac_try_echo"; } >&5
1522   (eval "$ac_compile") 2>conftest.err
1523   ac_status=$?
1524   if test -s conftest.err; then
1525     grep -v '^ *+' conftest.err >conftest.er1
1526     cat conftest.er1 >&5
1527     mv -f conftest.er1 conftest.err
1528   fi
1529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530   test $ac_status = 0; } && {
1531          test -z "$ac_c_werror_flag" ||
1532          test ! -s conftest.err
1533        } && test -s conftest.$ac_objext; then :
1534   ac_retval=0
1535 else
1536   $as_echo "$as_me: failed program was:" >&5
1537 sed 's/^/| /' conftest.$ac_ext >&5
1538
1539         ac_retval=1
1540 fi
1541   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1542   return $ac_retval
1543
1544 } # ac_fn_c_try_compile
1545
1546 # ac_fn_cxx_try_compile LINENO
1547 # ----------------------------
1548 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_cxx_try_compile ()
1550 {
1551   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552   rm -f conftest.$ac_objext
1553   if { { ac_try="$ac_compile"
1554 case "(($ac_try" in
1555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556   *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560   (eval "$ac_compile") 2>conftest.err
1561   ac_status=$?
1562   if test -s conftest.err; then
1563     grep -v '^ *+' conftest.err >conftest.er1
1564     cat conftest.er1 >&5
1565     mv -f conftest.er1 conftest.err
1566   fi
1567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568   test $ac_status = 0; } && {
1569          test -z "$ac_cxx_werror_flag" ||
1570          test ! -s conftest.err
1571        } && test -s conftest.$ac_objext; then :
1572   ac_retval=0
1573 else
1574   $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577         ac_retval=1
1578 fi
1579   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1580   return $ac_retval
1581
1582 } # ac_fn_cxx_try_compile
1583
1584 # ac_fn_c_try_run LINENO
1585 # ----------------------
1586 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1587 # that executables *can* be run.
1588 ac_fn_c_try_run ()
1589 {
1590   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591   if { { ac_try="$ac_link"
1592 case "(($ac_try" in
1593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594   *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598   (eval "$ac_link") 2>&5
1599   ac_status=$?
1600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1602   { { case "(($ac_try" in
1603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604   *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608   (eval "$ac_try") 2>&5
1609   ac_status=$?
1610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611   test $ac_status = 0; }; }; then :
1612   ac_retval=0
1613 else
1614   $as_echo "$as_me: program exited with status $ac_status" >&5
1615        $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618        ac_retval=$ac_status
1619 fi
1620   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1621   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1622   return $ac_retval
1623
1624 } # ac_fn_c_try_run
1625
1626 # ac_fn_c_try_cpp LINENO
1627 # ----------------------
1628 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_cpp ()
1630 {
1631   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632   if { { ac_try="$ac_cpp conftest.$ac_ext"
1633 case "(($ac_try" in
1634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635   *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1640   ac_status=$?
1641   if test -s conftest.err; then
1642     grep -v '^ *+' conftest.err >conftest.er1
1643     cat conftest.er1 >&5
1644     mv -f conftest.er1 conftest.err
1645   fi
1646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647   test $ac_status = 0; } >/dev/null && {
1648          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649          test ! -s conftest.err
1650        }; then :
1651   ac_retval=0
1652 else
1653   $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656     ac_retval=1
1657 fi
1658   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1659   return $ac_retval
1660
1661 } # ac_fn_c_try_cpp
1662
1663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists and can be compiled using the include files in
1666 # INCLUDES, setting the cache variable VAR accordingly.
1667 ac_fn_c_check_header_compile ()
1668 {
1669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1673   $as_echo_n "(cached) " >&6
1674 else
1675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h.  */
1677 $4
1678 #include <$2>
1679 _ACEOF
1680 if ac_fn_c_try_compile "$LINENO"; then :
1681   eval "$3=yes"
1682 else
1683   eval "$3=no"
1684 fi
1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686 fi
1687 eval ac_res=\$$3
1688                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691
1692 } # ac_fn_c_check_header_compile
1693
1694 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1695 # --------------------------------------------
1696 # Tries to find the compile-time value of EXPR in a program that includes
1697 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1698 # computed
1699 ac_fn_c_compute_int ()
1700 {
1701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702   if test "$cross_compiling" = yes; then
1703     # Depending upon the size, compute the lo and hi bounds.
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h.  */
1706 $4
1707 int
1708 main ()
1709 {
1710 static int test_array [1 - 2 * !(($2) >= 0)];
1711 test_array [0] = 0
1712
1713   ;
1714   return 0;
1715 }
1716 _ACEOF
1717 if ac_fn_c_try_compile "$LINENO"; then :
1718   ac_lo=0 ac_mid=0
1719   while :; do
1720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h.  */
1722 $4
1723 int
1724 main ()
1725 {
1726 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1727 test_array [0] = 0
1728
1729   ;
1730   return 0;
1731 }
1732 _ACEOF
1733 if ac_fn_c_try_compile "$LINENO"; then :
1734   ac_hi=$ac_mid; break
1735 else
1736   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1737                         if test $ac_lo -le $ac_mid; then
1738                           ac_lo= ac_hi=
1739                           break
1740                         fi
1741                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1742 fi
1743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1744   done
1745 else
1746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h.  */
1748 $4
1749 int
1750 main ()
1751 {
1752 static int test_array [1 - 2 * !(($2) < 0)];
1753 test_array [0] = 0
1754
1755   ;
1756   return 0;
1757 }
1758 _ACEOF
1759 if ac_fn_c_try_compile "$LINENO"; then :
1760   ac_hi=-1 ac_mid=-1
1761   while :; do
1762     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h.  */
1764 $4
1765 int
1766 main ()
1767 {
1768 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1769 test_array [0] = 0
1770
1771   ;
1772   return 0;
1773 }
1774 _ACEOF
1775 if ac_fn_c_try_compile "$LINENO"; then :
1776   ac_lo=$ac_mid; break
1777 else
1778   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1779                         if test $ac_mid -le $ac_hi; then
1780                           ac_lo= ac_hi=
1781                           break
1782                         fi
1783                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786   done
1787 else
1788   ac_lo= ac_hi=
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 fi
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 # Binary search between lo and hi bounds.
1794 while test "x$ac_lo" != "x$ac_hi"; do
1795   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h.  */
1798 $4
1799 int
1800 main ()
1801 {
1802 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1803 test_array [0] = 0
1804
1805   ;
1806   return 0;
1807 }
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"; then :
1810   ac_hi=$ac_mid
1811 else
1812   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1813 fi
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 done
1816 case $ac_lo in #((
1817 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1818 '') ac_retval=1 ;;
1819 esac
1820   else
1821     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h.  */
1823 $4
1824 static long int longval () { return $2; }
1825 static unsigned long int ulongval () { return $2; }
1826 #include <stdio.h>
1827 #include <stdlib.h>
1828 int
1829 main ()
1830 {
1831
1832   FILE *f = fopen ("conftest.val", "w");
1833   if (! f)
1834     return 1;
1835   if (($2) < 0)
1836     {
1837       long int i = longval ();
1838       if (i != ($2))
1839         return 1;
1840       fprintf (f, "%ld", i);
1841     }
1842   else
1843     {
1844       unsigned long int i = ulongval ();
1845       if (i != ($2))
1846         return 1;
1847       fprintf (f, "%lu", i);
1848     }
1849   /* Do not output a trailing newline, as this causes \r\n confusion
1850      on some platforms.  */
1851   return ferror (f) || fclose (f) != 0;
1852
1853   ;
1854   return 0;
1855 }
1856 _ACEOF
1857 if ac_fn_c_try_run "$LINENO"; then :
1858   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1859 else
1860   ac_retval=1
1861 fi
1862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1863   conftest.$ac_objext conftest.beam conftest.$ac_ext
1864 rm -f conftest.val
1865
1866   fi
1867   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868   return $ac_retval
1869
1870 } # ac_fn_c_compute_int
1871
1872 # ac_fn_c_try_link LINENO
1873 # -----------------------
1874 # Try to link conftest.$ac_ext, and return whether this succeeded.
1875 ac_fn_c_try_link ()
1876 {
1877   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878   rm -f conftest.$ac_objext conftest$ac_exeext
1879   if { { ac_try="$ac_link"
1880 case "(($ac_try" in
1881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882   *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886   (eval "$ac_link") 2>conftest.err
1887   ac_status=$?
1888   if test -s conftest.err; then
1889     grep -v '^ *+' conftest.err >conftest.er1
1890     cat conftest.er1 >&5
1891     mv -f conftest.er1 conftest.err
1892   fi
1893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894   test $ac_status = 0; } && {
1895          test -z "$ac_c_werror_flag" ||
1896          test ! -s conftest.err
1897        } && test -s conftest$ac_exeext && {
1898          test "$cross_compiling" = yes ||
1899          $as_test_x conftest$ac_exeext
1900        }; then :
1901   ac_retval=0
1902 else
1903   $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1905
1906         ac_retval=1
1907 fi
1908   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1909   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1910   # interfere with the next link command; also delete a directory that is
1911   # left behind by Apple's compiler.  We do this before executing the actions.
1912   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914   return $ac_retval
1915
1916 } # ac_fn_c_try_link
1917
1918 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1919 # -------------------------------------------------------
1920 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1921 # the include files in INCLUDES and setting the cache variable VAR
1922 # accordingly.
1923 ac_fn_c_check_header_mongrel ()
1924 {
1925   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930   $as_echo_n "(cached) " >&6
1931 fi
1932 eval ac_res=\$$3
1933                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 else
1936   # Is the header compilable?
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1938 $as_echo_n "checking $2 usability... " >&6; }
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h.  */
1941 $4
1942 #include <$2>
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945   ac_header_compiler=yes
1946 else
1947   ac_header_compiler=no
1948 fi
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1951 $as_echo "$ac_header_compiler" >&6; }
1952
1953 # Is the header present?
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1955 $as_echo_n "checking $2 presence... " >&6; }
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h.  */
1958 #include <$2>
1959 _ACEOF
1960 if ac_fn_c_try_cpp "$LINENO"; then :
1961   ac_header_preproc=yes
1962 else
1963   ac_header_preproc=no
1964 fi
1965 rm -f conftest.err conftest.$ac_ext
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1967 $as_echo "$ac_header_preproc" >&6; }
1968
1969 # So?  What about this header?
1970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1971   yes:no: )
1972     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1973 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1974     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1975 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1976     ;;
1977   no:yes:* )
1978     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1979 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1980     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1981 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1982     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1983 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1984     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1985 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1986     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1988 ( cat <<\_ASBOX
1989 ## --------------------------------- ##
1990 ## Report this to ctsim-users@b9.com ##
1991 ## --------------------------------- ##
1992 _ASBOX
1993      ) | sed "s/^/$as_me: WARNING:     /" >&2
1994     ;;
1995 esac
1996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1999   $as_echo_n "(cached) " >&6
2000 else
2001   eval "$3=\$ac_header_compiler"
2002 fi
2003 eval ac_res=\$$3
2004                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005 $as_echo "$ac_res" >&6; }
2006 fi
2007   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2008
2009 } # ac_fn_c_check_header_mongrel
2010
2011 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2012 # -------------------------------------------
2013 # Tests whether TYPE exists after having included INCLUDES, setting cache
2014 # variable VAR accordingly.
2015 ac_fn_c_check_type ()
2016 {
2017   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2021   $as_echo_n "(cached) " >&6
2022 else
2023   eval "$3=no"
2024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h.  */
2026 $4
2027 int
2028 main ()
2029 {
2030 if (sizeof ($2))
2031          return 0;
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h.  */
2039 $4
2040 int
2041 main ()
2042 {
2043 if (sizeof (($2)))
2044             return 0;
2045   ;
2046   return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050
2051 else
2052   eval "$3=yes"
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 fi
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 fi
2058 eval ac_res=\$$3
2059                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062
2063 } # ac_fn_c_check_type
2064
2065 # ac_fn_c_check_func LINENO FUNC VAR
2066 # ----------------------------------
2067 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2068 ac_fn_c_check_func ()
2069 {
2070   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2074   $as_echo_n "(cached) " >&6
2075 else
2076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h.  */
2078 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2080 #define $2 innocuous_$2
2081
2082 /* System header to define __stub macros and hopefully few prototypes,
2083     which can conflict with char $2 (); below.
2084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2085     <limits.h> exists even on freestanding compilers.  */
2086
2087 #ifdef __STDC__
2088 # include <limits.h>
2089 #else
2090 # include <assert.h>
2091 #endif
2092
2093 #undef $2
2094
2095 /* Override any GCC internal prototype to avoid an error.
2096    Use char because int might match the return type of a GCC
2097    builtin and then its argument prototype would still apply.  */
2098 #ifdef __cplusplus
2099 extern "C"
2100 #endif
2101 char $2 ();
2102 /* The GNU C library defines this for functions which it implements
2103     to always fail with ENOSYS.  Some functions are actually named
2104     something starting with __ and the normal name is an alias.  */
2105 #if defined __stub_$2 || defined __stub___$2
2106 choke me
2107 #endif
2108
2109 int
2110 main ()
2111 {
2112 return $2 ();
2113   ;
2114   return 0;
2115 }
2116 _ACEOF
2117 if ac_fn_c_try_link "$LINENO"; then :
2118   eval "$3=yes"
2119 else
2120   eval "$3=no"
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext \
2123     conftest$ac_exeext conftest.$ac_ext
2124 fi
2125 eval ac_res=\$$3
2126                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129
2130 } # ac_fn_c_check_func
2131 cat >config.log <<_ACEOF
2132 This file contains any messages produced by compilers while
2133 running configure, to aid debugging if configure makes a mistake.
2134
2135 It was created by CTSim $as_me 5.1.3, which was
2136 generated by GNU Autoconf 2.64.  Invocation command line was
2137
2138   $ $0 $@
2139
2140 _ACEOF
2141 exec 5>>config.log
2142 {
2143 cat <<_ASUNAME
2144 ## --------- ##
2145 ## Platform. ##
2146 ## --------- ##
2147
2148 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2149 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2150 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2151 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2152 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2153
2154 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2155 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2156
2157 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2158 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2159 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2160 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2161 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2162 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2163 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2164
2165 _ASUNAME
2166
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2169 do
2170   IFS=$as_save_IFS
2171   test -z "$as_dir" && as_dir=.
2172     $as_echo "PATH: $as_dir"
2173   done
2174 IFS=$as_save_IFS
2175
2176 } >&5
2177
2178 cat >&5 <<_ACEOF
2179
2180
2181 ## ----------- ##
2182 ## Core tests. ##
2183 ## ----------- ##
2184
2185 _ACEOF
2186
2187
2188 # Keep a trace of the command line.
2189 # Strip out --no-create and --no-recursion so they do not pile up.
2190 # Strip out --silent because we don't want to record it for future runs.
2191 # Also quote any args containing shell meta-characters.
2192 # Make two passes to allow for proper duplicate-argument suppression.
2193 ac_configure_args=
2194 ac_configure_args0=
2195 ac_configure_args1=
2196 ac_must_keep_next=false
2197 for ac_pass in 1 2
2198 do
2199   for ac_arg
2200   do
2201     case $ac_arg in
2202     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2203     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2204     | -silent | --silent | --silen | --sile | --sil)
2205       continue ;;
2206     *\'*)
2207       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2208     esac
2209     case $ac_pass in
2210     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2211     2)
2212       as_fn_append ac_configure_args1 " '$ac_arg'"
2213       if test $ac_must_keep_next = true; then
2214         ac_must_keep_next=false # Got value, back to normal.
2215       else
2216         case $ac_arg in
2217           *=* | --config-cache | -C | -disable-* | --disable-* \
2218           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2219           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2220           | -with-* | --with-* | -without-* | --without-* | --x)
2221             case "$ac_configure_args0 " in
2222               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2223             esac
2224             ;;
2225           -* ) ac_must_keep_next=true ;;
2226         esac
2227       fi
2228       as_fn_append ac_configure_args " '$ac_arg'"
2229       ;;
2230     esac
2231   done
2232 done
2233 { ac_configure_args0=; unset ac_configure_args0;}
2234 { ac_configure_args1=; unset ac_configure_args1;}
2235
2236 # When interrupted or exit'd, cleanup temporary files, and complete
2237 # config.log.  We remove comments because anyway the quotes in there
2238 # would cause problems or look ugly.
2239 # WARNING: Use '\'' to represent an apostrophe within the trap.
2240 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2241 trap 'exit_status=$?
2242   # Save into config.log some information that might help in debugging.
2243   {
2244     echo
2245
2246     cat <<\_ASBOX
2247 ## ---------------- ##
2248 ## Cache variables. ##
2249 ## ---------------- ##
2250 _ASBOX
2251     echo
2252     # The following way of writing the cache mishandles newlines in values,
2253 (
2254   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2255     eval ac_val=\$$ac_var
2256     case $ac_val in #(
2257     *${as_nl}*)
2258       case $ac_var in #(
2259       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2260 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2261       esac
2262       case $ac_var in #(
2263       _ | IFS | as_nl) ;; #(
2264       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2265       *) { eval $ac_var=; unset $ac_var;} ;;
2266       esac ;;
2267     esac
2268   done
2269   (set) 2>&1 |
2270     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2271     *${as_nl}ac_space=\ *)
2272       sed -n \
2273         "s/'\''/'\''\\\\'\'''\''/g;
2274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2275       ;; #(
2276     *)
2277       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2278       ;;
2279     esac |
2280     sort
2281 )
2282     echo
2283
2284     cat <<\_ASBOX
2285 ## ----------------- ##
2286 ## Output variables. ##
2287 ## ----------------- ##
2288 _ASBOX
2289     echo
2290     for ac_var in $ac_subst_vars
2291     do
2292       eval ac_val=\$$ac_var
2293       case $ac_val in
2294       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2295       esac
2296       $as_echo "$ac_var='\''$ac_val'\''"
2297     done | sort
2298     echo
2299
2300     if test -n "$ac_subst_files"; then
2301       cat <<\_ASBOX
2302 ## ------------------- ##
2303 ## File substitutions. ##
2304 ## ------------------- ##
2305 _ASBOX
2306       echo
2307       for ac_var in $ac_subst_files
2308       do
2309         eval ac_val=\$$ac_var
2310         case $ac_val in
2311         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2312         esac
2313         $as_echo "$ac_var='\''$ac_val'\''"
2314       done | sort
2315       echo
2316     fi
2317
2318     if test -s confdefs.h; then
2319       cat <<\_ASBOX
2320 ## ----------- ##
2321 ## confdefs.h. ##
2322 ## ----------- ##
2323 _ASBOX
2324       echo
2325       cat confdefs.h
2326       echo
2327     fi
2328     test "$ac_signal" != 0 &&
2329       $as_echo "$as_me: caught signal $ac_signal"
2330     $as_echo "$as_me: exit $exit_status"
2331   } >&5
2332   rm -f core *.core core.conftest.* &&
2333     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2334     exit $exit_status
2335 ' 0
2336 for ac_signal in 1 2 13 15; do
2337   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2338 done
2339 ac_signal=0
2340
2341 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2342 rm -f -r conftest* confdefs.h
2343
2344 $as_echo "/* confdefs.h */" > confdefs.h
2345
2346 # Predefined preprocessor variables.
2347
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_NAME "$PACKAGE_NAME"
2350 _ACEOF
2351
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2354 _ACEOF
2355
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2358 _ACEOF
2359
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_STRING "$PACKAGE_STRING"
2362 _ACEOF
2363
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2366 _ACEOF
2367
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_URL "$PACKAGE_URL"
2370 _ACEOF
2371
2372
2373 # Let the site file select an alternate cache file if it wants to.
2374 # Prefer an explicitly selected file to automatically selected ones.
2375 ac_site_file1=NONE
2376 ac_site_file2=NONE
2377 if test -n "$CONFIG_SITE"; then
2378   ac_site_file1=$CONFIG_SITE
2379 elif test "x$prefix" != xNONE; then
2380   ac_site_file1=$prefix/share/config.site
2381   ac_site_file2=$prefix/etc/config.site
2382 else
2383   ac_site_file1=$ac_default_prefix/share/config.site
2384   ac_site_file2=$ac_default_prefix/etc/config.site
2385 fi
2386 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2387 do
2388   test "x$ac_site_file" = xNONE && continue
2389   if test -r "$ac_site_file"; then
2390     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2391 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2392     sed 's/^/| /' "$ac_site_file" >&5
2393     . "$ac_site_file"
2394   fi
2395 done
2396
2397 if test -r "$cache_file"; then
2398   # Some versions of bash will fail to source /dev/null (special
2399   # files actually), so we avoid doing that.
2400   if test -f "$cache_file"; then
2401     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2402 $as_echo "$as_me: loading cache $cache_file" >&6;}
2403     case $cache_file in
2404       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2405       *)                      . "./$cache_file";;
2406     esac
2407   fi
2408 else
2409   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2410 $as_echo "$as_me: creating cache $cache_file" >&6;}
2411   >$cache_file
2412 fi
2413
2414 # Check that the precious variables saved in the cache have kept the same
2415 # value.
2416 ac_cache_corrupted=false
2417 for ac_var in $ac_precious_vars; do
2418   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2419   eval ac_new_set=\$ac_env_${ac_var}_set
2420   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2421   eval ac_new_val=\$ac_env_${ac_var}_value
2422   case $ac_old_set,$ac_new_set in
2423     set,)
2424       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2425 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2426       ac_cache_corrupted=: ;;
2427     ,set)
2428       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2429 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2430       ac_cache_corrupted=: ;;
2431     ,);;
2432     *)
2433       if test "x$ac_old_val" != "x$ac_new_val"; then
2434         # differences in whitespace do not lead to failure.
2435         ac_old_val_w=`echo x $ac_old_val`
2436         ac_new_val_w=`echo x $ac_new_val`
2437         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2438           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2439 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2440           ac_cache_corrupted=:
2441         else
2442           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2443 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2444           eval $ac_var=\$ac_old_val
2445         fi
2446         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2447 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2448         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2449 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2450       fi;;
2451   esac
2452   # Pass precious variables to config.status.
2453   if test "$ac_new_set" = set; then
2454     case $ac_new_val in
2455     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2456     *) ac_arg=$ac_var=$ac_new_val ;;
2457     esac
2458     case " $ac_configure_args " in
2459       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2460       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2461     esac
2462   fi
2463 done
2464 if $ac_cache_corrupted; then
2465   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2468 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2469   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2470 fi
2471 ## -------------------- ##
2472 ## Main body of script. ##
2473 ## -------------------- ##
2474
2475 ac_ext=c
2476 ac_cpp='$CPP $CPPFLAGS'
2477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2480
2481
2482
2483
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2485 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2486     # Check whether --enable-maintainer-mode was given.
2487 if test "${enable_maintainer_mode+set}" = set; then :
2488   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2489 else
2490   USE_MAINTAINER_MODE=no
2491 fi
2492
2493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2494 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2495    if test $USE_MAINTAINER_MODE = yes; then
2496   MAINTAINER_MODE_TRUE=
2497   MAINTAINER_MODE_FALSE='#'
2498 else
2499   MAINTAINER_MODE_TRUE='#'
2500   MAINTAINER_MODE_FALSE=
2501 fi
2502
2503   MAINT=$MAINTAINER_MODE_TRUE
2504
2505
2506 am__api_version='1.11'
2507
2508 ac_aux_dir=
2509 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2510   for ac_t in install-sh install.sh shtool; do
2511     if test -f "$ac_dir/$ac_t"; then
2512       ac_aux_dir=$ac_dir
2513       ac_install_sh="$ac_aux_dir/$ac_t -c"
2514       break 2
2515     fi
2516   done
2517 done
2518 if test -z "$ac_aux_dir"; then
2519   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2520 fi
2521
2522 # These three variables are undocumented and unsupported,
2523 # and are intended to be withdrawn in a future Autoconf release.
2524 # They can cause serious problems if a builder's source tree is in a directory
2525 # whose full name contains unusual characters.
2526 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2527 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2528 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2529
2530
2531 # Find a good install program.  We prefer a C program (faster),
2532 # so one script is as good as another.  But avoid the broken or
2533 # incompatible versions:
2534 # SysV /etc/install, /usr/sbin/install
2535 # SunOS /usr/etc/install
2536 # IRIX /sbin/install
2537 # AIX /bin/install
2538 # AmigaOS /C/install, which installs bootblocks on floppy discs
2539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2542 # OS/2's system install, which has a completely different semantic
2543 # ./install, which can be erroneously created by make from ./install.sh.
2544 # Reject install programs that cannot install multiple files.
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2546 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2547 if test -z "$INSTALL"; then
2548 if test "${ac_cv_path_install+set}" = set; then :
2549   $as_echo_n "(cached) " >&6
2550 else
2551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2553 do
2554   IFS=$as_save_IFS
2555   test -z "$as_dir" && as_dir=.
2556     # Account for people who put trailing slashes in PATH elements.
2557 case $as_dir/ in #((
2558   ./ | .// | /[cC]/* | \
2559   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2560   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2561   /usr/ucb/* ) ;;
2562   *)
2563     # OSF1 and SCO ODT 3.0 have their own names for install.
2564     # Don't use installbsd from OSF since it installs stuff as root
2565     # by default.
2566     for ac_prog in ginstall scoinst install; do
2567       for ac_exec_ext in '' $ac_executable_extensions; do
2568         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2569           if test $ac_prog = install &&
2570             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2571             # AIX install.  It has an incompatible calling convention.
2572             :
2573           elif test $ac_prog = install &&
2574             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2575             # program-specific install script used by HP pwplus--don't use.
2576             :
2577           else
2578             rm -rf conftest.one conftest.two conftest.dir
2579             echo one > conftest.one
2580             echo two > conftest.two
2581             mkdir conftest.dir
2582             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2583               test -s conftest.one && test -s conftest.two &&
2584               test -s conftest.dir/conftest.one &&
2585               test -s conftest.dir/conftest.two
2586             then
2587               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2588               break 3
2589             fi
2590           fi
2591         fi
2592       done
2593     done
2594     ;;
2595 esac
2596
2597   done
2598 IFS=$as_save_IFS
2599
2600 rm -rf conftest.one conftest.two conftest.dir
2601
2602 fi
2603   if test "${ac_cv_path_install+set}" = set; then
2604     INSTALL=$ac_cv_path_install
2605   else
2606     # As a last resort, use the slow shell script.  Don't cache a
2607     # value for INSTALL within a source directory, because that will
2608     # break other packages using the cache if that directory is
2609     # removed, or if the value is a relative name.
2610     INSTALL=$ac_install_sh
2611   fi
2612 fi
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2614 $as_echo "$INSTALL" >&6; }
2615
2616 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2617 # It thinks the first close brace ends the variable substitution.
2618 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2619
2620 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2621
2622 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2623
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2625 $as_echo_n "checking whether build environment is sane... " >&6; }
2626 # Just in case
2627 sleep 1
2628 echo timestamp > conftest.file
2629 # Reject unsafe characters in $srcdir or the absolute working directory
2630 # name.  Accept space and tab only in the latter.
2631 am_lf='
2632 '
2633 case `pwd` in
2634   *[\\\"\#\$\&\'\`$am_lf]*)
2635     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2636 esac
2637 case $srcdir in
2638   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2639     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2640 esac
2641
2642 # Do `set' in a subshell so we don't clobber the current shell's
2643 # arguments.  Must try -L first in case configure is actually a
2644 # symlink; some systems play weird games with the mod time of symlinks
2645 # (eg FreeBSD returns the mod time of the symlink's containing
2646 # directory).
2647 if (
2648    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2649    if test "$*" = "X"; then
2650       # -L didn't work.
2651       set X `ls -t "$srcdir/configure" conftest.file`
2652    fi
2653    rm -f conftest.file
2654    if test "$*" != "X $srcdir/configure conftest.file" \
2655       && test "$*" != "X conftest.file $srcdir/configure"; then
2656
2657       # If neither matched, then we have a broken ls.  This can happen
2658       # if, for instance, CONFIG_SHELL is bash and it inherits a
2659       # broken ls alias from the environment.  This has actually
2660       # happened.  Such a system could not be considered "sane".
2661       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2662 alias in your environment" "$LINENO" 5
2663    fi
2664
2665    test "$2" = conftest.file
2666    )
2667 then
2668    # Ok.
2669    :
2670 else
2671    as_fn_error "newly created file is older than distributed files!
2672 Check your system clock" "$LINENO" 5
2673 fi
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2675 $as_echo "yes" >&6; }
2676 test "$program_prefix" != NONE &&
2677   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2678 # Use a double $ so make ignores it.
2679 test "$program_suffix" != NONE &&
2680   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2681 # Double any \ or $.
2682 # By default was `s,x,x', remove it if useless.
2683 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2684 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2685
2686 # expand $ac_aux_dir to an absolute path
2687 am_aux_dir=`cd $ac_aux_dir && pwd`
2688
2689 if test x"${MISSING+set}" != xset; then
2690   case $am_aux_dir in
2691   *\ * | *\     *)
2692     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2693   *)
2694     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2695   esac
2696 fi
2697 # Use eval to expand $SHELL
2698 if eval "$MISSING --run true"; then
2699   am_missing_run="$MISSING --run "
2700 else
2701   am_missing_run=
2702   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2703 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2704 fi
2705
2706 if test x"${install_sh}" != xset; then
2707   case $am_aux_dir in
2708   *\ * | *\     *)
2709     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2710   *)
2711     install_sh="\${SHELL} $am_aux_dir/install-sh"
2712   esac
2713 fi
2714
2715 # Installed binaries are usually stripped using `strip' when the user
2716 # run `make install-strip'.  However `strip' might not be the right
2717 # tool to use in cross-compilation environments, therefore Automake
2718 # will honor the `STRIP' environment variable to overrule this program.
2719 if test "$cross_compiling" != no; then
2720   if test -n "$ac_tool_prefix"; then
2721   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2722 set dummy ${ac_tool_prefix}strip; ac_word=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if test "${ac_cv_prog_STRIP+set}" = set; then :
2726   $as_echo_n "(cached) " >&6
2727 else
2728   if test -n "$STRIP"; then
2729   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734   IFS=$as_save_IFS
2735   test -z "$as_dir" && as_dir=.
2736     for ac_exec_ext in '' $ac_executable_extensions; do
2737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740     break 2
2741   fi
2742 done
2743   done
2744 IFS=$as_save_IFS
2745
2746 fi
2747 fi
2748 STRIP=$ac_cv_prog_STRIP
2749 if test -n "$STRIP"; then
2750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2751 $as_echo "$STRIP" >&6; }
2752 else
2753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2755 fi
2756
2757
2758 fi
2759 if test -z "$ac_cv_prog_STRIP"; then
2760   ac_ct_STRIP=$STRIP
2761   # Extract the first word of "strip", so it can be a program name with args.
2762 set dummy strip; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2766   $as_echo_n "(cached) " >&6
2767 else
2768   if test -n "$ac_ct_STRIP"; then
2769   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774   IFS=$as_save_IFS
2775   test -z "$as_dir" && as_dir=.
2776     for ac_exec_ext in '' $ac_executable_extensions; do
2777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778     ac_cv_prog_ac_ct_STRIP="strip"
2779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780     break 2
2781   fi
2782 done
2783   done
2784 IFS=$as_save_IFS
2785
2786 fi
2787 fi
2788 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2789 if test -n "$ac_ct_STRIP"; then
2790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2791 $as_echo "$ac_ct_STRIP" >&6; }
2792 else
2793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2795 fi
2796
2797   if test "x$ac_ct_STRIP" = x; then
2798     STRIP=":"
2799   else
2800     case $cross_compiling:$ac_tool_warned in
2801 yes:)
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2804 ac_tool_warned=yes ;;
2805 esac
2806     STRIP=$ac_ct_STRIP
2807   fi
2808 else
2809   STRIP="$ac_cv_prog_STRIP"
2810 fi
2811
2812 fi
2813 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2814
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2816 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2817 if test -z "$MKDIR_P"; then
2818   if test "${ac_cv_path_mkdir+set}" = set; then :
2819   $as_echo_n "(cached) " >&6
2820 else
2821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826     for ac_prog in mkdir gmkdir; do
2827          for ac_exec_ext in '' $ac_executable_extensions; do
2828            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2829            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2830              'mkdir (GNU coreutils) '* | \
2831              'mkdir (coreutils) '* | \
2832              'mkdir (fileutils) '4.1*)
2833                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2834                break 3;;
2835            esac
2836          done
2837        done
2838   done
2839 IFS=$as_save_IFS
2840
2841 fi
2842
2843   if test "${ac_cv_path_mkdir+set}" = set; then
2844     MKDIR_P="$ac_cv_path_mkdir -p"
2845   else
2846     # As a last resort, use the slow shell script.  Don't cache a
2847     # value for MKDIR_P within a source directory, because that will
2848     # break other packages using the cache if that directory is
2849     # removed, or if the value is a relative name.
2850     test -d ./--version && rmdir ./--version
2851     MKDIR_P="$ac_install_sh -d"
2852   fi
2853 fi
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2855 $as_echo "$MKDIR_P" >&6; }
2856
2857 mkdir_p="$MKDIR_P"
2858 case $mkdir_p in
2859   [\\/$]* | ?:[\\/]*) ;;
2860   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2861 esac
2862
2863 for ac_prog in gawk mawk nawk awk
2864 do
2865   # Extract the first word of "$ac_prog", so it can be a program name with args.
2866 set dummy $ac_prog; ac_word=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if test "${ac_cv_prog_AWK+set}" = set; then :
2870   $as_echo_n "(cached) " >&6
2871 else
2872   if test -n "$AWK"; then
2873   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878   IFS=$as_save_IFS
2879   test -z "$as_dir" && as_dir=.
2880     for ac_exec_ext in '' $ac_executable_extensions; do
2881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2882     ac_cv_prog_AWK="$ac_prog"
2883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884     break 2
2885   fi
2886 done
2887   done
2888 IFS=$as_save_IFS
2889
2890 fi
2891 fi
2892 AWK=$ac_cv_prog_AWK
2893 if test -n "$AWK"; then
2894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2895 $as_echo "$AWK" >&6; }
2896 else
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2899 fi
2900
2901
2902   test -n "$AWK" && break
2903 done
2904
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2906 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2907 set x ${MAKE-make}
2908 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2909 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2910   $as_echo_n "(cached) " >&6
2911 else
2912   cat >conftest.make <<\_ACEOF
2913 SHELL = /bin/sh
2914 all:
2915         @echo '@@@%%%=$(MAKE)=@@@%%%'
2916 _ACEOF
2917 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2918 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2919   *@@@%%%=?*=@@@%%%*)
2920     eval ac_cv_prog_make_${ac_make}_set=yes;;
2921   *)
2922     eval ac_cv_prog_make_${ac_make}_set=no;;
2923 esac
2924 rm -f conftest.make
2925 fi
2926 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2928 $as_echo "yes" >&6; }
2929   SET_MAKE=
2930 else
2931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2933   SET_MAKE="MAKE=${MAKE-make}"
2934 fi
2935
2936 rm -rf .tst 2>/dev/null
2937 mkdir .tst 2>/dev/null
2938 if test -d .tst; then
2939   am__leading_dot=.
2940 else
2941   am__leading_dot=_
2942 fi
2943 rmdir .tst 2>/dev/null
2944
2945 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2946   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2947   # is not polluted with repeated "-I."
2948   am__isrc=' -I$(srcdir)'
2949   # test to see if srcdir already configured
2950   if test -f $srcdir/config.status; then
2951     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2952   fi
2953 fi
2954
2955 # test whether we have cygpath
2956 if test -z "$CYGPATH_W"; then
2957   if (cygpath --version) >/dev/null 2>/dev/null; then
2958     CYGPATH_W='cygpath -w'
2959   else
2960     CYGPATH_W=echo
2961   fi
2962 fi
2963
2964
2965 # Define the identity of the package.
2966  PACKAGE='ctsim'
2967  VERSION='5.1.3'
2968
2969
2970 cat >>confdefs.h <<_ACEOF
2971 #define PACKAGE "$PACKAGE"
2972 _ACEOF
2973
2974
2975 cat >>confdefs.h <<_ACEOF
2976 #define VERSION "$VERSION"
2977 _ACEOF
2978
2979 # Some tools Automake needs.
2980
2981 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2982
2983
2984 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2985
2986
2987 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2988
2989
2990 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2991
2992
2993 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2994
2995 # We need awk for the "check" target.  The system "awk" is bad on
2996 # some platforms.
2997 # Always define AMTAR for backward compatibility.
2998
2999 AMTAR=${AMTAR-"${am_missing_run}tar"}
3000
3001 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3002
3003
3004
3005
3006
3007 ac_config_headers="$ac_config_headers config.h"
3008
3009
3010 for ac_prog in gawk mawk nawk awk
3011 do
3012   # Extract the first word of "$ac_prog", so it can be a program name with args.
3013 set dummy $ac_prog; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if test "${ac_cv_prog_AWK+set}" = set; then :
3017   $as_echo_n "(cached) " >&6
3018 else
3019   if test -n "$AWK"; then
3020   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3024 do
3025   IFS=$as_save_IFS
3026   test -z "$as_dir" && as_dir=.
3027     for ac_exec_ext in '' $ac_executable_extensions; do
3028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029     ac_cv_prog_AWK="$ac_prog"
3030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031     break 2
3032   fi
3033 done
3034   done
3035 IFS=$as_save_IFS
3036
3037 fi
3038 fi
3039 AWK=$ac_cv_prog_AWK
3040 if test -n "$AWK"; then
3041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3042 $as_echo "$AWK" >&6; }
3043 else
3044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3046 fi
3047
3048
3049   test -n "$AWK" && break
3050 done
3051
3052
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3054 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3055 set x ${MAKE-make}
3056 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3057 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3058   $as_echo_n "(cached) " >&6
3059 else
3060   cat >conftest.make <<\_ACEOF
3061 SHELL = /bin/sh
3062 all:
3063         @echo '@@@%%%=$(MAKE)=@@@%%%'
3064 _ACEOF
3065 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3066 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3067   *@@@%%%=?*=@@@%%%*)
3068     eval ac_cv_prog_make_${ac_make}_set=yes;;
3069   *)
3070     eval ac_cv_prog_make_${ac_make}_set=no;;
3071 esac
3072 rm -f conftest.make
3073 fi
3074 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3076 $as_echo "yes" >&6; }
3077   SET_MAKE=
3078 else
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081   SET_MAKE="MAKE=${MAKE-make}"
3082 fi
3083
3084 if test -n "$ac_tool_prefix"; then
3085   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3086 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3090   $as_echo_n "(cached) " >&6
3091 else
3092   if test -n "$RANLIB"; then
3093   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098   IFS=$as_save_IFS
3099   test -z "$as_dir" && as_dir=.
3100     for ac_exec_ext in '' $ac_executable_extensions; do
3101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104     break 2
3105   fi
3106 done
3107   done
3108 IFS=$as_save_IFS
3109
3110 fi
3111 fi
3112 RANLIB=$ac_cv_prog_RANLIB
3113 if test -n "$RANLIB"; then
3114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3115 $as_echo "$RANLIB" >&6; }
3116 else
3117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 fi
3120
3121
3122 fi
3123 if test -z "$ac_cv_prog_RANLIB"; then
3124   ac_ct_RANLIB=$RANLIB
3125   # Extract the first word of "ranlib", so it can be a program name with args.
3126 set dummy ranlib; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3130   $as_echo_n "(cached) " >&6
3131 else
3132   if test -n "$ac_ct_RANLIB"; then
3133   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138   IFS=$as_save_IFS
3139   test -z "$as_dir" && as_dir=.
3140     for ac_exec_ext in '' $ac_executable_extensions; do
3141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3142     ac_cv_prog_ac_ct_RANLIB="ranlib"
3143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144     break 2
3145   fi
3146 done
3147   done
3148 IFS=$as_save_IFS
3149
3150 fi
3151 fi
3152 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3153 if test -n "$ac_ct_RANLIB"; then
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3155 $as_echo "$ac_ct_RANLIB" >&6; }
3156 else
3157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3159 fi
3160
3161   if test "x$ac_ct_RANLIB" = x; then
3162     RANLIB=":"
3163   else
3164     case $cross_compiling:$ac_tool_warned in
3165 yes:)
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3168 ac_tool_warned=yes ;;
3169 esac
3170     RANLIB=$ac_ct_RANLIB
3171   fi
3172 else
3173   RANLIB="$ac_cv_prog_RANLIB"
3174 fi
3175
3176
3177 ac_ext=c
3178 ac_cpp='$CPP $CPPFLAGS'
3179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3182 if test -n "$ac_tool_prefix"; then
3183   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3184 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if test "${ac_cv_prog_CC+set}" = set; then :
3188   $as_echo_n "(cached) " >&6
3189 else
3190   if test -n "$CC"; then
3191   ac_cv_prog_CC="$CC" # Let the user override the test.
3192 else
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3195 do
3196   IFS=$as_save_IFS
3197   test -z "$as_dir" && as_dir=.
3198     for ac_exec_ext in '' $ac_executable_extensions; do
3199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3200     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202     break 2
3203   fi
3204 done
3205   done
3206 IFS=$as_save_IFS
3207
3208 fi
3209 fi
3210 CC=$ac_cv_prog_CC
3211 if test -n "$CC"; then
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3213 $as_echo "$CC" >&6; }
3214 else
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 fi
3218
3219
3220 fi
3221 if test -z "$ac_cv_prog_CC"; then
3222   ac_ct_CC=$CC
3223   # Extract the first word of "gcc", so it can be a program name with args.
3224 set dummy gcc; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3228   $as_echo_n "(cached) " >&6
3229 else
3230   if test -n "$ac_ct_CC"; then
3231   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3232 else
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH
3235 do
3236   IFS=$as_save_IFS
3237   test -z "$as_dir" && as_dir=.
3238     for ac_exec_ext in '' $ac_executable_extensions; do
3239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3240     ac_cv_prog_ac_ct_CC="gcc"
3241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242     break 2
3243   fi
3244 done
3245   done
3246 IFS=$as_save_IFS
3247
3248 fi
3249 fi
3250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3251 if test -n "$ac_ct_CC"; then
3252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3253 $as_echo "$ac_ct_CC" >&6; }
3254 else
3255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257 fi
3258
3259   if test "x$ac_ct_CC" = x; then
3260     CC=""
3261   else
3262     case $cross_compiling:$ac_tool_warned in
3263 yes:)
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3266 ac_tool_warned=yes ;;
3267 esac
3268     CC=$ac_ct_CC
3269   fi
3270 else
3271   CC="$ac_cv_prog_CC"
3272 fi
3273
3274 if test -z "$CC"; then
3275           if test -n "$ac_tool_prefix"; then
3276     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3277 set dummy ${ac_tool_prefix}cc; ac_word=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if test "${ac_cv_prog_CC+set}" = set; then :
3281   $as_echo_n "(cached) " >&6
3282 else
3283   if test -n "$CC"; then
3284   ac_cv_prog_CC="$CC" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289   IFS=$as_save_IFS
3290   test -z "$as_dir" && as_dir=.
3291     for ac_exec_ext in '' $ac_executable_extensions; do
3292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293     ac_cv_prog_CC="${ac_tool_prefix}cc"
3294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295     break 2
3296   fi
3297 done
3298   done
3299 IFS=$as_save_IFS
3300
3301 fi
3302 fi
3303 CC=$ac_cv_prog_CC
3304 if test -n "$CC"; then
3305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3306 $as_echo "$CC" >&6; }
3307 else
3308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 fi
3311
3312
3313   fi
3314 fi
3315 if test -z "$CC"; then
3316   # Extract the first word of "cc", so it can be a program name with args.
3317 set dummy cc; ac_word=$2
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319 $as_echo_n "checking for $ac_word... " >&6; }
3320 if test "${ac_cv_prog_CC+set}" = set; then :
3321   $as_echo_n "(cached) " >&6
3322 else
3323   if test -n "$CC"; then
3324   ac_cv_prog_CC="$CC" # Let the user override the test.
3325 else
3326   ac_prog_rejected=no
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3329 do
3330   IFS=$as_save_IFS
3331   test -z "$as_dir" && as_dir=.
3332     for ac_exec_ext in '' $ac_executable_extensions; do
3333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3335        ac_prog_rejected=yes
3336        continue
3337      fi
3338     ac_cv_prog_CC="cc"
3339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340     break 2
3341   fi
3342 done
3343   done
3344 IFS=$as_save_IFS
3345
3346 if test $ac_prog_rejected = yes; then
3347   # We found a bogon in the path, so make sure we never use it.
3348   set dummy $ac_cv_prog_CC
3349   shift
3350   if test $# != 0; then
3351     # We chose a different compiler from the bogus one.
3352     # However, it has the same basename, so the bogon will be chosen
3353     # first if we set CC to just the basename; use the full file name.
3354     shift
3355     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3356   fi
3357 fi
3358 fi
3359 fi
3360 CC=$ac_cv_prog_CC
3361 if test -n "$CC"; then
3362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363 $as_echo "$CC" >&6; }
3364 else
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 fi
3368
3369
3370 fi
3371 if test -z "$CC"; then
3372   if test -n "$ac_tool_prefix"; then
3373   for ac_prog in cl.exe
3374   do
3375     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if test "${ac_cv_prog_CC+set}" = set; then :
3380   $as_echo_n "(cached) " >&6
3381 else
3382   if test -n "$CC"; then
3383   ac_cv_prog_CC="$CC" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390     for ac_exec_ext in '' $ac_executable_extensions; do
3391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397   done
3398 IFS=$as_save_IFS
3399
3400 fi
3401 fi
3402 CC=$ac_cv_prog_CC
3403 if test -n "$CC"; then
3404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405 $as_echo "$CC" >&6; }
3406 else
3407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3409 fi
3410
3411
3412     test -n "$CC" && break
3413   done
3414 fi
3415 if test -z "$CC"; then
3416   ac_ct_CC=$CC
3417   for ac_prog in cl.exe
3418 do
3419   # Extract the first word of "$ac_prog", so it can be a program name with args.
3420 set dummy $ac_prog; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3424   $as_echo_n "(cached) " >&6
3425 else
3426   if test -n "$ac_ct_CC"; then
3427   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3428 else
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3431 do
3432   IFS=$as_save_IFS
3433   test -z "$as_dir" && as_dir=.
3434     for ac_exec_ext in '' $ac_executable_extensions; do
3435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436     ac_cv_prog_ac_ct_CC="$ac_prog"
3437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438     break 2
3439   fi
3440 done
3441   done
3442 IFS=$as_save_IFS
3443
3444 fi
3445 fi
3446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3447 if test -n "$ac_ct_CC"; then
3448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3449 $as_echo "$ac_ct_CC" >&6; }
3450 else
3451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3453 fi
3454
3455
3456   test -n "$ac_ct_CC" && break
3457 done
3458
3459   if test "x$ac_ct_CC" = x; then
3460     CC=""
3461   else
3462     case $cross_compiling:$ac_tool_warned in
3463 yes:)
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3466 ac_tool_warned=yes ;;
3467 esac
3468     CC=$ac_ct_CC
3469   fi
3470 fi
3471
3472 fi
3473
3474
3475 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3477 as_fn_error "no acceptable C compiler found in \$PATH
3478 See \`config.log' for more details." "$LINENO" 5; }
3479
3480 # Provide some information about the compiler.
3481 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3482 set X $ac_compile
3483 ac_compiler=$2
3484 for ac_option in --version -v -V -qversion; do
3485   { { ac_try="$ac_compiler $ac_option >&5"
3486 case "(($ac_try" in
3487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488   *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 $as_echo "$ac_try_echo"; } >&5
3492   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3493   ac_status=$?
3494   if test -s conftest.err; then
3495     sed '10a\
3496 ... rest of stderr output deleted ...
3497          10q' conftest.err >conftest.er1
3498     cat conftest.er1 >&5
3499     rm -f conftest.er1 conftest.err
3500   fi
3501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502   test $ac_status = 0; }
3503 done
3504
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h.  */
3507 #include <stdio.h>
3508 int
3509 main ()
3510 {
3511 FILE *f = fopen ("conftest.out", "w");
3512  return ferror (f) || fclose (f) != 0;
3513
3514   ;
3515   return 0;
3516 }
3517 _ACEOF
3518 ac_clean_files_save=$ac_clean_files
3519 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3520 # Try to create an executable without -o first, disregard a.out.
3521 # It will help us diagnose broken compilers, and finding out an intuition
3522 # of exeext.
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3524 $as_echo_n "checking for C compiler default output file name... " >&6; }
3525 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3526
3527 # The possible output files:
3528 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3529
3530 ac_rmfiles=
3531 for ac_file in $ac_files
3532 do
3533   case $ac_file in
3534     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3535     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3536   esac
3537 done
3538 rm -f $ac_rmfiles
3539
3540 if { { ac_try="$ac_link_default"
3541 case "(($ac_try" in
3542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543   *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547   (eval "$ac_link_default") 2>&5
3548   ac_status=$?
3549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550   test $ac_status = 0; }; then :
3551   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3552 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3553 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3554 # so that the user can short-circuit this test for compilers unknown to
3555 # Autoconf.
3556 for ac_file in $ac_files ''
3557 do
3558   test -f "$ac_file" || continue
3559   case $ac_file in
3560     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3561         ;;
3562     [ab].out )
3563         # We found the default executable, but exeext='' is most
3564         # certainly right.
3565         break;;
3566     *.* )
3567         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3568         then :; else
3569            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3570         fi
3571         # We set ac_cv_exeext here because the later test for it is not
3572         # safe: cross compilers may not add the suffix if given an `-o'
3573         # argument, so we may need to know it at that point already.
3574         # Even if this section looks crufty: it has the advantage of
3575         # actually working.
3576         break;;
3577     * )
3578         break;;
3579   esac
3580 done
3581 test "$ac_cv_exeext" = no && ac_cv_exeext=
3582
3583 else
3584   ac_file=''
3585 fi
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3587 $as_echo "$ac_file" >&6; }
3588 if test -z "$ac_file"; then :
3589   $as_echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3591
3592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 { as_fn_set_status 77
3595 as_fn_error "C compiler cannot create executables
3596 See \`config.log' for more details." "$LINENO" 5; }; }
3597 fi
3598 ac_exeext=$ac_cv_exeext
3599
3600 # Check that the compiler produces executables we can run.  If not, either
3601 # the compiler is broken, or we cross compile.
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3603 $as_echo_n "checking whether the C compiler works... " >&6; }
3604 # If not cross compiling, check that we can run a simple program.
3605 if test "$cross_compiling" != yes; then
3606   if { ac_try='./$ac_file'
3607   { { case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613   (eval "$ac_try") 2>&5
3614   ac_status=$?
3615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616   test $ac_status = 0; }; }; then
3617     cross_compiling=no
3618   else
3619     if test "$cross_compiling" = maybe; then
3620         cross_compiling=yes
3621     else
3622         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error "cannot run C compiled programs.
3625 If you meant to cross compile, use \`--host'.
3626 See \`config.log' for more details." "$LINENO" 5; }
3627     fi
3628   fi
3629 fi
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3631 $as_echo "yes" >&6; }
3632
3633 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3634 ac_clean_files=$ac_clean_files_save
3635 # Check that the compiler produces executables we can run.  If not, either
3636 # the compiler is broken, or we cross compile.
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3638 $as_echo_n "checking whether we are cross compiling... " >&6; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3640 $as_echo "$cross_compiling" >&6; }
3641
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3643 $as_echo_n "checking for suffix of executables... " >&6; }
3644 if { { ac_try="$ac_link"
3645 case "(($ac_try" in
3646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647   *) ac_try_echo=$ac_try;;
3648 esac
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651   (eval "$ac_link") 2>&5
3652   ac_status=$?
3653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654   test $ac_status = 0; }; then :
3655   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3656 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3657 # work properly (i.e., refer to `conftest.exe'), while it won't with
3658 # `rm'.
3659 for ac_file in conftest.exe conftest conftest.*; do
3660   test -f "$ac_file" || continue
3661   case $ac_file in
3662     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3663     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3664           break;;
3665     * ) break;;
3666   esac
3667 done
3668 else
3669   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error "cannot compute suffix of executables: cannot compile and link
3672 See \`config.log' for more details." "$LINENO" 5; }
3673 fi
3674 rm -f conftest$ac_cv_exeext
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3676 $as_echo "$ac_cv_exeext" >&6; }
3677
3678 rm -f conftest.$ac_ext
3679 EXEEXT=$ac_cv_exeext
3680 ac_exeext=$EXEEXT
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3682 $as_echo_n "checking for suffix of object files... " >&6; }
3683 if test "${ac_cv_objext+set}" = set; then :
3684   $as_echo_n "(cached) " >&6
3685 else
3686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h.  */
3688
3689 int
3690 main ()
3691 {
3692
3693   ;
3694   return 0;
3695 }
3696 _ACEOF
3697 rm -f conftest.o conftest.obj
3698 if { { ac_try="$ac_compile"
3699 case "(($ac_try" in
3700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701   *) ac_try_echo=$ac_try;;
3702 esac
3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 $as_echo "$ac_try_echo"; } >&5
3705   (eval "$ac_compile") 2>&5
3706   ac_status=$?
3707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708   test $ac_status = 0; }; then :
3709   for ac_file in conftest.o conftest.obj conftest.*; do
3710   test -f "$ac_file" || continue;
3711   case $ac_file in
3712     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3713     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3714        break;;
3715   esac
3716 done
3717 else
3718   $as_echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error "cannot compute suffix of object files: cannot compile
3724 See \`config.log' for more details." "$LINENO" 5; }
3725 fi
3726 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3729 $as_echo "$ac_cv_objext" >&6; }
3730 OBJEXT=$ac_cv_objext
3731 ac_objext=$OBJEXT
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3733 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3734 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3735   $as_echo_n "(cached) " >&6
3736 else
3737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h.  */
3739
3740 int
3741 main ()
3742 {
3743 #ifndef __GNUC__
3744        choke me
3745 #endif
3746
3747   ;
3748   return 0;
3749 }
3750 _ACEOF
3751 if ac_fn_c_try_compile "$LINENO"; then :
3752   ac_compiler_gnu=yes
3753 else
3754   ac_compiler_gnu=no
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3758
3759 fi
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3761 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3762 if test $ac_compiler_gnu = yes; then
3763   GCC=yes
3764 else
3765   GCC=
3766 fi
3767 ac_test_CFLAGS=${CFLAGS+set}
3768 ac_save_CFLAGS=$CFLAGS
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3770 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3771 if test "${ac_cv_prog_cc_g+set}" = set; then :
3772   $as_echo_n "(cached) " >&6
3773 else
3774   ac_save_c_werror_flag=$ac_c_werror_flag
3775    ac_c_werror_flag=yes
3776    ac_cv_prog_cc_g=no
3777    CFLAGS="-g"
3778    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h.  */
3780
3781 int
3782 main ()
3783 {
3784
3785   ;
3786   return 0;
3787 }
3788 _ACEOF
3789 if ac_fn_c_try_compile "$LINENO"; then :
3790   ac_cv_prog_cc_g=yes
3791 else
3792   CFLAGS=""
3793       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h.  */
3795
3796 int
3797 main ()
3798 {
3799
3800   ;
3801   return 0;
3802 }
3803 _ACEOF
3804 if ac_fn_c_try_compile "$LINENO"; then :
3805
3806 else
3807   ac_c_werror_flag=$ac_save_c_werror_flag
3808          CFLAGS="-g"
3809          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h.  */
3811
3812 int
3813 main ()
3814 {
3815
3816   ;
3817   return 0;
3818 }
3819 _ACEOF
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821   ac_cv_prog_cc_g=yes
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 fi
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 fi
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828    ac_c_werror_flag=$ac_save_c_werror_flag
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3831 $as_echo "$ac_cv_prog_cc_g" >&6; }
3832 if test "$ac_test_CFLAGS" = set; then
3833   CFLAGS=$ac_save_CFLAGS
3834 elif test $ac_cv_prog_cc_g = yes; then
3835   if test "$GCC" = yes; then
3836     CFLAGS="-g -O2"
3837   else
3838     CFLAGS="-g"
3839   fi
3840 else
3841   if test "$GCC" = yes; then
3842     CFLAGS="-O2"
3843   else
3844     CFLAGS=
3845   fi
3846 fi
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3848 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3849 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3850   $as_echo_n "(cached) " >&6
3851 else
3852   ac_cv_prog_cc_c89=no
3853 ac_save_CC=$CC
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h.  */
3856 #include <stdarg.h>
3857 #include <stdio.h>
3858 #include <sys/types.h>
3859 #include <sys/stat.h>
3860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3861 struct buf { int x; };
3862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3863 static char *e (p, i)
3864      char **p;
3865      int i;
3866 {
3867   return p[i];
3868 }
3869 static char *f (char * (*g) (char **, int), char **p, ...)
3870 {
3871   char *s;
3872   va_list v;
3873   va_start (v,p);
3874   s = g (p, va_arg (v,int));
3875   va_end (v);
3876   return s;
3877 }
3878
3879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3880    function prototypes and stuff, but not '\xHH' hex character constants.
3881    These don't provoke an error unfortunately, instead are silently treated
3882    as 'x'.  The following induces an error, until -std is added to get
3883    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3884    array size at least.  It's necessary to write '\x00'==0 to get something
3885    that's true only with -std.  */
3886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3887
3888 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3889    inside strings and character constants.  */
3890 #define FOO(x) 'x'
3891 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3892
3893 int test (int i, double x);
3894 struct s1 {int (*f) (int a);};
3895 struct s2 {int (*f) (double a);};
3896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3897 int argc;
3898 char **argv;
3899 int
3900 main ()
3901 {
3902 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3903   ;
3904   return 0;
3905 }
3906 _ACEOF
3907 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3908         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3909 do
3910   CC="$ac_save_CC $ac_arg"
3911   if ac_fn_c_try_compile "$LINENO"; then :
3912   ac_cv_prog_cc_c89=$ac_arg
3913 fi
3914 rm -f core conftest.err conftest.$ac_objext
3915   test "x$ac_cv_prog_cc_c89" != "xno" && break
3916 done
3917 rm -f conftest.$ac_ext
3918 CC=$ac_save_CC
3919
3920 fi
3921 # AC_CACHE_VAL
3922 case "x$ac_cv_prog_cc_c89" in
3923   x)
3924     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3925 $as_echo "none needed" >&6; } ;;
3926   xno)
3927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3928 $as_echo "unsupported" >&6; } ;;
3929   *)
3930     CC="$CC $ac_cv_prog_cc_c89"
3931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3932 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3933 esac
3934 if test "x$ac_cv_prog_cc_c89" != xno; then :
3935
3936 fi
3937
3938 ac_ext=c
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943 DEPDIR="${am__leading_dot}deps"
3944
3945 ac_config_commands="$ac_config_commands depfiles"
3946
3947
3948 am_make=${MAKE-make}
3949 cat > confinc << 'END'
3950 am__doit:
3951         @echo this is the am__doit target
3952 .PHONY: am__doit
3953 END
3954 # If we don't find an include directive, just comment out the code.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3956 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3957 am__include="#"
3958 am__quote=
3959 _am_result=none
3960 # First try GNU make style include.
3961 echo "include confinc" > confmf
3962 # Ignore all kinds of additional output from `make'.
3963 case `$am_make -s -f confmf 2> /dev/null` in #(
3964 *the\ am__doit\ target*)
3965   am__include=include
3966   am__quote=
3967   _am_result=GNU
3968   ;;
3969 esac
3970 # Now try BSD make style include.
3971 if test "$am__include" = "#"; then
3972    echo '.include "confinc"' > confmf
3973    case `$am_make -s -f confmf 2> /dev/null` in #(
3974    *the\ am__doit\ target*)
3975      am__include=.include
3976      am__quote="\""
3977      _am_result=BSD
3978      ;;
3979    esac
3980 fi
3981
3982
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3984 $as_echo "$_am_result" >&6; }
3985 rm -f confinc confmf
3986
3987 # Check whether --enable-dependency-tracking was given.
3988 if test "${enable_dependency_tracking+set}" = set; then :
3989   enableval=$enable_dependency_tracking;
3990 fi
3991
3992 if test "x$enable_dependency_tracking" != xno; then
3993   am_depcomp="$ac_aux_dir/depcomp"
3994   AMDEPBACKSLASH='\'
3995 fi
3996  if test "x$enable_dependency_tracking" != xno; then
3997   AMDEP_TRUE=
3998   AMDEP_FALSE='#'
3999 else
4000   AMDEP_TRUE='#'
4001   AMDEP_FALSE=
4002 fi
4003
4004
4005
4006 depcc="$CC"   am_compiler_list=
4007
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4009 $as_echo_n "checking dependency style of $depcc... " >&6; }
4010 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4011   $as_echo_n "(cached) " >&6
4012 else
4013   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4014   # We make a subdir and do the tests there.  Otherwise we can end up
4015   # making bogus files that we don't know about and never remove.  For
4016   # instance it was reported that on HP-UX the gcc test will end up
4017   # making a dummy file named `D' -- because `-MD' means `put the output
4018   # in D'.
4019   mkdir conftest.dir
4020   # Copy depcomp to subdir because otherwise we won't find it if we're
4021   # using a relative directory.
4022   cp "$am_depcomp" conftest.dir
4023   cd conftest.dir
4024   # We will build objects and dependencies in a subdirectory because
4025   # it helps to detect inapplicable dependency modes.  For instance
4026   # both Tru64's cc and ICC support -MD to output dependencies as a
4027   # side effect of compilation, but ICC will put the dependencies in
4028   # the current directory while Tru64 will put them in the object
4029   # directory.
4030   mkdir sub
4031
4032   am_cv_CC_dependencies_compiler_type=none
4033   if test "$am_compiler_list" = ""; then
4034      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4035   fi
4036   am__universal=false
4037   case " $depcc " in #(
4038      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4039      esac
4040
4041   for depmode in $am_compiler_list; do
4042     # Setup a source with many dependencies, because some compilers
4043     # like to wrap large dependency lists on column 80 (with \), and
4044     # we should not choose a depcomp mode which is confused by this.
4045     #
4046     # We need to recreate these files for each test, as the compiler may
4047     # overwrite some of them when testing with obscure command lines.
4048     # This happens at least with the AIX C compiler.
4049     : > sub/conftest.c
4050     for i in 1 2 3 4 5 6; do
4051       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4052       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4053       # Solaris 8's {/usr,}/bin/sh.
4054       touch sub/conftst$i.h
4055     done
4056     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4057
4058     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4059     # mode.  It turns out that the SunPro C++ compiler does not properly
4060     # handle `-M -o', and we need to detect this.  Also, some Intel
4061     # versions had trouble with output in subdirs
4062     am__obj=sub/conftest.${OBJEXT-o}
4063     am__minus_obj="-o $am__obj"
4064     case $depmode in
4065     gcc)
4066       # This depmode causes a compiler race in universal mode.
4067       test "$am__universal" = false || continue
4068       ;;
4069     nosideeffect)
4070       # after this tag, mechanisms are not by side-effect, so they'll
4071       # only be used when explicitly requested
4072       if test "x$enable_dependency_tracking" = xyes; then
4073         continue
4074       else
4075         break
4076       fi
4077       ;;
4078     msvisualcpp | msvcmsys)
4079       # This compiler won't grok `-c -o', but also, the minuso test has
4080       # not run yet.  These depmodes are late enough in the game, and
4081       # so weak that their functioning should not be impacted.
4082       am__obj=conftest.${OBJEXT-o}
4083       am__minus_obj=
4084       ;;
4085     none) break ;;
4086     esac
4087     if depmode=$depmode \
4088        source=sub/conftest.c object=$am__obj \
4089        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4090        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4091          >/dev/null 2>conftest.err &&
4092        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4093        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4094        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4095        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4096       # icc doesn't choke on unknown options, it will just issue warnings
4097       # or remarks (even with -Werror).  So we grep stderr for any message
4098       # that says an option was ignored or not supported.
4099       # When given -MP, icc 7.0 and 7.1 complain thusly:
4100       #   icc: Command line warning: ignoring option '-M'; no argument required
4101       # The diagnosis changed in icc 8.0:
4102       #   icc: Command line remark: option '-MP' not supported
4103       if (grep 'ignoring option' conftest.err ||
4104           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4105         am_cv_CC_dependencies_compiler_type=$depmode
4106         break
4107       fi
4108     fi
4109   done
4110
4111   cd ..
4112   rm -rf conftest.dir
4113 else
4114   am_cv_CC_dependencies_compiler_type=none
4115 fi
4116
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4119 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4120 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4121
4122  if
4123   test "x$enable_dependency_tracking" != xno \
4124   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4125   am__fastdepCC_TRUE=
4126   am__fastdepCC_FALSE='#'
4127 else
4128   am__fastdepCC_TRUE='#'
4129   am__fastdepCC_FALSE=
4130 fi
4131
4132
4133 ac_ext=cpp
4134 ac_cpp='$CXXCPP $CPPFLAGS'
4135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4138 if test -z "$CXX"; then
4139   if test -n "$CCC"; then
4140     CXX=$CCC
4141   else
4142     if test -n "$ac_tool_prefix"; then
4143   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4144   do
4145     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148 $as_echo_n "checking for $ac_word... " >&6; }
4149 if test "${ac_cv_prog_CXX+set}" = set; then :
4150   $as_echo_n "(cached) " >&6
4151 else
4152   if test -n "$CXX"; then
4153   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158   IFS=$as_save_IFS
4159   test -z "$as_dir" && as_dir=.
4160     for ac_exec_ext in '' $ac_executable_extensions; do
4161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164     break 2
4165   fi
4166 done
4167   done
4168 IFS=$as_save_IFS
4169
4170 fi
4171 fi
4172 CXX=$ac_cv_prog_CXX
4173 if test -n "$CXX"; then
4174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4175 $as_echo "$CXX" >&6; }
4176 else
4177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178 $as_echo "no" >&6; }
4179 fi
4180
4181
4182     test -n "$CXX" && break
4183   done
4184 fi
4185 if test -z "$CXX"; then
4186   ac_ct_CXX=$CXX
4187   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4188 do
4189   # Extract the first word of "$ac_prog", so it can be a program name with args.
4190 set dummy $ac_prog; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4194   $as_echo_n "(cached) " >&6
4195 else
4196   if test -n "$ac_ct_CXX"; then
4197   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202   IFS=$as_save_IFS
4203   test -z "$as_dir" && as_dir=.
4204     for ac_exec_ext in '' $ac_executable_extensions; do
4205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206     ac_cv_prog_ac_ct_CXX="$ac_prog"
4207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208     break 2
4209   fi
4210 done
4211   done
4212 IFS=$as_save_IFS
4213
4214 fi
4215 fi
4216 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4217 if test -n "$ac_ct_CXX"; then
4218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4219 $as_echo "$ac_ct_CXX" >&6; }
4220 else
4221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4223 fi
4224
4225
4226   test -n "$ac_ct_CXX" && break
4227 done
4228
4229   if test "x$ac_ct_CXX" = x; then
4230     CXX="g++"
4231   else
4232     case $cross_compiling:$ac_tool_warned in
4233 yes:)
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4236 ac_tool_warned=yes ;;
4237 esac
4238     CXX=$ac_ct_CXX
4239   fi
4240 fi
4241
4242   fi
4243 fi
4244 # Provide some information about the compiler.
4245 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4246 set X $ac_compile
4247 ac_compiler=$2
4248 for ac_option in --version -v -V -qversion; do
4249   { { ac_try="$ac_compiler $ac_option >&5"
4250 case "(($ac_try" in
4251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252   *) ac_try_echo=$ac_try;;
4253 esac
4254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4255 $as_echo "$ac_try_echo"; } >&5
4256   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4257   ac_status=$?
4258   if test -s conftest.err; then
4259     sed '10a\
4260 ... rest of stderr output deleted ...
4261          10q' conftest.err >conftest.er1
4262     cat conftest.er1 >&5
4263     rm -f conftest.er1 conftest.err
4264   fi
4265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4266   test $ac_status = 0; }
4267 done
4268
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4270 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4271 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4272   $as_echo_n "(cached) " >&6
4273 else
4274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h.  */
4276
4277 int
4278 main ()
4279 {
4280 #ifndef __GNUC__
4281        choke me
4282 #endif
4283
4284   ;
4285   return 0;
4286 }
4287 _ACEOF
4288 if ac_fn_cxx_try_compile "$LINENO"; then :
4289   ac_compiler_gnu=yes
4290 else
4291   ac_compiler_gnu=no
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4295
4296 fi
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4298 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4299 if test $ac_compiler_gnu = yes; then
4300   GXX=yes
4301 else
4302   GXX=
4303 fi
4304 ac_test_CXXFLAGS=${CXXFLAGS+set}
4305 ac_save_CXXFLAGS=$CXXFLAGS
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4307 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4308 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4309   $as_echo_n "(cached) " >&6
4310 else
4311   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4312    ac_cxx_werror_flag=yes
4313    ac_cv_prog_cxx_g=no
4314    CXXFLAGS="-g"
4315    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h.  */
4317
4318 int
4319 main ()
4320 {
4321
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 if ac_fn_cxx_try_compile "$LINENO"; then :
4327   ac_cv_prog_cxx_g=yes
4328 else
4329   CXXFLAGS=""
4330       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h.  */
4332
4333 int
4334 main ()
4335 {
4336
4337   ;
4338   return 0;
4339 }
4340 _ACEOF
4341 if ac_fn_cxx_try_compile "$LINENO"; then :
4342
4343 else
4344   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4345          CXXFLAGS="-g"
4346          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h.  */
4348
4349 int
4350 main ()
4351 {
4352
4353   ;
4354   return 0;
4355 }
4356 _ACEOF
4357 if ac_fn_cxx_try_compile "$LINENO"; then :
4358   ac_cv_prog_cxx_g=yes
4359 fi
4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 fi
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 fi
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4366 fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4368 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4369 if test "$ac_test_CXXFLAGS" = set; then
4370   CXXFLAGS=$ac_save_CXXFLAGS
4371 elif test $ac_cv_prog_cxx_g = yes; then
4372   if test "$GXX" = yes; then
4373     CXXFLAGS="-g -O2"
4374   else
4375     CXXFLAGS="-g"
4376   fi
4377 else
4378   if test "$GXX" = yes; then
4379     CXXFLAGS="-O2"
4380   else
4381     CXXFLAGS=
4382   fi
4383 fi
4384 ac_ext=c
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389
4390 depcc="$CXX"  am_compiler_list=
4391
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4393 $as_echo_n "checking dependency style of $depcc... " >&6; }
4394 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4395   $as_echo_n "(cached) " >&6
4396 else
4397   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4398   # We make a subdir and do the tests there.  Otherwise we can end up
4399   # making bogus files that we don't know about and never remove.  For
4400   # instance it was reported that on HP-UX the gcc test will end up
4401   # making a dummy file named `D' -- because `-MD' means `put the output
4402   # in D'.
4403   mkdir conftest.dir
4404   # Copy depcomp to subdir because otherwise we won't find it if we're
4405   # using a relative directory.
4406   cp "$am_depcomp" conftest.dir
4407   cd conftest.dir
4408   # We will build objects and dependencies in a subdirectory because
4409   # it helps to detect inapplicable dependency modes.  For instance
4410   # both Tru64's cc and ICC support -MD to output dependencies as a
4411   # side effect of compilation, but ICC will put the dependencies in
4412   # the current directory while Tru64 will put them in the object
4413   # directory.
4414   mkdir sub
4415
4416   am_cv_CXX_dependencies_compiler_type=none
4417   if test "$am_compiler_list" = ""; then
4418      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4419   fi
4420   am__universal=false
4421   case " $depcc " in #(
4422      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4423      esac
4424
4425   for depmode in $am_compiler_list; do
4426     # Setup a source with many dependencies, because some compilers
4427     # like to wrap large dependency lists on column 80 (with \), and
4428     # we should not choose a depcomp mode which is confused by this.
4429     #
4430     # We need to recreate these files for each test, as the compiler may
4431     # overwrite some of them when testing with obscure command lines.
4432     # This happens at least with the AIX C compiler.
4433     : > sub/conftest.c
4434     for i in 1 2 3 4 5 6; do
4435       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4436       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4437       # Solaris 8's {/usr,}/bin/sh.
4438       touch sub/conftst$i.h
4439     done
4440     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4441
4442     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4443     # mode.  It turns out that the SunPro C++ compiler does not properly
4444     # handle `-M -o', and we need to detect this.  Also, some Intel
4445     # versions had trouble with output in subdirs
4446     am__obj=sub/conftest.${OBJEXT-o}
4447     am__minus_obj="-o $am__obj"
4448     case $depmode in
4449     gcc)
4450       # This depmode causes a compiler race in universal mode.
4451       test "$am__universal" = false || continue
4452       ;;
4453     nosideeffect)
4454       # after this tag, mechanisms are not by side-effect, so they'll
4455       # only be used when explicitly requested
4456       if test "x$enable_dependency_tracking" = xyes; then
4457         continue
4458       else
4459         break
4460       fi
4461       ;;
4462     msvisualcpp | msvcmsys)
4463       # This compiler won't grok `-c -o', but also, the minuso test has
4464       # not run yet.  These depmodes are late enough in the game, and
4465       # so weak that their functioning should not be impacted.
4466       am__obj=conftest.${OBJEXT-o}
4467       am__minus_obj=
4468       ;;
4469     none) break ;;
4470     esac
4471     if depmode=$depmode \
4472        source=sub/conftest.c object=$am__obj \
4473        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4474        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4475          >/dev/null 2>conftest.err &&
4476        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4477        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4478        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4479        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4480       # icc doesn't choke on unknown options, it will just issue warnings
4481       # or remarks (even with -Werror).  So we grep stderr for any message
4482       # that says an option was ignored or not supported.
4483       # When given -MP, icc 7.0 and 7.1 complain thusly:
4484       #   icc: Command line warning: ignoring option '-M'; no argument required
4485       # The diagnosis changed in icc 8.0:
4486       #   icc: Command line remark: option '-MP' not supported
4487       if (grep 'ignoring option' conftest.err ||
4488           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4489         am_cv_CXX_dependencies_compiler_type=$depmode
4490         break
4491       fi
4492     fi
4493   done
4494
4495   cd ..
4496   rm -rf conftest.dir
4497 else
4498   am_cv_CXX_dependencies_compiler_type=none
4499 fi
4500
4501 fi
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4503 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4504 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4505
4506  if
4507   test "x$enable_dependency_tracking" != xno \
4508   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4509   am__fastdepCXX_TRUE=
4510   am__fastdepCXX_FALSE='#'
4511 else
4512   am__fastdepCXX_TRUE='#'
4513   am__fastdepCXX_FALSE=
4514 fi
4515
4516
4517
4518 ac_ext=c
4519 ac_cpp='$CPP $CPPFLAGS'
4520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4524 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4525 # On Suns, sometimes $CPP names a directory.
4526 if test -n "$CPP" && test -d "$CPP"; then
4527   CPP=
4528 fi
4529 if test -z "$CPP"; then
4530   if test "${ac_cv_prog_CPP+set}" = set; then :
4531   $as_echo_n "(cached) " >&6
4532 else
4533       # Double quotes because CPP needs to be expanded
4534     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4535     do
4536       ac_preproc_ok=false
4537 for ac_c_preproc_warn_flag in '' yes
4538 do
4539   # Use a header file that comes with gcc, so configuring glibc
4540   # with a fresh cross-compiler works.
4541   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4542   # <limits.h> exists even on freestanding compilers.
4543   # On the NeXT, cc -E runs the code through the compiler's parser,
4544   # not just through cpp. "Syntax error" is here to catch this case.
4545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546 /* end confdefs.h.  */
4547 #ifdef __STDC__
4548 # include <limits.h>
4549 #else
4550 # include <assert.h>
4551 #endif
4552                      Syntax error
4553 _ACEOF
4554 if ac_fn_c_try_cpp "$LINENO"; then :
4555
4556 else
4557   # Broken: fails on valid input.
4558 continue
4559 fi
4560 rm -f conftest.err conftest.$ac_ext
4561
4562   # OK, works on sane cases.  Now check whether nonexistent headers
4563   # can be detected and how.
4564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h.  */
4566 #include <ac_nonexistent.h>
4567 _ACEOF
4568 if ac_fn_c_try_cpp "$LINENO"; then :
4569   # Broken: success on invalid input.
4570 continue
4571 else
4572   # Passes both tests.
4573 ac_preproc_ok=:
4574 break
4575 fi
4576 rm -f conftest.err conftest.$ac_ext
4577
4578 done
4579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4580 rm -f conftest.err conftest.$ac_ext
4581 if $ac_preproc_ok; then :
4582   break
4583 fi
4584
4585     done
4586     ac_cv_prog_CPP=$CPP
4587
4588 fi
4589   CPP=$ac_cv_prog_CPP
4590 else
4591   ac_cv_prog_CPP=$CPP
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4594 $as_echo "$CPP" >&6; }
4595 ac_preproc_ok=false
4596 for ac_c_preproc_warn_flag in '' yes
4597 do
4598   # Use a header file that comes with gcc, so configuring glibc
4599   # with a fresh cross-compiler works.
4600   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4601   # <limits.h> exists even on freestanding compilers.
4602   # On the NeXT, cc -E runs the code through the compiler's parser,
4603   # not just through cpp. "Syntax error" is here to catch this case.
4604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h.  */
4606 #ifdef __STDC__
4607 # include <limits.h>
4608 #else
4609 # include <assert.h>
4610 #endif
4611                      Syntax error
4612 _ACEOF
4613 if ac_fn_c_try_cpp "$LINENO"; then :
4614
4615 else
4616   # Broken: fails on valid input.
4617 continue
4618 fi
4619 rm -f conftest.err conftest.$ac_ext
4620
4621   # OK, works on sane cases.  Now check whether nonexistent headers
4622   # can be detected and how.
4623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h.  */
4625 #include <ac_nonexistent.h>
4626 _ACEOF
4627 if ac_fn_c_try_cpp "$LINENO"; then :
4628   # Broken: success on invalid input.
4629 continue
4630 else
4631   # Passes both tests.
4632 ac_preproc_ok=:
4633 break
4634 fi
4635 rm -f conftest.err conftest.$ac_ext
4636
4637 done
4638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4639 rm -f conftest.err conftest.$ac_ext
4640 if $ac_preproc_ok; then :
4641
4642 else
4643   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4645 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4646 See \`config.log' for more details." "$LINENO" 5; }
4647 fi
4648
4649 ac_ext=c
4650 ac_cpp='$CPP $CPPFLAGS'
4651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4654
4655
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4657 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4658 if test "${ac_cv_path_GREP+set}" = set; then :
4659   $as_echo_n "(cached) " >&6
4660 else
4661   if test -z "$GREP"; then
4662   ac_path_GREP_found=false
4663   # Loop through the user's path and test for each of PROGNAME-LIST
4664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4666 do
4667   IFS=$as_save_IFS
4668   test -z "$as_dir" && as_dir=.
4669     for ac_prog in grep ggrep; do
4670     for ac_exec_ext in '' $ac_executable_extensions; do
4671       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4672       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4673 # Check for GNU ac_path_GREP and select it if it is found.
4674   # Check for GNU $ac_path_GREP
4675 case `"$ac_path_GREP" --version 2>&1` in
4676 *GNU*)
4677   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4678 *)
4679   ac_count=0
4680   $as_echo_n 0123456789 >"conftest.in"
4681   while :
4682   do
4683     cat "conftest.in" "conftest.in" >"conftest.tmp"
4684     mv "conftest.tmp" "conftest.in"
4685     cp "conftest.in" "conftest.nl"
4686     $as_echo 'GREP' >> "conftest.nl"
4687     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4688     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4689     as_fn_arith $ac_count + 1 && ac_count=$as_val
4690     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4691       # Best one so far, save it but keep looking for a better one
4692       ac_cv_path_GREP="$ac_path_GREP"
4693       ac_path_GREP_max=$ac_count
4694     fi
4695     # 10*(2^10) chars as input seems more than enough
4696     test $ac_count -gt 10 && break
4697   done
4698   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4699 esac
4700
4701       $ac_path_GREP_found && break 3
4702     done
4703   done
4704   done
4705 IFS=$as_save_IFS
4706   if test -z "$ac_cv_path_GREP"; then
4707     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4708   fi
4709 else
4710   ac_cv_path_GREP=$GREP
4711 fi
4712
4713 fi
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4715 $as_echo "$ac_cv_path_GREP" >&6; }
4716  GREP="$ac_cv_path_GREP"
4717
4718
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4720 $as_echo_n "checking for egrep... " >&6; }
4721 if test "${ac_cv_path_EGREP+set}" = set; then :
4722   $as_echo_n "(cached) " >&6
4723 else
4724   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4725    then ac_cv_path_EGREP="$GREP -E"
4726    else
4727      if test -z "$EGREP"; then
4728   ac_path_EGREP_found=false
4729   # Loop through the user's path and test for each of PROGNAME-LIST
4730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4732 do
4733   IFS=$as_save_IFS
4734   test -z "$as_dir" && as_dir=.
4735     for ac_prog in egrep; do
4736     for ac_exec_ext in '' $ac_executable_extensions; do
4737       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4738       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4739 # Check for GNU ac_path_EGREP and select it if it is found.
4740   # Check for GNU $ac_path_EGREP
4741 case `"$ac_path_EGREP" --version 2>&1` in
4742 *GNU*)
4743   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4744 *)
4745   ac_count=0
4746   $as_echo_n 0123456789 >"conftest.in"
4747   while :
4748   do
4749     cat "conftest.in" "conftest.in" >"conftest.tmp"
4750     mv "conftest.tmp" "conftest.in"
4751     cp "conftest.in" "conftest.nl"
4752     $as_echo 'EGREP' >> "conftest.nl"
4753     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4754     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4755     as_fn_arith $ac_count + 1 && ac_count=$as_val
4756     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4757       # Best one so far, save it but keep looking for a better one
4758       ac_cv_path_EGREP="$ac_path_EGREP"
4759       ac_path_EGREP_max=$ac_count
4760     fi
4761     # 10*(2^10) chars as input seems more than enough
4762     test $ac_count -gt 10 && break
4763   done
4764   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4765 esac
4766
4767       $ac_path_EGREP_found && break 3
4768     done
4769   done
4770   done
4771 IFS=$as_save_IFS
4772   if test -z "$ac_cv_path_EGREP"; then
4773     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4774   fi
4775 else
4776   ac_cv_path_EGREP=$EGREP
4777 fi
4778
4779    fi
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4782 $as_echo "$ac_cv_path_EGREP" >&6; }
4783  EGREP="$ac_cv_path_EGREP"
4784
4785
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4787 $as_echo_n "checking for ANSI C header files... " >&6; }
4788 if test "${ac_cv_header_stdc+set}" = set; then :
4789   $as_echo_n "(cached) " >&6
4790 else
4791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h.  */
4793 #include <stdlib.h>
4794 #include <stdarg.h>
4795 #include <string.h>
4796 #include <float.h>
4797
4798 int
4799 main ()
4800 {
4801
4802   ;
4803   return 0;
4804 }
4805 _ACEOF
4806 if ac_fn_c_try_compile "$LINENO"; then :
4807   ac_cv_header_stdc=yes
4808 else
4809   ac_cv_header_stdc=no
4810 fi
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812
4813 if test $ac_cv_header_stdc = yes; then
4814   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h.  */
4817 #include <string.h>
4818
4819 _ACEOF
4820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4821   $EGREP "memchr" >/dev/null 2>&1; then :
4822
4823 else
4824   ac_cv_header_stdc=no
4825 fi
4826 rm -f conftest*
4827
4828 fi
4829
4830 if test $ac_cv_header_stdc = yes; then
4831   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h.  */
4834 #include <stdlib.h>
4835
4836 _ACEOF
4837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4838   $EGREP "free" >/dev/null 2>&1; then :
4839
4840 else
4841   ac_cv_header_stdc=no
4842 fi
4843 rm -f conftest*
4844
4845 fi
4846
4847 if test $ac_cv_header_stdc = yes; then
4848   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4849   if test "$cross_compiling" = yes; then :
4850   :
4851 else
4852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h.  */
4854 #include <ctype.h>
4855 #include <stdlib.h>
4856 #if ((' ' & 0x0FF) == 0x020)
4857 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4858 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4859 #else
4860 # define ISLOWER(c) \
4861                    (('a' <= (c) && (c) <= 'i') \
4862                      || ('j' <= (c) && (c) <= 'r') \
4863                      || ('s' <= (c) && (c) <= 'z'))
4864 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4865 #endif
4866
4867 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4868 int
4869 main ()
4870 {
4871   int i;
4872   for (i = 0; i < 256; i++)
4873     if (XOR (islower (i), ISLOWER (i))
4874         || toupper (i) != TOUPPER (i))
4875       return 2;
4876   return 0;
4877 }
4878 _ACEOF
4879 if ac_fn_c_try_run "$LINENO"; then :
4880
4881 else
4882   ac_cv_header_stdc=no
4883 fi
4884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4885   conftest.$ac_objext conftest.beam conftest.$ac_ext
4886 fi
4887
4888 fi
4889 fi
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4891 $as_echo "$ac_cv_header_stdc" >&6; }
4892 if test $ac_cv_header_stdc = yes; then
4893
4894 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4895
4896 fi
4897
4898 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4899 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4900                   inttypes.h stdint.h unistd.h
4901 do :
4902   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4903 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4904 "
4905 eval as_val=\$$as_ac_Header
4906    if test "x$as_val" = x""yes; then :
4907   cat >>confdefs.h <<_ACEOF
4908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4909 _ACEOF
4910
4911 fi
4912
4913 done
4914
4915
4916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4917 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4918 if test "${ac_cv_c_bigendian+set}" = set; then :
4919   $as_echo_n "(cached) " >&6
4920 else
4921   ac_cv_c_bigendian=unknown
4922     # See if we're dealing with a universal compiler.
4923     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h.  */
4925 #ifndef __APPLE_CC__
4926                not a universal capable compiler
4927              #endif
4928              typedef int dummy;
4929
4930 _ACEOF
4931 if ac_fn_c_try_compile "$LINENO"; then :
4932
4933         # Check for potential -arch flags.  It is not universal unless
4934         # there are at least two -arch flags with different values.
4935         ac_arch=
4936         ac_prev=
4937         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4938          if test -n "$ac_prev"; then
4939            case $ac_word in
4940              i?86 | x86_64 | ppc | ppc64)
4941                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4942                  ac_arch=$ac_word
4943                else
4944                  ac_cv_c_bigendian=universal
4945                  break
4946                fi
4947                ;;
4948            esac
4949            ac_prev=
4950          elif test "x$ac_word" = "x-arch"; then
4951            ac_prev=arch
4952          fi
4953        done
4954 fi
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956     if test $ac_cv_c_bigendian = unknown; then
4957       # See if sys/param.h defines the BYTE_ORDER macro.
4958       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h.  */
4960 #include <sys/types.h>
4961              #include <sys/param.h>
4962
4963 int
4964 main ()
4965 {
4966 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4967                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4968                      && LITTLE_ENDIAN)
4969               bogus endian macros
4970              #endif
4971
4972   ;
4973   return 0;
4974 }
4975 _ACEOF
4976 if ac_fn_c_try_compile "$LINENO"; then :
4977   # It does; now see whether it defined to BIG_ENDIAN or not.
4978          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h.  */
4980 #include <sys/types.h>
4981                 #include <sys/param.h>
4982
4983 int
4984 main ()
4985 {
4986 #if BYTE_ORDER != BIG_ENDIAN
4987                  not big endian
4988                 #endif
4989
4990   ;
4991   return 0;
4992 }
4993 _ACEOF
4994 if ac_fn_c_try_compile "$LINENO"; then :
4995   ac_cv_c_bigendian=yes
4996 else
4997   ac_cv_c_bigendian=no
4998 fi
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 fi
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002     fi
5003     if test $ac_cv_c_bigendian = unknown; then
5004       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5005       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h.  */
5007 #include <limits.h>
5008
5009 int
5010 main ()
5011 {
5012 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5013               bogus endian macros
5014              #endif
5015
5016   ;
5017   return 0;
5018 }
5019 _ACEOF
5020 if ac_fn_c_try_compile "$LINENO"; then :
5021   # It does; now see whether it defined to _BIG_ENDIAN or not.
5022          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h.  */
5024 #include <limits.h>
5025
5026 int
5027 main ()
5028 {
5029 #ifndef _BIG_ENDIAN
5030                  not big endian
5031                 #endif
5032
5033   ;
5034   return 0;
5035 }
5036 _ACEOF
5037 if ac_fn_c_try_compile "$LINENO"; then :
5038   ac_cv_c_bigendian=yes
5039 else
5040   ac_cv_c_bigendian=no
5041 fi
5042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043 fi
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045     fi
5046     if test $ac_cv_c_bigendian = unknown; then
5047       # Compile a test program.
5048       if test "$cross_compiling" = yes; then :
5049   # Try to guess by grepping values from an object file.
5050          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h.  */
5052 short int ascii_mm[] =
5053                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5054                 short int ascii_ii[] =
5055                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5056                 int use_ascii (int i) {
5057                   return ascii_mm[i] + ascii_ii[i];
5058                 }
5059                 short int ebcdic_ii[] =
5060                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5061                 short int ebcdic_mm[] =
5062                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5063                 int use_ebcdic (int i) {
5064                   return ebcdic_mm[i] + ebcdic_ii[i];
5065                 }
5066                 extern int foo;
5067
5068 int
5069 main ()
5070 {
5071 return use_ascii (foo) == use_ebcdic (foo);
5072   ;
5073   return 0;
5074 }
5075 _ACEOF
5076 if ac_fn_c_try_compile "$LINENO"; then :
5077   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5078               ac_cv_c_bigendian=yes
5079             fi
5080             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5081               if test "$ac_cv_c_bigendian" = unknown; then
5082                 ac_cv_c_bigendian=no
5083               else
5084                 # finding both strings is unlikely to happen, but who knows?
5085                 ac_cv_c_bigendian=unknown
5086               fi
5087             fi
5088 fi
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 else
5091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h.  */
5093 $ac_includes_default
5094 int
5095 main ()
5096 {
5097
5098              /* Are we little or big endian?  From Harbison&Steele.  */
5099              union
5100              {
5101                long int l;
5102                char c[sizeof (long int)];
5103              } u;
5104              u.l = 1;
5105              return u.c[sizeof (long int) - 1] == 1;
5106
5107   ;
5108   return 0;
5109 }
5110 _ACEOF
5111 if ac_fn_c_try_run "$LINENO"; then :
5112   ac_cv_c_bigendian=no
5113 else
5114   ac_cv_c_bigendian=yes
5115 fi
5116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5117   conftest.$ac_objext conftest.beam conftest.$ac_ext
5118 fi
5119
5120     fi
5121 fi
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5123 $as_echo "$ac_cv_c_bigendian" >&6; }
5124  case $ac_cv_c_bigendian in #(
5125    yes)
5126      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5127 ;; #(
5128    no)
5129       ;; #(
5130    universal)
5131
5132 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5133
5134      ;; #(
5135    *)
5136      as_fn_error "unknown endianness
5137  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5138  esac
5139
5140
5141 # Extract the first word of "wx-config", so it can be a program name with args.
5142 set dummy wx-config; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if test "${ac_cv_path_wxconfig+set}" = set; then :
5146   $as_echo_n "(cached) " >&6
5147 else
5148   case $wxconfig in
5149   [\\/]* | ?:[\\/]*)
5150   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
5151   ;;
5152   *)
5153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5155 do
5156   IFS=$as_save_IFS
5157   test -z "$as_dir" && as_dir=.
5158     for ac_exec_ext in '' $ac_executable_extensions; do
5159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5160     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
5161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162     break 2
5163   fi
5164 done
5165   done
5166 IFS=$as_save_IFS
5167
5168   ;;
5169 esac
5170 fi
5171 wxconfig=$ac_cv_path_wxconfig
5172 if test -n "$wxconfig"; then
5173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxconfig" >&5
5174 $as_echo "$wxconfig" >&6; }
5175 else
5176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5178 fi
5179
5180
5181
5182 # Make sure we can run config.sub.
5183 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5184   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5185
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5187 $as_echo_n "checking build system type... " >&6; }
5188 if test "${ac_cv_build+set}" = set; then :
5189   $as_echo_n "(cached) " >&6
5190 else
5191   ac_build_alias=$build_alias
5192 test "x$ac_build_alias" = x &&
5193   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5194 test "x$ac_build_alias" = x &&
5195   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5196 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5197   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5198
5199 fi
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5201 $as_echo "$ac_cv_build" >&6; }
5202 case $ac_cv_build in
5203 *-*-*) ;;
5204 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5205 esac
5206 build=$ac_cv_build
5207 ac_save_IFS=$IFS; IFS='-'
5208 set x $ac_cv_build
5209 shift
5210 build_cpu=$1
5211 build_vendor=$2
5212 shift; shift
5213 # Remember, the first character of IFS is used to create $*,
5214 # except with old shells:
5215 build_os=$*
5216 IFS=$ac_save_IFS
5217 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5218
5219
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5221 $as_echo_n "checking host system type... " >&6; }
5222 if test "${ac_cv_host+set}" = set; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225   if test "x$host_alias" = x; then
5226   ac_cv_host=$ac_cv_build
5227 else
5228   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5229     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5230 fi
5231
5232 fi
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5234 $as_echo "$ac_cv_host" >&6; }
5235 case $ac_cv_host in
5236 *-*-*) ;;
5237 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5238 esac
5239 host=$ac_cv_host
5240 ac_save_IFS=$IFS; IFS='-'
5241 set x $ac_cv_host
5242 shift
5243 host_cpu=$1
5244 host_vendor=$2
5245 shift; shift
5246 # Remember, the first character of IFS is used to create $*,
5247 # except with old shells:
5248 host_os=$*
5249 IFS=$ac_save_IFS
5250 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5251
5252
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5254 $as_echo_n "checking for inline... " >&6; }
5255 if test "${ac_cv_c_inline+set}" = set; then :
5256   $as_echo_n "(cached) " >&6
5257 else
5258   ac_cv_c_inline=no
5259 for ac_kw in inline __inline__ __inline; do
5260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h.  */
5262 #ifndef __cplusplus
5263 typedef int foo_t;
5264 static $ac_kw foo_t static_foo () {return 0; }
5265 $ac_kw foo_t foo () {return 0; }
5266 #endif
5267
5268 _ACEOF
5269 if ac_fn_c_try_compile "$LINENO"; then :
5270   ac_cv_c_inline=$ac_kw
5271 fi
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273   test "$ac_cv_c_inline" != no && break
5274 done
5275
5276 fi
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5278 $as_echo "$ac_cv_c_inline" >&6; }
5279
5280 case $ac_cv_c_inline in
5281   inline | yes) ;;
5282   *)
5283     case $ac_cv_c_inline in
5284       no) ac_val=;;
5285       *) ac_val=$ac_cv_c_inline;;
5286     esac
5287     cat >>confdefs.h <<_ACEOF
5288 #ifndef __cplusplus
5289 #define inline $ac_val
5290 #endif
5291 _ACEOF
5292     ;;
5293 esac
5294
5295 # The cast to long int works around a bug in the HP C Compiler
5296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5298 # This bug is HP SR number 8606223364.
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5300 $as_echo_n "checking size of short... " >&6; }
5301 if test "${ac_cv_sizeof_short+set}" = set; then :
5302   $as_echo_n "(cached) " >&6
5303 else
5304   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5305
5306 else
5307   if test "$ac_cv_type_short" = yes; then
5308      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5310 { as_fn_set_status 77
5311 as_fn_error "cannot compute sizeof (short)
5312 See \`config.log' for more details." "$LINENO" 5; }; }
5313    else
5314      ac_cv_sizeof_short=0
5315    fi
5316 fi
5317
5318 fi
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5320 $as_echo "$ac_cv_sizeof_short" >&6; }
5321
5322
5323
5324 cat >>confdefs.h <<_ACEOF
5325 #define SIZEOF_SHORT $ac_cv_sizeof_short
5326 _ACEOF
5327
5328
5329 # The cast to long int works around a bug in the HP C Compiler
5330 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5331 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5332 # This bug is HP SR number 8606223364.
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5334 $as_echo_n "checking size of int... " >&6; }
5335 if test "${ac_cv_sizeof_int+set}" = set; then :
5336   $as_echo_n "(cached) " >&6
5337 else
5338   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5339
5340 else
5341   if test "$ac_cv_type_int" = yes; then
5342      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5344 { as_fn_set_status 77
5345 as_fn_error "cannot compute sizeof (int)
5346 See \`config.log' for more details." "$LINENO" 5; }; }
5347    else
5348      ac_cv_sizeof_int=0
5349    fi
5350 fi
5351
5352 fi
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5354 $as_echo "$ac_cv_sizeof_int" >&6; }
5355
5356
5357
5358 cat >>confdefs.h <<_ACEOF
5359 #define SIZEOF_INT $ac_cv_sizeof_int
5360 _ACEOF
5361
5362
5363 # The cast to long int works around a bug in the HP C Compiler
5364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5366 # This bug is HP SR number 8606223364.
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5368 $as_echo_n "checking size of long... " >&6; }
5369 if test "${ac_cv_sizeof_long+set}" = set; then :
5370   $as_echo_n "(cached) " >&6
5371 else
5372   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5373
5374 else
5375   if test "$ac_cv_type_long" = yes; then
5376      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5378 { as_fn_set_status 77
5379 as_fn_error "cannot compute sizeof (long)
5380 See \`config.log' for more details." "$LINENO" 5; }; }
5381    else
5382      ac_cv_sizeof_long=0
5383    fi
5384 fi
5385
5386 fi
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5388 $as_echo "$ac_cv_sizeof_long" >&6; }
5389
5390
5391
5392 cat >>confdefs.h <<_ACEOF
5393 #define SIZEOF_LONG $ac_cv_sizeof_long
5394 _ACEOF
5395
5396
5397 # The cast to long int works around a bug in the HP C Compiler
5398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5400 # This bug is HP SR number 8606223364.
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
5402 $as_echo_n "checking size of float... " >&6; }
5403 if test "${ac_cv_sizeof_float+set}" = set; then :
5404   $as_echo_n "(cached) " >&6
5405 else
5406   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
5407
5408 else
5409   if test "$ac_cv_type_float" = yes; then
5410      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5412 { as_fn_set_status 77
5413 as_fn_error "cannot compute sizeof (float)
5414 See \`config.log' for more details." "$LINENO" 5; }; }
5415    else
5416      ac_cv_sizeof_float=0
5417    fi
5418 fi
5419
5420 fi
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
5422 $as_echo "$ac_cv_sizeof_float" >&6; }
5423
5424
5425
5426 cat >>confdefs.h <<_ACEOF
5427 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5428 _ACEOF
5429
5430
5431 # The cast to long int works around a bug in the HP C Compiler
5432 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5433 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5434 # This bug is HP SR number 8606223364.
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
5436 $as_echo_n "checking size of double... " >&6; }
5437 if test "${ac_cv_sizeof_double+set}" = set; then :
5438   $as_echo_n "(cached) " >&6
5439 else
5440   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
5441
5442 else
5443   if test "$ac_cv_type_double" = yes; then
5444      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5446 { as_fn_set_status 77
5447 as_fn_error "cannot compute sizeof (double)
5448 See \`config.log' for more details." "$LINENO" 5; }; }
5449    else
5450      ac_cv_sizeof_double=0
5451    fi
5452 fi
5453
5454 fi
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
5456 $as_echo "$ac_cv_sizeof_double" >&6; }
5457
5458
5459
5460 cat >>confdefs.h <<_ACEOF
5461 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5462 _ACEOF
5463
5464
5465
5466
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
5468 $as_echo_n "checking for deflate in -lz... " >&6; }
5469 if test "${ac_cv_lib_z_deflate+set}" = set; then :
5470   $as_echo_n "(cached) " >&6
5471 else
5472   ac_check_lib_save_LIBS=$LIBS
5473 LIBS="-lz  $LIBS"
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h.  */
5476
5477 /* Override any GCC internal prototype to avoid an error.
5478    Use char because int might match the return type of a GCC
5479    builtin and then its argument prototype would still apply.  */
5480 #ifdef __cplusplus
5481 extern "C"
5482 #endif
5483 char deflate ();
5484 int
5485 main ()
5486 {
5487 return deflate ();
5488   ;
5489   return 0;
5490 }
5491 _ACEOF
5492 if ac_fn_c_try_link "$LINENO"; then :
5493   ac_cv_lib_z_deflate=yes
5494 else
5495   ac_cv_lib_z_deflate=no
5496 fi
5497 rm -f core conftest.err conftest.$ac_objext \
5498     conftest$ac_exeext conftest.$ac_ext
5499 LIBS=$ac_check_lib_save_LIBS
5500 fi
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
5502 $as_echo "$ac_cv_lib_z_deflate" >&6; }
5503 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
5504    zlib="true"
5505 else
5506    zlib="false" ;  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib missing. Will need zlib for PNG support" >&5
5507 $as_echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5508 fi
5509
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
5511 $as_echo_n "checking for sin in -lm... " >&6; }
5512 if test "${ac_cv_lib_m_sin+set}" = set; then :
5513   $as_echo_n "(cached) " >&6
5514 else
5515   ac_check_lib_save_LIBS=$LIBS
5516 LIBS="-lm  $LIBS"
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h.  */
5519
5520 /* Override any GCC internal prototype to avoid an error.
5521    Use char because int might match the return type of a GCC
5522    builtin and then its argument prototype would still apply.  */
5523 #ifdef __cplusplus
5524 extern "C"
5525 #endif
5526 char sin ();
5527 int
5528 main ()
5529 {
5530 return sin ();
5531   ;
5532   return 0;
5533 }
5534 _ACEOF
5535 if ac_fn_c_try_link "$LINENO"; then :
5536   ac_cv_lib_m_sin=yes
5537 else
5538   ac_cv_lib_m_sin=no
5539 fi
5540 rm -f core conftest.err conftest.$ac_objext \
5541     conftest$ac_exeext conftest.$ac_ext
5542 LIBS=$ac_check_lib_save_LIBS
5543 fi
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
5545 $as_echo "$ac_cv_lib_m_sin" >&6; }
5546 if test "x$ac_cv_lib_m_sin" = x""yes; then :
5547   cat >>confdefs.h <<_ACEOF
5548 #define HAVE_LIBM 1
5549 _ACEOF
5550
5551   LIBS="-lm $LIBS"
5552
5553 fi
5554
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
5556 $as_echo_n "checking for main in -lcurses... " >&6; }
5557 if test "${ac_cv_lib_curses_main+set}" = set; then :
5558   $as_echo_n "(cached) " >&6
5559 else
5560   ac_check_lib_save_LIBS=$LIBS
5561 LIBS="-lcurses  $LIBS"
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h.  */
5564
5565
5566 int
5567 main ()
5568 {
5569 return main ();
5570   ;
5571   return 0;
5572 }
5573 _ACEOF
5574 if ac_fn_c_try_link "$LINENO"; then :
5575   ac_cv_lib_curses_main=yes
5576 else
5577   ac_cv_lib_curses_main=no
5578 fi
5579 rm -f core conftest.err conftest.$ac_objext \
5580     conftest$ac_exeext conftest.$ac_ext
5581 LIBS=$ac_check_lib_save_LIBS
5582 fi
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
5584 $as_echo "$ac_cv_lib_curses_main" >&6; }
5585 if test "x$ac_cv_lib_curses_main" = x""yes; then :
5586   curses=true
5587 else
5588   curses=false
5589 fi
5590
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5
5592 $as_echo_n "checking for main in -lncurses... " >&6; }
5593 if test "${ac_cv_lib_ncurses_main+set}" = set; then :
5594   $as_echo_n "(cached) " >&6
5595 else
5596   ac_check_lib_save_LIBS=$LIBS
5597 LIBS="-lncurses  $LIBS"
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h.  */
5600
5601
5602 int
5603 main ()
5604 {
5605 return main ();
5606   ;
5607   return 0;
5608 }
5609 _ACEOF
5610 if ac_fn_c_try_link "$LINENO"; then :
5611   ac_cv_lib_ncurses_main=yes
5612 else
5613   ac_cv_lib_ncurses_main=no
5614 fi
5615 rm -f core conftest.err conftest.$ac_objext \
5616     conftest$ac_exeext conftest.$ac_ext
5617 LIBS=$ac_check_lib_save_LIBS
5618 fi
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5
5620 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
5621 if test "x$ac_cv_lib_ncurses_main" = x""yes; then :
5622   ncurses=true
5623 else
5624   ncurses=false
5625 fi
5626
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
5628 $as_echo_n "checking for main in -lreadline... " >&6; }
5629 if test "${ac_cv_lib_readline_main+set}" = set; then :
5630   $as_echo_n "(cached) " >&6
5631 else
5632   ac_check_lib_save_LIBS=$LIBS
5633 LIBS="-lreadline -lcurses $LIBS"
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h.  */
5636
5637
5638 int
5639 main ()
5640 {
5641 return main ();
5642   ;
5643   return 0;
5644 }
5645 _ACEOF
5646 if ac_fn_c_try_link "$LINENO"; then :
5647   ac_cv_lib_readline_main=yes
5648 else
5649   ac_cv_lib_readline_main=no
5650 fi
5651 rm -f core conftest.err conftest.$ac_objext \
5652     conftest$ac_exeext conftest.$ac_ext
5653 LIBS=$ac_check_lib_save_LIBS
5654 fi
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
5656 $as_echo "$ac_cv_lib_readline_main" >&6; }
5657 if test "x$ac_cv_lib_readline_main" = x""yes; then :
5658   readline=true;
5659
5660 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
5661
5662 else
5663   readline=false
5664 fi
5665
5666 wxwin=false
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtk-x11-2.0" >&5
5668 $as_echo_n "checking for main in -lgtk-x11-2.0... " >&6; }
5669 if test "${ac_cv_lib_gtk_x11_2_0_main+set}" = set; then :
5670   $as_echo_n "(cached) " >&6
5671 else
5672   ac_check_lib_save_LIBS=$LIBS
5673 LIBS="-lgtk-x11-2.0  $LIBS"
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h.  */
5676
5677
5678 int
5679 main ()
5680 {
5681 return main ();
5682   ;
5683   return 0;
5684 }
5685 _ACEOF
5686 if ac_fn_c_try_link "$LINENO"; then :
5687   ac_cv_lib_gtk_x11_2_0_main=yes
5688 else
5689   ac_cv_lib_gtk_x11_2_0_main=no
5690 fi
5691 rm -f core conftest.err conftest.$ac_objext \
5692     conftest$ac_exeext conftest.$ac_ext
5693 LIBS=$ac_check_lib_save_LIBS
5694 fi
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtk_x11_2_0_main" >&5
5696 $as_echo "$ac_cv_lib_gtk_x11_2_0_main" >&6; }
5697 if test "x$ac_cv_lib_gtk_x11_2_0_main" = x""yes; then :
5698   hasx11gtk2=true
5699 fi
5700
5701 if test "x$hasx11gtk2" = "x" ; then
5702   { $as_echo "$as_me:${as_lineno-$LINENO}: Does not have X11 GTK2" >&5
5703 $as_echo "$as_me: Does not have X11 GTK2" >&6;}
5704
5705
5706 fi
5707 if test "$hasx11gtk2" = "true" ; then
5708
5709
5710   CFLAGS="${CFLAGS} ${g76GTK_CFLAGS} ${GLIB_CFLAGS}"
5711 fi
5712
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_gtk2u_core-2.8" >&5
5714 $as_echo_n "checking for main in -lwx_gtk2u_core-2.8... " >&6; }
5715 if test "${ac_cv_lib_wx_gtk2u_core_2_8_main+set}" = set; then :
5716   $as_echo_n "(cached) " >&6
5717 else
5718   ac_check_lib_save_LIBS=$LIBS
5719 LIBS="-lwx_gtk2u_core-2.8 -L/usr/lib64 -L/usr/lib ${GTK_LIBS} ${GLIB_LIBS}  $LIBS"
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h.  */
5722
5723
5724 int
5725 main ()
5726 {
5727 return main ();
5728   ;
5729   return 0;
5730 }
5731 _ACEOF
5732 if ac_fn_c_try_link "$LINENO"; then :
5733   ac_cv_lib_wx_gtk2u_core_2_8_main=yes
5734 else
5735   ac_cv_lib_wx_gtk2u_core_2_8_main=no
5736 fi
5737 rm -f core conftest.err conftest.$ac_objext \
5738     conftest$ac_exeext conftest.$ac_ext
5739 LIBS=$ac_check_lib_save_LIBS
5740 fi
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_gtk2u_core_2_8_main" >&5
5742 $as_echo "$ac_cv_lib_wx_gtk2u_core_2_8_main" >&6; }
5743 if test "x$ac_cv_lib_wx_gtk2u_core_2_8_main" = x""yes; then :
5744   wxwin=true; wx_gtk=true;
5745 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5746
5747 fi
5748
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_mac_core-2.8" >&5
5750 $as_echo_n "checking for main in -lwx_mac_core-2.8... " >&6; }
5751 if test "${ac_cv_lib_wx_mac_core_2_8_main+set}" = set; then :
5752   $as_echo_n "(cached) " >&6
5753 else
5754   ac_check_lib_save_LIBS=$LIBS
5755 LIBS="-lwx_mac_core-2.8  $LIBS"
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h.  */
5758
5759
5760 int
5761 main ()
5762 {
5763 return main ();
5764   ;
5765   return 0;
5766 }
5767 _ACEOF
5768 if ac_fn_c_try_link "$LINENO"; then :
5769   ac_cv_lib_wx_mac_core_2_8_main=yes
5770 else
5771   ac_cv_lib_wx_mac_core_2_8_main=no
5772 fi
5773 rm -f core conftest.err conftest.$ac_objext \
5774     conftest$ac_exeext conftest.$ac_ext
5775 LIBS=$ac_check_lib_save_LIBS
5776 fi
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_mac_core_2_8_main" >&5
5778 $as_echo "$ac_cv_lib_wx_mac_core_2_8_main" >&6; }
5779 if test "x$ac_cv_lib_wx_mac_core_2_8_main" = x""yes; then :
5780   wxwin=true; wx_mac=true;
5781 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5782
5783 fi
5784
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_malloc in -lfftw3" >&5
5786 $as_echo_n "checking for fftw_malloc in -lfftw3... " >&6; }
5787 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then :
5788   $as_echo_n "(cached) " >&6
5789 else
5790   ac_check_lib_save_LIBS=$LIBS
5791 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h.  */
5794
5795 /* Override any GCC internal prototype to avoid an error.
5796    Use char because int might match the return type of a GCC
5797    builtin and then its argument prototype would still apply.  */
5798 #ifdef __cplusplus
5799 extern "C"
5800 #endif
5801 char fftw_malloc ();
5802 int
5803 main ()
5804 {
5805 return fftw_malloc ();
5806   ;
5807   return 0;
5808 }
5809 _ACEOF
5810 if ac_fn_c_try_link "$LINENO"; then :
5811   ac_cv_lib_fftw3_fftw_malloc=yes
5812 else
5813   ac_cv_lib_fftw3_fftw_malloc=no
5814 fi
5815 rm -f core conftest.err conftest.$ac_objext \
5816     conftest$ac_exeext conftest.$ac_ext
5817 LIBS=$ac_check_lib_save_LIBS
5818 fi
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
5820 $as_echo "$ac_cv_lib_fftw3_fftw_malloc" >&6; }
5821 if test "x$ac_cv_lib_fftw3_fftw_malloc" = x""yes; then :
5822   fftw=true;
5823 $as_echo "#define HAVE_FFTW 1" >>confdefs.h
5824
5825 else
5826   fftw=false
5827 fi
5828
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
5830 $as_echo_n "checking for main in -lGL... " >&6; }
5831 if test "${ac_cv_lib_GL_main+set}" = set; then :
5832   $as_echo_n "(cached) " >&6
5833 else
5834   ac_check_lib_save_LIBS=$LIBS
5835 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h.  */
5838
5839
5840 int
5841 main ()
5842 {
5843 return main ();
5844   ;
5845   return 0;
5846 }
5847 _ACEOF
5848 if ac_fn_c_try_link "$LINENO"; then :
5849   ac_cv_lib_GL_main=yes
5850 else
5851   ac_cv_lib_GL_main=no
5852 fi
5853 rm -f core conftest.err conftest.$ac_objext \
5854     conftest$ac_exeext conftest.$ac_ext
5855 LIBS=$ac_check_lib_save_LIBS
5856 fi
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_main" >&5
5858 $as_echo "$ac_cv_lib_GL_main" >&6; }
5859 if test "x$ac_cv_lib_GL_main" = x""yes; then :
5860   libgl=true
5861 else
5862   libgl=false
5863 fi
5864
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
5866 $as_echo_n "checking for main in -lpthread... " >&6; }
5867 if test "${ac_cv_lib_pthread_main+set}" = set; then :
5868   $as_echo_n "(cached) " >&6
5869 else
5870   ac_check_lib_save_LIBS=$LIBS
5871 LIBS="-lpthread  $LIBS"
5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h.  */
5874
5875
5876 int
5877 main ()
5878 {
5879 return main ();
5880   ;
5881   return 0;
5882 }
5883 _ACEOF
5884 if ac_fn_c_try_link "$LINENO"; then :
5885   ac_cv_lib_pthread_main=yes
5886 else
5887   ac_cv_lib_pthread_main=no
5888 fi
5889 rm -f core conftest.err conftest.$ac_objext \
5890     conftest$ac_exeext conftest.$ac_ext
5891 LIBS=$ac_check_lib_save_LIBS
5892 fi
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
5894 $as_echo "$ac_cv_lib_pthread_main" >&6; }
5895 if test "x$ac_cv_lib_pthread_main" = x""yes; then :
5896   pthread=true
5897 else
5898   pthread=false
5899 fi
5900
5901
5902 if test "$zlib" = "true" ; then
5903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpng" >&5
5904 $as_echo_n "checking for main in -lpng... " >&6; }
5905 if test "${ac_cv_lib_png_main+set}" = set; then :
5906   $as_echo_n "(cached) " >&6
5907 else
5908   ac_check_lib_save_LIBS=$LIBS
5909 LIBS="-lpng -L/opt/local/lib -lz -lm $LIBS"
5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h.  */
5912
5913
5914 int
5915 main ()
5916 {
5917 return main ();
5918   ;
5919   return 0;
5920 }
5921 _ACEOF
5922 if ac_fn_c_try_link "$LINENO"; then :
5923   ac_cv_lib_png_main=yes
5924 else
5925   ac_cv_lib_png_main=no
5926 fi
5927 rm -f core conftest.err conftest.$ac_objext \
5928     conftest$ac_exeext conftest.$ac_ext
5929 LIBS=$ac_check_lib_save_LIBS
5930 fi
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_main" >&5
5932 $as_echo "$ac_cv_lib_png_main" >&6; }
5933 if test "x$ac_cv_lib_png_main" = x""yes; then :
5934   png=true ;
5935 $as_echo "#define HAVE_PNG 1" >>confdefs.h
5936
5937 else
5938   png=false
5939 fi
5940
5941 fi
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5944 $as_echo_n "checking for ANSI C header files... " >&6; }
5945 if test "${ac_cv_header_stdc+set}" = set; then :
5946   $as_echo_n "(cached) " >&6
5947 else
5948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h.  */
5950 #include <stdlib.h>
5951 #include <stdarg.h>
5952 #include <string.h>
5953 #include <float.h>
5954
5955 int
5956 main ()
5957 {
5958
5959   ;
5960   return 0;
5961 }
5962 _ACEOF
5963 if ac_fn_c_try_compile "$LINENO"; then :
5964   ac_cv_header_stdc=yes
5965 else
5966   ac_cv_header_stdc=no
5967 fi
5968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969
5970 if test $ac_cv_header_stdc = yes; then
5971   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h.  */
5974 #include <string.h>
5975
5976 _ACEOF
5977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5978   $EGREP "memchr" >/dev/null 2>&1; then :
5979
5980 else
5981   ac_cv_header_stdc=no
5982 fi
5983 rm -f conftest*
5984
5985 fi
5986
5987 if test $ac_cv_header_stdc = yes; then
5988   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h.  */
5991 #include <stdlib.h>
5992
5993 _ACEOF
5994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5995   $EGREP "free" >/dev/null 2>&1; then :
5996
5997 else
5998   ac_cv_header_stdc=no
5999 fi
6000 rm -f conftest*
6001
6002 fi
6003
6004 if test $ac_cv_header_stdc = yes; then
6005   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6006   if test "$cross_compiling" = yes; then :
6007   :
6008 else
6009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h.  */
6011 #include <ctype.h>
6012 #include <stdlib.h>
6013 #if ((' ' & 0x0FF) == 0x020)
6014 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6015 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6016 #else
6017 # define ISLOWER(c) \
6018                    (('a' <= (c) && (c) <= 'i') \
6019                      || ('j' <= (c) && (c) <= 'r') \
6020                      || ('s' <= (c) && (c) <= 'z'))
6021 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6022 #endif
6023
6024 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6025 int
6026 main ()
6027 {
6028   int i;
6029   for (i = 0; i < 256; i++)
6030     if (XOR (islower (i), ISLOWER (i))
6031         || toupper (i) != TOUPPER (i))
6032       return 2;
6033   return 0;
6034 }
6035 _ACEOF
6036 if ac_fn_c_try_run "$LINENO"; then :
6037
6038 else
6039   ac_cv_header_stdc=no
6040 fi
6041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6042   conftest.$ac_objext conftest.beam conftest.$ac_ext
6043 fi
6044
6045 fi
6046 fi
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6048 $as_echo "$ac_cv_header_stdc" >&6; }
6049 if test $ac_cv_header_stdc = yes; then
6050
6051 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6052
6053 fi
6054
6055 for ac_header in fcntl.h unistd.h getopt.h sys/fcntl.h setjmp.h stdarg.h stddef.h sys/types.h sys/stat.h string.h ctype.h math.h stdio.h netinet/in.h inttypes.h sys/param.h stdint.h stdlib.h assert.h sys/time.h sys/resource.h sys/time.h readline.h readline/readline.h
6056 do :
6057   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6058 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6059 eval as_val=\$$as_ac_Header
6060    if test "x$as_val" = x""yes; then :
6061   cat >>confdefs.h <<_ACEOF
6062 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6063 _ACEOF
6064
6065 fi
6066
6067 done
6068
6069
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6071 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6072 if test "${ac_cv_c_const+set}" = set; then :
6073   $as_echo_n "(cached) " >&6
6074 else
6075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h.  */
6077
6078 int
6079 main ()
6080 {
6081 /* FIXME: Include the comments suggested by Paul. */
6082 #ifndef __cplusplus
6083   /* Ultrix mips cc rejects this.  */
6084   typedef int charset[2];
6085   const charset cs;
6086   /* SunOS 4.1.1 cc rejects this.  */
6087   char const *const *pcpcc;
6088   char **ppc;
6089   /* NEC SVR4.0.2 mips cc rejects this.  */
6090   struct point {int x, y;};
6091   static struct point const zero = {0,0};
6092   /* AIX XL C 1.02.0.0 rejects this.
6093      It does not let you subtract one const X* pointer from another in
6094      an arm of an if-expression whose if-part is not a constant
6095      expression */
6096   const char *g = "string";
6097   pcpcc = &g + (g ? g-g : 0);
6098   /* HPUX 7.0 cc rejects these. */
6099   ++pcpcc;
6100   ppc = (char**) pcpcc;
6101   pcpcc = (char const *const *) ppc;
6102   { /* SCO 3.2v4 cc rejects this.  */
6103     char *t;
6104     char const *s = 0 ? (char *) 0 : (char const *) 0;
6105
6106     *t++ = 0;
6107     if (s) return 0;
6108   }
6109   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6110     int x[] = {25, 17};
6111     const int *foo = &x[0];
6112     ++foo;
6113   }
6114   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6115     typedef const int *iptr;
6116     iptr p = 0;
6117     ++p;
6118   }
6119   { /* AIX XL C 1.02.0.0 rejects this saying
6120        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6121     struct s { int j; const int *ap[3]; };
6122     struct s *b; b->j = 5;
6123   }
6124   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6125     const int foo = 10;
6126     if (!foo) return 0;
6127   }
6128   return !cs[0] && !zero.x;
6129 #endif
6130
6131   ;
6132   return 0;
6133 }
6134 _ACEOF
6135 if ac_fn_c_try_compile "$LINENO"; then :
6136   ac_cv_c_const=yes
6137 else
6138   ac_cv_c_const=no
6139 fi
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 fi
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6143 $as_echo "$ac_cv_c_const" >&6; }
6144 if test $ac_cv_c_const = no; then
6145
6146 $as_echo "#define const /**/" >>confdefs.h
6147
6148 fi
6149
6150 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6151 if test "x$ac_cv_type_off_t" = x""yes; then :
6152
6153 else
6154
6155 cat >>confdefs.h <<_ACEOF
6156 #define off_t long int
6157 _ACEOF
6158
6159 fi
6160
6161 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6162 if test "x$ac_cv_type_size_t" = x""yes; then :
6163
6164 else
6165
6166 cat >>confdefs.h <<_ACEOF
6167 #define size_t unsigned int
6168 _ACEOF
6169
6170 fi
6171
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6173 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6174 if test "${ac_cv_struct_tm+set}" = set; then :
6175   $as_echo_n "(cached) " >&6
6176 else
6177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h.  */
6179 #include <sys/types.h>
6180 #include <time.h>
6181
6182 int
6183 main ()
6184 {
6185 struct tm tm;
6186                                      int *p = &tm.tm_sec;
6187                                      return !p;
6188   ;
6189   return 0;
6190 }
6191 _ACEOF
6192 if ac_fn_c_try_compile "$LINENO"; then :
6193   ac_cv_struct_tm=time.h
6194 else
6195   ac_cv_struct_tm=sys/time.h
6196 fi
6197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198 fi
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6200 $as_echo "$ac_cv_struct_tm" >&6; }
6201 if test $ac_cv_struct_tm = sys/time.h; then
6202
6203 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6204
6205 fi
6206
6207
6208 for ac_func in vprintf
6209 do :
6210   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6211 if test "x$ac_cv_func_vprintf" = x""yes; then :
6212   cat >>confdefs.h <<_ACEOF
6213 #define HAVE_VPRINTF 1
6214 _ACEOF
6215
6216 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6217 if test "x$ac_cv_func__doprnt" = x""yes; then :
6218
6219 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6220
6221 fi
6222
6223 fi
6224 done
6225
6226
6227 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
6228 do :
6229   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6230 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6231 eval as_val=\$$as_ac_var
6232    if test "x$as_val" = x""yes; then :
6233   cat >>confdefs.h <<_ACEOF
6234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6235 _ACEOF
6236
6237 fi
6238 done
6239
6240 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
6241 if test "x$ac_cv_func_basename" = x""yes; then :
6242
6243 fi
6244
6245 ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
6246 if test "x$ac_cv_func_setjmp" = x""yes; then :
6247
6248 fi
6249
6250 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
6251 if test "x$ac_cv_func_setpriority" = x""yes; then :
6252
6253 fi
6254
6255 ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
6256 if test "x$ac_cv_func_time" = x""yes; then :
6257
6258 fi
6259
6260 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6261 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
6262
6263 fi
6264
6265 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6266 if test "x$ac_cv_func_getopt" = x""yes; then :
6267    getopt=true
6268 else
6269    getopt=false
6270 fi
6271
6272
6273 if test "${OSTYPE}" = "cygwin" ; then
6274   getopt_long=false
6275 else
6276   ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
6277 if test "x$ac_cv_func_getopt_long" = x""yes; then :
6278    getopt_long=true
6279 else
6280    getopt_long=false
6281 fi
6282
6283 fi
6284
6285 if test "${getopt_long}" = "false" ; then
6286   my_includes="$my_includes -I../getopt"
6287
6288 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
6289
6290   ctlibs_base="$ctlibs_base -lgetopt"
6291   LDFLAGS="$LDFLAGS -L../getopt"
6292   GETOPTLONG=1
6293 fi
6294  if test "$GETOPTLONG"="1"; then
6295   INCLUDED_GETOPT_LONG_TRUE=
6296   INCLUDED_GETOPT_LONG_FALSE='#'
6297 else
6298   INCLUDED_GETOPT_LONG_TRUE='#'
6299   INCLUDED_GETOPT_LONG_FALSE=
6300 fi
6301
6302
6303 if test "${readline}" = "true" ; then
6304   ctlibs_base="$ctlibs_base -lreadline"
6305   if test "${ncurses}" = "true"; then
6306     ctlibs_base="$ctlibs_base -lncurses"
6307   elif test "${curses}" = "true"; then
6308     ctlibs_base="$ctlibs_base -lcurses"
6309   fi
6310 fi
6311
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking debug" >&5
6313 $as_echo_n "checking debug... " >&6; }
6314 # Check whether --enable-debug was given.
6315 if test "${enable_debug+set}" = set; then :
6316   enableval=$enable_debug; case "${enableval}" in
6317   yes) debug="true"
6318        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6319 $as_echo "yes" >&6; }
6320        ;;
6321   no)  debug="false"
6322        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6324        ;;
6325   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-debug" >&5
6326 $as_echo "bad value ${enableval} for --enable-debug" >&6; }
6327        ;;
6328 esac
6329 else
6330   debug=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 $as_echo "no" >&6; }
6332 fi
6333
6334  if test "$debug" = "true"; then
6335   DEBUG_TRUE=
6336   DEBUG_FALSE='#'
6337 else
6338   DEBUG_TRUE='#'
6339   DEBUG_FALSE=
6340 fi
6341
6342
6343 if test "$datadir" != "" ; then
6344   CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
6345 fi
6346
6347 if test "$debug" = "true" ; then
6348   CFLAGS="$CFLAGS -g -O0 -DDEBUG"
6349
6350 $as_echo "#define DEBUG 1" >>confdefs.h
6351
6352 else
6353   CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
6354
6355 $as_echo "#define NDEBUG 1" >>confdefs.h
6356
6357 fi
6358
6359 if test "${pthread}" = "true" ; then
6360
6361 $as_echo "#define HAVE_WXTHREADS 1" >>confdefs.h
6362
6363 fi
6364
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sstream" >&5
6366 $as_echo_n "checking sstream... " >&6; }
6367  if  test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
6368      test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
6369      test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
6370
6371 $as_echo "#define HAVE_SSTREAM 1" >>confdefs.h
6372
6373    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6374 $as_echo "yes" >&6; }
6375   else
6376    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6378  fi
6379
6380
6381 CFLAGS="$CFLAGS -Wall"
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose warnings" >&5
6383 $as_echo_n "checking whether to enable verbose warnings... " >&6; }
6384 # Check whether --enable-verbose-warnings was given.
6385 if test "${enable_verbose_warnings+set}" = set; then :
6386   enableval=$enable_verbose_warnings;  case "$enableval" in
6387   yes)
6388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6389 $as_echo "yes" >&6; }
6390     CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
6391     ;;
6392   *)
6393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6395     ;;
6396   esac
6397 else
6398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6400
6401 fi
6402
6403
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking static executables" >&5
6405 $as_echo_n "checking static executables... " >&6; }
6406 # Check whether --enable-static was given.
6407 if test "${enable_static+set}" = set; then :
6408   enableval=$enable_static;  case "$enableval" in
6409   yes)
6410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6411 $as_echo "yes" >&6; }
6412     CFLAGS="$CFLAGS --static"
6413     ;;
6414   *)
6415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6417     ;;
6418   esac
6419 else
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422
6423 fi
6424
6425
6426
6427 # Check whether --with-lam was given.
6428 if test "${with_lam+set}" = set; then :
6429   withval=$with_lam;     if test "$withval" != "no" ; then
6430          trylamdir=$withval
6431      fi
6432
6433 fi
6434
6435
6436 if test "$withval" != "no" ; then
6437   if test "$prefix" != "NONE" ; then
6438      trylamdir="$trylamdir $prefix"
6439   fi
6440
6441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LAM MPI installation" >&5
6442 $as_echo_n "checking for LAM MPI installation... " >&6; }
6443   for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
6444     if test -x "$testlamdir/bin/hcp" ; then
6445       if test "$testlamdir" != "/usr"; then
6446         LDFLAGS="$LDFLAGS -L$testlamdir/lib"
6447         CFLAGS="$CFLAGS -I$testlamdir/include"
6448       fi
6449       CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
6450       lamdir="$testlamdir"
6451
6452       mpienable="true"
6453
6454       break
6455     fi
6456   done
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lamdir" >&5
6458 $as_echo "$lamdir" >&6; }
6459 else
6460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6462 fi
6463
6464
6465
6466 # Check whether --with-ctn was given.
6467 if test "${with_ctn+set}" = set; then :
6468   withval=$with_ctn;     if test "$withval" != "no" ; then
6469          tryctndir=$withval
6470      fi
6471
6472 fi
6473
6474
6475 if test "$withval" == "no" -o "$withval" == "NONE" ; then
6476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6477 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6479 $as_echo "disabled" >&6; }
6480 else
6481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6482 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6483   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
6484     if test -f "$testctndir/libctn.a" ; then
6485       LDFLAGS="$LDFLAGS -L$testctndir"
6486       ctnlib="true"
6487       break
6488     fi
6489   done
6490   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
6491     if test -f "$testctndir/ctn_os.h" ; then
6492       CFLAGS="$CFLAGS -I$testctndir"
6493       ctninclude="true"
6494       break
6495     fi
6496   done
6497   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
6498       ctn="true"
6499
6500 $as_echo "#define HAVE_CTN_DICOM 1" >>confdefs.h
6501
6502       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6503 $as_echo "yes" >&6; }
6504   else
6505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506 $as_echo "no" >&6; }
6507   fi
6508 fi
6509
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPU specification" >&5
6511 $as_echo_n "checking for CPU specification... " >&6; }
6512
6513 # Check whether --with-mcpu was given.
6514 if test "${with_mcpu+set}" = set; then :
6515   withval=$with_mcpu;
6516 fi
6517
6518
6519 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
6520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 else
6523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6524 $as_echo "$withval" >&6; }
6525   CFLAGS="$CFLAGS -mcpu=$withval"
6526 fi
6527
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for web access" >&5
6529 $as_echo_n "checking for web access... " >&6; }
6530
6531 # Check whether --with-cgibin-dir was given.
6532 if test "${with_cgibin_dir+set}" = set; then :
6533   withval=$with_cgibin_dir;  cgibindir=$withval ;
6534 fi
6535
6536
6537
6538 # Check whether --with-cgibin-url was given.
6539 if test "${with_cgibin_url+set}" = set; then :
6540   withval=$with_cgibin_url;  cgibinurl=$withval ;
6541 fi
6542
6543
6544
6545 # Check whether --with-webdata-dir was given.
6546 if test "${with_webdata_dir+set}" = set; then :
6547   withval=$with_webdata_dir;  webdatadir=$withval ;
6548 fi
6549
6550
6551
6552 # Check whether --with-webdata-url was given.
6553 if test "${with_webdata_url+set}" = set; then :
6554   withval=$with_webdata_url;  webdataurl=$withval ;
6555 fi
6556
6557
6558
6559 # Check whether --with-html-dir was given.
6560 if test "${with_html_dir+set}" = set; then :
6561   withval=$with_html_dir;  html_%dir=$withval ;
6562 fi
6563
6564
6565 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" ; then
6566   cgiprograms="ctsim.cgi ctsim.conf"
6567
6568 fi
6569
6570 if test "x$html_dir" = "x" ; then
6571   htmldata=simulate.html
6572
6573 fi
6574  if test "x$html_dir" = "x"; then
6575   USE_HTML_TRUE=
6576   USE_HTML_FALSE='#'
6577 else
6578   USE_HTML_TRUE='#'
6579   USE_HTML_FALSE=
6580 fi
6581
6582
6583 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" -o "x$webdatadir" != "x" -o "x$webdataurl" != "x" -o "x$html_dir" != "x" ; then
6584   webenabled=true
6585
6586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6587 $as_echo "yes" >&6; }
6588   if test "x$cgibindir" = "x" ; then
6589     as_fn_error "--with-cgibin-dir not set for web access" "$LINENO" 5
6590   elif test "x$cgibinurl" = "x" ; then
6591     as_fn_error "--with-cgibin-url not set for web access" "$LINENO" 5
6592   elif test "x$webdatadir" = "x" ; then
6593     as_fn_error "--with-webdata-dir not set for web access" "$LINENO" 5
6594   elif test "x$webdataurl" = "x" ; then
6595     as_fn_error "--with-webdata-url not set for web access" "$LINENO" 5
6596   elif test "x$html_dir" = "x" ; then
6597     as_fn_error "--with-html-dir not set for web access" "$LINENO" 5
6598   fi
6599 else
6600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 $as_echo "no" >&6; }
6602 fi
6603
6604  if test "x$lamdir" != "x"; then
6605   USE_LAM_TRUE=
6606   USE_LAM_FALSE='#'
6607 else
6608   USE_LAM_TRUE='#'
6609   USE_LAM_FALSE=
6610 fi
6611
6612
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6614 $as_echo_n "checking for X... " >&6; }
6615
6616
6617 # Check whether --with-x was given.
6618 if test "${with_x+set}" = set; then :
6619   withval=$with_x;
6620 fi
6621
6622 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6623 if test "x$with_x" = xno; then
6624   # The user explicitly disabled X.
6625   have_x=disabled
6626 else
6627   case $x_includes,$x_libraries in #(
6628     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6629     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6630   $as_echo_n "(cached) " >&6
6631 else
6632   # One or both of the vars are not set, and there is no cached value.
6633 ac_x_includes=no ac_x_libraries=no
6634 rm -f -r conftest.dir
6635 if mkdir conftest.dir; then
6636   cd conftest.dir
6637   cat >Imakefile <<'_ACEOF'
6638 incroot:
6639         @echo incroot='${INCROOT}'
6640 usrlibdir:
6641         @echo usrlibdir='${USRLIBDIR}'
6642 libdir:
6643         @echo libdir='${LIBDIR}'
6644 _ACEOF
6645   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6646     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6647     for ac_var in incroot usrlibdir libdir; do
6648       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6649     done
6650     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6651     for ac_extension in a so sl dylib la dll; do
6652       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6653          test -f "$ac_im_libdir/libX11.$ac_extension"; then
6654         ac_im_usrlibdir=$ac_im_libdir; break
6655       fi
6656     done
6657     # Screen out bogus values from the imake configuration.  They are
6658     # bogus both because they are the default anyway, and because
6659     # using them would break gcc on systems where it needs fixed includes.
6660     case $ac_im_incroot in
6661         /usr/include) ac_x_includes= ;;
6662         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6663     esac
6664     case $ac_im_usrlibdir in
6665         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6666         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6667     esac
6668   fi
6669   cd ..
6670   rm -f -r conftest.dir
6671 fi
6672
6673 # Standard set of common directories for X headers.
6674 # Check X11 before X11Rn because it is often a symlink to the current release.
6675 ac_x_header_dirs='
6676 /usr/X11/include
6677 /usr/X11R7/include
6678 /usr/X11R6/include
6679 /usr/X11R5/include
6680 /usr/X11R4/include
6681
6682 /usr/include/X11
6683 /usr/include/X11R7
6684 /usr/include/X11R6
6685 /usr/include/X11R5
6686 /usr/include/X11R4
6687
6688 /usr/local/X11/include
6689 /usr/local/X11R7/include
6690 /usr/local/X11R6/include
6691 /usr/local/X11R5/include
6692 /usr/local/X11R4/include
6693
6694 /usr/local/include/X11
6695 /usr/local/include/X11R7
6696 /usr/local/include/X11R6
6697 /usr/local/include/X11R5
6698 /usr/local/include/X11R4
6699
6700 /usr/X386/include
6701 /usr/x386/include
6702 /usr/XFree86/include/X11
6703
6704 /usr/include
6705 /usr/local/include
6706 /usr/unsupported/include
6707 /usr/athena/include
6708 /usr/local/x11r5/include
6709 /usr/lpp/Xamples/include
6710
6711 /usr/openwin/include
6712 /usr/openwin/share/include'
6713
6714 if test "$ac_x_includes" = no; then
6715   # Guess where to find include files, by looking for Xlib.h.
6716   # First, try using that file with no special directory specified.
6717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h.  */
6719 #include <X11/Xlib.h>
6720 _ACEOF
6721 if ac_fn_c_try_cpp "$LINENO"; then :
6722   # We can compile using X headers with no special include directory.
6723 ac_x_includes=
6724 else
6725   for ac_dir in $ac_x_header_dirs; do
6726   if test -r "$ac_dir/X11/Xlib.h"; then
6727     ac_x_includes=$ac_dir
6728     break
6729   fi
6730 done
6731 fi
6732 rm -f conftest.err conftest.$ac_ext
6733 fi # $ac_x_includes = no
6734
6735 if test "$ac_x_libraries" = no; then
6736   # Check for the libraries.
6737   # See if we find them without any special options.
6738   # Don't add to $LIBS permanently.
6739   ac_save_LIBS=$LIBS
6740   LIBS="-lX11 $LIBS"
6741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h.  */
6743 #include <X11/Xlib.h>
6744 int
6745 main ()
6746 {
6747 XrmInitialize ()
6748   ;
6749   return 0;
6750 }
6751 _ACEOF
6752 if ac_fn_c_try_link "$LINENO"; then :
6753   LIBS=$ac_save_LIBS
6754 # We can link X programs with no special library path.
6755 ac_x_libraries=
6756 else
6757   LIBS=$ac_save_LIBS
6758 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6759 do
6760   # Don't even attempt the hair of trying to link an X program!
6761   for ac_extension in a so sl dylib la dll; do
6762     if test -r "$ac_dir/libX11.$ac_extension"; then
6763       ac_x_libraries=$ac_dir
6764       break 2
6765     fi
6766   done
6767 done
6768 fi
6769 rm -f core conftest.err conftest.$ac_objext \
6770     conftest$ac_exeext conftest.$ac_ext
6771 fi # $ac_x_libraries = no
6772
6773 case $ac_x_includes,$ac_x_libraries in #(
6774   no,* | *,no | *\'*)
6775     # Didn't find X, or a directory has "'" in its name.
6776     ac_cv_have_x="have_x=no";; #(
6777   *)
6778     # Record where we found X for the cache.
6779     ac_cv_have_x="have_x=yes\
6780         ac_x_includes='$ac_x_includes'\
6781         ac_x_libraries='$ac_x_libraries'"
6782 esac
6783 fi
6784 ;; #(
6785     *) have_x=yes;;
6786   esac
6787   eval "$ac_cv_have_x"
6788 fi # $with_x != no
6789
6790 if test "$have_x" != yes; then
6791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6792 $as_echo "$have_x" >&6; }
6793   no_x=yes
6794 else
6795   # If each of the values was on the command line, it overrides each guess.
6796   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6797   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6798   # Update the cache value to reflect the command line values.
6799   ac_cv_have_x="have_x=yes\
6800         ac_x_includes='$x_includes'\
6801         ac_x_libraries='$x_libraries'"
6802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6803 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6804 fi
6805
6806 if test "$no_x" = yes; then
6807   # Not all programs may use this symbol, but it does not hurt to define it.
6808
6809 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6810
6811   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6812 else
6813   if test -n "$x_includes"; then
6814     X_CFLAGS="$X_CFLAGS -I$x_includes"
6815   fi
6816
6817   # It would also be nice to do this for all -L options, not just this one.
6818   if test -n "$x_libraries"; then
6819     X_LIBS="$X_LIBS -L$x_libraries"
6820     # For Solaris; some versions of Sun CC require a space after -R and
6821     # others require no space.  Words are not sufficient . . . .
6822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6823 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6824     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6825     ac_xsave_c_werror_flag=$ac_c_werror_flag
6826     ac_c_werror_flag=yes
6827     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828 /* end confdefs.h.  */
6829
6830 int
6831 main ()
6832 {
6833
6834   ;
6835   return 0;
6836 }
6837 _ACEOF
6838 if ac_fn_c_try_link "$LINENO"; then :
6839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841        X_LIBS="$X_LIBS -R$x_libraries"
6842 else
6843   LIBS="$ac_xsave_LIBS -R $x_libraries"
6844        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h.  */
6846
6847 int
6848 main ()
6849 {
6850
6851   ;
6852   return 0;
6853 }
6854 _ACEOF
6855 if ac_fn_c_try_link "$LINENO"; then :
6856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6857 $as_echo "yes" >&6; }
6858           X_LIBS="$X_LIBS -R $x_libraries"
6859 else
6860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6861 $as_echo "neither works" >&6; }
6862 fi
6863 rm -f core conftest.err conftest.$ac_objext \
6864     conftest$ac_exeext conftest.$ac_ext
6865 fi
6866 rm -f core conftest.err conftest.$ac_objext \
6867     conftest$ac_exeext conftest.$ac_ext
6868     ac_c_werror_flag=$ac_xsave_c_werror_flag
6869     LIBS=$ac_xsave_LIBS
6870   fi
6871
6872   # Check for system-dependent libraries X programs must link with.
6873   # Do this before checking for the system-independent R6 libraries
6874   # (-lICE), since we may need -lsocket or whatever for X linking.
6875
6876   if test "$ISC" = yes; then
6877     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6878   else
6879     # Martyn Johnson says this is needed for Ultrix, if the X
6880     # libraries were built with DECnet support.  And Karl Berry says
6881     # the Alpha needs dnet_stub (dnet does not exist).
6882     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6883     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h.  */
6885
6886 /* Override any GCC internal prototype to avoid an error.
6887    Use char because int might match the return type of a GCC
6888    builtin and then its argument prototype would still apply.  */
6889 #ifdef __cplusplus
6890 extern "C"
6891 #endif
6892 char XOpenDisplay ();
6893 int
6894 main ()
6895 {
6896 return XOpenDisplay ();
6897   ;
6898   return 0;
6899 }
6900 _ACEOF
6901 if ac_fn_c_try_link "$LINENO"; then :
6902
6903 else
6904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6905 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6906 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
6907   $as_echo_n "(cached) " >&6
6908 else
6909   ac_check_lib_save_LIBS=$LIBS
6910 LIBS="-ldnet  $LIBS"
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h.  */
6913
6914 /* Override any GCC internal prototype to avoid an error.
6915    Use char because int might match the return type of a GCC
6916    builtin and then its argument prototype would still apply.  */
6917 #ifdef __cplusplus
6918 extern "C"
6919 #endif
6920 char dnet_ntoa ();
6921 int
6922 main ()
6923 {
6924 return dnet_ntoa ();
6925   ;
6926   return 0;
6927 }
6928 _ACEOF
6929 if ac_fn_c_try_link "$LINENO"; then :
6930   ac_cv_lib_dnet_dnet_ntoa=yes
6931 else
6932   ac_cv_lib_dnet_dnet_ntoa=no
6933 fi
6934 rm -f core conftest.err conftest.$ac_objext \
6935     conftest$ac_exeext conftest.$ac_ext
6936 LIBS=$ac_check_lib_save_LIBS
6937 fi
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6939 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6940 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
6941   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6942 fi
6943
6944     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6945       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6946 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6947 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
6948   $as_echo_n "(cached) " >&6
6949 else
6950   ac_check_lib_save_LIBS=$LIBS
6951 LIBS="-ldnet_stub  $LIBS"
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h.  */
6954
6955 /* Override any GCC internal prototype to avoid an error.
6956    Use char because int might match the return type of a GCC
6957    builtin and then its argument prototype would still apply.  */
6958 #ifdef __cplusplus
6959 extern "C"
6960 #endif
6961 char dnet_ntoa ();
6962 int
6963 main ()
6964 {
6965 return dnet_ntoa ();
6966   ;
6967   return 0;
6968 }
6969 _ACEOF
6970 if ac_fn_c_try_link "$LINENO"; then :
6971   ac_cv_lib_dnet_stub_dnet_ntoa=yes
6972 else
6973   ac_cv_lib_dnet_stub_dnet_ntoa=no
6974 fi
6975 rm -f core conftest.err conftest.$ac_objext \
6976     conftest$ac_exeext conftest.$ac_ext
6977 LIBS=$ac_check_lib_save_LIBS
6978 fi
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6980 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6981 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
6982   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6983 fi
6984
6985     fi
6986 fi
6987 rm -f core conftest.err conftest.$ac_objext \
6988     conftest$ac_exeext conftest.$ac_ext
6989     LIBS="$ac_xsave_LIBS"
6990
6991     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6992     # to get the SysV transport functions.
6993     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6994     # needs -lnsl.
6995     # The nsl library prevents programs from opening the X display
6996     # on Irix 5.2, according to T.E. Dickey.
6997     # The functions gethostbyname, getservbyname, and inet_addr are
6998     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6999     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7000 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7001
7002 fi
7003
7004     if test $ac_cv_func_gethostbyname = no; then
7005       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7006 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7007 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7008   $as_echo_n "(cached) " >&6
7009 else
7010   ac_check_lib_save_LIBS=$LIBS
7011 LIBS="-lnsl  $LIBS"
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h.  */
7014
7015 /* Override any GCC internal prototype to avoid an error.
7016    Use char because int might match the return type of a GCC
7017    builtin and then its argument prototype would still apply.  */
7018 #ifdef __cplusplus
7019 extern "C"
7020 #endif
7021 char gethostbyname ();
7022 int
7023 main ()
7024 {
7025 return gethostbyname ();
7026   ;
7027   return 0;
7028 }
7029 _ACEOF
7030 if ac_fn_c_try_link "$LINENO"; then :
7031   ac_cv_lib_nsl_gethostbyname=yes
7032 else
7033   ac_cv_lib_nsl_gethostbyname=no
7034 fi
7035 rm -f core conftest.err conftest.$ac_objext \
7036     conftest$ac_exeext conftest.$ac_ext
7037 LIBS=$ac_check_lib_save_LIBS
7038 fi
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7040 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7041 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7042   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7043 fi
7044
7045       if test $ac_cv_lib_nsl_gethostbyname = no; then
7046         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7047 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7048 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7049   $as_echo_n "(cached) " >&6
7050 else
7051   ac_check_lib_save_LIBS=$LIBS
7052 LIBS="-lbsd  $LIBS"
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h.  */
7055
7056 /* Override any GCC internal prototype to avoid an error.
7057    Use char because int might match the return type of a GCC
7058    builtin and then its argument prototype would still apply.  */
7059 #ifdef __cplusplus
7060 extern "C"
7061 #endif
7062 char gethostbyname ();
7063 int
7064 main ()
7065 {
7066 return gethostbyname ();
7067   ;
7068   return 0;
7069 }
7070 _ACEOF
7071 if ac_fn_c_try_link "$LINENO"; then :
7072   ac_cv_lib_bsd_gethostbyname=yes
7073 else
7074   ac_cv_lib_bsd_gethostbyname=no
7075 fi
7076 rm -f core conftest.err conftest.$ac_objext \
7077     conftest$ac_exeext conftest.$ac_ext
7078 LIBS=$ac_check_lib_save_LIBS
7079 fi
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7081 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7082 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7083   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7084 fi
7085
7086       fi
7087     fi
7088
7089     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7090     # socket/setsockopt and other routines are undefined under SCO ODT
7091     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7092     # on later versions), says Simon Leinen: it contains gethostby*
7093     # variants that don't use the name server (or something).  -lsocket
7094     # must be given before -lnsl if both are needed.  We assume that
7095     # if connect needs -lnsl, so does gethostbyname.
7096     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7097 if test "x$ac_cv_func_connect" = x""yes; then :
7098
7099 fi
7100
7101     if test $ac_cv_func_connect = no; then
7102       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7103 $as_echo_n "checking for connect in -lsocket... " >&6; }
7104 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7105   $as_echo_n "(cached) " >&6
7106 else
7107   ac_check_lib_save_LIBS=$LIBS
7108 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h.  */
7111
7112 /* Override any GCC internal prototype to avoid an error.
7113    Use char because int might match the return type of a GCC
7114    builtin and then its argument prototype would still apply.  */
7115 #ifdef __cplusplus
7116 extern "C"
7117 #endif
7118 char connect ();
7119 int
7120 main ()
7121 {
7122 return connect ();
7123   ;
7124   return 0;
7125 }
7126 _ACEOF
7127 if ac_fn_c_try_link "$LINENO"; then :
7128   ac_cv_lib_socket_connect=yes
7129 else
7130   ac_cv_lib_socket_connect=no
7131 fi
7132 rm -f core conftest.err conftest.$ac_objext \
7133     conftest$ac_exeext conftest.$ac_ext
7134 LIBS=$ac_check_lib_save_LIBS
7135 fi
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7137 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7138 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7139   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7140 fi
7141
7142     fi
7143
7144     # Guillermo Gomez says -lposix is necessary on A/UX.
7145     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7146 if test "x$ac_cv_func_remove" = x""yes; then :
7147
7148 fi
7149
7150     if test $ac_cv_func_remove = no; then
7151       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7152 $as_echo_n "checking for remove in -lposix... " >&6; }
7153 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7154   $as_echo_n "(cached) " >&6
7155 else
7156   ac_check_lib_save_LIBS=$LIBS
7157 LIBS="-lposix  $LIBS"
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h.  */
7160
7161 /* Override any GCC internal prototype to avoid an error.
7162    Use char because int might match the return type of a GCC
7163    builtin and then its argument prototype would still apply.  */
7164 #ifdef __cplusplus
7165 extern "C"
7166 #endif
7167 char remove ();
7168 int
7169 main ()
7170 {
7171 return remove ();
7172   ;
7173   return 0;
7174 }
7175 _ACEOF
7176 if ac_fn_c_try_link "$LINENO"; then :
7177   ac_cv_lib_posix_remove=yes
7178 else
7179   ac_cv_lib_posix_remove=no
7180 fi
7181 rm -f core conftest.err conftest.$ac_objext \
7182     conftest$ac_exeext conftest.$ac_ext
7183 LIBS=$ac_check_lib_save_LIBS
7184 fi
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7186 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7187 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7188   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7189 fi
7190
7191     fi
7192
7193     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7194     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7195 if test "x$ac_cv_func_shmat" = x""yes; then :
7196
7197 fi
7198
7199     if test $ac_cv_func_shmat = no; then
7200       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7201 $as_echo_n "checking for shmat in -lipc... " >&6; }
7202 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7203   $as_echo_n "(cached) " >&6
7204 else
7205   ac_check_lib_save_LIBS=$LIBS
7206 LIBS="-lipc  $LIBS"
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h.  */
7209
7210 /* Override any GCC internal prototype to avoid an error.
7211    Use char because int might match the return type of a GCC
7212    builtin and then its argument prototype would still apply.  */
7213 #ifdef __cplusplus
7214 extern "C"
7215 #endif
7216 char shmat ();
7217 int
7218 main ()
7219 {
7220 return shmat ();
7221   ;
7222   return 0;
7223 }
7224 _ACEOF
7225 if ac_fn_c_try_link "$LINENO"; then :
7226   ac_cv_lib_ipc_shmat=yes
7227 else
7228   ac_cv_lib_ipc_shmat=no
7229 fi
7230 rm -f core conftest.err conftest.$ac_objext \
7231     conftest$ac_exeext conftest.$ac_ext
7232 LIBS=$ac_check_lib_save_LIBS
7233 fi
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7235 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7236 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7237   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7238 fi
7239
7240     fi
7241   fi
7242
7243   # Check for libraries that X11R6 Xt/Xaw programs need.
7244   ac_save_LDFLAGS=$LDFLAGS
7245   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7246   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7247   # check for ICE first), but we must link in the order -lSM -lICE or
7248   # we get undefined symbols.  So assume we have SM if we have ICE.
7249   # These have to be linked with before -lX11, unlike the other
7250   # libraries we check for below, so use a different variable.
7251   # John Interrante, Karl Berry
7252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7253 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7254 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7255   $as_echo_n "(cached) " >&6
7256 else
7257   ac_check_lib_save_LIBS=$LIBS
7258 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h.  */
7261
7262 /* Override any GCC internal prototype to avoid an error.
7263    Use char because int might match the return type of a GCC
7264    builtin and then its argument prototype would still apply.  */
7265 #ifdef __cplusplus
7266 extern "C"
7267 #endif
7268 char IceConnectionNumber ();
7269 int
7270 main ()
7271 {
7272 return IceConnectionNumber ();
7273   ;
7274   return 0;
7275 }
7276 _ACEOF
7277 if ac_fn_c_try_link "$LINENO"; then :
7278   ac_cv_lib_ICE_IceConnectionNumber=yes
7279 else
7280   ac_cv_lib_ICE_IceConnectionNumber=no
7281 fi
7282 rm -f core conftest.err conftest.$ac_objext \
7283     conftest$ac_exeext conftest.$ac_ext
7284 LIBS=$ac_check_lib_save_LIBS
7285 fi
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7287 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7288 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7289   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7290 fi
7291
7292   LDFLAGS=$ac_save_LDFLAGS
7293
7294 fi
7295
7296
7297
7298
7299
7300
7301
7302
7303  if test "x$with_x" = "xno"; then
7304   NO_X_TRUE=
7305   NO_X_FALSE='#'
7306 else
7307   NO_X_TRUE='#'
7308   NO_X_FALSE=
7309 fi
7310
7311
7312 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
7313
7314
7315 LDFLAGS="$LDFLAGS -L/usr/local/lib"
7316
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7318 $as_echo_n "checking for X... " >&6; }
7319 if test "$with_x" != "no" && test "$wxwin" = "true"; then
7320
7321 $as_echo "#define HAVE_X11 1" >>confdefs.h
7322
7323   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
7324   my_includes="$my_includes -I/usr/X11R6/include"
7325   ctlib_graphics="$ctlibs_base -lctgraphics"
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7327 $as_echo "yes" >&6; }
7328   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
7329   if test "$libgl" = "true" ; then
7330     # Removed "-lglut" for Mac OS X compilation
7331     ctlib_graphics="$ctlib_graphics -lGL -lGLU"
7332     if test "$wxwin" = "true" ; then
7333        wxdebug=""
7334        if test "$debug" = "true"; then
7335          wxdebug="--debug"
7336        fi
7337       if test "x$wx_gtk" != "x" ; then
7338        ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8  --libs std,gl` ${GTK_LIBS} ${GLIB_LIBS}"
7339       elif test "x$wx_mac" != "x" ; then
7340         ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl`"
7341       fi
7342     fi
7343   fi
7344   if test "$wxwin" = "true" ; then
7345
7346 $as_echo "#define HAVE_SGP 1" >>confdefs.h
7347
7348   fi
7349 else
7350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353
7354  if test "$wxwin" = "true"; then
7355   HAVE_SGP_TRUE=
7356   HAVE_SGP_FALSE='#'
7357 else
7358   HAVE_SGP_TRUE='#'
7359   HAVE_SGP_FALSE=
7360 fi
7361
7362
7363 if test "$png" = "true" ; then
7364   ctlibs_tools="$ctlibs_tools -lpng"
7365 fi
7366 if test "$zlib" = "true" ; then
7367   ctlibs_tools="$ctlibs_tools -lz"
7368 fi
7369 if test "$fftw" = "true" ; then
7370   ctlibs_tools="$ctlibs_tools -lfftw3"
7371 fi
7372 if test "$ctn" = "true"; then
7373   ctlibs_tools="$ctlibs_tools -lctn"
7374 fi
7375
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldmallocxx" >&5
7377 $as_echo_n "checking for main in -ldmallocxx... " >&6; }
7378 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then :
7379   $as_echo_n "(cached) " >&6
7380 else
7381   ac_check_lib_save_LIBS=$LIBS
7382 LIBS="-ldmallocxx  $LIBS"
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h.  */
7385
7386
7387 int
7388 main ()
7389 {
7390 return main ();
7391   ;
7392   return 0;
7393 }
7394 _ACEOF
7395 if ac_fn_c_try_link "$LINENO"; then :
7396   ac_cv_lib_dmallocxx_main=yes
7397 else
7398   ac_cv_lib_dmallocxx_main=no
7399 fi
7400 rm -f core conftest.err conftest.$ac_objext \
7401     conftest$ac_exeext conftest.$ac_ext
7402 LIBS=$ac_check_lib_save_LIBS
7403 fi
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmallocxx_main" >&5
7405 $as_echo "$ac_cv_lib_dmallocxx_main" >&6; }
7406 if test "x$ac_cv_lib_dmallocxx_main" = x""yes; then :
7407   dmallocxx=true
7408 else
7409   dmallocxx=false
7410 fi
7411
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-dmalloc" >&5
7413 $as_echo_n "checking for enable-dmalloc... " >&6; }
7414 # Check whether --enable-dmalloc was given.
7415 if test "${enable_dmalloc+set}" = set; then :
7416   enableval=$enable_dmalloc; case "${enableval}" in
7417   yes) usedmalloc=true
7418        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7419 $as_echo "yes" >&6; }
7420        ;;
7421   no)  usedmalloc=false
7422        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7424        ;;
7425   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-dmalloc" >&5
7426 $as_echo "bad value ${enableval} for --enable-dmalloc" >&6; }
7427        ;;
7428 esac
7429 else
7430   usedmalloc=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7432 fi
7433
7434
7435 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
7436   ctlibs_tools="$ctlibs_tools -ldmallocxx"
7437
7438 $as_echo "#define HAVE_DMALLOC 1" >>confdefs.h
7439
7440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using dmalloc" >&5
7441 $as_echo "Using dmalloc" >&6; }
7442 fi
7443
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lefence" >&5
7445 $as_echo_n "checking for main in -lefence... " >&6; }
7446 if test "${ac_cv_lib_efence_main+set}" = set; then :
7447   $as_echo_n "(cached) " >&6
7448 else
7449   ac_check_lib_save_LIBS=$LIBS
7450 LIBS="-lefence  $LIBS"
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h.  */
7453
7454
7455 int
7456 main ()
7457 {
7458 return main ();
7459   ;
7460   return 0;
7461 }
7462 _ACEOF
7463 if ac_fn_c_try_link "$LINENO"; then :
7464   ac_cv_lib_efence_main=yes
7465 else
7466   ac_cv_lib_efence_main=no
7467 fi
7468 rm -f core conftest.err conftest.$ac_objext \
7469     conftest$ac_exeext conftest.$ac_ext
7470 LIBS=$ac_check_lib_save_LIBS
7471 fi
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_main" >&5
7473 $as_echo "$ac_cv_lib_efence_main" >&6; }
7474 if test "x$ac_cv_lib_efence_main" = x""yes; then :
7475   efence=true
7476 else
7477   efence=false
7478 fi
7479
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-efence" >&5
7481 $as_echo_n "checking for enable-efence... " >&6; }
7482 # Check whether --enable-efence was given.
7483 if test "${enable_efence+set}" = set; then :
7484   enableval=$enable_efence; case "${enableval}" in
7485   yes) useefence=true
7486        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7487 $as_echo "yes" >&6; }
7488        ;;
7489   no)  useefence=false
7490        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7492        ;;
7493   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-efence" >&5
7494 $as_echo "bad value ${enableval} for --enable-efence" >&6; }
7495        ;;
7496 esac
7497 else
7498   useefence=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7500 fi
7501
7502
7503 if test "$efence" = "true" -a "$useefence" = "true" ; then
7504   ctlibs_tools="$ctlibs_tools -lefence"
7505
7506 $as_echo "#define HAVE_EFENCE 1" >>confdefs.h
7507
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using efence" >&5
7509 $as_echo "Using efence" >&6; }
7510 fi
7511
7512 if test "$wxwin" = "true" ; then
7513   if test "$wx_gtk" = "true"  -o "$wx_mac" = "true" ; then
7514     wxcflags=`$wxconfig $wxdebug --cxxflags --version=2.8`
7515     #wxlibs=`$wxconfig --libs`
7516   else
7517         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
7518         wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
7519   fi
7520   CFLAGS="$CFLAGS -I../include $wxcflags"
7521   ctlib_graphics="$ctlib_graphics $wxlibs"
7522 fi
7523
7524
7525  if test "$wxwin"="true"; then
7526   HAVE_WXWINDOWS_TRUE=
7527   HAVE_WXWINDOWS_FALSE='#'
7528 else
7529   HAVE_WXWINDOWS_TRUE='#'
7530   HAVE_WXWINDOWS_FALSE=
7531 fi
7532
7533
7534 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
7535 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
7536
7537
7538 if test "x$lamdir" != "x" ; then
7539   lamprograms="ctsimtext-lam"
7540
7541   lamdefs="$CFLAGS"
7542
7543 fi
7544
7545 CXXFLAGS="$CFLAGS"
7546
7547 ac_config_files="$ac_config_files Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile man/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile tools/sample-ctsim.sh cgi-bin/ctsim.conf tools/Makefile src/Makefile helical/Makefile helical/sample-helical.sh"
7548
7549
7550 cat >confcache <<\_ACEOF
7551 # This file is a shell script that caches the results of configure
7552 # tests run on this system so they can be shared between configure
7553 # scripts and configure runs, see configure's option --config-cache.
7554 # It is not useful on other systems.  If it contains results you don't
7555 # want to keep, you may remove or edit it.
7556 #
7557 # config.status only pays attention to the cache file if you give it
7558 # the --recheck option to rerun configure.
7559 #
7560 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7561 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7562 # following values.
7563
7564 _ACEOF
7565
7566 # The following way of writing the cache mishandles newlines in values,
7567 # but we know of no workaround that is simple, portable, and efficient.
7568 # So, we kill variables containing newlines.
7569 # Ultrix sh set writes to stderr and can't be redirected directly,
7570 # and sets the high bit in the cache file unless we assign to the vars.
7571 (
7572   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7573     eval ac_val=\$$ac_var
7574     case $ac_val in #(
7575     *${as_nl}*)
7576       case $ac_var in #(
7577       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7578 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7579       esac
7580       case $ac_var in #(
7581       _ | IFS | as_nl) ;; #(
7582       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7583       *) { eval $ac_var=; unset $ac_var;} ;;
7584       esac ;;
7585     esac
7586   done
7587
7588   (set) 2>&1 |
7589     case $as_nl`(ac_space=' '; set) 2>&1` in #(
7590     *${as_nl}ac_space=\ *)
7591       # `set' does not quote correctly, so add quotes: double-quote
7592       # substitution turns \\\\ into \\, and sed turns \\ into \.
7593       sed -n \
7594         "s/'/'\\\\''/g;
7595           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7596       ;; #(
7597     *)
7598       # `set' quotes correctly as required by POSIX, so do not add quotes.
7599       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7600       ;;
7601     esac |
7602     sort
7603 ) |
7604   sed '
7605      /^ac_cv_env_/b end
7606      t clear
7607      :clear
7608      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7609      t end
7610      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7611      :end' >>confcache
7612 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7613   if test -w "$cache_file"; then
7614     test "x$cache_file" != "x/dev/null" &&
7615       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7616 $as_echo "$as_me: updating cache $cache_file" >&6;}
7617     cat confcache >$cache_file
7618   else
7619     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7620 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7621   fi
7622 fi
7623 rm -f confcache
7624
7625 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7626 # Let make expand exec_prefix.
7627 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7628
7629 DEFS=-DHAVE_CONFIG_H
7630
7631 ac_libobjs=
7632 ac_ltlibobjs=
7633 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7634   # 1. Remove the extension, and $U if already installed.
7635   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7636   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7637   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7638   #    will be set to the directory where LIBOBJS objects are built.
7639   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7640   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7641 done
7642 LIBOBJS=$ac_libobjs
7643
7644 LTLIBOBJS=$ac_ltlibobjs
7645
7646
7647 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7648   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7650 fi
7651  if test -n "$EXEEXT"; then
7652   am__EXEEXT_TRUE=
7653   am__EXEEXT_FALSE='#'
7654 else
7655   am__EXEEXT_TRUE='#'
7656   am__EXEEXT_FALSE=
7657 fi
7658
7659 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7660   as_fn_error "conditional \"AMDEP\" was never defined.
7661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7662 fi
7663 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7664   as_fn_error "conditional \"am__fastdepCC\" was never defined.
7665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7666 fi
7667 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7668   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
7669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7670 fi
7671
7672 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
7673   as_fn_error "conditional \"INCLUDED_GETOPT_LONG\" was never defined.
7674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7675 fi
7676 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
7677   as_fn_error "conditional \"DEBUG\" was never defined.
7678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7679 fi
7680 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
7681   as_fn_error "conditional \"USE_HTML\" was never defined.
7682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7683 fi
7684 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
7685   as_fn_error "conditional \"USE_LAM\" was never defined.
7686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7687 fi
7688 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
7689   as_fn_error "conditional \"NO_X\" was never defined.
7690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7691 fi
7692 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
7693   as_fn_error "conditional \"HAVE_SGP\" was never defined.
7694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7695 fi
7696 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
7697   as_fn_error "conditional \"HAVE_WXWINDOWS\" was never defined.
7698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7699 fi
7700
7701 : ${CONFIG_STATUS=./config.status}
7702 ac_write_fail=0
7703 ac_clean_files_save=$ac_clean_files
7704 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7706 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7707 as_write_fail=0
7708 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7709 #! $SHELL
7710 # Generated by $as_me.
7711 # Run this file to recreate the current configuration.
7712 # Compiler output produced by configure, useful for debugging
7713 # configure, is in config.log if it exists.
7714
7715 debug=false
7716 ac_cs_recheck=false
7717 ac_cs_silent=false
7718
7719 SHELL=\${CONFIG_SHELL-$SHELL}
7720 export SHELL
7721 _ASEOF
7722 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7723 ## -------------------- ##
7724 ## M4sh Initialization. ##
7725 ## -------------------- ##
7726
7727 # Be more Bourne compatible
7728 DUALCASE=1; export DUALCASE # for MKS sh
7729 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7730   emulate sh
7731   NULLCMD=:
7732   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7733   # is contrary to our usage.  Disable this feature.
7734   alias -g '${1+"$@"}'='"$@"'
7735   setopt NO_GLOB_SUBST
7736 else
7737   case `(set -o) 2>/dev/null` in #(
7738   *posix*) :
7739     set -o posix ;; #(
7740   *) :
7741      ;;
7742 esac
7743 fi
7744
7745
7746 as_nl='
7747 '
7748 export as_nl
7749 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7750 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7752 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7753 # Prefer a ksh shell builtin over an external printf program on Solaris,
7754 # but without wasting forks for bash or zsh.
7755 if test -z "$BASH_VERSION$ZSH_VERSION" \
7756     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7757   as_echo='print -r --'
7758   as_echo_n='print -rn --'
7759 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7760   as_echo='printf %s\n'
7761   as_echo_n='printf %s'
7762 else
7763   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7764     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7765     as_echo_n='/usr/ucb/echo -n'
7766   else
7767     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7768     as_echo_n_body='eval
7769       arg=$1;
7770       case $arg in #(
7771       *"$as_nl"*)
7772         expr "X$arg" : "X\\(.*\\)$as_nl";
7773         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7774       esac;
7775       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7776     '
7777     export as_echo_n_body
7778     as_echo_n='sh -c $as_echo_n_body as_echo'
7779   fi
7780   export as_echo_body
7781   as_echo='sh -c $as_echo_body as_echo'
7782 fi
7783
7784 # The user is always right.
7785 if test "${PATH_SEPARATOR+set}" != set; then
7786   PATH_SEPARATOR=:
7787   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7788     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7789       PATH_SEPARATOR=';'
7790   }
7791 fi
7792
7793
7794 # IFS
7795 # We need space, tab and new line, in precisely that order.  Quoting is
7796 # there to prevent editors from complaining about space-tab.
7797 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7798 # splitting by setting IFS to empty value.)
7799 IFS=" ""        $as_nl"
7800
7801 # Find who we are.  Look in the path if we contain no directory separator.
7802 case $0 in #((
7803   *[\\/]* ) as_myself=$0 ;;
7804   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7806 do
7807   IFS=$as_save_IFS
7808   test -z "$as_dir" && as_dir=.
7809     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7810   done
7811 IFS=$as_save_IFS
7812
7813      ;;
7814 esac
7815 # We did not find ourselves, most probably we were run as `sh COMMAND'
7816 # in which case we are not to be found in the path.
7817 if test "x$as_myself" = x; then
7818   as_myself=$0
7819 fi
7820 if test ! -f "$as_myself"; then
7821   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7822   exit 1
7823 fi
7824
7825 # Unset variables that we do not need and which cause bugs (e.g. in
7826 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7827 # suppresses any "Segmentation fault" message there.  '((' could
7828 # trigger a bug in pdksh 5.2.14.
7829 for as_var in BASH_ENV ENV MAIL MAILPATH
7830 do eval test x\${$as_var+set} = xset \
7831   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7832 done
7833 PS1='$ '
7834 PS2='> '
7835 PS4='+ '
7836
7837 # NLS nuisances.
7838 LC_ALL=C
7839 export LC_ALL
7840 LANGUAGE=C
7841 export LANGUAGE
7842
7843 # CDPATH.
7844 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7845
7846
7847 # as_fn_error ERROR [LINENO LOG_FD]
7848 # ---------------------------------
7849 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7850 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7851 # script with status $?, using 1 if that was 0.
7852 as_fn_error ()
7853 {
7854   as_status=$?; test $as_status -eq 0 && as_status=1
7855   if test "$3"; then
7856     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7857     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7858   fi
7859   $as_echo "$as_me: error: $1" >&2
7860   as_fn_exit $as_status
7861 } # as_fn_error
7862
7863
7864 # as_fn_set_status STATUS
7865 # -----------------------
7866 # Set $? to STATUS, without forking.
7867 as_fn_set_status ()
7868 {
7869   return $1
7870 } # as_fn_set_status
7871
7872 # as_fn_exit STATUS
7873 # -----------------
7874 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7875 as_fn_exit ()
7876 {
7877   set +e
7878   as_fn_set_status $1
7879   exit $1
7880 } # as_fn_exit
7881
7882 # as_fn_unset VAR
7883 # ---------------
7884 # Portably unset VAR.
7885 as_fn_unset ()
7886 {
7887   { eval $1=; unset $1;}
7888 }
7889 as_unset=as_fn_unset
7890 # as_fn_append VAR VALUE
7891 # ----------------------
7892 # Append the text in VALUE to the end of the definition contained in VAR. Take
7893 # advantage of any shell optimizations that allow amortized linear growth over
7894 # repeated appends, instead of the typical quadratic growth present in naive
7895 # implementations.
7896 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7897   eval 'as_fn_append ()
7898   {
7899     eval $1+=\$2
7900   }'
7901 else
7902   as_fn_append ()
7903   {
7904     eval $1=\$$1\$2
7905   }
7906 fi # as_fn_append
7907
7908 # as_fn_arith ARG...
7909 # ------------------
7910 # Perform arithmetic evaluation on the ARGs, and store the result in the
7911 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7912 # must be portable across $(()) and expr.
7913 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7914   eval 'as_fn_arith ()
7915   {
7916     as_val=$(( $* ))
7917   }'
7918 else
7919   as_fn_arith ()
7920   {
7921     as_val=`expr "$@" || test $? -eq 1`
7922   }
7923 fi # as_fn_arith
7924
7925
7926 if expr a : '\(a\)' >/dev/null 2>&1 &&
7927    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7928   as_expr=expr
7929 else
7930   as_expr=false
7931 fi
7932
7933 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7934   as_basename=basename
7935 else
7936   as_basename=false
7937 fi
7938
7939 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7940   as_dirname=dirname
7941 else
7942   as_dirname=false
7943 fi
7944
7945 as_me=`$as_basename -- "$0" ||
7946 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7947          X"$0" : 'X\(//\)$' \| \
7948          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7949 $as_echo X/"$0" |
7950     sed '/^.*\/\([^/][^/]*\)\/*$/{
7951             s//\1/
7952             q
7953           }
7954           /^X\/\(\/\/\)$/{
7955             s//\1/
7956             q
7957           }
7958           /^X\/\(\/\).*/{
7959             s//\1/
7960             q
7961           }
7962           s/.*/./; q'`
7963
7964 # Avoid depending upon Character Ranges.
7965 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7966 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7967 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7968 as_cr_digits='0123456789'
7969 as_cr_alnum=$as_cr_Letters$as_cr_digits
7970
7971 ECHO_C= ECHO_N= ECHO_T=
7972 case `echo -n x` in #(((((
7973 -n*)
7974   case `echo 'xy\c'` in
7975   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7976   xy)  ECHO_C='\c';;
7977   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7978        ECHO_T=' ';;
7979   esac;;
7980 *)
7981   ECHO_N='-n';;
7982 esac
7983
7984 rm -f conf$$ conf$$.exe conf$$.file
7985 if test -d conf$$.dir; then
7986   rm -f conf$$.dir/conf$$.file
7987 else
7988   rm -f conf$$.dir
7989   mkdir conf$$.dir 2>/dev/null
7990 fi
7991 if (echo >conf$$.file) 2>/dev/null; then
7992   if ln -s conf$$.file conf$$ 2>/dev/null; then
7993     as_ln_s='ln -s'
7994     # ... but there are two gotchas:
7995     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7996     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7997     # In both cases, we have to default to `cp -p'.
7998     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7999       as_ln_s='cp -p'
8000   elif ln conf$$.file conf$$ 2>/dev/null; then
8001     as_ln_s=ln
8002   else
8003     as_ln_s='cp -p'
8004   fi
8005 else
8006   as_ln_s='cp -p'
8007 fi
8008 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8009 rmdir conf$$.dir 2>/dev/null
8010
8011
8012 # as_fn_mkdir_p
8013 # -------------
8014 # Create "$as_dir" as a directory, including parents if necessary.
8015 as_fn_mkdir_p ()
8016 {
8017
8018   case $as_dir in #(
8019   -*) as_dir=./$as_dir;;
8020   esac
8021   test -d "$as_dir" || eval $as_mkdir_p || {
8022     as_dirs=
8023     while :; do
8024       case $as_dir in #(
8025       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8026       *) as_qdir=$as_dir;;
8027       esac
8028       as_dirs="'$as_qdir' $as_dirs"
8029       as_dir=`$as_dirname -- "$as_dir" ||
8030 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8031          X"$as_dir" : 'X\(//\)[^/]' \| \
8032          X"$as_dir" : 'X\(//\)$' \| \
8033          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8034 $as_echo X"$as_dir" |
8035     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8036             s//\1/
8037             q
8038           }
8039           /^X\(\/\/\)[^/].*/{
8040             s//\1/
8041             q
8042           }
8043           /^X\(\/\/\)$/{
8044             s//\1/
8045             q
8046           }
8047           /^X\(\/\).*/{
8048             s//\1/
8049             q
8050           }
8051           s/.*/./; q'`
8052       test -d "$as_dir" && break
8053     done
8054     test -z "$as_dirs" || eval "mkdir $as_dirs"
8055   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8056
8057
8058 } # as_fn_mkdir_p
8059 if mkdir -p . 2>/dev/null; then
8060   as_mkdir_p='mkdir -p "$as_dir"'
8061 else
8062   test -d ./-p && rmdir ./-p
8063   as_mkdir_p=false
8064 fi
8065
8066 if test -x / >/dev/null 2>&1; then
8067   as_test_x='test -x'
8068 else
8069   if ls -dL / >/dev/null 2>&1; then
8070     as_ls_L_option=L
8071   else
8072     as_ls_L_option=
8073   fi
8074   as_test_x='
8075     eval sh -c '\''
8076       if test -d "$1"; then
8077         test -d "$1/.";
8078       else
8079         case $1 in #(
8080         -*)set "./$1";;
8081         esac;
8082         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8083         ???[sx]*):;;*)false;;esac;fi
8084     '\'' sh
8085   '
8086 fi
8087 as_executable_p=$as_test_x
8088
8089 # Sed expression to map a string onto a valid CPP name.
8090 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8091
8092 # Sed expression to map a string onto a valid variable name.
8093 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8094
8095
8096 exec 6>&1
8097 ## ----------------------------------- ##
8098 ## Main body of $CONFIG_STATUS script. ##
8099 ## ----------------------------------- ##
8100 _ASEOF
8101 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8102
8103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8104 # Save the log message, to keep $0 and so on meaningful, and to
8105 # report actual input values of CONFIG_FILES etc. instead of their
8106 # values after options handling.
8107 ac_log="
8108 This file was extended by CTSim $as_me 5.1.3, which was
8109 generated by GNU Autoconf 2.64.  Invocation command line was
8110
8111   CONFIG_FILES    = $CONFIG_FILES
8112   CONFIG_HEADERS  = $CONFIG_HEADERS
8113   CONFIG_LINKS    = $CONFIG_LINKS
8114   CONFIG_COMMANDS = $CONFIG_COMMANDS
8115   $ $0 $@
8116
8117 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8118 "
8119
8120 _ACEOF
8121
8122 case $ac_config_files in *"
8123 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8124 esac
8125
8126 case $ac_config_headers in *"
8127 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8128 esac
8129
8130
8131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8132 # Files that config.status was made for.
8133 config_files="$ac_config_files"
8134 config_headers="$ac_config_headers"
8135 config_commands="$ac_config_commands"
8136
8137 _ACEOF
8138
8139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8140 ac_cs_usage="\
8141 \`$as_me' instantiates files and other configuration actions
8142 from templates according to the current configuration.  Unless the files
8143 and actions are specified as TAGs, all are instantiated by default.
8144
8145 Usage: $0 [OPTION]... [TAG]...
8146
8147   -h, --help       print this help, then exit
8148   -V, --version    print version number and configuration settings, then exit
8149   -q, --quiet, --silent
8150                    do not print progress messages
8151   -d, --debug      don't remove temporary files
8152       --recheck    update $as_me by reconfiguring in the same conditions
8153       --file=FILE[:TEMPLATE]
8154                    instantiate the configuration file FILE
8155       --header=FILE[:TEMPLATE]
8156                    instantiate the configuration header FILE
8157
8158 Configuration files:
8159 $config_files
8160
8161 Configuration headers:
8162 $config_headers
8163
8164 Configuration commands:
8165 $config_commands
8166
8167 Report bugs to <ctsim-users@b9.com>.
8168 CTSim home page: <http://www.ctsim.org/>."
8169
8170 _ACEOF
8171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8172 ac_cs_version="\\
8173 CTSim config.status 5.1.3
8174 configured by $0, generated by GNU Autoconf 2.64,
8175   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8176
8177 Copyright (C) 2009 Free Software Foundation, Inc.
8178 This config.status script is free software; the Free Software Foundation
8179 gives unlimited permission to copy, distribute and modify it."
8180
8181 ac_pwd='$ac_pwd'
8182 srcdir='$srcdir'
8183 INSTALL='$INSTALL'
8184 MKDIR_P='$MKDIR_P'
8185 AWK='$AWK'
8186 test -n "\$AWK" || AWK=awk
8187 _ACEOF
8188
8189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8190 # The default lists apply if the user does not specify any file.
8191 ac_need_defaults=:
8192 while test $# != 0
8193 do
8194   case $1 in
8195   --*=*)
8196     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8197     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8198     ac_shift=:
8199     ;;
8200   *)
8201     ac_option=$1
8202     ac_optarg=$2
8203     ac_shift=shift
8204     ;;
8205   esac
8206
8207   case $ac_option in
8208   # Handling of the options.
8209   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8210     ac_cs_recheck=: ;;
8211   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8212     $as_echo "$ac_cs_version"; exit ;;
8213   --debug | --debu | --deb | --de | --d | -d )
8214     debug=: ;;
8215   --file | --fil | --fi | --f )
8216     $ac_shift
8217     case $ac_optarg in
8218     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8219     esac
8220     as_fn_append CONFIG_FILES " '$ac_optarg'"
8221     ac_need_defaults=false;;
8222   --header | --heade | --head | --hea )
8223     $ac_shift
8224     case $ac_optarg in
8225     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8226     esac
8227     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8228     ac_need_defaults=false;;
8229   --he | --h)
8230     # Conflict between --help and --header
8231     as_fn_error "ambiguous option: \`$1'
8232 Try \`$0 --help' for more information.";;
8233   --help | --hel | -h )
8234     $as_echo "$ac_cs_usage"; exit ;;
8235   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8236   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8237     ac_cs_silent=: ;;
8238
8239   # This is an error.
8240   -*) as_fn_error "unrecognized option: \`$1'
8241 Try \`$0 --help' for more information." ;;
8242
8243   *) as_fn_append ac_config_targets " $1"
8244      ac_need_defaults=false ;;
8245
8246   esac
8247   shift
8248 done
8249
8250 ac_configure_extra_args=
8251
8252 if $ac_cs_silent; then
8253   exec 6>/dev/null
8254   ac_configure_extra_args="$ac_configure_extra_args --silent"
8255 fi
8256
8257 _ACEOF
8258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8259 if \$ac_cs_recheck; then
8260   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8261   shift
8262   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8263   CONFIG_SHELL='$SHELL'
8264   export CONFIG_SHELL
8265   exec "\$@"
8266 fi
8267
8268 _ACEOF
8269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8270 exec 5>>config.log
8271 {
8272   echo
8273   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8274 ## Running $as_me. ##
8275 _ASBOX
8276   $as_echo "$ac_log"
8277 } >&5
8278
8279 _ACEOF
8280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8281 #
8282 # INIT-COMMANDS
8283 #
8284 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8285
8286 _ACEOF
8287
8288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8289
8290 # Handling of arguments.
8291 for ac_config_target in $ac_config_targets
8292 do
8293   case $ac_config_target in
8294     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8295     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8296     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8297     "libctgraphics/Makefile") CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
8298     "libctsupport/Makefile") CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
8299     "libctsim/Makefile") CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
8300     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
8301     "cgi-bin/ctsim.cgi") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
8302     "cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
8303     "html/simulate.html") CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
8304     "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
8305     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8306     "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
8307     "tools/sample-ctsim.sh") CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
8308     "cgi-bin/ctsim.conf") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
8309     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
8310     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8311     "helical/Makefile") CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
8312     "helical/sample-helical.sh") CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
8313
8314   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8315   esac
8316 done
8317
8318
8319 # If the user did not use the arguments to specify the items to instantiate,
8320 # then the envvar interface is used.  Set only those that are not.
8321 # We use the long form for the default assignment because of an extremely
8322 # bizarre bug on SunOS 4.1.3.
8323 if $ac_need_defaults; then
8324   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8325   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8326   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8327 fi
8328
8329 # Have a temporary directory for convenience.  Make it in the build tree
8330 # simply because there is no reason against having it here, and in addition,
8331 # creating and moving files from /tmp can sometimes cause problems.
8332 # Hook for its removal unless debugging.
8333 # Note that there is a small window in which the directory will not be cleaned:
8334 # after its creation but before its name has been assigned to `$tmp'.
8335 $debug ||
8336 {
8337   tmp=
8338   trap 'exit_status=$?
8339   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8340 ' 0
8341   trap 'as_fn_exit 1' 1 2 13 15
8342 }
8343 # Create a (secure) tmp directory for tmp files.
8344
8345 {
8346   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8347   test -n "$tmp" && test -d "$tmp"
8348 }  ||
8349 {
8350   tmp=./conf$$-$RANDOM
8351   (umask 077 && mkdir "$tmp")
8352 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8353
8354 # Set up the scripts for CONFIG_FILES section.
8355 # No need to generate them if there are no CONFIG_FILES.
8356 # This happens for instance with `./config.status config.h'.
8357 if test -n "$CONFIG_FILES"; then
8358
8359
8360 ac_cr=`echo X | tr X '\015'`
8361 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8362 # But we know of no other shell where ac_cr would be empty at this
8363 # point, so we can use a bashism as a fallback.
8364 if test "x$ac_cr" = x; then
8365   eval ac_cr=\$\'\\r\'
8366 fi
8367 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8368 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8369   ac_cs_awk_cr='\r'
8370 else
8371   ac_cs_awk_cr=$ac_cr
8372 fi
8373
8374 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8375 _ACEOF
8376
8377
8378 {
8379   echo "cat >conf$$subs.awk <<_ACEOF" &&
8380   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8381   echo "_ACEOF"
8382 } >conf$$subs.sh ||
8383   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8384 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8385 ac_delim='%!_!# '
8386 for ac_last_try in false false false false false :; do
8387   . ./conf$$subs.sh ||
8388     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8389
8390   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8391   if test $ac_delim_n = $ac_delim_num; then
8392     break
8393   elif $ac_last_try; then
8394     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8395   else
8396     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8397   fi
8398 done
8399 rm -f conf$$subs.sh
8400
8401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8402 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8403 _ACEOF
8404 sed -n '
8405 h
8406 s/^/S["/; s/!.*/"]=/
8407 p
8408 g
8409 s/^[^!]*!//
8410 :repl
8411 t repl
8412 s/'"$ac_delim"'$//
8413 t delim
8414 :nl
8415 h
8416 s/\(.\{148\}\).*/\1/
8417 t more1
8418 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8419 p
8420 n
8421 b repl
8422 :more1
8423 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8424 p
8425 g
8426 s/.\{148\}//
8427 t nl
8428 :delim
8429 h
8430 s/\(.\{148\}\).*/\1/
8431 t more2
8432 s/["\\]/\\&/g; s/^/"/; s/$/"/
8433 p
8434 b
8435 :more2
8436 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8437 p
8438 g
8439 s/.\{148\}//
8440 t delim
8441 ' <conf$$subs.awk | sed '
8442 /^[^""]/{
8443   N
8444   s/\n//
8445 }
8446 ' >>$CONFIG_STATUS || ac_write_fail=1
8447 rm -f conf$$subs.awk
8448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8449 _ACAWK
8450 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8451   for (key in S) S_is_set[key] = 1
8452   FS = "\a"
8453
8454 }
8455 {
8456   line = $ 0
8457   nfields = split(line, field, "@")
8458   substed = 0
8459   len = length(field[1])
8460   for (i = 2; i < nfields; i++) {
8461     key = field[i]
8462     keylen = length(key)
8463     if (S_is_set[key]) {
8464       value = S[key]
8465       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8466       len += length(value) + length(field[++i])
8467       substed = 1
8468     } else
8469       len += 1 + keylen
8470   }
8471
8472   print line
8473 }
8474
8475 _ACAWK
8476 _ACEOF
8477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8478 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8479   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8480 else
8481   cat
8482 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8483   || as_fn_error "could not setup config files machinery" "$LINENO" 5
8484 _ACEOF
8485
8486 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8487 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8488 # trailing colons and then remove the whole line if VPATH becomes empty
8489 # (actually we leave an empty line to preserve line numbers).
8490 if test "x$srcdir" = x.; then
8491   ac_vpsub='/^[  ]*VPATH[        ]*=/{
8492 s/:*\$(srcdir):*/:/
8493 s/:*\${srcdir}:*/:/
8494 s/:*@srcdir@:*/:/
8495 s/^\([^=]*=[     ]*\):*/\1/
8496 s/:*$//
8497 s/^[^=]*=[       ]*$//
8498 }'
8499 fi
8500
8501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8502 fi # test -n "$CONFIG_FILES"
8503
8504 # Set up the scripts for CONFIG_HEADERS section.
8505 # No need to generate them if there are no CONFIG_HEADERS.
8506 # This happens for instance with `./config.status Makefile'.
8507 if test -n "$CONFIG_HEADERS"; then
8508 cat >"$tmp/defines.awk" <<\_ACAWK ||
8509 BEGIN {
8510 _ACEOF
8511
8512 # Transform confdefs.h into an awk script `defines.awk', embedded as
8513 # here-document in config.status, that substitutes the proper values into
8514 # config.h.in to produce config.h.
8515
8516 # Create a delimiter string that does not exist in confdefs.h, to ease
8517 # handling of long lines.
8518 ac_delim='%!_!# '
8519 for ac_last_try in false false :; do
8520   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8521   if test -z "$ac_t"; then
8522     break
8523   elif $ac_last_try; then
8524     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8525   else
8526     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8527   fi
8528 done
8529
8530 # For the awk script, D is an array of macro values keyed by name,
8531 # likewise P contains macro parameters if any.  Preserve backslash
8532 # newline sequences.
8533
8534 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8535 sed -n '
8536 s/.\{148\}/&'"$ac_delim"'/g
8537 t rset
8538 :rset
8539 s/^[     ]*#[    ]*define[       ][      ]*/ /
8540 t def
8541 d
8542 :def
8543 s/\\$//
8544 t bsnl
8545 s/["\\]/\\&/g
8546 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8547 D["\1"]=" \3"/p
8548 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
8549 d
8550 :bsnl
8551 s/["\\]/\\&/g
8552 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8553 D["\1"]=" \3\\\\\\n"\\/p
8554 t cont
8555 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8556 t cont
8557 d
8558 :cont
8559 n
8560 s/.\{148\}/&'"$ac_delim"'/g
8561 t clear
8562 :clear
8563 s/\\$//
8564 t bsnlc
8565 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8566 d
8567 :bsnlc
8568 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8569 b cont
8570 ' <confdefs.h | sed '
8571 s/'"$ac_delim"'/"\\\
8572 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8573
8574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8575   for (key in D) D_is_set[key] = 1
8576   FS = "\a"
8577 }
8578 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8579   line = \$ 0
8580   split(line, arg, " ")
8581   if (arg[1] == "#") {
8582     defundef = arg[2]
8583     mac1 = arg[3]
8584   } else {
8585     defundef = substr(arg[1], 2)
8586     mac1 = arg[2]
8587   }
8588   split(mac1, mac2, "(") #)
8589   macro = mac2[1]
8590   prefix = substr(line, 1, index(line, defundef) - 1)
8591   if (D_is_set[macro]) {
8592     # Preserve the white space surrounding the "#".
8593     print prefix "define", macro P[macro] D[macro]
8594     next
8595   } else {
8596     # Replace #undef with comments.  This is necessary, for example,
8597     # in the case of _POSIX_SOURCE, which is predefined and required
8598     # on some systems where configure will not decide to define it.
8599     if (defundef == "undef") {
8600       print "/*", prefix defundef, macro, "*/"
8601       next
8602     }
8603   }
8604 }
8605 { print }
8606 _ACAWK
8607 _ACEOF
8608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8609   as_fn_error "could not setup config headers machinery" "$LINENO" 5
8610 fi # test -n "$CONFIG_HEADERS"
8611
8612
8613 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
8614 shift
8615 for ac_tag
8616 do
8617   case $ac_tag in
8618   :[FHLC]) ac_mode=$ac_tag; continue;;
8619   esac
8620   case $ac_mode$ac_tag in
8621   :[FHL]*:*);;
8622   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8623   :[FH]-) ac_tag=-:-;;
8624   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8625   esac
8626   ac_save_IFS=$IFS
8627   IFS=:
8628   set x $ac_tag
8629   IFS=$ac_save_IFS
8630   shift
8631   ac_file=$1
8632   shift
8633
8634   case $ac_mode in
8635   :L) ac_source=$1;;
8636   :[FH])
8637     ac_file_inputs=
8638     for ac_f
8639     do
8640       case $ac_f in
8641       -) ac_f="$tmp/stdin";;
8642       *) # Look for the file first in the build tree, then in the source tree
8643          # (if the path is not absolute).  The absolute path cannot be DOS-style,
8644          # because $ac_f cannot contain `:'.
8645          test -f "$ac_f" ||
8646            case $ac_f in
8647            [\\/$]*) false;;
8648            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8649            esac ||
8650            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8651       esac
8652       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8653       as_fn_append ac_file_inputs " '$ac_f'"
8654     done
8655
8656     # Let's still pretend it is `configure' which instantiates (i.e., don't
8657     # use $as_me), people would be surprised to read:
8658     #    /* config.h.  Generated by config.status.  */
8659     configure_input='Generated from '`
8660           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8661         `' by configure.'
8662     if test x"$ac_file" != x-; then
8663       configure_input="$ac_file.  $configure_input"
8664       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8665 $as_echo "$as_me: creating $ac_file" >&6;}
8666     fi
8667     # Neutralize special characters interpreted by sed in replacement strings.
8668     case $configure_input in #(
8669     *\&* | *\|* | *\\* )
8670        ac_sed_conf_input=`$as_echo "$configure_input" |
8671        sed 's/[\\\\&|]/\\\\&/g'`;; #(
8672     *) ac_sed_conf_input=$configure_input;;
8673     esac
8674
8675     case $ac_tag in
8676     *:-:* | *:-) cat >"$tmp/stdin" \
8677       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8678     esac
8679     ;;
8680   esac
8681
8682   ac_dir=`$as_dirname -- "$ac_file" ||
8683 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8684          X"$ac_file" : 'X\(//\)[^/]' \| \
8685          X"$ac_file" : 'X\(//\)$' \| \
8686          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8687 $as_echo X"$ac_file" |
8688     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8689             s//\1/
8690             q
8691           }
8692           /^X\(\/\/\)[^/].*/{
8693             s//\1/
8694             q
8695           }
8696           /^X\(\/\/\)$/{
8697             s//\1/
8698             q
8699           }
8700           /^X\(\/\).*/{
8701             s//\1/
8702             q
8703           }
8704           s/.*/./; q'`
8705   as_dir="$ac_dir"; as_fn_mkdir_p
8706   ac_builddir=.
8707
8708 case "$ac_dir" in
8709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8710 *)
8711   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8712   # A ".." for each directory in $ac_dir_suffix.
8713   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8714   case $ac_top_builddir_sub in
8715   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8716   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8717   esac ;;
8718 esac
8719 ac_abs_top_builddir=$ac_pwd
8720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8721 # for backward compatibility:
8722 ac_top_builddir=$ac_top_build_prefix
8723
8724 case $srcdir in
8725   .)  # We are building in place.
8726     ac_srcdir=.
8727     ac_top_srcdir=$ac_top_builddir_sub
8728     ac_abs_top_srcdir=$ac_pwd ;;
8729   [\\/]* | ?:[\\/]* )  # Absolute name.
8730     ac_srcdir=$srcdir$ac_dir_suffix;
8731     ac_top_srcdir=$srcdir
8732     ac_abs_top_srcdir=$srcdir ;;
8733   *) # Relative name.
8734     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8735     ac_top_srcdir=$ac_top_build_prefix$srcdir
8736     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8737 esac
8738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8739
8740
8741   case $ac_mode in
8742   :F)
8743   #
8744   # CONFIG_FILE
8745   #
8746
8747   case $INSTALL in
8748   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8749   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8750   esac
8751   ac_MKDIR_P=$MKDIR_P
8752   case $MKDIR_P in
8753   [\\/$]* | ?:[\\/]* ) ;;
8754   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8755   esac
8756 _ACEOF
8757
8758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8759 # If the template does not know about datarootdir, expand it.
8760 # FIXME: This hack should be removed a few years after 2.60.
8761 ac_datarootdir_hack=; ac_datarootdir_seen=
8762 ac_sed_dataroot='
8763 /datarootdir/ {
8764   p
8765   q
8766 }
8767 /@datadir@/p
8768 /@docdir@/p
8769 /@infodir@/p
8770 /@localedir@/p
8771 /@mandir@/p'
8772 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8773 *datarootdir*) ac_datarootdir_seen=yes;;
8774 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8775   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8776 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8777 _ACEOF
8778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8779   ac_datarootdir_hack='
8780   s&@datadir@&$datadir&g
8781   s&@docdir@&$docdir&g
8782   s&@infodir@&$infodir&g
8783   s&@localedir@&$localedir&g
8784   s&@mandir@&$mandir&g
8785   s&\\\${datarootdir}&$datarootdir&g' ;;
8786 esac
8787 _ACEOF
8788
8789 # Neutralize VPATH when `$srcdir' = `.'.
8790 # Shell code in configure.ac might set extrasub.
8791 # FIXME: do we really want to maintain this feature?
8792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8793 ac_sed_extra="$ac_vpsub
8794 $extrasub
8795 _ACEOF
8796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8797 :t
8798 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8799 s|@configure_input@|$ac_sed_conf_input|;t t
8800 s&@top_builddir@&$ac_top_builddir_sub&;t t
8801 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8802 s&@srcdir@&$ac_srcdir&;t t
8803 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8804 s&@top_srcdir@&$ac_top_srcdir&;t t
8805 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8806 s&@builddir@&$ac_builddir&;t t
8807 s&@abs_builddir@&$ac_abs_builddir&;t t
8808 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8809 s&@INSTALL@&$ac_INSTALL&;t t
8810 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8811 $ac_datarootdir_hack
8812 "
8813 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8814   || as_fn_error "could not create $ac_file" "$LINENO" 5
8815
8816 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8817   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8818   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8819   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8820 which seems to be undefined.  Please make sure it is defined." >&5
8821 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8822 which seems to be undefined.  Please make sure it is defined." >&2;}
8823
8824   rm -f "$tmp/stdin"
8825   case $ac_file in
8826   -) cat "$tmp/out" && rm -f "$tmp/out";;
8827   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8828   esac \
8829   || as_fn_error "could not create $ac_file" "$LINENO" 5
8830  ;;
8831   :H)
8832   #
8833   # CONFIG_HEADER
8834   #
8835   if test x"$ac_file" != x-; then
8836     {
8837       $as_echo "/* $configure_input  */" \
8838       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8839     } >"$tmp/config.h" \
8840       || as_fn_error "could not create $ac_file" "$LINENO" 5
8841     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8842       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8843 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8844     else
8845       rm -f "$ac_file"
8846       mv "$tmp/config.h" "$ac_file" \
8847         || as_fn_error "could not create $ac_file" "$LINENO" 5
8848     fi
8849   else
8850     $as_echo "/* $configure_input  */" \
8851       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8852       || as_fn_error "could not create -" "$LINENO" 5
8853   fi
8854 # Compute "$ac_file"'s index in $config_headers.
8855 _am_arg="$ac_file"
8856 _am_stamp_count=1
8857 for _am_header in $config_headers :; do
8858   case $_am_header in
8859     $_am_arg | $_am_arg:* )
8860       break ;;
8861     * )
8862       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8863   esac
8864 done
8865 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8866 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8867          X"$_am_arg" : 'X\(//\)[^/]' \| \
8868          X"$_am_arg" : 'X\(//\)$' \| \
8869          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8870 $as_echo X"$_am_arg" |
8871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8872             s//\1/
8873             q
8874           }
8875           /^X\(\/\/\)[^/].*/{
8876             s//\1/
8877             q
8878           }
8879           /^X\(\/\/\)$/{
8880             s//\1/
8881             q
8882           }
8883           /^X\(\/\).*/{
8884             s//\1/
8885             q
8886           }
8887           s/.*/./; q'`/stamp-h$_am_stamp_count
8888  ;;
8889
8890   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8891 $as_echo "$as_me: executing $ac_file commands" >&6;}
8892  ;;
8893   esac
8894
8895
8896   case $ac_file$ac_mode in
8897     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8898   # Autoconf 2.62 quotes --file arguments for eval, but not when files
8899   # are listed without --file.  Let's play safe and only enable the eval
8900   # if we detect the quoting.
8901   case $CONFIG_FILES in
8902   *\'*) eval set x "$CONFIG_FILES" ;;
8903   *)   set x $CONFIG_FILES ;;
8904   esac
8905   shift
8906   for mf
8907   do
8908     # Strip MF so we end up with the name of the file.
8909     mf=`echo "$mf" | sed -e 's/:.*$//'`
8910     # Check whether this is an Automake generated Makefile or not.
8911     # We used to match only the files named `Makefile.in', but
8912     # some people rename them; so instead we look at the file content.
8913     # Grep'ing the first line is not enough: some people post-process
8914     # each Makefile.in and add a new line on top of each file to say so.
8915     # Grep'ing the whole file is not good either: AIX grep has a line
8916     # limit of 2048, but all sed's we know have understand at least 4000.
8917     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8918       dirpart=`$as_dirname -- "$mf" ||
8919 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8920          X"$mf" : 'X\(//\)[^/]' \| \
8921          X"$mf" : 'X\(//\)$' \| \
8922          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8923 $as_echo X"$mf" |
8924     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8925             s//\1/
8926             q
8927           }
8928           /^X\(\/\/\)[^/].*/{
8929             s//\1/
8930             q
8931           }
8932           /^X\(\/\/\)$/{
8933             s//\1/
8934             q
8935           }
8936           /^X\(\/\).*/{
8937             s//\1/
8938             q
8939           }
8940           s/.*/./; q'`
8941     else
8942       continue
8943     fi
8944     # Extract the definition of DEPDIR, am__include, and am__quote
8945     # from the Makefile without running `make'.
8946     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8947     test -z "$DEPDIR" && continue
8948     am__include=`sed -n 's/^am__include = //p' < "$mf"`
8949     test -z "am__include" && continue
8950     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8951     # When using ansi2knr, U may be empty or an underscore; expand it
8952     U=`sed -n 's/^U = //p' < "$mf"`
8953     # Find all dependency output files, they are included files with
8954     # $(DEPDIR) in their names.  We invoke sed twice because it is the
8955     # simplest approach to changing $(DEPDIR) to its actual value in the
8956     # expansion.
8957     for file in `sed -n "
8958       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8959          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8960       # Make sure the directory exists.
8961       test -f "$dirpart/$file" && continue
8962       fdir=`$as_dirname -- "$file" ||
8963 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8964          X"$file" : 'X\(//\)[^/]' \| \
8965          X"$file" : 'X\(//\)$' \| \
8966          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8967 $as_echo X"$file" |
8968     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8969             s//\1/
8970             q
8971           }
8972           /^X\(\/\/\)[^/].*/{
8973             s//\1/
8974             q
8975           }
8976           /^X\(\/\/\)$/{
8977             s//\1/
8978             q
8979           }
8980           /^X\(\/\).*/{
8981             s//\1/
8982             q
8983           }
8984           s/.*/./; q'`
8985       as_dir=$dirpart/$fdir; as_fn_mkdir_p
8986       # echo "creating $dirpart/$file"
8987       echo '# dummy' > "$dirpart/$file"
8988     done
8989   done
8990 }
8991  ;;
8992
8993   esac
8994 done # for ac_tag
8995
8996
8997 as_fn_exit 0
8998 _ACEOF
8999 ac_clean_files=$ac_clean_files_save
9000
9001 test $ac_write_fail = 0 ||
9002   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9003
9004
9005 # configure is writing to config.log, and then calls config.status.
9006 # config.status does its own redirection, appending to config.log.
9007 # Unfortunately, on DOS this fails, as config.log is still kept open
9008 # by configure, so config.status won't be able to write to it; its
9009 # output is simply discarded.  So we exec the FD to /dev/null,
9010 # effectively closing config.log, so it can be properly (re)opened and
9011 # appended to by config.status.  When coming back to configure, we
9012 # need to make the FD available again.
9013 if test "$no_create" != yes; then
9014   ac_cs_success=:
9015   ac_config_status_args=
9016   test "$silent" = yes &&
9017     ac_config_status_args="$ac_config_status_args --quiet"
9018   exec 5>/dev/null
9019   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9020   exec 5>>config.log
9021   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9022   # would make configure fail if this is the last instruction.
9023   $ac_cs_success || as_fn_exit $?
9024 fi
9025 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9026   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9027 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9028 fi
9029