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