Imported Upstream version 2.9.0
[debian/cc1111] / sim / ucsim / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 # Find the correct PATH separator.  Usually this is `:', but
553 # DJGPP uses `;' like DOS.
554 if test "X${PATH_SEPARATOR+set}" != Xset; then
555   UNAME=${UNAME-`uname 2>/dev/null`}
556   case X$UNAME in
557     *-DOS) lt_cv_sys_path_separator=';' ;;
558     *)     lt_cv_sys_path_separator=':' ;;
559   esac
560   PATH_SEPARATOR=$lt_cv_sys_path_separator
561 fi
562
563
564 # Check that we are running under the correct shell.
565 SHELL=${CONFIG_SHELL-/bin/sh}
566
567 case X$ECHO in
568 X*--fallback-echo)
569   # Remove one level of quotation (which was required for Make).
570   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
571   ;;
572 esac
573
574 echo=${ECHO-echo}
575 if test "X$1" = X--no-reexec; then
576   # Discard the --no-reexec flag, and continue.
577   shift
578 elif test "X$1" = X--fallback-echo; then
579   # Avoid inline document here, it may be left over
580   :
581 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
582   # Yippee, $echo works!
583   :
584 else
585   # Restart under the correct shell.
586   exec $SHELL "$0" --no-reexec ${1+"$@"}
587 fi
588
589 if test "X$1" = X--fallback-echo; then
590   # used as fallback echo
591   shift
592   cat <<EOF
593
594 EOF
595   exit 0
596 fi
597
598 # The HP-UX ksh and POSIX shell print the target directory to stdout
599 # if CDPATH is set.
600 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
601
602 if test -z "$ECHO"; then
603 if test "X${echo_test_string+set}" != Xset; then
604 # find a string as large as possible, as long as the shell can cope with it
605   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
606     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
607     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
608        echo_test_string="`eval $cmd`" &&
609        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
610     then
611       break
612     fi
613   done
614 fi
615
616 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
617    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
618    test "X$echo_testing_string" = "X$echo_test_string"; then
619   :
620 else
621   # The Solaris, AIX, and Digital Unix default echo programs unquote
622   # backslashes.  This makes it impossible to quote backslashes using
623   #   echo "$something" | sed 's/\\/\\\\/g'
624   #
625   # So, first we look for a working echo in the user's PATH.
626
627   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
628   for dir in $PATH /usr/ucb; do
629     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
630        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
631        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
632        test "X$echo_testing_string" = "X$echo_test_string"; then
633       echo="$dir/echo"
634       break
635     fi
636   done
637   IFS="$save_ifs"
638
639   if test "X$echo" = Xecho; then
640     # We didn't find a better echo, so look for alternatives.
641     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
642        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
643        test "X$echo_testing_string" = "X$echo_test_string"; then
644       # This shell has a builtin print -r that does the trick.
645       echo='print -r'
646     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
647          test "X$CONFIG_SHELL" != X/bin/ksh; then
648       # If we have ksh, try running configure again with it.
649       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
650       export ORIGINAL_CONFIG_SHELL
651       CONFIG_SHELL=/bin/ksh
652       export CONFIG_SHELL
653       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
654     else
655       # Try using printf.
656       echo='printf %s\n'
657       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
658          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
659          test "X$echo_testing_string" = "X$echo_test_string"; then
660         # Cool, printf works
661         :
662       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663            test "X$echo_testing_string" = 'X\t' &&
664            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665            test "X$echo_testing_string" = "X$echo_test_string"; then
666         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
667         export CONFIG_SHELL
668         SHELL="$CONFIG_SHELL"
669         export SHELL
670         echo="$CONFIG_SHELL $0 --fallback-echo"
671       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
672            test "X$echo_testing_string" = 'X\t' &&
673            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
674            test "X$echo_testing_string" = "X$echo_test_string"; then
675         echo="$CONFIG_SHELL $0 --fallback-echo"
676       else
677         # maybe with a smaller string...
678         prev=:
679
680         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
681           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
682           then
683             break
684           fi
685           prev="$cmd"
686         done
687
688         if test "$prev" != 'sed 50q "$0"'; then
689           echo_test_string=`eval $prev`
690           export echo_test_string
691           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
692         else
693           # Oops.  We lost completely, so just stick with echo.
694           echo=echo
695         fi
696       fi
697     fi
698   fi
699 fi
700 fi
701
702 # Copy echo and quote the copy suitably for passing to libtool from
703 # the Makefile, instead of quoting the original, which is used later.
704 ECHO=$echo
705 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
706    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
707 fi
708
709
710
711 exec 7<&0 </dev/null 6>&1
712
713 # Name of the host.
714 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
715 # so uname gets run too.
716 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
717
718 #
719 # Initializations.
720 #
721 ac_default_prefix=/usr/local
722 ac_clean_files=
723 ac_config_libobj_dir=.
724 LIBOBJS=
725 cross_compiling=no
726 subdirs=
727 MFLAGS=
728 MAKEFLAGS=
729 SHELL=${CONFIG_SHELL-/bin/sh}
730
731 # Identity of this package.
732 PACKAGE_NAME=
733 PACKAGE_TARNAME=
734 PACKAGE_VERSION=
735 PACKAGE_STRING=
736 PACKAGE_BUGREPORT=
737
738 ac_unique_file=".version"
739 # Factoring default headers for most tests.
740 ac_includes_default="\
741 #include <stdio.h>
742 #ifdef HAVE_SYS_TYPES_H
743 # include <sys/types.h>
744 #endif
745 #ifdef HAVE_SYS_STAT_H
746 # include <sys/stat.h>
747 #endif
748 #ifdef STDC_HEADERS
749 # include <stdlib.h>
750 # include <stddef.h>
751 #else
752 # ifdef HAVE_STDLIB_H
753 #  include <stdlib.h>
754 # endif
755 #endif
756 #ifdef HAVE_STRING_H
757 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #  include <memory.h>
759 # endif
760 # include <string.h>
761 #endif
762 #ifdef HAVE_STRINGS_H
763 # include <strings.h>
764 #endif
765 #ifdef HAVE_INTTYPES_H
766 # include <inttypes.h>
767 #endif
768 #ifdef HAVE_STDINT_H
769 # include <stdint.h>
770 #endif
771 #ifdef HAVE_UNISTD_H
772 # include <unistd.h>
773 #endif"
774
775 ac_subst_vars='SHELL
776 PATH_SEPARATOR
777 PACKAGE_NAME
778 PACKAGE_TARNAME
779 PACKAGE_VERSION
780 PACKAGE_STRING
781 PACKAGE_BUGREPORT
782 exec_prefix
783 prefix
784 program_transform_name
785 bindir
786 sbindir
787 libexecdir
788 datarootdir
789 datadir
790 sysconfdir
791 sharedstatedir
792 localstatedir
793 includedir
794 oldincludedir
795 docdir
796 infodir
797 htmldir
798 dvidir
799 pdfdir
800 psdir
801 libdir
802 localedir
803 mandir
804 DEFS
805 ECHO_C
806 ECHO_N
807 ECHO_T
808 LIBS
809 build_alias
810 host_alias
811 target_alias
812 AWK
813 VERSION
814 VERSIONHI
815 VERSIONLO
816 VERSIONP
817 enable_ucsim
818 enable_dlso
819 enable_51
820 enable_avr
821 enable_z80
822 enable_hc08
823 enable_xa
824 enable_serio
825 CXX
826 CXXFLAGS
827 LDFLAGS
828 CPPFLAGS
829 ac_ct_CXX
830 EXEEXT
831 OBJEXT
832 CXXCPP
833 INSTALL_PROGRAM
834 INSTALL_SCRIPT
835 INSTALL_DATA
836 RANLIB
837 STRIP
838 build
839 build_cpu
840 build_vendor
841 build_os
842 host
843 host_cpu
844 host_vendor
845 host_os
846 CC
847 CFLAGS
848 ac_ct_CC
849 LN_S
850 ECHO
851 CPP
852 GREP
853 EGREP
854 LIBTOOL
855 LIBTOOL_DEPS
856 LEX
857 LEX_OUTPUT_ROOT
858 LEXLIB
859 YACC
860 YFLAGS
861 BISON_PLUS_PLUS
862 WINSOCK_AVAIL
863 dl_ok
864 DL
865 panel_ok
866 curses_ok
867 CURSES_LIBS
868 M_OR_MM
869 SHAREDLIB
870 PICOPT
871 dlso_ok
872 LIBOBJS
873 LTLIBOBJS'
874 ac_subst_files=''
875       ac_precious_vars='build_alias
876 host_alias
877 target_alias
878 docdir
879 CXX
880 CXXFLAGS
881 LDFLAGS
882 LIBS
883 CPPFLAGS
884 CCC
885 CXXCPP
886 CC
887 CFLAGS
888 CPP
889 YACC
890 YFLAGS'
891
892
893 # Initialize some variables set by options.
894 ac_init_help=
895 ac_init_version=false
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
912
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE}'
930 infodir='${datarootdir}/info'
931 htmldir='${docdir}'
932 dvidir='${docdir}'
933 pdfdir='${docdir}'
934 psdir='${docdir}'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
938
939 ac_prev=
940 ac_dashdash=
941 for ac_option
942 do
943   # If the previous option needs an argument, assign it.
944   if test -n "$ac_prev"; then
945     eval $ac_prev=\$ac_option
946     ac_prev=
947     continue
948   fi
949
950   case $ac_option in
951   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952   *)    ac_optarg=yes ;;
953   esac
954
955   # Accept the important Cygnus configure options, so we can diagnose typos.
956
957   case $ac_dashdash$ac_option in
958   --)
959     ac_dashdash=yes ;;
960
961   -bindir | --bindir | --bindi | --bind | --bin | --bi)
962     ac_prev=bindir ;;
963   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964     bindir=$ac_optarg ;;
965
966   -build | --build | --buil | --bui | --bu)
967     ac_prev=build_alias ;;
968   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969     build_alias=$ac_optarg ;;
970
971   -cache-file | --cache-file | --cache-fil | --cache-fi \
972   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973     ac_prev=cache_file ;;
974   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976     cache_file=$ac_optarg ;;
977
978   --config-cache | -C)
979     cache_file=config.cache ;;
980
981   -datadir | --datadir | --datadi | --datad)
982     ac_prev=datadir ;;
983   -datadir=* | --datadir=* | --datadi=* | --datad=*)
984     datadir=$ac_optarg ;;
985
986   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987   | --dataroo | --dataro | --datar)
988     ac_prev=datarootdir ;;
989   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991     datarootdir=$ac_optarg ;;
992
993   -disable-* | --disable-*)
994     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995     # Reject names that are not valid shell variable names.
996     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
997       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
998    { (exit 1); exit 1; }; }
999     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1000     eval enable_$ac_feature=no ;;
1001
1002   -docdir | --docdir | --docdi | --doc | --do)
1003     ac_prev=docdir ;;
1004   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005     docdir=$ac_optarg ;;
1006
1007   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008     ac_prev=dvidir ;;
1009   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010     dvidir=$ac_optarg ;;
1011
1012   -enable-* | --enable-*)
1013     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014     # Reject names that are not valid shell variable names.
1015     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1017    { (exit 1); exit 1; }; }
1018     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1019     eval enable_$ac_feature=\$ac_optarg ;;
1020
1021   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023   | --exec | --exe | --ex)
1024     ac_prev=exec_prefix ;;
1025   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027   | --exec=* | --exe=* | --ex=*)
1028     exec_prefix=$ac_optarg ;;
1029
1030   -gas | --gas | --ga | --g)
1031     # Obsolete; use --with-gas.
1032     with_gas=yes ;;
1033
1034   -help | --help | --hel | --he | -h)
1035     ac_init_help=long ;;
1036   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037     ac_init_help=recursive ;;
1038   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039     ac_init_help=short ;;
1040
1041   -host | --host | --hos | --ho)
1042     ac_prev=host_alias ;;
1043   -host=* | --host=* | --hos=* | --ho=*)
1044     host_alias=$ac_optarg ;;
1045
1046   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047     ac_prev=htmldir ;;
1048   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049   | --ht=*)
1050     htmldir=$ac_optarg ;;
1051
1052   -includedir | --includedir | --includedi | --included | --include \
1053   | --includ | --inclu | --incl | --inc)
1054     ac_prev=includedir ;;
1055   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056   | --includ=* | --inclu=* | --incl=* | --inc=*)
1057     includedir=$ac_optarg ;;
1058
1059   -infodir | --infodir | --infodi | --infod | --info | --inf)
1060     ac_prev=infodir ;;
1061   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062     infodir=$ac_optarg ;;
1063
1064   -libdir | --libdir | --libdi | --libd)
1065     ac_prev=libdir ;;
1066   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067     libdir=$ac_optarg ;;
1068
1069   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070   | --libexe | --libex | --libe)
1071     ac_prev=libexecdir ;;
1072   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073   | --libexe=* | --libex=* | --libe=*)
1074     libexecdir=$ac_optarg ;;
1075
1076   -localedir | --localedir | --localedi | --localed | --locale)
1077     ac_prev=localedir ;;
1078   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079     localedir=$ac_optarg ;;
1080
1081   -localstatedir | --localstatedir | --localstatedi | --localstated \
1082   | --localstate | --localstat | --localsta | --localst | --locals)
1083     ac_prev=localstatedir ;;
1084   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086     localstatedir=$ac_optarg ;;
1087
1088   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089     ac_prev=mandir ;;
1090   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091     mandir=$ac_optarg ;;
1092
1093   -nfp | --nfp | --nf)
1094     # Obsolete; use --without-fp.
1095     with_fp=no ;;
1096
1097   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098   | --no-cr | --no-c | -n)
1099     no_create=yes ;;
1100
1101   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103     no_recursion=yes ;;
1104
1105   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107   | --oldin | --oldi | --old | --ol | --o)
1108     ac_prev=oldincludedir ;;
1109   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112     oldincludedir=$ac_optarg ;;
1113
1114   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115     ac_prev=prefix ;;
1116   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117     prefix=$ac_optarg ;;
1118
1119   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120   | --program-pre | --program-pr | --program-p)
1121     ac_prev=program_prefix ;;
1122   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124     program_prefix=$ac_optarg ;;
1125
1126   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127   | --program-suf | --program-su | --program-s)
1128     ac_prev=program_suffix ;;
1129   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131     program_suffix=$ac_optarg ;;
1132
1133   -program-transform-name | --program-transform-name \
1134   | --program-transform-nam | --program-transform-na \
1135   | --program-transform-n | --program-transform- \
1136   | --program-transform | --program-transfor \
1137   | --program-transfo | --program-transf \
1138   | --program-trans | --program-tran \
1139   | --progr-tra | --program-tr | --program-t)
1140     ac_prev=program_transform_name ;;
1141   -program-transform-name=* | --program-transform-name=* \
1142   | --program-transform-nam=* | --program-transform-na=* \
1143   | --program-transform-n=* | --program-transform-=* \
1144   | --program-transform=* | --program-transfor=* \
1145   | --program-transfo=* | --program-transf=* \
1146   | --program-trans=* | --program-tran=* \
1147   | --progr-tra=* | --program-tr=* | --program-t=*)
1148     program_transform_name=$ac_optarg ;;
1149
1150   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151     ac_prev=pdfdir ;;
1152   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153     pdfdir=$ac_optarg ;;
1154
1155   -psdir | --psdir | --psdi | --psd | --ps)
1156     ac_prev=psdir ;;
1157   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158     psdir=$ac_optarg ;;
1159
1160   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161   | -silent | --silent | --silen | --sile | --sil)
1162     silent=yes ;;
1163
1164   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165     ac_prev=sbindir ;;
1166   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167   | --sbi=* | --sb=*)
1168     sbindir=$ac_optarg ;;
1169
1170   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172   | --sharedst | --shareds | --shared | --share | --shar \
1173   | --sha | --sh)
1174     ac_prev=sharedstatedir ;;
1175   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178   | --sha=* | --sh=*)
1179     sharedstatedir=$ac_optarg ;;
1180
1181   -site | --site | --sit)
1182     ac_prev=site ;;
1183   -site=* | --site=* | --sit=*)
1184     site=$ac_optarg ;;
1185
1186   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187     ac_prev=srcdir ;;
1188   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189     srcdir=$ac_optarg ;;
1190
1191   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192   | --syscon | --sysco | --sysc | --sys | --sy)
1193     ac_prev=sysconfdir ;;
1194   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196     sysconfdir=$ac_optarg ;;
1197
1198   -target | --target | --targe | --targ | --tar | --ta | --t)
1199     ac_prev=target_alias ;;
1200   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201     target_alias=$ac_optarg ;;
1202
1203   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204     verbose=yes ;;
1205
1206   -version | --version | --versio | --versi | --vers | -V)
1207     ac_init_version=: ;;
1208
1209   -with-* | --with-*)
1210     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211     # Reject names that are not valid shell variable names.
1212     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213       { echo "$as_me: error: invalid package name: $ac_package" >&2
1214    { (exit 1); exit 1; }; }
1215     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1216     eval with_$ac_package=\$ac_optarg ;;
1217
1218   -without-* | --without-*)
1219     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222       { echo "$as_me: error: invalid package name: $ac_package" >&2
1223    { (exit 1); exit 1; }; }
1224     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225     eval with_$ac_package=no ;;
1226
1227   --x)
1228     # Obsolete; use --with-x.
1229     with_x=yes ;;
1230
1231   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232   | --x-incl | --x-inc | --x-in | --x-i)
1233     ac_prev=x_includes ;;
1234   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236     x_includes=$ac_optarg ;;
1237
1238   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240     ac_prev=x_libraries ;;
1241   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243     x_libraries=$ac_optarg ;;
1244
1245   -*) { echo "$as_me: error: unrecognized option: $ac_option
1246 Try \`$0 --help' for more information." >&2
1247    { (exit 1); exit 1; }; }
1248     ;;
1249
1250   *=*)
1251     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252     # Reject names that are not valid shell variable names.
1253     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1254       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1255    { (exit 1); exit 1; }; }
1256     eval $ac_envvar=\$ac_optarg
1257     export $ac_envvar ;;
1258
1259   *)
1260     # FIXME: should be removed in autoconf 3.0.
1261     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1265     ;;
1266
1267   esac
1268 done
1269
1270 if test -n "$ac_prev"; then
1271   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272   { echo "$as_me: error: missing argument to $ac_option" >&2
1273    { (exit 1); exit 1; }; }
1274 fi
1275
1276 # Be sure to have absolute directory names.
1277 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278                 datadir sysconfdir sharedstatedir localstatedir includedir \
1279                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280                 libdir localedir mandir
1281 do
1282   eval ac_val=\$$ac_var
1283   case $ac_val in
1284     [\\/$]* | ?:[\\/]* )  continue;;
1285     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286   esac
1287   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1288    { (exit 1); exit 1; }; }
1289 done
1290
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1297
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300   if test "x$build_alias" = x; then
1301     cross_compiling=maybe
1302     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303     If a cross compiler is detected then cross compile mode will be used." >&2
1304   elif test "x$build_alias" != "x$host_alias"; then
1305     cross_compiling=yes
1306   fi
1307 fi
1308
1309 ac_tool_prefix=
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312 test "$silent" = yes && exec 6>/dev/null
1313
1314
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318   { echo "$as_me: error: Working directory cannot be determined" >&2
1319    { (exit 1); exit 1; }; }
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321   { echo "$as_me: error: pwd does not report name of working directory" >&2
1322    { (exit 1); exit 1; }; }
1323
1324
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327   ac_srcdir_defaulted=yes
1328   # Try the directory containing this script, then the parent directory.
1329   ac_confdir=`$as_dirname -- "$0" ||
1330 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331          X"$0" : 'X\(//\)[^/]' \| \
1332          X"$0" : 'X\(//\)$' \| \
1333          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1334 echo X"$0" |
1335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\/\)[^/].*/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\/\)$/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\).*/{
1348             s//\1/
1349             q
1350           }
1351           s/.*/./; q'`
1352   srcdir=$ac_confdir
1353   if test ! -r "$srcdir/$ac_unique_file"; then
1354     srcdir=..
1355   fi
1356 else
1357   ac_srcdir_defaulted=no
1358 fi
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1362    { (exit 1); exit 1; }; }
1363 fi
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 ac_abs_confdir=`(
1366         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1367    { (exit 1); exit 1; }; }
1368         pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371   srcdir=.
1372 fi
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381   eval ac_env_${ac_var}_value=\$${ac_var}
1382   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390   # Omit some internal or obsolete options to make the list less imposing.
1391   # This message is too long to be a string in the A/UX 3.1 sh.
1392   cat <<_ACEOF
1393 \`configure' configures this package to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE.  See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403   -h, --help              display this help and exit
1404       --help=short        display options specific to this package
1405       --help=recursive    display the short help of all the included packages
1406   -V, --version           display version information and exit
1407   -q, --quiet, --silent   do not print \`checking...' messages
1408       --cache-file=FILE   cache test results in FILE [disabled]
1409   -C, --config-cache      alias for \`--cache-file=config.cache'
1410   -n, --no-create         do not create output files
1411       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414   --prefix=PREFIX         install architecture-independent files in PREFIX
1415                           [$ac_default_prefix]
1416   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1417                           [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427   --bindir=DIR           user executables [EPREFIX/bin]
1428   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1429   --libexecdir=DIR       program executables [EPREFIX/libexec]
1430   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1431   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1432   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1433   --libdir=DIR           object code libraries [EPREFIX/lib]
1434   --includedir=DIR       C header files [PREFIX/include]
1435   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1436   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1437   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1438   --infodir=DIR          info documentation [DATAROOTDIR/info]
1439   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1440   --mandir=DIR           man documentation [DATAROOTDIR/man]
1441   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1442   --htmldir=DIR          html documentation [DOCDIR]
1443   --dvidir=DIR           dvi documentation [DOCDIR]
1444   --pdfdir=DIR           pdf documentation [DOCDIR]
1445   --psdir=DIR            ps documentation [DOCDIR]
1446 _ACEOF
1447
1448   cat <<\_ACEOF
1449
1450 System types:
1451   --build=BUILD     configure for building on BUILD [guessed]
1452   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1453 _ACEOF
1454 fi
1455
1456 if test -n "$ac_init_help"; then
1457
1458   cat <<\_ACEOF
1459
1460 Optional Features:
1461   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1462   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1463   --enable-ucsim          compile ucsim frontend
1464   --enable-dlso           compile dynamically loadable shared libraries
1465   --disable-51            do not compile simulator for MCS51
1466   --disable-avr           do not compile simulator for AVR
1467   --disable-z80           do not compile simulator for Z80
1468   --disable-hc08          do not compile simulator for hc08
1469   --enable-xa             compile simulator for XA
1470   --enable-serio          compile serio GUI tool (needs curses)
1471   --enable-statistic      compile statistical features (slower simulation)
1472   --enable-shared=PKGS  build shared libraries default=yes
1473   --enable-static=PKGS  build static libraries default=yes
1474   --enable-fast-install=PKGS  optimize for fast installation default=yes
1475   --disable-libtool-lock  avoid locking (might break parallel builds)
1476
1477 Optional Packages:
1478   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1481   --with-pic              try to use only PIC/non-PIC objects default=use both
1482
1483 Some influential environment variables:
1484   docdir      documentation installation directory
1485   CXX         C++ compiler command
1486   CXXFLAGS    C++ compiler flags
1487   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1488               nonstandard directory <lib dir>
1489   LIBS        libraries to pass to the linker, e.g. -l<library>
1490   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1491               you have headers in a nonstandard directory <include dir>
1492   CXXCPP      C++ preprocessor
1493   CC          C compiler command
1494   CFLAGS      C compiler flags
1495   CPP         C preprocessor
1496   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1497               the first program found out of: `bison -y', `byacc', `yacc'.
1498   YFLAGS      The list of arguments that will be passed by default to $YACC.
1499               This script will default YFLAGS to the empty string to avoid a
1500               default value of `-d' given by some make applications.
1501
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1504
1505 _ACEOF
1506 ac_status=$?
1507 fi
1508
1509 if test "$ac_init_help" = "recursive"; then
1510   # If there are subdirs, report their specific --help.
1511   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512     test -d "$ac_dir" || continue
1513     ac_builddir=.
1514
1515 case "$ac_dir" in
1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *)
1518   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1519   # A ".." for each directory in $ac_dir_suffix.
1520   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1521   case $ac_top_builddir_sub in
1522   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524   esac ;;
1525 esac
1526 ac_abs_top_builddir=$ac_pwd
1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528 # for backward compatibility:
1529 ac_top_builddir=$ac_top_build_prefix
1530
1531 case $srcdir in
1532   .)  # We are building in place.
1533     ac_srcdir=.
1534     ac_top_srcdir=$ac_top_builddir_sub
1535     ac_abs_top_srcdir=$ac_pwd ;;
1536   [\\/]* | ?:[\\/]* )  # Absolute name.
1537     ac_srcdir=$srcdir$ac_dir_suffix;
1538     ac_top_srcdir=$srcdir
1539     ac_abs_top_srcdir=$srcdir ;;
1540   *) # Relative name.
1541     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542     ac_top_srcdir=$ac_top_build_prefix$srcdir
1543     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 esac
1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546
1547     cd "$ac_dir" || { ac_status=$?; continue; }
1548     # Check for guested configure.
1549     if test -f "$ac_srcdir/configure.gnu"; then
1550       echo &&
1551       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552     elif test -f "$ac_srcdir/configure"; then
1553       echo &&
1554       $SHELL "$ac_srcdir/configure" --help=recursive
1555     else
1556       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557     fi || ac_status=$?
1558     cd "$ac_pwd" || { ac_status=$?; break; }
1559   done
1560 fi
1561
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1564   cat <<\_ACEOF
1565 configure
1566 generated by GNU Autoconf 2.61
1567
1568 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1569 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1572 _ACEOF
1573   exit
1574 fi
1575 cat >config.log <<_ACEOF
1576 This file contains any messages produced by compilers while
1577 running configure, to aid debugging if configure makes a mistake.
1578
1579 It was created by $as_me, which was
1580 generated by GNU Autoconf 2.61.  Invocation command line was
1581
1582   $ $0 $@
1583
1584 _ACEOF
1585 exec 5>>config.log
1586 {
1587 cat <<_ASUNAME
1588 ## --------- ##
1589 ## Platform. ##
1590 ## --------- ##
1591
1592 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1593 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1594 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1595 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1596 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1597
1598 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1599 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1600
1601 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1602 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1603 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1604 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1605 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1606 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1607 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1608
1609 _ASUNAME
1610
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1613 do
1614   IFS=$as_save_IFS
1615   test -z "$as_dir" && as_dir=.
1616   echo "PATH: $as_dir"
1617 done
1618 IFS=$as_save_IFS
1619
1620 } >&5
1621
1622 cat >&5 <<_ACEOF
1623
1624
1625 ## ----------- ##
1626 ## Core tests. ##
1627 ## ----------- ##
1628
1629 _ACEOF
1630
1631
1632 # Keep a trace of the command line.
1633 # Strip out --no-create and --no-recursion so they do not pile up.
1634 # Strip out --silent because we don't want to record it for future runs.
1635 # Also quote any args containing shell meta-characters.
1636 # Make two passes to allow for proper duplicate-argument suppression.
1637 ac_configure_args=
1638 ac_configure_args0=
1639 ac_configure_args1=
1640 ac_must_keep_next=false
1641 for ac_pass in 1 2
1642 do
1643   for ac_arg
1644   do
1645     case $ac_arg in
1646     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1647     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1648     | -silent | --silent | --silen | --sile | --sil)
1649       continue ;;
1650     *\'*)
1651       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1652     esac
1653     case $ac_pass in
1654     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1655     2)
1656       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1657       if test $ac_must_keep_next = true; then
1658         ac_must_keep_next=false # Got value, back to normal.
1659       else
1660         case $ac_arg in
1661           *=* | --config-cache | -C | -disable-* | --disable-* \
1662           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1663           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1664           | -with-* | --with-* | -without-* | --without-* | --x)
1665             case "$ac_configure_args0 " in
1666               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1667             esac
1668             ;;
1669           -* ) ac_must_keep_next=true ;;
1670         esac
1671       fi
1672       ac_configure_args="$ac_configure_args '$ac_arg'"
1673       ;;
1674     esac
1675   done
1676 done
1677 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1678 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1679
1680 # When interrupted or exit'd, cleanup temporary files, and complete
1681 # config.log.  We remove comments because anyway the quotes in there
1682 # would cause problems or look ugly.
1683 # WARNING: Use '\'' to represent an apostrophe within the trap.
1684 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1685 trap 'exit_status=$?
1686   # Save into config.log some information that might help in debugging.
1687   {
1688     echo
1689
1690     cat <<\_ASBOX
1691 ## ---------------- ##
1692 ## Cache variables. ##
1693 ## ---------------- ##
1694 _ASBOX
1695     echo
1696     # The following way of writing the cache mishandles newlines in values,
1697 (
1698   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1699     eval ac_val=\$$ac_var
1700     case $ac_val in #(
1701     *${as_nl}*)
1702       case $ac_var in #(
1703       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1704 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1705       esac
1706       case $ac_var in #(
1707       _ | IFS | as_nl) ;; #(
1708       *) $as_unset $ac_var ;;
1709       esac ;;
1710     esac
1711   done
1712   (set) 2>&1 |
1713     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1714     *${as_nl}ac_space=\ *)
1715       sed -n \
1716         "s/'\''/'\''\\\\'\'''\''/g;
1717           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1718       ;; #(
1719     *)
1720       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1721       ;;
1722     esac |
1723     sort
1724 )
1725     echo
1726
1727     cat <<\_ASBOX
1728 ## ----------------- ##
1729 ## Output variables. ##
1730 ## ----------------- ##
1731 _ASBOX
1732     echo
1733     for ac_var in $ac_subst_vars
1734     do
1735       eval ac_val=\$$ac_var
1736       case $ac_val in
1737       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738       esac
1739       echo "$ac_var='\''$ac_val'\''"
1740     done | sort
1741     echo
1742
1743     if test -n "$ac_subst_files"; then
1744       cat <<\_ASBOX
1745 ## ------------------- ##
1746 ## File substitutions. ##
1747 ## ------------------- ##
1748 _ASBOX
1749       echo
1750       for ac_var in $ac_subst_files
1751       do
1752         eval ac_val=\$$ac_var
1753         case $ac_val in
1754         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755         esac
1756         echo "$ac_var='\''$ac_val'\''"
1757       done | sort
1758       echo
1759     fi
1760
1761     if test -s confdefs.h; then
1762       cat <<\_ASBOX
1763 ## ----------- ##
1764 ## confdefs.h. ##
1765 ## ----------- ##
1766 _ASBOX
1767       echo
1768       cat confdefs.h
1769       echo
1770     fi
1771     test "$ac_signal" != 0 &&
1772       echo "$as_me: caught signal $ac_signal"
1773     echo "$as_me: exit $exit_status"
1774   } >&5
1775   rm -f core *.core core.conftest.* &&
1776     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1777     exit $exit_status
1778 ' 0
1779 for ac_signal in 1 2 13 15; do
1780   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1781 done
1782 ac_signal=0
1783
1784 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1785 rm -f -r conftest* confdefs.h
1786
1787 # Predefined preprocessor variables.
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_NAME "$PACKAGE_NAME"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_STRING "$PACKAGE_STRING"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1811 _ACEOF
1812
1813
1814 # Let the site file select an alternate cache file if it wants to.
1815 # Prefer explicitly selected file to automatically selected ones.
1816 if test -n "$CONFIG_SITE"; then
1817   set x "$CONFIG_SITE"
1818 elif test "x$prefix" != xNONE; then
1819   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1820 else
1821   set x "$ac_default_prefix/share/config.site" \
1822         "$ac_default_prefix/etc/config.site"
1823 fi
1824 shift
1825 for ac_site_file
1826 do
1827   if test -r "$ac_site_file"; then
1828     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1829 echo "$as_me: loading site script $ac_site_file" >&6;}
1830     sed 's/^/| /' "$ac_site_file" >&5
1831     . "$ac_site_file"
1832   fi
1833 done
1834
1835 if test -r "$cache_file"; then
1836   # Some versions of bash will fail to source /dev/null (special
1837   # files actually), so we avoid doing that.
1838   if test -f "$cache_file"; then
1839     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1840 echo "$as_me: loading cache $cache_file" >&6;}
1841     case $cache_file in
1842       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1843       *)                      . "./$cache_file";;
1844     esac
1845   fi
1846 else
1847   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1848 echo "$as_me: creating cache $cache_file" >&6;}
1849   >$cache_file
1850 fi
1851
1852 # Check that the precious variables saved in the cache have kept the same
1853 # value.
1854 ac_cache_corrupted=false
1855 for ac_var in $ac_precious_vars; do
1856   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1857   eval ac_new_set=\$ac_env_${ac_var}_set
1858   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1859   eval ac_new_val=\$ac_env_${ac_var}_value
1860   case $ac_old_set,$ac_new_set in
1861     set,)
1862       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1863 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1864       ac_cache_corrupted=: ;;
1865     ,set)
1866       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1868       ac_cache_corrupted=: ;;
1869     ,);;
1870     *)
1871       if test "x$ac_old_val" != "x$ac_new_val"; then
1872         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1873 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1874         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1875 echo "$as_me:   former value:  $ac_old_val" >&2;}
1876         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1877 echo "$as_me:   current value: $ac_new_val" >&2;}
1878         ac_cache_corrupted=:
1879       fi;;
1880   esac
1881   # Pass precious variables to config.status.
1882   if test "$ac_new_set" = set; then
1883     case $ac_new_val in
1884     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1885     *) ac_arg=$ac_var=$ac_new_val ;;
1886     esac
1887     case " $ac_configure_args " in
1888       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1889       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1890     esac
1891   fi
1892 done
1893 if $ac_cache_corrupted; then
1894   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1895 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1896   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1897 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1898    { (exit 1); exit 1; }; }
1899 fi
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917 ac_ext=c
1918 ac_cpp='$CPP $CPPFLAGS'
1919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1922
1923
1924 ac_config_headers="$ac_config_headers ddconfig.h:ddconfig_in.h"
1925
1926
1927 for ac_prog in gawk mawk nawk awk
1928 do
1929   # Extract the first word of "$ac_prog", so it can be a program name with args.
1930 set dummy $ac_prog; ac_word=$2
1931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1933 if test "${ac_cv_prog_AWK+set}" = set; then
1934   echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936   if test -n "$AWK"; then
1937   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1938 else
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 for as_dir in $PATH
1941 do
1942   IFS=$as_save_IFS
1943   test -z "$as_dir" && as_dir=.
1944   for ac_exec_ext in '' $ac_executable_extensions; do
1945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1946     ac_cv_prog_AWK="$ac_prog"
1947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948     break 2
1949   fi
1950 done
1951 done
1952 IFS=$as_save_IFS
1953
1954 fi
1955 fi
1956 AWK=$ac_cv_prog_AWK
1957 if test -n "$AWK"; then
1958   { echo "$as_me:$LINENO: result: $AWK" >&5
1959 echo "${ECHO_T}$AWK" >&6; }
1960 else
1961   { echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6; }
1963 fi
1964
1965
1966   test -n "$AWK" && break
1967 done
1968
1969
1970 { echo "$as_me:$LINENO: checking version of the package" >&5
1971 echo $ECHO_N "checking version of the package... $ECHO_C" >&6; }
1972 if test -f ${srcdir}/.version; then
1973   { read VERSION; } < ${srcdir}/.version
1974   { echo "$as_me:$LINENO: result: $VERSION" >&5
1975 echo "${ECHO_T}$VERSION" >&6; }
1976 else
1977   VERSION="0.0.0"
1978   { echo "$as_me:$LINENO: result: unknown using 0.0.0" >&5
1979 echo "${ECHO_T}unknown using 0.0.0" >&6; }
1980 fi
1981 VERSIONHI=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $1}'`
1982 VERSIONLO=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $2}'`
1983 VERSIONP=`echo $VERSION|$AWK 'BEGIN {FS="."} {print $3}'`
1984
1985
1986
1987
1988 cat >>confdefs.h <<_ACEOF
1989 #define VERSIONSTR "${VERSION}"
1990 _ACEOF
1991
1992 cat >>confdefs.h <<_ACEOF
1993 #define VERSIONHI $VERSIONHI
1994 _ACEOF
1995
1996 cat >>confdefs.h <<_ACEOF
1997 #define VERSIONLO $VERSIONLO
1998 _ACEOF
1999
2000 cat >>confdefs.h <<_ACEOF
2001 #define VERSIONP $VERSIONP
2002 _ACEOF
2003
2004
2005 # Some options
2006 #==============
2007 # *nix default: "${datadir}/sdcc/doc"
2008
2009 if test "${docdir}" = ""; then
2010     docdir="\${datadir}"/sdcc/doc
2011 fi
2012
2013
2014 # Check whether --enable-ucsim was given.
2015 if test "${enable_ucsim+set}" = set; then
2016   enableval=$enable_ucsim; if test $enable_ucsim != "no"; then
2017     enable_ucsim="yes"
2018 fi
2019 else
2020   #default
2021 enable_ucsim="no"
2022 fi
2023
2024 # Check whether --enable-dlso was given.
2025 if test "${enable_dlso+set}" = set; then
2026   enableval=$enable_dlso; if test $enable_dlso != "no"; then
2027     enable_dlso="yes"
2028 fi
2029 else
2030   enable_dlso="no"
2031 fi
2032
2033 # Check whether --enable-51 was given.
2034 if test "${enable_51+set}" = set; then
2035   enableval=$enable_51; if test $enable_51 != "no"; then
2036     enable_51="yes"
2037 fi
2038 else
2039   enable_51="yes"
2040 fi
2041
2042 # Check whether --enable-avr was given.
2043 if test "${enable_avr+set}" = set; then
2044   enableval=$enable_avr; if test $enable_avr != "no"; then
2045     enable_avr="yes"
2046 fi
2047 else
2048   enable_avr="yes"
2049 fi
2050
2051 # Check whether --enable-z80 was given.
2052 if test "${enable_z80+set}" = set; then
2053   enableval=$enable_z80; if test $enable_z80 != "no"; then
2054     enable_z80="yes"
2055 fi
2056 else
2057   enable_z80="yes"
2058 fi
2059
2060 # Check whether --enable-hc08 was given.
2061 if test "${enable_hc08+set}" = set; then
2062   enableval=$enable_hc08; if test $enable_hc08 != "no"; then
2063     enable_hc08="yes"
2064 fi
2065 else
2066   enable_hc08="yes"
2067 fi
2068
2069 # Check whether --enable-xa was given.
2070 if test "${enable_xa+set}" = set; then
2071   enableval=$enable_xa; if test $enable_xa != "no"; then
2072     enable_xa="yes"
2073 fi
2074 else
2075   enable_xa="no"
2076 fi
2077
2078 # Check whether --enable-portmon was given.
2079 if test "${enable_portmon+set}" = set; then
2080   enableval=$enable_portmon; if test $enable_serio != "no"; then
2081     enable_serio="yes"
2082 fi
2083 else
2084   enable_serio="no"
2085 fi
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096 # Check whether --enable-statistic was given.
2097 if test "${enable_statistic+set}" = set; then
2098   enableval=$enable_statistic; if test $enable_statistic != "no"; then
2099    enable_statistic="yes"
2100 fi
2101 else
2102   enable_statistic="no"
2103 fi
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define STATISTIC $enable_statistic
2107 _ACEOF
2108
2109
2110
2111 # Required programs
2112 #-------------------
2113 ac_ext=cpp
2114 ac_cpp='$CXXCPP $CPPFLAGS'
2115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2118 if test -z "$CXX"; then
2119   if test -n "$CCC"; then
2120     CXX=$CCC
2121   else
2122     if test -n "$ac_tool_prefix"; then
2123   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2124   do
2125     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2129 if test "${ac_cv_prog_CXX+set}" = set; then
2130   echo $ECHO_N "(cached) $ECHO_C" >&6
2131 else
2132   if test -n "$CXX"; then
2133   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2134 else
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2137 do
2138   IFS=$as_save_IFS
2139   test -z "$as_dir" && as_dir=.
2140   for ac_exec_ext in '' $ac_executable_extensions; do
2141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2142     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144     break 2
2145   fi
2146 done
2147 done
2148 IFS=$as_save_IFS
2149
2150 fi
2151 fi
2152 CXX=$ac_cv_prog_CXX
2153 if test -n "$CXX"; then
2154   { echo "$as_me:$LINENO: result: $CXX" >&5
2155 echo "${ECHO_T}$CXX" >&6; }
2156 else
2157   { echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6; }
2159 fi
2160
2161
2162     test -n "$CXX" && break
2163   done
2164 fi
2165 if test -z "$CXX"; then
2166   ac_ct_CXX=$CXX
2167   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2168 do
2169   # Extract the first word of "$ac_prog", so it can be a program name with args.
2170 set dummy $ac_prog; ac_word=$2
2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2173 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   if test -n "$ac_ct_CXX"; then
2177   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2178 else
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2181 do
2182   IFS=$as_save_IFS
2183   test -z "$as_dir" && as_dir=.
2184   for ac_exec_ext in '' $ac_executable_extensions; do
2185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2186     ac_cv_prog_ac_ct_CXX="$ac_prog"
2187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188     break 2
2189   fi
2190 done
2191 done
2192 IFS=$as_save_IFS
2193
2194 fi
2195 fi
2196 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2197 if test -n "$ac_ct_CXX"; then
2198   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2199 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2200 else
2201   { echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6; }
2203 fi
2204
2205
2206   test -n "$ac_ct_CXX" && break
2207 done
2208
2209   if test "x$ac_ct_CXX" = x; then
2210     CXX="g++"
2211   else
2212     case $cross_compiling:$ac_tool_warned in
2213 yes:)
2214 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2215 whose name does not start with the host triplet.  If you think this
2216 configuration is useful to you, please write to autoconf@gnu.org." >&5
2217 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2218 whose name does not start with the host triplet.  If you think this
2219 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2220 ac_tool_warned=yes ;;
2221 esac
2222     CXX=$ac_ct_CXX
2223   fi
2224 fi
2225
2226   fi
2227 fi
2228 # Provide some information about the compiler.
2229 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2230 ac_compiler=`set X $ac_compile; echo $2`
2231 { (ac_try="$ac_compiler --version >&5"
2232 case "(($ac_try" in
2233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234   *) ac_try_echo=$ac_try;;
2235 esac
2236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2237   (eval "$ac_compiler --version >&5") 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); }
2241 { (ac_try="$ac_compiler -v >&5"
2242 case "(($ac_try" in
2243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2244   *) ac_try_echo=$ac_try;;
2245 esac
2246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2247   (eval "$ac_compiler -v >&5") 2>&5
2248   ac_status=$?
2249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250   (exit $ac_status); }
2251 { (ac_try="$ac_compiler -V >&5"
2252 case "(($ac_try" in
2253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254   *) ac_try_echo=$ac_try;;
2255 esac
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257   (eval "$ac_compiler -V >&5") 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }
2261
2262 cat >conftest.$ac_ext <<_ACEOF
2263 /* confdefs.h.  */
2264 _ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h.  */
2268
2269 int
2270 main ()
2271 {
2272
2273   ;
2274   return 0;
2275 }
2276 _ACEOF
2277 ac_clean_files_save=$ac_clean_files
2278 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2279 # Try to create an executable without -o first, disregard a.out.
2280 # It will help us diagnose broken compilers, and finding out an intuition
2281 # of exeext.
2282 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2283 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2284 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2285 #
2286 # List of possible output files, starting from the most likely.
2287 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2288 # only as a last resort.  b.out is created by i960 compilers.
2289 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2290 #
2291 # The IRIX 6 linker writes into existing files which may not be
2292 # executable, retaining their permissions.  Remove them first so a
2293 # subsequent execution test works.
2294 ac_rmfiles=
2295 for ac_file in $ac_files
2296 do
2297   case $ac_file in
2298     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2299     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2300   esac
2301 done
2302 rm -f $ac_rmfiles
2303
2304 if { (ac_try="$ac_link_default"
2305 case "(($ac_try" in
2306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307   *) ac_try_echo=$ac_try;;
2308 esac
2309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2310   (eval "$ac_link_default") 2>&5
2311   ac_status=$?
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); }; then
2314   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2315 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2316 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2317 # so that the user can short-circuit this test for compilers unknown to
2318 # Autoconf.
2319 for ac_file in $ac_files ''
2320 do
2321   test -f "$ac_file" || continue
2322   case $ac_file in
2323     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2324         ;;
2325     [ab].out )
2326         # We found the default executable, but exeext='' is most
2327         # certainly right.
2328         break;;
2329     *.* )
2330         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2331         then :; else
2332            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2333         fi
2334         # We set ac_cv_exeext here because the later test for it is not
2335         # safe: cross compilers may not add the suffix if given an `-o'
2336         # argument, so we may need to know it at that point already.
2337         # Even if this section looks crufty: it has the advantage of
2338         # actually working.
2339         break;;
2340     * )
2341         break;;
2342   esac
2343 done
2344 test "$ac_cv_exeext" = no && ac_cv_exeext=
2345
2346 else
2347   ac_file=''
2348 fi
2349
2350 { echo "$as_me:$LINENO: result: $ac_file" >&5
2351 echo "${ECHO_T}$ac_file" >&6; }
2352 if test -z "$ac_file"; then
2353   echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2357 See \`config.log' for more details." >&5
2358 echo "$as_me: error: C++ compiler cannot create executables
2359 See \`config.log' for more details." >&2;}
2360    { (exit 77); exit 77; }; }
2361 fi
2362
2363 ac_exeext=$ac_cv_exeext
2364
2365 # Check that the compiler produces executables we can run.  If not, either
2366 # the compiler is broken, or we cross compile.
2367 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2368 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2369 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2370 # If not cross compiling, check that we can run a simple program.
2371 if test "$cross_compiling" != yes; then
2372   if { ac_try='./$ac_file'
2373   { (case "(($ac_try" in
2374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375   *) ac_try_echo=$ac_try;;
2376 esac
2377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378   (eval "$ac_try") 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }; }; then
2382     cross_compiling=no
2383   else
2384     if test "$cross_compiling" = maybe; then
2385         cross_compiling=yes
2386     else
2387         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2388 If you meant to cross compile, use \`--host'.
2389 See \`config.log' for more details." >&5
2390 echo "$as_me: error: cannot run C++ compiled programs.
2391 If you meant to cross compile, use \`--host'.
2392 See \`config.log' for more details." >&2;}
2393    { (exit 1); exit 1; }; }
2394     fi
2395   fi
2396 fi
2397 { echo "$as_me:$LINENO: result: yes" >&5
2398 echo "${ECHO_T}yes" >&6; }
2399
2400 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2401 ac_clean_files=$ac_clean_files_save
2402 # Check that the compiler produces executables we can run.  If not, either
2403 # the compiler is broken, or we cross compile.
2404 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2405 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2406 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2407 echo "${ECHO_T}$cross_compiling" >&6; }
2408
2409 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2410 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2411 if { (ac_try="$ac_link"
2412 case "(($ac_try" in
2413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414   *) ac_try_echo=$ac_try;;
2415 esac
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417   (eval "$ac_link") 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; then
2421   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2422 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2423 # work properly (i.e., refer to `conftest.exe'), while it won't with
2424 # `rm'.
2425 for ac_file in conftest.exe conftest conftest.*; do
2426   test -f "$ac_file" || continue
2427   case $ac_file in
2428     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2429     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2430           break;;
2431     * ) break;;
2432   esac
2433 done
2434 else
2435   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2438 See \`config.log' for more details." >&2;}
2439    { (exit 1); exit 1; }; }
2440 fi
2441
2442 rm -f conftest$ac_cv_exeext
2443 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2444 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2445
2446 rm -f conftest.$ac_ext
2447 EXEEXT=$ac_cv_exeext
2448 ac_exeext=$EXEEXT
2449 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2450 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2451 if test "${ac_cv_objext+set}" = set; then
2452   echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454   cat >conftest.$ac_ext <<_ACEOF
2455 /* confdefs.h.  */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h.  */
2460
2461 int
2462 main ()
2463 {
2464
2465   ;
2466   return 0;
2467 }
2468 _ACEOF
2469 rm -f conftest.o conftest.obj
2470 if { (ac_try="$ac_compile"
2471 case "(($ac_try" in
2472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473   *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476   (eval "$ac_compile") 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }; then
2480   for ac_file in conftest.o conftest.obj conftest.*; do
2481   test -f "$ac_file" || continue;
2482   case $ac_file in
2483     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2484     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2485        break;;
2486   esac
2487 done
2488 else
2489   echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2493 See \`config.log' for more details." >&5
2494 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2495 See \`config.log' for more details." >&2;}
2496    { (exit 1); exit 1; }; }
2497 fi
2498
2499 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2500 fi
2501 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2502 echo "${ECHO_T}$ac_cv_objext" >&6; }
2503 OBJEXT=$ac_cv_objext
2504 ac_objext=$OBJEXT
2505 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2506 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2507 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   cat >conftest.$ac_ext <<_ACEOF
2511 /* confdefs.h.  */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h.  */
2516
2517 int
2518 main ()
2519 {
2520 #ifndef __GNUC__
2521        choke me
2522 #endif
2523
2524   ;
2525   return 0;
2526 }
2527 _ACEOF
2528 rm -f conftest.$ac_objext
2529 if { (ac_try="$ac_compile"
2530 case "(($ac_try" in
2531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532   *) ac_try_echo=$ac_try;;
2533 esac
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535   (eval "$ac_compile") 2>conftest.er1
2536   ac_status=$?
2537   grep -v '^ *+' conftest.er1 >conftest.err
2538   rm -f conftest.er1
2539   cat conftest.err >&5
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); } && {
2542          test -z "$ac_cxx_werror_flag" ||
2543          test ! -s conftest.err
2544        } && test -s conftest.$ac_objext; then
2545   ac_compiler_gnu=yes
2546 else
2547   echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2549
2550         ac_compiler_gnu=no
2551 fi
2552
2553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2555
2556 fi
2557 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2558 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2559 GXX=`test $ac_compiler_gnu = yes && echo yes`
2560 ac_test_CXXFLAGS=${CXXFLAGS+set}
2561 ac_save_CXXFLAGS=$CXXFLAGS
2562 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2563 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_cxx_g+set}" = set; then
2565   echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2568    ac_cxx_werror_flag=yes
2569    ac_cv_prog_cxx_g=no
2570    CXXFLAGS="-g"
2571    cat >conftest.$ac_ext <<_ACEOF
2572 /* confdefs.h.  */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h.  */
2577
2578 int
2579 main ()
2580 {
2581
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 rm -f conftest.$ac_objext
2587 if { (ac_try="$ac_compile"
2588 case "(($ac_try" in
2589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590   *) ac_try_echo=$ac_try;;
2591 esac
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593   (eval "$ac_compile") 2>conftest.er1
2594   ac_status=$?
2595   grep -v '^ *+' conftest.er1 >conftest.err
2596   rm -f conftest.er1
2597   cat conftest.err >&5
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); } && {
2600          test -z "$ac_cxx_werror_flag" ||
2601          test ! -s conftest.err
2602        } && test -s conftest.$ac_objext; then
2603   ac_cv_prog_cxx_g=yes
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608         CXXFLAGS=""
2609       cat >conftest.$ac_ext <<_ACEOF
2610 /* confdefs.h.  */
2611 _ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h.  */
2615
2616 int
2617 main ()
2618 {
2619
2620   ;
2621   return 0;
2622 }
2623 _ACEOF
2624 rm -f conftest.$ac_objext
2625 if { (ac_try="$ac_compile"
2626 case "(($ac_try" in
2627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628   *) ac_try_echo=$ac_try;;
2629 esac
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631   (eval "$ac_compile") 2>conftest.er1
2632   ac_status=$?
2633   grep -v '^ *+' conftest.er1 >conftest.err
2634   rm -f conftest.er1
2635   cat conftest.err >&5
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); } && {
2638          test -z "$ac_cxx_werror_flag" ||
2639          test ! -s conftest.err
2640        } && test -s conftest.$ac_objext; then
2641   :
2642 else
2643   echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2645
2646         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2647          CXXFLAGS="-g"
2648          cat >conftest.$ac_ext <<_ACEOF
2649 /* confdefs.h.  */
2650 _ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h.  */
2654
2655 int
2656 main ()
2657 {
2658
2659   ;
2660   return 0;
2661 }
2662 _ACEOF
2663 rm -f conftest.$ac_objext
2664 if { (ac_try="$ac_compile"
2665 case "(($ac_try" in
2666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667   *) ac_try_echo=$ac_try;;
2668 esac
2669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2670   (eval "$ac_compile") 2>conftest.er1
2671   ac_status=$?
2672   grep -v '^ *+' conftest.er1 >conftest.err
2673   rm -f conftest.er1
2674   cat conftest.err >&5
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); } && {
2677          test -z "$ac_cxx_werror_flag" ||
2678          test ! -s conftest.err
2679        } && test -s conftest.$ac_objext; then
2680   ac_cv_prog_cxx_g=yes
2681 else
2682   echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2684
2685
2686 fi
2687
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689 fi
2690
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692 fi
2693
2694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2696 fi
2697 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2698 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2699 if test "$ac_test_CXXFLAGS" = set; then
2700   CXXFLAGS=$ac_save_CXXFLAGS
2701 elif test $ac_cv_prog_cxx_g = yes; then
2702   if test "$GXX" = yes; then
2703     CXXFLAGS="-g -O2"
2704   else
2705     CXXFLAGS="-g"
2706   fi
2707 else
2708   if test "$GXX" = yes; then
2709     CXXFLAGS="-O2"
2710   else
2711     CXXFLAGS=
2712   fi
2713 fi
2714 ac_ext=c
2715 ac_cpp='$CPP $CPPFLAGS'
2716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2719
2720 ac_ext=cpp
2721 ac_cpp='$CXXCPP $CPPFLAGS'
2722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2725 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2726 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
2727 if test -z "$CXXCPP"; then
2728   if test "${ac_cv_prog_CXXCPP+set}" = set; then
2729   echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731       # Double quotes because CXXCPP needs to be expanded
2732     for CXXCPP in "$CXX -E" "/lib/cpp"
2733     do
2734       ac_preproc_ok=false
2735 for ac_cxx_preproc_warn_flag in '' yes
2736 do
2737   # Use a header file that comes with gcc, so configuring glibc
2738   # with a fresh cross-compiler works.
2739   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2740   # <limits.h> exists even on freestanding compilers.
2741   # On the NeXT, cc -E runs the code through the compiler's parser,
2742   # not just through cpp. "Syntax error" is here to catch this case.
2743   cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2749 #ifdef __STDC__
2750 # include <limits.h>
2751 #else
2752 # include <assert.h>
2753 #endif
2754                      Syntax error
2755 _ACEOF
2756 if { (ac_try="$ac_cpp conftest.$ac_ext"
2757 case "(($ac_try" in
2758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759   *) ac_try_echo=$ac_try;;
2760 esac
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2763   ac_status=$?
2764   grep -v '^ *+' conftest.er1 >conftest.err
2765   rm -f conftest.er1
2766   cat conftest.err >&5
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); } >/dev/null && {
2769          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2770          test ! -s conftest.err
2771        }; then
2772   :
2773 else
2774   echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2776
2777   # Broken: fails on valid input.
2778 continue
2779 fi
2780
2781 rm -f conftest.err conftest.$ac_ext
2782
2783   # OK, works on sane cases.  Now check whether nonexistent headers
2784   # can be detected and how.
2785   cat >conftest.$ac_ext <<_ACEOF
2786 /* confdefs.h.  */
2787 _ACEOF
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h.  */
2791 #include <ac_nonexistent.h>
2792 _ACEOF
2793 if { (ac_try="$ac_cpp conftest.$ac_ext"
2794 case "(($ac_try" in
2795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796   *) ac_try_echo=$ac_try;;
2797 esac
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2800   ac_status=$?
2801   grep -v '^ *+' conftest.er1 >conftest.err
2802   rm -f conftest.er1
2803   cat conftest.err >&5
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); } >/dev/null && {
2806          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2807          test ! -s conftest.err
2808        }; then
2809   # Broken: success on invalid input.
2810 continue
2811 else
2812   echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2814
2815   # Passes both tests.
2816 ac_preproc_ok=:
2817 break
2818 fi
2819
2820 rm -f conftest.err conftest.$ac_ext
2821
2822 done
2823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2824 rm -f conftest.err conftest.$ac_ext
2825 if $ac_preproc_ok; then
2826   break
2827 fi
2828
2829     done
2830     ac_cv_prog_CXXCPP=$CXXCPP
2831
2832 fi
2833   CXXCPP=$ac_cv_prog_CXXCPP
2834 else
2835   ac_cv_prog_CXXCPP=$CXXCPP
2836 fi
2837 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
2838 echo "${ECHO_T}$CXXCPP" >&6; }
2839 ac_preproc_ok=false
2840 for ac_cxx_preproc_warn_flag in '' yes
2841 do
2842   # Use a header file that comes with gcc, so configuring glibc
2843   # with a fresh cross-compiler works.
2844   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2845   # <limits.h> exists even on freestanding compilers.
2846   # On the NeXT, cc -E runs the code through the compiler's parser,
2847   # not just through cpp. "Syntax error" is here to catch this case.
2848   cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h.  */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h.  */
2854 #ifdef __STDC__
2855 # include <limits.h>
2856 #else
2857 # include <assert.h>
2858 #endif
2859                      Syntax error
2860 _ACEOF
2861 if { (ac_try="$ac_cpp conftest.$ac_ext"
2862 case "(($ac_try" in
2863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864   *) ac_try_echo=$ac_try;;
2865 esac
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2868   ac_status=$?
2869   grep -v '^ *+' conftest.er1 >conftest.err
2870   rm -f conftest.er1
2871   cat conftest.err >&5
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); } >/dev/null && {
2874          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2875          test ! -s conftest.err
2876        }; then
2877   :
2878 else
2879   echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2881
2882   # Broken: fails on valid input.
2883 continue
2884 fi
2885
2886 rm -f conftest.err conftest.$ac_ext
2887
2888   # OK, works on sane cases.  Now check whether nonexistent headers
2889   # can be detected and how.
2890   cat >conftest.$ac_ext <<_ACEOF
2891 /* confdefs.h.  */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h.  */
2896 #include <ac_nonexistent.h>
2897 _ACEOF
2898 if { (ac_try="$ac_cpp conftest.$ac_ext"
2899 case "(($ac_try" in
2900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901   *) ac_try_echo=$ac_try;;
2902 esac
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2905   ac_status=$?
2906   grep -v '^ *+' conftest.er1 >conftest.err
2907   rm -f conftest.er1
2908   cat conftest.err >&5
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); } >/dev/null && {
2911          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2912          test ! -s conftest.err
2913        }; then
2914   # Broken: success on invalid input.
2915 continue
2916 else
2917   echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2919
2920   # Passes both tests.
2921 ac_preproc_ok=:
2922 break
2923 fi
2924
2925 rm -f conftest.err conftest.$ac_ext
2926
2927 done
2928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2929 rm -f conftest.err conftest.$ac_ext
2930 if $ac_preproc_ok; then
2931   :
2932 else
2933   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2934 See \`config.log' for more details." >&5
2935 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2936 See \`config.log' for more details." >&2;}
2937    { (exit 1); exit 1; }; }
2938 fi
2939
2940 ac_ext=c
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945
2946 ac_aux_dir=
2947 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2948   if test -f "$ac_dir/install-sh"; then
2949     ac_aux_dir=$ac_dir
2950     ac_install_sh="$ac_aux_dir/install-sh -c"
2951     break
2952   elif test -f "$ac_dir/install.sh"; then
2953     ac_aux_dir=$ac_dir
2954     ac_install_sh="$ac_aux_dir/install.sh -c"
2955     break
2956   elif test -f "$ac_dir/shtool"; then
2957     ac_aux_dir=$ac_dir
2958     ac_install_sh="$ac_aux_dir/shtool install -c"
2959     break
2960   fi
2961 done
2962 if test -z "$ac_aux_dir"; then
2963   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2964 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2965    { (exit 1); exit 1; }; }
2966 fi
2967
2968 # These three variables are undocumented and unsupported,
2969 # and are intended to be withdrawn in a future Autoconf release.
2970 # They can cause serious problems if a builder's source tree is in a directory
2971 # whose full name contains unusual characters.
2972 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2973 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2974 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2975
2976
2977 # Find a good install program.  We prefer a C program (faster),
2978 # so one script is as good as another.  But avoid the broken or
2979 # incompatible versions:
2980 # SysV /etc/install, /usr/sbin/install
2981 # SunOS /usr/etc/install
2982 # IRIX /sbin/install
2983 # AIX /bin/install
2984 # AmigaOS /C/install, which installs bootblocks on floppy discs
2985 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2988 # OS/2's system install, which has a completely different semantic
2989 # ./install, which can be erroneously created by make from ./install.sh.
2990 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2991 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2992 if test -z "$INSTALL"; then
2993 if test "${ac_cv_path_install+set}" = set; then
2994   echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999   IFS=$as_save_IFS
3000   test -z "$as_dir" && as_dir=.
3001   # Account for people who put trailing slashes in PATH elements.
3002 case $as_dir/ in
3003   ./ | .// | /cC/* | \
3004   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3005   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3006   /usr/ucb/* ) ;;
3007   *)
3008     # OSF1 and SCO ODT 3.0 have their own names for install.
3009     # Don't use installbsd from OSF since it installs stuff as root
3010     # by default.
3011     for ac_prog in ginstall scoinst install; do
3012       for ac_exec_ext in '' $ac_executable_extensions; do
3013         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3014           if test $ac_prog = install &&
3015             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3016             # AIX install.  It has an incompatible calling convention.
3017             :
3018           elif test $ac_prog = install &&
3019             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3020             # program-specific install script used by HP pwplus--don't use.
3021             :
3022           else
3023             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3024             break 3
3025           fi
3026         fi
3027       done
3028     done
3029     ;;
3030 esac
3031 done
3032 IFS=$as_save_IFS
3033
3034
3035 fi
3036   if test "${ac_cv_path_install+set}" = set; then
3037     INSTALL=$ac_cv_path_install
3038   else
3039     # As a last resort, use the slow shell script.  Don't cache a
3040     # value for INSTALL within a source directory, because that will
3041     # break other packages using the cache if that directory is
3042     # removed, or if the value is a relative name.
3043     INSTALL=$ac_install_sh
3044   fi
3045 fi
3046 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3047 echo "${ECHO_T}$INSTALL" >&6; }
3048
3049 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3050 # It thinks the first close brace ends the variable substitution.
3051 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3052
3053 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3054
3055 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3056
3057 if test -n "$ac_tool_prefix"; then
3058   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3062 if test "${ac_cv_prog_RANLIB+set}" = set; then
3063   echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065   if test -n "$RANLIB"; then
3066   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071   IFS=$as_save_IFS
3072   test -z "$as_dir" && as_dir=.
3073   for ac_exec_ext in '' $ac_executable_extensions; do
3074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3077     break 2
3078   fi
3079 done
3080 done
3081 IFS=$as_save_IFS
3082
3083 fi
3084 fi
3085 RANLIB=$ac_cv_prog_RANLIB
3086 if test -n "$RANLIB"; then
3087   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3088 echo "${ECHO_T}$RANLIB" >&6; }
3089 else
3090   { echo "$as_me:$LINENO: result: no" >&5
3091 echo "${ECHO_T}no" >&6; }
3092 fi
3093
3094
3095 fi
3096 if test -z "$ac_cv_prog_RANLIB"; then
3097   ac_ct_RANLIB=$RANLIB
3098   # Extract the first word of "ranlib", so it can be a program name with args.
3099 set dummy ranlib; ac_word=$2
3100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3102 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3103   echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105   if test -n "$ac_ct_RANLIB"; then
3106   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111   IFS=$as_save_IFS
3112   test -z "$as_dir" && as_dir=.
3113   for ac_exec_ext in '' $ac_executable_extensions; do
3114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115     ac_cv_prog_ac_ct_RANLIB="ranlib"
3116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3117     break 2
3118   fi
3119 done
3120 done
3121 IFS=$as_save_IFS
3122
3123 fi
3124 fi
3125 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3126 if test -n "$ac_ct_RANLIB"; then
3127   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3128 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3129 else
3130   { echo "$as_me:$LINENO: result: no" >&5
3131 echo "${ECHO_T}no" >&6; }
3132 fi
3133
3134   if test "x$ac_ct_RANLIB" = x; then
3135     RANLIB=":"
3136   else
3137     case $cross_compiling:$ac_tool_warned in
3138 yes:)
3139 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3140 whose name does not start with the host triplet.  If you think this
3141 configuration is useful to you, please write to autoconf@gnu.org." >&5
3142 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3143 whose name does not start with the host triplet.  If you think this
3144 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3145 ac_tool_warned=yes ;;
3146 esac
3147     RANLIB=$ac_ct_RANLIB
3148   fi
3149 else
3150   RANLIB="$ac_cv_prog_RANLIB"
3151 fi
3152
3153
3154 # Extract the first word of "strip", so it can be a program name with args.
3155 set dummy strip; ac_word=$2
3156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3158 if test "${ac_cv_prog_STRIP+set}" = set; then
3159   echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161   if test -n "$STRIP"; then
3162   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167   IFS=$as_save_IFS
3168   test -z "$as_dir" && as_dir=.
3169   for ac_exec_ext in '' $ac_executable_extensions; do
3170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171     ac_cv_prog_STRIP="strip"
3172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173     break 2
3174   fi
3175 done
3176 done
3177 IFS=$as_save_IFS
3178
3179   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3180 fi
3181 fi
3182 STRIP=$ac_cv_prog_STRIP
3183 if test -n "$STRIP"; then
3184   { echo "$as_me:$LINENO: result: $STRIP" >&5
3185 echo "${ECHO_T}$STRIP" >&6; }
3186 else
3187   { echo "$as_me:$LINENO: result: no" >&5
3188 echo "${ECHO_T}no" >&6; }
3189 fi
3190
3191
3192
3193
3194 # Check whether --enable-shared was given.
3195 if test "${enable_shared+set}" = set; then
3196   enableval=$enable_shared; p=${PACKAGE-default}
3197 case $enableval in
3198 yes) enable_shared=yes ;;
3199 no) enable_shared=no ;;
3200 *)
3201   enable_shared=no
3202   # Look at the argument we got.  We use all the common list separators.
3203   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3204   for pkg in $enableval; do
3205     if test "X$pkg" = "X$p"; then
3206       enable_shared=yes
3207     fi
3208   done
3209   IFS="$ac_save_ifs"
3210   ;;
3211 esac
3212 else
3213   enable_shared=yes
3214 fi
3215
3216 # Check whether --enable-static was given.
3217 if test "${enable_static+set}" = set; then
3218   enableval=$enable_static; p=${PACKAGE-default}
3219 case $enableval in
3220 yes) enable_static=yes ;;
3221 no) enable_static=no ;;
3222 *)
3223   enable_static=no
3224   # Look at the argument we got.  We use all the common list separators.
3225   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3226   for pkg in $enableval; do
3227     if test "X$pkg" = "X$p"; then
3228       enable_static=yes
3229     fi
3230   done
3231   IFS="$ac_save_ifs"
3232   ;;
3233 esac
3234 else
3235   enable_static=yes
3236 fi
3237
3238 # Check whether --enable-fast-install was given.
3239 if test "${enable_fast_install+set}" = set; then
3240   enableval=$enable_fast_install; p=${PACKAGE-default}
3241 case $enableval in
3242 yes) enable_fast_install=yes ;;
3243 no) enable_fast_install=no ;;
3244 *)
3245   enable_fast_install=no
3246   # Look at the argument we got.  We use all the common list separators.
3247   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3248   for pkg in $enableval; do
3249     if test "X$pkg" = "X$p"; then
3250       enable_fast_install=yes
3251     fi
3252   done
3253   IFS="$ac_save_ifs"
3254   ;;
3255 esac
3256 else
3257   enable_fast_install=yes
3258 fi
3259
3260 # Make sure we can run config.sub.
3261 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3262   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3263 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3264    { (exit 1); exit 1; }; }
3265
3266 { echo "$as_me:$LINENO: checking build system type" >&5
3267 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3268 if test "${ac_cv_build+set}" = set; then
3269   echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271   ac_build_alias=$build_alias
3272 test "x$ac_build_alias" = x &&
3273   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3274 test "x$ac_build_alias" = x &&
3275   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3276 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3277    { (exit 1); exit 1; }; }
3278 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3279   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3280 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3281    { (exit 1); exit 1; }; }
3282
3283 fi
3284 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3285 echo "${ECHO_T}$ac_cv_build" >&6; }
3286 case $ac_cv_build in
3287 *-*-*) ;;
3288 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3289 echo "$as_me: error: invalid value of canonical build" >&2;}
3290    { (exit 1); exit 1; }; };;
3291 esac
3292 build=$ac_cv_build
3293 ac_save_IFS=$IFS; IFS='-'
3294 set x $ac_cv_build
3295 shift
3296 build_cpu=$1
3297 build_vendor=$2
3298 shift; shift
3299 # Remember, the first character of IFS is used to create $*,
3300 # except with old shells:
3301 build_os=$*
3302 IFS=$ac_save_IFS
3303 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3304
3305
3306 { echo "$as_me:$LINENO: checking host system type" >&5
3307 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3308 if test "${ac_cv_host+set}" = set; then
3309   echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311   if test "x$host_alias" = x; then
3312   ac_cv_host=$ac_cv_build
3313 else
3314   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3315     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3316 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3317    { (exit 1); exit 1; }; }
3318 fi
3319
3320 fi
3321 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3322 echo "${ECHO_T}$ac_cv_host" >&6; }
3323 case $ac_cv_host in
3324 *-*-*) ;;
3325 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3326 echo "$as_me: error: invalid value of canonical host" >&2;}
3327    { (exit 1); exit 1; }; };;
3328 esac
3329 host=$ac_cv_host
3330 ac_save_IFS=$IFS; IFS='-'
3331 set x $ac_cv_host
3332 shift
3333 host_cpu=$1
3334 host_vendor=$2
3335 shift; shift
3336 # Remember, the first character of IFS is used to create $*,
3337 # except with old shells:
3338 host_os=$*
3339 IFS=$ac_save_IFS
3340 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3341
3342
3343 ac_ext=c
3344 ac_cpp='$CPP $CPPFLAGS'
3345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348 if test -n "$ac_tool_prefix"; then
3349   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3350 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3353 if test "${ac_cv_prog_CC+set}" = set; then
3354   echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356   if test -n "$CC"; then
3357   ac_cv_prog_CC="$CC" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362   IFS=$as_save_IFS
3363   test -z "$as_dir" && as_dir=.
3364   for ac_exec_ext in '' $ac_executable_extensions; do
3365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3366     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3368     break 2
3369   fi
3370 done
3371 done
3372 IFS=$as_save_IFS
3373
3374 fi
3375 fi
3376 CC=$ac_cv_prog_CC
3377 if test -n "$CC"; then
3378   { echo "$as_me:$LINENO: result: $CC" >&5
3379 echo "${ECHO_T}$CC" >&6; }
3380 else
3381   { echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6; }
3383 fi
3384
3385
3386 fi
3387 if test -z "$ac_cv_prog_CC"; then
3388   ac_ct_CC=$CC
3389   # Extract the first word of "gcc", so it can be a program name with args.
3390 set dummy gcc; ac_word=$2
3391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3393 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3394   echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396   if test -n "$ac_ct_CC"; then
3397   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402   IFS=$as_save_IFS
3403   test -z "$as_dir" && as_dir=.
3404   for ac_exec_ext in '' $ac_executable_extensions; do
3405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3406     ac_cv_prog_ac_ct_CC="gcc"
3407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3408     break 2
3409   fi
3410 done
3411 done
3412 IFS=$as_save_IFS
3413
3414 fi
3415 fi
3416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3417 if test -n "$ac_ct_CC"; then
3418   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3419 echo "${ECHO_T}$ac_ct_CC" >&6; }
3420 else
3421   { echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6; }
3423 fi
3424
3425   if test "x$ac_ct_CC" = x; then
3426     CC=""
3427   else
3428     case $cross_compiling:$ac_tool_warned in
3429 yes:)
3430 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3431 whose name does not start with the host triplet.  If you think this
3432 configuration is useful to you, please write to autoconf@gnu.org." >&5
3433 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3434 whose name does not start with the host triplet.  If you think this
3435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3436 ac_tool_warned=yes ;;
3437 esac
3438     CC=$ac_ct_CC
3439   fi
3440 else
3441   CC="$ac_cv_prog_CC"
3442 fi
3443
3444 if test -z "$CC"; then
3445           if test -n "$ac_tool_prefix"; then
3446     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3447 set dummy ${ac_tool_prefix}cc; ac_word=$2
3448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3450 if test "${ac_cv_prog_CC+set}" = set; then
3451   echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453   if test -n "$CC"; then
3454   ac_cv_prog_CC="$CC" # Let the user override the test.
3455 else
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH
3458 do
3459   IFS=$as_save_IFS
3460   test -z "$as_dir" && as_dir=.
3461   for ac_exec_ext in '' $ac_executable_extensions; do
3462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3463     ac_cv_prog_CC="${ac_tool_prefix}cc"
3464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3465     break 2
3466   fi
3467 done
3468 done
3469 IFS=$as_save_IFS
3470
3471 fi
3472 fi
3473 CC=$ac_cv_prog_CC
3474 if test -n "$CC"; then
3475   { echo "$as_me:$LINENO: result: $CC" >&5
3476 echo "${ECHO_T}$CC" >&6; }
3477 else
3478   { echo "$as_me:$LINENO: result: no" >&5
3479 echo "${ECHO_T}no" >&6; }
3480 fi
3481
3482
3483   fi
3484 fi
3485 if test -z "$CC"; then
3486   # Extract the first word of "cc", so it can be a program name with args.
3487 set dummy cc; ac_word=$2
3488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3490 if test "${ac_cv_prog_CC+set}" = set; then
3491   echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493   if test -n "$CC"; then
3494   ac_cv_prog_CC="$CC" # Let the user override the test.
3495 else
3496   ac_prog_rejected=no
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3499 do
3500   IFS=$as_save_IFS
3501   test -z "$as_dir" && as_dir=.
3502   for ac_exec_ext in '' $ac_executable_extensions; do
3503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3504     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3505        ac_prog_rejected=yes
3506        continue
3507      fi
3508     ac_cv_prog_CC="cc"
3509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510     break 2
3511   fi
3512 done
3513 done
3514 IFS=$as_save_IFS
3515
3516 if test $ac_prog_rejected = yes; then
3517   # We found a bogon in the path, so make sure we never use it.
3518   set dummy $ac_cv_prog_CC
3519   shift
3520   if test $# != 0; then
3521     # We chose a different compiler from the bogus one.
3522     # However, it has the same basename, so the bogon will be chosen
3523     # first if we set CC to just the basename; use the full file name.
3524     shift
3525     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3526   fi
3527 fi
3528 fi
3529 fi
3530 CC=$ac_cv_prog_CC
3531 if test -n "$CC"; then
3532   { echo "$as_me:$LINENO: result: $CC" >&5
3533 echo "${ECHO_T}$CC" >&6; }
3534 else
3535   { echo "$as_me:$LINENO: result: no" >&5
3536 echo "${ECHO_T}no" >&6; }
3537 fi
3538
3539
3540 fi
3541 if test -z "$CC"; then
3542   if test -n "$ac_tool_prefix"; then
3543   for ac_prog in cl.exe
3544   do
3545     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3546 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3549 if test "${ac_cv_prog_CC+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   if test -n "$CC"; then
3553   ac_cv_prog_CC="$CC" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558   IFS=$as_save_IFS
3559   test -z "$as_dir" && as_dir=.
3560   for ac_exec_ext in '' $ac_executable_extensions; do
3561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564     break 2
3565   fi
3566 done
3567 done
3568 IFS=$as_save_IFS
3569
3570 fi
3571 fi
3572 CC=$ac_cv_prog_CC
3573 if test -n "$CC"; then
3574   { echo "$as_me:$LINENO: result: $CC" >&5
3575 echo "${ECHO_T}$CC" >&6; }
3576 else
3577   { echo "$as_me:$LINENO: result: no" >&5
3578 echo "${ECHO_T}no" >&6; }
3579 fi
3580
3581
3582     test -n "$CC" && break
3583   done
3584 fi
3585 if test -z "$CC"; then
3586   ac_ct_CC=$CC
3587   for ac_prog in cl.exe
3588 do
3589   # Extract the first word of "$ac_prog", so it can be a program name with args.
3590 set dummy $ac_prog; ac_word=$2
3591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596   if test -n "$ac_ct_CC"; then
3597   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3598 else
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3601 do
3602   IFS=$as_save_IFS
3603   test -z "$as_dir" && as_dir=.
3604   for ac_exec_ext in '' $ac_executable_extensions; do
3605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606     ac_cv_prog_ac_ct_CC="$ac_prog"
3607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3608     break 2
3609   fi
3610 done
3611 done
3612 IFS=$as_save_IFS
3613
3614 fi
3615 fi
3616 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3617 if test -n "$ac_ct_CC"; then
3618   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3619 echo "${ECHO_T}$ac_ct_CC" >&6; }
3620 else
3621   { echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6; }
3623 fi
3624
3625
3626   test -n "$ac_ct_CC" && break
3627 done
3628
3629   if test "x$ac_ct_CC" = x; then
3630     CC=""
3631   else
3632     case $cross_compiling:$ac_tool_warned in
3633 yes:)
3634 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3635 whose name does not start with the host triplet.  If you think this
3636 configuration is useful to you, please write to autoconf@gnu.org." >&5
3637 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3638 whose name does not start with the host triplet.  If you think this
3639 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3640 ac_tool_warned=yes ;;
3641 esac
3642     CC=$ac_ct_CC
3643   fi
3644 fi
3645
3646 fi
3647
3648
3649 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3650 See \`config.log' for more details." >&5
3651 echo "$as_me: error: no acceptable C compiler found in \$PATH
3652 See \`config.log' for more details." >&2;}
3653    { (exit 1); exit 1; }; }
3654
3655 # Provide some information about the compiler.
3656 echo "$as_me:$LINENO: checking for C compiler version" >&5
3657 ac_compiler=`set X $ac_compile; echo $2`
3658 { (ac_try="$ac_compiler --version >&5"
3659 case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664   (eval "$ac_compiler --version >&5") 2>&5
3665   ac_status=$?
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); }
3668 { (ac_try="$ac_compiler -v >&5"
3669 case "(($ac_try" in
3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671   *) ac_try_echo=$ac_try;;
3672 esac
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674   (eval "$ac_compiler -v >&5") 2>&5
3675   ac_status=$?
3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); }
3678 { (ac_try="$ac_compiler -V >&5"
3679 case "(($ac_try" in
3680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681   *) ac_try_echo=$ac_try;;
3682 esac
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684   (eval "$ac_compiler -V >&5") 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); }
3688
3689 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3690 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3691 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3692   echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694   cat >conftest.$ac_ext <<_ACEOF
3695 /* confdefs.h.  */
3696 _ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h.  */
3700
3701 int
3702 main ()
3703 {
3704 #ifndef __GNUC__
3705        choke me
3706 #endif
3707
3708   ;
3709   return 0;
3710 }
3711 _ACEOF
3712 rm -f conftest.$ac_objext
3713 if { (ac_try="$ac_compile"
3714 case "(($ac_try" in
3715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716   *) ac_try_echo=$ac_try;;
3717 esac
3718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719   (eval "$ac_compile") 2>conftest.er1
3720   ac_status=$?
3721   grep -v '^ *+' conftest.er1 >conftest.err
3722   rm -f conftest.er1
3723   cat conftest.err >&5
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); } && {
3726          test -z "$ac_c_werror_flag" ||
3727          test ! -s conftest.err
3728        } && test -s conftest.$ac_objext; then
3729   ac_compiler_gnu=yes
3730 else
3731   echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734         ac_compiler_gnu=no
3735 fi
3736
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3739
3740 fi
3741 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3742 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3743 GCC=`test $ac_compiler_gnu = yes && echo yes`
3744 ac_test_CFLAGS=${CFLAGS+set}
3745 ac_save_CFLAGS=$CFLAGS
3746 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3747 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3748 if test "${ac_cv_prog_cc_g+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   ac_save_c_werror_flag=$ac_c_werror_flag
3752    ac_c_werror_flag=yes
3753    ac_cv_prog_cc_g=no
3754    CFLAGS="-g"
3755    cat >conftest.$ac_ext <<_ACEOF
3756 /* confdefs.h.  */
3757 _ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h.  */
3761
3762 int
3763 main ()
3764 {
3765
3766   ;
3767   return 0;
3768 }
3769 _ACEOF
3770 rm -f conftest.$ac_objext
3771 if { (ac_try="$ac_compile"
3772 case "(($ac_try" in
3773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774   *) ac_try_echo=$ac_try;;
3775 esac
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777   (eval "$ac_compile") 2>conftest.er1
3778   ac_status=$?
3779   grep -v '^ *+' conftest.er1 >conftest.err
3780   rm -f conftest.er1
3781   cat conftest.err >&5
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); } && {
3784          test -z "$ac_c_werror_flag" ||
3785          test ! -s conftest.err
3786        } && test -s conftest.$ac_objext; then
3787   ac_cv_prog_cc_g=yes
3788 else
3789   echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3791
3792         CFLAGS=""
3793       cat >conftest.$ac_ext <<_ACEOF
3794 /* confdefs.h.  */
3795 _ACEOF
3796 cat confdefs.h >>conftest.$ac_ext
3797 cat >>conftest.$ac_ext <<_ACEOF
3798 /* end confdefs.h.  */
3799
3800 int
3801 main ()
3802 {
3803
3804   ;
3805   return 0;
3806 }
3807 _ACEOF
3808 rm -f conftest.$ac_objext
3809 if { (ac_try="$ac_compile"
3810 case "(($ac_try" in
3811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812   *) ac_try_echo=$ac_try;;
3813 esac
3814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3815   (eval "$ac_compile") 2>conftest.er1
3816   ac_status=$?
3817   grep -v '^ *+' conftest.er1 >conftest.err
3818   rm -f conftest.er1
3819   cat conftest.err >&5
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); } && {
3822          test -z "$ac_c_werror_flag" ||
3823          test ! -s conftest.err
3824        } && test -s conftest.$ac_objext; then
3825   :
3826 else
3827   echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3829
3830         ac_c_werror_flag=$ac_save_c_werror_flag
3831          CFLAGS="-g"
3832          cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h.  */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h.  */
3838
3839 int
3840 main ()
3841 {
3842
3843   ;
3844   return 0;
3845 }
3846 _ACEOF
3847 rm -f conftest.$ac_objext
3848 if { (ac_try="$ac_compile"
3849 case "(($ac_try" in
3850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851   *) ac_try_echo=$ac_try;;
3852 esac
3853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854   (eval "$ac_compile") 2>conftest.er1
3855   ac_status=$?
3856   grep -v '^ *+' conftest.er1 >conftest.err
3857   rm -f conftest.er1
3858   cat conftest.err >&5
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); } && {
3861          test -z "$ac_c_werror_flag" ||
3862          test ! -s conftest.err
3863        } && test -s conftest.$ac_objext; then
3864   ac_cv_prog_cc_g=yes
3865 else
3866   echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3868
3869
3870 fi
3871
3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873 fi
3874
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 fi
3877
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879    ac_c_werror_flag=$ac_save_c_werror_flag
3880 fi
3881 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3882 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3883 if test "$ac_test_CFLAGS" = set; then
3884   CFLAGS=$ac_save_CFLAGS
3885 elif test $ac_cv_prog_cc_g = yes; then
3886   if test "$GCC" = yes; then
3887     CFLAGS="-g -O2"
3888   else
3889     CFLAGS="-g"
3890   fi
3891 else
3892   if test "$GCC" = yes; then
3893     CFLAGS="-O2"
3894   else
3895     CFLAGS=
3896   fi
3897 fi
3898 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3899 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3900 if test "${ac_cv_prog_cc_c89+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   ac_cv_prog_cc_c89=no
3904 ac_save_CC=$CC
3905 cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h.  */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h.  */
3911 #include <stdarg.h>
3912 #include <stdio.h>
3913 #include <sys/types.h>
3914 #include <sys/stat.h>
3915 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3916 struct buf { int x; };
3917 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3918 static char *e (p, i)
3919      char **p;
3920      int i;
3921 {
3922   return p[i];
3923 }
3924 static char *f (char * (*g) (char **, int), char **p, ...)
3925 {
3926   char *s;
3927   va_list v;
3928   va_start (v,p);
3929   s = g (p, va_arg (v,int));
3930   va_end (v);
3931   return s;
3932 }
3933
3934 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3935    function prototypes and stuff, but not '\xHH' hex character constants.
3936    These don't provoke an error unfortunately, instead are silently treated
3937    as 'x'.  The following induces an error, until -std is added to get
3938    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3939    array size at least.  It's necessary to write '\x00'==0 to get something
3940    that's true only with -std.  */
3941 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3942
3943 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3944    inside strings and character constants.  */
3945 #define FOO(x) 'x'
3946 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3947
3948 int test (int i, double x);
3949 struct s1 {int (*f) (int a);};
3950 struct s2 {int (*f) (double a);};
3951 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3952 int argc;
3953 char **argv;
3954 int
3955 main ()
3956 {
3957 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3958   ;
3959   return 0;
3960 }
3961 _ACEOF
3962 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3963         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3964 do
3965   CC="$ac_save_CC $ac_arg"
3966   rm -f conftest.$ac_objext
3967 if { (ac_try="$ac_compile"
3968 case "(($ac_try" in
3969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970   *) ac_try_echo=$ac_try;;
3971 esac
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973   (eval "$ac_compile") 2>conftest.er1
3974   ac_status=$?
3975   grep -v '^ *+' conftest.er1 >conftest.err
3976   rm -f conftest.er1
3977   cat conftest.err >&5
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); } && {
3980          test -z "$ac_c_werror_flag" ||
3981          test ! -s conftest.err
3982        } && test -s conftest.$ac_objext; then
3983   ac_cv_prog_cc_c89=$ac_arg
3984 else
3985   echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3987
3988
3989 fi
3990
3991 rm -f core conftest.err conftest.$ac_objext
3992   test "x$ac_cv_prog_cc_c89" != "xno" && break
3993 done
3994 rm -f conftest.$ac_ext
3995 CC=$ac_save_CC
3996
3997 fi
3998 # AC_CACHE_VAL
3999 case "x$ac_cv_prog_cc_c89" in
4000   x)
4001     { echo "$as_me:$LINENO: result: none needed" >&5
4002 echo "${ECHO_T}none needed" >&6; } ;;
4003   xno)
4004     { echo "$as_me:$LINENO: result: unsupported" >&5
4005 echo "${ECHO_T}unsupported" >&6; } ;;
4006   *)
4007     CC="$CC $ac_cv_prog_cc_c89"
4008     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4009 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4010 esac
4011
4012
4013 ac_ext=c
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4018
4019 # Find the correct PATH separator.  Usually this is `:', but
4020 # DJGPP uses `;' like DOS.
4021 if test "X${PATH_SEPARATOR+set}" != Xset; then
4022   UNAME=${UNAME-`uname 2>/dev/null`}
4023   case X$UNAME in
4024     *-DOS) lt_cv_sys_path_separator=';' ;;
4025     *)     lt_cv_sys_path_separator=':' ;;
4026   esac
4027   PATH_SEPARATOR=$lt_cv_sys_path_separator
4028 fi
4029
4030
4031 # Check whether --with-gnu-ld was given.
4032 if test "${with_gnu_ld+set}" = set; then
4033   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4034 else
4035   with_gnu_ld=no
4036 fi
4037
4038 ac_prog=ld
4039 if test "$GCC" = yes; then
4040   # Check if gcc -print-prog-name=ld gives a path.
4041   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4042 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
4043   case $host in
4044   *-*-mingw*)
4045     # gcc leaves a trailing carriage return which upsets mingw
4046     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4047   *)
4048     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4049   esac
4050   case $ac_prog in
4051     # Accept absolute paths.
4052     [\\/]* | [A-Za-z]:[\\/]*)
4053       re_direlt='/[^/][^/]*/\.\./'
4054       # Canonicalize the path of ld
4055       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4056       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4057         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4058       done
4059       test -z "$LD" && LD="$ac_prog"
4060       ;;
4061   "")
4062     # If it fails, then pretend we aren't using GCC.
4063     ac_prog=ld
4064     ;;
4065   *)
4066     # If it is relative, then search for the first ld in PATH.
4067     with_gnu_ld=unknown
4068     ;;
4069   esac
4070 elif test "$with_gnu_ld" = yes; then
4071   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4072 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4073 else
4074   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4075 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4076 fi
4077 if test "${lt_cv_path_LD+set}" = set; then
4078   echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080   if test -z "$LD"; then
4081   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4082   for ac_dir in $PATH; do
4083     test -z "$ac_dir" && ac_dir=.
4084     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4085       lt_cv_path_LD="$ac_dir/$ac_prog"
4086       # Check to see if the program is GNU ld.  I'd rather use --version,
4087       # but apparently some GNU ld's only accept -v.
4088       # Break only if it was the GNU/non-GNU ld that we prefer.
4089       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4090         test "$with_gnu_ld" != no && break
4091       else
4092         test "$with_gnu_ld" != yes && break
4093       fi
4094     fi
4095   done
4096   IFS="$ac_save_ifs"
4097 else
4098   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4099 fi
4100 fi
4101
4102 LD="$lt_cv_path_LD"
4103 if test -n "$LD"; then
4104   { echo "$as_me:$LINENO: result: $LD" >&5
4105 echo "${ECHO_T}$LD" >&6; }
4106 else
4107   { echo "$as_me:$LINENO: result: no" >&5
4108 echo "${ECHO_T}no" >&6; }
4109 fi
4110 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4111 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4112    { (exit 1); exit 1; }; }
4113 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4114 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4115 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4116   echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4119 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4120   lt_cv_prog_gnu_ld=yes
4121 else
4122   lt_cv_prog_gnu_ld=no
4123 fi
4124 fi
4125 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4126 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4127 with_gnu_ld=$lt_cv_prog_gnu_ld
4128
4129
4130 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4131 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4132 if test "${lt_cv_ld_reload_flag+set}" = set; then
4133   echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135   lt_cv_ld_reload_flag='-r'
4136 fi
4137 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4138 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4139 reload_flag=$lt_cv_ld_reload_flag
4140 test -n "$reload_flag" && reload_flag=" $reload_flag"
4141
4142 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4143 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4144 if test "${lt_cv_path_NM+set}" = set; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147   if test -n "$NM"; then
4148   # Let the user override the test.
4149   lt_cv_path_NM="$NM"
4150 else
4151   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4152   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4153     test -z "$ac_dir" && ac_dir=.
4154     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4155     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4156       # Check to see if the nm accepts a BSD-compat flag.
4157       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4158       #   nm: unknown option "B" ignored
4159       # Tru64's nm complains that /dev/null is an invalid object file
4160       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4161         lt_cv_path_NM="$tmp_nm -B"
4162         break
4163       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4164         lt_cv_path_NM="$tmp_nm -p"
4165         break
4166       else
4167         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4168         continue # so that we can try to find one that supports BSD flags
4169       fi
4170     fi
4171   done
4172   IFS="$ac_save_ifs"
4173   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4174 fi
4175 fi
4176
4177 NM="$lt_cv_path_NM"
4178 { echo "$as_me:$LINENO: result: $NM" >&5
4179 echo "${ECHO_T}$NM" >&6; }
4180
4181 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4182 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4183 LN_S=$as_ln_s
4184 if test "$LN_S" = "ln -s"; then
4185   { echo "$as_me:$LINENO: result: yes" >&5
4186 echo "${ECHO_T}yes" >&6; }
4187 else
4188   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4189 echo "${ECHO_T}no, using $LN_S" >&6; }
4190 fi
4191
4192 { echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4193 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6; }
4194 if test "${lt_cv_deplibs_check_method+set}" = set; then
4195   echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197   lt_cv_file_magic_cmd='$MAGIC_CMD'
4198 lt_cv_file_magic_test_file=
4199 lt_cv_deplibs_check_method='unknown'
4200 # Need to set the preceding variable on all platforms that support
4201 # interlibrary dependencies.
4202 # 'none' -- dependencies not supported.
4203 # `unknown' -- same as none, but documents that we really don't know.
4204 # 'pass_all' -- all dependencies passed with no checks.
4205 # 'test_compile' -- check by making test program.
4206 # 'file_magic [[regex]]' -- check by looking for files in library path
4207 # which responds to the $file_magic_cmd with a given egrep regex.
4208 # If you have `file' or equivalent on your system and you're not sure
4209 # whether `pass_all' will *always* work, you probably want this one.
4210
4211 case $host_os in
4212 aix4* | aix5*)
4213   lt_cv_deplibs_check_method=pass_all
4214   ;;
4215
4216 beos*)
4217   lt_cv_deplibs_check_method=pass_all
4218   ;;
4219
4220 bsdi4*)
4221   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4222   lt_cv_file_magic_cmd='/usr/bin/file -L'
4223   lt_cv_file_magic_test_file=/shlib/libc.so
4224   ;;
4225
4226 cygwin* | mingw* | pw32*)
4227   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4228   lt_cv_file_magic_cmd='$OBJDUMP -f'
4229   ;;
4230
4231 darwin* | rhapsody*)
4232   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4233   lt_cv_file_magic_cmd='/usr/bin/file -L'
4234   case "$host_os" in
4235   rhapsody* | darwin1.[012])
4236     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4237     ;;
4238   *) # Darwin 1.3 on
4239     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4240     ;;
4241   esac
4242   ;;
4243
4244 freebsd*)
4245   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4246     case $host_cpu in
4247     i*86 )
4248       # Not sure whether the presence of OpenBSD here was a mistake.
4249       # Let's accept both of them until this is cleared up.
4250       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4251       lt_cv_file_magic_cmd=/usr/bin/file
4252       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4253       ;;
4254     esac
4255   else
4256     lt_cv_deplibs_check_method=pass_all
4257   fi
4258   ;;
4259
4260 gnu*)
4261   lt_cv_deplibs_check_method=pass_all
4262   ;;
4263
4264 hpux10.20*|hpux11*)
4265   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4266   lt_cv_file_magic_cmd=/usr/bin/file
4267   lt_cv_file_magic_test_file=/usr/lib/libc.sl
4268   ;;
4269
4270 irix5* | irix6* | nonstopux*)
4271   case $host_os in
4272   irix5* | nonstopux*)
4273     # this will be overridden with pass_all, but let us keep it just in case
4274     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4275     ;;
4276   *)
4277     case $LD in
4278     *-32|*"-32 ") libmagic=32-bit;;
4279     *-n32|*"-n32 ") libmagic=N32;;
4280     *-64|*"-64 ") libmagic=64-bit;;
4281     *) libmagic=never-match;;
4282     esac
4283     # this will be overridden with pass_all, but let us keep it just in case
4284     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4285     ;;
4286   esac
4287   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4288   lt_cv_deplibs_check_method=pass_all
4289   ;;
4290
4291 # This must be Linux ELF.
4292 linux-gnu*)
4293   case $host_cpu in
4294   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
4295     lt_cv_deplibs_check_method=pass_all ;;
4296   *)
4297     # glibc up to 2.1.1 does not perform some relocations on ARM
4298     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4299   esac
4300   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4301   ;;
4302
4303 netbsd*)
4304   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4305     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4306   else
4307     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4308   fi
4309   ;;
4310
4311 newos6*)
4312   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4313   lt_cv_file_magic_cmd=/usr/bin/file
4314   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4315   ;;
4316
4317 openbsd*)
4318   lt_cv_file_magic_cmd=/usr/bin/file
4319   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4320   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4321     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4322   else
4323     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4324   fi
4325   ;;
4326
4327 osf3* | osf4* | osf5*)
4328   # this will be overridden with pass_all, but let us keep it just in case
4329   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4330   lt_cv_file_magic_test_file=/shlib/libc.so
4331   lt_cv_deplibs_check_method=pass_all
4332   ;;
4333
4334 sco3.2v5*)
4335   lt_cv_deplibs_check_method=pass_all
4336   ;;
4337
4338 solaris*)
4339   lt_cv_deplibs_check_method=pass_all
4340   lt_cv_file_magic_test_file=/lib/libc.so
4341   ;;
4342
4343 sysv5uw[78]* | sysv4*uw2*)
4344   lt_cv_deplibs_check_method=pass_all
4345   ;;
4346
4347 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4348   case $host_vendor in
4349   motorola)
4350     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4351     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4352     ;;
4353   ncr)
4354     lt_cv_deplibs_check_method=pass_all
4355     ;;
4356   sequent)
4357     lt_cv_file_magic_cmd='/bin/file'
4358     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4359     ;;
4360   sni)
4361     lt_cv_file_magic_cmd='/bin/file'
4362     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4363     lt_cv_file_magic_test_file=/lib/libc.so
4364     ;;
4365   esac
4366   ;;
4367 esac
4368
4369 fi
4370 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4371 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4372 file_magic_cmd=$lt_cv_file_magic_cmd
4373 deplibs_check_method=$lt_cv_deplibs_check_method
4374
4375
4376
4377
4378
4379
4380
4381
4382 # Check for command to grab the raw symbol name followed by C symbol from nm.
4383 { echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4384 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6; }
4385 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4386   echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388
4389 # These are sane defaults that work on at least a few old systems.
4390 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4391
4392 # Character class describing NM global symbol codes.
4393 symcode='[BCDEGRST]'
4394
4395 # Regexp to match symbols that can be accessed directly from C.
4396 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4397
4398 # Transform the above into a raw symbol and a C symbol.
4399 symxfrm='\1 \2\3 \3'
4400
4401 # Transform an extracted symbol line into a proper C declaration
4402 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4403
4404 # Transform an extracted symbol line into symbol name and symbol address
4405 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4406
4407 # Define system-specific variables.
4408 case $host_os in
4409 aix*)
4410   symcode='[BCDT]'
4411   ;;
4412 cygwin* | mingw* | pw32*)
4413   symcode='[ABCDGISTW]'
4414   ;;
4415 hpux*) # Its linker distinguishes data from code symbols
4416   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4417   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4418   ;;
4419 irix* | nonstopux*)
4420   symcode='[BCDEGRST]'
4421   ;;
4422 solaris* | sysv5*)
4423   symcode='[BDT]'
4424   ;;
4425 sysv4)
4426   symcode='[DFNSTU]'
4427   ;;
4428 esac
4429
4430 # Handle CRLF in mingw tool chain
4431 opt_cr=
4432 case $host_os in
4433 mingw*)
4434   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4435   ;;
4436 esac
4437
4438 # If we're using GNU nm, then use its standard symbol codes.
4439 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4440   symcode='[ABCDGISTW]'
4441 fi
4442
4443 # Try without a prefix undercore, then with it.
4444 for ac_symprfx in "" "_"; do
4445
4446   # Write the raw and C identifiers.
4447 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4448
4449   # Check to see that the pipe works correctly.
4450   pipe_works=no
4451   rm -f conftest*
4452   cat > conftest.$ac_ext <<EOF
4453 #ifdef __cplusplus
4454 extern "C" {
4455 #endif
4456 char nm_test_var;
4457 void nm_test_func(){}
4458 #ifdef __cplusplus
4459 }
4460 #endif
4461 int main(){nm_test_var='a';nm_test_func();return(0);}
4462 EOF
4463
4464   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465   (eval $ac_compile) 2>&5
4466   ac_status=$?
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); }; then
4469     # Now try to grab the symbols.
4470     nlist=conftest.nm
4471     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4472   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4473   ac_status=$?
4474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475   (exit $ac_status); } && test -s "$nlist"; then
4476       # Try sorting and uniquifying the output.
4477       if sort "$nlist" | uniq > "$nlist"T; then
4478         mv -f "$nlist"T "$nlist"
4479       else
4480         rm -f "$nlist"T
4481       fi
4482
4483       # Make sure that we snagged all the symbols we need.
4484       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4485         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4486           cat <<EOF > conftest.$ac_ext
4487 #ifdef __cplusplus
4488 extern "C" {
4489 #endif
4490
4491 EOF
4492           # Now generate the symbol file.
4493           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4494
4495           cat <<EOF >> conftest.$ac_ext
4496 #if defined (__STDC__) && __STDC__
4497 # define lt_ptr void *
4498 #else
4499 # define lt_ptr char *
4500 # define const
4501 #endif
4502
4503 /* The mapping between symbol names and symbols. */
4504 const struct {
4505   const char *name;
4506   lt_ptr address;
4507 }
4508 lt_preloaded_symbols[] =
4509 {
4510 EOF
4511           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4512           cat <<\EOF >> conftest.$ac_ext
4513   {0, (lt_ptr) 0}
4514 };
4515
4516 #ifdef __cplusplus
4517 }
4518 #endif
4519 EOF
4520           # Now try linking the two files.
4521           mv conftest.$ac_objext conftstm.$ac_objext
4522           save_LIBS="$LIBS"
4523           save_CFLAGS="$CFLAGS"
4524           LIBS="conftstm.$ac_objext"
4525           CFLAGS="$CFLAGS$no_builtin_flag"
4526           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4527   (eval $ac_link) 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); } && test -s conftest; then
4531             pipe_works=yes
4532           fi
4533           LIBS="$save_LIBS"
4534           CFLAGS="$save_CFLAGS"
4535         else
4536           echo "cannot find nm_test_func in $nlist" >&5
4537         fi
4538       else
4539         echo "cannot find nm_test_var in $nlist" >&5
4540       fi
4541     else
4542       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4543     fi
4544   else
4545     echo "$progname: failed program was:" >&5
4546     cat conftest.$ac_ext >&5
4547   fi
4548   rm -f conftest* conftst*
4549
4550   # Do not use the global_symbol_pipe unless it works.
4551   if test "$pipe_works" = yes; then
4552     break
4553   else
4554     lt_cv_sys_global_symbol_pipe=
4555   fi
4556 done
4557
4558 fi
4559
4560 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4561 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4562   global_symbol_to_cdecl=
4563   global_symbol_to_c_name_address=
4564 else
4565   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4566   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4567 fi
4568 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4569 then
4570   { echo "$as_me:$LINENO: result: failed" >&5
4571 echo "${ECHO_T}failed" >&6; }
4572 else
4573   { echo "$as_me:$LINENO: result: ok" >&5
4574 echo "${ECHO_T}ok" >&6; }
4575 fi
4576
4577 ac_ext=c
4578 ac_cpp='$CPP $CPPFLAGS'
4579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4583 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4584 # On Suns, sometimes $CPP names a directory.
4585 if test -n "$CPP" && test -d "$CPP"; then
4586   CPP=
4587 fi
4588 if test -z "$CPP"; then
4589   if test "${ac_cv_prog_CPP+set}" = set; then
4590   echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592       # Double quotes because CPP needs to be expanded
4593     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4594     do
4595       ac_preproc_ok=false
4596 for ac_c_preproc_warn_flag in '' yes
4597 do
4598   # Use a header file that comes with gcc, so configuring glibc
4599   # with a fresh cross-compiler works.
4600   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4601   # <limits.h> exists even on freestanding compilers.
4602   # On the NeXT, cc -E runs the code through the compiler's parser,
4603   # not just through cpp. "Syntax error" is here to catch this case.
4604   cat >conftest.$ac_ext <<_ACEOF
4605 /* confdefs.h.  */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h.  */
4610 #ifdef __STDC__
4611 # include <limits.h>
4612 #else
4613 # include <assert.h>
4614 #endif
4615                      Syntax error
4616 _ACEOF
4617 if { (ac_try="$ac_cpp conftest.$ac_ext"
4618 case "(($ac_try" in
4619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620   *) ac_try_echo=$ac_try;;
4621 esac
4622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4624   ac_status=$?
4625   grep -v '^ *+' conftest.er1 >conftest.err
4626   rm -f conftest.er1
4627   cat conftest.err >&5
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); } >/dev/null && {
4630          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4631          test ! -s conftest.err
4632        }; then
4633   :
4634 else
4635   echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4637
4638   # Broken: fails on valid input.
4639 continue
4640 fi
4641
4642 rm -f conftest.err conftest.$ac_ext
4643
4644   # OK, works on sane cases.  Now check whether nonexistent headers
4645   # can be detected and how.
4646   cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h.  */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h.  */
4652 #include <ac_nonexistent.h>
4653 _ACEOF
4654 if { (ac_try="$ac_cpp conftest.$ac_ext"
4655 case "(($ac_try" in
4656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657   *) ac_try_echo=$ac_try;;
4658 esac
4659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4661   ac_status=$?
4662   grep -v '^ *+' conftest.er1 >conftest.err
4663   rm -f conftest.er1
4664   cat conftest.err >&5
4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); } >/dev/null && {
4667          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4668          test ! -s conftest.err
4669        }; then
4670   # Broken: success on invalid input.
4671 continue
4672 else
4673   echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4675
4676   # Passes both tests.
4677 ac_preproc_ok=:
4678 break
4679 fi
4680
4681 rm -f conftest.err conftest.$ac_ext
4682
4683 done
4684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4685 rm -f conftest.err conftest.$ac_ext
4686 if $ac_preproc_ok; then
4687   break
4688 fi
4689
4690     done
4691     ac_cv_prog_CPP=$CPP
4692
4693 fi
4694   CPP=$ac_cv_prog_CPP
4695 else
4696   ac_cv_prog_CPP=$CPP
4697 fi
4698 { echo "$as_me:$LINENO: result: $CPP" >&5
4699 echo "${ECHO_T}$CPP" >&6; }
4700 ac_preproc_ok=false
4701 for ac_c_preproc_warn_flag in '' yes
4702 do
4703   # Use a header file that comes with gcc, so configuring glibc
4704   # with a fresh cross-compiler works.
4705   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4706   # <limits.h> exists even on freestanding compilers.
4707   # On the NeXT, cc -E runs the code through the compiler's parser,
4708   # not just through cpp. "Syntax error" is here to catch this case.
4709   cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h.  */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h.  */
4715 #ifdef __STDC__
4716 # include <limits.h>
4717 #else
4718 # include <assert.h>
4719 #endif
4720                      Syntax error
4721 _ACEOF
4722 if { (ac_try="$ac_cpp conftest.$ac_ext"
4723 case "(($ac_try" in
4724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725   *) ac_try_echo=$ac_try;;
4726 esac
4727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4728   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4729   ac_status=$?
4730   grep -v '^ *+' conftest.er1 >conftest.err
4731   rm -f conftest.er1
4732   cat conftest.err >&5
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); } >/dev/null && {
4735          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4736          test ! -s conftest.err
4737        }; then
4738   :
4739 else
4740   echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
4743   # Broken: fails on valid input.
4744 continue
4745 fi
4746
4747 rm -f conftest.err conftest.$ac_ext
4748
4749   # OK, works on sane cases.  Now check whether nonexistent headers
4750   # can be detected and how.
4751   cat >conftest.$ac_ext <<_ACEOF
4752 /* confdefs.h.  */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h.  */
4757 #include <ac_nonexistent.h>
4758 _ACEOF
4759 if { (ac_try="$ac_cpp conftest.$ac_ext"
4760 case "(($ac_try" in
4761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762   *) ac_try_echo=$ac_try;;
4763 esac
4764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4766   ac_status=$?
4767   grep -v '^ *+' conftest.er1 >conftest.err
4768   rm -f conftest.er1
4769   cat conftest.err >&5
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); } >/dev/null && {
4772          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4773          test ! -s conftest.err
4774        }; then
4775   # Broken: success on invalid input.
4776 continue
4777 else
4778   echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4780
4781   # Passes both tests.
4782 ac_preproc_ok=:
4783 break
4784 fi
4785
4786 rm -f conftest.err conftest.$ac_ext
4787
4788 done
4789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4790 rm -f conftest.err conftest.$ac_ext
4791 if $ac_preproc_ok; then
4792   :
4793 else
4794   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4795 See \`config.log' for more details." >&5
4796 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4797 See \`config.log' for more details." >&2;}
4798    { (exit 1); exit 1; }; }
4799 fi
4800
4801 ac_ext=c
4802 ac_cpp='$CPP $CPPFLAGS'
4803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806
4807
4808 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4809 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4810 if test "${ac_cv_path_GREP+set}" = set; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813   # Extract the first word of "grep ggrep" to use in msg output
4814 if test -z "$GREP"; then
4815 set dummy grep ggrep; ac_prog_name=$2
4816 if test "${ac_cv_path_GREP+set}" = set; then
4817   echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819   ac_path_GREP_found=false
4820 # Loop through the user's path and test for each of PROGNAME-LIST
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4823 do
4824   IFS=$as_save_IFS
4825   test -z "$as_dir" && as_dir=.
4826   for ac_prog in grep ggrep; do
4827   for ac_exec_ext in '' $ac_executable_extensions; do
4828     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4829     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4830     # Check for GNU ac_path_GREP and select it if it is found.
4831   # Check for GNU $ac_path_GREP
4832 case `"$ac_path_GREP" --version 2>&1` in
4833 *GNU*)
4834   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4835 *)
4836   ac_count=0
4837   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4838   while :
4839   do
4840     cat "conftest.in" "conftest.in" >"conftest.tmp"
4841     mv "conftest.tmp" "conftest.in"
4842     cp "conftest.in" "conftest.nl"
4843     echo 'GREP' >> "conftest.nl"
4844     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4845     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4846     ac_count=`expr $ac_count + 1`
4847     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4848       # Best one so far, save it but keep looking for a better one
4849       ac_cv_path_GREP="$ac_path_GREP"
4850       ac_path_GREP_max=$ac_count
4851     fi
4852     # 10*(2^10) chars as input seems more than enough
4853     test $ac_count -gt 10 && break
4854   done
4855   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4856 esac
4857
4858
4859     $ac_path_GREP_found && break 3
4860   done
4861 done
4862
4863 done
4864 IFS=$as_save_IFS
4865
4866
4867 fi
4868
4869 GREP="$ac_cv_path_GREP"
4870 if test -z "$GREP"; then
4871   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4872 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4873    { (exit 1); exit 1; }; }
4874 fi
4875
4876 else
4877   ac_cv_path_GREP=$GREP
4878 fi
4879
4880
4881 fi
4882 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4883 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4884  GREP="$ac_cv_path_GREP"
4885
4886
4887 { echo "$as_me:$LINENO: checking for egrep" >&5
4888 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4889 if test "${ac_cv_path_EGREP+set}" = set; then
4890   echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4893    then ac_cv_path_EGREP="$GREP -E"
4894    else
4895      # Extract the first word of "egrep" to use in msg output
4896 if test -z "$EGREP"; then
4897 set dummy egrep; ac_prog_name=$2
4898 if test "${ac_cv_path_EGREP+set}" = set; then
4899   echo $ECHO_N "(cached) $ECHO_C" >&6
4900 else
4901   ac_path_EGREP_found=false
4902 # Loop through the user's path and test for each of PROGNAME-LIST
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4905 do
4906   IFS=$as_save_IFS
4907   test -z "$as_dir" && as_dir=.
4908   for ac_prog in egrep; do
4909   for ac_exec_ext in '' $ac_executable_extensions; do
4910     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4911     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4912     # Check for GNU ac_path_EGREP and select it if it is found.
4913   # Check for GNU $ac_path_EGREP
4914 case `"$ac_path_EGREP" --version 2>&1` in
4915 *GNU*)
4916   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4917 *)
4918   ac_count=0
4919   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4920   while :
4921   do
4922     cat "conftest.in" "conftest.in" >"conftest.tmp"
4923     mv "conftest.tmp" "conftest.in"
4924     cp "conftest.in" "conftest.nl"
4925     echo 'EGREP' >> "conftest.nl"
4926     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4927     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4928     ac_count=`expr $ac_count + 1`
4929     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4930       # Best one so far, save it but keep looking for a better one
4931       ac_cv_path_EGREP="$ac_path_EGREP"
4932       ac_path_EGREP_max=$ac_count
4933     fi
4934     # 10*(2^10) chars as input seems more than enough
4935     test $ac_count -gt 10 && break
4936   done
4937   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4938 esac
4939
4940
4941     $ac_path_EGREP_found && break 3
4942   done
4943 done
4944
4945 done
4946 IFS=$as_save_IFS
4947
4948
4949 fi
4950
4951 EGREP="$ac_cv_path_EGREP"
4952 if test -z "$EGREP"; then
4953   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4954 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4955    { (exit 1); exit 1; }; }
4956 fi
4957
4958 else
4959   ac_cv_path_EGREP=$EGREP
4960 fi
4961
4962
4963    fi
4964 fi
4965 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4966 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4967  EGREP="$ac_cv_path_EGREP"
4968
4969
4970 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4971 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4972 if test "${ac_cv_header_stdc+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h.  */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h.  */
4981 #include <stdlib.h>
4982 #include <stdarg.h>
4983 #include <string.h>
4984 #include <float.h>
4985
4986 int
4987 main ()
4988 {
4989
4990   ;
4991   return 0;
4992 }
4993 _ACEOF
4994 rm -f conftest.$ac_objext
4995 if { (ac_try="$ac_compile"
4996 case "(($ac_try" in
4997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4998   *) ac_try_echo=$ac_try;;
4999 esac
5000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5001   (eval "$ac_compile") 2>conftest.er1
5002   ac_status=$?
5003   grep -v '^ *+' conftest.er1 >conftest.err
5004   rm -f conftest.er1
5005   cat conftest.err >&5
5006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007   (exit $ac_status); } && {
5008          test -z "$ac_c_werror_flag" ||
5009          test ! -s conftest.err
5010        } && test -s conftest.$ac_objext; then
5011   ac_cv_header_stdc=yes
5012 else
5013   echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5015
5016         ac_cv_header_stdc=no
5017 fi
5018
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020
5021 if test $ac_cv_header_stdc = yes; then
5022   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5023   cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h.  */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h.  */
5029 #include <string.h>
5030
5031 _ACEOF
5032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5033   $EGREP "memchr" >/dev/null 2>&1; then
5034   :
5035 else
5036   ac_cv_header_stdc=no
5037 fi
5038 rm -f conftest*
5039
5040 fi
5041
5042 if test $ac_cv_header_stdc = yes; then
5043   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5044   cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h.  */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h.  */
5050 #include <stdlib.h>
5051
5052 _ACEOF
5053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5054   $EGREP "free" >/dev/null 2>&1; then
5055   :
5056 else
5057   ac_cv_header_stdc=no
5058 fi
5059 rm -f conftest*
5060
5061 fi
5062
5063 if test $ac_cv_header_stdc = yes; then
5064   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5065   if test "$cross_compiling" = yes; then
5066   :
5067 else
5068   cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h.  */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h.  */
5074 #include <ctype.h>
5075 #include <stdlib.h>
5076 #if ((' ' & 0x0FF) == 0x020)
5077 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5078 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5079 #else
5080 # define ISLOWER(c) \
5081                    (('a' <= (c) && (c) <= 'i') \
5082                      || ('j' <= (c) && (c) <= 'r') \
5083                      || ('s' <= (c) && (c) <= 'z'))
5084 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5085 #endif
5086
5087 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5088 int
5089 main ()
5090 {
5091   int i;
5092   for (i = 0; i < 256; i++)
5093     if (XOR (islower (i), ISLOWER (i))
5094         || toupper (i) != TOUPPER (i))
5095       return 2;
5096   return 0;
5097 }
5098 _ACEOF
5099 rm -f conftest$ac_exeext
5100 if { (ac_try="$ac_link"
5101 case "(($ac_try" in
5102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103   *) ac_try_echo=$ac_try;;
5104 esac
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106   (eval "$ac_link") 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5110   { (case "(($ac_try" in
5111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112   *) ac_try_echo=$ac_try;;
5113 esac
5114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115   (eval "$ac_try") 2>&5
5116   ac_status=$?
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); }; }; then
5119   :
5120 else
5121   echo "$as_me: program exited with status $ac_status" >&5
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5124
5125 ( exit $ac_status )
5126 ac_cv_header_stdc=no
5127 fi
5128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5129 fi
5130
5131
5132 fi
5133 fi
5134 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5135 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5136 if test $ac_cv_header_stdc = yes; then
5137
5138 cat >>confdefs.h <<\_ACEOF
5139 #define STDC_HEADERS 1
5140 _ACEOF
5141
5142 fi
5143
5144 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5155                   inttypes.h stdint.h unistd.h
5156 do
5157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5161   echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163   cat >conftest.$ac_ext <<_ACEOF
5164 /* confdefs.h.  */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h.  */
5169 $ac_includes_default
5170
5171 #include <$ac_header>
5172 _ACEOF
5173 rm -f conftest.$ac_objext
5174 if { (ac_try="$ac_compile"
5175 case "(($ac_try" in
5176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177   *) ac_try_echo=$ac_try;;
5178 esac
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180   (eval "$ac_compile") 2>conftest.er1
5181   ac_status=$?
5182   grep -v '^ *+' conftest.er1 >conftest.err
5183   rm -f conftest.er1
5184   cat conftest.err >&5
5185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186   (exit $ac_status); } && {
5187          test -z "$ac_c_werror_flag" ||
5188          test ! -s conftest.err
5189        } && test -s conftest.$ac_objext; then
5190   eval "$as_ac_Header=yes"
5191 else
5192   echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5194
5195         eval "$as_ac_Header=no"
5196 fi
5197
5198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5199 fi
5200 ac_res=`eval echo '${'$as_ac_Header'}'`
5201                { echo "$as_me:$LINENO: result: $ac_res" >&5
5202 echo "${ECHO_T}$ac_res" >&6; }
5203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5204   cat >>confdefs.h <<_ACEOF
5205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5206 _ACEOF
5207
5208 fi
5209
5210 done
5211
5212
5213
5214 for ac_header in dlfcn.h
5215 do
5216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5218   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5221   echo $ECHO_N "(cached) $ECHO_C" >&6
5222 fi
5223 ac_res=`eval echo '${'$as_ac_Header'}'`
5224                { echo "$as_me:$LINENO: result: $ac_res" >&5
5225 echo "${ECHO_T}$ac_res" >&6; }
5226 else
5227   # Is the header compilable?
5228 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h.  */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h.  */
5236 $ac_includes_default
5237 #include <$ac_header>
5238 _ACEOF
5239 rm -f conftest.$ac_objext
5240 if { (ac_try="$ac_compile"
5241 case "(($ac_try" in
5242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243   *) ac_try_echo=$ac_try;;
5244 esac
5245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246   (eval "$ac_compile") 2>conftest.er1
5247   ac_status=$?
5248   grep -v '^ *+' conftest.er1 >conftest.err
5249   rm -f conftest.er1
5250   cat conftest.err >&5
5251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252   (exit $ac_status); } && {
5253          test -z "$ac_c_werror_flag" ||
5254          test ! -s conftest.err
5255        } && test -s conftest.$ac_objext; then
5256   ac_header_compiler=yes
5257 else
5258   echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5260
5261         ac_header_compiler=no
5262 fi
5263
5264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5266 echo "${ECHO_T}$ac_header_compiler" >&6; }
5267
5268 # Is the header present?
5269 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5271 cat >conftest.$ac_ext <<_ACEOF
5272 /* confdefs.h.  */
5273 _ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h.  */
5277 #include <$ac_header>
5278 _ACEOF
5279 if { (ac_try="$ac_cpp conftest.$ac_ext"
5280 case "(($ac_try" in
5281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282   *) ac_try_echo=$ac_try;;
5283 esac
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5286   ac_status=$?
5287   grep -v '^ *+' conftest.er1 >conftest.err
5288   rm -f conftest.er1
5289   cat conftest.err >&5
5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291   (exit $ac_status); } >/dev/null && {
5292          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5293          test ! -s conftest.err
5294        }; then
5295   ac_header_preproc=yes
5296 else
5297   echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5299
5300   ac_header_preproc=no
5301 fi
5302
5303 rm -f conftest.err conftest.$ac_ext
5304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5305 echo "${ECHO_T}$ac_header_preproc" >&6; }
5306
5307 # So?  What about this header?
5308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5309   yes:no: )
5310     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5314     ac_header_preproc=yes
5315     ;;
5316   no:yes:* )
5317     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5319     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5320 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5321     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5323     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5324 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5327     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5329
5330     ;;
5331 esac
5332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5335   echo $ECHO_N "(cached) $ECHO_C" >&6
5336 else
5337   eval "$as_ac_Header=\$ac_header_preproc"
5338 fi
5339 ac_res=`eval echo '${'$as_ac_Header'}'`
5340                { echo "$as_me:$LINENO: result: $ac_res" >&5
5341 echo "${ECHO_T}$ac_res" >&6; }
5342
5343 fi
5344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5345   cat >>confdefs.h <<_ACEOF
5346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5347 _ACEOF
5348
5349 fi
5350
5351 done
5352
5353
5354
5355
5356
5357 # Only perform the check for file, if the check method requires it
5358 case $deplibs_check_method in
5359 file_magic*)
5360   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5361     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5362 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
5363 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5364   echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366   case $MAGIC_CMD in
5367   /*)
5368   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5369   ;;
5370   ?:/*)
5371   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5372   ;;
5373   *)
5374   ac_save_MAGIC_CMD="$MAGIC_CMD"
5375   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5376   ac_dummy="/usr/bin:$PATH"
5377   for ac_dir in $ac_dummy; do
5378     test -z "$ac_dir" && ac_dir=.
5379     if test -f $ac_dir/${ac_tool_prefix}file; then
5380       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5381       if test -n "$file_magic_test_file"; then
5382         case $deplibs_check_method in
5383         "file_magic "*)
5384           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5385           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5386           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5387             egrep "$file_magic_regex" > /dev/null; then
5388             :
5389           else
5390             cat <<EOF 1>&2
5391
5392 *** Warning: the command libtool uses to detect shared libraries,
5393 *** $file_magic_cmd, produces output that libtool cannot recognize.
5394 *** The result is that libtool may fail to recognize shared libraries
5395 *** as such.  This will affect the creation of libtool libraries that
5396 *** depend on shared libraries, but programs linked with such libtool
5397 *** libraries will work regardless of this problem.  Nevertheless, you
5398 *** may want to report the problem to your system manager and/or to
5399 *** bug-libtool@gnu.org
5400
5401 EOF
5402           fi ;;
5403         esac
5404       fi
5405       break
5406     fi
5407   done
5408   IFS="$ac_save_ifs"
5409   MAGIC_CMD="$ac_save_MAGIC_CMD"
5410   ;;
5411 esac
5412 fi
5413
5414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5415 if test -n "$MAGIC_CMD"; then
5416   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5417 echo "${ECHO_T}$MAGIC_CMD" >&6; }
5418 else
5419   { echo "$as_me:$LINENO: result: no" >&5
5420 echo "${ECHO_T}no" >&6; }
5421 fi
5422
5423 if test -z "$lt_cv_path_MAGIC_CMD"; then
5424   if test -n "$ac_tool_prefix"; then
5425     { echo "$as_me:$LINENO: checking for file" >&5
5426 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
5427 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430   case $MAGIC_CMD in
5431   /*)
5432   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5433   ;;
5434   ?:/*)
5435   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5436   ;;
5437   *)
5438   ac_save_MAGIC_CMD="$MAGIC_CMD"
5439   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5440   ac_dummy="/usr/bin:$PATH"
5441   for ac_dir in $ac_dummy; do
5442     test -z "$ac_dir" && ac_dir=.
5443     if test -f $ac_dir/file; then
5444       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5445       if test -n "$file_magic_test_file"; then
5446         case $deplibs_check_method in
5447         "file_magic "*)
5448           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5449           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5450           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5451             egrep "$file_magic_regex" > /dev/null; then
5452             :
5453           else
5454             cat <<EOF 1>&2
5455
5456 *** Warning: the command libtool uses to detect shared libraries,
5457 *** $file_magic_cmd, produces output that libtool cannot recognize.
5458 *** The result is that libtool may fail to recognize shared libraries
5459 *** as such.  This will affect the creation of libtool libraries that
5460 *** depend on shared libraries, but programs linked with such libtool
5461 *** libraries will work regardless of this problem.  Nevertheless, you
5462 *** may want to report the problem to your system manager and/or to
5463 *** bug-libtool@gnu.org
5464
5465 EOF
5466           fi ;;
5467         esac
5468       fi
5469       break
5470     fi
5471   done
5472   IFS="$ac_save_ifs"
5473   MAGIC_CMD="$ac_save_MAGIC_CMD"
5474   ;;
5475 esac
5476 fi
5477
5478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5479 if test -n "$MAGIC_CMD"; then
5480   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5481 echo "${ECHO_T}$MAGIC_CMD" >&6; }
5482 else
5483   { echo "$as_me:$LINENO: result: no" >&5
5484 echo "${ECHO_T}no" >&6; }
5485 fi
5486
5487   else
5488     MAGIC_CMD=:
5489   fi
5490 fi
5491
5492   fi
5493   ;;
5494 esac
5495
5496 if test -n "$ac_tool_prefix"; then
5497   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5498 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5501 if test "${ac_cv_prog_RANLIB+set}" = set; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504   if test -n "$RANLIB"; then
5505   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5509 do
5510   IFS=$as_save_IFS
5511   test -z "$as_dir" && as_dir=.
5512   for ac_exec_ext in '' $ac_executable_extensions; do
5513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516     break 2
5517   fi
5518 done
5519 done
5520 IFS=$as_save_IFS
5521
5522 fi
5523 fi
5524 RANLIB=$ac_cv_prog_RANLIB
5525 if test -n "$RANLIB"; then
5526   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5527 echo "${ECHO_T}$RANLIB" >&6; }
5528 else
5529   { echo "$as_me:$LINENO: result: no" >&5
5530 echo "${ECHO_T}no" >&6; }
5531 fi
5532
5533
5534 fi
5535 if test -z "$ac_cv_prog_RANLIB"; then
5536   ac_ct_RANLIB=$RANLIB
5537   # Extract the first word of "ranlib", so it can be a program name with args.
5538 set dummy ranlib; ac_word=$2
5539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5541 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5542   echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544   if test -n "$ac_ct_RANLIB"; then
5545   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5549 do
5550   IFS=$as_save_IFS
5551   test -z "$as_dir" && as_dir=.
5552   for ac_exec_ext in '' $ac_executable_extensions; do
5553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5554     ac_cv_prog_ac_ct_RANLIB="ranlib"
5555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5556     break 2
5557   fi
5558 done
5559 done
5560 IFS=$as_save_IFS
5561
5562 fi
5563 fi
5564 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5565 if test -n "$ac_ct_RANLIB"; then
5566   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5567 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5568 else
5569   { echo "$as_me:$LINENO: result: no" >&5
5570 echo "${ECHO_T}no" >&6; }
5571 fi
5572
5573   if test "x$ac_ct_RANLIB" = x; then
5574     RANLIB=":"
5575   else
5576     case $cross_compiling:$ac_tool_warned in
5577 yes:)
5578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5579 whose name does not start with the host triplet.  If you think this
5580 configuration is useful to you, please write to autoconf@gnu.org." >&5
5581 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5582 whose name does not start with the host triplet.  If you think this
5583 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5584 ac_tool_warned=yes ;;
5585 esac
5586     RANLIB=$ac_ct_RANLIB
5587   fi
5588 else
5589   RANLIB="$ac_cv_prog_RANLIB"
5590 fi
5591
5592 if test -n "$ac_tool_prefix"; then
5593   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5594 set dummy ${ac_tool_prefix}strip; ac_word=$2
5595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5597 if test "${ac_cv_prog_STRIP+set}" = set; then
5598   echo $ECHO_N "(cached) $ECHO_C" >&6
5599 else
5600   if test -n "$STRIP"; then
5601   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5602 else
5603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 for as_dir in $PATH
5605 do
5606   IFS=$as_save_IFS
5607   test -z "$as_dir" && as_dir=.
5608   for ac_exec_ext in '' $ac_executable_extensions; do
5609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5610     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5612     break 2
5613   fi
5614 done
5615 done
5616 IFS=$as_save_IFS
5617
5618 fi
5619 fi
5620 STRIP=$ac_cv_prog_STRIP
5621 if test -n "$STRIP"; then
5622   { echo "$as_me:$LINENO: result: $STRIP" >&5
5623 echo "${ECHO_T}$STRIP" >&6; }
5624 else
5625   { echo "$as_me:$LINENO: result: no" >&5
5626 echo "${ECHO_T}no" >&6; }
5627 fi
5628
5629
5630 fi
5631 if test -z "$ac_cv_prog_STRIP"; then
5632   ac_ct_STRIP=$STRIP
5633   # Extract the first word of "strip", so it can be a program name with args.
5634 set dummy strip; ac_word=$2
5635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5637 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5638   echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640   if test -n "$ac_ct_STRIP"; then
5641   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646   IFS=$as_save_IFS
5647   test -z "$as_dir" && as_dir=.
5648   for ac_exec_ext in '' $ac_executable_extensions; do
5649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650     ac_cv_prog_ac_ct_STRIP="strip"
5651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5652     break 2
5653   fi
5654 done
5655 done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5661 if test -n "$ac_ct_STRIP"; then
5662   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5663 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5664 else
5665   { echo "$as_me:$LINENO: result: no" >&5
5666 echo "${ECHO_T}no" >&6; }
5667 fi
5668
5669   if test "x$ac_ct_STRIP" = x; then
5670     STRIP=":"
5671   else
5672     case $cross_compiling:$ac_tool_warned in
5673 yes:)
5674 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5675 whose name does not start with the host triplet.  If you think this
5676 configuration is useful to you, please write to autoconf@gnu.org." >&5
5677 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5678 whose name does not start with the host triplet.  If you think this
5679 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5680 ac_tool_warned=yes ;;
5681 esac
5682     STRIP=$ac_ct_STRIP
5683   fi
5684 else
5685   STRIP="$ac_cv_prog_STRIP"
5686 fi
5687
5688
5689 enable_dlopen=no
5690 enable_win32_dll=no
5691
5692 # Check whether --enable-libtool-lock was given.
5693 if test "${enable_libtool_lock+set}" = set; then
5694   enableval=$enable_libtool_lock;
5695 fi
5696
5697 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5698
5699 # Some flags need to be propagated to the compiler or linker for good
5700 # libtool support.
5701 case $host in
5702 *-*-irix6*)
5703   # Find out which ABI we are using.
5704   echo '#line 5704 "configure"' > conftest.$ac_ext
5705   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706   (eval $ac_compile) 2>&5
5707   ac_status=$?
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); }; then
5710     case `/usr/bin/file conftest.$ac_objext` in
5711     *32-bit*)
5712       LD="${LD-ld} -32"
5713       ;;
5714     *N32*)
5715       LD="${LD-ld} -n32"
5716       ;;
5717     *64-bit*)
5718       LD="${LD-ld} -64"
5719       ;;
5720     esac
5721   fi
5722   rm -rf conftest*
5723   ;;
5724
5725 *-*-sco3.2v5*)
5726   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5727   SAVE_CFLAGS="$CFLAGS"
5728   CFLAGS="$CFLAGS -belf"
5729   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5730 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5731 if test "${lt_cv_cc_needs_belf+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734
5735      ac_ext=c
5736 ac_cpp='$CPP $CPPFLAGS'
5737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5740
5741      cat >conftest.$ac_ext <<_ACEOF
5742 /* confdefs.h.  */
5743 _ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h.  */
5747
5748 int
5749 main ()
5750 {
5751
5752   ;
5753   return 0;
5754 }
5755 _ACEOF
5756 rm -f conftest.$ac_objext conftest$ac_exeext
5757 if { (ac_try="$ac_link"
5758 case "(($ac_try" in
5759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760   *) ac_try_echo=$ac_try;;
5761 esac
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763   (eval "$ac_link") 2>conftest.er1
5764   ac_status=$?
5765   grep -v '^ *+' conftest.er1 >conftest.err
5766   rm -f conftest.er1
5767   cat conftest.err >&5
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); } && {
5770          test -z "$ac_c_werror_flag" ||
5771          test ! -s conftest.err
5772        } && test -s conftest$ac_exeext &&
5773        $as_test_x conftest$ac_exeext; then
5774   lt_cv_cc_needs_belf=yes
5775 else
5776   echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5778
5779         lt_cv_cc_needs_belf=no
5780 fi
5781
5782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5783       conftest$ac_exeext conftest.$ac_ext
5784      ac_ext=c
5785 ac_cpp='$CPP $CPPFLAGS'
5786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5789
5790 fi
5791 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5792 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5793   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5794     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5795     CFLAGS="$SAVE_CFLAGS"
5796   fi
5797   ;;
5798
5799
5800 esac
5801
5802 # Sed substitution that helps us do robust quoting.  It backslashifies
5803 # metacharacters that are still active within double-quoted strings.
5804 Xsed='sed -e s/^X//'
5805 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5806
5807 # Same as above, but do not quote variable references.
5808 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5809
5810 # Sed substitution to delay expansion of an escaped shell variable in a
5811 # double_quote_subst'ed string.
5812 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5813
5814 # Constants:
5815 rm="rm -f"
5816
5817 # Global variables:
5818 default_ofile=libtool
5819 can_build_shared=yes
5820
5821 # All known linkers require a `.a' archive for static linking (except M$VC,
5822 # which needs '.lib').
5823 libext=a
5824 ltmain="$ac_aux_dir/ltmain.sh"
5825 ofile="$default_ofile"
5826 with_gnu_ld="$lt_cv_prog_gnu_ld"
5827 need_locks="$enable_libtool_lock"
5828
5829 old_CC="$CC"
5830 old_CFLAGS="$CFLAGS"
5831
5832 # Set sane defaults for various variables
5833 test -z "$AR" && AR=ar
5834 test -z "$AR_FLAGS" && AR_FLAGS=cru
5835 test -z "$AS" && AS=as
5836 test -z "$CC" && CC=cc
5837 test -z "$DLLTOOL" && DLLTOOL=dlltool
5838 test -z "$LD" && LD=ld
5839 test -z "$LN_S" && LN_S="ln -s"
5840 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5841 test -z "$NM" && NM=nm
5842 test -z "$OBJDUMP" && OBJDUMP=objdump
5843 test -z "$RANLIB" && RANLIB=:
5844 test -z "$STRIP" && STRIP=:
5845 test -z "$ac_objext" && ac_objext=o
5846
5847 if test x"$host" != x"$build"; then
5848   ac_tool_prefix=${host_alias}-
5849 else
5850   ac_tool_prefix=
5851 fi
5852
5853 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5854 case $host_os in
5855 linux-gnu*) ;;
5856 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5857 esac
5858
5859 case $host_os in
5860 aix3*)
5861   # AIX sometimes has problems with the GCC collect2 program.  For some
5862   # reason, if we set the COLLECT_NAMES environment variable, the problems
5863   # vanish in a puff of smoke.
5864   if test "X${COLLECT_NAMES+set}" != Xset; then
5865     COLLECT_NAMES=
5866     export COLLECT_NAMES
5867   fi
5868   ;;
5869 esac
5870
5871 # Determine commands to create old-style static archives.
5872 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5873 old_postinstall_cmds='chmod 644 $oldlib'
5874 old_postuninstall_cmds=
5875
5876 if test -n "$RANLIB"; then
5877   case $host_os in
5878   openbsd*)
5879     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5880     ;;
5881   *)
5882     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5883     ;;
5884   esac
5885   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5886 fi
5887
5888 # Allow CC to be a program name with arguments.
5889 set dummy $CC
5890 compiler="$2"
5891
5892 ## FIXME: this should be a separate macro
5893 ##
5894 { echo "$as_me:$LINENO: checking for objdir" >&5
5895 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5896 rm -f .libs 2>/dev/null
5897 mkdir .libs 2>/dev/null
5898 if test -d .libs; then
5899   objdir=.libs
5900 else
5901   # MS-DOS does not allow filenames that begin with a dot.
5902   objdir=_libs
5903 fi
5904 rmdir .libs 2>/dev/null
5905 { echo "$as_me:$LINENO: result: $objdir" >&5
5906 echo "${ECHO_T}$objdir" >&6; }
5907 ##
5908 ## END FIXME
5909
5910
5911 ## FIXME: this should be a separate macro
5912 ##
5913
5914 # Check whether --with-pic was given.
5915 if test "${with_pic+set}" = set; then
5916   withval=$with_pic; pic_mode="$withval"
5917 else
5918   pic_mode=default
5919 fi
5920
5921 test -z "$pic_mode" && pic_mode=default
5922
5923 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5924 # in isolation, and that seeing it set (from the cache) indicates that
5925 # the associated values are set (in the cache) correctly too.
5926 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5927 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
5928 if test "${lt_cv_prog_cc_pic+set}" = set; then
5929   echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931    lt_cv_prog_cc_pic=
5932   lt_cv_prog_cc_shlib=
5933   lt_cv_prog_cc_wl=
5934   lt_cv_prog_cc_static=
5935   lt_cv_prog_cc_no_builtin=
5936   lt_cv_prog_cc_can_build_shared=$can_build_shared
5937
5938   if test "$GCC" = yes; then
5939     lt_cv_prog_cc_wl='-Wl,'
5940     lt_cv_prog_cc_static='-static'
5941
5942     case $host_os in
5943     aix*)
5944       # Below there is a dirty hack to force normal static linking with -ldl
5945       # The problem is because libdl dynamically linked with both libc and
5946       # libC (AIX C++ library), which obviously doesn't included in libraries
5947       # list by gcc. This cause undefined symbols with -static flags.
5948       # This hack allows C programs to be linked with "-static -ldl", but
5949       # not sure about C++ programs.
5950       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5951       ;;
5952     amigaos*)
5953       # FIXME: we need at least 68020 code to build shared libraries, but
5954       # adding the `-m68020' flag to GCC prevents building anything better,
5955       # like `-m68040'.
5956       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5957       ;;
5958     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5959       # PIC is the default for these OSes.
5960       ;;
5961     darwin* | rhapsody*)
5962       # PIC is the default on this platform
5963       # Common symbols not allowed in MH_DYLIB files
5964       lt_cv_prog_cc_pic='-fno-common'
5965       ;;
5966     cygwin* | mingw* | pw32* | os2*)
5967       # This hack is so that the source file can tell whether it is being
5968       # built for inclusion in a dll (and should export symbols for example).
5969       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5970       ;;
5971     sysv4*MP*)
5972       if test -d /usr/nec; then
5973          lt_cv_prog_cc_pic=-Kconform_pic
5974       fi
5975       ;;
5976     *)
5977       lt_cv_prog_cc_pic='-fPIC'
5978       ;;
5979     esac
5980   else
5981     # PORTME Check for PIC flags for the system compiler.
5982     case $host_os in
5983     aix3* | aix4* | aix5*)
5984       lt_cv_prog_cc_wl='-Wl,'
5985       # All AIX code is PIC.
5986       if test "$host_cpu" = ia64; then
5987         # AIX 5 now supports IA64 processor
5988         lt_cv_prog_cc_static='-Bstatic'
5989       else
5990         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5991       fi
5992       ;;
5993
5994     hpux9* | hpux10* | hpux11*)
5995       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5996       lt_cv_prog_cc_wl='-Wl,'
5997       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5998       lt_cv_prog_cc_pic='+Z'
5999       ;;
6000
6001     irix5* | irix6* | nonstopux*)
6002       lt_cv_prog_cc_wl='-Wl,'
6003       lt_cv_prog_cc_static='-non_shared'
6004       # PIC (with -KPIC) is the default.
6005       ;;
6006
6007     cygwin* | mingw* | pw32* | os2*)
6008       # This hack is so that the source file can tell whether it is being
6009       # built for inclusion in a dll (and should export symbols for example).
6010       lt_cv_prog_cc_pic='-DDLL_EXPORT'
6011       ;;
6012
6013     newsos6)
6014       lt_cv_prog_cc_pic='-KPIC'
6015       lt_cv_prog_cc_static='-Bstatic'
6016       ;;
6017
6018     osf3* | osf4* | osf5*)
6019       # All OSF/1 code is PIC.
6020       lt_cv_prog_cc_wl='-Wl,'
6021       lt_cv_prog_cc_static='-non_shared'
6022       ;;
6023
6024     sco3.2v5*)
6025       lt_cv_prog_cc_pic='-Kpic'
6026       lt_cv_prog_cc_static='-dn'
6027       lt_cv_prog_cc_shlib='-belf'
6028       ;;
6029
6030     solaris*)
6031       lt_cv_prog_cc_pic='-KPIC'
6032       lt_cv_prog_cc_static='-Bstatic'
6033       lt_cv_prog_cc_wl='-Wl,'
6034       ;;
6035
6036     sunos4*)
6037       lt_cv_prog_cc_pic='-PIC'
6038       lt_cv_prog_cc_static='-Bstatic'
6039       lt_cv_prog_cc_wl='-Qoption ld '
6040       ;;
6041
6042     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6043       lt_cv_prog_cc_pic='-KPIC'
6044       lt_cv_prog_cc_static='-Bstatic'
6045       if test "x$host_vendor" = xsni; then
6046         lt_cv_prog_cc_wl='-LD'
6047       else
6048         lt_cv_prog_cc_wl='-Wl,'
6049       fi
6050       ;;
6051
6052     uts4*)
6053       lt_cv_prog_cc_pic='-pic'
6054       lt_cv_prog_cc_static='-Bstatic'
6055       ;;
6056
6057     sysv4*MP*)
6058       if test -d /usr/nec ;then
6059         lt_cv_prog_cc_pic='-Kconform_pic'
6060         lt_cv_prog_cc_static='-Bstatic'
6061       fi
6062       ;;
6063
6064     *)
6065       lt_cv_prog_cc_can_build_shared=no
6066       ;;
6067     esac
6068   fi
6069
6070 fi
6071
6072 if test -z "$lt_cv_prog_cc_pic"; then
6073   { echo "$as_me:$LINENO: result: none" >&5
6074 echo "${ECHO_T}none" >&6; }
6075 else
6076   { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
6077 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6; }
6078
6079   # Check to make sure the pic_flag actually works.
6080   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
6081 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6; }
6082   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
6083   echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085       save_CFLAGS="$CFLAGS"
6086     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
6087     cat >conftest.$ac_ext <<_ACEOF
6088 /* confdefs.h.  */
6089 _ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h.  */
6093
6094 int
6095 main ()
6096 {
6097
6098   ;
6099   return 0;
6100 }
6101 _ACEOF
6102 rm -f conftest.$ac_objext
6103 if { (ac_try="$ac_compile"
6104 case "(($ac_try" in
6105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106   *) ac_try_echo=$ac_try;;
6107 esac
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109   (eval "$ac_compile") 2>conftest.er1
6110   ac_status=$?
6111   grep -v '^ *+' conftest.er1 >conftest.err
6112   rm -f conftest.er1
6113   cat conftest.err >&5
6114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115   (exit $ac_status); } && {
6116          test -z "$ac_c_werror_flag" ||
6117          test ! -s conftest.err
6118        } && test -s conftest.$ac_objext; then
6119         case $host_os in
6120       hpux9* | hpux10* | hpux11*)
6121         # On HP-UX, both CC and GCC only warn that PIC is supported... then
6122         # they create non-PIC objects.  So, if there were any warnings, we
6123         # assume that PIC is not supported.
6124         if test -s conftest.err; then
6125           lt_cv_prog_cc_pic_works=no
6126         else
6127           lt_cv_prog_cc_pic_works=yes
6128         fi
6129         ;;
6130       *)
6131         lt_cv_prog_cc_pic_works=yes
6132         ;;
6133       esac
6134
6135 else
6136   echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6138
6139               lt_cv_prog_cc_pic_works=no
6140
6141 fi
6142
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144     CFLAGS="$save_CFLAGS"
6145
6146 fi
6147
6148
6149   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
6150     lt_cv_prog_cc_pic=
6151     lt_cv_prog_cc_can_build_shared=no
6152   else
6153     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
6154   fi
6155
6156   { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
6157 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6; }
6158 fi
6159 ##
6160 ## END FIXME
6161
6162 # Check for any special shared library compilation flags.
6163 if test -n "$lt_cv_prog_cc_shlib"; then
6164   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
6165 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
6166   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
6167   else
6168    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6169 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6170     lt_cv_prog_cc_can_build_shared=no
6171   fi
6172 fi
6173
6174 ## FIXME: this should be a separate macro
6175 ##
6176 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
6177 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6; }
6178 if test "${lt_cv_prog_cc_static_works+set}" = set; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181     lt_cv_prog_cc_static_works=no
6182   save_LDFLAGS="$LDFLAGS"
6183   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
6184   cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h.  */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h.  */
6190
6191 int
6192 main ()
6193 {
6194
6195   ;
6196   return 0;
6197 }
6198 _ACEOF
6199 rm -f conftest.$ac_objext conftest$ac_exeext
6200 if { (ac_try="$ac_link"
6201 case "(($ac_try" in
6202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203   *) ac_try_echo=$ac_try;;
6204 esac
6205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206   (eval "$ac_link") 2>conftest.er1
6207   ac_status=$?
6208   grep -v '^ *+' conftest.er1 >conftest.err
6209   rm -f conftest.er1
6210   cat conftest.err >&5
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); } && {
6213          test -z "$ac_c_werror_flag" ||
6214          test ! -s conftest.err
6215        } && test -s conftest$ac_exeext &&
6216        $as_test_x conftest$ac_exeext; then
6217   lt_cv_prog_cc_static_works=yes
6218 else
6219   echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6221
6222
6223 fi
6224
6225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6226       conftest$ac_exeext conftest.$ac_ext
6227   LDFLAGS="$save_LDFLAGS"
6228
6229 fi
6230
6231
6232 # Belt *and* braces to stop my trousers falling down:
6233 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
6234 { echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
6235 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6; }
6236
6237 pic_flag="$lt_cv_prog_cc_pic"
6238 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
6239 wl="$lt_cv_prog_cc_wl"
6240 link_static_flag="$lt_cv_prog_cc_static"
6241 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
6242 can_build_shared="$lt_cv_prog_cc_can_build_shared"
6243 ##
6244 ## END FIXME
6245
6246
6247 ## FIXME: this should be a separate macro
6248 ##
6249 # Check to see if options -o and -c are simultaneously supported by compiler
6250 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6251 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6252 if test "${lt_cv_compiler_c_o+set}" = set; then
6253   echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255
6256 $rm -r conftest 2>/dev/null
6257 mkdir conftest
6258 cd conftest
6259 echo "int some_variable = 0;" > conftest.$ac_ext
6260 mkdir out
6261 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6262 # that will create temporary files in the current directory regardless of
6263 # the output directory.  Thus, making CWD read-only will cause this test
6264 # to fail, enabling locking or at least warning the user not to do parallel
6265 # builds.
6266 chmod -w .
6267 save_CFLAGS="$CFLAGS"
6268 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6269 compiler_c_o=no
6270 if { (eval echo configure:6270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6271   # The compiler can only warn and ignore the option if not recognized
6272   # So say no if there are warnings
6273   if test -s out/conftest.err; then
6274     lt_cv_compiler_c_o=no
6275   else
6276     lt_cv_compiler_c_o=yes
6277   fi
6278 else
6279   # Append any errors to the config.log.
6280   cat out/conftest.err 1>&5
6281   lt_cv_compiler_c_o=no
6282 fi
6283 CFLAGS="$save_CFLAGS"
6284 chmod u+w .
6285 $rm conftest* out/*
6286 rmdir out
6287 cd ..
6288 rmdir conftest
6289 $rm -r conftest 2>/dev/null
6290
6291 fi
6292
6293 compiler_c_o=$lt_cv_compiler_c_o
6294 { echo "$as_me:$LINENO: result: $compiler_c_o" >&5
6295 echo "${ECHO_T}$compiler_c_o" >&6; }
6296
6297 if test x"$compiler_c_o" = x"yes"; then
6298   # Check to see if we can write to a .lo
6299   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6300 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6; }
6301   if test "${lt_cv_compiler_o_lo+set}" = set; then
6302   echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304
6305   lt_cv_compiler_o_lo=no
6306   save_CFLAGS="$CFLAGS"
6307   CFLAGS="$CFLAGS -c -o conftest.lo"
6308   save_objext="$ac_objext"
6309   ac_objext=lo
6310   cat >conftest.$ac_ext <<_ACEOF
6311 /* confdefs.h.  */
6312 _ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h.  */
6316
6317 int
6318 main ()
6319 {
6320 int some_variable = 0;
6321   ;
6322   return 0;
6323 }
6324 _ACEOF
6325 rm -f conftest.$ac_objext
6326 if { (ac_try="$ac_compile"
6327 case "(($ac_try" in
6328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329   *) ac_try_echo=$ac_try;;
6330 esac
6331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332   (eval "$ac_compile") 2>conftest.er1
6333   ac_status=$?
6334   grep -v '^ *+' conftest.er1 >conftest.err
6335   rm -f conftest.er1
6336   cat conftest.err >&5
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); } && {
6339          test -z "$ac_c_werror_flag" ||
6340          test ! -s conftest.err
6341        } && test -s conftest.$ac_objext; then
6342       # The compiler can only warn and ignore the option if not recognized
6343     # So say no if there are warnings
6344     if test -s conftest.err; then
6345       lt_cv_compiler_o_lo=no
6346     else
6347       lt_cv_compiler_o_lo=yes
6348     fi
6349
6350 else
6351   echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6353
6354
6355 fi
6356
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358   ac_objext="$save_objext"
6359   CFLAGS="$save_CFLAGS"
6360
6361 fi
6362
6363   compiler_o_lo=$lt_cv_compiler_o_lo
6364   { echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6365 echo "${ECHO_T}$compiler_o_lo" >&6; }
6366 else
6367   compiler_o_lo=no
6368 fi
6369 ##
6370 ## END FIXME
6371
6372 ## FIXME: this should be a separate macro
6373 ##
6374 # Check to see if we can do hard links to lock some files if needed
6375 hard_links="nottested"
6376 if test "$compiler_c_o" = no && test "$need_locks" != no; then
6377   # do not overwrite the value of need_locks provided by the user
6378   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6379 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6380   hard_links=yes
6381   $rm conftest*
6382   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6383   touch conftest.a
6384   ln conftest.a conftest.b 2>&5 || hard_links=no
6385   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6386   { echo "$as_me:$LINENO: result: $hard_links" >&5
6387 echo "${ECHO_T}$hard_links" >&6; }
6388   if test "$hard_links" = no; then
6389     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6390 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6391     need_locks=warn
6392   fi
6393 else
6394   need_locks=no
6395 fi
6396 ##
6397 ## END FIXME
6398
6399 ## FIXME: this should be a separate macro
6400 ##
6401 if test "$GCC" = yes; then
6402   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6403   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6404 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6405   echo "int some_variable = 0;" > conftest.$ac_ext
6406   save_CFLAGS="$CFLAGS"
6407   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6408   compiler_rtti_exceptions=no
6409   cat >conftest.$ac_ext <<_ACEOF
6410 /* confdefs.h.  */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h.  */
6415
6416 int
6417 main ()
6418 {
6419 int some_variable = 0;
6420   ;
6421   return 0;
6422 }
6423 _ACEOF
6424 rm -f conftest.$ac_objext
6425 if { (ac_try="$ac_compile"
6426 case "(($ac_try" in
6427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6428   *) ac_try_echo=$ac_try;;
6429 esac
6430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6431   (eval "$ac_compile") 2>conftest.er1
6432   ac_status=$?
6433   grep -v '^ *+' conftest.er1 >conftest.err
6434   rm -f conftest.er1
6435   cat conftest.err >&5
6436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437   (exit $ac_status); } && {
6438          test -z "$ac_c_werror_flag" ||
6439          test ! -s conftest.err
6440        } && test -s conftest.$ac_objext; then
6441       # The compiler can only warn and ignore the option if not recognized
6442     # So say no if there are warnings
6443     if test -s conftest.err; then
6444       compiler_rtti_exceptions=no
6445     else
6446       compiler_rtti_exceptions=yes
6447     fi
6448
6449 else
6450   echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6452
6453
6454 fi
6455
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457   CFLAGS="$save_CFLAGS"
6458   { echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6459 echo "${ECHO_T}$compiler_rtti_exceptions" >&6; }
6460
6461   if test "$compiler_rtti_exceptions" = "yes"; then
6462     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6463   else
6464     no_builtin_flag=' -fno-builtin'
6465   fi
6466 fi
6467 ##
6468 ## END FIXME
6469
6470 ## FIXME: this should be a separate macro
6471 ##
6472 # See if the linker supports building shared libraries.
6473 { echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6474 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6475
6476 allow_undefined_flag=
6477 no_undefined_flag=
6478 need_lib_prefix=unknown
6479 need_version=unknown
6480 # when you set need_version to no, make sure it does not cause -set_version
6481 # flags to be left without arguments
6482 archive_cmds=
6483 archive_expsym_cmds=
6484 old_archive_from_new_cmds=
6485 old_archive_from_expsyms_cmds=
6486 export_dynamic_flag_spec=
6487 whole_archive_flag_spec=
6488 thread_safe_flag_spec=
6489 hardcode_into_libs=no
6490 hardcode_libdir_flag_spec=
6491 hardcode_libdir_separator=
6492 hardcode_direct=no
6493 hardcode_minus_L=no
6494 hardcode_shlibpath_var=unsupported
6495 runpath_var=
6496 link_all_deplibs=unknown
6497 always_export_symbols=no
6498 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6499 # include_expsyms should be a list of space-separated symbols to be *always*
6500 # included in the symbol list
6501 include_expsyms=
6502 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6503 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6504 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6505 # as well as any symbol that contains `d'.
6506 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6507 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6508 # platforms (ab)use it in PIC code, but their linkers get confused if
6509 # the symbol is explicitly referenced.  Since portable code cannot
6510 # rely on this symbol name, it's probably fine to never include it in
6511 # preloaded symbol tables.
6512 extract_expsyms_cmds=
6513
6514 case $host_os in
6515 cygwin* | mingw* | pw32*)
6516   # FIXME: the MSVC++ port hasn't been tested in a loooong time
6517   # When not using gcc, we currently assume that we are using
6518   # Microsoft Visual C++.
6519   if test "$GCC" != yes; then
6520     with_gnu_ld=no
6521   fi
6522   ;;
6523 openbsd*)
6524   with_gnu_ld=no
6525   ;;
6526 esac
6527
6528 ld_shlibs=yes
6529 if test "$with_gnu_ld" = yes; then
6530   # If archive_cmds runs LD, not CC, wlarc should be empty
6531   wlarc='${wl}'
6532
6533   # See if GNU ld supports shared libraries.
6534   case $host_os in
6535   aix3* | aix4* | aix5*)
6536     # On AIX, the GNU linker is very broken
6537     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6538     ld_shlibs=no
6539     cat <<EOF 1>&2
6540
6541 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6542 *** to be unable to reliably create shared libraries on AIX.
6543 *** Therefore, libtool is disabling shared libraries support.  If you
6544 *** really care for shared libraries, you may want to modify your PATH
6545 *** so that a non-GNU linker is found, and then restart.
6546
6547 EOF
6548     ;;
6549
6550   amigaos*)
6551     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6552     hardcode_libdir_flag_spec='-L$libdir'
6553     hardcode_minus_L=yes
6554
6555     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6556     # that the semantics of dynamic libraries on AmigaOS, at least up
6557     # to version 4, is to share data among multiple programs linked
6558     # with the same dynamic library.  Since this doesn't match the
6559     # behavior of shared libraries on other platforms, we can use
6560     # them.
6561     ld_shlibs=no
6562     ;;
6563
6564   beos*)
6565     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6566       allow_undefined_flag=unsupported
6567       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6568       # support --undefined.  This deserves some investigation.  FIXME
6569       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6570     else
6571       ld_shlibs=no
6572     fi
6573     ;;
6574
6575   cygwin* | mingw* | pw32*)
6576     # hardcode_libdir_flag_spec is actually meaningless, as there is
6577     # no search path for DLLs.
6578     hardcode_libdir_flag_spec='-L$libdir'
6579     allow_undefined_flag=unsupported
6580     always_export_symbols=yes
6581
6582     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6583       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6584       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6585       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6586       else $CC -o impgen impgen.c ; fi)~
6587       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6588
6589     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6590
6591     # cygwin and mingw dlls have different entry points and sets of symbols
6592     # to exclude.
6593     # FIXME: what about values for MSVC?
6594     dll_entry=__cygwin_dll_entry@12
6595     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6596     case $host_os in
6597     mingw*)
6598       # mingw values
6599       dll_entry=_DllMainCRTStartup@12
6600       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6601       ;;
6602     esac
6603
6604     # mingw and cygwin differ, and it's simplest to just exclude the union
6605     # of the two symbol sets.
6606     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6607
6608     # recent cygwin and mingw systems supply a stub DllMain which the user
6609     # can override, but on older systems we have to supply one (in ltdll.c)
6610     if test "x$lt_cv_need_dllmain" = "xyes"; then
6611       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6612       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6613         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6614     else
6615       ltdll_obj=
6616       ltdll_cmds=
6617     fi
6618
6619     # Extract the symbol export list from an `--export-all' def file,
6620     # then regenerate the def file from the symbol export list, so that
6621     # the compiled dll only exports the symbol export list.
6622     # Be careful not to strip the DATA tag left be newer dlltools.
6623     export_symbols_cmds="$ltdll_cmds"'
6624       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6625       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6626
6627     # If the export-symbols file already is a .def file (1st line
6628     # is EXPORTS), use it as is.
6629     # If DATA tags from a recent dlltool are present, honour them!
6630     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6631         cp $export_symbols $output_objdir/$soname-def;
6632       else
6633         echo EXPORTS > $output_objdir/$soname-def;
6634         _lt_hint=1;
6635         cat $export_symbols | while read symbol; do
6636          set dummy \$symbol;
6637          case \$# in
6638            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6639            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6640          esac;
6641          _lt_hint=`expr 1 + \$_lt_hint`;
6642         done;
6643       fi~
6644       '"$ltdll_cmds"'
6645       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6646       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6647       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6648       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6649       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6650     ;;
6651
6652   netbsd*)
6653     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6654       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6655       wlarc=
6656     else
6657       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6658       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6659     fi
6660     ;;
6661
6662   solaris* | sysv5*)
6663     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6664       ld_shlibs=no
6665       cat <<EOF 1>&2
6666
6667 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6668 *** create shared libraries on Solaris systems.  Therefore, libtool
6669 *** is disabling shared libraries support.  We urge you to upgrade GNU
6670 *** binutils to release 2.9.1 or newer.  Another option is to modify
6671 *** your PATH or compiler configuration so that the native linker is
6672 *** used, and then restart.
6673
6674 EOF
6675     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6676       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6677       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6678     else
6679       ld_shlibs=no
6680     fi
6681     ;;
6682
6683   sunos4*)
6684     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6685     wlarc=
6686     hardcode_direct=yes
6687     hardcode_shlibpath_var=no
6688     ;;
6689
6690   *)
6691     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6692       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6693       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6694     else
6695       ld_shlibs=no
6696     fi
6697     ;;
6698   esac
6699
6700   if test "$ld_shlibs" = yes; then
6701     runpath_var=LD_RUN_PATH
6702     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6703     export_dynamic_flag_spec='${wl}--export-dynamic'
6704     case $host_os in
6705     cygwin* | mingw* | pw32*)
6706       # dlltool doesn't understand --whole-archive et. al.
6707       whole_archive_flag_spec=
6708       ;;
6709     *)
6710       # ancient GNU ld didn't support --whole-archive et. al.
6711       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6712         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6713       else
6714         whole_archive_flag_spec=
6715       fi
6716       ;;
6717     esac
6718   fi
6719 else
6720   # PORTME fill in a description of your system's linker (not GNU ld)
6721   case $host_os in
6722   aix3*)
6723     allow_undefined_flag=unsupported
6724     always_export_symbols=yes
6725     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6726     # Note: this linker hardcodes the directories in LIBPATH if there
6727     # are no directories specified by -L.
6728     hardcode_minus_L=yes
6729     if test "$GCC" = yes && test -z "$link_static_flag"; then
6730       # Neither direct hardcoding nor static linking is supported with a
6731       # broken collect2.
6732       hardcode_direct=unsupported
6733     fi
6734     ;;
6735
6736   aix4* | aix5*)
6737     if test "$host_cpu" = ia64; then
6738       # On IA64, the linker does run time linking by default, so we don't
6739       # have to do anything special.
6740       aix_use_runtimelinking=no
6741       exp_sym_flag='-Bexport'
6742       no_entry_flag=""
6743     else
6744       aix_use_runtimelinking=no
6745
6746       # Test if we are trying to use run time linking or normal
6747       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6748       # need to do runtime linking.
6749       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6750         for ld_flag in $LDFLAGS; do
6751           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6752             aix_use_runtimelinking=yes
6753             break
6754           fi
6755         done
6756       esac
6757
6758       exp_sym_flag='-bexport'
6759       no_entry_flag='-bnoentry'
6760     fi
6761
6762     # When large executables or shared objects are built, AIX ld can
6763     # have problems creating the table of contents.  If linking a library
6764     # or program results in "error TOC overflow" add -mminimal-toc to
6765     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6766     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6767
6768     hardcode_direct=yes
6769     archive_cmds=''
6770     hardcode_libdir_separator=':'
6771     if test "$GCC" = yes; then
6772       case $host_os in aix4.[012]|aix4.[012].*)
6773         collect2name=`${CC} -print-prog-name=collect2`
6774         if test -f "$collect2name" && \
6775           strings "$collect2name" | grep resolve_lib_name >/dev/null
6776         then
6777           # We have reworked collect2
6778           hardcode_direct=yes
6779         else
6780           # We have old collect2
6781           hardcode_direct=unsupported
6782           # It fails to find uninstalled libraries when the uninstalled
6783           # path is not listed in the libpath.  Setting hardcode_minus_L
6784           # to unsupported forces relinking
6785           hardcode_minus_L=yes
6786           hardcode_libdir_flag_spec='-L$libdir'
6787           hardcode_libdir_separator=
6788         fi
6789       esac
6790
6791       shared_flag='-shared'
6792     else
6793       # not using gcc
6794       if test "$host_cpu" = ia64; then
6795         shared_flag='${wl}-G'
6796       else
6797         if test "$aix_use_runtimelinking" = yes; then
6798           shared_flag='${wl}-G'
6799         else
6800           shared_flag='${wl}-bM:SRE'
6801         fi
6802       fi
6803     fi
6804
6805     # It seems that -bexpall can do strange things, so it is better to
6806     # generate a list of symbols to export.
6807     always_export_symbols=yes
6808     if test "$aix_use_runtimelinking" = yes; then
6809       # Warning - without using the other runtime loading flags (-brtl),
6810       # -berok will link without error, but may produce a broken library.
6811       allow_undefined_flag='-berok'
6812       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6813       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6814     else
6815       if test "$host_cpu" = ia64; then
6816         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6817         allow_undefined_flag="-z nodefs"
6818         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6819       else
6820         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6821         # Warning - without using the other run time loading flags,
6822         # -berok will link without error, but may produce a broken library.
6823         allow_undefined_flag='${wl}-berok'
6824         # This is a bit strange, but is similar to how AIX traditionally builds
6825         # it's shared libraries.
6826         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6827       fi
6828     fi
6829     ;;
6830
6831   amigaos*)
6832     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6833     hardcode_libdir_flag_spec='-L$libdir'
6834     hardcode_minus_L=yes
6835     # see comment about different semantics on the GNU ld section
6836     ld_shlibs=no
6837     ;;
6838
6839   cygwin* | mingw* | pw32*)
6840     # When not using gcc, we currently assume that we are using
6841     # Microsoft Visual C++.
6842     # hardcode_libdir_flag_spec is actually meaningless, as there is
6843     # no search path for DLLs.
6844     hardcode_libdir_flag_spec=' '
6845     allow_undefined_flag=unsupported
6846     # Tell ltmain to make .lib files, not .a files.
6847     libext=lib
6848     # FIXME: Setting linknames here is a bad hack.
6849     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6850     # The linker will automatically build a .lib file if we build a DLL.
6851     old_archive_from_new_cmds='true'
6852     # FIXME: Should let the user specify the lib program.
6853     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6854     fix_srcfile_path='`cygpath -w "$srcfile"`'
6855     ;;
6856
6857   darwin* | rhapsody*)
6858     case "$host_os" in
6859     rhapsody* | darwin1.[012])
6860       allow_undefined_flag='-undefined suppress'
6861       ;;
6862     *) # Darwin 1.3 on
6863       allow_undefined_flag='-flat_namespace -undefined suppress'
6864       ;;
6865     esac
6866     # FIXME: Relying on posixy $() will cause problems for
6867     #        cross-compilation, but unfortunately the echo tests do not
6868     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6869     #        `"' quotes if we put them in here... so don't!
6870     archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6871     # We need to add '_' to the symbols in $export_symbols first
6872     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6873     hardcode_direct=yes
6874     hardcode_shlibpath_var=no
6875     whole_archive_flag_spec='-all_load $convenience'
6876     ;;
6877
6878   freebsd1*)
6879     ld_shlibs=no
6880     ;;
6881
6882   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6883   # support.  Future versions do this automatically, but an explicit c++rt0.o
6884   # does not break anything, and helps significantly (at the cost of a little
6885   # extra space).
6886   freebsd2.2*)
6887     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6888     hardcode_libdir_flag_spec='-R$libdir'
6889     hardcode_direct=yes
6890     hardcode_shlibpath_var=no
6891     ;;
6892
6893   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6894   freebsd2*)
6895     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6896     hardcode_direct=yes
6897     hardcode_minus_L=yes
6898     hardcode_shlibpath_var=no
6899     ;;
6900
6901   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6902   freebsd*)
6903     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6904     hardcode_libdir_flag_spec='-R$libdir'
6905     hardcode_direct=yes
6906     hardcode_shlibpath_var=no
6907     ;;
6908
6909   hpux9* | hpux10* | hpux11*)
6910     case $host_os in
6911     hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6912     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6913     esac
6914     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6915     hardcode_libdir_separator=:
6916     hardcode_direct=yes
6917     hardcode_minus_L=yes # Not in the search PATH, but as the default
6918                          # location of the library.
6919     export_dynamic_flag_spec='${wl}-E'
6920     ;;
6921
6922   irix5* | irix6* | nonstopux*)
6923     if test "$GCC" = yes; then
6924       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6925     else
6926       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6927     fi
6928     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6929     hardcode_libdir_separator=:
6930     link_all_deplibs=yes
6931     ;;
6932
6933   netbsd*)
6934     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6935       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6936     else
6937       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6938     fi
6939     hardcode_libdir_flag_spec='-R$libdir'
6940     hardcode_direct=yes
6941     hardcode_shlibpath_var=no
6942     ;;
6943
6944   newsos6)
6945     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6946     hardcode_direct=yes
6947     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6948     hardcode_libdir_separator=:
6949     hardcode_shlibpath_var=no
6950     ;;
6951
6952   openbsd*)
6953     hardcode_direct=yes
6954     hardcode_shlibpath_var=no
6955     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6956       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6957       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6958       export_dynamic_flag_spec='${wl}-E'
6959     else
6960       case "$host_os" in
6961       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6962         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6963         hardcode_libdir_flag_spec='-R$libdir'
6964         ;;
6965       *)
6966         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6967         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6968         ;;
6969       esac
6970     fi
6971     ;;
6972
6973   os2*)
6974     hardcode_libdir_flag_spec='-L$libdir'
6975     hardcode_minus_L=yes
6976     allow_undefined_flag=unsupported
6977     archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6978     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6979     ;;
6980
6981   osf3*)
6982     if test "$GCC" = yes; then
6983       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6984       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6985     else
6986       allow_undefined_flag=' -expect_unresolved \*'
6987       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6988     fi
6989     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6990     hardcode_libdir_separator=:
6991     ;;
6992
6993   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6994     if test "$GCC" = yes; then
6995       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6996       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6997       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6998     else
6999       allow_undefined_flag=' -expect_unresolved \*'
7000       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7001       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7002       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7003
7004       #Both c and cxx compiler support -rpath directly
7005       hardcode_libdir_flag_spec='-rpath $libdir'
7006     fi
7007     hardcode_libdir_separator=:
7008     ;;
7009
7010   sco3.2v5*)
7011     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7012     hardcode_shlibpath_var=no
7013     runpath_var=LD_RUN_PATH
7014     hardcode_runpath_var=yes
7015     export_dynamic_flag_spec='${wl}-Bexport'
7016     ;;
7017
7018   solaris*)
7019     # gcc --version < 3.0 without binutils cannot create self contained
7020     # shared libraries reliably, requiring libgcc.a to resolve some of
7021     # the object symbols generated in some cases.  Libraries that use
7022     # assert need libgcc.a to resolve __eprintf, for example.  Linking
7023     # a copy of libgcc.a into every shared library to guarantee resolving
7024     # such symbols causes other problems:  According to Tim Van Holder
7025     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
7026     # (to the application) exception stack for one thing.
7027     no_undefined_flag=' -z defs'
7028     if test "$GCC" = yes; then
7029       case `$CC --version 2>/dev/null` in
7030       [12].*)
7031         cat <<EOF 1>&2
7032
7033 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
7034 *** create self contained shared libraries on Solaris systems, without
7035 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
7036 *** -no-undefined support, which will at least allow you to build shared
7037 *** libraries.  However, you may find that when you link such libraries
7038 *** into an application without using GCC, you have to manually add
7039 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
7040 *** upgrade to a newer version of GCC.  Another option is to rebuild your
7041 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
7042
7043 EOF
7044         no_undefined_flag=
7045         ;;
7046       esac
7047     fi
7048     # $CC -shared without GNU ld will not create a library from C++
7049     # object files and a static libstdc++, better avoid it by now
7050     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7051     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7052                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7053     hardcode_libdir_flag_spec='-R$libdir'
7054     hardcode_shlibpath_var=no
7055     case $host_os in
7056     solaris2.[0-5] | solaris2.[0-5].*) ;;
7057     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7058       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7059     esac
7060     link_all_deplibs=yes
7061     ;;
7062
7063   sunos4*)
7064     if test "x$host_vendor" = xsequent; then
7065       # Use $CC to link under sequent, because it throws in some extra .o
7066       # files that make .init and .fini sections work.
7067       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7068     else
7069       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7070     fi
7071     hardcode_libdir_flag_spec='-L$libdir'
7072     hardcode_direct=yes
7073     hardcode_minus_L=yes
7074     hardcode_shlibpath_var=no
7075     ;;
7076
7077   sysv4)
7078     if test "x$host_vendor" = xsno; then
7079       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
7080       hardcode_direct=yes # is this really true???
7081     else
7082       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7083       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7084     fi
7085     runpath_var='LD_RUN_PATH'
7086     hardcode_shlibpath_var=no
7087     ;;
7088
7089   sysv4.3*)
7090     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7091     hardcode_shlibpath_var=no
7092     export_dynamic_flag_spec='-Bexport'
7093     ;;
7094
7095   sysv5*)
7096     no_undefined_flag=' -z text'
7097     # $CC -shared without GNU ld will not create a library from C++
7098     # object files and a static libstdc++, better avoid it by now
7099     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7100     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7101                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7102     hardcode_libdir_flag_spec=
7103     hardcode_shlibpath_var=no
7104     runpath_var='LD_RUN_PATH'
7105     ;;
7106
7107   uts4*)
7108     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7109     hardcode_libdir_flag_spec='-L$libdir'
7110     hardcode_shlibpath_var=no
7111     ;;
7112
7113   dgux*)
7114     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7115     hardcode_libdir_flag_spec='-L$libdir'
7116     hardcode_shlibpath_var=no
7117     ;;
7118
7119   sysv4*MP*)
7120     if test -d /usr/nec; then
7121       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7122       hardcode_shlibpath_var=no
7123       runpath_var=LD_RUN_PATH
7124       hardcode_runpath_var=yes
7125       ld_shlibs=yes
7126     fi
7127     ;;
7128
7129   sysv4.2uw2*)
7130     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7131     hardcode_direct=yes
7132     hardcode_minus_L=no
7133     hardcode_shlibpath_var=no
7134     hardcode_runpath_var=yes
7135     runpath_var=LD_RUN_PATH
7136     ;;
7137
7138   sysv5uw7* | unixware7*)
7139     no_undefined_flag='${wl}-z ${wl}text'
7140     if test "$GCC" = yes; then
7141       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7142     else
7143       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7144     fi
7145     runpath_var='LD_RUN_PATH'
7146     hardcode_shlibpath_var=no
7147     ;;
7148
7149   *)
7150     ld_shlibs=no
7151     ;;
7152   esac
7153 fi
7154 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7155 echo "${ECHO_T}$ld_shlibs" >&6; }
7156 test "$ld_shlibs" = no && can_build_shared=no
7157 ##
7158 ## END FIXME
7159
7160 ## FIXME: this should be a separate macro
7161 ##
7162 # Check hardcoding attributes.
7163 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7164 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
7165 hardcode_action=
7166 if test -n "$hardcode_libdir_flag_spec" || \
7167    test -n "$runpath_var"; then
7168
7169   # We can hardcode non-existant directories.
7170   if test "$hardcode_direct" != no &&
7171      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7172      # have to relink, otherwise we might link with an installed library
7173      # when we should be linking with a yet-to-be-installed one
7174      ## test "$hardcode_shlibpath_var" != no &&
7175      test "$hardcode_minus_L" != no; then
7176     # Linking always hardcodes the temporary library directory.
7177     hardcode_action=relink
7178   else
7179     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7180     hardcode_action=immediate
7181   fi
7182 else
7183   # We cannot hardcode anything, or else we can only hardcode existing
7184   # directories.
7185   hardcode_action=unsupported
7186 fi
7187 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
7188 echo "${ECHO_T}$hardcode_action" >&6; }
7189 ##
7190 ## END FIXME
7191
7192 ## FIXME: this should be a separate macro
7193 ##
7194 striplib=
7195 old_striplib=
7196 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7197 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
7198 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7199   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7200   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7201   { echo "$as_me:$LINENO: result: yes" >&5
7202 echo "${ECHO_T}yes" >&6; }
7203 else
7204   { echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6; }
7206 fi
7207 ##
7208 ## END FIXME
7209
7210 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7211 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7212
7213 ## FIXME: this should be a separate macro
7214 ##
7215 # PORTME Fill in your ld.so characteristics
7216 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7217 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7218 library_names_spec=
7219 libname_spec='lib$name'
7220 soname_spec=
7221 postinstall_cmds=
7222 postuninstall_cmds=
7223 finish_cmds=
7224 finish_eval=
7225 shlibpath_var=
7226 shlibpath_overrides_runpath=unknown
7227 version_type=none
7228 dynamic_linker="$host_os ld.so"
7229 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7230 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7231
7232 case $host_os in
7233 aix3*)
7234   version_type=linux
7235   library_names_spec='${libname}${release}.so$versuffix $libname.a'
7236   shlibpath_var=LIBPATH
7237
7238   # AIX has no versioning support, so we append a major version to the name.
7239   soname_spec='${libname}${release}.so$major'
7240   ;;
7241
7242 aix4* | aix5*)
7243   version_type=linux
7244   if test "$host_cpu" = ia64; then
7245     # AIX 5 supports IA64
7246     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7247     shlibpath_var=LD_LIBRARY_PATH
7248   else
7249     # With GCC up to 2.95.x, collect2 would create an import file
7250     # for dependence libraries.  The import file would start with
7251     # the line `#! .'.  This would cause the generated library to
7252     # depend on `.', always an invalid library.  This was fixed in
7253     # development snapshots of GCC prior to 3.0.
7254     case $host_os in
7255       aix4 | aix4.[01] | aix4.[01].*)
7256         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7257              echo ' yes '
7258              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7259           :
7260         else
7261           can_build_shared=no
7262         fi
7263         ;;
7264     esac
7265     # AIX (on Power*) has no versioning support, so currently we can
7266     # not hardcode correct soname into executable. Probably we can
7267     # add versioning support to collect2, so additional links can
7268     # be useful in future.
7269     if test "$aix_use_runtimelinking" = yes; then
7270       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7271       # instead of lib<name>.a to let people know that these are not
7272       # typical AIX shared libraries.
7273       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7274     else
7275       # We preserve .a as extension for shared libraries through AIX4.2
7276       # and later when we are not doing run time linking.
7277       library_names_spec='${libname}${release}.a $libname.a'
7278       soname_spec='${libname}${release}.so$major'
7279     fi
7280     shlibpath_var=LIBPATH
7281   fi
7282   ;;
7283
7284 amigaos*)
7285   library_names_spec='$libname.ixlibrary $libname.a'
7286   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7287   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
7288   ;;
7289
7290 beos*)
7291   library_names_spec='${libname}.so'
7292   dynamic_linker="$host_os ld.so"
7293   shlibpath_var=LIBRARY_PATH
7294   ;;
7295
7296 bsdi4*)
7297   version_type=linux
7298   need_version=no
7299   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7300   soname_spec='${libname}${release}.so$major'
7301   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7302   shlibpath_var=LD_LIBRARY_PATH
7303   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7304   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7305   export_dynamic_flag_spec=-rdynamic
7306   # the default ld.so.conf also contains /usr/contrib/lib and
7307   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7308   # libtool to hard-code these into programs
7309   ;;
7310
7311 cygwin* | mingw* | pw32*)
7312   version_type=windows
7313   need_version=no
7314   need_lib_prefix=no
7315   case $GCC,$host_os in
7316   yes,cygwin*)
7317     library_names_spec='$libname.dll.a'
7318     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7319     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7320       dldir=$destdir/`dirname \$dlpath`~
7321       test -d \$dldir || mkdir -p \$dldir~
7322       $install_prog .libs/$dlname \$dldir/$dlname'
7323     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7324       dlpath=$dir/\$dldll~
7325        $rm \$dlpath'
7326     ;;
7327   yes,mingw*)
7328     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7329     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
7330     ;;
7331   yes,pw32*)
7332     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7333     ;;
7334   *)
7335     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7336     ;;
7337   esac
7338   dynamic_linker='Win32 ld.exe'
7339   # FIXME: first we should search . and the directory the executable is in
7340   shlibpath_var=PATH
7341   ;;
7342
7343 darwin* | rhapsody*)
7344   dynamic_linker="$host_os dyld"
7345   version_type=darwin
7346   need_lib_prefix=no
7347   need_version=no
7348   # FIXME: Relying on posixy $() will cause problems for
7349   #        cross-compilation, but unfortunately the echo tests do not
7350   #        yet detect zsh echo's removal of \ escapes.
7351   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7352   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7353   shlibpath_overrides_runpath=yes
7354   shlibpath_var=DYLD_LIBRARY_PATH
7355   ;;
7356
7357 freebsd1*)
7358   dynamic_linker=no
7359   ;;
7360
7361 freebsd*)
7362   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7363   version_type=freebsd-$objformat
7364   case $version_type in
7365     freebsd-elf*)
7366       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7367       need_version=no
7368       need_lib_prefix=no
7369       ;;
7370     freebsd-*)
7371       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7372       need_version=yes
7373       ;;
7374   esac
7375   shlibpath_var=LD_LIBRARY_PATH
7376   case $host_os in
7377   freebsd2*)
7378     shlibpath_overrides_runpath=yes
7379     ;;
7380   *)
7381     shlibpath_overrides_runpath=no
7382     hardcode_into_libs=yes
7383     ;;
7384   esac
7385   ;;
7386
7387 gnu*)
7388   version_type=linux
7389   need_lib_prefix=no
7390   need_version=no
7391   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7392   soname_spec='${libname}${release}.so$major'
7393   shlibpath_var=LD_LIBRARY_PATH
7394   hardcode_into_libs=yes
7395   ;;
7396
7397 hpux9* | hpux10* | hpux11*)
7398   # Give a soname corresponding to the major version so that dld.sl refuses to
7399   # link against other versions.
7400   dynamic_linker="$host_os dld.sl"
7401   version_type=sunos
7402   need_lib_prefix=no
7403   need_version=no
7404   shlibpath_var=SHLIB_PATH
7405   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7406   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7407   soname_spec='${libname}${release}.sl$major'
7408   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7409   postinstall_cmds='chmod 555 $lib'
7410   ;;
7411
7412 irix5* | irix6* | nonstopux*)
7413   case $host_os in
7414     nonstopux*) version_type=nonstopux ;;
7415     *)          version_type=irix ;;
7416   esac
7417   need_lib_prefix=no
7418   need_version=no
7419   soname_spec='${libname}${release}.so$major'
7420   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7421   case $host_os in
7422   irix5* | nonstopux*)
7423     libsuff= shlibsuff=
7424     ;;
7425   *)
7426     case $LD in # libtool.m4 will add one of these switches to LD
7427     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7428     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7429     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7430     *) libsuff= shlibsuff= libmagic=never-match;;
7431     esac
7432     ;;
7433   esac
7434   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7435   shlibpath_overrides_runpath=no
7436   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7437   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7438   ;;
7439
7440 # No shared lib support for Linux oldld, aout, or coff.
7441 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7442   dynamic_linker=no
7443   ;;
7444
7445 # This must be Linux ELF.
7446 linux-gnu*)
7447   version_type=linux
7448   need_lib_prefix=no
7449   need_version=no
7450   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7451   soname_spec='${libname}${release}.so$major'
7452   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7453   shlibpath_var=LD_LIBRARY_PATH
7454   shlibpath_overrides_runpath=no
7455   # This implies no fast_install, which is unacceptable.
7456   # Some rework will be needed to allow for fast_install
7457   # before this can be enabled.
7458   hardcode_into_libs=yes
7459
7460   # We used to test for /lib/ld.so.1 and disable shared libraries on
7461   # powerpc, because MkLinux only supported shared libraries with the
7462   # GNU dynamic linker.  Since this was broken with cross compilers,
7463   # most powerpc-linux boxes support dynamic linking these days and
7464   # people can always --disable-shared, the test was removed, and we
7465   # assume the GNU/Linux dynamic linker is in use.
7466   dynamic_linker='GNU/Linux ld.so'
7467   ;;
7468
7469 netbsd*)
7470   version_type=sunos
7471   need_lib_prefix=no
7472   need_version=no
7473   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7474     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7475     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7476     dynamic_linker='NetBSD (a.out) ld.so'
7477   else
7478     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7479     soname_spec='${libname}${release}.so$major'
7480     dynamic_linker='NetBSD ld.elf_so'
7481   fi
7482   shlibpath_var=LD_LIBRARY_PATH
7483   shlibpath_overrides_runpath=yes
7484   hardcode_into_libs=yes
7485   ;;
7486
7487 newsos6)
7488   version_type=linux
7489   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7490   shlibpath_var=LD_LIBRARY_PATH
7491   shlibpath_overrides_runpath=yes
7492   ;;
7493
7494 openbsd*)
7495   version_type=sunos
7496   need_lib_prefix=no
7497   need_version=no
7498   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7499     case "$host_os" in
7500     openbsd2.[89] | openbsd2.[89].*)
7501       shlibpath_overrides_runpath=no
7502       ;;
7503     *)
7504       shlibpath_overrides_runpath=yes
7505       ;;
7506     esac
7507   else
7508     shlibpath_overrides_runpath=yes
7509   fi
7510   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7511   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7512   shlibpath_var=LD_LIBRARY_PATH
7513   ;;
7514
7515 os2*)
7516   libname_spec='$name'
7517   need_lib_prefix=no
7518   library_names_spec='$libname.dll $libname.a'
7519   dynamic_linker='OS/2 ld.exe'
7520   shlibpath_var=LIBPATH
7521   ;;
7522
7523 osf3* | osf4* | osf5*)
7524   version_type=osf
7525   need_version=no
7526   soname_spec='${libname}${release}.so'
7527   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7528   shlibpath_var=LD_LIBRARY_PATH
7529   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7530   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7531   ;;
7532
7533 sco3.2v5*)
7534   version_type=osf
7535   soname_spec='${libname}${release}.so$major'
7536   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7537   shlibpath_var=LD_LIBRARY_PATH
7538   ;;
7539
7540 solaris*)
7541   version_type=linux
7542   need_lib_prefix=no
7543   need_version=no
7544   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7545   soname_spec='${libname}${release}.so$major'
7546   shlibpath_var=LD_LIBRARY_PATH
7547   shlibpath_overrides_runpath=yes
7548   hardcode_into_libs=yes
7549   # ldd complains unless libraries are executable
7550   postinstall_cmds='chmod +x $lib'
7551   ;;
7552
7553 sunos4*)
7554   version_type=sunos
7555   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7556   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7557   shlibpath_var=LD_LIBRARY_PATH
7558   shlibpath_overrides_runpath=yes
7559   if test "$with_gnu_ld" = yes; then
7560     need_lib_prefix=no
7561   fi
7562   need_version=yes
7563   ;;
7564
7565 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7566   version_type=linux
7567   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7568   soname_spec='${libname}${release}.so$major'
7569   shlibpath_var=LD_LIBRARY_PATH
7570   case $host_vendor in
7571     sni)
7572       shlibpath_overrides_runpath=no
7573       ;;
7574     motorola)
7575       need_lib_prefix=no
7576       need_version=no
7577       shlibpath_overrides_runpath=no
7578       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7579       ;;
7580   esac
7581   ;;
7582
7583 uts4*)
7584   version_type=linux
7585   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7586   soname_spec='${libname}${release}.so$major'
7587   shlibpath_var=LD_LIBRARY_PATH
7588   ;;
7589
7590 dgux*)
7591   version_type=linux
7592   need_lib_prefix=no
7593   need_version=no
7594   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7595   soname_spec='${libname}${release}.so$major'
7596   shlibpath_var=LD_LIBRARY_PATH
7597   ;;
7598
7599 sysv4*MP*)
7600   if test -d /usr/nec ;then
7601     version_type=linux
7602     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7603     soname_spec='$libname.so.$major'
7604     shlibpath_var=LD_LIBRARY_PATH
7605   fi
7606   ;;
7607
7608 *)
7609   dynamic_linker=no
7610   ;;
7611 esac
7612 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7613 echo "${ECHO_T}$dynamic_linker" >&6; }
7614 test "$dynamic_linker" = no && can_build_shared=no
7615 ##
7616 ## END FIXME
7617
7618 ## FIXME: this should be a separate macro
7619 ##
7620 # Report the final consequences.
7621 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7622 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
7623 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
7624 echo "${ECHO_T}$can_build_shared" >&6; }
7625 ##
7626 ## END FIXME
7627
7628 ## FIXME: this should be a separate macro
7629 ##
7630 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7631 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
7632 test "$can_build_shared" = "no" && enable_shared=no
7633
7634 # On AIX, shared libraries and static libraries use the same namespace, and
7635 # are all built from PIC.
7636 case "$host_os" in
7637 aix3*)
7638   test "$enable_shared" = yes && enable_static=no
7639   if test -n "$RANLIB"; then
7640     archive_cmds="$archive_cmds~\$RANLIB \$lib"
7641     postinstall_cmds='$RANLIB $lib'
7642   fi
7643   ;;
7644
7645 aix4*)
7646   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7647     test "$enable_shared" = yes && enable_static=no
7648   fi
7649   ;;
7650 esac
7651 { echo "$as_me:$LINENO: result: $enable_shared" >&5
7652 echo "${ECHO_T}$enable_shared" >&6; }
7653 ##
7654 ## END FIXME
7655
7656 ## FIXME: this should be a separate macro
7657 ##
7658 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7659 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
7660 # Make sure either enable_shared or enable_static is yes.
7661 test "$enable_shared" = yes || enable_static=yes
7662 { echo "$as_me:$LINENO: result: $enable_static" >&5
7663 echo "${ECHO_T}$enable_static" >&6; }
7664 ##
7665 ## END FIXME
7666
7667 if test "$hardcode_action" = relink; then
7668   # Fast installation is not supported
7669   enable_fast_install=no
7670 elif test "$shlibpath_overrides_runpath" = yes ||
7671      test "$enable_shared" = no; then
7672   # Fast installation is not necessary
7673   enable_fast_install=needless
7674 fi
7675
7676 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7677 if test "$GCC" = yes; then
7678   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7679 fi
7680
7681 if test "x$enable_dlopen" != xyes; then
7682   enable_dlopen=unknown
7683   enable_dlopen_self=unknown
7684   enable_dlopen_self_static=unknown
7685 else
7686   lt_cv_dlopen=no
7687   lt_cv_dlopen_libs=
7688
7689   case $host_os in
7690   beos*)
7691     lt_cv_dlopen="load_add_on"
7692     lt_cv_dlopen_libs=
7693     lt_cv_dlopen_self=yes
7694     ;;
7695
7696   cygwin* | mingw* | pw32*)
7697     lt_cv_dlopen="LoadLibrary"
7698     lt_cv_dlopen_libs=
7699    ;;
7700
7701   *)
7702     { echo "$as_me:$LINENO: checking for shl_load" >&5
7703 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
7704 if test "${ac_cv_func_shl_load+set}" = set; then
7705   echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707   cat >conftest.$ac_ext <<_ACEOF
7708 /* confdefs.h.  */
7709 _ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h.  */
7713 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7715 #define shl_load innocuous_shl_load
7716
7717 /* System header to define __stub macros and hopefully few prototypes,
7718     which can conflict with char shl_load (); below.
7719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7720     <limits.h> exists even on freestanding compilers.  */
7721
7722 #ifdef __STDC__
7723 # include <limits.h>
7724 #else
7725 # include <assert.h>
7726 #endif
7727
7728 #undef shl_load
7729
7730 /* Override any GCC internal prototype to avoid an error.
7731    Use char because int might match the return type of a GCC
7732    builtin and then its argument prototype would still apply.  */
7733 #ifdef __cplusplus
7734 extern "C"
7735 #endif
7736 char shl_load ();
7737 /* The GNU C library defines this for functions which it implements
7738     to always fail with ENOSYS.  Some functions are actually named
7739     something starting with __ and the normal name is an alias.  */
7740 #if defined __stub_shl_load || defined __stub___shl_load
7741 choke me
7742 #endif
7743
7744 int
7745 main ()
7746 {
7747 return shl_load ();
7748   ;
7749   return 0;
7750 }
7751 _ACEOF
7752 rm -f conftest.$ac_objext conftest$ac_exeext
7753 if { (ac_try="$ac_link"
7754 case "(($ac_try" in
7755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756   *) ac_try_echo=$ac_try;;
7757 esac
7758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7759   (eval "$ac_link") 2>conftest.er1
7760   ac_status=$?
7761   grep -v '^ *+' conftest.er1 >conftest.err
7762   rm -f conftest.er1
7763   cat conftest.err >&5
7764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765   (exit $ac_status); } && {
7766          test -z "$ac_c_werror_flag" ||
7767          test ! -s conftest.err
7768        } && test -s conftest$ac_exeext &&
7769        $as_test_x conftest$ac_exeext; then
7770   ac_cv_func_shl_load=yes
7771 else
7772   echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7774
7775         ac_cv_func_shl_load=no
7776 fi
7777
7778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7779       conftest$ac_exeext conftest.$ac_ext
7780 fi
7781 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7782 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
7783 if test $ac_cv_func_shl_load = yes; then
7784   lt_cv_dlopen="shl_load"
7785 else
7786   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7787 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
7788 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7789   echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791   ac_check_lib_save_LIBS=$LIBS
7792 LIBS="-ldld  $LIBS"
7793 cat >conftest.$ac_ext <<_ACEOF
7794 /* confdefs.h.  */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h.  */
7799
7800 /* Override any GCC internal prototype to avoid an error.
7801    Use char because int might match the return type of a GCC
7802    builtin and then its argument prototype would still apply.  */
7803 #ifdef __cplusplus
7804 extern "C"
7805 #endif
7806 char shl_load ();
7807 int
7808 main ()
7809 {
7810 return shl_load ();
7811   ;
7812   return 0;
7813 }
7814 _ACEOF
7815 rm -f conftest.$ac_objext conftest$ac_exeext
7816 if { (ac_try="$ac_link"
7817 case "(($ac_try" in
7818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819   *) ac_try_echo=$ac_try;;
7820 esac
7821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822   (eval "$ac_link") 2>conftest.er1
7823   ac_status=$?
7824   grep -v '^ *+' conftest.er1 >conftest.err
7825   rm -f conftest.er1
7826   cat conftest.err >&5
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); } && {
7829          test -z "$ac_c_werror_flag" ||
7830          test ! -s conftest.err
7831        } && test -s conftest$ac_exeext &&
7832        $as_test_x conftest$ac_exeext; then
7833   ac_cv_lib_dld_shl_load=yes
7834 else
7835   echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7837
7838         ac_cv_lib_dld_shl_load=no
7839 fi
7840
7841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7842       conftest$ac_exeext conftest.$ac_ext
7843 LIBS=$ac_check_lib_save_LIBS
7844 fi
7845 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7846 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
7847 if test $ac_cv_lib_dld_shl_load = yes; then
7848   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7849 else
7850   { echo "$as_me:$LINENO: checking for dlopen" >&5
7851 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
7852 if test "${ac_cv_func_dlopen+set}" = set; then
7853   echo $ECHO_N "(cached) $ECHO_C" >&6
7854 else
7855   cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h.  */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h.  */
7861 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7863 #define dlopen innocuous_dlopen
7864
7865 /* System header to define __stub macros and hopefully few prototypes,
7866     which can conflict with char dlopen (); below.
7867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7868     <limits.h> exists even on freestanding compilers.  */
7869
7870 #ifdef __STDC__
7871 # include <limits.h>
7872 #else
7873 # include <assert.h>
7874 #endif
7875
7876 #undef dlopen
7877
7878 /* Override any GCC internal prototype to avoid an error.
7879    Use char because int might match the return type of a GCC
7880    builtin and then its argument prototype would still apply.  */
7881 #ifdef __cplusplus
7882 extern "C"
7883 #endif
7884 char dlopen ();
7885 /* The GNU C library defines this for functions which it implements
7886     to always fail with ENOSYS.  Some functions are actually named
7887     something starting with __ and the normal name is an alias.  */
7888 #if defined __stub_dlopen || defined __stub___dlopen
7889 choke me
7890 #endif
7891
7892 int
7893 main ()
7894 {
7895 return dlopen ();
7896   ;
7897   return 0;
7898 }
7899 _ACEOF
7900 rm -f conftest.$ac_objext conftest$ac_exeext
7901 if { (ac_try="$ac_link"
7902 case "(($ac_try" in
7903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904   *) ac_try_echo=$ac_try;;
7905 esac
7906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907   (eval "$ac_link") 2>conftest.er1
7908   ac_status=$?
7909   grep -v '^ *+' conftest.er1 >conftest.err
7910   rm -f conftest.er1
7911   cat conftest.err >&5
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); } && {
7914          test -z "$ac_c_werror_flag" ||
7915          test ! -s conftest.err
7916        } && test -s conftest$ac_exeext &&
7917        $as_test_x conftest$ac_exeext; then
7918   ac_cv_func_dlopen=yes
7919 else
7920   echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7922
7923         ac_cv_func_dlopen=no
7924 fi
7925
7926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7927       conftest$ac_exeext conftest.$ac_ext
7928 fi
7929 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7930 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
7931 if test $ac_cv_func_dlopen = yes; then
7932   lt_cv_dlopen="dlopen"
7933 else
7934   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7935 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
7936 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7937   echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939   ac_check_lib_save_LIBS=$LIBS
7940 LIBS="-ldl  $LIBS"
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h.  */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h.  */
7947
7948 /* Override any GCC internal prototype to avoid an error.
7949    Use char because int might match the return type of a GCC
7950    builtin and then its argument prototype would still apply.  */
7951 #ifdef __cplusplus
7952 extern "C"
7953 #endif
7954 char dlopen ();
7955 int
7956 main ()
7957 {
7958 return dlopen ();
7959   ;
7960   return 0;
7961 }
7962 _ACEOF
7963 rm -f conftest.$ac_objext conftest$ac_exeext
7964 if { (ac_try="$ac_link"
7965 case "(($ac_try" in
7966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967   *) ac_try_echo=$ac_try;;
7968 esac
7969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970   (eval "$ac_link") 2>conftest.er1
7971   ac_status=$?
7972   grep -v '^ *+' conftest.er1 >conftest.err
7973   rm -f conftest.er1
7974   cat conftest.err >&5
7975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976   (exit $ac_status); } && {
7977          test -z "$ac_c_werror_flag" ||
7978          test ! -s conftest.err
7979        } && test -s conftest$ac_exeext &&
7980        $as_test_x conftest$ac_exeext; then
7981   ac_cv_lib_dl_dlopen=yes
7982 else
7983   echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7985
7986         ac_cv_lib_dl_dlopen=no
7987 fi
7988
7989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7990       conftest$ac_exeext conftest.$ac_ext
7991 LIBS=$ac_check_lib_save_LIBS
7992 fi
7993 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7994 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
7995 if test $ac_cv_lib_dl_dlopen = yes; then
7996   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7997 else
7998   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7999 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8000 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8001   echo $ECHO_N "(cached) $ECHO_C" >&6
8002 else
8003   ac_check_lib_save_LIBS=$LIBS
8004 LIBS="-lsvld  $LIBS"
8005 cat >conftest.$ac_ext <<_ACEOF
8006 /* confdefs.h.  */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h.  */
8011
8012 /* Override any GCC internal prototype to avoid an error.
8013    Use char because int might match the return type of a GCC
8014    builtin and then its argument prototype would still apply.  */
8015 #ifdef __cplusplus
8016 extern "C"
8017 #endif
8018 char dlopen ();
8019 int
8020 main ()
8021 {
8022 return dlopen ();
8023   ;
8024   return 0;
8025 }
8026 _ACEOF
8027 rm -f conftest.$ac_objext conftest$ac_exeext
8028 if { (ac_try="$ac_link"
8029 case "(($ac_try" in
8030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031   *) ac_try_echo=$ac_try;;
8032 esac
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034   (eval "$ac_link") 2>conftest.er1
8035   ac_status=$?
8036   grep -v '^ *+' conftest.er1 >conftest.err
8037   rm -f conftest.er1
8038   cat conftest.err >&5
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); } && {
8041          test -z "$ac_c_werror_flag" ||
8042          test ! -s conftest.err
8043        } && test -s conftest$ac_exeext &&
8044        $as_test_x conftest$ac_exeext; then
8045   ac_cv_lib_svld_dlopen=yes
8046 else
8047   echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8049
8050         ac_cv_lib_svld_dlopen=no
8051 fi
8052
8053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8054       conftest$ac_exeext conftest.$ac_ext
8055 LIBS=$ac_check_lib_save_LIBS
8056 fi
8057 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8058 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8059 if test $ac_cv_lib_svld_dlopen = yes; then
8060   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8061 else
8062   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8063 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8064 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8065   echo $ECHO_N "(cached) $ECHO_C" >&6
8066 else
8067   ac_check_lib_save_LIBS=$LIBS
8068 LIBS="-ldld  $LIBS"
8069 cat >conftest.$ac_ext <<_ACEOF
8070 /* confdefs.h.  */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h.  */
8075
8076 /* Override any GCC internal prototype to avoid an error.
8077    Use char because int might match the return type of a GCC
8078    builtin and then its argument prototype would still apply.  */
8079 #ifdef __cplusplus
8080 extern "C"
8081 #endif
8082 char dld_link ();
8083 int
8084 main ()
8085 {
8086 return dld_link ();
8087   ;
8088   return 0;
8089 }
8090 _ACEOF
8091 rm -f conftest.$ac_objext conftest$ac_exeext
8092 if { (ac_try="$ac_link"
8093 case "(($ac_try" in
8094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095   *) ac_try_echo=$ac_try;;
8096 esac
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098   (eval "$ac_link") 2>conftest.er1
8099   ac_status=$?
8100   grep -v '^ *+' conftest.er1 >conftest.err
8101   rm -f conftest.er1
8102   cat conftest.err >&5
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   (exit $ac_status); } && {
8105          test -z "$ac_c_werror_flag" ||
8106          test ! -s conftest.err
8107        } && test -s conftest$ac_exeext &&
8108        $as_test_x conftest$ac_exeext; then
8109   ac_cv_lib_dld_dld_link=yes
8110 else
8111   echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8113
8114         ac_cv_lib_dld_dld_link=no
8115 fi
8116
8117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8118       conftest$ac_exeext conftest.$ac_ext
8119 LIBS=$ac_check_lib_save_LIBS
8120 fi
8121 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8122 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8123 if test $ac_cv_lib_dld_dld_link = yes; then
8124   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8125 fi
8126
8127
8128 fi
8129
8130
8131 fi
8132
8133
8134 fi
8135
8136
8137 fi
8138
8139
8140 fi
8141
8142     ;;
8143   esac
8144
8145   if test "x$lt_cv_dlopen" != xno; then
8146     enable_dlopen=yes
8147   else
8148     enable_dlopen=no
8149   fi
8150
8151   case $lt_cv_dlopen in
8152   dlopen)
8153     save_CPPFLAGS="$CPPFLAGS"
8154         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8155
8156     save_LDFLAGS="$LDFLAGS"
8157     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8158
8159     save_LIBS="$LIBS"
8160     LIBS="$lt_cv_dlopen_libs $LIBS"
8161
8162     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8163 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8164 if test "${lt_cv_dlopen_self+set}" = set; then
8165   echo $ECHO_N "(cached) $ECHO_C" >&6
8166 else
8167           if test "$cross_compiling" = yes; then :
8168   lt_cv_dlopen_self=cross
8169 else
8170     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8171   lt_status=$lt_dlunknown
8172   cat > conftest.$ac_ext <<EOF
8173 #line 8173 "configure"
8174 #include "confdefs.h"
8175
8176 #if HAVE_DLFCN_H
8177 #include <dlfcn.h>
8178 #endif
8179
8180 #include <stdio.h>
8181
8182 #ifdef RTLD_GLOBAL
8183 #  define LT_DLGLOBAL           RTLD_GLOBAL
8184 #else
8185 #  ifdef DL_GLOBAL
8186 #    define LT_DLGLOBAL         DL_GLOBAL
8187 #  else
8188 #    define LT_DLGLOBAL         0
8189 #  endif
8190 #endif
8191
8192 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8193    find out it does not work in some platform. */
8194 #ifndef LT_DLLAZY_OR_NOW
8195 #  ifdef RTLD_LAZY
8196 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8197 #  else
8198 #    ifdef DL_LAZY
8199 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8200 #    else
8201 #      ifdef RTLD_NOW
8202 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8203 #      else
8204 #        ifdef DL_NOW
8205 #          define LT_DLLAZY_OR_NOW      DL_NOW
8206 #        else
8207 #          define LT_DLLAZY_OR_NOW      0
8208 #        endif
8209 #      endif
8210 #    endif
8211 #  endif
8212 #endif
8213
8214 #ifdef __cplusplus
8215 extern "C" void exit (int);
8216 #endif
8217
8218 void fnord() { int i=42;}
8219 int main ()
8220 {
8221   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8222   int status = $lt_dlunknown;
8223
8224   if (self)
8225     {
8226       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8227       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8228       /* dlclose (self); */
8229     }
8230
8231     exit (status);
8232 }
8233 EOF
8234   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235   (eval $ac_link) 2>&5
8236   ac_status=$?
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8239     (./conftest; exit; ) 2>/dev/null
8240     lt_status=$?
8241     case x$lt_status in
8242       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8243       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8244       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8245     esac
8246   else :
8247     # compilation failed
8248     lt_cv_dlopen_self=no
8249   fi
8250 fi
8251 rm -fr conftest*
8252
8253
8254 fi
8255 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8256 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
8257
8258     if test "x$lt_cv_dlopen_self" = xyes; then
8259       LDFLAGS="$LDFLAGS $link_static_flag"
8260       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8261 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
8262 if test "${lt_cv_dlopen_self_static+set}" = set; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265           if test "$cross_compiling" = yes; then :
8266   lt_cv_dlopen_self_static=cross
8267 else
8268     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8269   lt_status=$lt_dlunknown
8270   cat > conftest.$ac_ext <<EOF
8271 #line 8271 "configure"
8272 #include "confdefs.h"
8273
8274 #if HAVE_DLFCN_H
8275 #include <dlfcn.h>
8276 #endif
8277
8278 #include <stdio.h>
8279
8280 #ifdef RTLD_GLOBAL
8281 #  define LT_DLGLOBAL           RTLD_GLOBAL
8282 #else
8283 #  ifdef DL_GLOBAL
8284 #    define LT_DLGLOBAL         DL_GLOBAL
8285 #  else
8286 #    define LT_DLGLOBAL         0
8287 #  endif
8288 #endif
8289
8290 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8291    find out it does not work in some platform. */
8292 #ifndef LT_DLLAZY_OR_NOW
8293 #  ifdef RTLD_LAZY
8294 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8295 #  else
8296 #    ifdef DL_LAZY
8297 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8298 #    else
8299 #      ifdef RTLD_NOW
8300 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8301 #      else
8302 #        ifdef DL_NOW
8303 #          define LT_DLLAZY_OR_NOW      DL_NOW
8304 #        else
8305 #          define LT_DLLAZY_OR_NOW      0
8306 #        endif
8307 #      endif
8308 #    endif
8309 #  endif
8310 #endif
8311
8312 #ifdef __cplusplus
8313 extern "C" void exit (int);
8314 #endif
8315
8316 void fnord() { int i=42;}
8317 int main ()
8318 {
8319   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8320   int status = $lt_dlunknown;
8321
8322   if (self)
8323     {
8324       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8325       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8326       /* dlclose (self); */
8327     }
8328
8329     exit (status);
8330 }
8331 EOF
8332   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8333   (eval $ac_link) 2>&5
8334   ac_status=$?
8335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8337     (./conftest; exit; ) 2>/dev/null
8338     lt_status=$?
8339     case x$lt_status in
8340       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8341       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8342       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8343     esac
8344   else :
8345     # compilation failed
8346     lt_cv_dlopen_self_static=no
8347   fi
8348 fi
8349 rm -fr conftest*
8350
8351
8352 fi
8353 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8354 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
8355     fi
8356
8357     CPPFLAGS="$save_CPPFLAGS"
8358     LDFLAGS="$save_LDFLAGS"
8359     LIBS="$save_LIBS"
8360     ;;
8361   esac
8362
8363   case $lt_cv_dlopen_self in
8364   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8365   *) enable_dlopen_self=unknown ;;
8366   esac
8367
8368   case $lt_cv_dlopen_self_static in
8369   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8370   *) enable_dlopen_self_static=unknown ;;
8371   esac
8372 fi
8373
8374
8375 ## FIXME: this should be a separate macro
8376 ##
8377 if test "$enable_shared" = yes && test "$GCC" = yes; then
8378   case $archive_cmds in
8379   *'~'*)
8380     # FIXME: we may have to deal with multi-command sequences.
8381     ;;
8382   '$CC '*)
8383     # Test whether the compiler implicitly links with -lc since on some
8384     # systems, -lgcc has to come before -lc. If gcc already passes -lc
8385     # to ld, don't add -lc before -lgcc.
8386     { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8387 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8388     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8389   echo $ECHO_N "(cached) $ECHO_C" >&6
8390 else
8391   $rm conftest*
8392     echo 'static int dummy;' > conftest.$ac_ext
8393
8394     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8395   (eval $ac_compile) 2>&5
8396   ac_status=$?
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); }; then
8399       soname=conftest
8400       lib=conftest
8401       libobjs=conftest.$ac_objext
8402       deplibs=
8403       wl=$lt_cv_prog_cc_wl
8404       compiler_flags=-v
8405       linker_flags=-v
8406       verstring=
8407       output_objdir=.
8408       libname=conftest
8409       save_allow_undefined_flag=$allow_undefined_flag
8410       allow_undefined_flag=
8411       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8412   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); }
8416       then
8417         lt_cv_archive_cmds_need_lc=no
8418       else
8419         lt_cv_archive_cmds_need_lc=yes
8420       fi
8421       allow_undefined_flag=$save_allow_undefined_flag
8422     else
8423       cat conftest.err 1>&5
8424     fi
8425 fi
8426
8427     { echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8428 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6; }
8429     ;;
8430   esac
8431 fi
8432 need_lc=${lt_cv_archive_cmds_need_lc-yes}
8433 ##
8434 ## END FIXME
8435
8436 ## FIXME: this should be a separate macro
8437 ##
8438 # The second clause should only fire when bootstrapping the
8439 # libtool distribution, otherwise you forgot to ship ltmain.sh
8440 # with your package, and you will get complaints that there are
8441 # no rules to generate ltmain.sh.
8442 if test -f "$ltmain"; then
8443   :
8444 else
8445   # If there is no Makefile yet, we rely on a make rule to execute
8446   # `config.status --recheck' to rerun these tests and create the
8447   # libtool script then.
8448   test -f Makefile && make "$ltmain"
8449 fi
8450
8451 if test -f "$ltmain"; then
8452   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8453   $rm -f "${ofile}T"
8454
8455   echo creating $ofile
8456
8457   # Now quote all the things that may contain metacharacters while being
8458   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8459   # variables and quote the copies for generation of the libtool script.
8460   for var in echo old_CC old_CFLAGS \
8461     AR AR_FLAGS CC LD LN_S NM SHELL \
8462     reload_flag reload_cmds wl \
8463     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8464     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8465     library_names_spec soname_spec \
8466     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8467     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8468     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8469     old_striplib striplib file_magic_cmd export_symbols_cmds \
8470     deplibs_check_method allow_undefined_flag no_undefined_flag \
8471     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8472     global_symbol_to_c_name_address \
8473     hardcode_libdir_flag_spec hardcode_libdir_separator  \
8474     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8475     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8476
8477     case $var in
8478     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8479     old_postinstall_cmds | old_postuninstall_cmds | \
8480     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8481     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8482     postinstall_cmds | postuninstall_cmds | \
8483     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8484       # Double-quote double-evaled strings.
8485       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8486       ;;
8487     *)
8488       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8489       ;;
8490     esac
8491   done
8492
8493   cat <<__EOF__ > "${ofile}T"
8494 #! $SHELL
8495
8496 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8497 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8498 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8499 #
8500 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8501 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8502 #
8503 # This program is free software; you can redistribute it and/or modify
8504 # it under the terms of the GNU General Public License as published by
8505 # the Free Software Foundation; either version 2 of the License, or
8506 # (at your option) any later version.
8507 #
8508 # This program is distributed in the hope that it will be useful, but
8509 # WITHOUT ANY WARRANTY; without even the implied warranty of
8510 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8511 # General Public License for more details.
8512 #
8513 # You should have received a copy of the GNU General Public License
8514 # along with this program; if not, write to the Free Software
8515 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8516 #
8517 # As a special exception to the GNU General Public License, if you
8518 # distribute this file as part of a program that contains a
8519 # configuration script generated by Autoconf, you may include it under
8520 # the same distribution terms that you use for the rest of that program.
8521
8522 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8523 Xsed="sed -e s/^X//"
8524
8525 # The HP-UX ksh and POSIX shell print the target directory to stdout
8526 # if CDPATH is set.
8527 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8528
8529 # ### BEGIN LIBTOOL CONFIG
8530
8531 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8532
8533 # Shell to use when invoking shell scripts.
8534 SHELL=$lt_SHELL
8535
8536 # Whether or not to build shared libraries.
8537 build_libtool_libs=$enable_shared
8538
8539 # Whether or not to build static libraries.
8540 build_old_libs=$enable_static
8541
8542 # Whether or not to add -lc for building shared libraries.
8543 build_libtool_need_lc=$need_lc
8544
8545 # Whether or not to optimize for fast installation.
8546 fast_install=$enable_fast_install
8547
8548 # The host system.
8549 host_alias=$host_alias
8550 host=$host
8551
8552 # An echo program that does not interpret backslashes.
8553 echo=$lt_echo
8554
8555 # The archiver.
8556 AR=$lt_AR
8557 AR_FLAGS=$lt_AR_FLAGS
8558
8559 # The default C compiler.
8560 CC=$lt_CC
8561
8562 # Is the compiler the GNU C compiler?
8563 with_gcc=$GCC
8564
8565 # The linker used to build libraries.
8566 LD=$lt_LD
8567
8568 # Whether we need hard or soft links.
8569 LN_S=$lt_LN_S
8570
8571 # A BSD-compatible nm program.
8572 NM=$lt_NM
8573
8574 # A symbol stripping program
8575 STRIP=$STRIP
8576
8577 # Used to examine libraries when file_magic_cmd begins "file"
8578 MAGIC_CMD=$MAGIC_CMD
8579
8580 # Used on cygwin: DLL creation program.
8581 DLLTOOL="$DLLTOOL"
8582
8583 # Used on cygwin: object dumper.
8584 OBJDUMP="$OBJDUMP"
8585
8586 # Used on cygwin: assembler.
8587 AS="$AS"
8588
8589 # The name of the directory that contains temporary libtool files.
8590 objdir=$objdir
8591
8592 # How to create reloadable object files.
8593 reload_flag=$lt_reload_flag
8594 reload_cmds=$lt_reload_cmds
8595
8596 # How to pass a linker flag through the compiler.
8597 wl=$lt_wl
8598
8599 # Object file suffix (normally "o").
8600 objext="$ac_objext"
8601
8602 # Old archive suffix (normally "a").
8603 libext="$libext"
8604
8605 # Executable file suffix (normally "").
8606 exeext="$exeext"
8607
8608 # Additional compiler flags for building library objects.
8609 pic_flag=$lt_pic_flag
8610 pic_mode=$pic_mode
8611
8612 # Does compiler simultaneously support -c and -o options?
8613 compiler_c_o=$lt_compiler_c_o
8614
8615 # Can we write directly to a .lo ?
8616 compiler_o_lo=$lt_compiler_o_lo
8617
8618 # Must we lock files when doing compilation ?
8619 need_locks=$lt_need_locks
8620
8621 # Do we need the lib prefix for modules?
8622 need_lib_prefix=$need_lib_prefix
8623
8624 # Do we need a version for libraries?
8625 need_version=$need_version
8626
8627 # Whether dlopen is supported.
8628 dlopen_support=$enable_dlopen
8629
8630 # Whether dlopen of programs is supported.
8631 dlopen_self=$enable_dlopen_self
8632
8633 # Whether dlopen of statically linked programs is supported.
8634 dlopen_self_static=$enable_dlopen_self_static
8635
8636 # Compiler flag to prevent dynamic linking.
8637 link_static_flag=$lt_link_static_flag
8638
8639 # Compiler flag to turn off builtin functions.
8640 no_builtin_flag=$lt_no_builtin_flag
8641
8642 # Compiler flag to allow reflexive dlopens.
8643 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8644
8645 # Compiler flag to generate shared objects directly from archives.
8646 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8647
8648 # Compiler flag to generate thread-safe objects.
8649 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8650
8651 # Library versioning type.
8652 version_type=$version_type
8653
8654 # Format of library name prefix.
8655 libname_spec=$lt_libname_spec
8656
8657 # List of archive names.  First name is the real one, the rest are links.
8658 # The last name is the one that the linker finds with -lNAME.
8659 library_names_spec=$lt_library_names_spec
8660
8661 # The coded name of the library, if different from the real name.
8662 soname_spec=$lt_soname_spec
8663
8664 # Commands used to build and install an old-style archive.
8665 RANLIB=$lt_RANLIB
8666 old_archive_cmds=$lt_old_archive_cmds
8667 old_postinstall_cmds=$lt_old_postinstall_cmds
8668 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8669
8670 # Create an old-style archive from a shared archive.
8671 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8672
8673 # Create a temporary old-style archive to link instead of a shared archive.
8674 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8675
8676 # Commands used to build and install a shared archive.
8677 archive_cmds=$lt_archive_cmds
8678 archive_expsym_cmds=$lt_archive_expsym_cmds
8679 postinstall_cmds=$lt_postinstall_cmds
8680 postuninstall_cmds=$lt_postuninstall_cmds
8681
8682 # Commands to strip libraries.
8683 old_striplib=$lt_old_striplib
8684 striplib=$lt_striplib
8685
8686 # Method to check whether dependent libraries are shared objects.
8687 deplibs_check_method=$lt_deplibs_check_method
8688
8689 # Command to use when deplibs_check_method == file_magic.
8690 file_magic_cmd=$lt_file_magic_cmd
8691
8692 # Flag that allows shared libraries with undefined symbols to be built.
8693 allow_undefined_flag=$lt_allow_undefined_flag
8694
8695 # Flag that forces no undefined symbols.
8696 no_undefined_flag=$lt_no_undefined_flag
8697
8698 # Commands used to finish a libtool library installation in a directory.
8699 finish_cmds=$lt_finish_cmds
8700
8701 # Same as above, but a single script fragment to be evaled but not shown.
8702 finish_eval=$lt_finish_eval
8703
8704 # Take the output of nm and produce a listing of raw symbols and C names.
8705 global_symbol_pipe=$lt_global_symbol_pipe
8706
8707 # Transform the output of nm in a proper C declaration
8708 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8709
8710 # Transform the output of nm in a C name address pair
8711 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8712
8713 # This is the shared library runtime path variable.
8714 runpath_var=$runpath_var
8715
8716 # This is the shared library path variable.
8717 shlibpath_var=$shlibpath_var
8718
8719 # Is shlibpath searched before the hard-coded library search path?
8720 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8721
8722 # How to hardcode a shared library path into an executable.
8723 hardcode_action=$hardcode_action
8724
8725 # Whether we should hardcode library paths into libraries.
8726 hardcode_into_libs=$hardcode_into_libs
8727
8728 # Flag to hardcode \$libdir into a binary during linking.
8729 # This must work even if \$libdir does not exist.
8730 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8731
8732 # Whether we need a single -rpath flag with a separated argument.
8733 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8734
8735 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8736 # resulting binary.
8737 hardcode_direct=$hardcode_direct
8738
8739 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8740 # resulting binary.
8741 hardcode_minus_L=$hardcode_minus_L
8742
8743 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8744 # the resulting binary.
8745 hardcode_shlibpath_var=$hardcode_shlibpath_var
8746
8747 # Variables whose values should be saved in libtool wrapper scripts and
8748 # restored at relink time.
8749 variables_saved_for_relink="$variables_saved_for_relink"
8750
8751 # Whether libtool must link a program against all its dependency libraries.
8752 link_all_deplibs=$link_all_deplibs
8753
8754 # Compile-time system search path for libraries
8755 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8756
8757 # Run-time system search path for libraries
8758 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8759
8760 # Fix the shell variable \$srcfile for the compiler.
8761 fix_srcfile_path="$fix_srcfile_path"
8762
8763 # Set to yes if exported symbols are required.
8764 always_export_symbols=$always_export_symbols
8765
8766 # The commands to list exported symbols.
8767 export_symbols_cmds=$lt_export_symbols_cmds
8768
8769 # The commands to extract the exported symbol list from a shared archive.
8770 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8771
8772 # Symbols that should not be listed in the preloaded symbols.
8773 exclude_expsyms=$lt_exclude_expsyms
8774
8775 # Symbols that must always be exported.
8776 include_expsyms=$lt_include_expsyms
8777
8778 # ### END LIBTOOL CONFIG
8779
8780 __EOF__
8781
8782   case $host_os in
8783   aix3*)
8784     cat <<\EOF >> "${ofile}T"
8785
8786 # AIX sometimes has problems with the GCC collect2 program.  For some
8787 # reason, if we set the COLLECT_NAMES environment variable, the problems
8788 # vanish in a puff of smoke.
8789 if test "X${COLLECT_NAMES+set}" != Xset; then
8790   COLLECT_NAMES=
8791   export COLLECT_NAMES
8792 fi
8793 EOF
8794     ;;
8795   esac
8796
8797   case $host_os in
8798   cygwin* | mingw* | pw32* | os2*)
8799     cat <<'EOF' >> "${ofile}T"
8800       # This is a source program that is used to create dlls on Windows
8801       # Don't remove nor modify the starting and closing comments
8802 # /* ltdll.c starts here */
8803 # #define WIN32_LEAN_AND_MEAN
8804 # #include <windows.h>
8805 # #undef WIN32_LEAN_AND_MEAN
8806 # #include <stdio.h>
8807 #
8808 # #ifndef __CYGWIN__
8809 # #  ifdef __CYGWIN32__
8810 # #    define __CYGWIN__ __CYGWIN32__
8811 # #  endif
8812 # #endif
8813 #
8814 # #ifdef __cplusplus
8815 # extern "C" {
8816 # #endif
8817 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8818 # #ifdef __cplusplus
8819 # }
8820 # #endif
8821 #
8822 # #ifdef __CYGWIN__
8823 # #include <cygwin/cygwin_dll.h>
8824 # DECLARE_CYGWIN_DLL( DllMain );
8825 # #endif
8826 # HINSTANCE __hDllInstance_base;
8827 #
8828 # BOOL APIENTRY
8829 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8830 # {
8831 #   __hDllInstance_base = hInst;
8832 #   return TRUE;
8833 # }
8834 # /* ltdll.c ends here */
8835         # This is a source program that is used to create import libraries
8836         # on Windows for dlls which lack them. Don't remove nor modify the
8837         # starting and closing comments
8838 # /* impgen.c starts here */
8839 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8840 #
8841 #  This file is part of GNU libtool.
8842 #
8843 #  This program is free software; you can redistribute it and/or modify
8844 #  it under the terms of the GNU General Public License as published by
8845 #  the Free Software Foundation; either version 2 of the License, or
8846 #  (at your option) any later version.
8847 #
8848 #  This program is distributed in the hope that it will be useful,
8849 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8850 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8851 #  GNU General Public License for more details.
8852 #
8853 #  You should have received a copy of the GNU General Public License
8854 #  along with this program; if not, write to the Free Software
8855 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8856 #  */
8857 #
8858 # #include <stdio.h>            /* for printf() */
8859 # #include <unistd.h>           /* for open(), lseek(), read() */
8860 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8861 # #include <string.h>           /* for strdup() */
8862 #
8863 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8864 # #ifndef O_BINARY
8865 # #define O_BINARY 0
8866 # #endif
8867 #
8868 # static unsigned int
8869 # pe_get16 (fd, offset)
8870 #      int fd;
8871 #      int offset;
8872 # {
8873 #   unsigned char b[2];
8874 #   lseek (fd, offset, SEEK_SET);
8875 #   read (fd, b, 2);
8876 #   return b[0] + (b[1]<<8);
8877 # }
8878 #
8879 # static unsigned int
8880 # pe_get32 (fd, offset)
8881 #     int fd;
8882 #     int offset;
8883 # {
8884 #   unsigned char b[4];
8885 #   lseek (fd, offset, SEEK_SET);
8886 #   read (fd, b, 4);
8887 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8888 # }
8889 #
8890 # static unsigned int
8891 # pe_as32 (ptr)
8892 #      void *ptr;
8893 # {
8894 #   unsigned char *b = ptr;
8895 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8896 # }
8897 #
8898 # int
8899 # main (argc, argv)
8900 #     int argc;
8901 #     char *argv[];
8902 # {
8903 #     int dll;
8904 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8905 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8906 #     unsigned long name_rvas, nexp;
8907 #     unsigned char *expdata, *erva;
8908 #     char *filename, *dll_name;
8909 #
8910 #     filename = argv[1];
8911 #
8912 #     dll = open(filename, O_RDONLY|O_BINARY);
8913 #     if (dll < 1)
8914 #       return 1;
8915 #
8916 #     dll_name = filename;
8917 #
8918 #     for (i=0; filename[i]; i++)
8919 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8920 #           dll_name = filename + i +1;
8921 #
8922 #     pe_header_offset = pe_get32 (dll, 0x3c);
8923 #     opthdr_ofs = pe_header_offset + 4 + 20;
8924 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8925 #
8926 #     if (num_entries < 1) /* no exports */
8927 #       return 1;
8928 #
8929 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8930 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8931 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8932 #     secptr = (pe_header_offset + 4 + 20 +
8933 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8934 #
8935 #     expptr = 0;
8936 #     for (i = 0; i < nsections; i++)
8937 #     {
8938 #       char sname[8];
8939 #       unsigned long secptr1 = secptr + 40 * i;
8940 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8941 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8942 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8943 #       lseek(dll, secptr1, SEEK_SET);
8944 #       read(dll, sname, 8);
8945 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8946 #       {
8947 #           expptr = fptr + (export_rva - vaddr);
8948 #           if (export_rva + export_size > vaddr + vsize)
8949 #               export_size = vsize - (export_rva - vaddr);
8950 #           break;
8951 #       }
8952 #     }
8953 #
8954 #     expdata = (unsigned char*)malloc(export_size);
8955 #     lseek (dll, expptr, SEEK_SET);
8956 #     read (dll, expdata, export_size);
8957 #     erva = expdata - export_rva;
8958 #
8959 #     nexp = pe_as32 (expdata+24);
8960 #     name_rvas = pe_as32 (expdata+32);
8961 #
8962 #     printf ("EXPORTS\n");
8963 #     for (i = 0; i<nexp; i++)
8964 #     {
8965 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8966 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8967 #     }
8968 #
8969 #     return 0;
8970 # }
8971 # /* impgen.c ends here */
8972
8973 EOF
8974     ;;
8975   esac
8976
8977   # We use sed instead of cat because bash on DJGPP gets confused if
8978   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8979   # text mode, it properly converts lines to CR/LF.  This bash problem
8980   # is reportedly fixed, but why not run on old versions too?
8981   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8982
8983   mv -f "${ofile}T" "$ofile" || \
8984     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8985   chmod +x "$ofile"
8986 fi
8987 ##
8988 ## END FIXME
8989
8990
8991
8992
8993
8994 # This can be used to rebuild libtool when needed
8995 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8996
8997 # Always use our own libtool.
8998 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8999
9000 # Prevent multiple expansion
9001
9002
9003
9004
9005 for ac_prog in flex lex
9006 do
9007   # Extract the first word of "$ac_prog", so it can be a program name with args.
9008 set dummy $ac_prog; ac_word=$2
9009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9011 if test "${ac_cv_prog_LEX+set}" = set; then
9012   echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9014   if test -n "$LEX"; then
9015   ac_cv_prog_LEX="$LEX" # Let the user override the test.
9016 else
9017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018 for as_dir in $PATH
9019 do
9020   IFS=$as_save_IFS
9021   test -z "$as_dir" && as_dir=.
9022   for ac_exec_ext in '' $ac_executable_extensions; do
9023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9024     ac_cv_prog_LEX="$ac_prog"
9025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9026     break 2
9027   fi
9028 done
9029 done
9030 IFS=$as_save_IFS
9031
9032 fi
9033 fi
9034 LEX=$ac_cv_prog_LEX
9035 if test -n "$LEX"; then
9036   { echo "$as_me:$LINENO: result: $LEX" >&5
9037 echo "${ECHO_T}$LEX" >&6; }
9038 else
9039   { echo "$as_me:$LINENO: result: no" >&5
9040 echo "${ECHO_T}no" >&6; }
9041 fi
9042
9043
9044   test -n "$LEX" && break
9045 done
9046 test -n "$LEX" || LEX=":"
9047
9048 if test "x$LEX" != "x:"; then
9049   cat >conftest.l <<_ACEOF
9050 %%
9051 a { ECHO; }
9052 b { REJECT; }
9053 c { yymore (); }
9054 d { yyless (1); }
9055 e { yyless (input () != 0); }
9056 f { unput (yytext[0]); }
9057 . { BEGIN INITIAL; }
9058 %%
9059 #ifdef YYTEXT_POINTER
9060 extern char *yytext;
9061 #endif
9062 int
9063 main (void)
9064 {
9065   return ! yylex () + ! yywrap ();
9066 }
9067 _ACEOF
9068 { (ac_try="$LEX conftest.l"
9069 case "(($ac_try" in
9070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071   *) ac_try_echo=$ac_try;;
9072 esac
9073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074   (eval "$LEX conftest.l") 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }
9078 { echo "$as_me:$LINENO: checking lex output file root" >&5
9079 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
9080 if test "${ac_cv_prog_lex_root+set}" = set; then
9081   echo $ECHO_N "(cached) $ECHO_C" >&6
9082 else
9083
9084 if test -f lex.yy.c; then
9085   ac_cv_prog_lex_root=lex.yy
9086 elif test -f lexyy.c; then
9087   ac_cv_prog_lex_root=lexyy
9088 else
9089   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9090 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9091    { (exit 1); exit 1; }; }
9092 fi
9093 fi
9094 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9095 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
9096 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9097
9098 if test -z "${LEXLIB+set}"; then
9099   { echo "$as_me:$LINENO: checking lex library" >&5
9100 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
9101 if test "${ac_cv_lib_lex+set}" = set; then
9102   echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104
9105     ac_save_LIBS=$LIBS
9106     ac_cv_lib_lex='none needed'
9107     for ac_lib in '' -lfl -ll; do
9108       LIBS="$ac_lib $ac_save_LIBS"
9109       cat >conftest.$ac_ext <<_ACEOF
9110 `cat $LEX_OUTPUT_ROOT.c`
9111 _ACEOF
9112 rm -f conftest.$ac_objext conftest$ac_exeext
9113 if { (ac_try="$ac_link"
9114 case "(($ac_try" in
9115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116   *) ac_try_echo=$ac_try;;
9117 esac
9118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9119   (eval "$ac_link") 2>conftest.er1
9120   ac_status=$?
9121   grep -v '^ *+' conftest.er1 >conftest.err
9122   rm -f conftest.er1
9123   cat conftest.err >&5
9124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   (exit $ac_status); } && {
9126          test -z "$ac_c_werror_flag" ||
9127          test ! -s conftest.err
9128        } && test -s conftest$ac_exeext &&
9129        $as_test_x conftest$ac_exeext; then
9130   ac_cv_lib_lex=$ac_lib
9131 else
9132   echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9134
9135
9136 fi
9137
9138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9139       conftest$ac_exeext conftest.$ac_ext
9140       test "$ac_cv_lib_lex" != 'none needed' && break
9141     done
9142     LIBS=$ac_save_LIBS
9143
9144 fi
9145 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
9146 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
9147   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
9148 fi
9149
9150
9151 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9152 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
9153 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9154   echo $ECHO_N "(cached) $ECHO_C" >&6
9155 else
9156   # POSIX says lex can declare yytext either as a pointer or an array; the
9157 # default is implementation-dependent.  Figure out which it is, since
9158 # not all implementations provide the %pointer and %array declarations.
9159 ac_cv_prog_lex_yytext_pointer=no
9160 ac_save_LIBS=$LIBS
9161 LIBS="$LEXLIB $ac_save_LIBS"
9162 cat >conftest.$ac_ext <<_ACEOF
9163 #define YYTEXT_POINTER 1
9164 `cat $LEX_OUTPUT_ROOT.c`
9165 _ACEOF
9166 rm -f conftest.$ac_objext conftest$ac_exeext
9167 if { (ac_try="$ac_link"
9168 case "(($ac_try" in
9169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9170   *) ac_try_echo=$ac_try;;
9171 esac
9172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9173   (eval "$ac_link") 2>conftest.er1
9174   ac_status=$?
9175   grep -v '^ *+' conftest.er1 >conftest.err
9176   rm -f conftest.er1
9177   cat conftest.err >&5
9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179   (exit $ac_status); } && {
9180          test -z "$ac_c_werror_flag" ||
9181          test ! -s conftest.err
9182        } && test -s conftest$ac_exeext &&
9183        $as_test_x conftest$ac_exeext; then
9184   ac_cv_prog_lex_yytext_pointer=yes
9185 else
9186   echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9188
9189
9190 fi
9191
9192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9193       conftest$ac_exeext conftest.$ac_ext
9194 LIBS=$ac_save_LIBS
9195
9196 fi
9197 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9198 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
9199 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9200
9201 cat >>confdefs.h <<\_ACEOF
9202 #define YYTEXT_POINTER 1
9203 _ACEOF
9204
9205 fi
9206 rm -f conftest.l $LEX_OUTPUT_ROOT.c
9207
9208 fi
9209 if test ${LEX} = "flex"; then
9210         cat >>confdefs.h <<\_ACEOF
9211 #define HAVE_FLEX 1
9212 _ACEOF
9213
9214 fi
9215 for ac_prog in 'bison -y' byacc
9216 do
9217   # Extract the first word of "$ac_prog", so it can be a program name with args.
9218 set dummy $ac_prog; ac_word=$2
9219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9221 if test "${ac_cv_prog_YACC+set}" = set; then
9222   echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224   if test -n "$YACC"; then
9225   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9226 else
9227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228 for as_dir in $PATH
9229 do
9230   IFS=$as_save_IFS
9231   test -z "$as_dir" && as_dir=.
9232   for ac_exec_ext in '' $ac_executable_extensions; do
9233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9234     ac_cv_prog_YACC="$ac_prog"
9235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9236     break 2
9237   fi
9238 done
9239 done
9240 IFS=$as_save_IFS
9241
9242 fi
9243 fi
9244 YACC=$ac_cv_prog_YACC
9245 if test -n "$YACC"; then
9246   { echo "$as_me:$LINENO: result: $YACC" >&5
9247 echo "${ECHO_T}$YACC" >&6; }
9248 else
9249   { echo "$as_me:$LINENO: result: no" >&5
9250 echo "${ECHO_T}no" >&6; }
9251 fi
9252
9253
9254   test -n "$YACC" && break
9255 done
9256 test -n "$YACC" || YACC="yacc"
9257
9258 # Extract the first word of "bison++", so it can be a program name with args.
9259 set dummy bison++; ac_word=$2
9260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9262 if test "${ac_cv_prog_BISON_PLUS_PLUS+set}" = set; then
9263   echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else
9265   if test -n "$BISON_PLUS_PLUS"; then
9266   ac_cv_prog_BISON_PLUS_PLUS="$BISON_PLUS_PLUS" # Let the user override the test.
9267 else
9268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 for as_dir in $PATH
9270 do
9271   IFS=$as_save_IFS
9272   test -z "$as_dir" && as_dir=.
9273   for ac_exec_ext in '' $ac_executable_extensions; do
9274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9275     ac_cv_prog_BISON_PLUS_PLUS="bison++"
9276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9277     break 2
9278   fi
9279 done
9280 done
9281 IFS=$as_save_IFS
9282
9283   test -z "$ac_cv_prog_BISON_PLUS_PLUS" && ac_cv_prog_BISON_PLUS_PLUS=":"
9284 fi
9285 fi
9286 BISON_PLUS_PLUS=$ac_cv_prog_BISON_PLUS_PLUS
9287 if test -n "$BISON_PLUS_PLUS"; then
9288   { echo "$as_me:$LINENO: result: $BISON_PLUS_PLUS" >&5
9289 echo "${ECHO_T}$BISON_PLUS_PLUS" >&6; }
9290 else
9291   { echo "$as_me:$LINENO: result: no" >&5
9292 echo "${ECHO_T}no" >&6; }
9293 fi
9294
9295
9296
9297
9298 ac_ext=cpp
9299 ac_cpp='$CXXCPP $CPPFLAGS'
9300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9303
9304
9305 # Checking for header files.
9306 # ===========================================================================
9307
9308 if test -d /stuff/include; then
9309   CPPFLAGS="$CPPFLAGS -I/stuff/include"
9310 fi
9311
9312
9313
9314 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9315 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9316 if test "${ac_cv_header_stdc+set}" = set; then
9317   echo $ECHO_N "(cached) $ECHO_C" >&6
9318 else
9319   cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h.  */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h.  */
9325 #include <stdlib.h>
9326 #include <stdarg.h>
9327 #include <string.h>
9328 #include <float.h>
9329
9330 int
9331 main ()
9332 {
9333
9334   ;
9335   return 0;
9336 }
9337 _ACEOF
9338 rm -f conftest.$ac_objext
9339 if { (ac_try="$ac_compile"
9340 case "(($ac_try" in
9341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342   *) ac_try_echo=$ac_try;;
9343 esac
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345   (eval "$ac_compile") 2>conftest.er1
9346   ac_status=$?
9347   grep -v '^ *+' conftest.er1 >conftest.err
9348   rm -f conftest.er1
9349   cat conftest.err >&5
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); } && {
9352          test -z "$ac_cxx_werror_flag" ||
9353          test ! -s conftest.err
9354        } && test -s conftest.$ac_objext; then
9355   ac_cv_header_stdc=yes
9356 else
9357   echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9359
9360         ac_cv_header_stdc=no
9361 fi
9362
9363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9364
9365 if test $ac_cv_header_stdc = yes; then
9366   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9367   cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h.  */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h.  */
9373 #include <string.h>
9374
9375 _ACEOF
9376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9377   $EGREP "memchr" >/dev/null 2>&1; then
9378   :
9379 else
9380   ac_cv_header_stdc=no
9381 fi
9382 rm -f conftest*
9383
9384 fi
9385
9386 if test $ac_cv_header_stdc = yes; then
9387   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9388   cat >conftest.$ac_ext <<_ACEOF
9389 /* confdefs.h.  */
9390 _ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h.  */
9394 #include <stdlib.h>
9395
9396 _ACEOF
9397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9398   $EGREP "free" >/dev/null 2>&1; then
9399   :
9400 else
9401   ac_cv_header_stdc=no
9402 fi
9403 rm -f conftest*
9404
9405 fi
9406
9407 if test $ac_cv_header_stdc = yes; then
9408   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9409   if test "$cross_compiling" = yes; then
9410   :
9411 else
9412   cat >conftest.$ac_ext <<_ACEOF
9413 /* confdefs.h.  */
9414 _ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h.  */
9418 #include <ctype.h>
9419 #include <stdlib.h>
9420 #if ((' ' & 0x0FF) == 0x020)
9421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9423 #else
9424 # define ISLOWER(c) \
9425                    (('a' <= (c) && (c) <= 'i') \
9426                      || ('j' <= (c) && (c) <= 'r') \
9427                      || ('s' <= (c) && (c) <= 'z'))
9428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9429 #endif
9430
9431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9432 int
9433 main ()
9434 {
9435   int i;
9436   for (i = 0; i < 256; i++)
9437     if (XOR (islower (i), ISLOWER (i))
9438         || toupper (i) != TOUPPER (i))
9439       return 2;
9440   return 0;
9441 }
9442 _ACEOF
9443 rm -f conftest$ac_exeext
9444 if { (ac_try="$ac_link"
9445 case "(($ac_try" in
9446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447   *) ac_try_echo=$ac_try;;
9448 esac
9449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450   (eval "$ac_link") 2>&5
9451   ac_status=$?
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9454   { (case "(($ac_try" in
9455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456   *) ac_try_echo=$ac_try;;
9457 esac
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459   (eval "$ac_try") 2>&5
9460   ac_status=$?
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); }; }; then
9463   :
9464 else
9465   echo "$as_me: program exited with status $ac_status" >&5
9466 echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9468
9469 ( exit $ac_status )
9470 ac_cv_header_stdc=no
9471 fi
9472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9473 fi
9474
9475
9476 fi
9477 fi
9478 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9479 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9480 if test $ac_cv_header_stdc = yes; then
9481
9482 cat >>confdefs.h <<\_ACEOF
9483 #define STDC_HEADERS 1
9484 _ACEOF
9485
9486 fi
9487
9488
9489
9490
9491 for ac_header in getopt.h unistd.h termios.h
9492 do
9493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9495   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9498   echo $ECHO_N "(cached) $ECHO_C" >&6
9499 fi
9500 ac_res=`eval echo '${'$as_ac_Header'}'`
9501                { echo "$as_me:$LINENO: result: $ac_res" >&5
9502 echo "${ECHO_T}$ac_res" >&6; }
9503 else
9504   # Is the header compilable?
9505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9507 cat >conftest.$ac_ext <<_ACEOF
9508 /* confdefs.h.  */
9509 _ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h.  */
9513 $ac_includes_default
9514 #include <$ac_header>
9515 _ACEOF
9516 rm -f conftest.$ac_objext
9517 if { (ac_try="$ac_compile"
9518 case "(($ac_try" in
9519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520   *) ac_try_echo=$ac_try;;
9521 esac
9522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523   (eval "$ac_compile") 2>conftest.er1
9524   ac_status=$?
9525   grep -v '^ *+' conftest.er1 >conftest.err
9526   rm -f conftest.er1
9527   cat conftest.err >&5
9528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); } && {
9530          test -z "$ac_cxx_werror_flag" ||
9531          test ! -s conftest.err
9532        } && test -s conftest.$ac_objext; then
9533   ac_header_compiler=yes
9534 else
9535   echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9537
9538         ac_header_compiler=no
9539 fi
9540
9541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9543 echo "${ECHO_T}$ac_header_compiler" >&6; }
9544
9545 # Is the header present?
9546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9548 cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h.  */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h.  */
9554 #include <$ac_header>
9555 _ACEOF
9556 if { (ac_try="$ac_cpp conftest.$ac_ext"
9557 case "(($ac_try" in
9558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559   *) ac_try_echo=$ac_try;;
9560 esac
9561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9563   ac_status=$?
9564   grep -v '^ *+' conftest.er1 >conftest.err
9565   rm -f conftest.er1
9566   cat conftest.err >&5
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); } >/dev/null && {
9569          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9570          test ! -s conftest.err
9571        }; then
9572   ac_header_preproc=yes
9573 else
9574   echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9576
9577   ac_header_preproc=no
9578 fi
9579
9580 rm -f conftest.err conftest.$ac_ext
9581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9582 echo "${ECHO_T}$ac_header_preproc" >&6; }
9583
9584 # So?  What about this header?
9585 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9586   yes:no: )
9587     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9591     ac_header_preproc=yes
9592     ;;
9593   no:yes:* )
9594     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9596     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9597 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9598     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9600     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9601 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9602     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9604     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9606
9607     ;;
9608 esac
9609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9612   echo $ECHO_N "(cached) $ECHO_C" >&6
9613 else
9614   eval "$as_ac_Header=\$ac_header_preproc"
9615 fi
9616 ac_res=`eval echo '${'$as_ac_Header'}'`
9617                { echo "$as_me:$LINENO: result: $ac_res" >&5
9618 echo "${ECHO_T}$ac_res" >&6; }
9619
9620 fi
9621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9622   cat >>confdefs.h <<_ACEOF
9623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9624 _ACEOF
9625
9626 fi
9627
9628 done
9629
9630
9631 if test "${ac_cv_header_curses_h+set}" = set; then
9632   { echo "$as_me:$LINENO: checking for curses.h" >&5
9633 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
9634 if test "${ac_cv_header_curses_h+set}" = set; then
9635   echo $ECHO_N "(cached) $ECHO_C" >&6
9636 fi
9637 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
9638 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
9639 else
9640   # Is the header compilable?
9641 { echo "$as_me:$LINENO: checking curses.h usability" >&5
9642 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
9643 cat >conftest.$ac_ext <<_ACEOF
9644 /* confdefs.h.  */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h.  */
9649 $ac_includes_default
9650 #include <curses.h>
9651 _ACEOF
9652 rm -f conftest.$ac_objext
9653 if { (ac_try="$ac_compile"
9654 case "(($ac_try" in
9655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656   *) ac_try_echo=$ac_try;;
9657 esac
9658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659   (eval "$ac_compile") 2>conftest.er1
9660   ac_status=$?
9661   grep -v '^ *+' conftest.er1 >conftest.err
9662   rm -f conftest.er1
9663   cat conftest.err >&5
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); } && {
9666          test -z "$ac_cxx_werror_flag" ||
9667          test ! -s conftest.err
9668        } && test -s conftest.$ac_objext; then
9669   ac_header_compiler=yes
9670 else
9671   echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9673
9674         ac_header_compiler=no
9675 fi
9676
9677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9679 echo "${ECHO_T}$ac_header_compiler" >&6; }
9680
9681 # Is the header present?
9682 { echo "$as_me:$LINENO: checking curses.h presence" >&5
9683 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
9684 cat >conftest.$ac_ext <<_ACEOF
9685 /* confdefs.h.  */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h.  */
9690 #include <curses.h>
9691 _ACEOF
9692 if { (ac_try="$ac_cpp conftest.$ac_ext"
9693 case "(($ac_try" in
9694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9695   *) ac_try_echo=$ac_try;;
9696 esac
9697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9698   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9699   ac_status=$?
9700   grep -v '^ *+' conftest.er1 >conftest.err
9701   rm -f conftest.er1
9702   cat conftest.err >&5
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); } >/dev/null && {
9705          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9706          test ! -s conftest.err
9707        }; then
9708   ac_header_preproc=yes
9709 else
9710   echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9712
9713   ac_header_preproc=no
9714 fi
9715
9716 rm -f conftest.err conftest.$ac_ext
9717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9718 echo "${ECHO_T}$ac_header_preproc" >&6; }
9719
9720 # So?  What about this header?
9721 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9722   yes:no: )
9723     { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
9724 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9725     { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
9726 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
9727     ac_header_preproc=yes
9728     ;;
9729   no:yes:* )
9730     { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
9731 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
9732     { echo "$as_me:$LINENO: WARNING: curses.h:     check for missing prerequisite headers?" >&5
9733 echo "$as_me: WARNING: curses.h:     check for missing prerequisite headers?" >&2;}
9734     { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
9735 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
9736     { echo "$as_me:$LINENO: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&5
9737 echo "$as_me: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9738     { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
9739 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
9740     { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
9741 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
9742
9743     ;;
9744 esac
9745 { echo "$as_me:$LINENO: checking for curses.h" >&5
9746 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
9747 if test "${ac_cv_header_curses_h+set}" = set; then
9748   echo $ECHO_N "(cached) $ECHO_C" >&6
9749 else
9750   ac_cv_header_curses_h=$ac_header_preproc
9751 fi
9752 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
9753 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
9754
9755 fi
9756 if test $ac_cv_header_curses_h = yes; then
9757   cat >>confdefs.h <<\_ACEOF
9758 #define HAVE_CURSES_H 1
9759 _ACEOF
9760
9761   curses_h_ok=yes
9762 else
9763   curses_h_ok=no
9764
9765 fi
9766
9767
9768
9769 ucsim_cv_socket="unknown"
9770 if test "${ac_cv_header_sys_socket_h+set}" = set; then
9771   { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
9772 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
9773 if test "${ac_cv_header_sys_socket_h+set}" = set; then
9774   echo $ECHO_N "(cached) $ECHO_C" >&6
9775 fi
9776 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
9777 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
9778 else
9779   # Is the header compilable?
9780 { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
9781 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
9782 cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h.  */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h.  */
9788 $ac_includes_default
9789 #include <sys/socket.h>
9790 _ACEOF
9791 rm -f conftest.$ac_objext
9792 if { (ac_try="$ac_compile"
9793 case "(($ac_try" in
9794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795   *) ac_try_echo=$ac_try;;
9796 esac
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798   (eval "$ac_compile") 2>conftest.er1
9799   ac_status=$?
9800   grep -v '^ *+' conftest.er1 >conftest.err
9801   rm -f conftest.er1
9802   cat conftest.err >&5
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); } && {
9805          test -z "$ac_cxx_werror_flag" ||
9806          test ! -s conftest.err
9807        } && test -s conftest.$ac_objext; then
9808   ac_header_compiler=yes
9809 else
9810   echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813         ac_header_compiler=no
9814 fi
9815
9816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9818 echo "${ECHO_T}$ac_header_compiler" >&6; }
9819
9820 # Is the header present?
9821 { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
9822 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
9823 cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h.  */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h.  */
9829 #include <sys/socket.h>
9830 _ACEOF
9831 if { (ac_try="$ac_cpp conftest.$ac_ext"
9832 case "(($ac_try" in
9833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834   *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9838   ac_status=$?
9839   grep -v '^ *+' conftest.er1 >conftest.err
9840   rm -f conftest.er1
9841   cat conftest.err >&5
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); } >/dev/null && {
9844          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9845          test ! -s conftest.err
9846        }; then
9847   ac_header_preproc=yes
9848 else
9849   echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9851
9852   ac_header_preproc=no
9853 fi
9854
9855 rm -f conftest.err conftest.$ac_ext
9856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9857 echo "${ECHO_T}$ac_header_preproc" >&6; }
9858
9859 # So?  What about this header?
9860 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9861   yes:no: )
9862     { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
9863 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9864     { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
9865 echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
9866     ac_header_preproc=yes
9867     ;;
9868   no:yes:* )
9869     { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
9870 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
9871     { echo "$as_me:$LINENO: WARNING: sys/socket.h:     check for missing prerequisite headers?" >&5
9872 echo "$as_me: WARNING: sys/socket.h:     check for missing prerequisite headers?" >&2;}
9873     { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
9874 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
9875     { echo "$as_me:$LINENO: WARNING: sys/socket.h:     section \"Present But Cannot Be Compiled\"" >&5
9876 echo "$as_me: WARNING: sys/socket.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9877     { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
9878 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
9879     { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
9880 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
9881
9882     ;;
9883 esac
9884 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
9885 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
9886 if test "${ac_cv_header_sys_socket_h+set}" = set; then
9887   echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889   ac_cv_header_sys_socket_h=$ac_header_preproc
9890 fi
9891 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
9892 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
9893
9894 fi
9895 if test $ac_cv_header_sys_socket_h = yes; then
9896   cat >>confdefs.h <<\_ACEOF
9897 #define HAVE_SYS_SOCKET_H 1
9898 _ACEOF
9899
9900   cat >>confdefs.h <<\_ACEOF
9901 #define SOCKET_AVAIL 1
9902 _ACEOF
9903
9904   cat >>confdefs.h <<_ACEOF
9905 #define UCSOCKET_T int
9906 _ACEOF
9907
9908   ucsim_cv_socket="<sys/socket.h>"
9909
9910 fi
9911
9912
9913
9914 WINSOCK_AVAIL=0
9915 if test $ucsim_cv_socket = unknown; then
9916   if test "${ac_cv_header_winsock2_h+set}" = set; then
9917   { echo "$as_me:$LINENO: checking for winsock2.h" >&5
9918 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
9919 if test "${ac_cv_header_winsock2_h+set}" = set; then
9920   echo $ECHO_N "(cached) $ECHO_C" >&6
9921 fi
9922 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
9923 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
9924 else
9925   # Is the header compilable?
9926 { echo "$as_me:$LINENO: checking winsock2.h usability" >&5
9927 echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
9928 cat >conftest.$ac_ext <<_ACEOF
9929 /* confdefs.h.  */
9930 _ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h.  */
9934 $ac_includes_default
9935 #include <winsock2.h>
9936 _ACEOF
9937 rm -f conftest.$ac_objext
9938 if { (ac_try="$ac_compile"
9939 case "(($ac_try" in
9940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941   *) ac_try_echo=$ac_try;;
9942 esac
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944   (eval "$ac_compile") 2>conftest.er1
9945   ac_status=$?
9946   grep -v '^ *+' conftest.er1 >conftest.err
9947   rm -f conftest.er1
9948   cat conftest.err >&5
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); } && {
9951          test -z "$ac_cxx_werror_flag" ||
9952          test ! -s conftest.err
9953        } && test -s conftest.$ac_objext; then
9954   ac_header_compiler=yes
9955 else
9956   echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9958
9959         ac_header_compiler=no
9960 fi
9961
9962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9964 echo "${ECHO_T}$ac_header_compiler" >&6; }
9965
9966 # Is the header present?
9967 { echo "$as_me:$LINENO: checking winsock2.h presence" >&5
9968 echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
9969 cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h.  */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h.  */
9975 #include <winsock2.h>
9976 _ACEOF
9977 if { (ac_try="$ac_cpp conftest.$ac_ext"
9978 case "(($ac_try" in
9979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980   *) ac_try_echo=$ac_try;;
9981 esac
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9984   ac_status=$?
9985   grep -v '^ *+' conftest.er1 >conftest.err
9986   rm -f conftest.er1
9987   cat conftest.err >&5
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); } >/dev/null && {
9990          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9991          test ! -s conftest.err
9992        }; then
9993   ac_header_preproc=yes
9994 else
9995   echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9997
9998   ac_header_preproc=no
9999 fi
10000
10001 rm -f conftest.err conftest.$ac_ext
10002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10003 echo "${ECHO_T}$ac_header_preproc" >&6; }
10004
10005 # So?  What about this header?
10006 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10007   yes:no: )
10008     { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
10009 echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10010     { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
10011 echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
10012     ac_header_preproc=yes
10013     ;;
10014   no:yes:* )
10015     { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
10016 echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
10017     { echo "$as_me:$LINENO: WARNING: winsock2.h:     check for missing prerequisite headers?" >&5
10018 echo "$as_me: WARNING: winsock2.h:     check for missing prerequisite headers?" >&2;}
10019     { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
10020 echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
10021     { echo "$as_me:$LINENO: WARNING: winsock2.h:     section \"Present But Cannot Be Compiled\"" >&5
10022 echo "$as_me: WARNING: winsock2.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10023     { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
10024 echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
10025     { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
10026 echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
10027
10028     ;;
10029 esac
10030 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
10031 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
10032 if test "${ac_cv_header_winsock2_h+set}" = set; then
10033   echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035   ac_cv_header_winsock2_h=$ac_header_preproc
10036 fi
10037 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
10038 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
10039
10040 fi
10041 if test $ac_cv_header_winsock2_h = yes; then
10042   cat >>confdefs.h <<\_ACEOF
10043 #define HAVE_WINSOCK2_H 1
10044 _ACEOF
10045
10046     cat >>confdefs.h <<\_ACEOF
10047 #define SOCKET_AVAIL 1
10048 _ACEOF
10049
10050     cat >>confdefs.h <<_ACEOF
10051 #define UCSOCKET_T SOCKET
10052 _ACEOF
10053
10054     ucsim_cv_socket="<winsock2.h>"
10055     WINSOCK_AVAIL=1
10056
10057 fi
10058
10059
10060 fi
10061
10062
10063 if test $ucsim_cv_socket != unknown; then
10064   cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h.  */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h.  */
10070 #include <$ucsim_cv_socket>
10071
10072 _ACEOF
10073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10074   $EGREP "socklen_t" >/dev/null 2>&1; then
10075   cat >>confdefs.h <<_ACEOF
10076 #define SOCKLEN_T socklen_t
10077 _ACEOF
10078
10079 else
10080   cat >>confdefs.h <<_ACEOF
10081 #define SOCKLEN_T uint
10082 _ACEOF
10083
10084 fi
10085 rm -f conftest*
10086
10087 fi
10088 cat >>confdefs.h <<_ACEOF
10089 #define HEADER_SOCKET ${ucsim_cv_socket}
10090 _ACEOF
10091
10092
10093 if test "${ac_cv_header_dlfcn_h+set}" = set; then
10094   { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
10095 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
10096 if test "${ac_cv_header_dlfcn_h+set}" = set; then
10097   echo $ECHO_N "(cached) $ECHO_C" >&6
10098 fi
10099 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
10100 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
10101 else
10102   # Is the header compilable?
10103 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
10104 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
10105 cat >conftest.$ac_ext <<_ACEOF
10106 /* confdefs.h.  */
10107 _ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h.  */
10111 $ac_includes_default
10112 #include <dlfcn.h>
10113 _ACEOF
10114 rm -f conftest.$ac_objext
10115 if { (ac_try="$ac_compile"
10116 case "(($ac_try" in
10117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118   *) ac_try_echo=$ac_try;;
10119 esac
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121   (eval "$ac_compile") 2>conftest.er1
10122   ac_status=$?
10123   grep -v '^ *+' conftest.er1 >conftest.err
10124   rm -f conftest.er1
10125   cat conftest.err >&5
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); } && {
10128          test -z "$ac_cxx_werror_flag" ||
10129          test ! -s conftest.err
10130        } && test -s conftest.$ac_objext; then
10131   ac_header_compiler=yes
10132 else
10133   echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10135
10136         ac_header_compiler=no
10137 fi
10138
10139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10141 echo "${ECHO_T}$ac_header_compiler" >&6; }
10142
10143 # Is the header present?
10144 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
10145 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
10146 cat >conftest.$ac_ext <<_ACEOF
10147 /* confdefs.h.  */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h.  */
10152 #include <dlfcn.h>
10153 _ACEOF
10154 if { (ac_try="$ac_cpp conftest.$ac_ext"
10155 case "(($ac_try" in
10156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10157   *) ac_try_echo=$ac_try;;
10158 esac
10159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10160   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10161   ac_status=$?
10162   grep -v '^ *+' conftest.er1 >conftest.err
10163   rm -f conftest.er1
10164   cat conftest.err >&5
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); } >/dev/null && {
10167          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10168          test ! -s conftest.err
10169        }; then
10170   ac_header_preproc=yes
10171 else
10172   echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10174
10175   ac_header_preproc=no
10176 fi
10177
10178 rm -f conftest.err conftest.$ac_ext
10179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10180 echo "${ECHO_T}$ac_header_preproc" >&6; }
10181
10182 # So?  What about this header?
10183 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10184   yes:no: )
10185     { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
10186 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10187     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
10188 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
10189     ac_header_preproc=yes
10190     ;;
10191   no:yes:* )
10192     { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
10193 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
10194     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
10195 echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
10196     { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
10197 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
10198     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
10199 echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10200     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
10201 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
10202     { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
10203 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
10204
10205     ;;
10206 esac
10207 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
10208 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
10209 if test "${ac_cv_header_dlfcn_h+set}" = set; then
10210   echo $ECHO_N "(cached) $ECHO_C" >&6
10211 else
10212   ac_cv_header_dlfcn_h=$ac_header_preproc
10213 fi
10214 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
10215 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
10216
10217 fi
10218
10219
10220
10221
10222
10223
10224
10225 ac_header_dirent=no
10226 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10227   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10228 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10229 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10231   echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233   cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h.  */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h.  */
10239 #include <sys/types.h>
10240 #include <$ac_hdr>
10241
10242 int
10243 main ()
10244 {
10245 if ((DIR *) 0)
10246 return 0;
10247   ;
10248   return 0;
10249 }
10250 _ACEOF
10251 rm -f conftest.$ac_objext
10252 if { (ac_try="$ac_compile"
10253 case "(($ac_try" in
10254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255   *) ac_try_echo=$ac_try;;
10256 esac
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258   (eval "$ac_compile") 2>conftest.er1
10259   ac_status=$?
10260   grep -v '^ *+' conftest.er1 >conftest.err
10261   rm -f conftest.er1
10262   cat conftest.err >&5
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); } && {
10265          test -z "$ac_cxx_werror_flag" ||
10266          test ! -s conftest.err
10267        } && test -s conftest.$ac_objext; then
10268   eval "$as_ac_Header=yes"
10269 else
10270   echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10272
10273         eval "$as_ac_Header=no"
10274 fi
10275
10276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10277 fi
10278 ac_res=`eval echo '${'$as_ac_Header'}'`
10279                { echo "$as_me:$LINENO: result: $ac_res" >&5
10280 echo "${ECHO_T}$ac_res" >&6; }
10281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10282   cat >>confdefs.h <<_ACEOF
10283 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10284 _ACEOF
10285
10286 ac_header_dirent=$ac_hdr; break
10287 fi
10288
10289 done
10290 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10291 if test $ac_header_dirent = dirent.h; then
10292   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10293 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10294 if test "${ac_cv_search_opendir+set}" = set; then
10295   echo $ECHO_N "(cached) $ECHO_C" >&6
10296 else
10297   ac_func_search_save_LIBS=$LIBS
10298 cat >conftest.$ac_ext <<_ACEOF
10299 /* confdefs.h.  */
10300 _ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h.  */
10304
10305 /* Override any GCC internal prototype to avoid an error.
10306    Use char because int might match the return type of a GCC
10307    builtin and then its argument prototype would still apply.  */
10308 #ifdef __cplusplus
10309 extern "C"
10310 #endif
10311 char opendir ();
10312 int
10313 main ()
10314 {
10315 return opendir ();
10316   ;
10317   return 0;
10318 }
10319 _ACEOF
10320 for ac_lib in '' dir; do
10321   if test -z "$ac_lib"; then
10322     ac_res="none required"
10323   else
10324     ac_res=-l$ac_lib
10325     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10326   fi
10327   rm -f conftest.$ac_objext conftest$ac_exeext
10328 if { (ac_try="$ac_link"
10329 case "(($ac_try" in
10330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331   *) ac_try_echo=$ac_try;;
10332 esac
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334   (eval "$ac_link") 2>conftest.er1
10335   ac_status=$?
10336   grep -v '^ *+' conftest.er1 >conftest.err
10337   rm -f conftest.er1
10338   cat conftest.err >&5
10339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340   (exit $ac_status); } && {
10341          test -z "$ac_cxx_werror_flag" ||
10342          test ! -s conftest.err
10343        } && test -s conftest$ac_exeext &&
10344        $as_test_x conftest$ac_exeext; then
10345   ac_cv_search_opendir=$ac_res
10346 else
10347   echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10349
10350
10351 fi
10352
10353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10354       conftest$ac_exeext
10355   if test "${ac_cv_search_opendir+set}" = set; then
10356   break
10357 fi
10358 done
10359 if test "${ac_cv_search_opendir+set}" = set; then
10360   :
10361 else
10362   ac_cv_search_opendir=no
10363 fi
10364 rm conftest.$ac_ext
10365 LIBS=$ac_func_search_save_LIBS
10366 fi
10367 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10368 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10369 ac_res=$ac_cv_search_opendir
10370 if test "$ac_res" != no; then
10371   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10372
10373 fi
10374
10375 else
10376   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10377 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10378 if test "${ac_cv_search_opendir+set}" = set; then
10379   echo $ECHO_N "(cached) $ECHO_C" >&6
10380 else
10381   ac_func_search_save_LIBS=$LIBS
10382 cat >conftest.$ac_ext <<_ACEOF
10383 /* confdefs.h.  */
10384 _ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h.  */
10388
10389 /* Override any GCC internal prototype to avoid an error.
10390    Use char because int might match the return type of a GCC
10391    builtin and then its argument prototype would still apply.  */
10392 #ifdef __cplusplus
10393 extern "C"
10394 #endif
10395 char opendir ();
10396 int
10397 main ()
10398 {
10399 return opendir ();
10400   ;
10401   return 0;
10402 }
10403 _ACEOF
10404 for ac_lib in '' x; do
10405   if test -z "$ac_lib"; then
10406     ac_res="none required"
10407   else
10408     ac_res=-l$ac_lib
10409     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10410   fi
10411   rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415   *) ac_try_echo=$ac_try;;
10416 esac
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418   (eval "$ac_link") 2>conftest.er1
10419   ac_status=$?
10420   grep -v '^ *+' conftest.er1 >conftest.err
10421   rm -f conftest.er1
10422   cat conftest.err >&5
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } && {
10425          test -z "$ac_cxx_werror_flag" ||
10426          test ! -s conftest.err
10427        } && test -s conftest$ac_exeext &&
10428        $as_test_x conftest$ac_exeext; then
10429   ac_cv_search_opendir=$ac_res
10430 else
10431   echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10433
10434
10435 fi
10436
10437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10438       conftest$ac_exeext
10439   if test "${ac_cv_search_opendir+set}" = set; then
10440   break
10441 fi
10442 done
10443 if test "${ac_cv_search_opendir+set}" = set; then
10444   :
10445 else
10446   ac_cv_search_opendir=no
10447 fi
10448 rm conftest.$ac_ext
10449 LIBS=$ac_func_search_save_LIBS
10450 fi
10451 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10452 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10453 ac_res=$ac_cv_search_opendir
10454 if test "$ac_res" != no; then
10455   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10456
10457 fi
10458
10459 fi
10460
10461
10462 # This must be after CXXCPP
10463
10464 { echo "$as_me:$LINENO: checking which header file defines FD_ macros" >&5
10465 echo $ECHO_N "checking which header file defines FD_ macros... $ECHO_C" >&6; }
10466 if test "${ucsim_cv_fd+set}" = set; then
10467   echo $ECHO_N "(cached) $ECHO_C" >&6
10468 else
10469   ucsim_cv_fd="unknown"
10470 cat >conftest.$ac_ext <<_ACEOF
10471 /* confdefs.h.  */
10472 _ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h.  */
10476
10477 #include <winsock2.h>
10478 #ifdef FD_ZERO
10479 yes
10480 #endif
10481 _ACEOF
10482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10483   $EGREP "yes" >/dev/null 2>&1; then
10484   ucsim_cv_fd="<winsock2.h>"
10485 fi
10486 rm -f conftest*
10487
10488 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h.  */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h.  */
10494
10495 #include <sys/time.h>
10496 #ifdef FD_ZERO
10497 yes
10498 #endif
10499 _ACEOF
10500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10501   $EGREP "yes" >/dev/null 2>&1; then
10502   ucsim_cv_fd="<sys/time.h>"
10503 fi
10504 rm -f conftest*
10505
10506 cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h.  */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h.  */
10512
10513 #include <sys/types.h>
10514 #ifdef FD_ZERO
10515 yes
10516 #endif
10517 _ACEOF
10518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10519   $EGREP "yes" >/dev/null 2>&1; then
10520   ucsim_cv_fd="<sys/types.h>"
10521 fi
10522 rm -f conftest*
10523
10524 cat >conftest.$ac_ext <<_ACEOF
10525 /* confdefs.h.  */
10526 _ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h.  */
10530
10531 #include <sys/select.h>
10532 #ifdef FD_ZERO
10533 yes
10534 #endif
10535 _ACEOF
10536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10537   $EGREP "yes" >/dev/null 2>&1; then
10538   ucsim_cv_fd="<sys/select.h>"
10539 fi
10540 rm -f conftest*
10541
10542 fi
10543 { echo "$as_me:$LINENO: result: $ucsim_cv_fd" >&5
10544 echo "${ECHO_T}$ucsim_cv_fd" >&6; }
10545
10546 ucsim_cv_header_ok=0
10547 if echo $ucsim_cv_fd|grep time >/dev/null 2>&1; then
10548 cat >>confdefs.h <<\_ACEOF
10549 #define FD_NEED_TIME_H 1
10550 _ACEOF
10551
10552 ucsim_cv_header_ok=1
10553 else
10554 cat >>confdefs.h <<\_ACEOF
10555 #define FD_NEED_TIME_H 0
10556 _ACEOF
10557
10558 fi
10559 if echo $ucsim_cv_fd|grep types >/dev/null 2>&1; then
10560 cat >>confdefs.h <<\_ACEOF
10561 #define FD_NEED_TYPES_H 1
10562 _ACEOF
10563
10564 ucsim_cv_header_ok=1
10565 else
10566 cat >>confdefs.h <<\_ACEOF
10567 #define FD_NEED_TYPES_H 0
10568 _ACEOF
10569
10570 fi
10571 if echo $ucsim_cv_fd|grep select >/dev/null 2>&1; then
10572 cat >>confdefs.h <<\_ACEOF
10573 #define FD_NEED_SELECT_H 1
10574 _ACEOF
10575
10576 ucsim_cv_header_ok=1
10577 else
10578 cat >>confdefs.h <<\_ACEOF
10579 #define FD_NEED_SELECT_H 0
10580 _ACEOF
10581
10582 fi
10583 if echo $ucsim_cv_fd|grep winsock2 >/dev/null 2>&1; then
10584 cat >>confdefs.h <<\_ACEOF
10585 #define FD_NEED_WINSOCK2_H 1
10586 _ACEOF
10587
10588 ucsim_cv_header_ok=1
10589 else
10590 cat >>confdefs.h <<\_ACEOF
10591 #define FD_NEED_WINSOCK2_H 0
10592 _ACEOF
10593
10594 fi
10595
10596 cat >>confdefs.h <<_ACEOF
10597 #define FD_HEADER_OK ${ucsim_cv_header_ok}
10598 _ACEOF
10599
10600 cat >>confdefs.h <<_ACEOF
10601 #define HEADER_FD ${ucsim_cv_fd}
10602 _ACEOF
10603
10604
10605
10606 # Checking for functions/libs
10607 # ===========================================================================
10608 if echo $ucsim_cv_socket|grep winsock2 >/dev/null 2>&1; then
10609   LIBS="-lws2_32 $LIBS"
10610 else
10611
10612 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
10613 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
10614 if test "${ac_cv_lib_socket_socket+set}" = set; then
10615   echo $ECHO_N "(cached) $ECHO_C" >&6
10616 else
10617   ac_check_lib_save_LIBS=$LIBS
10618 LIBS="-lsocket  $LIBS"
10619 cat >conftest.$ac_ext <<_ACEOF
10620 /* confdefs.h.  */
10621 _ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h.  */
10625
10626 /* Override any GCC internal prototype to avoid an error.
10627    Use char because int might match the return type of a GCC
10628    builtin and then its argument prototype would still apply.  */
10629 #ifdef __cplusplus
10630 extern "C"
10631 #endif
10632 char socket ();
10633 int
10634 main ()
10635 {
10636 return socket ();
10637   ;
10638   return 0;
10639 }
10640 _ACEOF
10641 rm -f conftest.$ac_objext conftest$ac_exeext
10642 if { (ac_try="$ac_link"
10643 case "(($ac_try" in
10644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645   *) ac_try_echo=$ac_try;;
10646 esac
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648   (eval "$ac_link") 2>conftest.er1
10649   ac_status=$?
10650   grep -v '^ *+' conftest.er1 >conftest.err
10651   rm -f conftest.er1
10652   cat conftest.err >&5
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); } && {
10655          test -z "$ac_cxx_werror_flag" ||
10656          test ! -s conftest.err
10657        } && test -s conftest$ac_exeext &&
10658        $as_test_x conftest$ac_exeext; then
10659   ac_cv_lib_socket_socket=yes
10660 else
10661   echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10663
10664         ac_cv_lib_socket_socket=no
10665 fi
10666
10667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10668       conftest$ac_exeext conftest.$ac_ext
10669 LIBS=$ac_check_lib_save_LIBS
10670 fi
10671 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
10672 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
10673 if test $ac_cv_lib_socket_socket = yes; then
10674   cat >>confdefs.h <<_ACEOF
10675 #define HAVE_LIBSOCKET 1
10676 _ACEOF
10677
10678   LIBS="-lsocket $LIBS"
10679
10680 fi
10681
10682
10683 { echo "$as_me:$LINENO: checking for xdr_short in -lnsl" >&5
10684 echo $ECHO_N "checking for xdr_short in -lnsl... $ECHO_C" >&6; }
10685 if test "${ac_cv_lib_nsl_xdr_short+set}" = set; then
10686   echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688   ac_check_lib_save_LIBS=$LIBS
10689 LIBS="-lnsl  $LIBS"
10690 cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h.  */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h.  */
10696
10697 /* Override any GCC internal prototype to avoid an error.
10698    Use char because int might match the return type of a GCC
10699    builtin and then its argument prototype would still apply.  */
10700 #ifdef __cplusplus
10701 extern "C"
10702 #endif
10703 char xdr_short ();
10704 int
10705 main ()
10706 {
10707 return xdr_short ();
10708   ;
10709   return 0;
10710 }
10711 _ACEOF
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716   *) ac_try_echo=$ac_try;;
10717 esac
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719   (eval "$ac_link") 2>conftest.er1
10720   ac_status=$?
10721   grep -v '^ *+' conftest.er1 >conftest.err
10722   rm -f conftest.er1
10723   cat conftest.err >&5
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); } && {
10726          test -z "$ac_cxx_werror_flag" ||
10727          test ! -s conftest.err
10728        } && test -s conftest$ac_exeext &&
10729        $as_test_x conftest$ac_exeext; then
10730   ac_cv_lib_nsl_xdr_short=yes
10731 else
10732   echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10734
10735         ac_cv_lib_nsl_xdr_short=no
10736 fi
10737
10738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10739       conftest$ac_exeext conftest.$ac_ext
10740 LIBS=$ac_check_lib_save_LIBS
10741 fi
10742 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_xdr_short" >&5
10743 echo "${ECHO_T}$ac_cv_lib_nsl_xdr_short" >&6; }
10744 if test $ac_cv_lib_nsl_xdr_short = yes; then
10745   cat >>confdefs.h <<_ACEOF
10746 #define HAVE_LIBNSL 1
10747 _ACEOF
10748
10749   LIBS="-lnsl $LIBS"
10750
10751 fi
10752
10753 fi
10754
10755 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10756 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10757 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10758   echo $ECHO_N "(cached) $ECHO_C" >&6
10759 else
10760   ac_check_lib_save_LIBS=$LIBS
10761 LIBS="-ldl  $LIBS"
10762 cat >conftest.$ac_ext <<_ACEOF
10763 /* confdefs.h.  */
10764 _ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h.  */
10768
10769 /* Override any GCC internal prototype to avoid an error.
10770    Use char because int might match the return type of a GCC
10771    builtin and then its argument prototype would still apply.  */
10772 #ifdef __cplusplus
10773 extern "C"
10774 #endif
10775 char dlopen ();
10776 int
10777 main ()
10778 {
10779 return dlopen ();
10780   ;
10781   return 0;
10782 }
10783 _ACEOF
10784 rm -f conftest.$ac_objext conftest$ac_exeext
10785 if { (ac_try="$ac_link"
10786 case "(($ac_try" in
10787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10788   *) ac_try_echo=$ac_try;;
10789 esac
10790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10791   (eval "$ac_link") 2>conftest.er1
10792   ac_status=$?
10793   grep -v '^ *+' conftest.er1 >conftest.err
10794   rm -f conftest.er1
10795   cat conftest.err >&5
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); } && {
10798          test -z "$ac_cxx_werror_flag" ||
10799          test ! -s conftest.err
10800        } && test -s conftest$ac_exeext &&
10801        $as_test_x conftest$ac_exeext; then
10802   ac_cv_lib_dl_dlopen=yes
10803 else
10804   echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10806
10807         ac_cv_lib_dl_dlopen=no
10808 fi
10809
10810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10811       conftest$ac_exeext conftest.$ac_ext
10812 LIBS=$ac_check_lib_save_LIBS
10813 fi
10814 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10815 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10816 if test $ac_cv_lib_dl_dlopen = yes; then
10817   dl_ok="yes"
10818 DL="-ldl"
10819 else
10820   dl_ok="no"
10821 DL=""
10822 fi
10823
10824
10825
10826
10827 #AC_CHECK_LIB(panel,panel_above,
10828 #panel_ok="yes"
10829 #curses_ok="yes"
10830 #CURSES_LIBS="-lpanel -lcurses"
10831 #,
10832 #panel_ok="no"
10833 #AC_CHECK_LIB(curses,nl,
10834 #curses_ok="yes"
10835 #CURSES_LIBS="-lcurses"
10836 #,
10837 #curses_ok="no")
10838 #,
10839 #-lcurses)
10840
10841 if test $curses_h_ok != yes; then
10842   panel_ok="no"
10843   curses_ok="no"
10844 else
10845   { echo "$as_me:$LINENO: checking for panel_above in -lpanel" >&5
10846 echo $ECHO_N "checking for panel_above in -lpanel... $ECHO_C" >&6; }
10847 if test "${ac_cv_lib_panel_panel_above+set}" = set; then
10848   echo $ECHO_N "(cached) $ECHO_C" >&6
10849 else
10850   ac_check_lib_save_LIBS=$LIBS
10851 LIBS="-lpanel  $LIBS"
10852 cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h.  */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h.  */
10858
10859 /* Override any GCC internal prototype to avoid an error.
10860    Use char because int might match the return type of a GCC
10861    builtin and then its argument prototype would still apply.  */
10862 #ifdef __cplusplus
10863 extern "C"
10864 #endif
10865 char panel_above ();
10866 int
10867 main ()
10868 {
10869 return panel_above ();
10870   ;
10871   return 0;
10872 }
10873 _ACEOF
10874 rm -f conftest.$ac_objext conftest$ac_exeext
10875 if { (ac_try="$ac_link"
10876 case "(($ac_try" in
10877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878   *) ac_try_echo=$ac_try;;
10879 esac
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881   (eval "$ac_link") 2>conftest.er1
10882   ac_status=$?
10883   grep -v '^ *+' conftest.er1 >conftest.err
10884   rm -f conftest.er1
10885   cat conftest.err >&5
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); } && {
10888          test -z "$ac_cxx_werror_flag" ||
10889          test ! -s conftest.err
10890        } && test -s conftest$ac_exeext &&
10891        $as_test_x conftest$ac_exeext; then
10892   ac_cv_lib_panel_panel_above=yes
10893 else
10894   echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10896
10897         ac_cv_lib_panel_panel_above=no
10898 fi
10899
10900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10901       conftest$ac_exeext conftest.$ac_ext
10902 LIBS=$ac_check_lib_save_LIBS
10903 fi
10904 { echo "$as_me:$LINENO: result: $ac_cv_lib_panel_panel_above" >&5
10905 echo "${ECHO_T}$ac_cv_lib_panel_panel_above" >&6; }
10906 if test $ac_cv_lib_panel_panel_above = yes; then
10907   panel_ok="yes"
10908     curses_ok="yes"
10909     CURSES_LIBS="-lpanel"
10910 else
10911   panel_ok="no"
10912     curses_ok="no"
10913
10914 fi
10915
10916
10917   if test $curses_ok != yes; then
10918     { echo "$as_me:$LINENO: checking for nl in -lcurses" >&5
10919 echo $ECHO_N "checking for nl in -lcurses... $ECHO_C" >&6; }
10920 if test "${ac_cv_lib_curses_nl+set}" = set; then
10921   echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923   ac_check_lib_save_LIBS=$LIBS
10924 LIBS="-lcurses  $LIBS"
10925 cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h.  */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h.  */
10931
10932 /* Override any GCC internal prototype to avoid an error.
10933    Use char because int might match the return type of a GCC
10934    builtin and then its argument prototype would still apply.  */
10935 #ifdef __cplusplus
10936 extern "C"
10937 #endif
10938 char nl ();
10939 int
10940 main ()
10941 {
10942 return nl ();
10943   ;
10944   return 0;
10945 }
10946 _ACEOF
10947 rm -f conftest.$ac_objext conftest$ac_exeext
10948 if { (ac_try="$ac_link"
10949 case "(($ac_try" in
10950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951   *) ac_try_echo=$ac_try;;
10952 esac
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954   (eval "$ac_link") 2>conftest.er1
10955   ac_status=$?
10956   grep -v '^ *+' conftest.er1 >conftest.err
10957   rm -f conftest.er1
10958   cat conftest.err >&5
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); } && {
10961          test -z "$ac_cxx_werror_flag" ||
10962          test ! -s conftest.err
10963        } && test -s conftest$ac_exeext &&
10964        $as_test_x conftest$ac_exeext; then
10965   ac_cv_lib_curses_nl=yes
10966 else
10967   echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10969
10970         ac_cv_lib_curses_nl=no
10971 fi
10972
10973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10974       conftest$ac_exeext conftest.$ac_ext
10975 LIBS=$ac_check_lib_save_LIBS
10976 fi
10977 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_nl" >&5
10978 echo "${ECHO_T}$ac_cv_lib_curses_nl" >&6; }
10979 if test $ac_cv_lib_curses_nl = yes; then
10980   curses_ok="yes"
10981       CURSES_LIBS="-lcurses"
10982 else
10983   curses_ok="no"
10984 fi
10985
10986   fi
10987
10988   if test $curses_ok != yes; then
10989     { echo "$as_me:$LINENO: checking for nl in -lncurses" >&5
10990 echo $ECHO_N "checking for nl in -lncurses... $ECHO_C" >&6; }
10991 if test "${ac_cv_lib_ncurses_nl+set}" = set; then
10992   echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994   ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-lncurses  $LIBS"
10996 cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h.  */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h.  */
11002
11003 /* Override any GCC internal prototype to avoid an error.
11004    Use char because int might match the return type of a GCC
11005    builtin and then its argument prototype would still apply.  */
11006 #ifdef __cplusplus
11007 extern "C"
11008 #endif
11009 char nl ();
11010 int
11011 main ()
11012 {
11013 return nl ();
11014   ;
11015   return 0;
11016 }
11017 _ACEOF
11018 rm -f conftest.$ac_objext conftest$ac_exeext
11019 if { (ac_try="$ac_link"
11020 case "(($ac_try" in
11021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022   *) ac_try_echo=$ac_try;;
11023 esac
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025   (eval "$ac_link") 2>conftest.er1
11026   ac_status=$?
11027   grep -v '^ *+' conftest.er1 >conftest.err
11028   rm -f conftest.er1
11029   cat conftest.err >&5
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); } && {
11032          test -z "$ac_cxx_werror_flag" ||
11033          test ! -s conftest.err
11034        } && test -s conftest$ac_exeext &&
11035        $as_test_x conftest$ac_exeext; then
11036   ac_cv_lib_ncurses_nl=yes
11037 else
11038   echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11040
11041         ac_cv_lib_ncurses_nl=no
11042 fi
11043
11044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11045       conftest$ac_exeext conftest.$ac_ext
11046 LIBS=$ac_check_lib_save_LIBS
11047 fi
11048 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_nl" >&5
11049 echo "${ECHO_T}$ac_cv_lib_ncurses_nl" >&6; }
11050 if test $ac_cv_lib_ncurses_nl = yes; then
11051   curses_ok="yes"
11052       CURSES_LIBS="-lncurses"
11053 else
11054   curses_ok="no"
11055 fi
11056
11057   fi
11058 fi
11059
11060
11061
11062
11063
11064
11065 for ac_func in vprintf
11066 do
11067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11071   echo $ECHO_N "(cached) $ECHO_C" >&6
11072 else
11073   cat >conftest.$ac_ext <<_ACEOF
11074 /* confdefs.h.  */
11075 _ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h.  */
11079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11081 #define $ac_func innocuous_$ac_func
11082
11083 /* System header to define __stub macros and hopefully few prototypes,
11084     which can conflict with char $ac_func (); below.
11085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11086     <limits.h> exists even on freestanding compilers.  */
11087
11088 #ifdef __STDC__
11089 # include <limits.h>
11090 #else
11091 # include <assert.h>
11092 #endif
11093
11094 #undef $ac_func
11095
11096 /* Override any GCC internal prototype to avoid an error.
11097    Use char because int might match the return type of a GCC
11098    builtin and then its argument prototype would still apply.  */
11099 #ifdef __cplusplus
11100 extern "C"
11101 #endif
11102 char $ac_func ();
11103 /* The GNU C library defines this for functions which it implements
11104     to always fail with ENOSYS.  Some functions are actually named
11105     something starting with __ and the normal name is an alias.  */
11106 #if defined __stub_$ac_func || defined __stub___$ac_func
11107 choke me
11108 #endif
11109
11110 int
11111 main ()
11112 {
11113 return $ac_func ();
11114   ;
11115   return 0;
11116 }
11117 _ACEOF
11118 rm -f conftest.$ac_objext conftest$ac_exeext
11119 if { (ac_try="$ac_link"
11120 case "(($ac_try" in
11121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122   *) ac_try_echo=$ac_try;;
11123 esac
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125   (eval "$ac_link") 2>conftest.er1
11126   ac_status=$?
11127   grep -v '^ *+' conftest.er1 >conftest.err
11128   rm -f conftest.er1
11129   cat conftest.err >&5
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); } && {
11132          test -z "$ac_cxx_werror_flag" ||
11133          test ! -s conftest.err
11134        } && test -s conftest$ac_exeext &&
11135        $as_test_x conftest$ac_exeext; then
11136   eval "$as_ac_var=yes"
11137 else
11138   echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11140
11141         eval "$as_ac_var=no"
11142 fi
11143
11144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11145       conftest$ac_exeext conftest.$ac_ext
11146 fi
11147 ac_res=`eval echo '${'$as_ac_var'}'`
11148                { echo "$as_me:$LINENO: result: $ac_res" >&5
11149 echo "${ECHO_T}$ac_res" >&6; }
11150 if test `eval echo '${'$as_ac_var'}'` = yes; then
11151   cat >>confdefs.h <<_ACEOF
11152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11153 _ACEOF
11154
11155 { echo "$as_me:$LINENO: checking for _doprnt" >&5
11156 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
11157 if test "${ac_cv_func__doprnt+set}" = set; then
11158   echo $ECHO_N "(cached) $ECHO_C" >&6
11159 else
11160   cat >conftest.$ac_ext <<_ACEOF
11161 /* confdefs.h.  */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h.  */
11166 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11168 #define _doprnt innocuous__doprnt
11169
11170 /* System header to define __stub macros and hopefully few prototypes,
11171     which can conflict with char _doprnt (); below.
11172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11173     <limits.h> exists even on freestanding compilers.  */
11174
11175 #ifdef __STDC__
11176 # include <limits.h>
11177 #else
11178 # include <assert.h>
11179 #endif
11180
11181 #undef _doprnt
11182
11183 /* Override any GCC internal prototype to avoid an error.
11184    Use char because int might match the return type of a GCC
11185    builtin and then its argument prototype would still apply.  */
11186 #ifdef __cplusplus
11187 extern "C"
11188 #endif
11189 char _doprnt ();
11190 /* The GNU C library defines this for functions which it implements
11191     to always fail with ENOSYS.  Some functions are actually named
11192     something starting with __ and the normal name is an alias.  */
11193 #if defined __stub__doprnt || defined __stub____doprnt
11194 choke me
11195 #endif
11196
11197 int
11198 main ()
11199 {
11200 return _doprnt ();
11201   ;
11202   return 0;
11203 }
11204 _ACEOF
11205 rm -f conftest.$ac_objext conftest$ac_exeext
11206 if { (ac_try="$ac_link"
11207 case "(($ac_try" in
11208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209   *) ac_try_echo=$ac_try;;
11210 esac
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212   (eval "$ac_link") 2>conftest.er1
11213   ac_status=$?
11214   grep -v '^ *+' conftest.er1 >conftest.err
11215   rm -f conftest.er1
11216   cat conftest.err >&5
11217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218   (exit $ac_status); } && {
11219          test -z "$ac_cxx_werror_flag" ||
11220          test ! -s conftest.err
11221        } && test -s conftest$ac_exeext &&
11222        $as_test_x conftest$ac_exeext; then
11223   ac_cv_func__doprnt=yes
11224 else
11225   echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.$ac_ext >&5
11227
11228         ac_cv_func__doprnt=no
11229 fi
11230
11231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11232       conftest$ac_exeext conftest.$ac_ext
11233 fi
11234 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11235 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
11236 if test $ac_cv_func__doprnt = yes; then
11237
11238 cat >>confdefs.h <<\_ACEOF
11239 #define HAVE_DOPRNT 1
11240 _ACEOF
11241
11242 fi
11243
11244 fi
11245 done
11246
11247
11248
11249 for ac_func in vsnprintf
11250 do
11251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11252 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11254 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11255   echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257   cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h.  */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h.  */
11263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11264    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11265 #define $ac_func innocuous_$ac_func
11266
11267 /* System header to define __stub macros and hopefully few prototypes,
11268     which can conflict with char $ac_func (); below.
11269     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11270     <limits.h> exists even on freestanding compilers.  */
11271
11272 #ifdef __STDC__
11273 # include <limits.h>
11274 #else
11275 # include <assert.h>
11276 #endif
11277
11278 #undef $ac_func
11279
11280 /* Override any GCC internal prototype to avoid an error.
11281    Use char because int might match the return type of a GCC
11282    builtin and then its argument prototype would still apply.  */
11283 #ifdef __cplusplus
11284 extern "C"
11285 #endif
11286 char $ac_func ();
11287 /* The GNU C library defines this for functions which it implements
11288     to always fail with ENOSYS.  Some functions are actually named
11289     something starting with __ and the normal name is an alias.  */
11290 #if defined __stub_$ac_func || defined __stub___$ac_func
11291 choke me
11292 #endif
11293
11294 int
11295 main ()
11296 {
11297 return $ac_func ();
11298   ;
11299   return 0;
11300 }
11301 _ACEOF
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (ac_try="$ac_link"
11304 case "(($ac_try" in
11305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306   *) ac_try_echo=$ac_try;;
11307 esac
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309   (eval "$ac_link") 2>conftest.er1
11310   ac_status=$?
11311   grep -v '^ *+' conftest.er1 >conftest.err
11312   rm -f conftest.er1
11313   cat conftest.err >&5
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); } && {
11316          test -z "$ac_cxx_werror_flag" ||
11317          test ! -s conftest.err
11318        } && test -s conftest$ac_exeext &&
11319        $as_test_x conftest$ac_exeext; then
11320   eval "$as_ac_var=yes"
11321 else
11322   echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11324
11325         eval "$as_ac_var=no"
11326 fi
11327
11328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11329       conftest$ac_exeext conftest.$ac_ext
11330 fi
11331 ac_res=`eval echo '${'$as_ac_var'}'`
11332                { echo "$as_me:$LINENO: result: $ac_res" >&5
11333 echo "${ECHO_T}$ac_res" >&6; }
11334 if test `eval echo '${'$as_ac_var'}'` = yes; then
11335   cat >>confdefs.h <<_ACEOF
11336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11337 _ACEOF
11338
11339 fi
11340 done
11341
11342
11343 for ac_func in _vsnprintf
11344 do
11345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11349   echo $ECHO_N "(cached) $ECHO_C" >&6
11350 else
11351   cat >conftest.$ac_ext <<_ACEOF
11352 /* confdefs.h.  */
11353 _ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h.  */
11357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11359 #define $ac_func innocuous_$ac_func
11360
11361 /* System header to define __stub macros and hopefully few prototypes,
11362     which can conflict with char $ac_func (); below.
11363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11364     <limits.h> exists even on freestanding compilers.  */
11365
11366 #ifdef __STDC__
11367 # include <limits.h>
11368 #else
11369 # include <assert.h>
11370 #endif
11371
11372 #undef $ac_func
11373
11374 /* Override any GCC internal prototype to avoid an error.
11375    Use char because int might match the return type of a GCC
11376    builtin and then its argument prototype would still apply.  */
11377 #ifdef __cplusplus
11378 extern "C"
11379 #endif
11380 char $ac_func ();
11381 /* The GNU C library defines this for functions which it implements
11382     to always fail with ENOSYS.  Some functions are actually named
11383     something starting with __ and the normal name is an alias.  */
11384 #if defined __stub_$ac_func || defined __stub___$ac_func
11385 choke me
11386 #endif
11387
11388 int
11389 main ()
11390 {
11391 return $ac_func ();
11392   ;
11393   return 0;
11394 }
11395 _ACEOF
11396 rm -f conftest.$ac_objext conftest$ac_exeext
11397 if { (ac_try="$ac_link"
11398 case "(($ac_try" in
11399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400   *) ac_try_echo=$ac_try;;
11401 esac
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403   (eval "$ac_link") 2>conftest.er1
11404   ac_status=$?
11405   grep -v '^ *+' conftest.er1 >conftest.err
11406   rm -f conftest.er1
11407   cat conftest.err >&5
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); } && {
11410          test -z "$ac_cxx_werror_flag" ||
11411          test ! -s conftest.err
11412        } && test -s conftest$ac_exeext &&
11413        $as_test_x conftest$ac_exeext; then
11414   eval "$as_ac_var=yes"
11415 else
11416   echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11418
11419         eval "$as_ac_var=no"
11420 fi
11421
11422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11423       conftest$ac_exeext conftest.$ac_ext
11424 fi
11425 ac_res=`eval echo '${'$as_ac_var'}'`
11426                { echo "$as_me:$LINENO: result: $ac_res" >&5
11427 echo "${ECHO_T}$ac_res" >&6; }
11428 if test `eval echo '${'$as_ac_var'}'` = yes; then
11429   cat >>confdefs.h <<_ACEOF
11430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11431 _ACEOF
11432
11433 fi
11434 done
11435
11436
11437 for ac_func in vasprintf
11438 do
11439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11443   echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11445   cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h.  */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h.  */
11451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11453 #define $ac_func innocuous_$ac_func
11454
11455 /* System header to define __stub macros and hopefully few prototypes,
11456     which can conflict with char $ac_func (); below.
11457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11458     <limits.h> exists even on freestanding compilers.  */
11459
11460 #ifdef __STDC__
11461 # include <limits.h>
11462 #else
11463 # include <assert.h>
11464 #endif
11465
11466 #undef $ac_func
11467
11468 /* Override any GCC internal prototype to avoid an error.
11469    Use char because int might match the return type of a GCC
11470    builtin and then its argument prototype would still apply.  */
11471 #ifdef __cplusplus
11472 extern "C"
11473 #endif
11474 char $ac_func ();
11475 /* The GNU C library defines this for functions which it implements
11476     to always fail with ENOSYS.  Some functions are actually named
11477     something starting with __ and the normal name is an alias.  */
11478 #if defined __stub_$ac_func || defined __stub___$ac_func
11479 choke me
11480 #endif
11481
11482 int
11483 main ()
11484 {
11485 return $ac_func ();
11486   ;
11487   return 0;
11488 }
11489 _ACEOF
11490 rm -f conftest.$ac_objext conftest$ac_exeext
11491 if { (ac_try="$ac_link"
11492 case "(($ac_try" in
11493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494   *) ac_try_echo=$ac_try;;
11495 esac
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497   (eval "$ac_link") 2>conftest.er1
11498   ac_status=$?
11499   grep -v '^ *+' conftest.er1 >conftest.err
11500   rm -f conftest.er1
11501   cat conftest.err >&5
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); } && {
11504          test -z "$ac_cxx_werror_flag" ||
11505          test ! -s conftest.err
11506        } && test -s conftest$ac_exeext &&
11507        $as_test_x conftest$ac_exeext; then
11508   eval "$as_ac_var=yes"
11509 else
11510   echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11512
11513         eval "$as_ac_var=no"
11514 fi
11515
11516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11517       conftest$ac_exeext conftest.$ac_ext
11518 fi
11519 ac_res=`eval echo '${'$as_ac_var'}'`
11520                { echo "$as_me:$LINENO: result: $ac_res" >&5
11521 echo "${ECHO_T}$ac_res" >&6; }
11522 if test `eval echo '${'$as_ac_var'}'` = yes; then
11523   cat >>confdefs.h <<_ACEOF
11524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11525 _ACEOF
11526
11527 fi
11528 done
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538 for ac_func in strlen strcpy strcat strstr strcmp strerror strtok strdup
11539 do
11540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11544   echo $ECHO_N "(cached) $ECHO_C" >&6
11545 else
11546   cat >conftest.$ac_ext <<_ACEOF
11547 /* confdefs.h.  */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h.  */
11552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11554 #define $ac_func innocuous_$ac_func
11555
11556 /* System header to define __stub macros and hopefully few prototypes,
11557     which can conflict with char $ac_func (); below.
11558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11559     <limits.h> exists even on freestanding compilers.  */
11560
11561 #ifdef __STDC__
11562 # include <limits.h>
11563 #else
11564 # include <assert.h>
11565 #endif
11566
11567 #undef $ac_func
11568
11569 /* Override any GCC internal prototype to avoid an error.
11570    Use char because int might match the return type of a GCC
11571    builtin and then its argument prototype would still apply.  */
11572 #ifdef __cplusplus
11573 extern "C"
11574 #endif
11575 char $ac_func ();
11576 /* The GNU C library defines this for functions which it implements
11577     to always fail with ENOSYS.  Some functions are actually named
11578     something starting with __ and the normal name is an alias.  */
11579 #if defined __stub_$ac_func || defined __stub___$ac_func
11580 choke me
11581 #endif
11582
11583 int
11584 main ()
11585 {
11586 return $ac_func ();
11587   ;
11588   return 0;
11589 }
11590 _ACEOF
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (ac_try="$ac_link"
11593 case "(($ac_try" in
11594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595   *) ac_try_echo=$ac_try;;
11596 esac
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598   (eval "$ac_link") 2>conftest.er1
11599   ac_status=$?
11600   grep -v '^ *+' conftest.er1 >conftest.err
11601   rm -f conftest.er1
11602   cat conftest.err >&5
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); } && {
11605          test -z "$ac_cxx_werror_flag" ||
11606          test ! -s conftest.err
11607        } && test -s conftest$ac_exeext &&
11608        $as_test_x conftest$ac_exeext; then
11609   eval "$as_ac_var=yes"
11610 else
11611   echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11613
11614         eval "$as_ac_var=no"
11615 fi
11616
11617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11618       conftest$ac_exeext conftest.$ac_ext
11619 fi
11620 ac_res=`eval echo '${'$as_ac_var'}'`
11621                { echo "$as_me:$LINENO: result: $ac_res" >&5
11622 echo "${ECHO_T}$ac_res" >&6; }
11623 if test `eval echo '${'$as_ac_var'}'` = yes; then
11624   cat >>confdefs.h <<_ACEOF
11625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11626 _ACEOF
11627
11628 fi
11629 done
11630
11631
11632
11633 for ac_func in strchr memcpy
11634 do
11635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11639   echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641   cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11649 #define $ac_func innocuous_$ac_func
11650
11651 /* System header to define __stub macros and hopefully few prototypes,
11652     which can conflict with char $ac_func (); below.
11653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654     <limits.h> exists even on freestanding compilers.  */
11655
11656 #ifdef __STDC__
11657 # include <limits.h>
11658 #else
11659 # include <assert.h>
11660 #endif
11661
11662 #undef $ac_func
11663
11664 /* Override any GCC internal prototype to avoid an error.
11665    Use char because int might match the return type of a GCC
11666    builtin and then its argument prototype would still apply.  */
11667 #ifdef __cplusplus
11668 extern "C"
11669 #endif
11670 char $ac_func ();
11671 /* The GNU C library defines this for functions which it implements
11672     to always fail with ENOSYS.  Some functions are actually named
11673     something starting with __ and the normal name is an alias.  */
11674 #if defined __stub_$ac_func || defined __stub___$ac_func
11675 choke me
11676 #endif
11677
11678 int
11679 main ()
11680 {
11681 return $ac_func ();
11682   ;
11683   return 0;
11684 }
11685 _ACEOF
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690   *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693   (eval "$ac_link") 2>conftest.er1
11694   ac_status=$?
11695   grep -v '^ *+' conftest.er1 >conftest.err
11696   rm -f conftest.er1
11697   cat conftest.err >&5
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); } && {
11700          test -z "$ac_cxx_werror_flag" ||
11701          test ! -s conftest.err
11702        } && test -s conftest$ac_exeext &&
11703        $as_test_x conftest$ac_exeext; then
11704   eval "$as_ac_var=yes"
11705 else
11706   echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11708
11709         eval "$as_ac_var=no"
11710 fi
11711
11712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11713       conftest$ac_exeext conftest.$ac_ext
11714 fi
11715 ac_res=`eval echo '${'$as_ac_var'}'`
11716                { echo "$as_me:$LINENO: result: $ac_res" >&5
11717 echo "${ECHO_T}$ac_res" >&6; }
11718 if test `eval echo '${'$as_ac_var'}'` = yes; then
11719   cat >>confdefs.h <<_ACEOF
11720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11721 _ACEOF
11722
11723 fi
11724 done
11725
11726
11727 for ac_func in fgets
11728 do
11729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11733   echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735   cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h.  */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h.  */
11741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11743 #define $ac_func innocuous_$ac_func
11744
11745 /* System header to define __stub macros and hopefully few prototypes,
11746     which can conflict with char $ac_func (); below.
11747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11748     <limits.h> exists even on freestanding compilers.  */
11749
11750 #ifdef __STDC__
11751 # include <limits.h>
11752 #else
11753 # include <assert.h>
11754 #endif
11755
11756 #undef $ac_func
11757
11758 /* Override any GCC internal prototype to avoid an error.
11759    Use char because int might match the return type of a GCC
11760    builtin and then its argument prototype would still apply.  */
11761 #ifdef __cplusplus
11762 extern "C"
11763 #endif
11764 char $ac_func ();
11765 /* The GNU C library defines this for functions which it implements
11766     to always fail with ENOSYS.  Some functions are actually named
11767     something starting with __ and the normal name is an alias.  */
11768 #if defined __stub_$ac_func || defined __stub___$ac_func
11769 choke me
11770 #endif
11771
11772 int
11773 main ()
11774 {
11775 return $ac_func ();
11776   ;
11777   return 0;
11778 }
11779 _ACEOF
11780 rm -f conftest.$ac_objext conftest$ac_exeext
11781 if { (ac_try="$ac_link"
11782 case "(($ac_try" in
11783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784   *) ac_try_echo=$ac_try;;
11785 esac
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787   (eval "$ac_link") 2>conftest.er1
11788   ac_status=$?
11789   grep -v '^ *+' conftest.er1 >conftest.err
11790   rm -f conftest.er1
11791   cat conftest.err >&5
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); } && {
11794          test -z "$ac_cxx_werror_flag" ||
11795          test ! -s conftest.err
11796        } && test -s conftest$ac_exeext &&
11797        $as_test_x conftest$ac_exeext; then
11798   eval "$as_ac_var=yes"
11799 else
11800   echo "$as_me: failed program was:" >&5
11801 sed 's/^/| /' conftest.$ac_ext >&5
11802
11803         eval "$as_ac_var=no"
11804 fi
11805
11806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11807       conftest$ac_exeext conftest.$ac_ext
11808 fi
11809 ac_res=`eval echo '${'$as_ac_var'}'`
11810                { echo "$as_me:$LINENO: result: $ac_res" >&5
11811 echo "${ECHO_T}$ac_res" >&6; }
11812 if test `eval echo '${'$as_ac_var'}'` = yes; then
11813   cat >>confdefs.h <<_ACEOF
11814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11815 _ACEOF
11816
11817 fi
11818 done
11819
11820
11821 for ac_func in yylex
11822 do
11823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11827   echo $ECHO_N "(cached) $ECHO_C" >&6
11828 else
11829   cat >conftest.$ac_ext <<_ACEOF
11830 /* confdefs.h.  */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h.  */
11835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11837 #define $ac_func innocuous_$ac_func
11838
11839 /* System header to define __stub macros and hopefully few prototypes,
11840     which can conflict with char $ac_func (); below.
11841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11842     <limits.h> exists even on freestanding compilers.  */
11843
11844 #ifdef __STDC__
11845 # include <limits.h>
11846 #else
11847 # include <assert.h>
11848 #endif
11849
11850 #undef $ac_func
11851
11852 /* Override any GCC internal prototype to avoid an error.
11853    Use char because int might match the return type of a GCC
11854    builtin and then its argument prototype would still apply.  */
11855 #ifdef __cplusplus
11856 extern "C"
11857 #endif
11858 char $ac_func ();
11859 /* The GNU C library defines this for functions which it implements
11860     to always fail with ENOSYS.  Some functions are actually named
11861     something starting with __ and the normal name is an alias.  */
11862 #if defined __stub_$ac_func || defined __stub___$ac_func
11863 choke me
11864 #endif
11865
11866 int
11867 main ()
11868 {
11869 return $ac_func ();
11870   ;
11871   return 0;
11872 }
11873 _ACEOF
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (ac_try="$ac_link"
11876 case "(($ac_try" in
11877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878   *) ac_try_echo=$ac_try;;
11879 esac
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881   (eval "$ac_link") 2>conftest.er1
11882   ac_status=$?
11883   grep -v '^ *+' conftest.er1 >conftest.err
11884   rm -f conftest.er1
11885   cat conftest.err >&5
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); } && {
11888          test -z "$ac_cxx_werror_flag" ||
11889          test ! -s conftest.err
11890        } && test -s conftest$ac_exeext &&
11891        $as_test_x conftest$ac_exeext; then
11892   eval "$as_ac_var=yes"
11893 else
11894   echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11896
11897         eval "$as_ac_var=no"
11898 fi
11899
11900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11901       conftest$ac_exeext conftest.$ac_ext
11902 fi
11903 ac_res=`eval echo '${'$as_ac_var'}'`
11904                { echo "$as_me:$LINENO: result: $ac_res" >&5
11905 echo "${ECHO_T}$ac_res" >&6; }
11906 if test `eval echo '${'$as_ac_var'}'` = yes; then
11907   cat >>confdefs.h <<_ACEOF
11908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11909 _ACEOF
11910
11911 fi
11912 done
11913
11914
11915 { echo "$as_me:$LINENO: checking whether scanf knows %a" >&5
11916 echo $ECHO_N "checking whether scanf knows %a... $ECHO_C" >&6; }
11917 if test "${ucsim_cv_scanf_a+set}" = set; then
11918   echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920   echo "a b" >conftest.data
11921 if test "$cross_compiling" = yes; then
11922   ucsim_cv_scanf_a="unknown"
11923 else
11924   cat >conftest.$ac_ext <<_ACEOF
11925 /* confdefs.h.  */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h.  */
11930
11931 #include <stdio.h>
11932 void main(void)
11933 {
11934   FILE *f;
11935   char *a;
11936   int  i;
11937   if ((f= fopen("conftest.data", "r")) == NULL)
11938     exit(1);
11939   i= fscanf(f, " %a[a-z] ", &a);
11940   fclose(f);
11941   if (i == 0)
11942     exit(2);
11943   if (i == 1)
11944     exit(0);
11945   exit(3);
11946 }
11947 _ACEOF
11948 rm -f conftest$ac_exeext
11949 if { (ac_try="$ac_link"
11950 case "(($ac_try" in
11951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952   *) ac_try_echo=$ac_try;;
11953 esac
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955   (eval "$ac_link") 2>&5
11956   ac_status=$?
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11959   { (case "(($ac_try" in
11960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961   *) ac_try_echo=$ac_try;;
11962 esac
11963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964   (eval "$ac_try") 2>&5
11965   ac_status=$?
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); }; }; then
11968   ucsim_cv_scanf_a="yes"
11969 else
11970   echo "$as_me: program exited with status $ac_status" >&5
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11973
11974 ( exit $ac_status )
11975 ucsim_cv_scanf_a="no"
11976 fi
11977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11978 fi
11979
11980
11981
11982 fi
11983 { echo "$as_me:$LINENO: result: $ucsim_cv_scanf_a" >&5
11984 echo "${ECHO_T}$ucsim_cv_scanf_a" >&6; }
11985 if test "$ucsim_cv_scanf_a" = "yes"; then
11986   cat >>confdefs.h <<\_ACEOF
11987 #define SCANF_A 1
11988 _ACEOF
11989
11990 fi
11991
11992 { echo "$as_me:$LINENO: checking whether getcwd is GNUish" >&5
11993 echo $ECHO_N "checking whether getcwd is GNUish... $ECHO_C" >&6; }
11994 if test "${ucsim_cv_getcwd+set}" = set; then
11995   echo $ECHO_N "(cached) $ECHO_C" >&6
11996 else
11997   if test "$cross_compiling" = yes; then
11998   ucsim_cv_getcwd="unknown"
11999 else
12000   cat >conftest.$ac_ext <<_ACEOF
12001 /* confdefs.h.  */
12002 _ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h.  */
12006
12007 #include <unistd.h>
12008 void main(void)
12009 {
12010   if ((getcwd(NULL, 0)) == NULL)
12011     exit(1);
12012   exit(0);
12013 }
12014 _ACEOF
12015 rm -f conftest$ac_exeext
12016 if { (ac_try="$ac_link"
12017 case "(($ac_try" in
12018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019   *) ac_try_echo=$ac_try;;
12020 esac
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022   (eval "$ac_link") 2>&5
12023   ac_status=$?
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12026   { (case "(($ac_try" in
12027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028   *) ac_try_echo=$ac_try;;
12029 esac
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031   (eval "$ac_try") 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); }; }; then
12035   ucsim_cv_getcwd="yes"
12036 else
12037   echo "$as_me: program exited with status $ac_status" >&5
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12040
12041 ( exit $ac_status )
12042 ucsim_cv_getcwd="no"
12043 fi
12044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12045 fi
12046
12047
12048
12049 fi
12050 { echo "$as_me:$LINENO: result: $ucsim_cv_getcwd" >&5
12051 echo "${ECHO_T}$ucsim_cv_getcwd" >&6; }
12052 if test "$ucsim_cv_getcwd" = "yes"; then
12053   cat >>confdefs.h <<\_ACEOF
12054 #define GNU_GETCWD 1
12055 _ACEOF
12056
12057 fi
12058
12059
12060 #'
12061
12062 { echo "$as_me:$LINENO: checking for type of length pointer parameter of accept" >&5
12063 echo $ECHO_N "checking for type of length pointer parameter of accept... $ECHO_C" >&6; }
12064 if test "${ucsim_cv_accept_length_type+set}" = set; then
12065   echo $ECHO_N "(cached) $ECHO_C" >&6
12066 else
12067   ac_save_CPPFLAGS="$CPPFLAGS"
12068     ucsim_cv_accept_length_type=no
12069     for ac_val in int size_t socklen_t; do
12070       CPPFLAGS="$ac_save_CPPFLAGS -DACCEPT_SOCKLEN_T=$ac_val"
12071       cat >conftest.$ac_ext <<_ACEOF
12072 /* confdefs.h.  */
12073 _ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h.  */
12077 #include <sys/types.h>
12078 #include ${ucsim_cv_socket}
12079 int
12080 main ()
12081 {
12082 struct sockaddr a; $ac_val len; accept (0, &a, &len);
12083   ;
12084   return 0;
12085 }
12086 _ACEOF
12087 rm -f conftest.$ac_objext
12088 if { (ac_try="$ac_compile"
12089 case "(($ac_try" in
12090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091   *) ac_try_echo=$ac_try;;
12092 esac
12093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12094   (eval "$ac_compile") 2>conftest.er1
12095   ac_status=$?
12096   grep -v '^ *+' conftest.er1 >conftest.err
12097   rm -f conftest.er1
12098   cat conftest.err >&5
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); } && {
12101          test -z "$ac_cxx_werror_flag" ||
12102          test ! -s conftest.err
12103        } && test -s conftest.$ac_objext; then
12104   ucsim_cv_accept_length_type=$ac_val; break
12105 else
12106   echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12108
12109
12110 fi
12111
12112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12113     done
12114     CPPFLAGS="$ac_save_CPPFLAGS"
12115 fi
12116 { echo "$as_me:$LINENO: result: $ucsim_cv_accept_length_type" >&5
12117 echo "${ECHO_T}$ucsim_cv_accept_length_type" >&6; }
12118   if test "$ucsim_cv_accept_length_type" != no; then
12119
12120 cat >>confdefs.h <<_ACEOF
12121 #define ACCEPT_SOCKLEN_T $ucsim_cv_accept_length_type
12122 _ACEOF
12123
12124   fi
12125
12126
12127
12128 # Macro definitions
12129 ###################
12130
12131 # DD_COPT macro checks if the compiler specified as the 1st parameter
12132 # supports option specified as the 2nd parameter
12133 # For example: DD_COPT(CXX, fPIC)
12134
12135
12136
12137 # DD_COPT_NO_IGNORE macro checks if the compiler specified as the
12138 # 1st parameter supports and doesn't ignore option specified as the
12139 # 2nd parameter
12140 # For example: DD_COPT_NO_IGNORE(CXX, fPIC)
12141
12142
12143
12144
12145 # Checking characteristics of compilers and other programs
12146 # --------------------------------------------------------
12147
12148 # Cross compiling overrides
12149 # FIXME
12150 if test "$CC" = "i586-mingw32msvc-gcc"; then
12151   ac_cv_c_bigendian=no
12152   ac_cv_sizeof_char=1
12153   ac_cv_sizeof_short=2
12154   ac_cv_sizeof_int=4
12155   ac_cv_sizeof_long=4
12156   ac_cv_sizeof_long_long=4
12157 fi
12158
12159 # SDCC_BUILD_BIGENDIAN ([ACTION-IF-TRUE], [ACTION-IF-FALSE], [ACTION-IF-UNKNOWN])
12160 # -------------------------------------------------------------------------
12161 # SDCC_BUILD_BIGENDIAN
12162
12163 { echo "$as_me:$LINENO: checking whether host machine byte ordering is bigendian" >&5
12164 echo $ECHO_N "checking whether host machine byte ordering is bigendian... $ECHO_C" >&6; }
12165 if test "${sdcc_cv_build_bigendian+set}" = set; then
12166   echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168   # See if sys/param.h defines the BYTE_ORDER macro.
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h.  */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h.  */
12175 #include <sys/types.h>
12176 #include <sys/param.h>
12177
12178 int
12179 main ()
12180 {
12181 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
12182         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
12183  bogus endian macros
12184 #endif
12185
12186   ;
12187   return 0;
12188 }
12189 _ACEOF
12190 rm -f conftest.$ac_objext
12191 if { (ac_try="$ac_compile"
12192 case "(($ac_try" in
12193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194   *) ac_try_echo=$ac_try;;
12195 esac
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197   (eval "$ac_compile") 2>conftest.er1
12198   ac_status=$?
12199   grep -v '^ *+' conftest.er1 >conftest.err
12200   rm -f conftest.er1
12201   cat conftest.err >&5
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); } && {
12204          test -z "$ac_cxx_werror_flag" ||
12205          test ! -s conftest.err
12206        } && test -s conftest.$ac_objext; then
12207   # It does; now see whether it defined to BIG_ENDIAN or not.
12208 cat >conftest.$ac_ext <<_ACEOF
12209 /* confdefs.h.  */
12210 _ACEOF
12211 cat confdefs.h >>conftest.$ac_ext
12212 cat >>conftest.$ac_ext <<_ACEOF
12213 /* end confdefs.h.  */
12214 #include <sys/types.h>
12215 #include <sys/param.h>
12216
12217 int
12218 main ()
12219 {
12220 #if BYTE_ORDER != BIG_ENDIAN
12221  not big endian
12222 #endif
12223
12224   ;
12225   return 0;
12226 }
12227 _ACEOF
12228 rm -f conftest.$ac_objext
12229 if { (ac_try="$ac_compile"
12230 case "(($ac_try" in
12231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232   *) ac_try_echo=$ac_try;;
12233 esac
12234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235   (eval "$ac_compile") 2>conftest.er1
12236   ac_status=$?
12237   grep -v '^ *+' conftest.er1 >conftest.err
12238   rm -f conftest.er1
12239   cat conftest.err >&5
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); } && {
12242          test -z "$ac_cxx_werror_flag" ||
12243          test ! -s conftest.err
12244        } && test -s conftest.$ac_objext; then
12245   sdcc_cv_build_bigendian=yes
12246 else
12247   echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12249
12250         sdcc_cv_build_bigendian=no
12251 fi
12252
12253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254 else
12255   echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12257
12258         # It does not; compile a test program.
12259 if test "$cross_compiling" = yes; then
12260   # try to guess the endianness by grepping values into an object file
12261   sdcc_cv_build_bigendian=unknown
12262   cat >conftest.$ac_ext <<_ACEOF
12263 /* confdefs.h.  */
12264 _ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h.  */
12268 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12269 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12270 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12271 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12272 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12273 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12274 int
12275 main ()
12276 {
12277  _ascii (); _ebcdic ();
12278   ;
12279   return 0;
12280 }
12281 _ACEOF
12282 rm -f conftest.$ac_objext
12283 if { (ac_try="$ac_compile"
12284 case "(($ac_try" in
12285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286   *) ac_try_echo=$ac_try;;
12287 esac
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289   (eval "$ac_compile") 2>conftest.er1
12290   ac_status=$?
12291   grep -v '^ *+' conftest.er1 >conftest.err
12292   rm -f conftest.er1
12293   cat conftest.err >&5
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); } && {
12296          test -z "$ac_cxx_werror_flag" ||
12297          test ! -s conftest.err
12298        } && test -s conftest.$ac_objext; then
12299   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12300   sdcc_cv_build_bigendian=yes
12301 fi
12302 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12303   if test "$sdcc_cv_build_bigendian" = unknown; then
12304     sdcc_cv_build_bigendian=no
12305   else
12306     # finding both strings is unlikely to happen, but who knows?
12307     sdcc_cv_build_bigendian=unknown
12308   fi
12309 fi
12310 else
12311   echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12313
12314
12315 fi
12316
12317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12318 else
12319   cat >conftest.$ac_ext <<_ACEOF
12320 /* confdefs.h.  */
12321 _ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h.  */
12325 $ac_includes_default
12326 int
12327 main ()
12328 {
12329
12330   /* Are we little or big endian?  From Harbison&Steele.  */
12331   union
12332   {
12333     long int l;
12334     char c[sizeof (long int)];
12335   } u;
12336   u.l = 1;
12337   return u.c[sizeof (long int) - 1] == 1;
12338
12339   ;
12340   return 0;
12341 }
12342 _ACEOF
12343 rm -f conftest$ac_exeext
12344 if { (ac_try="$ac_link"
12345 case "(($ac_try" in
12346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347   *) ac_try_echo=$ac_try;;
12348 esac
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350   (eval "$ac_link") 2>&5
12351   ac_status=$?
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12354   { (case "(($ac_try" in
12355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356   *) ac_try_echo=$ac_try;;
12357 esac
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359   (eval "$ac_try") 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }; }; then
12363   sdcc_cv_build_bigendian=no
12364 else
12365   echo "$as_me: program exited with status $ac_status" >&5
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12368
12369 ( exit $ac_status )
12370 sdcc_cv_build_bigendian=yes
12371 fi
12372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12373 fi
12374
12375
12376 fi
12377
12378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379 fi
12380 { echo "$as_me:$LINENO: result: $sdcc_cv_build_bigendian" >&5
12381 echo "${ECHO_T}$sdcc_cv_build_bigendian" >&6; }
12382 case $sdcc_cv_build_bigendian in
12383   yes)
12384
12385 cat >>confdefs.h <<\_ACEOF
12386 #define BUILD_WORDS_BIGENDIAN 1
12387 _ACEOF
12388  ;;
12389   no)
12390      ;;
12391   *)
12392     { { echo "$as_me:$LINENO: error: unknown endianness
12393 presetting sdcc_cv_build_bigendian=no (or yes) will help" >&5
12394 echo "$as_me: error: unknown endianness
12395 presetting sdcc_cv_build_bigendian=no (or yes) will help" >&2;}
12396    { (exit 1); exit 1; }; } ;;
12397 esac
12398
12399
12400 { echo "$as_me:$LINENO: checking whether preprocessor accepts -MM or -M" >&5
12401 echo $ECHO_N "checking whether preprocessor accepts -MM or -M... $ECHO_C" >&6; }
12402 if test "${ucsim_cv_MM+set}" = set; then
12403   echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405   echo "#include <stdio.h>" >_test_.c
12406 echo "" >>_test_.c
12407 $CXXCPP -v -MM _test_.c 1>&5 2>&5
12408 if test "$?" = "0"; then
12409   ucsim_cv_MM="-MM"
12410 else
12411   ucsim_cv_MM="-M"
12412 fi
12413 rm -f _test_.*
12414 fi
12415 { echo "$as_me:$LINENO: result: $ucsim_cv_MM" >&5
12416 echo "${ECHO_T}$ucsim_cv_MM" >&6; }
12417 M_OR_MM=$ucsim_cv_MM
12418
12419
12420 # This is the first time when CFLAGS are set/modified!!
12421
12422
12423 { echo "$as_me:$LINENO: checking whether $CXX accepts -ggdb" >&5
12424 echo $ECHO_N "checking whether $CXX accepts -ggdb... $ECHO_C" >&6; }
12425 if test "${ucsim_cv_CXXggdb+set}" = set; then
12426   echo $ECHO_N "(cached) $ECHO_C" >&6
12427 else
12428   cat >_test_.c <<EOF
12429 int main(void) {return(0);}
12430 EOF
12431 $CXX -v -ggdb -c _test_.c 1>&5 2>&5
12432 if test "$?" = "0"; then
12433   ucsim_cv_CXXggdb="yes"
12434 else
12435   ucsim_cv_CXXggdb="no"
12436 fi
12437 rm -f _test_.* a.out
12438 fi
12439 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXggdb" >&5
12440 echo "${ECHO_T}$ucsim_cv_CXXggdb" >&6; }
12441
12442
12443 { echo "$as_me:$LINENO: checking whether $CXX accepts -gstabs" >&5
12444 echo $ECHO_N "checking whether $CXX accepts -gstabs... $ECHO_C" >&6; }
12445 if test "${ucsim_cv_CXXgstabs+set}" = set; then
12446   echo $ECHO_N "(cached) $ECHO_C" >&6
12447 else
12448   cat >_test_.c <<EOF
12449 int main(void) {return(0);}
12450 EOF
12451 $CXX -v -gstabs -c _test_.c 1>&5 2>&5
12452 if test "$?" = "0"; then
12453   ucsim_cv_CXXgstabs="yes"
12454 else
12455   ucsim_cv_CXXgstabs="no"
12456 fi
12457 rm -f _test_.* a.out
12458 fi
12459 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXgstabs" >&5
12460 echo "${ECHO_T}$ucsim_cv_CXXgstabs" >&6; }
12461
12462 if test "$ucsim_cv_CXXgstabs" = "yes"; then
12463    gopt="-gstabs+ -g3"
12464 elif test "$ucsim_cv_CXXggdb" = "yes"; then
12465      gopt="-ggdb -g3"
12466 else
12467      gopt="-g"
12468 fi
12469 if test "$CXXFLAGS"x = x ;then
12470         CXXFLAGS="$gopt"
12471 else
12472         CXXFLAGS="$CXXFLAGS $gopt"
12473 fi
12474
12475
12476 { echo "$as_me:$LINENO: checking whether $CXX accepts -pipe" >&5
12477 echo $ECHO_N "checking whether $CXX accepts -pipe... $ECHO_C" >&6; }
12478 if test "${ucsim_cv_CXXpipe+set}" = set; then
12479   echo $ECHO_N "(cached) $ECHO_C" >&6
12480 else
12481   cat >_test_.c <<EOF
12482 int main(void) {return(0);}
12483 EOF
12484 $CXX -v -pipe -c _test_.c 1>&5 2>&5
12485 if test "$?" = "0"; then
12486   ucsim_cv_CXXpipe="yes"
12487 else
12488   ucsim_cv_CXXpipe="no"
12489 fi
12490 rm -f _test_.* a.out
12491 fi
12492 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXpipe" >&5
12493 echo "${ECHO_T}$ucsim_cv_CXXpipe" >&6; }
12494
12495 if test "$ucsim_cv_CXXpipe" = "yes"; then
12496   CXXFLAGS="$CXXFLAGS -pipe"
12497 fi
12498
12499 PICOPT=""
12500 SHAREDLIB="no"
12501
12502 { echo "$as_me:$LINENO: checking whether $CXX accepts and doesn't ignore -fPIC" >&5
12503 echo $ECHO_N "checking whether $CXX accepts and doesn't ignore -fPIC... $ECHO_C" >&6; }
12504 if test "${ucsim_cv_CXXfPIC+set}" = set; then
12505   echo $ECHO_N "(cached) $ECHO_C" >&6
12506 else
12507   cat >_test_.c <<EOF
12508 int main(void) {return(0);}
12509 EOF
12510 ucsim_cv_CXXfPIC=$($CXX -v -fPIC -c _test_.c 2>&1 1>&5)
12511 if test "$?" = "0"; then
12512   expr "$ucsim_cv_CXXfPIC" : '.*'-fPIC'.*ignored' 1>&5 2>&5
12513   if test "$?" = "0"; then
12514     ucsim_cv_CXXfPIC="no"
12515   else
12516     ucsim_cv_CXXfPIC="yes"
12517   fi
12518 else
12519   ucsim_cv_CXXfPIC="no"
12520 fi
12521 rm -f _test_.* a.out
12522 fi
12523 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXfPIC" >&5
12524 echo "${ECHO_T}$ucsim_cv_CXXfPIC" >&6; }
12525
12526 if test "$ucsim_cv_CXXfPIC" = "yes"; then
12527     PICOPT="-fPIC"
12528 else
12529
12530 { echo "$as_me:$LINENO: checking whether $CXX accepts and doesn't ignore -fpic" >&5
12531 echo $ECHO_N "checking whether $CXX accepts and doesn't ignore -fpic... $ECHO_C" >&6; }
12532 if test "${ucsim_cv_CXXfpic+set}" = set; then
12533   echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535   cat >_test_.c <<EOF
12536 int main(void) {return(0);}
12537 EOF
12538 ucsim_cv_CXXfpic=$($CXX -v -fpic -c _test_.c 2>&1 1>&5)
12539 if test "$?" = "0"; then
12540   expr "$ucsim_cv_CXXfpic" : '.*'-fpic'.*ignored' 1>&5 2>&5
12541   if test "$?" = "0"; then
12542     ucsim_cv_CXXfpic="no"
12543   else
12544     ucsim_cv_CXXfpic="yes"
12545   fi
12546 else
12547   ucsim_cv_CXXfpic="no"
12548 fi
12549 rm -f _test_.* a.out
12550 fi
12551 { echo "$as_me:$LINENO: result: $ucsim_cv_CXXfpic" >&5
12552 echo "${ECHO_T}$ucsim_cv_CXXfpic" >&6; }
12553
12554     if test "$ucsim_cv_CXXfpic" = "yes"; then
12555         PICOPT="-fpic"
12556     fi
12557 fi
12558 if test "$PICOPT"x != "x"; then
12559     SHAREDLIB="yes"
12560 fi
12561
12562
12563
12564 dlso_ok="no"
12565 if test $SHAREDLIB = "yes" -a $dl_ok = "yes" -a $enable_dlso = "yes"; then
12566     dlso_ok="yes"
12567 fi
12568
12569
12570 # Checks for typedefs, structures, and compiler characteristics.
12571 # ===========================================================================
12572
12573 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12574 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
12575 if test "${ac_cv_type_signal+set}" = set; then
12576   echo $ECHO_N "(cached) $ECHO_C" >&6
12577 else
12578   cat >conftest.$ac_ext <<_ACEOF
12579 /* confdefs.h.  */
12580 _ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h.  */
12584 #include <sys/types.h>
12585 #include <signal.h>
12586
12587 int
12588 main ()
12589 {
12590 return *(signal (0, 0)) (0) == 1;
12591   ;
12592   return 0;
12593 }
12594 _ACEOF
12595 rm -f conftest.$ac_objext
12596 if { (ac_try="$ac_compile"
12597 case "(($ac_try" in
12598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12599   *) ac_try_echo=$ac_try;;
12600 esac
12601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602   (eval "$ac_compile") 2>conftest.er1
12603   ac_status=$?
12604   grep -v '^ *+' conftest.er1 >conftest.err
12605   rm -f conftest.er1
12606   cat conftest.err >&5
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); } && {
12609          test -z "$ac_cxx_werror_flag" ||
12610          test ! -s conftest.err
12611        } && test -s conftest.$ac_objext; then
12612   ac_cv_type_signal=int
12613 else
12614   echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12616
12617         ac_cv_type_signal=void
12618 fi
12619
12620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621 fi
12622 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12623 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
12624
12625 cat >>confdefs.h <<_ACEOF
12626 #define RETSIGTYPE $ac_cv_type_signal
12627 _ACEOF
12628
12629
12630 if test "$cross_compiling" = "no"; then
12631 { echo "$as_me:$LINENO: checking for char" >&5
12632 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
12633 if test "${ac_cv_type_char+set}" = set; then
12634   echo $ECHO_N "(cached) $ECHO_C" >&6
12635 else
12636   cat >conftest.$ac_ext <<_ACEOF
12637 /* confdefs.h.  */
12638 _ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h.  */
12642 $ac_includes_default
12643 typedef char ac__type_new_;
12644 int
12645 main ()
12646 {
12647 if ((ac__type_new_ *) 0)
12648   return 0;
12649 if (sizeof (ac__type_new_))
12650   return 0;
12651   ;
12652   return 0;
12653 }
12654 _ACEOF
12655 rm -f conftest.$ac_objext
12656 if { (ac_try="$ac_compile"
12657 case "(($ac_try" in
12658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659   *) ac_try_echo=$ac_try;;
12660 esac
12661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12662   (eval "$ac_compile") 2>conftest.er1
12663   ac_status=$?
12664   grep -v '^ *+' conftest.er1 >conftest.err
12665   rm -f conftest.er1
12666   cat conftest.err >&5
12667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668   (exit $ac_status); } && {
12669          test -z "$ac_cxx_werror_flag" ||
12670          test ! -s conftest.err
12671        } && test -s conftest.$ac_objext; then
12672   ac_cv_type_char=yes
12673 else
12674   echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12676
12677         ac_cv_type_char=no
12678 fi
12679
12680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12681 fi
12682 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12683 echo "${ECHO_T}$ac_cv_type_char" >&6; }
12684
12685 # The cast to long int works around a bug in the HP C Compiler
12686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12688 # This bug is HP SR number 8606223364.
12689 { echo "$as_me:$LINENO: checking size of char" >&5
12690 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
12691 if test "${ac_cv_sizeof_char+set}" = set; then
12692   echo $ECHO_N "(cached) $ECHO_C" >&6
12693 else
12694   if test "$cross_compiling" = yes; then
12695   # Depending upon the size, compute the lo and hi bounds.
12696 cat >conftest.$ac_ext <<_ACEOF
12697 /* confdefs.h.  */
12698 _ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h.  */
12702 $ac_includes_default
12703    typedef char ac__type_sizeof_;
12704 int
12705 main ()
12706 {
12707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12708 test_array [0] = 0
12709
12710   ;
12711   return 0;
12712 }
12713 _ACEOF
12714 rm -f conftest.$ac_objext
12715 if { (ac_try="$ac_compile"
12716 case "(($ac_try" in
12717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12718   *) ac_try_echo=$ac_try;;
12719 esac
12720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12721   (eval "$ac_compile") 2>conftest.er1
12722   ac_status=$?
12723   grep -v '^ *+' conftest.er1 >conftest.err
12724   rm -f conftest.er1
12725   cat conftest.err >&5
12726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); } && {
12728          test -z "$ac_cxx_werror_flag" ||
12729          test ! -s conftest.err
12730        } && test -s conftest.$ac_objext; then
12731   ac_lo=0 ac_mid=0
12732   while :; do
12733     cat >conftest.$ac_ext <<_ACEOF
12734 /* confdefs.h.  */
12735 _ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h.  */
12739 $ac_includes_default
12740    typedef char ac__type_sizeof_;
12741 int
12742 main ()
12743 {
12744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12745 test_array [0] = 0
12746
12747   ;
12748   return 0;
12749 }
12750 _ACEOF
12751 rm -f conftest.$ac_objext
12752 if { (ac_try="$ac_compile"
12753 case "(($ac_try" in
12754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755   *) ac_try_echo=$ac_try;;
12756 esac
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758   (eval "$ac_compile") 2>conftest.er1
12759   ac_status=$?
12760   grep -v '^ *+' conftest.er1 >conftest.err
12761   rm -f conftest.er1
12762   cat conftest.err >&5
12763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764   (exit $ac_status); } && {
12765          test -z "$ac_cxx_werror_flag" ||
12766          test ! -s conftest.err
12767        } && test -s conftest.$ac_objext; then
12768   ac_hi=$ac_mid; break
12769 else
12770   echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12772
12773         ac_lo=`expr $ac_mid + 1`
12774                         if test $ac_lo -le $ac_mid; then
12775                           ac_lo= ac_hi=
12776                           break
12777                         fi
12778                         ac_mid=`expr 2 '*' $ac_mid + 1`
12779 fi
12780
12781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12782   done
12783 else
12784   echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12786
12787         cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h.  */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h.  */
12793 $ac_includes_default
12794    typedef char ac__type_sizeof_;
12795 int
12796 main ()
12797 {
12798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12799 test_array [0] = 0
12800
12801   ;
12802   return 0;
12803 }
12804 _ACEOF
12805 rm -f conftest.$ac_objext
12806 if { (ac_try="$ac_compile"
12807 case "(($ac_try" in
12808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12809   *) ac_try_echo=$ac_try;;
12810 esac
12811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12812   (eval "$ac_compile") 2>conftest.er1
12813   ac_status=$?
12814   grep -v '^ *+' conftest.er1 >conftest.err
12815   rm -f conftest.er1
12816   cat conftest.err >&5
12817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818   (exit $ac_status); } && {
12819          test -z "$ac_cxx_werror_flag" ||
12820          test ! -s conftest.err
12821        } && test -s conftest.$ac_objext; then
12822   ac_hi=-1 ac_mid=-1
12823   while :; do
12824     cat >conftest.$ac_ext <<_ACEOF
12825 /* confdefs.h.  */
12826 _ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h.  */
12830 $ac_includes_default
12831    typedef char ac__type_sizeof_;
12832 int
12833 main ()
12834 {
12835 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12836 test_array [0] = 0
12837
12838   ;
12839   return 0;
12840 }
12841 _ACEOF
12842 rm -f conftest.$ac_objext
12843 if { (ac_try="$ac_compile"
12844 case "(($ac_try" in
12845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846   *) ac_try_echo=$ac_try;;
12847 esac
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849   (eval "$ac_compile") 2>conftest.er1
12850   ac_status=$?
12851   grep -v '^ *+' conftest.er1 >conftest.err
12852   rm -f conftest.er1
12853   cat conftest.err >&5
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); } && {
12856          test -z "$ac_cxx_werror_flag" ||
12857          test ! -s conftest.err
12858        } && test -s conftest.$ac_objext; then
12859   ac_lo=$ac_mid; break
12860 else
12861   echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12863
12864         ac_hi=`expr '(' $ac_mid ')' - 1`
12865                         if test $ac_mid -le $ac_hi; then
12866                           ac_lo= ac_hi=
12867                           break
12868                         fi
12869                         ac_mid=`expr 2 '*' $ac_mid`
12870 fi
12871
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873   done
12874 else
12875   echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12877
12878         ac_lo= ac_hi=
12879 fi
12880
12881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882 fi
12883
12884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12885 # Binary search between lo and hi bounds.
12886 while test "x$ac_lo" != "x$ac_hi"; do
12887   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12888   cat >conftest.$ac_ext <<_ACEOF
12889 /* confdefs.h.  */
12890 _ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h.  */
12894 $ac_includes_default
12895    typedef char ac__type_sizeof_;
12896 int
12897 main ()
12898 {
12899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12900 test_array [0] = 0
12901
12902   ;
12903   return 0;
12904 }
12905 _ACEOF
12906 rm -f conftest.$ac_objext
12907 if { (ac_try="$ac_compile"
12908 case "(($ac_try" in
12909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910   *) ac_try_echo=$ac_try;;
12911 esac
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913   (eval "$ac_compile") 2>conftest.er1
12914   ac_status=$?
12915   grep -v '^ *+' conftest.er1 >conftest.err
12916   rm -f conftest.er1
12917   cat conftest.err >&5
12918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919   (exit $ac_status); } && {
12920          test -z "$ac_cxx_werror_flag" ||
12921          test ! -s conftest.err
12922        } && test -s conftest.$ac_objext; then
12923   ac_hi=$ac_mid
12924 else
12925   echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12927
12928         ac_lo=`expr '(' $ac_mid ')' + 1`
12929 fi
12930
12931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12932 done
12933 case $ac_lo in
12934 ?*) ac_cv_sizeof_char=$ac_lo;;
12935 '') if test "$ac_cv_type_char" = yes; then
12936      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
12937 See \`config.log' for more details." >&5
12938 echo "$as_me: error: cannot compute sizeof (char)
12939 See \`config.log' for more details." >&2;}
12940    { (exit 77); exit 77; }; }
12941    else
12942      ac_cv_sizeof_char=0
12943    fi ;;
12944 esac
12945 else
12946   cat >conftest.$ac_ext <<_ACEOF
12947 /* confdefs.h.  */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h.  */
12952 $ac_includes_default
12953    typedef char ac__type_sizeof_;
12954 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12955 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12956 #include <stdio.h>
12957 #include <stdlib.h>
12958 int
12959 main ()
12960 {
12961
12962   FILE *f = fopen ("conftest.val", "w");
12963   if (! f)
12964     return 1;
12965   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12966     {
12967       long int i = longval ();
12968       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12969         return 1;
12970       fprintf (f, "%ld\n", i);
12971     }
12972   else
12973     {
12974       unsigned long int i = ulongval ();
12975       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12976         return 1;
12977       fprintf (f, "%lu\n", i);
12978     }
12979   return ferror (f) || fclose (f) != 0;
12980
12981   ;
12982   return 0;
12983 }
12984 _ACEOF
12985 rm -f conftest$ac_exeext
12986 if { (ac_try="$ac_link"
12987 case "(($ac_try" in
12988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989   *) ac_try_echo=$ac_try;;
12990 esac
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992   (eval "$ac_link") 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12996   { (case "(($ac_try" in
12997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998   *) ac_try_echo=$ac_try;;
12999 esac
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001   (eval "$ac_try") 2>&5
13002   ac_status=$?
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); }; }; then
13005   ac_cv_sizeof_char=`cat conftest.val`
13006 else
13007   echo "$as_me: program exited with status $ac_status" >&5
13008 echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13010
13011 ( exit $ac_status )
13012 if test "$ac_cv_type_char" = yes; then
13013      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
13014 See \`config.log' for more details." >&5
13015 echo "$as_me: error: cannot compute sizeof (char)
13016 See \`config.log' for more details." >&2;}
13017    { (exit 77); exit 77; }; }
13018    else
13019      ac_cv_sizeof_char=0
13020    fi
13021 fi
13022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13023 fi
13024 rm -f conftest.val
13025 fi
13026 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13027 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
13028
13029
13030
13031 cat >>confdefs.h <<_ACEOF
13032 #define SIZEOF_CHAR $ac_cv_sizeof_char
13033 _ACEOF
13034
13035
13036 { echo "$as_me:$LINENO: checking for short" >&5
13037 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
13038 if test "${ac_cv_type_short+set}" = set; then
13039   echo $ECHO_N "(cached) $ECHO_C" >&6
13040 else
13041   cat >conftest.$ac_ext <<_ACEOF
13042 /* confdefs.h.  */
13043 _ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h.  */
13047 $ac_includes_default
13048 typedef short ac__type_new_;
13049 int
13050 main ()
13051 {
13052 if ((ac__type_new_ *) 0)
13053   return 0;
13054 if (sizeof (ac__type_new_))
13055   return 0;
13056   ;
13057   return 0;
13058 }
13059 _ACEOF
13060 rm -f conftest.$ac_objext
13061 if { (ac_try="$ac_compile"
13062 case "(($ac_try" in
13063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064   *) ac_try_echo=$ac_try;;
13065 esac
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067   (eval "$ac_compile") 2>conftest.er1
13068   ac_status=$?
13069   grep -v '^ *+' conftest.er1 >conftest.err
13070   rm -f conftest.er1
13071   cat conftest.err >&5
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); } && {
13074          test -z "$ac_cxx_werror_flag" ||
13075          test ! -s conftest.err
13076        } && test -s conftest.$ac_objext; then
13077   ac_cv_type_short=yes
13078 else
13079   echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13081
13082         ac_cv_type_short=no
13083 fi
13084
13085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13086 fi
13087 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13088 echo "${ECHO_T}$ac_cv_type_short" >&6; }
13089
13090 # The cast to long int works around a bug in the HP C Compiler
13091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13093 # This bug is HP SR number 8606223364.
13094 { echo "$as_me:$LINENO: checking size of short" >&5
13095 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
13096 if test "${ac_cv_sizeof_short+set}" = set; then
13097   echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099   if test "$cross_compiling" = yes; then
13100   # Depending upon the size, compute the lo and hi bounds.
13101 cat >conftest.$ac_ext <<_ACEOF
13102 /* confdefs.h.  */
13103 _ACEOF
13104 cat confdefs.h >>conftest.$ac_ext
13105 cat >>conftest.$ac_ext <<_ACEOF
13106 /* end confdefs.h.  */
13107 $ac_includes_default
13108    typedef short ac__type_sizeof_;
13109 int
13110 main ()
13111 {
13112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13113 test_array [0] = 0
13114
13115   ;
13116   return 0;
13117 }
13118 _ACEOF
13119 rm -f conftest.$ac_objext
13120 if { (ac_try="$ac_compile"
13121 case "(($ac_try" in
13122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123   *) ac_try_echo=$ac_try;;
13124 esac
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126   (eval "$ac_compile") 2>conftest.er1
13127   ac_status=$?
13128   grep -v '^ *+' conftest.er1 >conftest.err
13129   rm -f conftest.er1
13130   cat conftest.err >&5
13131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); } && {
13133          test -z "$ac_cxx_werror_flag" ||
13134          test ! -s conftest.err
13135        } && test -s conftest.$ac_objext; then
13136   ac_lo=0 ac_mid=0
13137   while :; do
13138     cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h.  */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h.  */
13144 $ac_includes_default
13145    typedef short ac__type_sizeof_;
13146 int
13147 main ()
13148 {
13149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13150 test_array [0] = 0
13151
13152   ;
13153   return 0;
13154 }
13155 _ACEOF
13156 rm -f conftest.$ac_objext
13157 if { (ac_try="$ac_compile"
13158 case "(($ac_try" in
13159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160   *) ac_try_echo=$ac_try;;
13161 esac
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163   (eval "$ac_compile") 2>conftest.er1
13164   ac_status=$?
13165   grep -v '^ *+' conftest.er1 >conftest.err
13166   rm -f conftest.er1
13167   cat conftest.err >&5
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); } && {
13170          test -z "$ac_cxx_werror_flag" ||
13171          test ! -s conftest.err
13172        } && test -s conftest.$ac_objext; then
13173   ac_hi=$ac_mid; break
13174 else
13175   echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13177
13178         ac_lo=`expr $ac_mid + 1`
13179                         if test $ac_lo -le $ac_mid; then
13180                           ac_lo= ac_hi=
13181                           break
13182                         fi
13183                         ac_mid=`expr 2 '*' $ac_mid + 1`
13184 fi
13185
13186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13187   done
13188 else
13189   echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13191
13192         cat >conftest.$ac_ext <<_ACEOF
13193 /* confdefs.h.  */
13194 _ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h.  */
13198 $ac_includes_default
13199    typedef short ac__type_sizeof_;
13200 int
13201 main ()
13202 {
13203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13204 test_array [0] = 0
13205
13206   ;
13207   return 0;
13208 }
13209 _ACEOF
13210 rm -f conftest.$ac_objext
13211 if { (ac_try="$ac_compile"
13212 case "(($ac_try" in
13213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214   *) ac_try_echo=$ac_try;;
13215 esac
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217   (eval "$ac_compile") 2>conftest.er1
13218   ac_status=$?
13219   grep -v '^ *+' conftest.er1 >conftest.err
13220   rm -f conftest.er1
13221   cat conftest.err >&5
13222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223   (exit $ac_status); } && {
13224          test -z "$ac_cxx_werror_flag" ||
13225          test ! -s conftest.err
13226        } && test -s conftest.$ac_objext; then
13227   ac_hi=-1 ac_mid=-1
13228   while :; do
13229     cat >conftest.$ac_ext <<_ACEOF
13230 /* confdefs.h.  */
13231 _ACEOF
13232 cat confdefs.h >>conftest.$ac_ext
13233 cat >>conftest.$ac_ext <<_ACEOF
13234 /* end confdefs.h.  */
13235 $ac_includes_default
13236    typedef short ac__type_sizeof_;
13237 int
13238 main ()
13239 {
13240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13241 test_array [0] = 0
13242
13243   ;
13244   return 0;
13245 }
13246 _ACEOF
13247 rm -f conftest.$ac_objext
13248 if { (ac_try="$ac_compile"
13249 case "(($ac_try" in
13250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251   *) ac_try_echo=$ac_try;;
13252 esac
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254   (eval "$ac_compile") 2>conftest.er1
13255   ac_status=$?
13256   grep -v '^ *+' conftest.er1 >conftest.err
13257   rm -f conftest.er1
13258   cat conftest.err >&5
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); } && {
13261          test -z "$ac_cxx_werror_flag" ||
13262          test ! -s conftest.err
13263        } && test -s conftest.$ac_objext; then
13264   ac_lo=$ac_mid; break
13265 else
13266   echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13268
13269         ac_hi=`expr '(' $ac_mid ')' - 1`
13270                         if test $ac_mid -le $ac_hi; then
13271                           ac_lo= ac_hi=
13272                           break
13273                         fi
13274                         ac_mid=`expr 2 '*' $ac_mid`
13275 fi
13276
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278   done
13279 else
13280   echo "$as_me: failed program was:" >&5
13281 sed 's/^/| /' conftest.$ac_ext >&5
13282
13283         ac_lo= ac_hi=
13284 fi
13285
13286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13287 fi
13288
13289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13290 # Binary search between lo and hi bounds.
13291 while test "x$ac_lo" != "x$ac_hi"; do
13292   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13293   cat >conftest.$ac_ext <<_ACEOF
13294 /* confdefs.h.  */
13295 _ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h.  */
13299 $ac_includes_default
13300    typedef short ac__type_sizeof_;
13301 int
13302 main ()
13303 {
13304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13305 test_array [0] = 0
13306
13307   ;
13308   return 0;
13309 }
13310 _ACEOF
13311 rm -f conftest.$ac_objext
13312 if { (ac_try="$ac_compile"
13313 case "(($ac_try" in
13314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315   *) ac_try_echo=$ac_try;;
13316 esac
13317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13318   (eval "$ac_compile") 2>conftest.er1
13319   ac_status=$?
13320   grep -v '^ *+' conftest.er1 >conftest.err
13321   rm -f conftest.er1
13322   cat conftest.err >&5
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); } && {
13325          test -z "$ac_cxx_werror_flag" ||
13326          test ! -s conftest.err
13327        } && test -s conftest.$ac_objext; then
13328   ac_hi=$ac_mid
13329 else
13330   echo "$as_me: failed program was:" >&5
13331 sed 's/^/| /' conftest.$ac_ext >&5
13332
13333         ac_lo=`expr '(' $ac_mid ')' + 1`
13334 fi
13335
13336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337 done
13338 case $ac_lo in
13339 ?*) ac_cv_sizeof_short=$ac_lo;;
13340 '') if test "$ac_cv_type_short" = yes; then
13341      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13342 See \`config.log' for more details." >&5
13343 echo "$as_me: error: cannot compute sizeof (short)
13344 See \`config.log' for more details." >&2;}
13345    { (exit 77); exit 77; }; }
13346    else
13347      ac_cv_sizeof_short=0
13348    fi ;;
13349 esac
13350 else
13351   cat >conftest.$ac_ext <<_ACEOF
13352 /* confdefs.h.  */
13353 _ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h.  */
13357 $ac_includes_default
13358    typedef short ac__type_sizeof_;
13359 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13360 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13361 #include <stdio.h>
13362 #include <stdlib.h>
13363 int
13364 main ()
13365 {
13366
13367   FILE *f = fopen ("conftest.val", "w");
13368   if (! f)
13369     return 1;
13370   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13371     {
13372       long int i = longval ();
13373       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13374         return 1;
13375       fprintf (f, "%ld\n", i);
13376     }
13377   else
13378     {
13379       unsigned long int i = ulongval ();
13380       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13381         return 1;
13382       fprintf (f, "%lu\n", i);
13383     }
13384   return ferror (f) || fclose (f) != 0;
13385
13386   ;
13387   return 0;
13388 }
13389 _ACEOF
13390 rm -f conftest$ac_exeext
13391 if { (ac_try="$ac_link"
13392 case "(($ac_try" in
13393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394   *) ac_try_echo=$ac_try;;
13395 esac
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397   (eval "$ac_link") 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13401   { (case "(($ac_try" in
13402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403   *) ac_try_echo=$ac_try;;
13404 esac
13405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406   (eval "$ac_try") 2>&5
13407   ac_status=$?
13408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409   (exit $ac_status); }; }; then
13410   ac_cv_sizeof_short=`cat conftest.val`
13411 else
13412   echo "$as_me: program exited with status $ac_status" >&5
13413 echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13415
13416 ( exit $ac_status )
13417 if test "$ac_cv_type_short" = yes; then
13418      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13419 See \`config.log' for more details." >&5
13420 echo "$as_me: error: cannot compute sizeof (short)
13421 See \`config.log' for more details." >&2;}
13422    { (exit 77); exit 77; }; }
13423    else
13424      ac_cv_sizeof_short=0
13425    fi
13426 fi
13427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13428 fi
13429 rm -f conftest.val
13430 fi
13431 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13432 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
13433
13434
13435
13436 cat >>confdefs.h <<_ACEOF
13437 #define SIZEOF_SHORT $ac_cv_sizeof_short
13438 _ACEOF
13439
13440
13441 { echo "$as_me:$LINENO: checking for int" >&5
13442 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
13443 if test "${ac_cv_type_int+set}" = set; then
13444   echo $ECHO_N "(cached) $ECHO_C" >&6
13445 else
13446   cat >conftest.$ac_ext <<_ACEOF
13447 /* confdefs.h.  */
13448 _ACEOF
13449 cat confdefs.h >>conftest.$ac_ext
13450 cat >>conftest.$ac_ext <<_ACEOF
13451 /* end confdefs.h.  */
13452 $ac_includes_default
13453 typedef int ac__type_new_;
13454 int
13455 main ()
13456 {
13457 if ((ac__type_new_ *) 0)
13458   return 0;
13459 if (sizeof (ac__type_new_))
13460   return 0;
13461   ;
13462   return 0;
13463 }
13464 _ACEOF
13465 rm -f conftest.$ac_objext
13466 if { (ac_try="$ac_compile"
13467 case "(($ac_try" in
13468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469   *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472   (eval "$ac_compile") 2>conftest.er1
13473   ac_status=$?
13474   grep -v '^ *+' conftest.er1 >conftest.err
13475   rm -f conftest.er1
13476   cat conftest.err >&5
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); } && {
13479          test -z "$ac_cxx_werror_flag" ||
13480          test ! -s conftest.err
13481        } && test -s conftest.$ac_objext; then
13482   ac_cv_type_int=yes
13483 else
13484   echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13486
13487         ac_cv_type_int=no
13488 fi
13489
13490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13491 fi
13492 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13493 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13494
13495 # The cast to long int works around a bug in the HP C Compiler
13496 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13497 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13498 # This bug is HP SR number 8606223364.
13499 { echo "$as_me:$LINENO: checking size of int" >&5
13500 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13501 if test "${ac_cv_sizeof_int+set}" = set; then
13502   echo $ECHO_N "(cached) $ECHO_C" >&6
13503 else
13504   if test "$cross_compiling" = yes; then
13505   # Depending upon the size, compute the lo and hi bounds.
13506 cat >conftest.$ac_ext <<_ACEOF
13507 /* confdefs.h.  */
13508 _ACEOF
13509 cat confdefs.h >>conftest.$ac_ext
13510 cat >>conftest.$ac_ext <<_ACEOF
13511 /* end confdefs.h.  */
13512 $ac_includes_default
13513    typedef int ac__type_sizeof_;
13514 int
13515 main ()
13516 {
13517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13518 test_array [0] = 0
13519
13520   ;
13521   return 0;
13522 }
13523 _ACEOF
13524 rm -f conftest.$ac_objext
13525 if { (ac_try="$ac_compile"
13526 case "(($ac_try" in
13527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528   *) ac_try_echo=$ac_try;;
13529 esac
13530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531   (eval "$ac_compile") 2>conftest.er1
13532   ac_status=$?
13533   grep -v '^ *+' conftest.er1 >conftest.err
13534   rm -f conftest.er1
13535   cat conftest.err >&5
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); } && {
13538          test -z "$ac_cxx_werror_flag" ||
13539          test ! -s conftest.err
13540        } && test -s conftest.$ac_objext; then
13541   ac_lo=0 ac_mid=0
13542   while :; do
13543     cat >conftest.$ac_ext <<_ACEOF
13544 /* confdefs.h.  */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h.  */
13549 $ac_includes_default
13550    typedef int ac__type_sizeof_;
13551 int
13552 main ()
13553 {
13554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13555 test_array [0] = 0
13556
13557   ;
13558   return 0;
13559 }
13560 _ACEOF
13561 rm -f conftest.$ac_objext
13562 if { (ac_try="$ac_compile"
13563 case "(($ac_try" in
13564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565   *) ac_try_echo=$ac_try;;
13566 esac
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568   (eval "$ac_compile") 2>conftest.er1
13569   ac_status=$?
13570   grep -v '^ *+' conftest.er1 >conftest.err
13571   rm -f conftest.er1
13572   cat conftest.err >&5
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); } && {
13575          test -z "$ac_cxx_werror_flag" ||
13576          test ! -s conftest.err
13577        } && test -s conftest.$ac_objext; then
13578   ac_hi=$ac_mid; break
13579 else
13580   echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13582
13583         ac_lo=`expr $ac_mid + 1`
13584                         if test $ac_lo -le $ac_mid; then
13585                           ac_lo= ac_hi=
13586                           break
13587                         fi
13588                         ac_mid=`expr 2 '*' $ac_mid + 1`
13589 fi
13590
13591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13592   done
13593 else
13594   echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13596
13597         cat >conftest.$ac_ext <<_ACEOF
13598 /* confdefs.h.  */
13599 _ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h.  */
13603 $ac_includes_default
13604    typedef int ac__type_sizeof_;
13605 int
13606 main ()
13607 {
13608 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13609 test_array [0] = 0
13610
13611   ;
13612   return 0;
13613 }
13614 _ACEOF
13615 rm -f conftest.$ac_objext
13616 if { (ac_try="$ac_compile"
13617 case "(($ac_try" in
13618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619   *) ac_try_echo=$ac_try;;
13620 esac
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622   (eval "$ac_compile") 2>conftest.er1
13623   ac_status=$?
13624   grep -v '^ *+' conftest.er1 >conftest.err
13625   rm -f conftest.er1
13626   cat conftest.err >&5
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); } && {
13629          test -z "$ac_cxx_werror_flag" ||
13630          test ! -s conftest.err
13631        } && test -s conftest.$ac_objext; then
13632   ac_hi=-1 ac_mid=-1
13633   while :; do
13634     cat >conftest.$ac_ext <<_ACEOF
13635 /* confdefs.h.  */
13636 _ACEOF
13637 cat confdefs.h >>conftest.$ac_ext
13638 cat >>conftest.$ac_ext <<_ACEOF
13639 /* end confdefs.h.  */
13640 $ac_includes_default
13641    typedef int ac__type_sizeof_;
13642 int
13643 main ()
13644 {
13645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13646 test_array [0] = 0
13647
13648   ;
13649   return 0;
13650 }
13651 _ACEOF
13652 rm -f conftest.$ac_objext
13653 if { (ac_try="$ac_compile"
13654 case "(($ac_try" in
13655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13656   *) ac_try_echo=$ac_try;;
13657 esac
13658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13659   (eval "$ac_compile") 2>conftest.er1
13660   ac_status=$?
13661   grep -v '^ *+' conftest.er1 >conftest.err
13662   rm -f conftest.er1
13663   cat conftest.err >&5
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); } && {
13666          test -z "$ac_cxx_werror_flag" ||
13667          test ! -s conftest.err
13668        } && test -s conftest.$ac_objext; then
13669   ac_lo=$ac_mid; break
13670 else
13671   echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.$ac_ext >&5
13673
13674         ac_hi=`expr '(' $ac_mid ')' - 1`
13675                         if test $ac_mid -le $ac_hi; then
13676                           ac_lo= ac_hi=
13677                           break
13678                         fi
13679                         ac_mid=`expr 2 '*' $ac_mid`
13680 fi
13681
13682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13683   done
13684 else
13685   echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13687
13688         ac_lo= ac_hi=
13689 fi
13690
13691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13692 fi
13693
13694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13695 # Binary search between lo and hi bounds.
13696 while test "x$ac_lo" != "x$ac_hi"; do
13697   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13698   cat >conftest.$ac_ext <<_ACEOF
13699 /* confdefs.h.  */
13700 _ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h.  */
13704 $ac_includes_default
13705    typedef int ac__type_sizeof_;
13706 int
13707 main ()
13708 {
13709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13710 test_array [0] = 0
13711
13712   ;
13713   return 0;
13714 }
13715 _ACEOF
13716 rm -f conftest.$ac_objext
13717 if { (ac_try="$ac_compile"
13718 case "(($ac_try" in
13719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720   *) ac_try_echo=$ac_try;;
13721 esac
13722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723   (eval "$ac_compile") 2>conftest.er1
13724   ac_status=$?
13725   grep -v '^ *+' conftest.er1 >conftest.err
13726   rm -f conftest.er1
13727   cat conftest.err >&5
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); } && {
13730          test -z "$ac_cxx_werror_flag" ||
13731          test ! -s conftest.err
13732        } && test -s conftest.$ac_objext; then
13733   ac_hi=$ac_mid
13734 else
13735   echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13737
13738         ac_lo=`expr '(' $ac_mid ')' + 1`
13739 fi
13740
13741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13742 done
13743 case $ac_lo in
13744 ?*) ac_cv_sizeof_int=$ac_lo;;
13745 '') if test "$ac_cv_type_int" = yes; then
13746      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13747 See \`config.log' for more details." >&5
13748 echo "$as_me: error: cannot compute sizeof (int)
13749 See \`config.log' for more details." >&2;}
13750    { (exit 77); exit 77; }; }
13751    else
13752      ac_cv_sizeof_int=0
13753    fi ;;
13754 esac
13755 else
13756   cat >conftest.$ac_ext <<_ACEOF
13757 /* confdefs.h.  */
13758 _ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h.  */
13762 $ac_includes_default
13763    typedef int ac__type_sizeof_;
13764 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13765 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13766 #include <stdio.h>
13767 #include <stdlib.h>
13768 int
13769 main ()
13770 {
13771
13772   FILE *f = fopen ("conftest.val", "w");
13773   if (! f)
13774     return 1;
13775   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13776     {
13777       long int i = longval ();
13778       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13779         return 1;
13780       fprintf (f, "%ld\n", i);
13781     }
13782   else
13783     {
13784       unsigned long int i = ulongval ();
13785       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13786         return 1;
13787       fprintf (f, "%lu\n", i);
13788     }
13789   return ferror (f) || fclose (f) != 0;
13790
13791   ;
13792   return 0;
13793 }
13794 _ACEOF
13795 rm -f conftest$ac_exeext
13796 if { (ac_try="$ac_link"
13797 case "(($ac_try" in
13798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799   *) ac_try_echo=$ac_try;;
13800 esac
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802   (eval "$ac_link") 2>&5
13803   ac_status=$?
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13806   { (case "(($ac_try" in
13807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808   *) ac_try_echo=$ac_try;;
13809 esac
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811   (eval "$ac_try") 2>&5
13812   ac_status=$?
13813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); }; }; then
13815   ac_cv_sizeof_int=`cat conftest.val`
13816 else
13817   echo "$as_me: program exited with status $ac_status" >&5
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13820
13821 ( exit $ac_status )
13822 if test "$ac_cv_type_int" = yes; then
13823      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13824 See \`config.log' for more details." >&5
13825 echo "$as_me: error: cannot compute sizeof (int)
13826 See \`config.log' for more details." >&2;}
13827    { (exit 77); exit 77; }; }
13828    else
13829      ac_cv_sizeof_int=0
13830    fi
13831 fi
13832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13833 fi
13834 rm -f conftest.val
13835 fi
13836 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13837 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13838
13839
13840
13841 cat >>confdefs.h <<_ACEOF
13842 #define SIZEOF_INT $ac_cv_sizeof_int
13843 _ACEOF
13844
13845
13846 { echo "$as_me:$LINENO: checking for long" >&5
13847 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13848 if test "${ac_cv_type_long+set}" = set; then
13849   echo $ECHO_N "(cached) $ECHO_C" >&6
13850 else
13851   cat >conftest.$ac_ext <<_ACEOF
13852 /* confdefs.h.  */
13853 _ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h.  */
13857 $ac_includes_default
13858 typedef long ac__type_new_;
13859 int
13860 main ()
13861 {
13862 if ((ac__type_new_ *) 0)
13863   return 0;
13864 if (sizeof (ac__type_new_))
13865   return 0;
13866   ;
13867   return 0;
13868 }
13869 _ACEOF
13870 rm -f conftest.$ac_objext
13871 if { (ac_try="$ac_compile"
13872 case "(($ac_try" in
13873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874   *) ac_try_echo=$ac_try;;
13875 esac
13876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13877   (eval "$ac_compile") 2>conftest.er1
13878   ac_status=$?
13879   grep -v '^ *+' conftest.er1 >conftest.err
13880   rm -f conftest.er1
13881   cat conftest.err >&5
13882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883   (exit $ac_status); } && {
13884          test -z "$ac_cxx_werror_flag" ||
13885          test ! -s conftest.err
13886        } && test -s conftest.$ac_objext; then
13887   ac_cv_type_long=yes
13888 else
13889   echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13891
13892         ac_cv_type_long=no
13893 fi
13894
13895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13896 fi
13897 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13898 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13899
13900 # The cast to long int works around a bug in the HP C Compiler
13901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13903 # This bug is HP SR number 8606223364.
13904 { echo "$as_me:$LINENO: checking size of long" >&5
13905 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13906 if test "${ac_cv_sizeof_long+set}" = set; then
13907   echo $ECHO_N "(cached) $ECHO_C" >&6
13908 else
13909   if test "$cross_compiling" = yes; then
13910   # Depending upon the size, compute the lo and hi bounds.
13911 cat >conftest.$ac_ext <<_ACEOF
13912 /* confdefs.h.  */
13913 _ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h.  */
13917 $ac_includes_default
13918    typedef long ac__type_sizeof_;
13919 int
13920 main ()
13921 {
13922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13923 test_array [0] = 0
13924
13925   ;
13926   return 0;
13927 }
13928 _ACEOF
13929 rm -f conftest.$ac_objext
13930 if { (ac_try="$ac_compile"
13931 case "(($ac_try" in
13932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933   *) ac_try_echo=$ac_try;;
13934 esac
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936   (eval "$ac_compile") 2>conftest.er1
13937   ac_status=$?
13938   grep -v '^ *+' conftest.er1 >conftest.err
13939   rm -f conftest.er1
13940   cat conftest.err >&5
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); } && {
13943          test -z "$ac_cxx_werror_flag" ||
13944          test ! -s conftest.err
13945        } && test -s conftest.$ac_objext; then
13946   ac_lo=0 ac_mid=0
13947   while :; do
13948     cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h.  */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h.  */
13954 $ac_includes_default
13955    typedef long ac__type_sizeof_;
13956 int
13957 main ()
13958 {
13959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13960 test_array [0] = 0
13961
13962   ;
13963   return 0;
13964 }
13965 _ACEOF
13966 rm -f conftest.$ac_objext
13967 if { (ac_try="$ac_compile"
13968 case "(($ac_try" in
13969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970   *) ac_try_echo=$ac_try;;
13971 esac
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973   (eval "$ac_compile") 2>conftest.er1
13974   ac_status=$?
13975   grep -v '^ *+' conftest.er1 >conftest.err
13976   rm -f conftest.er1
13977   cat conftest.err >&5
13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); } && {
13980          test -z "$ac_cxx_werror_flag" ||
13981          test ! -s conftest.err
13982        } && test -s conftest.$ac_objext; then
13983   ac_hi=$ac_mid; break
13984 else
13985   echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13987
13988         ac_lo=`expr $ac_mid + 1`
13989                         if test $ac_lo -le $ac_mid; then
13990                           ac_lo= ac_hi=
13991                           break
13992                         fi
13993                         ac_mid=`expr 2 '*' $ac_mid + 1`
13994 fi
13995
13996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997   done
13998 else
13999   echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14001
14002         cat >conftest.$ac_ext <<_ACEOF
14003 /* confdefs.h.  */
14004 _ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h.  */
14008 $ac_includes_default
14009    typedef long ac__type_sizeof_;
14010 int
14011 main ()
14012 {
14013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14014 test_array [0] = 0
14015
14016   ;
14017   return 0;
14018 }
14019 _ACEOF
14020 rm -f conftest.$ac_objext
14021 if { (ac_try="$ac_compile"
14022 case "(($ac_try" in
14023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024   *) ac_try_echo=$ac_try;;
14025 esac
14026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027   (eval "$ac_compile") 2>conftest.er1
14028   ac_status=$?
14029   grep -v '^ *+' conftest.er1 >conftest.err
14030   rm -f conftest.er1
14031   cat conftest.err >&5
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); } && {
14034          test -z "$ac_cxx_werror_flag" ||
14035          test ! -s conftest.err
14036        } && test -s conftest.$ac_objext; then
14037   ac_hi=-1 ac_mid=-1
14038   while :; do
14039     cat >conftest.$ac_ext <<_ACEOF
14040 /* confdefs.h.  */
14041 _ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h.  */
14045 $ac_includes_default
14046    typedef long ac__type_sizeof_;
14047 int
14048 main ()
14049 {
14050 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14051 test_array [0] = 0
14052
14053   ;
14054   return 0;
14055 }
14056 _ACEOF
14057 rm -f conftest.$ac_objext
14058 if { (ac_try="$ac_compile"
14059 case "(($ac_try" in
14060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061   *) ac_try_echo=$ac_try;;
14062 esac
14063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064   (eval "$ac_compile") 2>conftest.er1
14065   ac_status=$?
14066   grep -v '^ *+' conftest.er1 >conftest.err
14067   rm -f conftest.er1
14068   cat conftest.err >&5
14069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070   (exit $ac_status); } && {
14071          test -z "$ac_cxx_werror_flag" ||
14072          test ! -s conftest.err
14073        } && test -s conftest.$ac_objext; then
14074   ac_lo=$ac_mid; break
14075 else
14076   echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.$ac_ext >&5
14078
14079         ac_hi=`expr '(' $ac_mid ')' - 1`
14080                         if test $ac_mid -le $ac_hi; then
14081                           ac_lo= ac_hi=
14082                           break
14083                         fi
14084                         ac_mid=`expr 2 '*' $ac_mid`
14085 fi
14086
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088   done
14089 else
14090   echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14092
14093         ac_lo= ac_hi=
14094 fi
14095
14096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14097 fi
14098
14099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14100 # Binary search between lo and hi bounds.
14101 while test "x$ac_lo" != "x$ac_hi"; do
14102   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14103   cat >conftest.$ac_ext <<_ACEOF
14104 /* confdefs.h.  */
14105 _ACEOF
14106 cat confdefs.h >>conftest.$ac_ext
14107 cat >>conftest.$ac_ext <<_ACEOF
14108 /* end confdefs.h.  */
14109 $ac_includes_default
14110    typedef long ac__type_sizeof_;
14111 int
14112 main ()
14113 {
14114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14115 test_array [0] = 0
14116
14117   ;
14118   return 0;
14119 }
14120 _ACEOF
14121 rm -f conftest.$ac_objext
14122 if { (ac_try="$ac_compile"
14123 case "(($ac_try" in
14124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125   *) ac_try_echo=$ac_try;;
14126 esac
14127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128   (eval "$ac_compile") 2>conftest.er1
14129   ac_status=$?
14130   grep -v '^ *+' conftest.er1 >conftest.err
14131   rm -f conftest.er1
14132   cat conftest.err >&5
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); } && {
14135          test -z "$ac_cxx_werror_flag" ||
14136          test ! -s conftest.err
14137        } && test -s conftest.$ac_objext; then
14138   ac_hi=$ac_mid
14139 else
14140   echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14142
14143         ac_lo=`expr '(' $ac_mid ')' + 1`
14144 fi
14145
14146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14147 done
14148 case $ac_lo in
14149 ?*) ac_cv_sizeof_long=$ac_lo;;
14150 '') if test "$ac_cv_type_long" = yes; then
14151      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14152 See \`config.log' for more details." >&5
14153 echo "$as_me: error: cannot compute sizeof (long)
14154 See \`config.log' for more details." >&2;}
14155    { (exit 77); exit 77; }; }
14156    else
14157      ac_cv_sizeof_long=0
14158    fi ;;
14159 esac
14160 else
14161   cat >conftest.$ac_ext <<_ACEOF
14162 /* confdefs.h.  */
14163 _ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h.  */
14167 $ac_includes_default
14168    typedef long ac__type_sizeof_;
14169 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14170 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14171 #include <stdio.h>
14172 #include <stdlib.h>
14173 int
14174 main ()
14175 {
14176
14177   FILE *f = fopen ("conftest.val", "w");
14178   if (! f)
14179     return 1;
14180   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14181     {
14182       long int i = longval ();
14183       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14184         return 1;
14185       fprintf (f, "%ld\n", i);
14186     }
14187   else
14188     {
14189       unsigned long int i = ulongval ();
14190       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14191         return 1;
14192       fprintf (f, "%lu\n", i);
14193     }
14194   return ferror (f) || fclose (f) != 0;
14195
14196   ;
14197   return 0;
14198 }
14199 _ACEOF
14200 rm -f conftest$ac_exeext
14201 if { (ac_try="$ac_link"
14202 case "(($ac_try" in
14203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204   *) ac_try_echo=$ac_try;;
14205 esac
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207   (eval "$ac_link") 2>&5
14208   ac_status=$?
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14211   { (case "(($ac_try" in
14212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213   *) ac_try_echo=$ac_try;;
14214 esac
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216   (eval "$ac_try") 2>&5
14217   ac_status=$?
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); }; }; then
14220   ac_cv_sizeof_long=`cat conftest.val`
14221 else
14222   echo "$as_me: program exited with status $ac_status" >&5
14223 echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14225
14226 ( exit $ac_status )
14227 if test "$ac_cv_type_long" = yes; then
14228      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14229 See \`config.log' for more details." >&5
14230 echo "$as_me: error: cannot compute sizeof (long)
14231 See \`config.log' for more details." >&2;}
14232    { (exit 77); exit 77; }; }
14233    else
14234      ac_cv_sizeof_long=0
14235    fi
14236 fi
14237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14238 fi
14239 rm -f conftest.val
14240 fi
14241 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14242 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
14243
14244
14245
14246 cat >>confdefs.h <<_ACEOF
14247 #define SIZEOF_LONG $ac_cv_sizeof_long
14248 _ACEOF
14249
14250
14251 { echo "$as_me:$LINENO: checking for long long" >&5
14252 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
14253 if test "${ac_cv_type_long_long+set}" = set; then
14254   echo $ECHO_N "(cached) $ECHO_C" >&6
14255 else
14256   cat >conftest.$ac_ext <<_ACEOF
14257 /* confdefs.h.  */
14258 _ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h.  */
14262 $ac_includes_default
14263 typedef long long ac__type_new_;
14264 int
14265 main ()
14266 {
14267 if ((ac__type_new_ *) 0)
14268   return 0;
14269 if (sizeof (ac__type_new_))
14270   return 0;
14271   ;
14272   return 0;
14273 }
14274 _ACEOF
14275 rm -f conftest.$ac_objext
14276 if { (ac_try="$ac_compile"
14277 case "(($ac_try" in
14278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279   *) ac_try_echo=$ac_try;;
14280 esac
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282   (eval "$ac_compile") 2>conftest.er1
14283   ac_status=$?
14284   grep -v '^ *+' conftest.er1 >conftest.err
14285   rm -f conftest.er1
14286   cat conftest.err >&5
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); } && {
14289          test -z "$ac_cxx_werror_flag" ||
14290          test ! -s conftest.err
14291        } && test -s conftest.$ac_objext; then
14292   ac_cv_type_long_long=yes
14293 else
14294   echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14296
14297         ac_cv_type_long_long=no
14298 fi
14299
14300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14301 fi
14302 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14303 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
14304
14305 # The cast to long int works around a bug in the HP C Compiler
14306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14308 # This bug is HP SR number 8606223364.
14309 { echo "$as_me:$LINENO: checking size of long long" >&5
14310 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
14311 if test "${ac_cv_sizeof_long_long+set}" = set; then
14312   echo $ECHO_N "(cached) $ECHO_C" >&6
14313 else
14314   if test "$cross_compiling" = yes; then
14315   # Depending upon the size, compute the lo and hi bounds.
14316 cat >conftest.$ac_ext <<_ACEOF
14317 /* confdefs.h.  */
14318 _ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h.  */
14322 $ac_includes_default
14323    typedef long long ac__type_sizeof_;
14324 int
14325 main ()
14326 {
14327 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14328 test_array [0] = 0
14329
14330   ;
14331   return 0;
14332 }
14333 _ACEOF
14334 rm -f conftest.$ac_objext
14335 if { (ac_try="$ac_compile"
14336 case "(($ac_try" in
14337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338   *) ac_try_echo=$ac_try;;
14339 esac
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341   (eval "$ac_compile") 2>conftest.er1
14342   ac_status=$?
14343   grep -v '^ *+' conftest.er1 >conftest.err
14344   rm -f conftest.er1
14345   cat conftest.err >&5
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); } && {
14348          test -z "$ac_cxx_werror_flag" ||
14349          test ! -s conftest.err
14350        } && test -s conftest.$ac_objext; then
14351   ac_lo=0 ac_mid=0
14352   while :; do
14353     cat >conftest.$ac_ext <<_ACEOF
14354 /* confdefs.h.  */
14355 _ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h.  */
14359 $ac_includes_default
14360    typedef long long ac__type_sizeof_;
14361 int
14362 main ()
14363 {
14364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14365 test_array [0] = 0
14366
14367   ;
14368   return 0;
14369 }
14370 _ACEOF
14371 rm -f conftest.$ac_objext
14372 if { (ac_try="$ac_compile"
14373 case "(($ac_try" in
14374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375   *) ac_try_echo=$ac_try;;
14376 esac
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378   (eval "$ac_compile") 2>conftest.er1
14379   ac_status=$?
14380   grep -v '^ *+' conftest.er1 >conftest.err
14381   rm -f conftest.er1
14382   cat conftest.err >&5
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); } && {
14385          test -z "$ac_cxx_werror_flag" ||
14386          test ! -s conftest.err
14387        } && test -s conftest.$ac_objext; then
14388   ac_hi=$ac_mid; break
14389 else
14390   echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14392
14393         ac_lo=`expr $ac_mid + 1`
14394                         if test $ac_lo -le $ac_mid; then
14395                           ac_lo= ac_hi=
14396                           break
14397                         fi
14398                         ac_mid=`expr 2 '*' $ac_mid + 1`
14399 fi
14400
14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402   done
14403 else
14404   echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14406
14407         cat >conftest.$ac_ext <<_ACEOF
14408 /* confdefs.h.  */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h.  */
14413 $ac_includes_default
14414    typedef long long ac__type_sizeof_;
14415 int
14416 main ()
14417 {
14418 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14419 test_array [0] = 0
14420
14421   ;
14422   return 0;
14423 }
14424 _ACEOF
14425 rm -f conftest.$ac_objext
14426 if { (ac_try="$ac_compile"
14427 case "(($ac_try" in
14428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429   *) ac_try_echo=$ac_try;;
14430 esac
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432   (eval "$ac_compile") 2>conftest.er1
14433   ac_status=$?
14434   grep -v '^ *+' conftest.er1 >conftest.err
14435   rm -f conftest.er1
14436   cat conftest.err >&5
14437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438   (exit $ac_status); } && {
14439          test -z "$ac_cxx_werror_flag" ||
14440          test ! -s conftest.err
14441        } && test -s conftest.$ac_objext; then
14442   ac_hi=-1 ac_mid=-1
14443   while :; do
14444     cat >conftest.$ac_ext <<_ACEOF
14445 /* confdefs.h.  */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h.  */
14450 $ac_includes_default
14451    typedef long long ac__type_sizeof_;
14452 int
14453 main ()
14454 {
14455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14456 test_array [0] = 0
14457
14458   ;
14459   return 0;
14460 }
14461 _ACEOF
14462 rm -f conftest.$ac_objext
14463 if { (ac_try="$ac_compile"
14464 case "(($ac_try" in
14465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466   *) ac_try_echo=$ac_try;;
14467 esac
14468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469   (eval "$ac_compile") 2>conftest.er1
14470   ac_status=$?
14471   grep -v '^ *+' conftest.er1 >conftest.err
14472   rm -f conftest.er1
14473   cat conftest.err >&5
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); } && {
14476          test -z "$ac_cxx_werror_flag" ||
14477          test ! -s conftest.err
14478        } && test -s conftest.$ac_objext; then
14479   ac_lo=$ac_mid; break
14480 else
14481   echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14483
14484         ac_hi=`expr '(' $ac_mid ')' - 1`
14485                         if test $ac_mid -le $ac_hi; then
14486                           ac_lo= ac_hi=
14487                           break
14488                         fi
14489                         ac_mid=`expr 2 '*' $ac_mid`
14490 fi
14491
14492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14493   done
14494 else
14495   echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.$ac_ext >&5
14497
14498         ac_lo= ac_hi=
14499 fi
14500
14501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14502 fi
14503
14504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14505 # Binary search between lo and hi bounds.
14506 while test "x$ac_lo" != "x$ac_hi"; do
14507   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14508   cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h.  */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h.  */
14514 $ac_includes_default
14515    typedef long long ac__type_sizeof_;
14516 int
14517 main ()
14518 {
14519 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14520 test_array [0] = 0
14521
14522   ;
14523   return 0;
14524 }
14525 _ACEOF
14526 rm -f conftest.$ac_objext
14527 if { (ac_try="$ac_compile"
14528 case "(($ac_try" in
14529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530   *) ac_try_echo=$ac_try;;
14531 esac
14532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14533   (eval "$ac_compile") 2>conftest.er1
14534   ac_status=$?
14535   grep -v '^ *+' conftest.er1 >conftest.err
14536   rm -f conftest.er1
14537   cat conftest.err >&5
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); } && {
14540          test -z "$ac_cxx_werror_flag" ||
14541          test ! -s conftest.err
14542        } && test -s conftest.$ac_objext; then
14543   ac_hi=$ac_mid
14544 else
14545   echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14547
14548         ac_lo=`expr '(' $ac_mid ')' + 1`
14549 fi
14550
14551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14552 done
14553 case $ac_lo in
14554 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14555 '') if test "$ac_cv_type_long_long" = yes; then
14556      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14557 See \`config.log' for more details." >&5
14558 echo "$as_me: error: cannot compute sizeof (long long)
14559 See \`config.log' for more details." >&2;}
14560    { (exit 77); exit 77; }; }
14561    else
14562      ac_cv_sizeof_long_long=0
14563    fi ;;
14564 esac
14565 else
14566   cat >conftest.$ac_ext <<_ACEOF
14567 /* confdefs.h.  */
14568 _ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h.  */
14572 $ac_includes_default
14573    typedef long long ac__type_sizeof_;
14574 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14575 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14576 #include <stdio.h>
14577 #include <stdlib.h>
14578 int
14579 main ()
14580 {
14581
14582   FILE *f = fopen ("conftest.val", "w");
14583   if (! f)
14584     return 1;
14585   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14586     {
14587       long int i = longval ();
14588       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14589         return 1;
14590       fprintf (f, "%ld\n", i);
14591     }
14592   else
14593     {
14594       unsigned long int i = ulongval ();
14595       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14596         return 1;
14597       fprintf (f, "%lu\n", i);
14598     }
14599   return ferror (f) || fclose (f) != 0;
14600
14601   ;
14602   return 0;
14603 }
14604 _ACEOF
14605 rm -f conftest$ac_exeext
14606 if { (ac_try="$ac_link"
14607 case "(($ac_try" in
14608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609   *) ac_try_echo=$ac_try;;
14610 esac
14611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612   (eval "$ac_link") 2>&5
14613   ac_status=$?
14614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14616   { (case "(($ac_try" in
14617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618   *) ac_try_echo=$ac_try;;
14619 esac
14620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621   (eval "$ac_try") 2>&5
14622   ac_status=$?
14623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   (exit $ac_status); }; }; then
14625   ac_cv_sizeof_long_long=`cat conftest.val`
14626 else
14627   echo "$as_me: program exited with status $ac_status" >&5
14628 echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14630
14631 ( exit $ac_status )
14632 if test "$ac_cv_type_long_long" = yes; then
14633      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14634 See \`config.log' for more details." >&5
14635 echo "$as_me: error: cannot compute sizeof (long long)
14636 See \`config.log' for more details." >&2;}
14637    { (exit 77); exit 77; }; }
14638    else
14639      ac_cv_sizeof_long_long=0
14640    fi
14641 fi
14642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14643 fi
14644 rm -f conftest.val
14645 fi
14646 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14647 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14648
14649
14650
14651 cat >>confdefs.h <<_ACEOF
14652 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14653 _ACEOF
14654
14655
14656 else
14657     if $CXX -v 2>&1|grep "mingw" >/dev/null 2>&1; then
14658         ac_cv_sizeof_char=1
14659         ac_cv_sizeof_short=2
14660         ac_cv_sizeof_int=4
14661         ac_cv_sizeof_long=4
14662         ac_cv_sizeof_long_long=4
14663     else
14664         : # FIXME
14665     fi
14666 #echo
14667 fi
14668
14669 type_name()
14670 {
14671     if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
14672         echo "char"
14673         exit
14674     fi
14675     if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
14676         echo "short"
14677         exit
14678     fi
14679     if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
14680         echo "int"
14681         exit
14682     fi
14683     if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
14684         echo "long"
14685         exit
14686     fi
14687     if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
14688         echo "long long"
14689         exit
14690     fi
14691     echo "long long"
14692 }
14693
14694 { echo "$as_me:$LINENO: checking type name for byte" >&5
14695 echo $ECHO_N "checking type name for byte... $ECHO_C" >&6; }
14696 TYPE_BYTE=`type_name 1`
14697 { echo "$as_me:$LINENO: result: $TYPE_BYTE" >&5
14698 echo "${ECHO_T}$TYPE_BYTE" >&6; }
14699 { echo "$as_me:$LINENO: checking type name for word" >&5
14700 echo $ECHO_N "checking type name for word... $ECHO_C" >&6; }
14701 TYPE_WORD=`type_name 2`
14702 { echo "$as_me:$LINENO: result: $TYPE_WORD" >&5
14703 echo "${ECHO_T}$TYPE_WORD" >&6; }
14704 { echo "$as_me:$LINENO: checking type name for dword" >&5
14705 echo $ECHO_N "checking type name for dword... $ECHO_C" >&6; }
14706 TYPE_DWORD=`type_name 4`
14707 { echo "$as_me:$LINENO: result: $TYPE_DWORD" >&5
14708 echo "${ECHO_T}$TYPE_DWORD" >&6; }
14709 cat >>confdefs.h <<_ACEOF
14710 #define TYPE_BYTE $TYPE_BYTE
14711 _ACEOF
14712
14713 cat >>confdefs.h <<_ACEOF
14714 #define TYPE_WORD $TYPE_WORD
14715 _ACEOF
14716
14717 cat >>confdefs.h <<_ACEOF
14718 #define TYPE_DWORD $TYPE_DWORD
14719 _ACEOF
14720
14721
14722 if echo $TYPE_DWORD|grep short >/dev/null; then
14723     A="h"
14724 elif echo $TYPE_DWORD|grep long >/dev/null; then
14725     A="l"
14726 else
14727     A=""
14728 fi
14729
14730 if echo $TYPE_WORD|grep short >/dev/null; then M="h"
14731 elif echo $TYPE_WORD|grep long >/dev/null; then M="l"
14732 else M=""
14733 fi
14734
14735 cat >>confdefs.h <<_ACEOF
14736 #define _A_ "${A}"
14737 _ACEOF
14738
14739 cat >>confdefs.h <<_ACEOF
14740 #define _M_ "${M}"
14741 _ACEOF
14742
14743
14744 # Generating output files
14745 # ===========================================================================
14746
14747 ac_config_files="$ac_config_files Makefile main.mk:main_in.mk packages.mk:packages_in.mk sim.src/Makefile cmd.src/Makefile s51.src/Makefile avr.src/Makefile z80.src/Makefile hc08.src/Makefile xa.src/Makefile gui.src/Makefile gui.src/serio.src/Makefile doc/Makefile"
14748
14749 cat >confcache <<\_ACEOF
14750 # This file is a shell script that caches the results of configure
14751 # tests run on this system so they can be shared between configure
14752 # scripts and configure runs, see configure's option --config-cache.
14753 # It is not useful on other systems.  If it contains results you don't
14754 # want to keep, you may remove or edit it.
14755 #
14756 # config.status only pays attention to the cache file if you give it
14757 # the --recheck option to rerun configure.
14758 #
14759 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14760 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14761 # following values.
14762
14763 _ACEOF
14764
14765 # The following way of writing the cache mishandles newlines in values,
14766 # but we know of no workaround that is simple, portable, and efficient.
14767 # So, we kill variables containing newlines.
14768 # Ultrix sh set writes to stderr and can't be redirected directly,
14769 # and sets the high bit in the cache file unless we assign to the vars.
14770 (
14771   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14772     eval ac_val=\$$ac_var
14773     case $ac_val in #(
14774     *${as_nl}*)
14775       case $ac_var in #(
14776       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14777 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14778       esac
14779       case $ac_var in #(
14780       _ | IFS | as_nl) ;; #(
14781       *) $as_unset $ac_var ;;
14782       esac ;;
14783     esac
14784   done
14785
14786   (set) 2>&1 |
14787     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14788     *${as_nl}ac_space=\ *)
14789       # `set' does not quote correctly, so add quotes (double-quote
14790       # substitution turns \\\\ into \\, and sed turns \\ into \).
14791       sed -n \
14792         "s/'/'\\\\''/g;
14793           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14794       ;; #(
14795     *)
14796       # `set' quotes correctly as required by POSIX, so do not add quotes.
14797       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14798       ;;
14799     esac |
14800     sort
14801 ) |
14802   sed '
14803      /^ac_cv_env_/b end
14804      t clear
14805      :clear
14806      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14807      t end
14808      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14809      :end' >>confcache
14810 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14811   if test -w "$cache_file"; then
14812     test "x$cache_file" != "x/dev/null" &&
14813       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14814 echo "$as_me: updating cache $cache_file" >&6;}
14815     cat confcache >$cache_file
14816   else
14817     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14818 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14819   fi
14820 fi
14821 rm -f confcache
14822
14823 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14824 # Let make expand exec_prefix.
14825 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14826
14827 DEFS=-DHAVE_CONFIG_H
14828
14829 ac_libobjs=
14830 ac_ltlibobjs=
14831 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14832   # 1. Remove the extension, and $U if already installed.
14833   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14834   ac_i=`echo "$ac_i" | sed "$ac_script"`
14835   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14836   #    will be set to the directory where LIBOBJS objects are built.
14837   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14838   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14839 done
14840 LIBOBJS=$ac_libobjs
14841
14842 LTLIBOBJS=$ac_ltlibobjs
14843
14844
14845
14846 : ${CONFIG_STATUS=./config.status}
14847 ac_clean_files_save=$ac_clean_files
14848 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14849 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14850 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14851 cat >$CONFIG_STATUS <<_ACEOF
14852 #! $SHELL
14853 # Generated by $as_me.
14854 # Run this file to recreate the current configuration.
14855 # Compiler output produced by configure, useful for debugging
14856 # configure, is in config.log if it exists.
14857
14858 debug=false
14859 ac_cs_recheck=false
14860 ac_cs_silent=false
14861 SHELL=\${CONFIG_SHELL-$SHELL}
14862 _ACEOF
14863
14864 cat >>$CONFIG_STATUS <<\_ACEOF
14865 ## --------------------- ##
14866 ## M4sh Initialization.  ##
14867 ## --------------------- ##
14868
14869 # Be more Bourne compatible
14870 DUALCASE=1; export DUALCASE # for MKS sh
14871 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14872   emulate sh
14873   NULLCMD=:
14874   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14875   # is contrary to our usage.  Disable this feature.
14876   alias -g '${1+"$@"}'='"$@"'
14877   setopt NO_GLOB_SUBST
14878 else
14879   case `(set -o) 2>/dev/null` in
14880   *posix*) set -o posix ;;
14881 esac
14882
14883 fi
14884
14885
14886
14887
14888 # PATH needs CR
14889 # Avoid depending upon Character Ranges.
14890 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14891 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14892 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14893 as_cr_digits='0123456789'
14894 as_cr_alnum=$as_cr_Letters$as_cr_digits
14895
14896 # The user is always right.
14897 if test "${PATH_SEPARATOR+set}" != set; then
14898   echo "#! /bin/sh" >conf$$.sh
14899   echo  "exit 0"   >>conf$$.sh
14900   chmod +x conf$$.sh
14901   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14902     PATH_SEPARATOR=';'
14903   else
14904     PATH_SEPARATOR=:
14905   fi
14906   rm -f conf$$.sh
14907 fi
14908
14909 # Support unset when possible.
14910 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14911   as_unset=unset
14912 else
14913   as_unset=false
14914 fi
14915
14916
14917 # IFS
14918 # We need space, tab and new line, in precisely that order.  Quoting is
14919 # there to prevent editors from complaining about space-tab.
14920 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14921 # splitting by setting IFS to empty value.)
14922 as_nl='
14923 '
14924 IFS=" ""        $as_nl"
14925
14926 # Find who we are.  Look in the path if we contain no directory separator.
14927 case $0 in
14928   *[\\/]* ) as_myself=$0 ;;
14929   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14930 for as_dir in $PATH
14931 do
14932   IFS=$as_save_IFS
14933   test -z "$as_dir" && as_dir=.
14934   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14935 done
14936 IFS=$as_save_IFS
14937
14938      ;;
14939 esac
14940 # We did not find ourselves, most probably we were run as `sh COMMAND'
14941 # in which case we are not to be found in the path.
14942 if test "x$as_myself" = x; then
14943   as_myself=$0
14944 fi
14945 if test ! -f "$as_myself"; then
14946   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14947   { (exit 1); exit 1; }
14948 fi
14949
14950 # Work around bugs in pre-3.0 UWIN ksh.
14951 for as_var in ENV MAIL MAILPATH
14952 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14953 done
14954 PS1='$ '
14955 PS2='> '
14956 PS4='+ '
14957
14958 # NLS nuisances.
14959 for as_var in \
14960   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14961   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14962   LC_TELEPHONE LC_TIME
14963 do
14964   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14965     eval $as_var=C; export $as_var
14966   else
14967     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14968   fi
14969 done
14970
14971 # Required to use basename.
14972 if expr a : '\(a\)' >/dev/null 2>&1 &&
14973    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14974   as_expr=expr
14975 else
14976   as_expr=false
14977 fi
14978
14979 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14980   as_basename=basename
14981 else
14982   as_basename=false
14983 fi
14984
14985
14986 # Name of the executable.
14987 as_me=`$as_basename -- "$0" ||
14988 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14989          X"$0" : 'X\(//\)$' \| \
14990          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14991 echo X/"$0" |
14992     sed '/^.*\/\([^/][^/]*\)\/*$/{
14993             s//\1/
14994             q
14995           }
14996           /^X\/\(\/\/\)$/{
14997             s//\1/
14998             q
14999           }
15000           /^X\/\(\/\).*/{
15001             s//\1/
15002             q
15003           }
15004           s/.*/./; q'`
15005
15006 # CDPATH.
15007 $as_unset CDPATH
15008
15009
15010
15011   as_lineno_1=$LINENO
15012   as_lineno_2=$LINENO
15013   test "x$as_lineno_1" != "x$as_lineno_2" &&
15014   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15015
15016   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15017   # uniformly replaced by the line number.  The first 'sed' inserts a
15018   # line-number line after each line using $LINENO; the second 'sed'
15019   # does the real work.  The second script uses 'N' to pair each
15020   # line-number line with the line containing $LINENO, and appends
15021   # trailing '-' during substitution so that $LINENO is not a special
15022   # case at line end.
15023   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15024   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15025   # E. McMahon (1931-1989) for sed's syntax.  :-)
15026   sed -n '
15027     p
15028     /[$]LINENO/=
15029   ' <$as_myself |
15030     sed '
15031       s/[$]LINENO.*/&-/
15032       t lineno
15033       b
15034       :lineno
15035       N
15036       :loop
15037       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15038       t loop
15039       s/-\n.*//
15040     ' >$as_me.lineno &&
15041   chmod +x "$as_me.lineno" ||
15042     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15043    { (exit 1); exit 1; }; }
15044
15045   # Don't try to exec as it changes $[0], causing all sort of problems
15046   # (the dirname of $[0] is not the place where we might find the
15047   # original and so on.  Autoconf is especially sensitive to this).
15048   . "./$as_me.lineno"
15049   # Exit status is that of the last command.
15050   exit
15051 }
15052
15053
15054 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15055   as_dirname=dirname
15056 else
15057   as_dirname=false
15058 fi
15059
15060 ECHO_C= ECHO_N= ECHO_T=
15061 case `echo -n x` in
15062 -n*)
15063   case `echo 'x\c'` in
15064   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15065   *)   ECHO_C='\c';;
15066   esac;;
15067 *)
15068   ECHO_N='-n';;
15069 esac
15070
15071 if expr a : '\(a\)' >/dev/null 2>&1 &&
15072    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15073   as_expr=expr
15074 else
15075   as_expr=false
15076 fi
15077
15078 rm -f conf$$ conf$$.exe conf$$.file
15079 if test -d conf$$.dir; then
15080   rm -f conf$$.dir/conf$$.file
15081 else
15082   rm -f conf$$.dir
15083   mkdir conf$$.dir
15084 fi
15085 echo >conf$$.file
15086 if ln -s conf$$.file conf$$ 2>/dev/null; then
15087   as_ln_s='ln -s'
15088   # ... but there are two gotchas:
15089   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15090   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15091   # In both cases, we have to default to `cp -p'.
15092   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15093     as_ln_s='cp -p'
15094 elif ln conf$$.file conf$$ 2>/dev/null; then
15095   as_ln_s=ln
15096 else
15097   as_ln_s='cp -p'
15098 fi
15099 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15100 rmdir conf$$.dir 2>/dev/null
15101
15102 if mkdir -p . 2>/dev/null; then
15103   as_mkdir_p=:
15104 else
15105   test -d ./-p && rmdir ./-p
15106   as_mkdir_p=false
15107 fi
15108
15109 if test -x / >/dev/null 2>&1; then
15110   as_test_x='test -x'
15111 else
15112   if ls -dL / >/dev/null 2>&1; then
15113     as_ls_L_option=L
15114   else
15115     as_ls_L_option=
15116   fi
15117   as_test_x='
15118     eval sh -c '\''
15119       if test -d "$1"; then
15120         test -d "$1/.";
15121       else
15122         case $1 in
15123         -*)set "./$1";;
15124         esac;
15125         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15126         ???[sx]*):;;*)false;;esac;fi
15127     '\'' sh
15128   '
15129 fi
15130 as_executable_p=$as_test_x
15131
15132 # Sed expression to map a string onto a valid CPP name.
15133 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15134
15135 # Sed expression to map a string onto a valid variable name.
15136 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15137
15138
15139 exec 6>&1
15140
15141 # Save the log message, to keep $[0] and so on meaningful, and to
15142 # report actual input values of CONFIG_FILES etc. instead of their
15143 # values after options handling.
15144 ac_log="
15145 This file was extended by $as_me, which was
15146 generated by GNU Autoconf 2.61.  Invocation command line was
15147
15148   CONFIG_FILES    = $CONFIG_FILES
15149   CONFIG_HEADERS  = $CONFIG_HEADERS
15150   CONFIG_LINKS    = $CONFIG_LINKS
15151   CONFIG_COMMANDS = $CONFIG_COMMANDS
15152   $ $0 $@
15153
15154 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15155 "
15156
15157 _ACEOF
15158
15159 cat >>$CONFIG_STATUS <<_ACEOF
15160 # Files that config.status was made for.
15161 config_files="$ac_config_files"
15162 config_headers="$ac_config_headers"
15163
15164 _ACEOF
15165
15166 cat >>$CONFIG_STATUS <<\_ACEOF
15167 ac_cs_usage="\
15168 \`$as_me' instantiates files from templates according to the
15169 current configuration.
15170
15171 Usage: $0 [OPTIONS] [FILE]...
15172
15173   -h, --help       print this help, then exit
15174   -V, --version    print version number and configuration settings, then exit
15175   -q, --quiet      do not print progress messages
15176   -d, --debug      don't remove temporary files
15177       --recheck    update $as_me by reconfiguring in the same conditions
15178   --file=FILE[:TEMPLATE]
15179                    instantiate the configuration file FILE
15180   --header=FILE[:TEMPLATE]
15181                    instantiate the configuration header FILE
15182
15183 Configuration files:
15184 $config_files
15185
15186 Configuration headers:
15187 $config_headers
15188
15189 Report bugs to <bug-autoconf@gnu.org>."
15190
15191 _ACEOF
15192 cat >>$CONFIG_STATUS <<_ACEOF
15193 ac_cs_version="\\
15194 config.status
15195 configured by $0, generated by GNU Autoconf 2.61,
15196   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15197
15198 Copyright (C) 2006 Free Software Foundation, Inc.
15199 This config.status script is free software; the Free Software Foundation
15200 gives unlimited permission to copy, distribute and modify it."
15201
15202 ac_pwd='$ac_pwd'
15203 srcdir='$srcdir'
15204 INSTALL='$INSTALL'
15205 _ACEOF
15206
15207 cat >>$CONFIG_STATUS <<\_ACEOF
15208 # If no file are specified by the user, then we need to provide default
15209 # value.  By we need to know if files were specified by the user.
15210 ac_need_defaults=:
15211 while test $# != 0
15212 do
15213   case $1 in
15214   --*=*)
15215     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15216     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15217     ac_shift=:
15218     ;;
15219   *)
15220     ac_option=$1
15221     ac_optarg=$2
15222     ac_shift=shift
15223     ;;
15224   esac
15225
15226   case $ac_option in
15227   # Handling of the options.
15228   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15229     ac_cs_recheck=: ;;
15230   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15231     echo "$ac_cs_version"; exit ;;
15232   --debug | --debu | --deb | --de | --d | -d )
15233     debug=: ;;
15234   --file | --fil | --fi | --f )
15235     $ac_shift
15236     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15237     ac_need_defaults=false;;
15238   --header | --heade | --head | --hea )
15239     $ac_shift
15240     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15241     ac_need_defaults=false;;
15242   --he | --h)
15243     # Conflict between --help and --header
15244     { echo "$as_me: error: ambiguous option: $1
15245 Try \`$0 --help' for more information." >&2
15246    { (exit 1); exit 1; }; };;
15247   --help | --hel | -h )
15248     echo "$ac_cs_usage"; exit ;;
15249   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15250   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15251     ac_cs_silent=: ;;
15252
15253   # This is an error.
15254   -*) { echo "$as_me: error: unrecognized option: $1
15255 Try \`$0 --help' for more information." >&2
15256    { (exit 1); exit 1; }; } ;;
15257
15258   *) ac_config_targets="$ac_config_targets $1"
15259      ac_need_defaults=false ;;
15260
15261   esac
15262   shift
15263 done
15264
15265 ac_configure_extra_args=
15266
15267 if $ac_cs_silent; then
15268   exec 6>/dev/null
15269   ac_configure_extra_args="$ac_configure_extra_args --silent"
15270 fi
15271
15272 _ACEOF
15273 cat >>$CONFIG_STATUS <<_ACEOF
15274 if \$ac_cs_recheck; then
15275   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15276   CONFIG_SHELL=$SHELL
15277   export CONFIG_SHELL
15278   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15279 fi
15280
15281 _ACEOF
15282 cat >>$CONFIG_STATUS <<\_ACEOF
15283 exec 5>>config.log
15284 {
15285   echo
15286   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15287 ## Running $as_me. ##
15288 _ASBOX
15289   echo "$ac_log"
15290 } >&5
15291
15292 _ACEOF
15293 cat >>$CONFIG_STATUS <<_ACEOF
15294 _ACEOF
15295
15296 cat >>$CONFIG_STATUS <<\_ACEOF
15297
15298 # Handling of arguments.
15299 for ac_config_target in $ac_config_targets
15300 do
15301   case $ac_config_target in
15302     "ddconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ddconfig.h:ddconfig_in.h" ;;
15303     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15304     "main.mk") CONFIG_FILES="$CONFIG_FILES main.mk:main_in.mk" ;;
15305     "packages.mk") CONFIG_FILES="$CONFIG_FILES packages.mk:packages_in.mk" ;;
15306     "sim.src/Makefile") CONFIG_FILES="$CONFIG_FILES sim.src/Makefile" ;;
15307     "cmd.src/Makefile") CONFIG_FILES="$CONFIG_FILES cmd.src/Makefile" ;;
15308     "s51.src/Makefile") CONFIG_FILES="$CONFIG_FILES s51.src/Makefile" ;;
15309     "avr.src/Makefile") CONFIG_FILES="$CONFIG_FILES avr.src/Makefile" ;;
15310     "z80.src/Makefile") CONFIG_FILES="$CONFIG_FILES z80.src/Makefile" ;;
15311     "hc08.src/Makefile") CONFIG_FILES="$CONFIG_FILES hc08.src/Makefile" ;;
15312     "xa.src/Makefile") CONFIG_FILES="$CONFIG_FILES xa.src/Makefile" ;;
15313     "gui.src/Makefile") CONFIG_FILES="$CONFIG_FILES gui.src/Makefile" ;;
15314     "gui.src/serio.src/Makefile") CONFIG_FILES="$CONFIG_FILES gui.src/serio.src/Makefile" ;;
15315     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15316
15317   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15318 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15319    { (exit 1); exit 1; }; };;
15320   esac
15321 done
15322
15323
15324 # If the user did not use the arguments to specify the items to instantiate,
15325 # then the envvar interface is used.  Set only those that are not.
15326 # We use the long form for the default assignment because of an extremely
15327 # bizarre bug on SunOS 4.1.3.
15328 if $ac_need_defaults; then
15329   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15330   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15331 fi
15332
15333 # Have a temporary directory for convenience.  Make it in the build tree
15334 # simply because there is no reason against having it here, and in addition,
15335 # creating and moving files from /tmp can sometimes cause problems.
15336 # Hook for its removal unless debugging.
15337 # Note that there is a small window in which the directory will not be cleaned:
15338 # after its creation but before its name has been assigned to `$tmp'.
15339 $debug ||
15340 {
15341   tmp=
15342   trap 'exit_status=$?
15343   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15344 ' 0
15345   trap '{ (exit 1); exit 1; }' 1 2 13 15
15346 }
15347 # Create a (secure) tmp directory for tmp files.
15348
15349 {
15350   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15351   test -n "$tmp" && test -d "$tmp"
15352 }  ||
15353 {
15354   tmp=./conf$$-$RANDOM
15355   (umask 077 && mkdir "$tmp")
15356 } ||
15357 {
15358    echo "$me: cannot create a temporary directory in ." >&2
15359    { (exit 1); exit 1; }
15360 }
15361
15362 #
15363 # Set up the sed scripts for CONFIG_FILES section.
15364 #
15365
15366 # No need to generate the scripts if there are no CONFIG_FILES.
15367 # This happens for instance when ./config.status config.h
15368 if test -n "$CONFIG_FILES"; then
15369
15370 _ACEOF
15371
15372
15373
15374 ac_delim='%!_!# '
15375 for ac_last_try in false false false false false :; do
15376   cat >conf$$subs.sed <<_ACEOF
15377 SHELL!$SHELL$ac_delim
15378 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15379 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15380 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15381 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15382 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15383 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15384 exec_prefix!$exec_prefix$ac_delim
15385 prefix!$prefix$ac_delim
15386 program_transform_name!$program_transform_name$ac_delim
15387 bindir!$bindir$ac_delim
15388 sbindir!$sbindir$ac_delim
15389 libexecdir!$libexecdir$ac_delim
15390 datarootdir!$datarootdir$ac_delim
15391 datadir!$datadir$ac_delim
15392 sysconfdir!$sysconfdir$ac_delim
15393 sharedstatedir!$sharedstatedir$ac_delim
15394 localstatedir!$localstatedir$ac_delim
15395 includedir!$includedir$ac_delim
15396 oldincludedir!$oldincludedir$ac_delim
15397 docdir!$docdir$ac_delim
15398 infodir!$infodir$ac_delim
15399 htmldir!$htmldir$ac_delim
15400 dvidir!$dvidir$ac_delim
15401 pdfdir!$pdfdir$ac_delim
15402 psdir!$psdir$ac_delim
15403 libdir!$libdir$ac_delim
15404 localedir!$localedir$ac_delim
15405 mandir!$mandir$ac_delim
15406 DEFS!$DEFS$ac_delim
15407 ECHO_C!$ECHO_C$ac_delim
15408 ECHO_N!$ECHO_N$ac_delim
15409 ECHO_T!$ECHO_T$ac_delim
15410 LIBS!$LIBS$ac_delim
15411 build_alias!$build_alias$ac_delim
15412 host_alias!$host_alias$ac_delim
15413 target_alias!$target_alias$ac_delim
15414 AWK!$AWK$ac_delim
15415 VERSION!$VERSION$ac_delim
15416 VERSIONHI!$VERSIONHI$ac_delim
15417 VERSIONLO!$VERSIONLO$ac_delim
15418 VERSIONP!$VERSIONP$ac_delim
15419 enable_ucsim!$enable_ucsim$ac_delim
15420 enable_dlso!$enable_dlso$ac_delim
15421 enable_51!$enable_51$ac_delim
15422 enable_avr!$enable_avr$ac_delim
15423 enable_z80!$enable_z80$ac_delim
15424 enable_hc08!$enable_hc08$ac_delim
15425 enable_xa!$enable_xa$ac_delim
15426 enable_serio!$enable_serio$ac_delim
15427 CXX!$CXX$ac_delim
15428 CXXFLAGS!$CXXFLAGS$ac_delim
15429 LDFLAGS!$LDFLAGS$ac_delim
15430 CPPFLAGS!$CPPFLAGS$ac_delim
15431 ac_ct_CXX!$ac_ct_CXX$ac_delim
15432 EXEEXT!$EXEEXT$ac_delim
15433 OBJEXT!$OBJEXT$ac_delim
15434 CXXCPP!$CXXCPP$ac_delim
15435 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15436 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15437 INSTALL_DATA!$INSTALL_DATA$ac_delim
15438 RANLIB!$RANLIB$ac_delim
15439 STRIP!$STRIP$ac_delim
15440 build!$build$ac_delim
15441 build_cpu!$build_cpu$ac_delim
15442 build_vendor!$build_vendor$ac_delim
15443 build_os!$build_os$ac_delim
15444 host!$host$ac_delim
15445 host_cpu!$host_cpu$ac_delim
15446 host_vendor!$host_vendor$ac_delim
15447 host_os!$host_os$ac_delim
15448 CC!$CC$ac_delim
15449 CFLAGS!$CFLAGS$ac_delim
15450 ac_ct_CC!$ac_ct_CC$ac_delim
15451 LN_S!$LN_S$ac_delim
15452 ECHO!$ECHO$ac_delim
15453 CPP!$CPP$ac_delim
15454 GREP!$GREP$ac_delim
15455 EGREP!$EGREP$ac_delim
15456 LIBTOOL!$LIBTOOL$ac_delim
15457 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
15458 LEX!$LEX$ac_delim
15459 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
15460 LEXLIB!$LEXLIB$ac_delim
15461 YACC!$YACC$ac_delim
15462 YFLAGS!$YFLAGS$ac_delim
15463 BISON_PLUS_PLUS!$BISON_PLUS_PLUS$ac_delim
15464 WINSOCK_AVAIL!$WINSOCK_AVAIL$ac_delim
15465 dl_ok!$dl_ok$ac_delim
15466 DL!$DL$ac_delim
15467 panel_ok!$panel_ok$ac_delim
15468 curses_ok!$curses_ok$ac_delim
15469 CURSES_LIBS!$CURSES_LIBS$ac_delim
15470 M_OR_MM!$M_OR_MM$ac_delim
15471 SHAREDLIB!$SHAREDLIB$ac_delim
15472 PICOPT!$PICOPT$ac_delim
15473 dlso_ok!$dlso_ok$ac_delim
15474 _ACEOF
15475
15476   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15477     break
15478   elif $ac_last_try; then
15479     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15480 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15481    { (exit 1); exit 1; }; }
15482   else
15483     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15484   fi
15485 done
15486
15487 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15488 if test -n "$ac_eof"; then
15489   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15490   ac_eof=`expr $ac_eof + 1`
15491 fi
15492
15493 cat >>$CONFIG_STATUS <<_ACEOF
15494 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15495 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15496 _ACEOF
15497 sed '
15498 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15499 s/^/s,@/; s/!/@,|#_!!_#|/
15500 :n
15501 t n
15502 s/'"$ac_delim"'$/,g/; t
15503 s/$/\\/; p
15504 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15505 ' >>$CONFIG_STATUS <conf$$subs.sed
15506 rm -f conf$$subs.sed
15507 cat >>$CONFIG_STATUS <<_ACEOF
15508 CEOF$ac_eof
15509 _ACEOF
15510
15511
15512 ac_delim='%!_!# '
15513 for ac_last_try in false false false false false :; do
15514   cat >conf$$subs.sed <<_ACEOF
15515 LIBOBJS!$LIBOBJS$ac_delim
15516 LTLIBOBJS!$LTLIBOBJS$ac_delim
15517 _ACEOF
15518
15519   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
15520     break
15521   elif $ac_last_try; then
15522     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15523 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15524    { (exit 1); exit 1; }; }
15525   else
15526     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15527   fi
15528 done
15529
15530 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15531 if test -n "$ac_eof"; then
15532   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15533   ac_eof=`expr $ac_eof + 1`
15534 fi
15535
15536 cat >>$CONFIG_STATUS <<_ACEOF
15537 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15538 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15539 _ACEOF
15540 sed '
15541 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15542 s/^/s,@/; s/!/@,|#_!!_#|/
15543 :n
15544 t n
15545 s/'"$ac_delim"'$/,g/; t
15546 s/$/\\/; p
15547 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15548 ' >>$CONFIG_STATUS <conf$$subs.sed
15549 rm -f conf$$subs.sed
15550 cat >>$CONFIG_STATUS <<_ACEOF
15551 :end
15552 s/|#_!!_#|//g
15553 CEOF$ac_eof
15554 _ACEOF
15555
15556
15557 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15558 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15559 # trailing colons and then remove the whole line if VPATH becomes empty
15560 # (actually we leave an empty line to preserve line numbers).
15561 if test "x$srcdir" = x.; then
15562   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15563 s/:*\$(srcdir):*/:/
15564 s/:*\${srcdir}:*/:/
15565 s/:*@srcdir@:*/:/
15566 s/^\([^=]*=[     ]*\):*/\1/
15567 s/:*$//
15568 s/^[^=]*=[       ]*$//
15569 }'
15570 fi
15571
15572 cat >>$CONFIG_STATUS <<\_ACEOF
15573 fi # test -n "$CONFIG_FILES"
15574
15575
15576 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
15577 do
15578   case $ac_tag in
15579   :[FHLC]) ac_mode=$ac_tag; continue;;
15580   esac
15581   case $ac_mode$ac_tag in
15582   :[FHL]*:*);;
15583   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15584 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15585    { (exit 1); exit 1; }; };;
15586   :[FH]-) ac_tag=-:-;;
15587   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15588   esac
15589   ac_save_IFS=$IFS
15590   IFS=:
15591   set x $ac_tag
15592   IFS=$ac_save_IFS
15593   shift
15594   ac_file=$1
15595   shift
15596
15597   case $ac_mode in
15598   :L) ac_source=$1;;
15599   :[FH])
15600     ac_file_inputs=
15601     for ac_f
15602     do
15603       case $ac_f in
15604       -) ac_f="$tmp/stdin";;
15605       *) # Look for the file first in the build tree, then in the source tree
15606          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15607          # because $ac_f cannot contain `:'.
15608          test -f "$ac_f" ||
15609            case $ac_f in
15610            [\\/$]*) false;;
15611            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15612            esac ||
15613            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15614 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15615    { (exit 1); exit 1; }; };;
15616       esac
15617       ac_file_inputs="$ac_file_inputs $ac_f"
15618     done
15619
15620     # Let's still pretend it is `configure' which instantiates (i.e., don't
15621     # use $as_me), people would be surprised to read:
15622     #    /* config.h.  Generated by config.status.  */
15623     configure_input="Generated from "`IFS=:
15624           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15625     if test x"$ac_file" != x-; then
15626       configure_input="$ac_file.  $configure_input"
15627       { echo "$as_me:$LINENO: creating $ac_file" >&5
15628 echo "$as_me: creating $ac_file" >&6;}
15629     fi
15630
15631     case $ac_tag in
15632     *:-:* | *:-) cat >"$tmp/stdin";;
15633     esac
15634     ;;
15635   esac
15636
15637   ac_dir=`$as_dirname -- "$ac_file" ||
15638 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15639          X"$ac_file" : 'X\(//\)[^/]' \| \
15640          X"$ac_file" : 'X\(//\)$' \| \
15641          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15642 echo X"$ac_file" |
15643     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15644             s//\1/
15645             q
15646           }
15647           /^X\(\/\/\)[^/].*/{
15648             s//\1/
15649             q
15650           }
15651           /^X\(\/\/\)$/{
15652             s//\1/
15653             q
15654           }
15655           /^X\(\/\).*/{
15656             s//\1/
15657             q
15658           }
15659           s/.*/./; q'`
15660   { as_dir="$ac_dir"
15661   case $as_dir in #(
15662   -*) as_dir=./$as_dir;;
15663   esac
15664   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15665     as_dirs=
15666     while :; do
15667       case $as_dir in #(
15668       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15669       *) as_qdir=$as_dir;;
15670       esac
15671       as_dirs="'$as_qdir' $as_dirs"
15672       as_dir=`$as_dirname -- "$as_dir" ||
15673 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15674          X"$as_dir" : 'X\(//\)[^/]' \| \
15675          X"$as_dir" : 'X\(//\)$' \| \
15676          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15677 echo X"$as_dir" |
15678     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15679             s//\1/
15680             q
15681           }
15682           /^X\(\/\/\)[^/].*/{
15683             s//\1/
15684             q
15685           }
15686           /^X\(\/\/\)$/{
15687             s//\1/
15688             q
15689           }
15690           /^X\(\/\).*/{
15691             s//\1/
15692             q
15693           }
15694           s/.*/./; q'`
15695       test -d "$as_dir" && break
15696     done
15697     test -z "$as_dirs" || eval "mkdir $as_dirs"
15698   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15699 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15700    { (exit 1); exit 1; }; }; }
15701   ac_builddir=.
15702
15703 case "$ac_dir" in
15704 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15705 *)
15706   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15707   # A ".." for each directory in $ac_dir_suffix.
15708   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15709   case $ac_top_builddir_sub in
15710   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15711   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15712   esac ;;
15713 esac
15714 ac_abs_top_builddir=$ac_pwd
15715 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15716 # for backward compatibility:
15717 ac_top_builddir=$ac_top_build_prefix
15718
15719 case $srcdir in
15720   .)  # We are building in place.
15721     ac_srcdir=.
15722     ac_top_srcdir=$ac_top_builddir_sub
15723     ac_abs_top_srcdir=$ac_pwd ;;
15724   [\\/]* | ?:[\\/]* )  # Absolute name.
15725     ac_srcdir=$srcdir$ac_dir_suffix;
15726     ac_top_srcdir=$srcdir
15727     ac_abs_top_srcdir=$srcdir ;;
15728   *) # Relative name.
15729     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15730     ac_top_srcdir=$ac_top_build_prefix$srcdir
15731     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15732 esac
15733 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15734
15735
15736   case $ac_mode in
15737   :F)
15738   #
15739   # CONFIG_FILE
15740   #
15741
15742   case $INSTALL in
15743   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15744   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15745   esac
15746 _ACEOF
15747
15748 cat >>$CONFIG_STATUS <<\_ACEOF
15749 # If the template does not know about datarootdir, expand it.
15750 # FIXME: This hack should be removed a few years after 2.60.
15751 ac_datarootdir_hack=; ac_datarootdir_seen=
15752
15753 case `sed -n '/datarootdir/ {
15754   p
15755   q
15756 }
15757 /@datadir@/p
15758 /@docdir@/p
15759 /@infodir@/p
15760 /@localedir@/p
15761 /@mandir@/p
15762 ' $ac_file_inputs` in
15763 *datarootdir*) ac_datarootdir_seen=yes;;
15764 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15765   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15766 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15767 _ACEOF
15768 cat >>$CONFIG_STATUS <<_ACEOF
15769   ac_datarootdir_hack='
15770   s&@datadir@&$datadir&g
15771   s&@docdir@&$docdir&g
15772   s&@infodir@&$infodir&g
15773   s&@localedir@&$localedir&g
15774   s&@mandir@&$mandir&g
15775     s&\\\${datarootdir}&$datarootdir&g' ;;
15776 esac
15777 _ACEOF
15778
15779 # Neutralize VPATH when `$srcdir' = `.'.
15780 # Shell code in configure.ac might set extrasub.
15781 # FIXME: do we really want to maintain this feature?
15782 cat >>$CONFIG_STATUS <<_ACEOF
15783   sed "$ac_vpsub
15784 $extrasub
15785 _ACEOF
15786 cat >>$CONFIG_STATUS <<\_ACEOF
15787 :t
15788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15789 s&@configure_input@&$configure_input&;t t
15790 s&@top_builddir@&$ac_top_builddir_sub&;t t
15791 s&@srcdir@&$ac_srcdir&;t t
15792 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15793 s&@top_srcdir@&$ac_top_srcdir&;t t
15794 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15795 s&@builddir@&$ac_builddir&;t t
15796 s&@abs_builddir@&$ac_abs_builddir&;t t
15797 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15798 s&@INSTALL@&$ac_INSTALL&;t t
15799 $ac_datarootdir_hack
15800 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
15801
15802 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15803   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15804   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15805   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15806 which seems to be undefined.  Please make sure it is defined." >&5
15807 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15808 which seems to be undefined.  Please make sure it is defined." >&2;}
15809
15810   rm -f "$tmp/stdin"
15811   case $ac_file in
15812   -) cat "$tmp/out"; rm -f "$tmp/out";;
15813   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15814   esac
15815  ;;
15816   :H)
15817   #
15818   # CONFIG_HEADER
15819   #
15820 _ACEOF
15821
15822 # Transform confdefs.h into a sed script `conftest.defines', that
15823 # substitutes the proper values into config.h.in to produce config.h.
15824 rm -f conftest.defines conftest.tail
15825 # First, append a space to every undef/define line, to ease matching.
15826 echo 's/$/ /' >conftest.defines
15827 # Then, protect against being on the right side of a sed subst, or in
15828 # an unquoted here document, in config.status.  If some macros were
15829 # called several times there might be several #defines for the same
15830 # symbol, which is useless.  But do not sort them, since the last
15831 # AC_DEFINE must be honored.
15832 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15833 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15834 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15835 # PARAMS is the parameter list in the macro definition--in most cases, it's
15836 # just an empty string.
15837 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
15838 ac_dB='\\)[      (].*,\\1define\\2'
15839 ac_dC=' '
15840 ac_dD=' ,'
15841
15842 uniq confdefs.h |
15843   sed -n '
15844         t rset
15845         :rset
15846         s/^[     ]*#[    ]*define[       ][      ]*//
15847         t ok
15848         d
15849         :ok
15850         s/[\\&,]/\\&/g
15851         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15852         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15853   ' >>conftest.defines
15854
15855 # Remove the space that was appended to ease matching.
15856 # Then replace #undef with comments.  This is necessary, for
15857 # example, in the case of _POSIX_SOURCE, which is predefined and required
15858 # on some systems where configure will not decide to define it.
15859 # (The regexp can be short, since the line contains either #define or #undef.)
15860 echo 's/ $//
15861 s,^[     #]*u.*,/* & */,' >>conftest.defines
15862
15863 # Break up conftest.defines:
15864 ac_max_sed_lines=50
15865
15866 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15867 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15868 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15869 # et cetera.
15870 ac_in='$ac_file_inputs'
15871 ac_out='"$tmp/out1"'
15872 ac_nxt='"$tmp/out2"'
15873
15874 while :
15875 do
15876   # Write a here document:
15877     cat >>$CONFIG_STATUS <<_ACEOF
15878     # First, check the format of the line:
15879     cat >"\$tmp/defines.sed" <<\\CEOF
15880 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
15881 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
15882 b
15883 :def
15884 _ACEOF
15885   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15886   echo 'CEOF
15887     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15888   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15889   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15890   grep . conftest.tail >/dev/null || break
15891   rm -f conftest.defines
15892   mv conftest.tail conftest.defines
15893 done
15894 rm -f conftest.defines conftest.tail
15895
15896 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15897 cat >>$CONFIG_STATUS <<\_ACEOF
15898   if test x"$ac_file" != x-; then
15899     echo "/* $configure_input  */" >"$tmp/config.h"
15900     cat "$ac_result" >>"$tmp/config.h"
15901     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15902       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15903 echo "$as_me: $ac_file is unchanged" >&6;}
15904     else
15905       rm -f $ac_file
15906       mv "$tmp/config.h" $ac_file
15907     fi
15908   else
15909     echo "/* $configure_input  */"
15910     cat "$ac_result"
15911   fi
15912   rm -f "$tmp/out12"
15913  ;;
15914
15915
15916   esac
15917
15918 done # for ac_tag
15919
15920
15921 { (exit 0); exit 0; }
15922 _ACEOF
15923 chmod +x $CONFIG_STATUS
15924 ac_clean_files=$ac_clean_files_save
15925
15926
15927 # configure is writing to config.log, and then calls config.status.
15928 # config.status does its own redirection, appending to config.log.
15929 # Unfortunately, on DOS this fails, as config.log is still kept open
15930 # by configure, so config.status won't be able to write to it; its
15931 # output is simply discarded.  So we exec the FD to /dev/null,
15932 # effectively closing config.log, so it can be properly (re)opened and
15933 # appended to by config.status.  When coming back to configure, we
15934 # need to make the FD available again.
15935 if test "$no_create" != yes; then
15936   ac_cs_success=:
15937   ac_config_status_args=
15938   test "$silent" = yes &&
15939     ac_config_status_args="$ac_config_status_args --quiet"
15940   exec 5>/dev/null
15941   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15942   exec 5>>config.log
15943   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15944   # would make configure fail if this is the last instruction.
15945   $ac_cs_success || { (exit 1); exit 1; }
15946 fi
15947
15948
15949 #gui.src/portmon.src/Makefile
15950
15951
15952 # End of configure/configure.in