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