Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Plug memleaks on exit (I know, it's useless)
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.7 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57 for GRAS 0.0.040304.
5 #
6 # Report bugs to <martin.quinson@ens-lyon.fr>.
7 #
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Find the correct PATH separator.  Usually this is `:', but
247 # DJGPP uses `;' like DOS.
248 if test "X${PATH_SEPARATOR+set}" != Xset; then
249   UNAME=${UNAME-`uname 2>/dev/null`}
250   case X$UNAME in
251     *-DOS) lt_cv_sys_path_separator=';' ;;
252     *)     lt_cv_sys_path_separator=':' ;;
253   esac
254   PATH_SEPARATOR=$lt_cv_sys_path_separator
255 fi
256
257
258 # Check that we are running under the correct shell.
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 case X$ECHO in
262 X*--fallback-echo)
263   # Remove one level of quotation (which was required for Make).
264   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
265   ;;
266 esac
267
268 echo=${ECHO-echo}
269 if test "X$1" = X--no-reexec; then
270   # Discard the --no-reexec flag, and continue.
271   shift
272 elif test "X$1" = X--fallback-echo; then
273   # Avoid inline document here, it may be left over
274   :
275 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
276   # Yippee, $echo works!
277   :
278 else
279   # Restart under the correct shell.
280   exec $SHELL "$0" --no-reexec ${1+"$@"}
281 fi
282
283 if test "X$1" = X--fallback-echo; then
284   # used as fallback echo
285   shift
286   cat <<EOF
287
288 EOF
289   exit 0
290 fi
291
292 # The HP-UX ksh and POSIX shell print the target directory to stdout
293 # if CDPATH is set.
294 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
295
296 if test -z "$ECHO"; then
297 if test "X${echo_test_string+set}" != Xset; then
298 # find a string as large as possible, as long as the shell can cope with it
299   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
300     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
301     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
302        echo_test_string="`eval $cmd`" &&
303        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
304     then
305       break
306     fi
307   done
308 fi
309
310 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
311    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
312    test "X$echo_testing_string" = "X$echo_test_string"; then
313   :
314 else
315   # The Solaris, AIX, and Digital Unix default echo programs unquote
316   # backslashes.  This makes it impossible to quote backslashes using
317   #   echo "$something" | sed 's/\\/\\\\/g'
318   #
319   # So, first we look for a working echo in the user's PATH.
320
321   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
322   for dir in $PATH /usr/ucb; do
323     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
324        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       echo="$dir/echo"
328       break
329     fi
330   done
331   IFS="$save_ifs"
332
333   if test "X$echo" = Xecho; then
334     # We didn't find a better echo, so look for alternatives.
335     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
336        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
337        test "X$echo_testing_string" = "X$echo_test_string"; then
338       # This shell has a builtin print -r that does the trick.
339       echo='print -r'
340     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
341          test "X$CONFIG_SHELL" != X/bin/ksh; then
342       # If we have ksh, try running configure again with it.
343       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
344       export ORIGINAL_CONFIG_SHELL
345       CONFIG_SHELL=/bin/ksh
346       export CONFIG_SHELL
347       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
348     else
349       # Try using printf.
350       echo='printf %s\n'
351       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
352          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
353          test "X$echo_testing_string" = "X$echo_test_string"; then
354         # Cool, printf works
355         :
356       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357            test "X$echo_testing_string" = 'X\t' &&
358            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359            test "X$echo_testing_string" = "X$echo_test_string"; then
360         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
361         export CONFIG_SHELL
362         SHELL="$CONFIG_SHELL"
363         export SHELL
364         echo="$CONFIG_SHELL $0 --fallback-echo"
365       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
366            test "X$echo_testing_string" = 'X\t' &&
367            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
368            test "X$echo_testing_string" = "X$echo_test_string"; then
369         echo="$CONFIG_SHELL $0 --fallback-echo"
370       else
371         # maybe with a smaller string...
372         prev=:
373
374         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
375           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
376           then
377             break
378           fi
379           prev="$cmd"
380         done
381
382         if test "$prev" != 'sed 50q "$0"'; then
383           echo_test_string=`eval $prev`
384           export echo_test_string
385           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
386         else
387           # Oops.  We lost completely, so just stick with echo.
388           echo=echo
389         fi
390       fi
391     fi
392   fi
393 fi
394 fi
395
396 # Copy echo and quote the copy suitably for passing to libtool from
397 # the Makefile, instead of quoting the original, which is used later.
398 ECHO=$echo
399 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
400    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
401 fi
402
403
404
405 # Name of the host.
406 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
407 # so uname gets run too.
408 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409
410 exec 6>&1
411
412 #
413 # Initializations.
414 #
415 ac_default_prefix=/usr/local
416 ac_config_libobj_dir=.
417 cross_compiling=no
418 subdirs=
419 MFLAGS=
420 MAKEFLAGS=
421 SHELL=${CONFIG_SHELL-/bin/sh}
422
423 # Maximum number of lines to put in a shell here document.
424 # This variable seems obsolete.  It should probably be removed, and
425 # only ac_max_sed_lines should be used.
426 : ${ac_max_here_lines=38}
427
428 # Identity of this package.
429 PACKAGE_NAME='GRAS'
430 PACKAGE_TARNAME='gras'
431 PACKAGE_VERSION='0.0.040304'
432 PACKAGE_STRING='GRAS 0.0.040304'
433 PACKAGE_BUGREPORT='martin.quinson@ens-lyon.fr'
434
435 ac_unique_file="src/include/gras.h"
436 # Factoring default headers for most tests.
437 ac_includes_default="\
438 #include <stdio.h>
439 #if HAVE_SYS_TYPES_H
440 # include <sys/types.h>
441 #endif
442 #if HAVE_SYS_STAT_H
443 # include <sys/stat.h>
444 #endif
445 #if STDC_HEADERS
446 # include <stdlib.h>
447 # include <stddef.h>
448 #else
449 # if HAVE_STDLIB_H
450 #  include <stdlib.h>
451 # endif
452 #endif
453 #if HAVE_STRING_H
454 # if !STDC_HEADERS && HAVE_MEMORY_H
455 #  include <memory.h>
456 # endif
457 # include <string.h>
458 #endif
459 #if HAVE_STRINGS_H
460 # include <strings.h>
461 #endif
462 #if HAVE_INTTYPES_H
463 # include <inttypes.h>
464 #else
465 # if HAVE_STDINT_H
466 #  include <stdint.h>
467 # endif
468 #endif
469 #if HAVE_UNISTD_H
470 # include <unistd.h>
471 #endif"
472
473 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBOBJS GTKDOC HAVE_GTK_DOC_TRUE HAVE_GTK_DOC_FALSE HAVE_GTK_DOC ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE ACI_CACHE_PROG aci_module_desc_XML aci_pkg_config_XML HAVE_XML CFLAGS_XML LIBS_XML aci_module_desc_SimGrid aci_pkg_prefix_SimGrid aci_pkg_inc_SimGrid aci_pkg_lib_SimGrid aci_pkg_extra_SimGrid HAVE_SimGrid CFLAGS_SimGrid LIBS_SimGrid MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT cflags_set BASH WARNING LTLIBOBJS'
474 ac_subst_files=''
475
476 # Initialize some variables set by options.
477 ac_init_help=
478 ac_init_version=false
479 # The variables have the same names as the options, with
480 # dashes changed to underlines.
481 cache_file=/dev/null
482 exec_prefix=NONE
483 no_create=
484 no_recursion=
485 prefix=NONE
486 program_prefix=NONE
487 program_suffix=NONE
488 program_transform_name=s,x,x,
489 silent=
490 site=
491 srcdir=
492 verbose=
493 x_includes=NONE
494 x_libraries=NONE
495
496 # Installation directory options.
497 # These are left unexpanded so users can "make install exec_prefix=/foo"
498 # and all the variables that are supposed to be based on exec_prefix
499 # by default will actually change.
500 # Use braces instead of parens because sh, perl, etc. also accept them.
501 bindir='${exec_prefix}/bin'
502 sbindir='${exec_prefix}/sbin'
503 libexecdir='${exec_prefix}/libexec'
504 datadir='${prefix}/share'
505 sysconfdir='${prefix}/etc'
506 sharedstatedir='${prefix}/com'
507 localstatedir='${prefix}/var'
508 libdir='${exec_prefix}/lib'
509 includedir='${prefix}/include'
510 oldincludedir='/usr/include'
511 infodir='${prefix}/info'
512 mandir='${prefix}/man'
513
514 ac_prev=
515 for ac_option
516 do
517   # If the previous option needs an argument, assign it.
518   if test -n "$ac_prev"; then
519     eval "$ac_prev=\$ac_option"
520     ac_prev=
521     continue
522   fi
523
524   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
525
526   # Accept the important Cygnus configure options, so we can diagnose typos.
527
528   case $ac_option in
529
530   -bindir | --bindir | --bindi | --bind | --bin | --bi)
531     ac_prev=bindir ;;
532   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
533     bindir=$ac_optarg ;;
534
535   -build | --build | --buil | --bui | --bu)
536     ac_prev=build_alias ;;
537   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
538     build_alias=$ac_optarg ;;
539
540   -cache-file | --cache-file | --cache-fil | --cache-fi \
541   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
542     ac_prev=cache_file ;;
543   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
544   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
545     cache_file=$ac_optarg ;;
546
547   --config-cache | -C)
548     cache_file=config.cache ;;
549
550   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
551     ac_prev=datadir ;;
552   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
553   | --da=*)
554     datadir=$ac_optarg ;;
555
556   -disable-* | --disable-*)
557     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
558     # Reject names that are not valid shell variable names.
559     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
561    { (exit 1); exit 1; }; }
562     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563     eval "enable_$ac_feature=no" ;;
564
565   -enable-* | --enable-*)
566     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
567     # Reject names that are not valid shell variable names.
568     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
569       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
570    { (exit 1); exit 1; }; }
571     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
572     case $ac_option in
573       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
574       *) ac_optarg=yes ;;
575     esac
576     eval "enable_$ac_feature='$ac_optarg'" ;;
577
578   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
579   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
580   | --exec | --exe | --ex)
581     ac_prev=exec_prefix ;;
582   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
583   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
584   | --exec=* | --exe=* | --ex=*)
585     exec_prefix=$ac_optarg ;;
586
587   -gas | --gas | --ga | --g)
588     # Obsolete; use --with-gas.
589     with_gas=yes ;;
590
591   -help | --help | --hel | --he | -h)
592     ac_init_help=long ;;
593   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
594     ac_init_help=recursive ;;
595   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
596     ac_init_help=short ;;
597
598   -host | --host | --hos | --ho)
599     ac_prev=host_alias ;;
600   -host=* | --host=* | --hos=* | --ho=*)
601     host_alias=$ac_optarg ;;
602
603   -includedir | --includedir | --includedi | --included | --include \
604   | --includ | --inclu | --incl | --inc)
605     ac_prev=includedir ;;
606   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
607   | --includ=* | --inclu=* | --incl=* | --inc=*)
608     includedir=$ac_optarg ;;
609
610   -infodir | --infodir | --infodi | --infod | --info | --inf)
611     ac_prev=infodir ;;
612   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
613     infodir=$ac_optarg ;;
614
615   -libdir | --libdir | --libdi | --libd)
616     ac_prev=libdir ;;
617   -libdir=* | --libdir=* | --libdi=* | --libd=*)
618     libdir=$ac_optarg ;;
619
620   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
621   | --libexe | --libex | --libe)
622     ac_prev=libexecdir ;;
623   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
624   | --libexe=* | --libex=* | --libe=*)
625     libexecdir=$ac_optarg ;;
626
627   -localstatedir | --localstatedir | --localstatedi | --localstated \
628   | --localstate | --localstat | --localsta | --localst \
629   | --locals | --local | --loca | --loc | --lo)
630     ac_prev=localstatedir ;;
631   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
632   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
633   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
634     localstatedir=$ac_optarg ;;
635
636   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
637     ac_prev=mandir ;;
638   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
639     mandir=$ac_optarg ;;
640
641   -nfp | --nfp | --nf)
642     # Obsolete; use --without-fp.
643     with_fp=no ;;
644
645   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
646   | --no-cr | --no-c | -n)
647     no_create=yes ;;
648
649   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
650   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
651     no_recursion=yes ;;
652
653   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
654   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
655   | --oldin | --oldi | --old | --ol | --o)
656     ac_prev=oldincludedir ;;
657   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
658   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
659   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
660     oldincludedir=$ac_optarg ;;
661
662   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
663     ac_prev=prefix ;;
664   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
665     prefix=$ac_optarg ;;
666
667   -program-prefix | --program-prefix | --program-prefi | --program-pref \
668   | --program-pre | --program-pr | --program-p)
669     ac_prev=program_prefix ;;
670   -program-prefix=* | --program-prefix=* | --program-prefi=* \
671   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
672     program_prefix=$ac_optarg ;;
673
674   -program-suffix | --program-suffix | --program-suffi | --program-suff \
675   | --program-suf | --program-su | --program-s)
676     ac_prev=program_suffix ;;
677   -program-suffix=* | --program-suffix=* | --program-suffi=* \
678   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
679     program_suffix=$ac_optarg ;;
680
681   -program-transform-name | --program-transform-name \
682   | --program-transform-nam | --program-transform-na \
683   | --program-transform-n | --program-transform- \
684   | --program-transform | --program-transfor \
685   | --program-transfo | --program-transf \
686   | --program-trans | --program-tran \
687   | --progr-tra | --program-tr | --program-t)
688     ac_prev=program_transform_name ;;
689   -program-transform-name=* | --program-transform-name=* \
690   | --program-transform-nam=* | --program-transform-na=* \
691   | --program-transform-n=* | --program-transform-=* \
692   | --program-transform=* | --program-transfor=* \
693   | --program-transfo=* | --program-transf=* \
694   | --program-trans=* | --program-tran=* \
695   | --progr-tra=* | --program-tr=* | --program-t=*)
696     program_transform_name=$ac_optarg ;;
697
698   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
699   | -silent | --silent | --silen | --sile | --sil)
700     silent=yes ;;
701
702   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
703     ac_prev=sbindir ;;
704   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
705   | --sbi=* | --sb=*)
706     sbindir=$ac_optarg ;;
707
708   -sharedstatedir | --sharedstatedir | --sharedstatedi \
709   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
710   | --sharedst | --shareds | --shared | --share | --shar \
711   | --sha | --sh)
712     ac_prev=sharedstatedir ;;
713   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
714   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
715   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
716   | --sha=* | --sh=*)
717     sharedstatedir=$ac_optarg ;;
718
719   -site | --site | --sit)
720     ac_prev=site ;;
721   -site=* | --site=* | --sit=*)
722     site=$ac_optarg ;;
723
724   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
725     ac_prev=srcdir ;;
726   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
727     srcdir=$ac_optarg ;;
728
729   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
730   | --syscon | --sysco | --sysc | --sys | --sy)
731     ac_prev=sysconfdir ;;
732   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
733   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
734     sysconfdir=$ac_optarg ;;
735
736   -target | --target | --targe | --targ | --tar | --ta | --t)
737     ac_prev=target_alias ;;
738   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
739     target_alias=$ac_optarg ;;
740
741   -v | -verbose | --verbose | --verbos | --verbo | --verb)
742     verbose=yes ;;
743
744   -version | --version | --versio | --versi | --vers | -V)
745     ac_init_version=: ;;
746
747   -with-* | --with-*)
748     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
749     # Reject names that are not valid shell variable names.
750     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751       { echo "$as_me: error: invalid package name: $ac_package" >&2
752    { (exit 1); exit 1; }; }
753     ac_package=`echo $ac_package| sed 's/-/_/g'`
754     case $ac_option in
755       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
756       *) ac_optarg=yes ;;
757     esac
758     eval "with_$ac_package='$ac_optarg'" ;;
759
760   -without-* | --without-*)
761     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
762     # Reject names that are not valid shell variable names.
763     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
764       { echo "$as_me: error: invalid package name: $ac_package" >&2
765    { (exit 1); exit 1; }; }
766     ac_package=`echo $ac_package | sed 's/-/_/g'`
767     eval "with_$ac_package=no" ;;
768
769   --x)
770     # Obsolete; use --with-x.
771     with_x=yes ;;
772
773   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
774   | --x-incl | --x-inc | --x-in | --x-i)
775     ac_prev=x_includes ;;
776   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
777   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
778     x_includes=$ac_optarg ;;
779
780   -x-libraries | --x-libraries | --x-librarie | --x-librari \
781   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
782     ac_prev=x_libraries ;;
783   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
784   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
785     x_libraries=$ac_optarg ;;
786
787   -*) { echo "$as_me: error: unrecognized option: $ac_option
788 Try \`$0 --help' for more information." >&2
789    { (exit 1); exit 1; }; }
790     ;;
791
792   *=*)
793     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
794     # Reject names that are not valid shell variable names.
795     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
796       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
797    { (exit 1); exit 1; }; }
798     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
799     eval "$ac_envvar='$ac_optarg'"
800     export $ac_envvar ;;
801
802   *)
803     # FIXME: should be removed in autoconf 3.0.
804     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
805     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
806       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
807     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808     ;;
809
810   esac
811 done
812
813 if test -n "$ac_prev"; then
814   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
815   { echo "$as_me: error: missing argument to $ac_option" >&2
816    { (exit 1); exit 1; }; }
817 fi
818
819 # Be sure to have absolute paths.
820 for ac_var in exec_prefix prefix
821 do
822   eval ac_val=$`echo $ac_var`
823   case $ac_val in
824     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
825     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826    { (exit 1); exit 1; }; };;
827   esac
828 done
829
830 # Be sure to have absolute paths.
831 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
832               localstatedir libdir includedir oldincludedir infodir mandir
833 do
834   eval ac_val=$`echo $ac_var`
835   case $ac_val in
836     [\\/$]* | ?:[\\/]* ) ;;
837     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
838    { (exit 1); exit 1; }; };;
839   esac
840 done
841
842 # There might be people who depend on the old broken behavior: `$host'
843 # used to hold the argument of --host etc.
844 # FIXME: To remove some day.
845 build=$build_alias
846 host=$host_alias
847 target=$target_alias
848
849 # FIXME: To remove some day.
850 if test "x$host_alias" != x; then
851   if test "x$build_alias" = x; then
852     cross_compiling=maybe
853     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
854     If a cross compiler is detected then cross compile mode will be used." >&2
855   elif test "x$build_alias" != "x$host_alias"; then
856     cross_compiling=yes
857   fi
858 fi
859
860 ac_tool_prefix=
861 test -n "$host_alias" && ac_tool_prefix=$host_alias-
862
863 test "$silent" = yes && exec 6>/dev/null
864
865
866 # Find the source files, if location was not specified.
867 if test -z "$srcdir"; then
868   ac_srcdir_defaulted=yes
869   # Try the directory containing this script, then its parent.
870   ac_confdir=`(dirname "$0") 2>/dev/null ||
871 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
872          X"$0" : 'X\(//\)[^/]' \| \
873          X"$0" : 'X\(//\)$' \| \
874          X"$0" : 'X\(/\)' \| \
875          .     : '\(.\)' 2>/dev/null ||
876 echo X"$0" |
877     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
878           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
879           /^X\(\/\/\)$/{ s//\1/; q; }
880           /^X\(\/\).*/{ s//\1/; q; }
881           s/.*/./; q'`
882   srcdir=$ac_confdir
883   if test ! -r $srcdir/$ac_unique_file; then
884     srcdir=..
885   fi
886 else
887   ac_srcdir_defaulted=no
888 fi
889 if test ! -r $srcdir/$ac_unique_file; then
890   if test "$ac_srcdir_defaulted" = yes; then
891     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
892    { (exit 1); exit 1; }; }
893   else
894     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
895    { (exit 1); exit 1; }; }
896   fi
897 fi
898 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
899   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
900    { (exit 1); exit 1; }; }
901 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
902 ac_env_build_alias_set=${build_alias+set}
903 ac_env_build_alias_value=$build_alias
904 ac_cv_env_build_alias_set=${build_alias+set}
905 ac_cv_env_build_alias_value=$build_alias
906 ac_env_host_alias_set=${host_alias+set}
907 ac_env_host_alias_value=$host_alias
908 ac_cv_env_host_alias_set=${host_alias+set}
909 ac_cv_env_host_alias_value=$host_alias
910 ac_env_target_alias_set=${target_alias+set}
911 ac_env_target_alias_value=$target_alias
912 ac_cv_env_target_alias_set=${target_alias+set}
913 ac_cv_env_target_alias_value=$target_alias
914 ac_env_CC_set=${CC+set}
915 ac_env_CC_value=$CC
916 ac_cv_env_CC_set=${CC+set}
917 ac_cv_env_CC_value=$CC
918 ac_env_CFLAGS_set=${CFLAGS+set}
919 ac_env_CFLAGS_value=$CFLAGS
920 ac_cv_env_CFLAGS_set=${CFLAGS+set}
921 ac_cv_env_CFLAGS_value=$CFLAGS
922 ac_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_env_LDFLAGS_value=$LDFLAGS
924 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
925 ac_cv_env_LDFLAGS_value=$LDFLAGS
926 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_env_CPPFLAGS_value=$CPPFLAGS
928 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
929 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
930 ac_env_CPP_set=${CPP+set}
931 ac_env_CPP_value=$CPP
932 ac_cv_env_CPP_set=${CPP+set}
933 ac_cv_env_CPP_value=$CPP
934
935 #
936 # Report the --help message.
937 #
938 if test "$ac_init_help" = "long"; then
939   # Omit some internal or obsolete options to make the list less imposing.
940   # This message is too long to be a string in the A/UX 3.1 sh.
941   cat <<_ACEOF
942 \`configure' configures GRAS 0.0.040304 to adapt to many kinds of systems.
943
944 Usage: $0 [OPTION]... [VAR=VALUE]...
945
946 To assign environment variables (e.g., CC, CFLAGS...), specify them as
947 VAR=VALUE.  See below for descriptions of some of the useful variables.
948
949 Defaults for the options are specified in brackets.
950
951 Configuration:
952   -h, --help              display this help and exit
953       --help=short        display options specific to this package
954       --help=recursive    display the short help of all the included packages
955   -V, --version           display version information and exit
956   -q, --quiet, --silent   do not print \`checking...' messages
957       --cache-file=FILE   cache test results in FILE [disabled]
958   -C, --config-cache      alias for \`--cache-file=config.cache'
959   -n, --no-create         do not create output files
960       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
961
962 _ACEOF
963
964   cat <<_ACEOF
965 Installation directories:
966   --prefix=PREFIX         install architecture-independent files in PREFIX
967                           [$ac_default_prefix]
968   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
969                           [PREFIX]
970
971 By default, \`make install' will install all the files in
972 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
973 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
974 for instance \`--prefix=\$HOME'.
975
976 For better control, use the options below.
977
978 Fine tuning of the installation directories:
979   --bindir=DIR           user executables [EPREFIX/bin]
980   --sbindir=DIR          system admin executables [EPREFIX/sbin]
981   --libexecdir=DIR       program executables [EPREFIX/libexec]
982   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
983   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
984   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
985   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
986   --libdir=DIR           object code libraries [EPREFIX/lib]
987   --includedir=DIR       C header files [PREFIX/include]
988   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
989   --infodir=DIR          info documentation [PREFIX/info]
990   --mandir=DIR           man documentation [PREFIX/man]
991 _ACEOF
992
993   cat <<\_ACEOF
994
995 Program names:
996   --program-prefix=PREFIX            prepend PREFIX to installed program names
997   --program-suffix=SUFFIX            append SUFFIX to installed program names
998   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
999
1000 System types:
1001   --build=BUILD     configure for building on BUILD [guessed]
1002   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1003   --target=TARGET   configure for building compilers for TARGET [HOST]
1004 _ACEOF
1005 fi
1006
1007 if test -n "$ac_init_help"; then
1008   case $ac_init_help in
1009      short | recursive ) echo "Configuration of GRAS 0.0.040304:";;
1010    esac
1011   cat <<\_ACEOF
1012
1013 Optional Features:
1014   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1015   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1016   --enable-shared=PKGS  build shared libraries default=yes
1017   --enable-static=PKGS  build static libraries default=yes
1018   --enable-fast-install=PKGS  optimize for fast installation default=yes
1019   --disable-dependency-tracking Speeds up one-time builds
1020   --enable-dependency-tracking  Do not reject slow dependency extractors
1021   --disable-libtool-lock  avoid locking (might break parallel builds)
1022   --enable-gtk-doc  Use gtk-doc to build documentation default=auto
1023   --enable-maintainer-mode enable make rules and dependencies not useful
1024                           (and sometimes confusing) to the casual installer
1025   --enable-compile-warnings=no/minimum/yes       Turn on compiler warnings.
1026   --enable-iso-c          Try to warn if code is not ISO C
1027
1028 Optional Packages:
1029   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1030   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1031   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1032   --with-pic              try to use only PIC/non-PIC objects default=use both
1033   --with-SimGrid=DIR      root directory of the SimGrid simulator installation
1034   --with-SimGrid-includes=DIR
1035                           specify exact include dir for the SimGrid simulator headers
1036   --with-SimGrid-libraries=DIR
1037                           specify exact library dir for the SimGrid simulator library
1038   --with-SimGrid-extra=ARG
1039                           specify extra args to pass to the linker to get the
1040                           the SimGrid simulator library (with no space. A sed to change "!"
1041                           to " " is run)
1042
1043 Some influential environment variables:
1044   CC          C compiler command
1045   CFLAGS      C compiler flags
1046   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1047               nonstandard directory <lib dir>
1048   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1049               headers in a nonstandard directory <include dir>
1050   CPP         C preprocessor
1051
1052 Use these variables to override the choices made by `configure' or to help
1053 it to find libraries and programs with nonstandard names/locations.
1054
1055 Report bugs to <martin.quinson@ens-lyon.fr>.
1056 _ACEOF
1057 fi
1058
1059 if test "$ac_init_help" = "recursive"; then
1060   # If there are subdirs, report their specific --help.
1061   ac_popdir=`pwd`
1062   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1063     test -d $ac_dir || continue
1064     ac_builddir=.
1065
1066 if test "$ac_dir" != .; then
1067   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1068   # A "../" for each directory in $ac_dir_suffix.
1069   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1070 else
1071   ac_dir_suffix= ac_top_builddir=
1072 fi
1073
1074 case $srcdir in
1075   .)  # No --srcdir option.  We are building in place.
1076     ac_srcdir=.
1077     if test -z "$ac_top_builddir"; then
1078        ac_top_srcdir=.
1079     else
1080        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1081     fi ;;
1082   [\\/]* | ?:[\\/]* )  # Absolute path.
1083     ac_srcdir=$srcdir$ac_dir_suffix;
1084     ac_top_srcdir=$srcdir ;;
1085   *) # Relative path.
1086     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1087     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1088 esac
1089 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1090 # absolute.
1091 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1092 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1093 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1094 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1095
1096     cd $ac_dir
1097     # Check for guested configure; otherwise get Cygnus style configure.
1098     if test -f $ac_srcdir/configure.gnu; then
1099       echo
1100       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1101     elif test -f $ac_srcdir/configure; then
1102       echo
1103       $SHELL $ac_srcdir/configure  --help=recursive
1104     elif test -f $ac_srcdir/configure.ac ||
1105            test -f $ac_srcdir/configure.in; then
1106       echo
1107       $ac_configure --help
1108     else
1109       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1110     fi
1111     cd $ac_popdir
1112   done
1113 fi
1114
1115 test -n "$ac_init_help" && exit 0
1116 if $ac_init_version; then
1117   cat <<\_ACEOF
1118 GRAS configure 0.0.040304
1119 generated by GNU Autoconf 2.57
1120
1121 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1122 Free Software Foundation, Inc.
1123 This configure script is free software; the Free Software Foundation
1124 gives unlimited permission to copy, distribute and modify it.
1125 _ACEOF
1126   exit 0
1127 fi
1128 exec 5>config.log
1129 cat >&5 <<_ACEOF
1130 This file contains any messages produced by compilers while
1131 running configure, to aid debugging if configure makes a mistake.
1132
1133 It was created by GRAS $as_me 0.0.040304, which was
1134 generated by GNU Autoconf 2.57.  Invocation command line was
1135
1136   $ $0 $@
1137
1138 _ACEOF
1139 {
1140 cat <<_ASUNAME
1141 ## --------- ##
1142 ## Platform. ##
1143 ## --------- ##
1144
1145 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1146 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1147 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1148 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1149 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1150
1151 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1152 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1153
1154 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1155 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1156 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1157 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1158 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1159 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1160 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1161
1162 _ASUNAME
1163
1164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1165 for as_dir in $PATH
1166 do
1167   IFS=$as_save_IFS
1168   test -z "$as_dir" && as_dir=.
1169   echo "PATH: $as_dir"
1170 done
1171
1172 } >&5
1173
1174 cat >&5 <<_ACEOF
1175
1176
1177 ## ----------- ##
1178 ## Core tests. ##
1179 ## ----------- ##
1180
1181 _ACEOF
1182
1183
1184 # Keep a trace of the command line.
1185 # Strip out --no-create and --no-recursion so they do not pile up.
1186 # Strip out --silent because we don't want to record it for future runs.
1187 # Also quote any args containing shell meta-characters.
1188 # Make two passes to allow for proper duplicate-argument suppression.
1189 ac_configure_args=
1190 ac_configure_args0=
1191 ac_configure_args1=
1192 ac_sep=
1193 ac_must_keep_next=false
1194 for ac_pass in 1 2
1195 do
1196   for ac_arg
1197   do
1198     case $ac_arg in
1199     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1200     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201     | -silent | --silent | --silen | --sile | --sil)
1202       continue ;;
1203     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1204       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1205     esac
1206     case $ac_pass in
1207     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1208     2)
1209       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1210       if test $ac_must_keep_next = true; then
1211         ac_must_keep_next=false # Got value, back to normal.
1212       else
1213         case $ac_arg in
1214           *=* | --config-cache | -C | -disable-* | --disable-* \
1215           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1216           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1217           | -with-* | --with-* | -without-* | --without-* | --x)
1218             case "$ac_configure_args0 " in
1219               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1220             esac
1221             ;;
1222           -* ) ac_must_keep_next=true ;;
1223         esac
1224       fi
1225       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1226       # Get rid of the leading space.
1227       ac_sep=" "
1228       ;;
1229     esac
1230   done
1231 done
1232 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1233 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1234
1235 # When interrupted or exit'd, cleanup temporary files, and complete
1236 # config.log.  We remove comments because anyway the quotes in there
1237 # would cause problems or look ugly.
1238 # WARNING: Be sure not to use single quotes in there, as some shells,
1239 # such as our DU 5.0 friend, will then `close' the trap.
1240 trap 'exit_status=$?
1241   # Save into config.log some information that might help in debugging.
1242   {
1243     echo
1244
1245     cat <<\_ASBOX
1246 ## ---------------- ##
1247 ## Cache variables. ##
1248 ## ---------------- ##
1249 _ASBOX
1250     echo
1251     # The following way of writing the cache mishandles newlines in values,
1252 {
1253   (set) 2>&1 |
1254     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1255     *ac_space=\ *)
1256       sed -n \
1257         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1258           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1259       ;;
1260     *)
1261       sed -n \
1262         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1263       ;;
1264     esac;
1265 }
1266     echo
1267
1268     cat <<\_ASBOX
1269 ## ----------------- ##
1270 ## Output variables. ##
1271 ## ----------------- ##
1272 _ASBOX
1273     echo
1274     for ac_var in $ac_subst_vars
1275     do
1276       eval ac_val=$`echo $ac_var`
1277       echo "$ac_var='"'"'$ac_val'"'"'"
1278     done | sort
1279     echo
1280
1281     if test -n "$ac_subst_files"; then
1282       cat <<\_ASBOX
1283 ## ------------- ##
1284 ## Output files. ##
1285 ## ------------- ##
1286 _ASBOX
1287       echo
1288       for ac_var in $ac_subst_files
1289       do
1290         eval ac_val=$`echo $ac_var`
1291         echo "$ac_var='"'"'$ac_val'"'"'"
1292       done | sort
1293       echo
1294     fi
1295
1296     if test -s confdefs.h; then
1297       cat <<\_ASBOX
1298 ## ----------- ##
1299 ## confdefs.h. ##
1300 ## ----------- ##
1301 _ASBOX
1302       echo
1303       sed "/^$/d" confdefs.h | sort
1304       echo
1305     fi
1306     test "$ac_signal" != 0 &&
1307       echo "$as_me: caught signal $ac_signal"
1308     echo "$as_me: exit $exit_status"
1309   } >&5
1310   rm -f core core.* *.core &&
1311   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1312     exit $exit_status
1313      ' 0
1314 for ac_signal in 1 2 13 15; do
1315   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1316 done
1317 ac_signal=0
1318
1319 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1320 rm -rf conftest* confdefs.h
1321 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1322 echo >confdefs.h
1323
1324 # Predefined preprocessor variables.
1325
1326 cat >>confdefs.h <<_ACEOF
1327 #define PACKAGE_NAME "$PACKAGE_NAME"
1328 _ACEOF
1329
1330
1331 cat >>confdefs.h <<_ACEOF
1332 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1333 _ACEOF
1334
1335
1336 cat >>confdefs.h <<_ACEOF
1337 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1338 _ACEOF
1339
1340
1341 cat >>confdefs.h <<_ACEOF
1342 #define PACKAGE_STRING "$PACKAGE_STRING"
1343 _ACEOF
1344
1345
1346 cat >>confdefs.h <<_ACEOF
1347 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1348 _ACEOF
1349
1350
1351 # Let the site file select an alternate cache file if it wants to.
1352 # Prefer explicitly selected file to automatically selected ones.
1353 if test -z "$CONFIG_SITE"; then
1354   if test "x$prefix" != xNONE; then
1355     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1356   else
1357     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1358   fi
1359 fi
1360 for ac_site_file in $CONFIG_SITE; do
1361   if test -r "$ac_site_file"; then
1362     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1363 echo "$as_me: loading site script $ac_site_file" >&6;}
1364     sed 's/^/| /' "$ac_site_file" >&5
1365     . "$ac_site_file"
1366   fi
1367 done
1368
1369 if test -r "$cache_file"; then
1370   # Some versions of bash will fail to source /dev/null (special
1371   # files actually), so we avoid doing that.
1372   if test -f "$cache_file"; then
1373     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1374 echo "$as_me: loading cache $cache_file" >&6;}
1375     case $cache_file in
1376       [\\/]* | ?:[\\/]* ) . $cache_file;;
1377       *)                      . ./$cache_file;;
1378     esac
1379   fi
1380 else
1381   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1382 echo "$as_me: creating cache $cache_file" >&6;}
1383   >$cache_file
1384 fi
1385
1386 # Check that the precious variables saved in the cache have kept the same
1387 # value.
1388 ac_cache_corrupted=false
1389 for ac_var in `(set) 2>&1 |
1390                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1391   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1392   eval ac_new_set=\$ac_env_${ac_var}_set
1393   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1394   eval ac_new_val="\$ac_env_${ac_var}_value"
1395   case $ac_old_set,$ac_new_set in
1396     set,)
1397       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1398 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1399       ac_cache_corrupted=: ;;
1400     ,set)
1401       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1402 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1403       ac_cache_corrupted=: ;;
1404     ,);;
1405     *)
1406       if test "x$ac_old_val" != "x$ac_new_val"; then
1407         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1408 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1409         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1410 echo "$as_me:   former value:  $ac_old_val" >&2;}
1411         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1412 echo "$as_me:   current value: $ac_new_val" >&2;}
1413         ac_cache_corrupted=:
1414       fi;;
1415   esac
1416   # Pass precious variables to config.status.
1417   if test "$ac_new_set" = set; then
1418     case $ac_new_val in
1419     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1420       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1421     *) ac_arg=$ac_var=$ac_new_val ;;
1422     esac
1423     case " $ac_configure_args " in
1424       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1425       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1426     esac
1427   fi
1428 done
1429 if $ac_cache_corrupted; then
1430   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1431 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1432   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1433 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1434    { (exit 1); exit 1; }; }
1435 fi
1436
1437 ac_ext=c
1438 ac_cpp='$CPP $CPPFLAGS'
1439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472 ac_aux_dir=
1473 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474   if test -f $ac_dir/install-sh; then
1475     ac_aux_dir=$ac_dir
1476     ac_install_sh="$ac_aux_dir/install-sh -c"
1477     break
1478   elif test -f $ac_dir/install.sh; then
1479     ac_aux_dir=$ac_dir
1480     ac_install_sh="$ac_aux_dir/install.sh -c"
1481     break
1482   elif test -f $ac_dir/shtool; then
1483     ac_aux_dir=$ac_dir
1484     ac_install_sh="$ac_aux_dir/shtool install -c"
1485     break
1486   fi
1487 done
1488 if test -z "$ac_aux_dir"; then
1489   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491    { (exit 1); exit 1; }; }
1492 fi
1493 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1496
1497 # Make sure we can run config.sub.
1498 $ac_config_sub sun4 >/dev/null 2>&1 ||
1499   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501    { (exit 1); exit 1; }; }
1502
1503 echo "$as_me:$LINENO: checking build system type" >&5
1504 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505 if test "${ac_cv_build+set}" = set; then
1506   echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508   ac_cv_build_alias=$build_alias
1509 test -z "$ac_cv_build_alias" &&
1510   ac_cv_build_alias=`$ac_config_guess`
1511 test -z "$ac_cv_build_alias" &&
1512   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514    { (exit 1); exit 1; }; }
1515 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518    { (exit 1); exit 1; }; }
1519
1520 fi
1521 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522 echo "${ECHO_T}$ac_cv_build" >&6
1523 build=$ac_cv_build
1524 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527
1528
1529 echo "$as_me:$LINENO: checking host system type" >&5
1530 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1531 if test "${ac_cv_host+set}" = set; then
1532   echo $ECHO_N "(cached) $ECHO_C" >&6
1533 else
1534   ac_cv_host_alias=$host_alias
1535 test -z "$ac_cv_host_alias" &&
1536   ac_cv_host_alias=$ac_cv_build_alias
1537 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1538   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1539 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1540    { (exit 1); exit 1; }; }
1541
1542 fi
1543 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1544 echo "${ECHO_T}$ac_cv_host" >&6
1545 host=$ac_cv_host
1546 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549
1550
1551 echo "$as_me:$LINENO: checking target system type" >&5
1552 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1553 if test "${ac_cv_target+set}" = set; then
1554   echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556   ac_cv_target_alias=$target_alias
1557 test "x$ac_cv_target_alias" = "x" &&
1558   ac_cv_target_alias=$ac_cv_host_alias
1559 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1560   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1561 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1562    { (exit 1); exit 1; }; }
1563
1564 fi
1565 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1566 echo "${ECHO_T}$ac_cv_target" >&6
1567 target=$ac_cv_target
1568 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571
1572
1573 # The aliases save the names the user supplied, while $host etc.
1574 # will get canonicalized.
1575 test -n "$target_alias" &&
1576   test "$program_prefix$program_suffix$program_transform_name" = \
1577     NONENONEs,x,x, &&
1578   program_prefix=${target_alias}-
1579 ac_ext=c
1580 ac_cpp='$CPP $CPPFLAGS'
1581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1584
1585
1586           ac_config_headers="$ac_config_headers src/gras_config.h"
1587
1588 am__api_version="1.7"
1589 # Find a good install program.  We prefer a C program (faster),
1590 # so one script is as good as another.  But avoid the broken or
1591 # incompatible versions:
1592 # SysV /etc/install, /usr/sbin/install
1593 # SunOS /usr/etc/install
1594 # IRIX /sbin/install
1595 # AIX /bin/install
1596 # AmigaOS /C/install, which installs bootblocks on floppy discs
1597 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1598 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1599 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1600 # ./install, which can be erroneously created by make from ./install.sh.
1601 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1602 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1603 if test -z "$INSTALL"; then
1604 if test "${ac_cv_path_install+set}" = set; then
1605   echo $ECHO_N "(cached) $ECHO_C" >&6
1606 else
1607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1609 do
1610   IFS=$as_save_IFS
1611   test -z "$as_dir" && as_dir=.
1612   # Account for people who put trailing slashes in PATH elements.
1613 case $as_dir/ in
1614   ./ | .// | /cC/* | \
1615   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1616   /usr/ucb/* ) ;;
1617   *)
1618     # OSF1 and SCO ODT 3.0 have their own names for install.
1619     # Don't use installbsd from OSF since it installs stuff as root
1620     # by default.
1621     for ac_prog in ginstall scoinst install; do
1622       for ac_exec_ext in '' $ac_executable_extensions; do
1623         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1624           if test $ac_prog = install &&
1625             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1626             # AIX install.  It has an incompatible calling convention.
1627             :
1628           elif test $ac_prog = install &&
1629             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1630             # program-specific install script used by HP pwplus--don't use.
1631             :
1632           else
1633             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1634             break 3
1635           fi
1636         fi
1637       done
1638     done
1639     ;;
1640 esac
1641 done
1642
1643
1644 fi
1645   if test "${ac_cv_path_install+set}" = set; then
1646     INSTALL=$ac_cv_path_install
1647   else
1648     # As a last resort, use the slow shell script.  We don't cache a
1649     # path for INSTALL within a source directory, because that will
1650     # break other packages using the cache if that directory is
1651     # removed, or if the path is relative.
1652     INSTALL=$ac_install_sh
1653   fi
1654 fi
1655 echo "$as_me:$LINENO: result: $INSTALL" >&5
1656 echo "${ECHO_T}$INSTALL" >&6
1657
1658 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1659 # It thinks the first close brace ends the variable substitution.
1660 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1661
1662 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1663
1664 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1665
1666 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1667 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1668 # Just in case
1669 sleep 1
1670 echo timestamp > conftest.file
1671 # Do `set' in a subshell so we don't clobber the current shell's
1672 # arguments.  Must try -L first in case configure is actually a
1673 # symlink; some systems play weird games with the mod time of symlinks
1674 # (eg FreeBSD returns the mod time of the symlink's containing
1675 # directory).
1676 if (
1677    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1678    if test "$*" = "X"; then
1679       # -L didn't work.
1680       set X `ls -t $srcdir/configure conftest.file`
1681    fi
1682    rm -f conftest.file
1683    if test "$*" != "X $srcdir/configure conftest.file" \
1684       && test "$*" != "X conftest.file $srcdir/configure"; then
1685
1686       # If neither matched, then we have a broken ls.  This can happen
1687       # if, for instance, CONFIG_SHELL is bash and it inherits a
1688       # broken ls alias from the environment.  This has actually
1689       # happened.  Such a system could not be considered "sane".
1690       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1691 alias in your environment" >&5
1692 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1693 alias in your environment" >&2;}
1694    { (exit 1); exit 1; }; }
1695    fi
1696
1697    test "$2" = conftest.file
1698    )
1699 then
1700    # Ok.
1701    :
1702 else
1703    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1704 Check your system clock" >&5
1705 echo "$as_me: error: newly created file is older than distributed files!
1706 Check your system clock" >&2;}
1707    { (exit 1); exit 1; }; }
1708 fi
1709 echo "$as_me:$LINENO: result: yes" >&5
1710 echo "${ECHO_T}yes" >&6
1711 test "$program_prefix" != NONE &&
1712   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1713 # Use a double $ so make ignores it.
1714 test "$program_suffix" != NONE &&
1715   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1716 # Double any \ or $.  echo might interpret backslashes.
1717 # By default was `s,x,x', remove it if useless.
1718 cat <<\_ACEOF >conftest.sed
1719 s/[\\$]/&&/g;s/;s,x,x,$//
1720 _ACEOF
1721 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1722 rm conftest.sed
1723
1724
1725 # expand $ac_aux_dir to an absolute path
1726 am_aux_dir=`cd $ac_aux_dir && pwd`
1727
1728 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1729 # Use eval to expand $SHELL
1730 if eval "$MISSING --run true"; then
1731   am_missing_run="$MISSING --run "
1732 else
1733   am_missing_run=
1734   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1735 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1736 fi
1737
1738 for ac_prog in gawk mawk nawk awk
1739 do
1740   # Extract the first word of "$ac_prog", so it can be a program name with args.
1741 set dummy $ac_prog; ac_word=$2
1742 echo "$as_me:$LINENO: checking for $ac_word" >&5
1743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744 if test "${ac_cv_prog_AWK+set}" = set; then
1745   echo $ECHO_N "(cached) $ECHO_C" >&6
1746 else
1747   if test -n "$AWK"; then
1748   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1749 else
1750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 for as_dir in $PATH
1752 do
1753   IFS=$as_save_IFS
1754   test -z "$as_dir" && as_dir=.
1755   for ac_exec_ext in '' $ac_executable_extensions; do
1756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1757     ac_cv_prog_AWK="$ac_prog"
1758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759     break 2
1760   fi
1761 done
1762 done
1763
1764 fi
1765 fi
1766 AWK=$ac_cv_prog_AWK
1767 if test -n "$AWK"; then
1768   echo "$as_me:$LINENO: result: $AWK" >&5
1769 echo "${ECHO_T}$AWK" >&6
1770 else
1771   echo "$as_me:$LINENO: result: no" >&5
1772 echo "${ECHO_T}no" >&6
1773 fi
1774
1775   test -n "$AWK" && break
1776 done
1777
1778 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1779 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1780 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1781 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1782   echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784   cat >conftest.make <<\_ACEOF
1785 all:
1786         @echo 'ac_maketemp="$(MAKE)"'
1787 _ACEOF
1788 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1789 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1790 if test -n "$ac_maketemp"; then
1791   eval ac_cv_prog_make_${ac_make}_set=yes
1792 else
1793   eval ac_cv_prog_make_${ac_make}_set=no
1794 fi
1795 rm -f conftest.make
1796 fi
1797 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1798   echo "$as_me:$LINENO: result: yes" >&5
1799 echo "${ECHO_T}yes" >&6
1800   SET_MAKE=
1801 else
1802   echo "$as_me:$LINENO: result: no" >&5
1803 echo "${ECHO_T}no" >&6
1804   SET_MAKE="MAKE=${MAKE-make}"
1805 fi
1806
1807  # test to see if srcdir already configured
1808 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1809    test -f $srcdir/config.status; then
1810   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1811 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1812    { (exit 1); exit 1; }; }
1813 fi
1814
1815 # test whether we have cygpath
1816 if test -z "$CYGPATH_W"; then
1817   if (cygpath --version) >/dev/null 2>/dev/null; then
1818     CYGPATH_W='cygpath -w'
1819   else
1820     CYGPATH_W=echo
1821   fi
1822 fi
1823
1824
1825 # Define the identity of the package.
1826  PACKAGE=gras
1827  VERSION=0.0.040304
1828
1829
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE "$PACKAGE"
1832 _ACEOF
1833
1834
1835 cat >>confdefs.h <<_ACEOF
1836 #define VERSION "$VERSION"
1837 _ACEOF
1838
1839 # Some tools Automake needs.
1840
1841 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1842
1843
1844 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1845
1846
1847 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1848
1849
1850 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1851
1852
1853 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1854
1855
1856 AMTAR=${AMTAR-"${am_missing_run}tar"}
1857
1858 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1859
1860 # Installed binaries are usually stripped using `strip' when the user
1861 # run `make install-strip'.  However `strip' might not be the right
1862 # tool to use in cross-compilation environments, therefore Automake
1863 # will honor the `STRIP' environment variable to overrule this program.
1864 if test "$cross_compiling" != no; then
1865   if test -n "$ac_tool_prefix"; then
1866   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1867 set dummy ${ac_tool_prefix}strip; ac_word=$2
1868 echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870 if test "${ac_cv_prog_STRIP+set}" = set; then
1871   echo $ECHO_N "(cached) $ECHO_C" >&6
1872 else
1873   if test -n "$STRIP"; then
1874   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1875 else
1876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 for as_dir in $PATH
1878 do
1879   IFS=$as_save_IFS
1880   test -z "$as_dir" && as_dir=.
1881   for ac_exec_ext in '' $ac_executable_extensions; do
1882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885     break 2
1886   fi
1887 done
1888 done
1889
1890 fi
1891 fi
1892 STRIP=$ac_cv_prog_STRIP
1893 if test -n "$STRIP"; then
1894   echo "$as_me:$LINENO: result: $STRIP" >&5
1895 echo "${ECHO_T}$STRIP" >&6
1896 else
1897   echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1899 fi
1900
1901 fi
1902 if test -z "$ac_cv_prog_STRIP"; then
1903   ac_ct_STRIP=$STRIP
1904   # Extract the first word of "strip", so it can be a program name with args.
1905 set dummy strip; ac_word=$2
1906 echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1909   echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911   if test -n "$ac_ct_STRIP"; then
1912   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1913 else
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1916 do
1917   IFS=$as_save_IFS
1918   test -z "$as_dir" && as_dir=.
1919   for ac_exec_ext in '' $ac_executable_extensions; do
1920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921     ac_cv_prog_ac_ct_STRIP="strip"
1922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923     break 2
1924   fi
1925 done
1926 done
1927
1928   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1929 fi
1930 fi
1931 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1932 if test -n "$ac_ct_STRIP"; then
1933   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1934 echo "${ECHO_T}$ac_ct_STRIP" >&6
1935 else
1936   echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1938 fi
1939
1940   STRIP=$ac_ct_STRIP
1941 else
1942   STRIP="$ac_cv_prog_STRIP"
1943 fi
1944
1945 fi
1946 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1947
1948 # We need awk for the "check" target.  The system "awk" is bad on
1949 # some platforms.
1950
1951
1952
1953
1954 # Check whether --enable-shared or --disable-shared was given.
1955 if test "${enable_shared+set}" = set; then
1956   enableval="$enable_shared"
1957   p=${PACKAGE-default}
1958 case $enableval in
1959 yes) enable_shared=yes ;;
1960 no) enable_shared=no ;;
1961 *)
1962   enable_shared=no
1963   # Look at the argument we got.  We use all the common list separators.
1964   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1965   for pkg in $enableval; do
1966     if test "X$pkg" = "X$p"; then
1967       enable_shared=yes
1968     fi
1969   done
1970   IFS="$ac_save_ifs"
1971   ;;
1972 esac
1973 else
1974   enable_shared=yes
1975 fi;
1976 # Check whether --enable-static or --disable-static was given.
1977 if test "${enable_static+set}" = set; then
1978   enableval="$enable_static"
1979   p=${PACKAGE-default}
1980 case $enableval in
1981 yes) enable_static=yes ;;
1982 no) enable_static=no ;;
1983 *)
1984   enable_static=no
1985   # Look at the argument we got.  We use all the common list separators.
1986   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1987   for pkg in $enableval; do
1988     if test "X$pkg" = "X$p"; then
1989       enable_static=yes
1990     fi
1991   done
1992   IFS="$ac_save_ifs"
1993   ;;
1994 esac
1995 else
1996   enable_static=yes
1997 fi;
1998 # Check whether --enable-fast-install or --disable-fast-install was given.
1999 if test "${enable_fast_install+set}" = set; then
2000   enableval="$enable_fast_install"
2001   p=${PACKAGE-default}
2002 case $enableval in
2003 yes) enable_fast_install=yes ;;
2004 no) enable_fast_install=no ;;
2005 *)
2006   enable_fast_install=no
2007   # Look at the argument we got.  We use all the common list separators.
2008   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2009   for pkg in $enableval; do
2010     if test "X$pkg" = "X$p"; then
2011       enable_fast_install=yes
2012     fi
2013   done
2014   IFS="$ac_save_ifs"
2015   ;;
2016 esac
2017 else
2018   enable_fast_install=yes
2019 fi;
2020 rm -f .deps 2>/dev/null
2021 mkdir .deps 2>/dev/null
2022 if test -d .deps; then
2023   DEPDIR=.deps
2024 else
2025   # MS-DOS does not allow filenames that begin with a dot.
2026   DEPDIR=_deps
2027 fi
2028 rmdir .deps 2>/dev/null
2029
2030
2031           ac_config_commands="$ac_config_commands depfiles"
2032
2033
2034 am_make=${MAKE-make}
2035 cat > confinc << 'END'
2036 doit:
2037         @echo done
2038 END
2039 # If we don't find an include directive, just comment out the code.
2040 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2041 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2042 am__include="#"
2043 am__quote=
2044 _am_result=none
2045 # First try GNU make style include.
2046 echo "include confinc" > confmf
2047 # We grep out `Entering directory' and `Leaving directory'
2048 # messages which can occur if `w' ends up in MAKEFLAGS.
2049 # In particular we don't look at `^make:' because GNU make might
2050 # be invoked under some other name (usually "gmake"), in which
2051 # case it prints its new name instead of `make'.
2052 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2053    am__include=include
2054    am__quote=
2055    _am_result=GNU
2056 fi
2057 # Now try BSD make style include.
2058 if test "$am__include" = "#"; then
2059    echo '.include "confinc"' > confmf
2060    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2061       am__include=.include
2062       am__quote="\""
2063       _am_result=BSD
2064    fi
2065 fi
2066
2067
2068 echo "$as_me:$LINENO: result: $_am_result" >&5
2069 echo "${ECHO_T}$_am_result" >&6
2070 rm -f confinc confmf
2071
2072 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2073 if test "${enable_dependency_tracking+set}" = set; then
2074   enableval="$enable_dependency_tracking"
2075
2076 fi;
2077 if test "x$enable_dependency_tracking" != xno; then
2078   am_depcomp="$ac_aux_dir/depcomp"
2079   AMDEPBACKSLASH='\'
2080 fi
2081
2082
2083 if test "x$enable_dependency_tracking" != xno; then
2084   AMDEP_TRUE=
2085   AMDEP_FALSE='#'
2086 else
2087   AMDEP_TRUE='#'
2088   AMDEP_FALSE=
2089 fi
2090
2091
2092
2093 ac_ext=c
2094 ac_cpp='$CPP $CPPFLAGS'
2095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2098 if test -n "$ac_tool_prefix"; then
2099   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2100 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2101 echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2103 if test "${ac_cv_prog_CC+set}" = set; then
2104   echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106   if test -n "$CC"; then
2107   ac_cv_prog_CC="$CC" # Let the user override the test.
2108 else
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2111 do
2112   IFS=$as_save_IFS
2113   test -z "$as_dir" && as_dir=.
2114   for ac_exec_ext in '' $ac_executable_extensions; do
2115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118     break 2
2119   fi
2120 done
2121 done
2122
2123 fi
2124 fi
2125 CC=$ac_cv_prog_CC
2126 if test -n "$CC"; then
2127   echo "$as_me:$LINENO: result: $CC" >&5
2128 echo "${ECHO_T}$CC" >&6
2129 else
2130   echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2132 fi
2133
2134 fi
2135 if test -z "$ac_cv_prog_CC"; then
2136   ac_ct_CC=$CC
2137   # Extract the first word of "gcc", so it can be a program name with args.
2138 set dummy gcc; ac_word=$2
2139 echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2142   echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144   if test -n "$ac_ct_CC"; then
2145   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2146 else
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2149 do
2150   IFS=$as_save_IFS
2151   test -z "$as_dir" && as_dir=.
2152   for ac_exec_ext in '' $ac_executable_extensions; do
2153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2154     ac_cv_prog_ac_ct_CC="gcc"
2155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156     break 2
2157   fi
2158 done
2159 done
2160
2161 fi
2162 fi
2163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2164 if test -n "$ac_ct_CC"; then
2165   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2166 echo "${ECHO_T}$ac_ct_CC" >&6
2167 else
2168   echo "$as_me:$LINENO: result: no" >&5
2169 echo "${ECHO_T}no" >&6
2170 fi
2171
2172   CC=$ac_ct_CC
2173 else
2174   CC="$ac_cv_prog_CC"
2175 fi
2176
2177 if test -z "$CC"; then
2178   if test -n "$ac_tool_prefix"; then
2179   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2180 set dummy ${ac_tool_prefix}cc; ac_word=$2
2181 echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183 if test "${ac_cv_prog_CC+set}" = set; then
2184   echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186   if test -n "$CC"; then
2187   ac_cv_prog_CC="$CC" # Let the user override the test.
2188 else
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192   IFS=$as_save_IFS
2193   test -z "$as_dir" && as_dir=.
2194   for ac_exec_ext in '' $ac_executable_extensions; do
2195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196     ac_cv_prog_CC="${ac_tool_prefix}cc"
2197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198     break 2
2199   fi
2200 done
2201 done
2202
2203 fi
2204 fi
2205 CC=$ac_cv_prog_CC
2206 if test -n "$CC"; then
2207   echo "$as_me:$LINENO: result: $CC" >&5
2208 echo "${ECHO_T}$CC" >&6
2209 else
2210   echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2212 fi
2213
2214 fi
2215 if test -z "$ac_cv_prog_CC"; then
2216   ac_ct_CC=$CC
2217   # Extract the first word of "cc", so it can be a program name with args.
2218 set dummy cc; ac_word=$2
2219 echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2222   echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224   if test -n "$ac_ct_CC"; then
2225   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2226 else
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2229 do
2230   IFS=$as_save_IFS
2231   test -z "$as_dir" && as_dir=.
2232   for ac_exec_ext in '' $ac_executable_extensions; do
2233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234     ac_cv_prog_ac_ct_CC="cc"
2235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236     break 2
2237   fi
2238 done
2239 done
2240
2241 fi
2242 fi
2243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244 if test -n "$ac_ct_CC"; then
2245   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246 echo "${ECHO_T}$ac_ct_CC" >&6
2247 else
2248   echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6
2250 fi
2251
2252   CC=$ac_ct_CC
2253 else
2254   CC="$ac_cv_prog_CC"
2255 fi
2256
2257 fi
2258 if test -z "$CC"; then
2259   # Extract the first word of "cc", so it can be a program name with args.
2260 set dummy cc; ac_word=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_CC+set}" = set; then
2264   echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266   if test -n "$CC"; then
2267   ac_cv_prog_CC="$CC" # Let the user override the test.
2268 else
2269   ac_prog_rejected=no
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2272 do
2273   IFS=$as_save_IFS
2274   test -z "$as_dir" && as_dir=.
2275   for ac_exec_ext in '' $ac_executable_extensions; do
2276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2278        ac_prog_rejected=yes
2279        continue
2280      fi
2281     ac_cv_prog_CC="cc"
2282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283     break 2
2284   fi
2285 done
2286 done
2287
2288 if test $ac_prog_rejected = yes; then
2289   # We found a bogon in the path, so make sure we never use it.
2290   set dummy $ac_cv_prog_CC
2291   shift
2292   if test $# != 0; then
2293     # We chose a different compiler from the bogus one.
2294     # However, it has the same basename, so the bogon will be chosen
2295     # first if we set CC to just the basename; use the full file name.
2296     shift
2297     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2298   fi
2299 fi
2300 fi
2301 fi
2302 CC=$ac_cv_prog_CC
2303 if test -n "$CC"; then
2304   echo "$as_me:$LINENO: result: $CC" >&5
2305 echo "${ECHO_T}$CC" >&6
2306 else
2307   echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6
2309 fi
2310
2311 fi
2312 if test -z "$CC"; then
2313   if test -n "$ac_tool_prefix"; then
2314   for ac_prog in cl
2315   do
2316     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2318 echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2320 if test "${ac_cv_prog_CC+set}" = set; then
2321   echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323   if test -n "$CC"; then
2324   ac_cv_prog_CC="$CC" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329   IFS=$as_save_IFS
2330   test -z "$as_dir" && as_dir=.
2331   for ac_exec_ext in '' $ac_executable_extensions; do
2332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2333     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335     break 2
2336   fi
2337 done
2338 done
2339
2340 fi
2341 fi
2342 CC=$ac_cv_prog_CC
2343 if test -n "$CC"; then
2344   echo "$as_me:$LINENO: result: $CC" >&5
2345 echo "${ECHO_T}$CC" >&6
2346 else
2347   echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6
2349 fi
2350
2351     test -n "$CC" && break
2352   done
2353 fi
2354 if test -z "$CC"; then
2355   ac_ct_CC=$CC
2356   for ac_prog in cl
2357 do
2358   # Extract the first word of "$ac_prog", so it can be a program name with args.
2359 set dummy $ac_prog; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   if test -n "$ac_ct_CC"; then
2366   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373   for ac_exec_ext in '' $ac_executable_extensions; do
2374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375     ac_cv_prog_ac_ct_CC="$ac_prog"
2376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377     break 2
2378   fi
2379 done
2380 done
2381
2382 fi
2383 fi
2384 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2385 if test -n "$ac_ct_CC"; then
2386   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2387 echo "${ECHO_T}$ac_ct_CC" >&6
2388 else
2389   echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2391 fi
2392
2393   test -n "$ac_ct_CC" && break
2394 done
2395
2396   CC=$ac_ct_CC
2397 fi
2398
2399 fi
2400
2401
2402 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: no acceptable C compiler found in \$PATH
2405 See \`config.log' for more details." >&2;}
2406    { (exit 1); exit 1; }; }
2407
2408 # Provide some information about the compiler.
2409 echo "$as_me:$LINENO:" \
2410      "checking for C compiler version" >&5
2411 ac_compiler=`set X $ac_compile; echo $2`
2412 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2413   (eval $ac_compiler --version </dev/null >&5) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }
2417 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2418   (eval $ac_compiler -v </dev/null >&5) 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }
2422 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2423   (eval $ac_compiler -V </dev/null >&5) 2>&5
2424   ac_status=$?
2425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); }
2427
2428 cat >conftest.$ac_ext <<_ACEOF
2429 #line $LINENO "configure"
2430 /* confdefs.h.  */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h.  */
2435
2436 int
2437 main ()
2438 {
2439
2440   ;
2441   return 0;
2442 }
2443 _ACEOF
2444 ac_clean_files_save=$ac_clean_files
2445 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2446 # Try to create an executable without -o first, disregard a.out.
2447 # It will help us diagnose broken compilers, and finding out an intuition
2448 # of exeext.
2449 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2450 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2451 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2452 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2453   (eval $ac_link_default) 2>&5
2454   ac_status=$?
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); }; then
2457   # Find the output, starting from the most likely.  This scheme is
2458 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2459 # resort.
2460
2461 # Be careful to initialize this variable, since it used to be cached.
2462 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2463 ac_cv_exeext=
2464 # b.out is created by i960 compilers.
2465 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2466 do
2467   test -f "$ac_file" || continue
2468   case $ac_file in
2469     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2470         ;;
2471     conftest.$ac_ext )
2472         # This is the source file.
2473         ;;
2474     [ab].out )
2475         # We found the default executable, but exeext='' is most
2476         # certainly right.
2477         break;;
2478     *.* )
2479         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2480         # FIXME: I believe we export ac_cv_exeext for Libtool,
2481         # but it would be cool to find out if it's true.  Does anybody
2482         # maintain Libtool? --akim.
2483         export ac_cv_exeext
2484         break;;
2485     * )
2486         break;;
2487   esac
2488 done
2489 else
2490   echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492
2493 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2494 See \`config.log' for more details." >&5
2495 echo "$as_me: error: C compiler cannot create executables
2496 See \`config.log' for more details." >&2;}
2497    { (exit 77); exit 77; }; }
2498 fi
2499
2500 ac_exeext=$ac_cv_exeext
2501 echo "$as_me:$LINENO: result: $ac_file" >&5
2502 echo "${ECHO_T}$ac_file" >&6
2503
2504 # Check the compiler produces executables we can run.  If not, either
2505 # the compiler is broken, or we cross compile.
2506 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2507 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2508 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2509 # If not cross compiling, check that we can run a simple program.
2510 if test "$cross_compiling" != yes; then
2511   if { ac_try='./$ac_file'
2512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513   (eval $ac_try) 2>&5
2514   ac_status=$?
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); }; }; then
2517     cross_compiling=no
2518   else
2519     if test "$cross_compiling" = maybe; then
2520         cross_compiling=yes
2521     else
2522         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2523 If you meant to cross compile, use \`--host'.
2524 See \`config.log' for more details." >&5
2525 echo "$as_me: error: cannot run C compiled programs.
2526 If you meant to cross compile, use \`--host'.
2527 See \`config.log' for more details." >&2;}
2528    { (exit 1); exit 1; }; }
2529     fi
2530   fi
2531 fi
2532 echo "$as_me:$LINENO: result: yes" >&5
2533 echo "${ECHO_T}yes" >&6
2534
2535 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2536 ac_clean_files=$ac_clean_files_save
2537 # Check the compiler produces executables we can run.  If not, either
2538 # the compiler is broken, or we cross compile.
2539 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2540 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2541 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2542 echo "${ECHO_T}$cross_compiling" >&6
2543
2544 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2545 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2547   (eval $ac_link) 2>&5
2548   ac_status=$?
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); }; then
2551   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2552 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2553 # work properly (i.e., refer to `conftest.exe'), while it won't with
2554 # `rm'.
2555 for ac_file in conftest.exe conftest conftest.*; do
2556   test -f "$ac_file" || continue
2557   case $ac_file in
2558     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2559     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2560           export ac_cv_exeext
2561           break;;
2562     * ) break;;
2563   esac
2564 done
2565 else
2566   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2569 See \`config.log' for more details." >&2;}
2570    { (exit 1); exit 1; }; }
2571 fi
2572
2573 rm -f conftest$ac_cv_exeext
2574 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2575 echo "${ECHO_T}$ac_cv_exeext" >&6
2576
2577 rm -f conftest.$ac_ext
2578 EXEEXT=$ac_cv_exeext
2579 ac_exeext=$EXEEXT
2580 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2581 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2582 if test "${ac_cv_objext+set}" = set; then
2583   echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585   cat >conftest.$ac_ext <<_ACEOF
2586 #line $LINENO "configure"
2587 /* confdefs.h.  */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h.  */
2592
2593 int
2594 main ()
2595 {
2596
2597   ;
2598   return 0;
2599 }
2600 _ACEOF
2601 rm -f conftest.o conftest.obj
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603   (eval $ac_compile) 2>&5
2604   ac_status=$?
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); }; then
2607   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2608   case $ac_file in
2609     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2610     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2611        break;;
2612   esac
2613 done
2614 else
2615   echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2617
2618 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2619 See \`config.log' for more details." >&5
2620 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2621 See \`config.log' for more details." >&2;}
2622    { (exit 1); exit 1; }; }
2623 fi
2624
2625 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2626 fi
2627 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2628 echo "${ECHO_T}$ac_cv_objext" >&6
2629 OBJEXT=$ac_cv_objext
2630 ac_objext=$OBJEXT
2631 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2632 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2633 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2634   echo $ECHO_N "(cached) $ECHO_C" >&6
2635 else
2636   cat >conftest.$ac_ext <<_ACEOF
2637 #line $LINENO "configure"
2638 /* confdefs.h.  */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h.  */
2643
2644 int
2645 main ()
2646 {
2647 #ifndef __GNUC__
2648        choke me
2649 #endif
2650
2651   ;
2652   return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657   (eval $ac_compile) 2>&5
2658   ac_status=$?
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); } &&
2661          { ac_try='test -s conftest.$ac_objext'
2662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663   (eval $ac_try) 2>&5
2664   ac_status=$?
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); }; }; then
2667   ac_compiler_gnu=yes
2668 else
2669   echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2671
2672 ac_compiler_gnu=no
2673 fi
2674 rm -f conftest.$ac_objext conftest.$ac_ext
2675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2676
2677 fi
2678 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2679 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2680 GCC=`test $ac_compiler_gnu = yes && echo yes`
2681 ac_test_CFLAGS=${CFLAGS+set}
2682 ac_save_CFLAGS=$CFLAGS
2683 CFLAGS="-g"
2684 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2685 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2686 if test "${ac_cv_prog_cc_g+set}" = set; then
2687   echo $ECHO_N "(cached) $ECHO_C" >&6
2688 else
2689   cat >conftest.$ac_ext <<_ACEOF
2690 #line $LINENO "configure"
2691 /* confdefs.h.  */
2692 _ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h.  */
2696
2697 int
2698 main ()
2699 {
2700
2701   ;
2702   return 0;
2703 }
2704 _ACEOF
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707   (eval $ac_compile) 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } &&
2711          { ac_try='test -s conftest.$ac_objext'
2712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713   (eval $ac_try) 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; }; then
2717   ac_cv_prog_cc_g=yes
2718 else
2719   echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722 ac_cv_prog_cc_g=no
2723 fi
2724 rm -f conftest.$ac_objext conftest.$ac_ext
2725 fi
2726 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2727 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2728 if test "$ac_test_CFLAGS" = set; then
2729   CFLAGS=$ac_save_CFLAGS
2730 elif test $ac_cv_prog_cc_g = yes; then
2731   if test "$GCC" = yes; then
2732     CFLAGS="-g -O2"
2733   else
2734     CFLAGS="-g"
2735   fi
2736 else
2737   if test "$GCC" = yes; then
2738     CFLAGS="-O2"
2739   else
2740     CFLAGS=
2741   fi
2742 fi
2743 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2744 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2745 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2746   echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748   ac_cv_prog_cc_stdc=no
2749 ac_save_CC=$CC
2750 cat >conftest.$ac_ext <<_ACEOF
2751 #line $LINENO "configure"
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757 #include <stdarg.h>
2758 #include <stdio.h>
2759 #include <sys/types.h>
2760 #include <sys/stat.h>
2761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2762 struct buf { int x; };
2763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2764 static char *e (p, i)
2765      char **p;
2766      int i;
2767 {
2768   return p[i];
2769 }
2770 static char *f (char * (*g) (char **, int), char **p, ...)
2771 {
2772   char *s;
2773   va_list v;
2774   va_start (v,p);
2775   s = g (p, va_arg (v,int));
2776   va_end (v);
2777   return s;
2778 }
2779 int test (int i, double x);
2780 struct s1 {int (*f) (int a);};
2781 struct s2 {int (*f) (double a);};
2782 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2783 int argc;
2784 char **argv;
2785 int
2786 main ()
2787 {
2788 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2789   ;
2790   return 0;
2791 }
2792 _ACEOF
2793 # Don't try gcc -ansi; that turns off useful extensions and
2794 # breaks some systems' header files.
2795 # AIX                   -qlanglvl=ansi
2796 # Ultrix and OSF/1      -std1
2797 # HP-UX 10.20 and later -Ae
2798 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2799 # SVR4                  -Xc -D__EXTENSIONS__
2800 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2801 do
2802   CC="$ac_save_CC $ac_arg"
2803   rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805   (eval $ac_compile) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); } &&
2809          { ac_try='test -s conftest.$ac_objext'
2810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811   (eval $ac_try) 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; }; then
2815   ac_cv_prog_cc_stdc=$ac_arg
2816 break
2817 else
2818   echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2820
2821 fi
2822 rm -f conftest.$ac_objext
2823 done
2824 rm -f conftest.$ac_ext conftest.$ac_objext
2825 CC=$ac_save_CC
2826
2827 fi
2828
2829 case "x$ac_cv_prog_cc_stdc" in
2830   x|xno)
2831     echo "$as_me:$LINENO: result: none needed" >&5
2832 echo "${ECHO_T}none needed" >&6 ;;
2833   *)
2834     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2835 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2836     CC="$CC $ac_cv_prog_cc_stdc" ;;
2837 esac
2838
2839 # Some people use a C++ compiler to compile C.  Since we use `exit',
2840 # in C++ we need to declare it.  In case someone uses the same compiler
2841 # for both compiling C and C++ we need to have the C++ compiler decide
2842 # the declaration of exit, since it's the most demanding environment.
2843 cat >conftest.$ac_ext <<_ACEOF
2844 #ifndef __cplusplus
2845   choke me
2846 #endif
2847 _ACEOF
2848 rm -f conftest.$ac_objext
2849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850   (eval $ac_compile) 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); } &&
2854          { ac_try='test -s conftest.$ac_objext'
2855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856   (eval $ac_try) 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); }; }; then
2860   for ac_declaration in \
2861    ''\
2862    '#include <stdlib.h>' \
2863    'extern "C" void std::exit (int) throw (); using std::exit;' \
2864    'extern "C" void std::exit (int); using std::exit;' \
2865    'extern "C" void exit (int) throw ();' \
2866    'extern "C" void exit (int);' \
2867    'void exit (int);'
2868 do
2869   cat >conftest.$ac_ext <<_ACEOF
2870 #line $LINENO "configure"
2871 /* confdefs.h.  */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h.  */
2876 #include <stdlib.h>
2877 $ac_declaration
2878 int
2879 main ()
2880 {
2881 exit (42);
2882   ;
2883   return 0;
2884 }
2885 _ACEOF
2886 rm -f conftest.$ac_objext
2887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2888   (eval $ac_compile) 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); } &&
2892          { ac_try='test -s conftest.$ac_objext'
2893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894   (eval $ac_try) 2>&5
2895   ac_status=$?
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); }; }; then
2898   :
2899 else
2900   echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903 continue
2904 fi
2905 rm -f conftest.$ac_objext conftest.$ac_ext
2906   cat >conftest.$ac_ext <<_ACEOF
2907 #line $LINENO "configure"
2908 /* confdefs.h.  */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h.  */
2913 $ac_declaration
2914 int
2915 main ()
2916 {
2917 exit (42);
2918   ;
2919   return 0;
2920 }
2921 _ACEOF
2922 rm -f conftest.$ac_objext
2923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2924   (eval $ac_compile) 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); } &&
2928          { ac_try='test -s conftest.$ac_objext'
2929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930   (eval $ac_try) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; }; then
2934   break
2935 else
2936   echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2938
2939 fi
2940 rm -f conftest.$ac_objext conftest.$ac_ext
2941 done
2942 rm -f conftest*
2943 if test -n "$ac_declaration"; then
2944   echo '#ifdef __cplusplus' >>confdefs.h
2945   echo $ac_declaration      >>confdefs.h
2946   echo '#endif'             >>confdefs.h
2947 fi
2948
2949 else
2950   echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953 fi
2954 rm -f conftest.$ac_objext conftest.$ac_ext
2955 ac_ext=c
2956 ac_cpp='$CPP $CPPFLAGS'
2957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960
2961 depcc="$CC"   am_compiler_list=
2962
2963 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2964 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2965 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2966   echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2969   # We make a subdir and do the tests there.  Otherwise we can end up
2970   # making bogus files that we don't know about and never remove.  For
2971   # instance it was reported that on HP-UX the gcc test will end up
2972   # making a dummy file named `D' -- because `-MD' means `put the output
2973   # in D'.
2974   mkdir conftest.dir
2975   # Copy depcomp to subdir because otherwise we won't find it if we're
2976   # using a relative directory.
2977   cp "$am_depcomp" conftest.dir
2978   cd conftest.dir
2979
2980   am_cv_CC_dependencies_compiler_type=none
2981   if test "$am_compiler_list" = ""; then
2982      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2983   fi
2984   for depmode in $am_compiler_list; do
2985     # We need to recreate these files for each test, as the compiler may
2986     # overwrite some of them when testing with obscure command lines.
2987     # This happens at least with the AIX C compiler.
2988     echo '#include "conftest.h"' > conftest.c
2989     echo 'int i;' > conftest.h
2990     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2991
2992     case $depmode in
2993     nosideeffect)
2994       # after this tag, mechanisms are not by side-effect, so they'll
2995       # only be used when explicitly requested
2996       if test "x$enable_dependency_tracking" = xyes; then
2997         continue
2998       else
2999         break
3000       fi
3001       ;;
3002     none) break ;;
3003     esac
3004     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3005     # mode.  It turns out that the SunPro C++ compiler does not properly
3006     # handle `-M -o', and we need to detect this.
3007     if depmode=$depmode \
3008        source=conftest.c object=conftest.o \
3009        depfile=conftest.Po tmpdepfile=conftest.TPo \
3010        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
3011        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3012        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3013       am_cv_CC_dependencies_compiler_type=$depmode
3014       break
3015     fi
3016   done
3017
3018   cd ..
3019   rm -rf conftest.dir
3020 else
3021   am_cv_CC_dependencies_compiler_type=none
3022 fi
3023
3024 fi
3025 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3026 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3027 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3028
3029
3030
3031 if
3032   test "x$enable_dependency_tracking" != xno \
3033   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3034   am__fastdepCC_TRUE=
3035   am__fastdepCC_FALSE='#'
3036 else
3037   am__fastdepCC_TRUE='#'
3038   am__fastdepCC_FALSE=
3039 fi
3040
3041
3042 # Find the correct PATH separator.  Usually this is `:', but
3043 # DJGPP uses `;' like DOS.
3044 if test "X${PATH_SEPARATOR+set}" != Xset; then
3045   UNAME=${UNAME-`uname 2>/dev/null`}
3046   case X$UNAME in
3047     *-DOS) lt_cv_sys_path_separator=';' ;;
3048     *)     lt_cv_sys_path_separator=':' ;;
3049   esac
3050   PATH_SEPARATOR=$lt_cv_sys_path_separator
3051 fi
3052
3053
3054 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3055 if test "${with_gnu_ld+set}" = set; then
3056   withval="$with_gnu_ld"
3057   test "$withval" = no || with_gnu_ld=yes
3058 else
3059   with_gnu_ld=no
3060 fi;
3061 ac_prog=ld
3062 if test "$GCC" = yes; then
3063   # Check if gcc -print-prog-name=ld gives a path.
3064   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3065 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3066   case $host in
3067   *-*-mingw*)
3068     # gcc leaves a trailing carriage return which upsets mingw
3069     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3070   *)
3071     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3072   esac
3073   case $ac_prog in
3074     # Accept absolute paths.
3075     [\\/]* | [A-Za-z]:[\\/]*)
3076       re_direlt='/[^/][^/]*/\.\./'
3077       # Canonicalize the path of ld
3078       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3079       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3080         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3081       done
3082       test -z "$LD" && LD="$ac_prog"
3083       ;;
3084   "")
3085     # If it fails, then pretend we aren't using GCC.
3086     ac_prog=ld
3087     ;;
3088   *)
3089     # If it is relative, then search for the first ld in PATH.
3090     with_gnu_ld=unknown
3091     ;;
3092   esac
3093 elif test "$with_gnu_ld" = yes; then
3094   echo "$as_me:$LINENO: checking for GNU ld" >&5
3095 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3096 else
3097   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3098 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3099 fi
3100 if test "${lt_cv_path_LD+set}" = set; then
3101   echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103   if test -z "$LD"; then
3104   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3105   for ac_dir in $PATH; do
3106     test -z "$ac_dir" && ac_dir=.
3107     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3108       lt_cv_path_LD="$ac_dir/$ac_prog"
3109       # Check to see if the program is GNU ld.  I'd rather use --version,
3110       # but apparently some GNU ld's only accept -v.
3111       # Break only if it was the GNU/non-GNU ld that we prefer.
3112       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3113         test "$with_gnu_ld" != no && break
3114       else
3115         test "$with_gnu_ld" != yes && break
3116       fi
3117     fi
3118   done
3119   IFS="$ac_save_ifs"
3120 else
3121   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3122 fi
3123 fi
3124
3125 LD="$lt_cv_path_LD"
3126 if test -n "$LD"; then
3127   echo "$as_me:$LINENO: result: $LD" >&5
3128 echo "${ECHO_T}$LD" >&6
3129 else
3130   echo "$as_me:$LINENO: result: no" >&5
3131 echo "${ECHO_T}no" >&6
3132 fi
3133 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3134 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3135    { (exit 1); exit 1; }; }
3136 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3137 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3138 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3139   echo $ECHO_N "(cached) $ECHO_C" >&6
3140 else
3141   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3142 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3143   lt_cv_prog_gnu_ld=yes
3144 else
3145   lt_cv_prog_gnu_ld=no
3146 fi
3147 fi
3148 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3149 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3150 with_gnu_ld=$lt_cv_prog_gnu_ld
3151
3152
3153 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3154 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3155 if test "${lt_cv_ld_reload_flag+set}" = set; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158   lt_cv_ld_reload_flag='-r'
3159 fi
3160 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3161 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3162 reload_flag=$lt_cv_ld_reload_flag
3163 test -n "$reload_flag" && reload_flag=" $reload_flag"
3164
3165 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3166 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3167 if test "${lt_cv_path_NM+set}" = set; then
3168   echo $ECHO_N "(cached) $ECHO_C" >&6
3169 else
3170   if test -n "$NM"; then
3171   # Let the user override the test.
3172   lt_cv_path_NM="$NM"
3173 else
3174   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3175   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3176     test -z "$ac_dir" && ac_dir=.
3177     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3178     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3179       # Check to see if the nm accepts a BSD-compat flag.
3180       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3181       #   nm: unknown option "B" ignored
3182       # Tru64's nm complains that /dev/null is an invalid object file
3183       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3184         lt_cv_path_NM="$tmp_nm -B"
3185         break
3186       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3187         lt_cv_path_NM="$tmp_nm -p"
3188         break
3189       else
3190         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3191         continue # so that we can try to find one that supports BSD flags
3192       fi
3193     fi
3194   done
3195   IFS="$ac_save_ifs"
3196   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3197 fi
3198 fi
3199
3200 NM="$lt_cv_path_NM"
3201 echo "$as_me:$LINENO: result: $NM" >&5
3202 echo "${ECHO_T}$NM" >&6
3203
3204 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3205 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3206 LN_S=$as_ln_s
3207 if test "$LN_S" = "ln -s"; then
3208   echo "$as_me:$LINENO: result: yes" >&5
3209 echo "${ECHO_T}yes" >&6
3210 else
3211   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3212 echo "${ECHO_T}no, using $LN_S" >&6
3213 fi
3214
3215 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3216 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3217 if test "${lt_cv_deplibs_check_method+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220   lt_cv_file_magic_cmd='$MAGIC_CMD'
3221 lt_cv_file_magic_test_file=
3222 lt_cv_deplibs_check_method='unknown'
3223 # Need to set the preceding variable on all platforms that support
3224 # interlibrary dependencies.
3225 # 'none' -- dependencies not supported.
3226 # `unknown' -- same as none, but documents that we really don't know.
3227 # 'pass_all' -- all dependencies passed with no checks.
3228 # 'test_compile' -- check by making test program.
3229 # 'file_magic [[regex]]' -- check by looking for files in library path
3230 # which responds to the $file_magic_cmd with a given egrep regex.
3231 # If you have `file' or equivalent on your system and you're not sure
3232 # whether `pass_all' will *always* work, you probably want this one.
3233
3234 case $host_os in
3235 aix4* | aix5*)
3236   lt_cv_deplibs_check_method=pass_all
3237   ;;
3238
3239 beos*)
3240   lt_cv_deplibs_check_method=pass_all
3241   ;;
3242
3243 bsdi4*)
3244   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3245   lt_cv_file_magic_cmd='/usr/bin/file -L'
3246   lt_cv_file_magic_test_file=/shlib/libc.so
3247   ;;
3248
3249 cygwin* | mingw* | pw32*)
3250   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3251   lt_cv_file_magic_cmd='$OBJDUMP -f'
3252   ;;
3253
3254 darwin* | rhapsody*)
3255   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3256   lt_cv_file_magic_cmd='/usr/bin/file -L'
3257   case "$host_os" in
3258   rhapsody* | darwin1.[012])
3259     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3260     ;;
3261   *) # Darwin 1.3 on
3262     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3263     ;;
3264   esac
3265   ;;
3266
3267 freebsd*)
3268   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3269     case $host_cpu in
3270     i*86 )
3271       # Not sure whether the presence of OpenBSD here was a mistake.
3272       # Let's accept both of them until this is cleared up.
3273       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3274       lt_cv_file_magic_cmd=/usr/bin/file
3275       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3276       ;;
3277     esac
3278   else
3279     lt_cv_deplibs_check_method=pass_all
3280   fi
3281   ;;
3282
3283 gnu*)
3284   lt_cv_deplibs_check_method=pass_all
3285   ;;
3286
3287 hpux10.20*|hpux11*)
3288   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3289   lt_cv_file_magic_cmd=/usr/bin/file
3290   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3291   ;;
3292
3293 irix5* | irix6*)
3294   case $host_os in
3295   irix5*)
3296     # this will be overridden with pass_all, but let us keep it just in case
3297     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3298     ;;
3299   *)
3300     case $LD in
3301     *-32|*"-32 ") libmagic=32-bit;;
3302     *-n32|*"-n32 ") libmagic=N32;;
3303     *-64|*"-64 ") libmagic=64-bit;;
3304     *) libmagic=never-match;;
3305     esac
3306     # this will be overridden with pass_all, but let us keep it just in case
3307     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3308     ;;
3309   esac
3310   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3311   lt_cv_deplibs_check_method=pass_all
3312   ;;
3313
3314 # This must be Linux ELF.
3315 linux-gnu*)
3316   case $host_cpu in
3317   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
3318     lt_cv_deplibs_check_method=pass_all ;;
3319   *)
3320     # glibc up to 2.1.1 does not perform some relocations on ARM
3321     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3322   esac
3323   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3324   ;;
3325
3326 netbsd*)
3327   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3328     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3329   else
3330     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3331   fi
3332   ;;
3333
3334 newos6*)
3335   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3336   lt_cv_file_magic_cmd=/usr/bin/file
3337   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3338   ;;
3339
3340 openbsd*)
3341   lt_cv_file_magic_cmd=/usr/bin/file
3342   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3343   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3344     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3345   else
3346     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3347   fi
3348   ;;
3349
3350 osf3* | osf4* | osf5*)
3351   # this will be overridden with pass_all, but let us keep it just in case
3352   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3353   lt_cv_file_magic_test_file=/shlib/libc.so
3354   lt_cv_deplibs_check_method=pass_all
3355   ;;
3356
3357 sco3.2v5*)
3358   lt_cv_deplibs_check_method=pass_all
3359   ;;
3360
3361 solaris*)
3362   lt_cv_deplibs_check_method=pass_all
3363   lt_cv_file_magic_test_file=/lib/libc.so
3364   ;;
3365
3366 sysv5uw[78]* | sysv4*uw2*)
3367   lt_cv_deplibs_check_method=pass_all
3368   ;;
3369
3370 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3371   case $host_vendor in
3372   motorola)
3373     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]'
3374     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3375     ;;
3376   ncr)
3377     lt_cv_deplibs_check_method=pass_all
3378     ;;
3379   sequent)
3380     lt_cv_file_magic_cmd='/bin/file'
3381     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3382     ;;
3383   sni)
3384     lt_cv_file_magic_cmd='/bin/file'
3385     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3386     lt_cv_file_magic_test_file=/lib/libc.so
3387     ;;
3388   esac
3389   ;;
3390 esac
3391
3392 fi
3393 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3394 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3395 file_magic_cmd=$lt_cv_file_magic_cmd
3396 deplibs_check_method=$lt_cv_deplibs_check_method
3397
3398
3399
3400
3401
3402
3403
3404
3405 # Check for command to grab the raw symbol name followed by C symbol from nm.
3406 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3407 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3408 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3409   echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411
3412 # These are sane defaults that work on at least a few old systems.
3413 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3414
3415 # Character class describing NM global symbol codes.
3416 symcode='[BCDEGRST]'
3417
3418 # Regexp to match symbols that can be accessed directly from C.
3419 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3420
3421 # Transform the above into a raw symbol and a C symbol.
3422 symxfrm='\1 \2\3 \3'
3423
3424 # Transform an extracted symbol line into a proper C declaration
3425 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3426
3427 # Transform an extracted symbol line into symbol name and symbol address
3428 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'"
3429
3430 # Define system-specific variables.
3431 case $host_os in
3432 aix*)
3433   symcode='[BCDT]'
3434   ;;
3435 cygwin* | mingw* | pw32*)
3436   symcode='[ABCDGISTW]'
3437   ;;
3438 hpux*) # Its linker distinguishes data from code symbols
3439   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3440   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'"
3441   ;;
3442 irix*)
3443   symcode='[BCDEGRST]'
3444   ;;
3445 solaris* | sysv5*)
3446   symcode='[BDT]'
3447   ;;
3448 sysv4)
3449   symcode='[DFNSTU]'
3450   ;;
3451 esac
3452
3453 # Handle CRLF in mingw tool chain
3454 opt_cr=
3455 case $host_os in
3456 mingw*)
3457   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3458   ;;
3459 esac
3460
3461 # If we're using GNU nm, then use its standard symbol codes.
3462 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3463   symcode='[ABCDGISTW]'
3464 fi
3465
3466 # Try without a prefix undercore, then with it.
3467 for ac_symprfx in "" "_"; do
3468
3469   # Write the raw and C identifiers.
3470 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3471
3472   # Check to see that the pipe works correctly.
3473   pipe_works=no
3474   rm -f conftest*
3475   cat > conftest.$ac_ext <<EOF
3476 #ifdef __cplusplus
3477 extern "C" {
3478 #endif
3479 char nm_test_var;
3480 void nm_test_func(){}
3481 #ifdef __cplusplus
3482 }
3483 #endif
3484 int main(){nm_test_var='a';nm_test_func();return(0);}
3485 EOF
3486
3487   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3488   (eval $ac_compile) 2>&5
3489   ac_status=$?
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); }; then
3492     # Now try to grab the symbols.
3493     nlist=conftest.nm
3494     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3495   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3496   ac_status=$?
3497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); } && test -s "$nlist"; then
3499       # Try sorting and uniquifying the output.
3500       if sort "$nlist" | uniq > "$nlist"T; then
3501         mv -f "$nlist"T "$nlist"
3502       else
3503         rm -f "$nlist"T
3504       fi
3505
3506       # Make sure that we snagged all the symbols we need.
3507       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3508         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3509           cat <<EOF > conftest.$ac_ext
3510 #ifdef __cplusplus
3511 extern "C" {
3512 #endif
3513
3514 EOF
3515           # Now generate the symbol file.
3516           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3517
3518           cat <<EOF >> conftest.$ac_ext
3519 #if defined (__STDC__) && __STDC__
3520 # define lt_ptr void *
3521 #else
3522 # define lt_ptr char *
3523 # define const
3524 #endif
3525
3526 /* The mapping between symbol names and symbols. */
3527 const struct {
3528   const char *name;
3529   lt_ptr address;
3530 }
3531 lt_preloaded_symbols[] =
3532 {
3533 EOF
3534           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3535           cat <<\EOF >> conftest.$ac_ext
3536   {0, (lt_ptr) 0}
3537 };
3538
3539 #ifdef __cplusplus
3540 }
3541 #endif
3542 EOF
3543           # Now try linking the two files.
3544           mv conftest.$ac_objext conftstm.$ac_objext
3545           save_LIBS="$LIBS"
3546           save_CFLAGS="$CFLAGS"
3547           LIBS="conftstm.$ac_objext"
3548           CFLAGS="$CFLAGS$no_builtin_flag"
3549           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3550   (eval $ac_link) 2>&5
3551   ac_status=$?
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); } && test -s conftest; then
3554             pipe_works=yes
3555           fi
3556           LIBS="$save_LIBS"
3557           CFLAGS="$save_CFLAGS"
3558         else
3559           echo "cannot find nm_test_func in $nlist" >&5
3560         fi
3561       else
3562         echo "cannot find nm_test_var in $nlist" >&5
3563       fi
3564     else
3565       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3566     fi
3567   else
3568     echo "$progname: failed program was:" >&5
3569     cat conftest.$ac_ext >&5
3570   fi
3571   rm -f conftest* conftst*
3572
3573   # Do not use the global_symbol_pipe unless it works.
3574   if test "$pipe_works" = yes; then
3575     break
3576   else
3577     lt_cv_sys_global_symbol_pipe=
3578   fi
3579 done
3580
3581 fi
3582
3583 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3584 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3585   global_symbol_to_cdecl=
3586   global_symbol_to_c_name_address=
3587 else
3588   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3589   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3590 fi
3591 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3592 then
3593   echo "$as_me:$LINENO: result: failed" >&5
3594 echo "${ECHO_T}failed" >&6
3595 else
3596   echo "$as_me:$LINENO: result: ok" >&5
3597 echo "${ECHO_T}ok" >&6
3598 fi
3599
3600 ac_ext=c
3601 ac_cpp='$CPP $CPPFLAGS'
3602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3606 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3607 # On Suns, sometimes $CPP names a directory.
3608 if test -n "$CPP" && test -d "$CPP"; then
3609   CPP=
3610 fi
3611 if test -z "$CPP"; then
3612   if test "${ac_cv_prog_CPP+set}" = set; then
3613   echo $ECHO_N "(cached) $ECHO_C" >&6
3614 else
3615       # Double quotes because CPP needs to be expanded
3616     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3617     do
3618       ac_preproc_ok=false
3619 for ac_c_preproc_warn_flag in '' yes
3620 do
3621   # Use a header file that comes with gcc, so configuring glibc
3622   # with a fresh cross-compiler works.
3623   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3624   # <limits.h> exists even on freestanding compilers.
3625   # On the NeXT, cc -E runs the code through the compiler's parser,
3626   # not just through cpp. "Syntax error" is here to catch this case.
3627   cat >conftest.$ac_ext <<_ACEOF
3628 #line $LINENO "configure"
3629 /* confdefs.h.  */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h.  */
3634 #ifdef __STDC__
3635 # include <limits.h>
3636 #else
3637 # include <assert.h>
3638 #endif
3639                      Syntax error
3640 _ACEOF
3641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3642   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3643   ac_status=$?
3644   grep -v '^ *+' conftest.er1 >conftest.err
3645   rm -f conftest.er1
3646   cat conftest.err >&5
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); } >/dev/null; then
3649   if test -s conftest.err; then
3650     ac_cpp_err=$ac_c_preproc_warn_flag
3651   else
3652     ac_cpp_err=
3653   fi
3654 else
3655   ac_cpp_err=yes
3656 fi
3657 if test -z "$ac_cpp_err"; then
3658   :
3659 else
3660   echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3662
3663   # Broken: fails on valid input.
3664 continue
3665 fi
3666 rm -f conftest.err conftest.$ac_ext
3667
3668   # OK, works on sane cases.  Now check whether non-existent headers
3669   # can be detected and how.
3670   cat >conftest.$ac_ext <<_ACEOF
3671 #line $LINENO "configure"
3672 /* confdefs.h.  */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h.  */
3677 #include <ac_nonexistent.h>
3678 _ACEOF
3679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3680   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3681   ac_status=$?
3682   grep -v '^ *+' conftest.er1 >conftest.err
3683   rm -f conftest.er1
3684   cat conftest.err >&5
3685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686   (exit $ac_status); } >/dev/null; then
3687   if test -s conftest.err; then
3688     ac_cpp_err=$ac_c_preproc_warn_flag
3689   else
3690     ac_cpp_err=
3691   fi
3692 else
3693   ac_cpp_err=yes
3694 fi
3695 if test -z "$ac_cpp_err"; then
3696   # Broken: success on invalid input.
3697 continue
3698 else
3699   echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3701
3702   # Passes both tests.
3703 ac_preproc_ok=:
3704 break
3705 fi
3706 rm -f conftest.err conftest.$ac_ext
3707
3708 done
3709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3710 rm -f conftest.err conftest.$ac_ext
3711 if $ac_preproc_ok; then
3712   break
3713 fi
3714
3715     done
3716     ac_cv_prog_CPP=$CPP
3717
3718 fi
3719   CPP=$ac_cv_prog_CPP
3720 else
3721   ac_cv_prog_CPP=$CPP
3722 fi
3723 echo "$as_me:$LINENO: result: $CPP" >&5
3724 echo "${ECHO_T}$CPP" >&6
3725 ac_preproc_ok=false
3726 for ac_c_preproc_warn_flag in '' yes
3727 do
3728   # Use a header file that comes with gcc, so configuring glibc
3729   # with a fresh cross-compiler works.
3730   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3731   # <limits.h> exists even on freestanding compilers.
3732   # On the NeXT, cc -E runs the code through the compiler's parser,
3733   # not just through cpp. "Syntax error" is here to catch this case.
3734   cat >conftest.$ac_ext <<_ACEOF
3735 #line $LINENO "configure"
3736 /* confdefs.h.  */
3737 _ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h.  */
3741 #ifdef __STDC__
3742 # include <limits.h>
3743 #else
3744 # include <assert.h>
3745 #endif
3746                      Syntax error
3747 _ACEOF
3748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3749   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3750   ac_status=$?
3751   grep -v '^ *+' conftest.er1 >conftest.err
3752   rm -f conftest.er1
3753   cat conftest.err >&5
3754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755   (exit $ac_status); } >/dev/null; then
3756   if test -s conftest.err; then
3757     ac_cpp_err=$ac_c_preproc_warn_flag
3758   else
3759     ac_cpp_err=
3760   fi
3761 else
3762   ac_cpp_err=yes
3763 fi
3764 if test -z "$ac_cpp_err"; then
3765   :
3766 else
3767   echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3769
3770   # Broken: fails on valid input.
3771 continue
3772 fi
3773 rm -f conftest.err conftest.$ac_ext
3774
3775   # OK, works on sane cases.  Now check whether non-existent headers
3776   # can be detected and how.
3777   cat >conftest.$ac_ext <<_ACEOF
3778 #line $LINENO "configure"
3779 /* confdefs.h.  */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h.  */
3784 #include <ac_nonexistent.h>
3785 _ACEOF
3786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3787   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3788   ac_status=$?
3789   grep -v '^ *+' conftest.er1 >conftest.err
3790   rm -f conftest.er1
3791   cat conftest.err >&5
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); } >/dev/null; then
3794   if test -s conftest.err; then
3795     ac_cpp_err=$ac_c_preproc_warn_flag
3796   else
3797     ac_cpp_err=
3798   fi
3799 else
3800   ac_cpp_err=yes
3801 fi
3802 if test -z "$ac_cpp_err"; then
3803   # Broken: success on invalid input.
3804 continue
3805 else
3806   echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3808
3809   # Passes both tests.
3810 ac_preproc_ok=:
3811 break
3812 fi
3813 rm -f conftest.err conftest.$ac_ext
3814
3815 done
3816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3817 rm -f conftest.err conftest.$ac_ext
3818 if $ac_preproc_ok; then
3819   :
3820 else
3821   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3822 See \`config.log' for more details." >&5
3823 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3824 See \`config.log' for more details." >&2;}
3825    { (exit 1); exit 1; }; }
3826 fi
3827
3828 ac_ext=c
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833
3834
3835 echo "$as_me:$LINENO: checking for egrep" >&5
3836 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3837 if test "${ac_cv_prog_egrep+set}" = set; then
3838   echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3841     then ac_cv_prog_egrep='grep -E'
3842     else ac_cv_prog_egrep='egrep'
3843     fi
3844 fi
3845 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3846 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3847  EGREP=$ac_cv_prog_egrep
3848
3849
3850 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3851 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3852 if test "${ac_cv_header_stdc+set}" = set; then
3853   echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855   cat >conftest.$ac_ext <<_ACEOF
3856 #line $LINENO "configure"
3857 /* confdefs.h.  */
3858 _ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h.  */
3862 #include <stdlib.h>
3863 #include <stdarg.h>
3864 #include <string.h>
3865 #include <float.h>
3866
3867 int
3868 main ()
3869 {
3870
3871   ;
3872   return 0;
3873 }
3874 _ACEOF
3875 rm -f conftest.$ac_objext
3876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3877   (eval $ac_compile) 2>&5
3878   ac_status=$?
3879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880   (exit $ac_status); } &&
3881          { ac_try='test -s conftest.$ac_objext'
3882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883   (eval $ac_try) 2>&5
3884   ac_status=$?
3885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886   (exit $ac_status); }; }; then
3887   ac_cv_header_stdc=yes
3888 else
3889   echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892 ac_cv_header_stdc=no
3893 fi
3894 rm -f conftest.$ac_objext conftest.$ac_ext
3895
3896 if test $ac_cv_header_stdc = yes; then
3897   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3898   cat >conftest.$ac_ext <<_ACEOF
3899 #line $LINENO "configure"
3900 /* confdefs.h.  */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h.  */
3905 #include <string.h>
3906
3907 _ACEOF
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909   $EGREP "memchr" >/dev/null 2>&1; then
3910   :
3911 else
3912   ac_cv_header_stdc=no
3913 fi
3914 rm -f conftest*
3915
3916 fi
3917
3918 if test $ac_cv_header_stdc = yes; then
3919   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3920   cat >conftest.$ac_ext <<_ACEOF
3921 #line $LINENO "configure"
3922 /* confdefs.h.  */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h.  */
3927 #include <stdlib.h>
3928
3929 _ACEOF
3930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3931   $EGREP "free" >/dev/null 2>&1; then
3932   :
3933 else
3934   ac_cv_header_stdc=no
3935 fi
3936 rm -f conftest*
3937
3938 fi
3939
3940 if test $ac_cv_header_stdc = yes; then
3941   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3942   if test "$cross_compiling" = yes; then
3943   :
3944 else
3945   cat >conftest.$ac_ext <<_ACEOF
3946 #line $LINENO "configure"
3947 /* confdefs.h.  */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h.  */
3952 #include <ctype.h>
3953 #if ((' ' & 0x0FF) == 0x020)
3954 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3955 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3956 #else
3957 # define ISLOWER(c) \
3958                    (('a' <= (c) && (c) <= 'i') \
3959                      || ('j' <= (c) && (c) <= 'r') \
3960                      || ('s' <= (c) && (c) <= 'z'))
3961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3962 #endif
3963
3964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3965 int
3966 main ()
3967 {
3968   int i;
3969   for (i = 0; i < 256; i++)
3970     if (XOR (islower (i), ISLOWER (i))
3971         || toupper (i) != TOUPPER (i))
3972       exit(2);
3973   exit (0);
3974 }
3975 _ACEOF
3976 rm -f conftest$ac_exeext
3977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3978   (eval $ac_link) 2>&5
3979   ac_status=$?
3980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983   (eval $ac_try) 2>&5
3984   ac_status=$?
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); }; }; then
3987   :
3988 else
3989   echo "$as_me: program exited with status $ac_status" >&5
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3992
3993 ( exit $ac_status )
3994 ac_cv_header_stdc=no
3995 fi
3996 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3997 fi
3998 fi
3999 fi
4000 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4001 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4002 if test $ac_cv_header_stdc = yes; then
4003
4004 cat >>confdefs.h <<\_ACEOF
4005 #define STDC_HEADERS 1
4006 _ACEOF
4007
4008 fi
4009
4010 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4021                   inttypes.h stdint.h unistd.h
4022 do
4023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4024 echo "$as_me:$LINENO: checking for $ac_header" >&5
4025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029   cat >conftest.$ac_ext <<_ACEOF
4030 #line $LINENO "configure"
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036 $ac_includes_default
4037
4038 #include <$ac_header>
4039 _ACEOF
4040 rm -f conftest.$ac_objext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042   (eval $ac_compile) 2>&5
4043   ac_status=$?
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); } &&
4046          { ac_try='test -s conftest.$ac_objext'
4047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048   (eval $ac_try) 2>&5
4049   ac_status=$?
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); }; }; then
4052   eval "$as_ac_Header=yes"
4053 else
4054   echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4056
4057 eval "$as_ac_Header=no"
4058 fi
4059 rm -f conftest.$ac_objext conftest.$ac_ext
4060 fi
4061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4064   cat >>confdefs.h <<_ACEOF
4065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4066 _ACEOF
4067
4068 fi
4069
4070 done
4071
4072
4073
4074 for ac_header in dlfcn.h
4075 do
4076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4078   echo "$as_me:$LINENO: checking for $ac_header" >&5
4079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 fi
4083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4085 else
4086   # Is the header compilable?
4087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4089 cat >conftest.$ac_ext <<_ACEOF
4090 #line $LINENO "configure"
4091 /* confdefs.h.  */
4092 _ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h.  */
4096 $ac_includes_default
4097 #include <$ac_header>
4098 _ACEOF
4099 rm -f conftest.$ac_objext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101   (eval $ac_compile) 2>&5
4102   ac_status=$?
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); } &&
4105          { ac_try='test -s conftest.$ac_objext'
4106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107   (eval $ac_try) 2>&5
4108   ac_status=$?
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); }; }; then
4111   ac_header_compiler=yes
4112 else
4113   echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4115
4116 ac_header_compiler=no
4117 fi
4118 rm -f conftest.$ac_objext conftest.$ac_ext
4119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4120 echo "${ECHO_T}$ac_header_compiler" >&6
4121
4122 # Is the header present?
4123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4125 cat >conftest.$ac_ext <<_ACEOF
4126 #line $LINENO "configure"
4127 /* confdefs.h.  */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h.  */
4132 #include <$ac_header>
4133 _ACEOF
4134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4136   ac_status=$?
4137   grep -v '^ *+' conftest.er1 >conftest.err
4138   rm -f conftest.er1
4139   cat conftest.err >&5
4140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); } >/dev/null; then
4142   if test -s conftest.err; then
4143     ac_cpp_err=$ac_c_preproc_warn_flag
4144   else
4145     ac_cpp_err=
4146   fi
4147 else
4148   ac_cpp_err=yes
4149 fi
4150 if test -z "$ac_cpp_err"; then
4151   ac_header_preproc=yes
4152 else
4153   echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4155
4156   ac_header_preproc=no
4157 fi
4158 rm -f conftest.err conftest.$ac_ext
4159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4160 echo "${ECHO_T}$ac_header_preproc" >&6
4161
4162 # So?  What about this header?
4163 case $ac_header_compiler:$ac_header_preproc in
4164   yes:no )
4165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4169     (
4170       cat <<\_ASBOX
4171 ## ------------------------------------ ##
4172 ## Report this to bug-autoconf@gnu.org. ##
4173 ## ------------------------------------ ##
4174 _ASBOX
4175     ) |
4176       sed "s/^/$as_me: WARNING:     /" >&2
4177     ;;
4178   no:yes )
4179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4181     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4185     (
4186       cat <<\_ASBOX
4187 ## ------------------------------------ ##
4188 ## Report this to bug-autoconf@gnu.org. ##
4189 ## ------------------------------------ ##
4190 _ASBOX
4191     ) |
4192       sed "s/^/$as_me: WARNING:     /" >&2
4193     ;;
4194 esac
4195 echo "$as_me:$LINENO: checking for $ac_header" >&5
4196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4198   echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200   eval "$as_ac_Header=$ac_header_preproc"
4201 fi
4202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4204
4205 fi
4206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4207   cat >>confdefs.h <<_ACEOF
4208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4209 _ACEOF
4210
4211 fi
4212
4213 done
4214
4215
4216
4217
4218
4219 # Only perform the check for file, if the check method requires it
4220 case $deplibs_check_method in
4221 file_magic*)
4222   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4223     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4224 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4225 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4226   echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228   case $MAGIC_CMD in
4229   /*)
4230   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4231   ;;
4232   ?:/*)
4233   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4234   ;;
4235   *)
4236   ac_save_MAGIC_CMD="$MAGIC_CMD"
4237   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4238   ac_dummy="/usr/bin:$PATH"
4239   for ac_dir in $ac_dummy; do
4240     test -z "$ac_dir" && ac_dir=.
4241     if test -f $ac_dir/${ac_tool_prefix}file; then
4242       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4243       if test -n "$file_magic_test_file"; then
4244         case $deplibs_check_method in
4245         "file_magic "*)
4246           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4247           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4248           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4249             egrep "$file_magic_regex" > /dev/null; then
4250             :
4251           else
4252             cat <<EOF 1>&2
4253
4254 *** Warning: the command libtool uses to detect shared libraries,
4255 *** $file_magic_cmd, produces output that libtool cannot recognize.
4256 *** The result is that libtool may fail to recognize shared libraries
4257 *** as such.  This will affect the creation of libtool libraries that
4258 *** depend on shared libraries, but programs linked with such libtool
4259 *** libraries will work regardless of this problem.  Nevertheless, you
4260 *** may want to report the problem to your system manager and/or to
4261 *** bug-libtool@gnu.org
4262
4263 EOF
4264           fi ;;
4265         esac
4266       fi
4267       break
4268     fi
4269   done
4270   IFS="$ac_save_ifs"
4271   MAGIC_CMD="$ac_save_MAGIC_CMD"
4272   ;;
4273 esac
4274 fi
4275
4276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4277 if test -n "$MAGIC_CMD"; then
4278   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4279 echo "${ECHO_T}$MAGIC_CMD" >&6
4280 else
4281   echo "$as_me:$LINENO: result: no" >&5
4282 echo "${ECHO_T}no" >&6
4283 fi
4284
4285 if test -z "$lt_cv_path_MAGIC_CMD"; then
4286   if test -n "$ac_tool_prefix"; then
4287     echo "$as_me:$LINENO: checking for file" >&5
4288 echo $ECHO_N "checking for file... $ECHO_C" >&6
4289 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4290   echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292   case $MAGIC_CMD in
4293   /*)
4294   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4295   ;;
4296   ?:/*)
4297   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4298   ;;
4299   *)
4300   ac_save_MAGIC_CMD="$MAGIC_CMD"
4301   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4302   ac_dummy="/usr/bin:$PATH"
4303   for ac_dir in $ac_dummy; do
4304     test -z "$ac_dir" && ac_dir=.
4305     if test -f $ac_dir/file; then
4306       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4307       if test -n "$file_magic_test_file"; then
4308         case $deplibs_check_method in
4309         "file_magic "*)
4310           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4311           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4312           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4313             egrep "$file_magic_regex" > /dev/null; then
4314             :
4315           else
4316             cat <<EOF 1>&2
4317
4318 *** Warning: the command libtool uses to detect shared libraries,
4319 *** $file_magic_cmd, produces output that libtool cannot recognize.
4320 *** The result is that libtool may fail to recognize shared libraries
4321 *** as such.  This will affect the creation of libtool libraries that
4322 *** depend on shared libraries, but programs linked with such libtool
4323 *** libraries will work regardless of this problem.  Nevertheless, you
4324 *** may want to report the problem to your system manager and/or to
4325 *** bug-libtool@gnu.org
4326
4327 EOF
4328           fi ;;
4329         esac
4330       fi
4331       break
4332     fi
4333   done
4334   IFS="$ac_save_ifs"
4335   MAGIC_CMD="$ac_save_MAGIC_CMD"
4336   ;;
4337 esac
4338 fi
4339
4340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4341 if test -n "$MAGIC_CMD"; then
4342   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4343 echo "${ECHO_T}$MAGIC_CMD" >&6
4344 else
4345   echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6
4347 fi
4348
4349   else
4350     MAGIC_CMD=:
4351   fi
4352 fi
4353
4354   fi
4355   ;;
4356 esac
4357
4358 if test -n "$ac_tool_prefix"; then
4359   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4361 echo "$as_me:$LINENO: checking for $ac_word" >&5
4362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4363 if test "${ac_cv_prog_RANLIB+set}" = set; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366   if test -n "$RANLIB"; then
4367   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372   IFS=$as_save_IFS
4373   test -z "$as_dir" && as_dir=.
4374   for ac_exec_ext in '' $ac_executable_extensions; do
4375   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378     break 2
4379   fi
4380 done
4381 done
4382
4383 fi
4384 fi
4385 RANLIB=$ac_cv_prog_RANLIB
4386 if test -n "$RANLIB"; then
4387   echo "$as_me:$LINENO: result: $RANLIB" >&5
4388 echo "${ECHO_T}$RANLIB" >&6
4389 else
4390   echo "$as_me:$LINENO: result: no" >&5
4391 echo "${ECHO_T}no" >&6
4392 fi
4393
4394 fi
4395 if test -z "$ac_cv_prog_RANLIB"; then
4396   ac_ct_RANLIB=$RANLIB
4397   # Extract the first word of "ranlib", so it can be a program name with args.
4398 set dummy ranlib; ac_word=$2
4399 echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4401 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4402   echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404   if test -n "$ac_ct_RANLIB"; then
4405   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4409 do
4410   IFS=$as_save_IFS
4411   test -z "$as_dir" && as_dir=.
4412   for ac_exec_ext in '' $ac_executable_extensions; do
4413   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414     ac_cv_prog_ac_ct_RANLIB="ranlib"
4415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416     break 2
4417   fi
4418 done
4419 done
4420
4421   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4422 fi
4423 fi
4424 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4425 if test -n "$ac_ct_RANLIB"; then
4426   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4427 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4428 else
4429   echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6
4431 fi
4432
4433   RANLIB=$ac_ct_RANLIB
4434 else
4435   RANLIB="$ac_cv_prog_RANLIB"
4436 fi
4437
4438 if test -n "$ac_tool_prefix"; then
4439   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4440 set dummy ${ac_tool_prefix}strip; ac_word=$2
4441 echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4443 if test "${ac_cv_prog_STRIP+set}" = set; then
4444   echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446   if test -n "$STRIP"; then
4447   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4451 do
4452   IFS=$as_save_IFS
4453   test -z "$as_dir" && as_dir=.
4454   for ac_exec_ext in '' $ac_executable_extensions; do
4455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4456     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458     break 2
4459   fi
4460 done
4461 done
4462
4463 fi
4464 fi
4465 STRIP=$ac_cv_prog_STRIP
4466 if test -n "$STRIP"; then
4467   echo "$as_me:$LINENO: result: $STRIP" >&5
4468 echo "${ECHO_T}$STRIP" >&6
4469 else
4470   echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6
4472 fi
4473
4474 fi
4475 if test -z "$ac_cv_prog_STRIP"; then
4476   ac_ct_STRIP=$STRIP
4477   # Extract the first word of "strip", so it can be a program name with args.
4478 set dummy strip; ac_word=$2
4479 echo "$as_me:$LINENO: checking for $ac_word" >&5
4480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4481 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4482   echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484   if test -n "$ac_ct_STRIP"; then
4485   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4486 else
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH
4489 do
4490   IFS=$as_save_IFS
4491   test -z "$as_dir" && as_dir=.
4492   for ac_exec_ext in '' $ac_executable_extensions; do
4493   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4494     ac_cv_prog_ac_ct_STRIP="strip"
4495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496     break 2
4497   fi
4498 done
4499 done
4500
4501   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4502 fi
4503 fi
4504 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4505 if test -n "$ac_ct_STRIP"; then
4506   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4507 echo "${ECHO_T}$ac_ct_STRIP" >&6
4508 else
4509   echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6
4511 fi
4512
4513   STRIP=$ac_ct_STRIP
4514 else
4515   STRIP="$ac_cv_prog_STRIP"
4516 fi
4517
4518
4519 enable_dlopen=no
4520 enable_win32_dll=no
4521
4522 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4523 if test "${enable_libtool_lock+set}" = set; then
4524   enableval="$enable_libtool_lock"
4525
4526 fi;
4527 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4528
4529 # Some flags need to be propagated to the compiler or linker for good
4530 # libtool support.
4531 case $host in
4532 *-*-irix6*)
4533   # Find out which ABI we are using.
4534   echo '#line 4534 "configure"' > conftest.$ac_ext
4535   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4536   (eval $ac_compile) 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }; then
4540     case `/usr/bin/file conftest.$ac_objext` in
4541     *32-bit*)
4542       LD="${LD-ld} -32"
4543       ;;
4544     *N32*)
4545       LD="${LD-ld} -n32"
4546       ;;
4547     *64-bit*)
4548       LD="${LD-ld} -64"
4549       ;;
4550     esac
4551   fi
4552   rm -rf conftest*
4553   ;;
4554
4555 *-*-sco3.2v5*)
4556   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4557   SAVE_CFLAGS="$CFLAGS"
4558   CFLAGS="$CFLAGS -belf"
4559   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4560 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4561 if test "${lt_cv_cc_needs_belf+set}" = set; then
4562   echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564
4565
4566      ac_ext=c
4567 ac_cpp='$CPP $CPPFLAGS'
4568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4571
4572      cat >conftest.$ac_ext <<_ACEOF
4573 #line $LINENO "configure"
4574 /* confdefs.h.  */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h.  */
4579
4580 int
4581 main ()
4582 {
4583
4584   ;
4585   return 0;
4586 }
4587 _ACEOF
4588 rm -f conftest.$ac_objext conftest$ac_exeext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4590   (eval $ac_link) 2>&5
4591   ac_status=$?
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); } &&
4594          { ac_try='test -s conftest$ac_exeext'
4595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596   (eval $ac_try) 2>&5
4597   ac_status=$?
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); }; }; then
4600   lt_cv_cc_needs_belf=yes
4601 else
4602   echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 lt_cv_cc_needs_belf=no
4606 fi
4607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4608      ac_ext=c
4609 ac_cpp='$CPP $CPPFLAGS'
4610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4613
4614 fi
4615 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4616 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4617   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4618     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4619     CFLAGS="$SAVE_CFLAGS"
4620   fi
4621   ;;
4622
4623
4624 esac
4625
4626 # Sed substitution that helps us do robust quoting.  It backslashifies
4627 # metacharacters that are still active within double-quoted strings.
4628 Xsed='sed -e s/^X//'
4629 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4630
4631 # Same as above, but do not quote variable references.
4632 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4633
4634 # Sed substitution to delay expansion of an escaped shell variable in a
4635 # double_quote_subst'ed string.
4636 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4637
4638 # Constants:
4639 rm="rm -f"
4640
4641 # Global variables:
4642 default_ofile=libtool
4643 can_build_shared=yes
4644
4645 # All known linkers require a `.a' archive for static linking (except M$VC,
4646 # which needs '.lib').
4647 libext=a
4648 ltmain="$ac_aux_dir/ltmain.sh"
4649 ofile="$default_ofile"
4650 with_gnu_ld="$lt_cv_prog_gnu_ld"
4651 need_locks="$enable_libtool_lock"
4652
4653 old_CC="$CC"
4654 old_CFLAGS="$CFLAGS"
4655
4656 # Set sane defaults for various variables
4657 test -z "$AR" && AR=ar
4658 test -z "$AR_FLAGS" && AR_FLAGS=cru
4659 test -z "$AS" && AS=as
4660 test -z "$CC" && CC=cc
4661 test -z "$DLLTOOL" && DLLTOOL=dlltool
4662 test -z "$LD" && LD=ld
4663 test -z "$LN_S" && LN_S="ln -s"
4664 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4665 test -z "$NM" && NM=nm
4666 test -z "$OBJDUMP" && OBJDUMP=objdump
4667 test -z "$RANLIB" && RANLIB=:
4668 test -z "$STRIP" && STRIP=:
4669 test -z "$ac_objext" && ac_objext=o
4670
4671 if test x"$host" != x"$build"; then
4672   ac_tool_prefix=${host_alias}-
4673 else
4674   ac_tool_prefix=
4675 fi
4676
4677 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4678 case $host_os in
4679 linux-gnu*) ;;
4680 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4681 esac
4682
4683 case $host_os in
4684 aix3*)
4685   # AIX sometimes has problems with the GCC collect2 program.  For some
4686   # reason, if we set the COLLECT_NAMES environment variable, the problems
4687   # vanish in a puff of smoke.
4688   if test "X${COLLECT_NAMES+set}" != Xset; then
4689     COLLECT_NAMES=
4690     export COLLECT_NAMES
4691   fi
4692   ;;
4693 esac
4694
4695 # Determine commands to create old-style static archives.
4696 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4697 old_postinstall_cmds='chmod 644 $oldlib'
4698 old_postuninstall_cmds=
4699
4700 if test -n "$RANLIB"; then
4701   case $host_os in
4702   openbsd*)
4703     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4704     ;;
4705   *)
4706     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4707     ;;
4708   esac
4709   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4710 fi
4711
4712 # Allow CC to be a program name with arguments.
4713 set dummy $CC
4714 compiler="$2"
4715
4716 echo "$as_me:$LINENO: checking for objdir" >&5
4717 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4718 rm -f .libs 2>/dev/null
4719 mkdir .libs 2>/dev/null
4720 if test -d .libs; then
4721   objdir=.libs
4722 else
4723   # MS-DOS does not allow filenames that begin with a dot.
4724   objdir=_libs
4725 fi
4726 rmdir .libs 2>/dev/null
4727 echo "$as_me:$LINENO: result: $objdir" >&5
4728 echo "${ECHO_T}$objdir" >&6
4729
4730
4731
4732 # Check whether --with-pic or --without-pic was given.
4733 if test "${with_pic+set}" = set; then
4734   withval="$with_pic"
4735   pic_mode="$withval"
4736 else
4737   pic_mode=default
4738 fi;
4739 test -z "$pic_mode" && pic_mode=default
4740
4741 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4742 # in isolation, and that seeing it set (from the cache) indicates that
4743 # the associated values are set (in the cache) correctly too.
4744 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4745 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4746 if test "${lt_cv_prog_cc_pic+set}" = set; then
4747   echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749    lt_cv_prog_cc_pic=
4750   lt_cv_prog_cc_shlib=
4751   lt_cv_prog_cc_wl=
4752   lt_cv_prog_cc_static=
4753   lt_cv_prog_cc_no_builtin=
4754   lt_cv_prog_cc_can_build_shared=$can_build_shared
4755
4756   if test "$GCC" = yes; then
4757     lt_cv_prog_cc_wl='-Wl,'
4758     lt_cv_prog_cc_static='-static'
4759
4760     case $host_os in
4761     aix*)
4762       # Below there is a dirty hack to force normal static linking with -ldl
4763       # The problem is because libdl dynamically linked with both libc and
4764       # libC (AIX C++ library), which obviously doesn't included in libraries
4765       # list by gcc. This cause undefined symbols with -static flags.
4766       # This hack allows C programs to be linked with "-static -ldl", but
4767       # not sure about C++ programs.
4768       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4769       ;;
4770     amigaos*)
4771       # FIXME: we need at least 68020 code to build shared libraries, but
4772       # adding the `-m68020' flag to GCC prevents building anything better,
4773       # like `-m68040'.
4774       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4775       ;;
4776     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4777       # PIC is the default for these OSes.
4778       ;;
4779     darwin* | rhapsody*)
4780       # PIC is the default on this platform
4781       # Common symbols not allowed in MH_DYLIB files
4782       lt_cv_prog_cc_pic='-fno-common'
4783       ;;
4784     cygwin* | mingw* | pw32* | os2*)
4785       # This hack is so that the source file can tell whether it is being
4786       # built for inclusion in a dll (and should export symbols for example).
4787       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4788       ;;
4789     sysv4*MP*)
4790       if test -d /usr/nec; then
4791          lt_cv_prog_cc_pic=-Kconform_pic
4792       fi
4793       ;;
4794     *)
4795       lt_cv_prog_cc_pic='-fPIC'
4796       ;;
4797     esac
4798   else
4799     # PORTME Check for PIC flags for the system compiler.
4800     case $host_os in
4801     aix3* | aix4* | aix5*)
4802       lt_cv_prog_cc_wl='-Wl,'
4803       # All AIX code is PIC.
4804       if test "$host_cpu" = ia64; then
4805         # AIX 5 now supports IA64 processor
4806         lt_cv_prog_cc_static='-Bstatic'
4807       else
4808         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4809       fi
4810       ;;
4811
4812     hpux9* | hpux10* | hpux11*)
4813       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4814       lt_cv_prog_cc_wl='-Wl,'
4815       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4816       lt_cv_prog_cc_pic='+Z'
4817       ;;
4818
4819     irix5* | irix6*)
4820       lt_cv_prog_cc_wl='-Wl,'
4821       lt_cv_prog_cc_static='-non_shared'
4822       # PIC (with -KPIC) is the default.
4823       ;;
4824
4825     cygwin* | mingw* | pw32* | os2*)
4826       # This hack is so that the source file can tell whether it is being
4827       # built for inclusion in a dll (and should export symbols for example).
4828       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4829       ;;
4830
4831     newsos6)
4832       lt_cv_prog_cc_pic='-KPIC'
4833       lt_cv_prog_cc_static='-Bstatic'
4834       ;;
4835
4836     osf3* | osf4* | osf5*)
4837       # All OSF/1 code is PIC.
4838       lt_cv_prog_cc_wl='-Wl,'
4839       lt_cv_prog_cc_static='-non_shared'
4840       ;;
4841
4842     sco3.2v5*)
4843       lt_cv_prog_cc_pic='-Kpic'
4844       lt_cv_prog_cc_static='-dn'
4845       lt_cv_prog_cc_shlib='-belf'
4846       ;;
4847
4848     solaris*)
4849       lt_cv_prog_cc_pic='-KPIC'
4850       lt_cv_prog_cc_static='-Bstatic'
4851       lt_cv_prog_cc_wl='-Wl,'
4852       ;;
4853
4854     sunos4*)
4855       lt_cv_prog_cc_pic='-PIC'
4856       lt_cv_prog_cc_static='-Bstatic'
4857       lt_cv_prog_cc_wl='-Qoption ld '
4858       ;;
4859
4860     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4861       lt_cv_prog_cc_pic='-KPIC'
4862       lt_cv_prog_cc_static='-Bstatic'
4863       if test "x$host_vendor" = xsni; then
4864         lt_cv_prog_cc_wl='-LD'
4865       else
4866         lt_cv_prog_cc_wl='-Wl,'
4867       fi
4868       ;;
4869
4870     uts4*)
4871       lt_cv_prog_cc_pic='-pic'
4872       lt_cv_prog_cc_static='-Bstatic'
4873       ;;
4874
4875     sysv4*MP*)
4876       if test -d /usr/nec ;then
4877         lt_cv_prog_cc_pic='-Kconform_pic'
4878         lt_cv_prog_cc_static='-Bstatic'
4879       fi
4880       ;;
4881
4882     *)
4883       lt_cv_prog_cc_can_build_shared=no
4884       ;;
4885     esac
4886   fi
4887
4888 fi
4889
4890 if test -z "$lt_cv_prog_cc_pic"; then
4891   echo "$as_me:$LINENO: result: none" >&5
4892 echo "${ECHO_T}none" >&6
4893 else
4894   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4895 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4896
4897   # Check to make sure the pic_flag actually works.
4898   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4899 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4900   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903       save_CFLAGS="$CFLAGS"
4904     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4905     cat >conftest.$ac_ext <<_ACEOF
4906 #line $LINENO "configure"
4907 /* confdefs.h.  */
4908 _ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h.  */
4912
4913 int
4914 main ()
4915 {
4916
4917   ;
4918   return 0;
4919 }
4920 _ACEOF
4921 rm -f conftest.$ac_objext
4922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923   (eval $ac_compile) 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); } &&
4927          { ac_try='test -s conftest.$ac_objext'
4928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929   (eval $ac_try) 2>&5
4930   ac_status=$?
4931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); }; }; then
4933         case $host_os in
4934       hpux9* | hpux10* | hpux11*)
4935         # On HP-UX, both CC and GCC only warn that PIC is supported... then
4936         # they create non-PIC objects.  So, if there were any warnings, we
4937         # assume that PIC is not supported.
4938         if test -s conftest.err; then
4939           lt_cv_prog_cc_pic_works=no
4940         else
4941           lt_cv_prog_cc_pic_works=yes
4942         fi
4943         ;;
4944       *)
4945         lt_cv_prog_cc_pic_works=yes
4946         ;;
4947       esac
4948
4949 else
4950   echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4952
4953       lt_cv_prog_cc_pic_works=no
4954
4955 fi
4956 rm -f conftest.$ac_objext conftest.$ac_ext
4957     CFLAGS="$save_CFLAGS"
4958
4959 fi
4960
4961
4962   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4963     lt_cv_prog_cc_pic=
4964     lt_cv_prog_cc_can_build_shared=no
4965   else
4966     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4967   fi
4968
4969   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4970 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4971 fi
4972
4973 # Check for any special shared library compilation flags.
4974 if test -n "$lt_cv_prog_cc_shlib"; then
4975   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4976 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4977   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4978   else
4979    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4980 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4981     lt_cv_prog_cc_can_build_shared=no
4982   fi
4983 fi
4984
4985 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4986 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4987 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990     lt_cv_prog_cc_static_works=no
4991   save_LDFLAGS="$LDFLAGS"
4992   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4993   cat >conftest.$ac_ext <<_ACEOF
4994 #line $LINENO "configure"
4995 /* confdefs.h.  */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h.  */
5000
5001 int
5002 main ()
5003 {
5004
5005   ;
5006   return 0;
5007 }
5008 _ACEOF
5009 rm -f conftest.$ac_objext conftest$ac_exeext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5011   (eval $ac_link) 2>&5
5012   ac_status=$?
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } &&
5015          { ac_try='test -s conftest$ac_exeext'
5016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017   (eval $ac_try) 2>&5
5018   ac_status=$?
5019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020   (exit $ac_status); }; }; then
5021   lt_cv_prog_cc_static_works=yes
5022 else
5023   echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026 fi
5027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5028   LDFLAGS="$save_LDFLAGS"
5029
5030 fi
5031
5032
5033 # Belt *and* braces to stop my trousers falling down:
5034 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5035 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5036 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5037
5038 pic_flag="$lt_cv_prog_cc_pic"
5039 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5040 wl="$lt_cv_prog_cc_wl"
5041 link_static_flag="$lt_cv_prog_cc_static"
5042 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5043 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5044
5045
5046 # Check to see if options -o and -c are simultaneously supported by compiler
5047 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5048 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5049 if test "${lt_cv_compiler_c_o+set}" = set; then
5050   echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052
5053 $rm -r conftest 2>/dev/null
5054 mkdir conftest
5055 cd conftest
5056 echo "int some_variable = 0;" > conftest.$ac_ext
5057 mkdir out
5058 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5059 # that will create temporary files in the current directory regardless of
5060 # the output directory.  Thus, making CWD read-only will cause this test
5061 # to fail, enabling locking or at least warning the user not to do parallel
5062 # builds.
5063 chmod -w .
5064 save_CFLAGS="$CFLAGS"
5065 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5066 compiler_c_o=no
5067 if { (eval echo configure:5067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5068   # The compiler can only warn and ignore the option if not recognized
5069   # So say no if there are warnings
5070   if test -s out/conftest.err; then
5071     lt_cv_compiler_c_o=no
5072   else
5073     lt_cv_compiler_c_o=yes
5074   fi
5075 else
5076   # Append any errors to the config.log.
5077   cat out/conftest.err 1>&5
5078   lt_cv_compiler_c_o=no
5079 fi
5080 CFLAGS="$save_CFLAGS"
5081 chmod u+w .
5082 $rm conftest* out/*
5083 rmdir out
5084 cd ..
5085 rmdir conftest
5086 $rm -r conftest 2>/dev/null
5087
5088 fi
5089
5090 compiler_c_o=$lt_cv_compiler_c_o
5091 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5092 echo "${ECHO_T}$compiler_c_o" >&6
5093
5094 if test x"$compiler_c_o" = x"yes"; then
5095   # Check to see if we can write to a .lo
5096   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5097 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5098   if test "${lt_cv_compiler_o_lo+set}" = set; then
5099   echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101
5102   lt_cv_compiler_o_lo=no
5103   save_CFLAGS="$CFLAGS"
5104   CFLAGS="$CFLAGS -c -o conftest.lo"
5105   save_objext="$ac_objext"
5106   ac_objext=lo
5107   cat >conftest.$ac_ext <<_ACEOF
5108 #line $LINENO "configure"
5109 /* confdefs.h.  */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h.  */
5114
5115 int
5116 main ()
5117 {
5118 int some_variable = 0;
5119   ;
5120   return 0;
5121 }
5122 _ACEOF
5123 rm -f conftest.$ac_objext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5125   (eval $ac_compile) 2>&5
5126   ac_status=$?
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); } &&
5129          { ac_try='test -s conftest.$ac_objext'
5130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131   (eval $ac_try) 2>&5
5132   ac_status=$?
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); }; }; then
5135       # The compiler can only warn and ignore the option if not recognized
5136     # So say no if there are warnings
5137     if test -s conftest.err; then
5138       lt_cv_compiler_o_lo=no
5139     else
5140       lt_cv_compiler_o_lo=yes
5141     fi
5142
5143 else
5144   echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5146
5147 fi
5148 rm -f conftest.$ac_objext conftest.$ac_ext
5149   ac_objext="$save_objext"
5150   CFLAGS="$save_CFLAGS"
5151
5152 fi
5153
5154   compiler_o_lo=$lt_cv_compiler_o_lo
5155   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5156 echo "${ECHO_T}$compiler_o_lo" >&6
5157 else
5158   compiler_o_lo=no
5159 fi
5160
5161 # Check to see if we can do hard links to lock some files if needed
5162 hard_links="nottested"
5163 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5164   # do not overwrite the value of need_locks provided by the user
5165   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5166 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5167   hard_links=yes
5168   $rm conftest*
5169   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5170   touch conftest.a
5171   ln conftest.a conftest.b 2>&5 || hard_links=no
5172   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5173   echo "$as_me:$LINENO: result: $hard_links" >&5
5174 echo "${ECHO_T}$hard_links" >&6
5175   if test "$hard_links" = no; then
5176     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5177 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5178     need_locks=warn
5179   fi
5180 else
5181   need_locks=no
5182 fi
5183
5184 if test "$GCC" = yes; then
5185   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5186   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5187 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5188   echo "int some_variable = 0;" > conftest.$ac_ext
5189   save_CFLAGS="$CFLAGS"
5190   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5191   compiler_rtti_exceptions=no
5192   cat >conftest.$ac_ext <<_ACEOF
5193 #line $LINENO "configure"
5194 /* confdefs.h.  */
5195 _ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h.  */
5199
5200 int
5201 main ()
5202 {
5203 int some_variable = 0;
5204   ;
5205   return 0;
5206 }
5207 _ACEOF
5208 rm -f conftest.$ac_objext
5209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5210   (eval $ac_compile) 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); } &&
5214          { ac_try='test -s conftest.$ac_objext'
5215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216   (eval $ac_try) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }; }; then
5220       # The compiler can only warn and ignore the option if not recognized
5221     # So say no if there are warnings
5222     if test -s conftest.err; then
5223       compiler_rtti_exceptions=no
5224     else
5225       compiler_rtti_exceptions=yes
5226     fi
5227
5228 else
5229   echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5231
5232 fi
5233 rm -f conftest.$ac_objext conftest.$ac_ext
5234   CFLAGS="$save_CFLAGS"
5235   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5236 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5237
5238   if test "$compiler_rtti_exceptions" = "yes"; then
5239     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5240   else
5241     no_builtin_flag=' -fno-builtin'
5242   fi
5243 fi
5244
5245 # See if the linker supports building shared libraries.
5246 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5247 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5248
5249 allow_undefined_flag=
5250 no_undefined_flag=
5251 need_lib_prefix=unknown
5252 need_version=unknown
5253 # when you set need_version to no, make sure it does not cause -set_version
5254 # flags to be left without arguments
5255 archive_cmds=
5256 archive_expsym_cmds=
5257 old_archive_from_new_cmds=
5258 old_archive_from_expsyms_cmds=
5259 export_dynamic_flag_spec=
5260 whole_archive_flag_spec=
5261 thread_safe_flag_spec=
5262 hardcode_into_libs=no
5263 hardcode_libdir_flag_spec=
5264 hardcode_libdir_separator=
5265 hardcode_direct=no
5266 hardcode_minus_L=no
5267 hardcode_shlibpath_var=unsupported
5268 runpath_var=
5269 link_all_deplibs=unknown
5270 always_export_symbols=no
5271 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5272 # include_expsyms should be a list of space-separated symbols to be *always*
5273 # included in the symbol list
5274 include_expsyms=
5275 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5276 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5277 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5278 # as well as any symbol that contains `d'.
5279 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5280 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5281 # platforms (ab)use it in PIC code, but their linkers get confused if
5282 # the symbol is explicitly referenced.  Since portable code cannot
5283 # rely on this symbol name, it's probably fine to never include it in
5284 # preloaded symbol tables.
5285 extract_expsyms_cmds=
5286
5287 case $host_os in
5288 cygwin* | mingw* | pw32*)
5289   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5290   # When not using gcc, we currently assume that we are using
5291   # Microsoft Visual C++.
5292   if test "$GCC" != yes; then
5293     with_gnu_ld=no
5294   fi
5295   ;;
5296 openbsd*)
5297   with_gnu_ld=no
5298   ;;
5299 esac
5300
5301 ld_shlibs=yes
5302 if test "$with_gnu_ld" = yes; then
5303   # If archive_cmds runs LD, not CC, wlarc should be empty
5304   wlarc='${wl}'
5305
5306   # See if GNU ld supports shared libraries.
5307   case $host_os in
5308   aix3* | aix4* | aix5*)
5309     # On AIX, the GNU linker is very broken
5310     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5311     ld_shlibs=no
5312     cat <<EOF 1>&2
5313
5314 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5315 *** to be unable to reliably create shared libraries on AIX.
5316 *** Therefore, libtool is disabling shared libraries support.  If you
5317 *** really care for shared libraries, you may want to modify your PATH
5318 *** so that a non-GNU linker is found, and then restart.
5319
5320 EOF
5321     ;;
5322
5323   amigaos*)
5324     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)'
5325     hardcode_libdir_flag_spec='-L$libdir'
5326     hardcode_minus_L=yes
5327
5328     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5329     # that the semantics of dynamic libraries on AmigaOS, at least up
5330     # to version 4, is to share data among multiple programs linked
5331     # with the same dynamic library.  Since this doesn't match the
5332     # behavior of shared libraries on other platforms, we can use
5333     # them.
5334     ld_shlibs=no
5335     ;;
5336
5337   beos*)
5338     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5339       allow_undefined_flag=unsupported
5340       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5341       # support --undefined.  This deserves some investigation.  FIXME
5342       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5343     else
5344       ld_shlibs=no
5345     fi
5346     ;;
5347
5348   cygwin* | mingw* | pw32*)
5349     # hardcode_libdir_flag_spec is actually meaningless, as there is
5350     # no search path for DLLs.
5351     hardcode_libdir_flag_spec='-L$libdir'
5352     allow_undefined_flag=unsupported
5353     always_export_symbols=yes
5354
5355     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5356       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5357       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5358       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5359       else $CC -o impgen impgen.c ; fi)~
5360       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5361
5362     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5363
5364     # cygwin and mingw dlls have different entry points and sets of symbols
5365     # to exclude.
5366     # FIXME: what about values for MSVC?
5367     dll_entry=__cygwin_dll_entry@12
5368     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5369     case $host_os in
5370     mingw*)
5371       # mingw values
5372       dll_entry=_DllMainCRTStartup@12
5373       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5374       ;;
5375     esac
5376
5377     # mingw and cygwin differ, and it's simplest to just exclude the union
5378     # of the two symbol sets.
5379     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5380
5381     # recent cygwin and mingw systems supply a stub DllMain which the user
5382     # can override, but on older systems we have to supply one (in ltdll.c)
5383     if test "x$lt_cv_need_dllmain" = "xyes"; then
5384       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5385       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~
5386         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5387     else
5388       ltdll_obj=
5389       ltdll_cmds=
5390     fi
5391
5392     # Extract the symbol export list from an `--export-all' def file,
5393     # then regenerate the def file from the symbol export list, so that
5394     # the compiled dll only exports the symbol export list.
5395     # Be careful not to strip the DATA tag left be newer dlltools.
5396     export_symbols_cmds="$ltdll_cmds"'
5397       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5398       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5399
5400     # If the export-symbols file already is a .def file (1st line
5401     # is EXPORTS), use it as is.
5402     # If DATA tags from a recent dlltool are present, honour them!
5403     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5404         cp $export_symbols $output_objdir/$soname-def;
5405       else
5406         echo EXPORTS > $output_objdir/$soname-def;
5407         _lt_hint=1;
5408         cat $export_symbols | while read symbol; do
5409          set dummy \$symbol;
5410          case \$# in
5411            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5412            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5413          esac;
5414          _lt_hint=`expr 1 + \$_lt_hint`;
5415         done;
5416       fi~
5417       '"$ltdll_cmds"'
5418       $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~
5419       $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~
5420       $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~
5421       $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~
5422       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5423     ;;
5424
5425   netbsd*)
5426     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5427       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5428       wlarc=
5429     else
5430       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5431       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5432     fi
5433     ;;
5434
5435   solaris* | sysv5*)
5436     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5437       ld_shlibs=no
5438       cat <<EOF 1>&2
5439
5440 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5441 *** create shared libraries on Solaris systems.  Therefore, libtool
5442 *** is disabling shared libraries support.  We urge you to upgrade GNU
5443 *** binutils to release 2.9.1 or newer.  Another option is to modify
5444 *** your PATH or compiler configuration so that the native linker is
5445 *** used, and then restart.
5446
5447 EOF
5448     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5449       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5450       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5451     else
5452       ld_shlibs=no
5453     fi
5454     ;;
5455
5456   sunos4*)
5457     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5458     wlarc=
5459     hardcode_direct=yes
5460     hardcode_shlibpath_var=no
5461     ;;
5462
5463   *)
5464     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5465       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5466       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5467     else
5468       ld_shlibs=no
5469     fi
5470     ;;
5471   esac
5472
5473   if test "$ld_shlibs" = yes; then
5474     runpath_var=LD_RUN_PATH
5475     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5476     export_dynamic_flag_spec='${wl}--export-dynamic'
5477     case $host_os in
5478     cygwin* | mingw* | pw32*)
5479       # dlltool doesn't understand --whole-archive et. al.
5480       whole_archive_flag_spec=
5481       ;;
5482     *)
5483       # ancient GNU ld didn't support --whole-archive et. al.
5484       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5485         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5486       else
5487         whole_archive_flag_spec=
5488       fi
5489       ;;
5490     esac
5491   fi
5492 else
5493   # PORTME fill in a description of your system's linker (not GNU ld)
5494   case $host_os in
5495   aix3*)
5496     allow_undefined_flag=unsupported
5497     always_export_symbols=yes
5498     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'
5499     # Note: this linker hardcodes the directories in LIBPATH if there
5500     # are no directories specified by -L.
5501     hardcode_minus_L=yes
5502     if test "$GCC" = yes && test -z "$link_static_flag"; then
5503       # Neither direct hardcoding nor static linking is supported with a
5504       # broken collect2.
5505       hardcode_direct=unsupported
5506     fi
5507     ;;
5508
5509   aix4* | aix5*)
5510     if test "$host_cpu" = ia64; then
5511       # On IA64, the linker does run time linking by default, so we don't
5512       # have to do anything special.
5513       aix_use_runtimelinking=no
5514       exp_sym_flag='-Bexport'
5515       no_entry_flag=""
5516     else
5517       aix_use_runtimelinking=no
5518
5519       # Test if we are trying to use run time linking or normal
5520       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5521       # need to do runtime linking.
5522       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5523         for ld_flag in $LDFLAGS; do
5524           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5525             aix_use_runtimelinking=yes
5526             break
5527           fi
5528         done
5529       esac
5530
5531       exp_sym_flag='-bexport'
5532       no_entry_flag='-bnoentry'
5533     fi
5534
5535     # When large executables or shared objects are built, AIX ld can
5536     # have problems creating the table of contents.  If linking a library
5537     # or program results in "error TOC overflow" add -mminimal-toc to
5538     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5539     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5540
5541     hardcode_direct=yes
5542     archive_cmds=''
5543     hardcode_libdir_separator=':'
5544     if test "$GCC" = yes; then
5545       case $host_os in aix4.[012]|aix4.[012].*)
5546         collect2name=`${CC} -print-prog-name=collect2`
5547         if test -f "$collect2name" && \
5548           strings "$collect2name" | grep resolve_lib_name >/dev/null
5549         then
5550           # We have reworked collect2
5551           hardcode_direct=yes
5552         else
5553           # We have old collect2
5554           hardcode_direct=unsupported
5555           # It fails to find uninstalled libraries when the uninstalled
5556           # path is not listed in the libpath.  Setting hardcode_minus_L
5557           # to unsupported forces relinking
5558           hardcode_minus_L=yes
5559           hardcode_libdir_flag_spec='-L$libdir'
5560           hardcode_libdir_separator=
5561         fi
5562       esac
5563
5564       shared_flag='-shared'
5565     else
5566       # not using gcc
5567       if test "$host_cpu" = ia64; then
5568         shared_flag='${wl}-G'
5569       else
5570         if test "$aix_use_runtimelinking" = yes; then
5571           shared_flag='${wl}-G'
5572         else
5573           shared_flag='${wl}-bM:SRE'
5574         fi
5575       fi
5576     fi
5577
5578     # It seems that -bexpall can do strange things, so it is better to
5579     # generate a list of symbols to export.
5580     always_export_symbols=yes
5581     if test "$aix_use_runtimelinking" = yes; then
5582       # Warning - without using the other runtime loading flags (-brtl),
5583       # -berok will link without error, but may produce a broken library.
5584       allow_undefined_flag='-berok'
5585       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5586       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"
5587     else
5588       if test "$host_cpu" = ia64; then
5589         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5590         allow_undefined_flag="-z nodefs"
5591         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"
5592       else
5593         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5594         # Warning - without using the other run time loading flags,
5595         # -berok will link without error, but may produce a broken library.
5596         allow_undefined_flag='${wl}-berok'
5597         # This is a bit strange, but is similar to how AIX traditionally builds
5598         # it's shared libraries.
5599         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'
5600       fi
5601     fi
5602     ;;
5603
5604   amigaos*)
5605     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)'
5606     hardcode_libdir_flag_spec='-L$libdir'
5607     hardcode_minus_L=yes
5608     # see comment about different semantics on the GNU ld section
5609     ld_shlibs=no
5610     ;;
5611
5612   cygwin* | mingw* | pw32*)
5613     # When not using gcc, we currently assume that we are using
5614     # Microsoft Visual C++.
5615     # hardcode_libdir_flag_spec is actually meaningless, as there is
5616     # no search path for DLLs.
5617     hardcode_libdir_flag_spec=' '
5618     allow_undefined_flag=unsupported
5619     # Tell ltmain to make .lib files, not .a files.
5620     libext=lib
5621     # FIXME: Setting linknames here is a bad hack.
5622     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5623     # The linker will automatically build a .lib file if we build a DLL.
5624     old_archive_from_new_cmds='true'
5625     # FIXME: Should let the user specify the lib program.
5626     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5627     fix_srcfile_path='`cygpath -w "$srcfile"`'
5628     ;;
5629
5630   darwin* | rhapsody*)
5631     case "$host_os" in
5632     rhapsody* | darwin1.[012])
5633       allow_undefined_flag='-undefined suppress'
5634       ;;
5635     *) # Darwin 1.3 on
5636       allow_undefined_flag='-flat_namespace -undefined suppress'
5637       ;;
5638     esac
5639     # FIXME: Relying on posixy $() will cause problems for
5640     #        cross-compilation, but unfortunately the echo tests do not
5641     #        yet detect zsh echo's removal of \ escapes.
5642     archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5643     # We need to add '_' to the symbols in $export_symbols first
5644     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5645     hardcode_direct=yes
5646     hardcode_shlibpath_var=no
5647     whole_archive_flag_spec='-all_load $convenience'
5648     ;;
5649
5650   freebsd1*)
5651     ld_shlibs=no
5652     ;;
5653
5654   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5655   # support.  Future versions do this automatically, but an explicit c++rt0.o
5656   # does not break anything, and helps significantly (at the cost of a little
5657   # extra space).
5658   freebsd2.2*)
5659     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5660     hardcode_libdir_flag_spec='-R$libdir'
5661     hardcode_direct=yes
5662     hardcode_shlibpath_var=no
5663     ;;
5664
5665   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5666   freebsd2*)
5667     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5668     hardcode_direct=yes
5669     hardcode_minus_L=yes
5670     hardcode_shlibpath_var=no
5671     ;;
5672
5673   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5674   freebsd*)
5675     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5676     hardcode_libdir_flag_spec='-R$libdir'
5677     hardcode_direct=yes
5678     hardcode_shlibpath_var=no
5679     ;;
5680
5681   hpux9* | hpux10* | hpux11*)
5682     case $host_os in
5683     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' ;;
5684     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5685     esac
5686     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5687     hardcode_libdir_separator=:
5688     hardcode_direct=yes
5689     hardcode_minus_L=yes # Not in the search PATH, but as the default
5690                          # location of the library.
5691     export_dynamic_flag_spec='${wl}-E'
5692     ;;
5693
5694   irix5* | irix6*)
5695     if test "$GCC" = yes; then
5696       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'
5697     else
5698       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'
5699     fi
5700     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5701     hardcode_libdir_separator=:
5702     link_all_deplibs=yes
5703     ;;
5704
5705   netbsd*)
5706     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5707       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5708     else
5709       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5710     fi
5711     hardcode_libdir_flag_spec='-R$libdir'
5712     hardcode_direct=yes
5713     hardcode_shlibpath_var=no
5714     ;;
5715
5716   newsos6)
5717     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5718     hardcode_direct=yes
5719     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5720     hardcode_libdir_separator=:
5721     hardcode_shlibpath_var=no
5722     ;;
5723
5724   openbsd*)
5725     hardcode_direct=yes
5726     hardcode_shlibpath_var=no
5727     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5728       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5729       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5730       export_dynamic_flag_spec='${wl}-E'
5731     else
5732       case "$host_os" in
5733       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5734         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5735         hardcode_libdir_flag_spec='-R$libdir'
5736         ;;
5737       *)
5738         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5739         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5740         ;;
5741       esac
5742     fi
5743     ;;
5744
5745   os2*)
5746     hardcode_libdir_flag_spec='-L$libdir'
5747     hardcode_minus_L=yes
5748     allow_undefined_flag=unsupported
5749     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'
5750     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5751     ;;
5752
5753   osf3*)
5754     if test "$GCC" = yes; then
5755       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5756       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'
5757     else
5758       allow_undefined_flag=' -expect_unresolved \*'
5759       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'
5760     fi
5761     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5762     hardcode_libdir_separator=:
5763     ;;
5764
5765   osf4* | osf5*)        # as osf3* with the addition of -msym flag
5766     if test "$GCC" = yes; then
5767       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5768       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'
5769       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5770     else
5771       allow_undefined_flag=' -expect_unresolved \*'
5772       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'
5773       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5774       $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'
5775
5776       #Both c and cxx compiler support -rpath directly
5777       hardcode_libdir_flag_spec='-rpath $libdir'
5778     fi
5779     hardcode_libdir_separator=:
5780     ;;
5781
5782   sco3.2v5*)
5783     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5784     hardcode_shlibpath_var=no
5785     runpath_var=LD_RUN_PATH
5786     hardcode_runpath_var=yes
5787     export_dynamic_flag_spec='${wl}-Bexport'
5788     ;;
5789
5790   solaris*)
5791     # gcc --version < 3.0 without binutils cannot create self contained
5792     # shared libraries reliably, requiring libgcc.a to resolve some of
5793     # the object symbols generated in some cases.  Libraries that use
5794     # assert need libgcc.a to resolve __eprintf, for example.  Linking
5795     # a copy of libgcc.a into every shared library to guarantee resolving
5796     # such symbols causes other problems:  According to Tim Van Holder
5797     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5798     # (to the application) exception stack for one thing.
5799     no_undefined_flag=' -z defs'
5800     if test "$GCC" = yes; then
5801       case `$CC --version 2>/dev/null` in
5802       [12].*)
5803         cat <<EOF 1>&2
5804
5805 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5806 *** create self contained shared libraries on Solaris systems, without
5807 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5808 *** -no-undefined support, which will at least allow you to build shared
5809 *** libraries.  However, you may find that when you link such libraries
5810 *** into an application without using GCC, you have to manually add
5811 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5812 *** upgrade to a newer version of GCC.  Another option is to rebuild your
5813 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5814
5815 EOF
5816         no_undefined_flag=
5817         ;;
5818       esac
5819     fi
5820     # $CC -shared without GNU ld will not create a library from C++
5821     # object files and a static libstdc++, better avoid it by now
5822     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5823     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5824                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5825     hardcode_libdir_flag_spec='-R$libdir'
5826     hardcode_shlibpath_var=no
5827     case $host_os in
5828     solaris2.[0-5] | solaris2.[0-5].*) ;;
5829     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5830       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5831     esac
5832     link_all_deplibs=yes
5833     ;;
5834
5835   sunos4*)
5836     if test "x$host_vendor" = xsequent; then
5837       # Use $CC to link under sequent, because it throws in some extra .o
5838       # files that make .init and .fini sections work.
5839       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5840     else
5841       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5842     fi
5843     hardcode_libdir_flag_spec='-L$libdir'
5844     hardcode_direct=yes
5845     hardcode_minus_L=yes
5846     hardcode_shlibpath_var=no
5847     ;;
5848
5849   sysv4)
5850     if test "x$host_vendor" = xsno; then
5851       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5852       hardcode_direct=yes # is this really true???
5853     else
5854       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5855       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5856     fi
5857     runpath_var='LD_RUN_PATH'
5858     hardcode_shlibpath_var=no
5859     ;;
5860
5861   sysv4.3*)
5862     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5863     hardcode_shlibpath_var=no
5864     export_dynamic_flag_spec='-Bexport'
5865     ;;
5866
5867   sysv5*)
5868     no_undefined_flag=' -z text'
5869     # $CC -shared without GNU ld will not create a library from C++
5870     # object files and a static libstdc++, better avoid it by now
5871     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5872     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5873                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5874     hardcode_libdir_flag_spec=
5875     hardcode_shlibpath_var=no
5876     runpath_var='LD_RUN_PATH'
5877     ;;
5878
5879   uts4*)
5880     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5881     hardcode_libdir_flag_spec='-L$libdir'
5882     hardcode_shlibpath_var=no
5883     ;;
5884
5885   dgux*)
5886     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5887     hardcode_libdir_flag_spec='-L$libdir'
5888     hardcode_shlibpath_var=no
5889     ;;
5890
5891   sysv4*MP*)
5892     if test -d /usr/nec; then
5893       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5894       hardcode_shlibpath_var=no
5895       runpath_var=LD_RUN_PATH
5896       hardcode_runpath_var=yes
5897       ld_shlibs=yes
5898     fi
5899     ;;
5900
5901   sysv4.2uw2*)
5902     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5903     hardcode_direct=yes
5904     hardcode_minus_L=no
5905     hardcode_shlibpath_var=no
5906     hardcode_runpath_var=yes
5907     runpath_var=LD_RUN_PATH
5908     ;;
5909
5910   sysv5uw7* | unixware7*)
5911     no_undefined_flag='${wl}-z ${wl}text'
5912     if test "$GCC" = yes; then
5913       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5914     else
5915       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5916     fi
5917     runpath_var='LD_RUN_PATH'
5918     hardcode_shlibpath_var=no
5919     ;;
5920
5921   *)
5922     ld_shlibs=no
5923     ;;
5924   esac
5925 fi
5926 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5927 echo "${ECHO_T}$ld_shlibs" >&6
5928 test "$ld_shlibs" = no && can_build_shared=no
5929
5930 # Check hardcoding attributes.
5931 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5932 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5933 hardcode_action=
5934 if test -n "$hardcode_libdir_flag_spec" || \
5935    test -n "$runpath_var"; then
5936
5937   # We can hardcode non-existant directories.
5938   if test "$hardcode_direct" != no &&
5939      # If the only mechanism to avoid hardcoding is shlibpath_var, we
5940      # have to relink, otherwise we might link with an installed library
5941      # when we should be linking with a yet-to-be-installed one
5942      ## test "$hardcode_shlibpath_var" != no &&
5943      test "$hardcode_minus_L" != no; then
5944     # Linking always hardcodes the temporary library directory.
5945     hardcode_action=relink
5946   else
5947     # We can link without hardcoding, and we can hardcode nonexisting dirs.
5948     hardcode_action=immediate
5949   fi
5950 else
5951   # We cannot hardcode anything, or else we can only hardcode existing
5952   # directories.
5953   hardcode_action=unsupported
5954 fi
5955 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5956 echo "${ECHO_T}$hardcode_action" >&6
5957
5958 striplib=
5959 old_striplib=
5960 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5961 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5962 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5963   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5964   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5965   echo "$as_me:$LINENO: result: yes" >&5
5966 echo "${ECHO_T}yes" >&6
5967 else
5968   echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6
5970 fi
5971
5972 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5973 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5974
5975 # PORTME Fill in your ld.so characteristics
5976 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5977 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5978 library_names_spec=
5979 libname_spec='lib$name'
5980 soname_spec=
5981 postinstall_cmds=
5982 postuninstall_cmds=
5983 finish_cmds=
5984 finish_eval=
5985 shlibpath_var=
5986 shlibpath_overrides_runpath=unknown
5987 version_type=none
5988 dynamic_linker="$host_os ld.so"
5989 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5990 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5991
5992 case $host_os in
5993 aix3*)
5994   version_type=linux
5995   library_names_spec='${libname}${release}.so$versuffix $libname.a'
5996   shlibpath_var=LIBPATH
5997
5998   # AIX has no versioning support, so we append a major version to the name.
5999   soname_spec='${libname}${release}.so$major'
6000   ;;
6001
6002 aix4* | aix5*)
6003   version_type=linux
6004   if test "$host_cpu" = ia64; then
6005     # AIX 5 supports IA64
6006     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6007     shlibpath_var=LD_LIBRARY_PATH
6008   else
6009     # With GCC up to 2.95.x, collect2 would create an import file
6010     # for dependence libraries.  The import file would start with
6011     # the line `#! .'.  This would cause the generated library to
6012     # depend on `.', always an invalid library.  This was fixed in
6013     # development snapshots of GCC prior to 3.0.
6014     case $host_os in
6015       aix4 | aix4.[01] | aix4.[01].*)
6016         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6017              echo ' yes '
6018              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6019           :
6020         else
6021           can_build_shared=no
6022         fi
6023         ;;
6024     esac
6025     # AIX (on Power*) has no versioning support, so currently we can
6026     # not hardcode correct soname into executable. Probably we can
6027     # add versioning support to collect2, so additional links can
6028     # be useful in future.
6029     if test "$aix_use_runtimelinking" = yes; then
6030       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6031       # instead of lib<name>.a to let people know that these are not
6032       # typical AIX shared libraries.
6033       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6034     else
6035       # We preserve .a as extension for shared libraries through AIX4.2
6036       # and later when we are not doing run time linking.
6037       library_names_spec='${libname}${release}.a $libname.a'
6038       soname_spec='${libname}${release}.so$major'
6039     fi
6040     shlibpath_var=LIBPATH
6041   fi
6042   ;;
6043
6044 amigaos*)
6045   library_names_spec='$libname.ixlibrary $libname.a'
6046   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6047   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'
6048   ;;
6049
6050 beos*)
6051   library_names_spec='${libname}.so'
6052   dynamic_linker="$host_os ld.so"
6053   shlibpath_var=LIBRARY_PATH
6054   ;;
6055
6056 bsdi4*)
6057   version_type=linux
6058   need_version=no
6059   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6060   soname_spec='${libname}${release}.so$major'
6061   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6062   shlibpath_var=LD_LIBRARY_PATH
6063   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6064   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6065   export_dynamic_flag_spec=-rdynamic
6066   # the default ld.so.conf also contains /usr/contrib/lib and
6067   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6068   # libtool to hard-code these into programs
6069   ;;
6070
6071 cygwin* | mingw* | pw32*)
6072   version_type=windows
6073   need_version=no
6074   need_lib_prefix=no
6075   case $GCC,$host_os in
6076   yes,cygwin*)
6077     library_names_spec='$libname.dll.a'
6078     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6079     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6080       dldir=$destdir/`dirname \$dlpath`~
6081       test -d \$dldir || mkdir -p \$dldir~
6082       $install_prog .libs/$dlname \$dldir/$dlname'
6083     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6084       dlpath=$dir/\$dldll~
6085        $rm \$dlpath'
6086     ;;
6087   yes,mingw*)
6088     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6089     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6090     ;;
6091   yes,pw32*)
6092     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6093     ;;
6094   *)
6095     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6096     ;;
6097   esac
6098   dynamic_linker='Win32 ld.exe'
6099   # FIXME: first we should search . and the directory the executable is in
6100   shlibpath_var=PATH
6101   ;;
6102
6103 darwin* | rhapsody*)
6104   dynamic_linker="$host_os dyld"
6105   version_type=darwin
6106   need_lib_prefix=no
6107   need_version=no
6108   # FIXME: Relying on posixy $() will cause problems for
6109   #        cross-compilation, but unfortunately the echo tests do not
6110   #        yet detect zsh echo's removal of \ escapes.
6111   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)'
6112   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6113   shlibpath_overrides_runpath=yes
6114   shlibpath_var=DYLD_LIBRARY_PATH
6115   ;;
6116
6117 freebsd1*)
6118   dynamic_linker=no
6119   ;;
6120
6121 freebsd*)
6122   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6123   version_type=freebsd-$objformat
6124   case $version_type in
6125     freebsd-elf*)
6126       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6127       need_version=no
6128       need_lib_prefix=no
6129       ;;
6130     freebsd-*)
6131       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6132       need_version=yes
6133       ;;
6134   esac
6135   shlibpath_var=LD_LIBRARY_PATH
6136   case $host_os in
6137   freebsd2*)
6138     shlibpath_overrides_runpath=yes
6139     ;;
6140   *)
6141     shlibpath_overrides_runpath=no
6142     hardcode_into_libs=yes
6143     ;;
6144   esac
6145   ;;
6146
6147 gnu*)
6148   version_type=linux
6149   need_lib_prefix=no
6150   need_version=no
6151   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6152   soname_spec='${libname}${release}.so$major'
6153   shlibpath_var=LD_LIBRARY_PATH
6154   hardcode_into_libs=yes
6155   ;;
6156
6157 hpux9* | hpux10* | hpux11*)
6158   # Give a soname corresponding to the major version so that dld.sl refuses to
6159   # link against other versions.
6160   dynamic_linker="$host_os dld.sl"
6161   version_type=sunos
6162   need_lib_prefix=no
6163   need_version=no
6164   shlibpath_var=SHLIB_PATH
6165   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6166   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6167   soname_spec='${libname}${release}.sl$major'
6168   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6169   postinstall_cmds='chmod 555 $lib'
6170   ;;
6171
6172 irix5* | irix6*)
6173   version_type=irix
6174   need_lib_prefix=no
6175   need_version=no
6176   soname_spec='${libname}${release}.so$major'
6177   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6178   case $host_os in
6179   irix5*)
6180     libsuff= shlibsuff=
6181     ;;
6182   *)
6183     case $LD in # libtool.m4 will add one of these switches to LD
6184     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6185     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6186     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6187     *) libsuff= shlibsuff= libmagic=never-match;;
6188     esac
6189     ;;
6190   esac
6191   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6192   shlibpath_overrides_runpath=no
6193   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6194   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6195   ;;
6196
6197 # No shared lib support for Linux oldld, aout, or coff.
6198 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6199   dynamic_linker=no
6200   ;;
6201
6202 # This must be Linux ELF.
6203 linux-gnu*)
6204   version_type=linux
6205   need_lib_prefix=no
6206   need_version=no
6207   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6208   soname_spec='${libname}${release}.so$major'
6209   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6210   shlibpath_var=LD_LIBRARY_PATH
6211   shlibpath_overrides_runpath=no
6212   # This implies no fast_install, which is unacceptable.
6213   # Some rework will be needed to allow for fast_install
6214   # before this can be enabled.
6215   hardcode_into_libs=yes
6216
6217   # We used to test for /lib/ld.so.1 and disable shared libraries on
6218   # powerpc, because MkLinux only supported shared libraries with the
6219   # GNU dynamic linker.  Since this was broken with cross compilers,
6220   # most powerpc-linux boxes support dynamic linking these days and
6221   # people can always --disable-shared, the test was removed, and we
6222   # assume the GNU/Linux dynamic linker is in use.
6223   dynamic_linker='GNU/Linux ld.so'
6224   ;;
6225
6226 netbsd*)
6227   version_type=sunos
6228   need_lib_prefix=no
6229   need_version=no
6230   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6231     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6232     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6233     dynamic_linker='NetBSD (a.out) ld.so'
6234   else
6235     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6236     soname_spec='${libname}${release}.so$major'
6237     dynamic_linker='NetBSD ld.elf_so'
6238   fi
6239   shlibpath_var=LD_LIBRARY_PATH
6240   shlibpath_overrides_runpath=yes
6241   hardcode_into_libs=yes
6242   ;;
6243
6244 newsos6)
6245   version_type=linux
6246   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6247   shlibpath_var=LD_LIBRARY_PATH
6248   shlibpath_overrides_runpath=yes
6249   ;;
6250
6251 openbsd*)
6252   version_type=sunos
6253   need_lib_prefix=no
6254   need_version=no
6255   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6256     case "$host_os" in
6257     openbsd2.[89] | openbsd2.[89].*)
6258       shlibpath_overrides_runpath=no
6259       ;;
6260     *)
6261       shlibpath_overrides_runpath=yes
6262       ;;
6263     esac
6264   else
6265     shlibpath_overrides_runpath=yes
6266   fi
6267   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6268   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6269   shlibpath_var=LD_LIBRARY_PATH
6270   ;;
6271
6272 os2*)
6273   libname_spec='$name'
6274   need_lib_prefix=no
6275   library_names_spec='$libname.dll $libname.a'
6276   dynamic_linker='OS/2 ld.exe'
6277   shlibpath_var=LIBPATH
6278   ;;
6279
6280 osf3* | osf4* | osf5*)
6281   version_type=osf
6282   need_version=no
6283   soname_spec='${libname}${release}.so'
6284   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6285   shlibpath_var=LD_LIBRARY_PATH
6286   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6287   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6288   ;;
6289
6290 sco3.2v5*)
6291   version_type=osf
6292   soname_spec='${libname}${release}.so$major'
6293   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6294   shlibpath_var=LD_LIBRARY_PATH
6295   ;;
6296
6297 solaris*)
6298   version_type=linux
6299   need_lib_prefix=no
6300   need_version=no
6301   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6302   soname_spec='${libname}${release}.so$major'
6303   shlibpath_var=LD_LIBRARY_PATH
6304   shlibpath_overrides_runpath=yes
6305   hardcode_into_libs=yes
6306   # ldd complains unless libraries are executable
6307   postinstall_cmds='chmod +x $lib'
6308   ;;
6309
6310 sunos4*)
6311   version_type=sunos
6312   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6313   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6314   shlibpath_var=LD_LIBRARY_PATH
6315   shlibpath_overrides_runpath=yes
6316   if test "$with_gnu_ld" = yes; then
6317     need_lib_prefix=no
6318   fi
6319   need_version=yes
6320   ;;
6321
6322 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6323   version_type=linux
6324   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6325   soname_spec='${libname}${release}.so$major'
6326   shlibpath_var=LD_LIBRARY_PATH
6327   case $host_vendor in
6328     sni)
6329       shlibpath_overrides_runpath=no
6330       ;;
6331     motorola)
6332       need_lib_prefix=no
6333       need_version=no
6334       shlibpath_overrides_runpath=no
6335       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6336       ;;
6337   esac
6338   ;;
6339
6340 uts4*)
6341   version_type=linux
6342   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6343   soname_spec='${libname}${release}.so$major'
6344   shlibpath_var=LD_LIBRARY_PATH
6345   ;;
6346
6347 dgux*)
6348   version_type=linux
6349   need_lib_prefix=no
6350   need_version=no
6351   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6352   soname_spec='${libname}${release}.so$major'
6353   shlibpath_var=LD_LIBRARY_PATH
6354   ;;
6355
6356 sysv4*MP*)
6357   if test -d /usr/nec ;then
6358     version_type=linux
6359     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6360     soname_spec='$libname.so.$major'
6361     shlibpath_var=LD_LIBRARY_PATH
6362   fi
6363   ;;
6364
6365 *)
6366   dynamic_linker=no
6367   ;;
6368 esac
6369 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6370 echo "${ECHO_T}$dynamic_linker" >&6
6371 test "$dynamic_linker" = no && can_build_shared=no
6372
6373 # Report the final consequences.
6374 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6375 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6376 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6377 echo "${ECHO_T}$can_build_shared" >&6
6378
6379 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6380 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6381 test "$can_build_shared" = "no" && enable_shared=no
6382
6383 # On AIX, shared libraries and static libraries use the same namespace, and
6384 # are all built from PIC.
6385 case "$host_os" in
6386 aix3*)
6387   test "$enable_shared" = yes && enable_static=no
6388   if test -n "$RANLIB"; then
6389     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6390     postinstall_cmds='$RANLIB $lib'
6391   fi
6392   ;;
6393
6394 aix4*)
6395   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6396     test "$enable_shared" = yes && enable_static=no
6397   fi
6398   ;;
6399 esac
6400 echo "$as_me:$LINENO: result: $enable_shared" >&5
6401 echo "${ECHO_T}$enable_shared" >&6
6402
6403 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6404 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6405 # Make sure either enable_shared or enable_static is yes.
6406 test "$enable_shared" = yes || enable_static=yes
6407 echo "$as_me:$LINENO: result: $enable_static" >&5
6408 echo "${ECHO_T}$enable_static" >&6
6409
6410 if test "$hardcode_action" = relink; then
6411   # Fast installation is not supported
6412   enable_fast_install=no
6413 elif test "$shlibpath_overrides_runpath" = yes ||
6414      test "$enable_shared" = no; then
6415   # Fast installation is not necessary
6416   enable_fast_install=needless
6417 fi
6418
6419 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6420 if test "$GCC" = yes; then
6421   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6422 fi
6423
6424 if test "x$enable_dlopen" != xyes; then
6425   enable_dlopen=unknown
6426   enable_dlopen_self=unknown
6427   enable_dlopen_self_static=unknown
6428 else
6429   lt_cv_dlopen=no
6430   lt_cv_dlopen_libs=
6431
6432   case $host_os in
6433   beos*)
6434     lt_cv_dlopen="load_add_on"
6435     lt_cv_dlopen_libs=
6436     lt_cv_dlopen_self=yes
6437     ;;
6438
6439   cygwin* | mingw* | pw32*)
6440     lt_cv_dlopen="LoadLibrary"
6441     lt_cv_dlopen_libs=
6442    ;;
6443
6444   *)
6445     echo "$as_me:$LINENO: checking for shl_load" >&5
6446 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6447 if test "${ac_cv_func_shl_load+set}" = set; then
6448   echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450   cat >conftest.$ac_ext <<_ACEOF
6451 #line $LINENO "configure"
6452 /* confdefs.h.  */
6453 _ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h.  */
6457 /* System header to define __stub macros and hopefully few prototypes,
6458     which can conflict with char shl_load (); below.
6459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6460     <limits.h> exists even on freestanding compilers.  */
6461 #ifdef __STDC__
6462 # include <limits.h>
6463 #else
6464 # include <assert.h>
6465 #endif
6466 /* Override any gcc2 internal prototype to avoid an error.  */
6467 #ifdef __cplusplus
6468 extern "C"
6469 {
6470 #endif
6471 /* We use char because int might match the return type of a gcc2
6472    builtin and then its argument prototype would still apply.  */
6473 char shl_load ();
6474 /* The GNU C library defines this for functions which it implements
6475     to always fail with ENOSYS.  Some functions are actually named
6476     something starting with __ and the normal name is an alias.  */
6477 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6478 choke me
6479 #else
6480 char (*f) () = shl_load;
6481 #endif
6482 #ifdef __cplusplus
6483 }
6484 #endif
6485
6486 int
6487 main ()
6488 {
6489 return f != shl_load;
6490   ;
6491   return 0;
6492 }
6493 _ACEOF
6494 rm -f conftest.$ac_objext conftest$ac_exeext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496   (eval $ac_link) 2>&5
6497   ac_status=$?
6498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499   (exit $ac_status); } &&
6500          { ac_try='test -s conftest$ac_exeext'
6501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502   (eval $ac_try) 2>&5
6503   ac_status=$?
6504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505   (exit $ac_status); }; }; then
6506   ac_cv_func_shl_load=yes
6507 else
6508   echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6510
6511 ac_cv_func_shl_load=no
6512 fi
6513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6514 fi
6515 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6516 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6517 if test $ac_cv_func_shl_load = yes; then
6518   lt_cv_dlopen="shl_load"
6519 else
6520   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6521 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6522 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6523   echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525   ac_check_lib_save_LIBS=$LIBS
6526 LIBS="-ldld  $LIBS"
6527 cat >conftest.$ac_ext <<_ACEOF
6528 #line $LINENO "configure"
6529 /* confdefs.h.  */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h.  */
6534
6535 /* Override any gcc2 internal prototype to avoid an error.  */
6536 #ifdef __cplusplus
6537 extern "C"
6538 #endif
6539 /* We use char because int might match the return type of a gcc2
6540    builtin and then its argument prototype would still apply.  */
6541 char shl_load ();
6542 int
6543 main ()
6544 {
6545 shl_load ();
6546   ;
6547   return 0;
6548 }
6549 _ACEOF
6550 rm -f conftest.$ac_objext conftest$ac_exeext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6552   (eval $ac_link) 2>&5
6553   ac_status=$?
6554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555   (exit $ac_status); } &&
6556          { ac_try='test -s conftest$ac_exeext'
6557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558   (eval $ac_try) 2>&5
6559   ac_status=$?
6560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561   (exit $ac_status); }; }; then
6562   ac_cv_lib_dld_shl_load=yes
6563 else
6564   echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6566
6567 ac_cv_lib_dld_shl_load=no
6568 fi
6569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6570 LIBS=$ac_check_lib_save_LIBS
6571 fi
6572 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6573 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6574 if test $ac_cv_lib_dld_shl_load = yes; then
6575   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6576 else
6577   echo "$as_me:$LINENO: checking for dlopen" >&5
6578 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6579 if test "${ac_cv_func_dlopen+set}" = set; then
6580   echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582   cat >conftest.$ac_ext <<_ACEOF
6583 #line $LINENO "configure"
6584 /* confdefs.h.  */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h.  */
6589 /* System header to define __stub macros and hopefully few prototypes,
6590     which can conflict with char dlopen (); below.
6591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6592     <limits.h> exists even on freestanding compilers.  */
6593 #ifdef __STDC__
6594 # include <limits.h>
6595 #else
6596 # include <assert.h>
6597 #endif
6598 /* Override any gcc2 internal prototype to avoid an error.  */
6599 #ifdef __cplusplus
6600 extern "C"
6601 {
6602 #endif
6603 /* We use char because int might match the return type of a gcc2
6604    builtin and then its argument prototype would still apply.  */
6605 char dlopen ();
6606 /* The GNU C library defines this for functions which it implements
6607     to always fail with ENOSYS.  Some functions are actually named
6608     something starting with __ and the normal name is an alias.  */
6609 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6610 choke me
6611 #else
6612 char (*f) () = dlopen;
6613 #endif
6614 #ifdef __cplusplus
6615 }
6616 #endif
6617
6618 int
6619 main ()
6620 {
6621 return f != dlopen;
6622   ;
6623   return 0;
6624 }
6625 _ACEOF
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628   (eval $ac_link) 2>&5
6629   ac_status=$?
6630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631   (exit $ac_status); } &&
6632          { ac_try='test -s conftest$ac_exeext'
6633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634   (eval $ac_try) 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); }; }; then
6638   ac_cv_func_dlopen=yes
6639 else
6640   echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6642
6643 ac_cv_func_dlopen=no
6644 fi
6645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6646 fi
6647 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6648 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6649 if test $ac_cv_func_dlopen = yes; then
6650   lt_cv_dlopen="dlopen"
6651 else
6652   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6653 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6654 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6655   echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657   ac_check_lib_save_LIBS=$LIBS
6658 LIBS="-ldl  $LIBS"
6659 cat >conftest.$ac_ext <<_ACEOF
6660 #line $LINENO "configure"
6661 /* confdefs.h.  */
6662 _ACEOF
6663 cat confdefs.h >>conftest.$ac_ext
6664 cat >>conftest.$ac_ext <<_ACEOF
6665 /* end confdefs.h.  */
6666
6667 /* Override any gcc2 internal prototype to avoid an error.  */
6668 #ifdef __cplusplus
6669 extern "C"
6670 #endif
6671 /* We use char because int might match the return type of a gcc2
6672    builtin and then its argument prototype would still apply.  */
6673 char dlopen ();
6674 int
6675 main ()
6676 {
6677 dlopen ();
6678   ;
6679   return 0;
6680 }
6681 _ACEOF
6682 rm -f conftest.$ac_objext conftest$ac_exeext
6683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6684   (eval $ac_link) 2>&5
6685   ac_status=$?
6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); } &&
6688          { ac_try='test -s conftest$ac_exeext'
6689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690   (eval $ac_try) 2>&5
6691   ac_status=$?
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); }; }; then
6694   ac_cv_lib_dl_dlopen=yes
6695 else
6696   echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6698
6699 ac_cv_lib_dl_dlopen=no
6700 fi
6701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6702 LIBS=$ac_check_lib_save_LIBS
6703 fi
6704 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6705 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6706 if test $ac_cv_lib_dl_dlopen = yes; then
6707   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6708 else
6709   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6710 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6711 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6712   echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714   ac_check_lib_save_LIBS=$LIBS
6715 LIBS="-lsvld  $LIBS"
6716 cat >conftest.$ac_ext <<_ACEOF
6717 #line $LINENO "configure"
6718 /* confdefs.h.  */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h.  */
6723
6724 /* Override any gcc2 internal prototype to avoid an error.  */
6725 #ifdef __cplusplus
6726 extern "C"
6727 #endif
6728 /* We use char because int might match the return type of a gcc2
6729    builtin and then its argument prototype would still apply.  */
6730 char dlopen ();
6731 int
6732 main ()
6733 {
6734 dlopen ();
6735   ;
6736   return 0;
6737 }
6738 _ACEOF
6739 rm -f conftest.$ac_objext conftest$ac_exeext
6740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6741   (eval $ac_link) 2>&5
6742   ac_status=$?
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); } &&
6745          { ac_try='test -s conftest$ac_exeext'
6746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747   (eval $ac_try) 2>&5
6748   ac_status=$?
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); }; }; then
6751   ac_cv_lib_svld_dlopen=yes
6752 else
6753   echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6755
6756 ac_cv_lib_svld_dlopen=no
6757 fi
6758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6759 LIBS=$ac_check_lib_save_LIBS
6760 fi
6761 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6762 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6763 if test $ac_cv_lib_svld_dlopen = yes; then
6764   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6765 else
6766   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6767 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6768 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6769   echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771   ac_check_lib_save_LIBS=$LIBS
6772 LIBS="-ldld  $LIBS"
6773 cat >conftest.$ac_ext <<_ACEOF
6774 #line $LINENO "configure"
6775 /* confdefs.h.  */
6776 _ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h.  */
6780
6781 /* Override any gcc2 internal prototype to avoid an error.  */
6782 #ifdef __cplusplus
6783 extern "C"
6784 #endif
6785 /* We use char because int might match the return type of a gcc2
6786    builtin and then its argument prototype would still apply.  */
6787 char dld_link ();
6788 int
6789 main ()
6790 {
6791 dld_link ();
6792   ;
6793   return 0;
6794 }
6795 _ACEOF
6796 rm -f conftest.$ac_objext conftest$ac_exeext
6797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6798   (eval $ac_link) 2>&5
6799   ac_status=$?
6800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); } &&
6802          { ac_try='test -s conftest$ac_exeext'
6803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804   (eval $ac_try) 2>&5
6805   ac_status=$?
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); }; }; then
6808   ac_cv_lib_dld_dld_link=yes
6809 else
6810   echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6812
6813 ac_cv_lib_dld_dld_link=no
6814 fi
6815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6816 LIBS=$ac_check_lib_save_LIBS
6817 fi
6818 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6819 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6820 if test $ac_cv_lib_dld_dld_link = yes; then
6821   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6822 fi
6823
6824
6825 fi
6826
6827
6828 fi
6829
6830
6831 fi
6832
6833
6834 fi
6835
6836
6837 fi
6838
6839     ;;
6840   esac
6841
6842   if test "x$lt_cv_dlopen" != xno; then
6843     enable_dlopen=yes
6844   else
6845     enable_dlopen=no
6846   fi
6847
6848   case $lt_cv_dlopen in
6849   dlopen)
6850     save_CPPFLAGS="$CPPFLAGS"
6851         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6852
6853     save_LDFLAGS="$LDFLAGS"
6854     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6855
6856     save_LIBS="$LIBS"
6857     LIBS="$lt_cv_dlopen_libs $LIBS"
6858
6859     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6860 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6861 if test "${lt_cv_dlopen_self+set}" = set; then
6862   echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864           if test "$cross_compiling" = yes; then :
6865   lt_cv_dlopen_self=cross
6866 else
6867     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6868   lt_status=$lt_dlunknown
6869   cat > conftest.$ac_ext <<EOF
6870 #line 6870 "configure"
6871 #include "confdefs.h"
6872
6873 #if HAVE_DLFCN_H
6874 #include <dlfcn.h>
6875 #endif
6876
6877 #include <stdio.h>
6878
6879 #ifdef RTLD_GLOBAL
6880 #  define LT_DLGLOBAL           RTLD_GLOBAL
6881 #else
6882 #  ifdef DL_GLOBAL
6883 #    define LT_DLGLOBAL         DL_GLOBAL
6884 #  else
6885 #    define LT_DLGLOBAL         0
6886 #  endif
6887 #endif
6888
6889 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6890    find out it does not work in some platform. */
6891 #ifndef LT_DLLAZY_OR_NOW
6892 #  ifdef RTLD_LAZY
6893 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6894 #  else
6895 #    ifdef DL_LAZY
6896 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6897 #    else
6898 #      ifdef RTLD_NOW
6899 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6900 #      else
6901 #        ifdef DL_NOW
6902 #          define LT_DLLAZY_OR_NOW      DL_NOW
6903 #        else
6904 #          define LT_DLLAZY_OR_NOW      0
6905 #        endif
6906 #      endif
6907 #    endif
6908 #  endif
6909 #endif
6910
6911 #ifdef __cplusplus
6912 extern "C" void exit (int);
6913 #endif
6914
6915 void fnord() { int i=42;}
6916 int main ()
6917 {
6918   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6919   int status = $lt_dlunknown;
6920
6921   if (self)
6922     {
6923       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6924       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6925       /* dlclose (self); */
6926     }
6927
6928     exit (status);
6929 }
6930 EOF
6931   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6932   (eval $ac_link) 2>&5
6933   ac_status=$?
6934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6936     (./conftest; exit; ) 2>/dev/null
6937     lt_status=$?
6938     case x$lt_status in
6939       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6940       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6941       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6942     esac
6943   else :
6944     # compilation failed
6945     lt_cv_dlopen_self=no
6946   fi
6947 fi
6948 rm -fr conftest*
6949
6950
6951 fi
6952 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6953 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6954
6955     if test "x$lt_cv_dlopen_self" = xyes; then
6956       LDFLAGS="$LDFLAGS $link_static_flag"
6957       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6958 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6959 if test "${lt_cv_dlopen_self_static+set}" = set; then
6960   echo $ECHO_N "(cached) $ECHO_C" >&6
6961 else
6962           if test "$cross_compiling" = yes; then :
6963   lt_cv_dlopen_self_static=cross
6964 else
6965     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6966   lt_status=$lt_dlunknown
6967   cat > conftest.$ac_ext <<EOF
6968 #line 6968 "configure"
6969 #include "confdefs.h"
6970
6971 #if HAVE_DLFCN_H
6972 #include <dlfcn.h>
6973 #endif
6974
6975 #include <stdio.h>
6976
6977 #ifdef RTLD_GLOBAL
6978 #  define LT_DLGLOBAL           RTLD_GLOBAL
6979 #else
6980 #  ifdef DL_GLOBAL
6981 #    define LT_DLGLOBAL         DL_GLOBAL
6982 #  else
6983 #    define LT_DLGLOBAL         0
6984 #  endif
6985 #endif
6986
6987 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6988    find out it does not work in some platform. */
6989 #ifndef LT_DLLAZY_OR_NOW
6990 #  ifdef RTLD_LAZY
6991 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6992 #  else
6993 #    ifdef DL_LAZY
6994 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6995 #    else
6996 #      ifdef RTLD_NOW
6997 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6998 #      else
6999 #        ifdef DL_NOW
7000 #          define LT_DLLAZY_OR_NOW      DL_NOW
7001 #        else
7002 #          define LT_DLLAZY_OR_NOW      0
7003 #        endif
7004 #      endif
7005 #    endif
7006 #  endif
7007 #endif
7008
7009 #ifdef __cplusplus
7010 extern "C" void exit (int);
7011 #endif
7012
7013 void fnord() { int i=42;}
7014 int main ()
7015 {
7016   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7017   int status = $lt_dlunknown;
7018
7019   if (self)
7020     {
7021       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7022       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7023       /* dlclose (self); */
7024     }
7025
7026     exit (status);
7027 }
7028 EOF
7029   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7030   (eval $ac_link) 2>&5
7031   ac_status=$?
7032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7034     (./conftest; exit; ) 2>/dev/null
7035     lt_status=$?
7036     case x$lt_status in
7037       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7038       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7039       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7040     esac
7041   else :
7042     # compilation failed
7043     lt_cv_dlopen_self_static=no
7044   fi
7045 fi
7046 rm -fr conftest*
7047
7048
7049 fi
7050 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7051 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7052     fi
7053
7054     CPPFLAGS="$save_CPPFLAGS"
7055     LDFLAGS="$save_LDFLAGS"
7056     LIBS="$save_LIBS"
7057     ;;
7058   esac
7059
7060   case $lt_cv_dlopen_self in
7061   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7062   *) enable_dlopen_self=unknown ;;
7063   esac
7064
7065   case $lt_cv_dlopen_self_static in
7066   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7067   *) enable_dlopen_self_static=unknown ;;
7068   esac
7069 fi
7070
7071
7072 if test "$enable_shared" = yes && test "$GCC" = yes; then
7073   case $archive_cmds in
7074   *'~'*)
7075     # FIXME: we may have to deal with multi-command sequences.
7076     ;;
7077   '$CC '*)
7078     # Test whether the compiler implicitly links with -lc since on some
7079     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7080     # to ld, don't add -lc before -lgcc.
7081     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7082 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7083     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7084   echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086   $rm conftest*
7087     echo 'static int dummy;' > conftest.$ac_ext
7088
7089     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7090   (eval $ac_compile) 2>&5
7091   ac_status=$?
7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093   (exit $ac_status); }; then
7094       soname=conftest
7095       lib=conftest
7096       libobjs=conftest.$ac_objext
7097       deplibs=
7098       wl=$lt_cv_prog_cc_wl
7099       compiler_flags=-v
7100       linker_flags=-v
7101       verstring=
7102       output_objdir=.
7103       libname=conftest
7104       save_allow_undefined_flag=$allow_undefined_flag
7105       allow_undefined_flag=
7106       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7107   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7108   ac_status=$?
7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110   (exit $ac_status); }
7111       then
7112         lt_cv_archive_cmds_need_lc=no
7113       else
7114         lt_cv_archive_cmds_need_lc=yes
7115       fi
7116       allow_undefined_flag=$save_allow_undefined_flag
7117     else
7118       cat conftest.err 1>&5
7119     fi
7120 fi
7121
7122     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7123 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7124     ;;
7125   esac
7126 fi
7127 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7128
7129 # The second clause should only fire when bootstrapping the
7130 # libtool distribution, otherwise you forgot to ship ltmain.sh
7131 # with your package, and you will get complaints that there are
7132 # no rules to generate ltmain.sh.
7133 if test -f "$ltmain"; then
7134   :
7135 else
7136   # If there is no Makefile yet, we rely on a make rule to execute
7137   # `config.status --recheck' to rerun these tests and create the
7138   # libtool script then.
7139   test -f Makefile && make "$ltmain"
7140 fi
7141
7142 if test -f "$ltmain"; then
7143   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7144   $rm -f "${ofile}T"
7145
7146   echo creating $ofile
7147
7148   # Now quote all the things that may contain metacharacters while being
7149   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7150   # variables and quote the copies for generation of the libtool script.
7151   for var in echo old_CC old_CFLAGS \
7152     AR AR_FLAGS CC LD LN_S NM SHELL \
7153     reload_flag reload_cmds wl \
7154     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7155     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7156     library_names_spec soname_spec \
7157     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7158     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7159     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7160     old_striplib striplib file_magic_cmd export_symbols_cmds \
7161     deplibs_check_method allow_undefined_flag no_undefined_flag \
7162     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7163     global_symbol_to_c_name_address \
7164     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7165     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7166     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7167
7168     case $var in
7169     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7170     old_postinstall_cmds | old_postuninstall_cmds | \
7171     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7172     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7173     postinstall_cmds | postuninstall_cmds | \
7174     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7175       # Double-quote double-evaled strings.
7176       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7177       ;;
7178     *)
7179       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7180       ;;
7181     esac
7182   done
7183
7184   cat <<__EOF__ > "${ofile}T"
7185 #! $SHELL
7186
7187 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7188 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7189 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7190 #
7191 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7192 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7193 #
7194 # This program is free software; you can redistribute it and/or modify
7195 # it under the terms of the GNU General Public License as published by
7196 # the Free Software Foundation; either version 2 of the License, or
7197 # (at your option) any later version.
7198 #
7199 # This program is distributed in the hope that it will be useful, but
7200 # WITHOUT ANY WARRANTY; without even the implied warranty of
7201 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7202 # General Public License for more details.
7203 #
7204 # You should have received a copy of the GNU General Public License
7205 # along with this program; if not, write to the Free Software
7206 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7207 #
7208 # As a special exception to the GNU General Public License, if you
7209 # distribute this file as part of a program that contains a
7210 # configuration script generated by Autoconf, you may include it under
7211 # the same distribution terms that you use for the rest of that program.
7212
7213 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7214 Xsed="sed -e s/^X//"
7215
7216 # The HP-UX ksh and POSIX shell print the target directory to stdout
7217 # if CDPATH is set.
7218 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7219
7220 # ### BEGIN LIBTOOL CONFIG
7221
7222 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7223
7224 # Shell to use when invoking shell scripts.
7225 SHELL=$lt_SHELL
7226
7227 # Whether or not to build shared libraries.
7228 build_libtool_libs=$enable_shared
7229
7230 # Whether or not to build static libraries.
7231 build_old_libs=$enable_static
7232
7233 # Whether or not to add -lc for building shared libraries.
7234 build_libtool_need_lc=$need_lc
7235
7236 # Whether or not to optimize for fast installation.
7237 fast_install=$enable_fast_install
7238
7239 # The host system.
7240 host_alias=$host_alias
7241 host=$host
7242
7243 # An echo program that does not interpret backslashes.
7244 echo=$lt_echo
7245
7246 # The archiver.
7247 AR=$lt_AR
7248 AR_FLAGS=$lt_AR_FLAGS
7249
7250 # The default C compiler.
7251 CC=$lt_CC
7252
7253 # Is the compiler the GNU C compiler?
7254 with_gcc=$GCC
7255
7256 # The linker used to build libraries.
7257 LD=$lt_LD
7258
7259 # Whether we need hard or soft links.
7260 LN_S=$lt_LN_S
7261
7262 # A BSD-compatible nm program.
7263 NM=$lt_NM
7264
7265 # A symbol stripping program
7266 STRIP=$STRIP
7267
7268 # Used to examine libraries when file_magic_cmd begins "file"
7269 MAGIC_CMD=$MAGIC_CMD
7270
7271 # Used on cygwin: DLL creation program.
7272 DLLTOOL="$DLLTOOL"
7273
7274 # Used on cygwin: object dumper.
7275 OBJDUMP="$OBJDUMP"
7276
7277 # Used on cygwin: assembler.
7278 AS="$AS"
7279
7280 # The name of the directory that contains temporary libtool files.
7281 objdir=$objdir
7282
7283 # How to create reloadable object files.
7284 reload_flag=$lt_reload_flag
7285 reload_cmds=$lt_reload_cmds
7286
7287 # How to pass a linker flag through the compiler.
7288 wl=$lt_wl
7289
7290 # Object file suffix (normally "o").
7291 objext="$ac_objext"
7292
7293 # Old archive suffix (normally "a").
7294 libext="$libext"
7295
7296 # Executable file suffix (normally "").
7297 exeext="$exeext"
7298
7299 # Additional compiler flags for building library objects.
7300 pic_flag=$lt_pic_flag
7301 pic_mode=$pic_mode
7302
7303 # Does compiler simultaneously support -c and -o options?
7304 compiler_c_o=$lt_compiler_c_o
7305
7306 # Can we write directly to a .lo ?
7307 compiler_o_lo=$lt_compiler_o_lo
7308
7309 # Must we lock files when doing compilation ?
7310 need_locks=$lt_need_locks
7311
7312 # Do we need the lib prefix for modules?
7313 need_lib_prefix=$need_lib_prefix
7314
7315 # Do we need a version for libraries?
7316 need_version=$need_version
7317
7318 # Whether dlopen is supported.
7319 dlopen_support=$enable_dlopen
7320
7321 # Whether dlopen of programs is supported.
7322 dlopen_self=$enable_dlopen_self
7323
7324 # Whether dlopen of statically linked programs is supported.
7325 dlopen_self_static=$enable_dlopen_self_static
7326
7327 # Compiler flag to prevent dynamic linking.
7328 link_static_flag=$lt_link_static_flag
7329
7330 # Compiler flag to turn off builtin functions.
7331 no_builtin_flag=$lt_no_builtin_flag
7332
7333 # Compiler flag to allow reflexive dlopens.
7334 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7335
7336 # Compiler flag to generate shared objects directly from archives.
7337 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7338
7339 # Compiler flag to generate thread-safe objects.
7340 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7341
7342 # Library versioning type.
7343 version_type=$version_type
7344
7345 # Format of library name prefix.
7346 libname_spec=$lt_libname_spec
7347
7348 # List of archive names.  First name is the real one, the rest are links.
7349 # The last name is the one that the linker finds with -lNAME.
7350 library_names_spec=$lt_library_names_spec
7351
7352 # The coded name of the library, if different from the real name.
7353 soname_spec=$lt_soname_spec
7354
7355 # Commands used to build and install an old-style archive.
7356 RANLIB=$lt_RANLIB
7357 old_archive_cmds=$lt_old_archive_cmds
7358 old_postinstall_cmds=$lt_old_postinstall_cmds
7359 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7360
7361 # Create an old-style archive from a shared archive.
7362 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7363
7364 # Create a temporary old-style archive to link instead of a shared archive.
7365 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7366
7367 # Commands used to build and install a shared archive.
7368 archive_cmds=$lt_archive_cmds
7369 archive_expsym_cmds=$lt_archive_expsym_cmds
7370 postinstall_cmds=$lt_postinstall_cmds
7371 postuninstall_cmds=$lt_postuninstall_cmds
7372
7373 # Commands to strip libraries.
7374 old_striplib=$lt_old_striplib
7375 striplib=$lt_striplib
7376
7377 # Method to check whether dependent libraries are shared objects.
7378 deplibs_check_method=$lt_deplibs_check_method
7379
7380 # Command to use when deplibs_check_method == file_magic.
7381 file_magic_cmd=$lt_file_magic_cmd
7382
7383 # Flag that allows shared libraries with undefined symbols to be built.
7384 allow_undefined_flag=$lt_allow_undefined_flag
7385
7386 # Flag that forces no undefined symbols.
7387 no_undefined_flag=$lt_no_undefined_flag
7388
7389 # Commands used to finish a libtool library installation in a directory.
7390 finish_cmds=$lt_finish_cmds
7391
7392 # Same as above, but a single script fragment to be evaled but not shown.
7393 finish_eval=$lt_finish_eval
7394
7395 # Take the output of nm and produce a listing of raw symbols and C names.
7396 global_symbol_pipe=$lt_global_symbol_pipe
7397
7398 # Transform the output of nm in a proper C declaration
7399 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7400
7401 # Transform the output of nm in a C name address pair
7402 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7403
7404 # This is the shared library runtime path variable.
7405 runpath_var=$runpath_var
7406
7407 # This is the shared library path variable.
7408 shlibpath_var=$shlibpath_var
7409
7410 # Is shlibpath searched before the hard-coded library search path?
7411 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7412
7413 # How to hardcode a shared library path into an executable.
7414 hardcode_action=$hardcode_action
7415
7416 # Whether we should hardcode library paths into libraries.
7417 hardcode_into_libs=$hardcode_into_libs
7418
7419 # Flag to hardcode \$libdir into a binary during linking.
7420 # This must work even if \$libdir does not exist.
7421 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7422
7423 # Whether we need a single -rpath flag with a separated argument.
7424 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7425
7426 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7427 # resulting binary.
7428 hardcode_direct=$hardcode_direct
7429
7430 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7431 # resulting binary.
7432 hardcode_minus_L=$hardcode_minus_L
7433
7434 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7435 # the resulting binary.
7436 hardcode_shlibpath_var=$hardcode_shlibpath_var
7437
7438 # Variables whose values should be saved in libtool wrapper scripts and
7439 # restored at relink time.
7440 variables_saved_for_relink="$variables_saved_for_relink"
7441
7442 # Whether libtool must link a program against all its dependency libraries.
7443 link_all_deplibs=$link_all_deplibs
7444
7445 # Compile-time system search path for libraries
7446 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7447
7448 # Run-time system search path for libraries
7449 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7450
7451 # Fix the shell variable \$srcfile for the compiler.
7452 fix_srcfile_path="$fix_srcfile_path"
7453
7454 # Set to yes if exported symbols are required.
7455 always_export_symbols=$always_export_symbols
7456
7457 # The commands to list exported symbols.
7458 export_symbols_cmds=$lt_export_symbols_cmds
7459
7460 # The commands to extract the exported symbol list from a shared archive.
7461 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7462
7463 # Symbols that should not be listed in the preloaded symbols.
7464 exclude_expsyms=$lt_exclude_expsyms
7465
7466 # Symbols that must always be exported.
7467 include_expsyms=$lt_include_expsyms
7468
7469 # ### END LIBTOOL CONFIG
7470
7471 __EOF__
7472
7473   case $host_os in
7474   aix3*)
7475     cat <<\EOF >> "${ofile}T"
7476
7477 # AIX sometimes has problems with the GCC collect2 program.  For some
7478 # reason, if we set the COLLECT_NAMES environment variable, the problems
7479 # vanish in a puff of smoke.
7480 if test "X${COLLECT_NAMES+set}" != Xset; then
7481   COLLECT_NAMES=
7482   export COLLECT_NAMES
7483 fi
7484 EOF
7485     ;;
7486   esac
7487
7488   case $host_os in
7489   cygwin* | mingw* | pw32* | os2*)
7490     cat <<'EOF' >> "${ofile}T"
7491       # This is a source program that is used to create dlls on Windows
7492       # Don't remove nor modify the starting and closing comments
7493 # /* ltdll.c starts here */
7494 # #define WIN32_LEAN_AND_MEAN
7495 # #include <windows.h>
7496 # #undef WIN32_LEAN_AND_MEAN
7497 # #include <stdio.h>
7498 #
7499 # #ifndef __CYGWIN__
7500 # #  ifdef __CYGWIN32__
7501 # #    define __CYGWIN__ __CYGWIN32__
7502 # #  endif
7503 # #endif
7504 #
7505 # #ifdef __cplusplus
7506 # extern "C" {
7507 # #endif
7508 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7509 # #ifdef __cplusplus
7510 # }
7511 # #endif
7512 #
7513 # #ifdef __CYGWIN__
7514 # #include <cygwin/cygwin_dll.h>
7515 # DECLARE_CYGWIN_DLL( DllMain );
7516 # #endif
7517 # HINSTANCE __hDllInstance_base;
7518 #
7519 # BOOL APIENTRY
7520 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7521 # {
7522 #   __hDllInstance_base = hInst;
7523 #   return TRUE;
7524 # }
7525 # /* ltdll.c ends here */
7526         # This is a source program that is used to create import libraries
7527         # on Windows for dlls which lack them. Don't remove nor modify the
7528         # starting and closing comments
7529 # /* impgen.c starts here */
7530 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7531 #
7532 #  This file is part of GNU libtool.
7533 #
7534 #  This program is free software; you can redistribute it and/or modify
7535 #  it under the terms of the GNU General Public License as published by
7536 #  the Free Software Foundation; either version 2 of the License, or
7537 #  (at your option) any later version.
7538 #
7539 #  This program is distributed in the hope that it will be useful,
7540 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7541 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7542 #  GNU General Public License for more details.
7543 #
7544 #  You should have received a copy of the GNU General Public License
7545 #  along with this program; if not, write to the Free Software
7546 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7547 #  */
7548 #
7549 # #include <stdio.h>            /* for printf() */
7550 # #include <unistd.h>           /* for open(), lseek(), read() */
7551 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7552 # #include <string.h>           /* for strdup() */
7553 #
7554 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7555 # #ifndef O_BINARY
7556 # #define O_BINARY 0
7557 # #endif
7558 #
7559 # static unsigned int
7560 # pe_get16 (fd, offset)
7561 #      int fd;
7562 #      int offset;
7563 # {
7564 #   unsigned char b[2];
7565 #   lseek (fd, offset, SEEK_SET);
7566 #   read (fd, b, 2);
7567 #   return b[0] + (b[1]<<8);
7568 # }
7569 #
7570 # static unsigned int
7571 # pe_get32 (fd, offset)
7572 #     int fd;
7573 #     int offset;
7574 # {
7575 #   unsigned char b[4];
7576 #   lseek (fd, offset, SEEK_SET);
7577 #   read (fd, b, 4);
7578 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7579 # }
7580 #
7581 # static unsigned int
7582 # pe_as32 (ptr)
7583 #      void *ptr;
7584 # {
7585 #   unsigned char *b = ptr;
7586 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7587 # }
7588 #
7589 # int
7590 # main (argc, argv)
7591 #     int argc;
7592 #     char *argv[];
7593 # {
7594 #     int dll;
7595 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7596 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
7597 #     unsigned long name_rvas, nexp;
7598 #     unsigned char *expdata, *erva;
7599 #     char *filename, *dll_name;
7600 #
7601 #     filename = argv[1];
7602 #
7603 #     dll = open(filename, O_RDONLY|O_BINARY);
7604 #     if (dll < 1)
7605 #       return 1;
7606 #
7607 #     dll_name = filename;
7608 #
7609 #     for (i=0; filename[i]; i++)
7610 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7611 #           dll_name = filename + i +1;
7612 #
7613 #     pe_header_offset = pe_get32 (dll, 0x3c);
7614 #     opthdr_ofs = pe_header_offset + 4 + 20;
7615 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7616 #
7617 #     if (num_entries < 1) /* no exports */
7618 #       return 1;
7619 #
7620 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7621 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
7622 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7623 #     secptr = (pe_header_offset + 4 + 20 +
7624 #             pe_get16 (dll, pe_header_offset + 4 + 16));
7625 #
7626 #     expptr = 0;
7627 #     for (i = 0; i < nsections; i++)
7628 #     {
7629 #       char sname[8];
7630 #       unsigned long secptr1 = secptr + 40 * i;
7631 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7632 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7633 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7634 #       lseek(dll, secptr1, SEEK_SET);
7635 #       read(dll, sname, 8);
7636 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7637 #       {
7638 #           expptr = fptr + (export_rva - vaddr);
7639 #           if (export_rva + export_size > vaddr + vsize)
7640 #               export_size = vsize - (export_rva - vaddr);
7641 #           break;
7642 #       }
7643 #     }
7644 #
7645 #     expdata = (unsigned char*)malloc(export_size);
7646 #     lseek (dll, expptr, SEEK_SET);
7647 #     read (dll, expdata, export_size);
7648 #     erva = expdata - export_rva;
7649 #
7650 #     nexp = pe_as32 (expdata+24);
7651 #     name_rvas = pe_as32 (expdata+32);
7652 #
7653 #     printf ("EXPORTS\n");
7654 #     for (i = 0; i<nexp; i++)
7655 #     {
7656 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7657 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7658 #     }
7659 #
7660 #     return 0;
7661 # }
7662 # /* impgen.c ends here */
7663
7664 EOF
7665     ;;
7666   esac
7667
7668   # We use sed instead of cat because bash on DJGPP gets confused if
7669   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7670   # text mode, it properly converts lines to CR/LF.  This bash problem
7671   # is reportedly fixed, but why not run on old versions too?
7672   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7673
7674   mv -f "${ofile}T" "$ofile" || \
7675     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7676   chmod +x "$ofile"
7677 fi
7678
7679
7680
7681
7682
7683 # This can be used to rebuild libtool when needed
7684 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7685
7686 # Always use our own libtool.
7687 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7688
7689 # Prevent multiple expansion
7690
7691
7692
7693 # declare the modules (no optional module)
7694
7695 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
7696 ACLOCAL="$ACLOCAL -I acmacro"
7697
7698
7699 ac_ext=c
7700 ac_cpp='$CPP $CPPFLAGS'
7701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7704 if test -n "$ac_tool_prefix"; then
7705   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7706 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7707 echo "$as_me:$LINENO: checking for $ac_word" >&5
7708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7709 if test "${ac_cv_prog_CC+set}" = set; then
7710   echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712   if test -n "$CC"; then
7713   ac_cv_prog_CC="$CC" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718   IFS=$as_save_IFS
7719   test -z "$as_dir" && as_dir=.
7720   for ac_exec_ext in '' $ac_executable_extensions; do
7721   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722     ac_cv_prog_CC="${ac_tool_prefix}gcc"
7723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7724     break 2
7725   fi
7726 done
7727 done
7728
7729 fi
7730 fi
7731 CC=$ac_cv_prog_CC
7732 if test -n "$CC"; then
7733   echo "$as_me:$LINENO: result: $CC" >&5
7734 echo "${ECHO_T}$CC" >&6
7735 else
7736   echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6
7738 fi
7739
7740 fi
7741 if test -z "$ac_cv_prog_CC"; then
7742   ac_ct_CC=$CC
7743   # Extract the first word of "gcc", so it can be a program name with args.
7744 set dummy gcc; ac_word=$2
7745 echo "$as_me:$LINENO: checking for $ac_word" >&5
7746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7747 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7748   echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750   if test -n "$ac_ct_CC"; then
7751   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7752 else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7755 do
7756   IFS=$as_save_IFS
7757   test -z "$as_dir" && as_dir=.
7758   for ac_exec_ext in '' $ac_executable_extensions; do
7759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760     ac_cv_prog_ac_ct_CC="gcc"
7761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762     break 2
7763   fi
7764 done
7765 done
7766
7767 fi
7768 fi
7769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7770 if test -n "$ac_ct_CC"; then
7771   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7772 echo "${ECHO_T}$ac_ct_CC" >&6
7773 else
7774   echo "$as_me:$LINENO: result: no" >&5
7775 echo "${ECHO_T}no" >&6
7776 fi
7777
7778   CC=$ac_ct_CC
7779 else
7780   CC="$ac_cv_prog_CC"
7781 fi
7782
7783 if test -z "$CC"; then
7784   if test -n "$ac_tool_prefix"; then
7785   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7786 set dummy ${ac_tool_prefix}cc; ac_word=$2
7787 echo "$as_me:$LINENO: checking for $ac_word" >&5
7788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7789 if test "${ac_cv_prog_CC+set}" = set; then
7790   echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792   if test -n "$CC"; then
7793   ac_cv_prog_CC="$CC" # Let the user override the test.
7794 else
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7797 do
7798   IFS=$as_save_IFS
7799   test -z "$as_dir" && as_dir=.
7800   for ac_exec_ext in '' $ac_executable_extensions; do
7801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7802     ac_cv_prog_CC="${ac_tool_prefix}cc"
7803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7804     break 2
7805   fi
7806 done
7807 done
7808
7809 fi
7810 fi
7811 CC=$ac_cv_prog_CC
7812 if test -n "$CC"; then
7813   echo "$as_me:$LINENO: result: $CC" >&5
7814 echo "${ECHO_T}$CC" >&6
7815 else
7816   echo "$as_me:$LINENO: result: no" >&5
7817 echo "${ECHO_T}no" >&6
7818 fi
7819
7820 fi
7821 if test -z "$ac_cv_prog_CC"; then
7822   ac_ct_CC=$CC
7823   # Extract the first word of "cc", so it can be a program name with args.
7824 set dummy cc; ac_word=$2
7825 echo "$as_me:$LINENO: checking for $ac_word" >&5
7826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7828   echo $ECHO_N "(cached) $ECHO_C" >&6
7829 else
7830   if test -n "$ac_ct_CC"; then
7831   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7835 do
7836   IFS=$as_save_IFS
7837   test -z "$as_dir" && as_dir=.
7838   for ac_exec_ext in '' $ac_executable_extensions; do
7839   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7840     ac_cv_prog_ac_ct_CC="cc"
7841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7842     break 2
7843   fi
7844 done
7845 done
7846
7847 fi
7848 fi
7849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7850 if test -n "$ac_ct_CC"; then
7851   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7852 echo "${ECHO_T}$ac_ct_CC" >&6
7853 else
7854   echo "$as_me:$LINENO: result: no" >&5
7855 echo "${ECHO_T}no" >&6
7856 fi
7857
7858   CC=$ac_ct_CC
7859 else
7860   CC="$ac_cv_prog_CC"
7861 fi
7862
7863 fi
7864 if test -z "$CC"; then
7865   # Extract the first word of "cc", so it can be a program name with args.
7866 set dummy cc; ac_word=$2
7867 echo "$as_me:$LINENO: checking for $ac_word" >&5
7868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7869 if test "${ac_cv_prog_CC+set}" = set; then
7870   echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872   if test -n "$CC"; then
7873   ac_cv_prog_CC="$CC" # Let the user override the test.
7874 else
7875   ac_prog_rejected=no
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $PATH
7878 do
7879   IFS=$as_save_IFS
7880   test -z "$as_dir" && as_dir=.
7881   for ac_exec_ext in '' $ac_executable_extensions; do
7882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7883     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7884        ac_prog_rejected=yes
7885        continue
7886      fi
7887     ac_cv_prog_CC="cc"
7888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7889     break 2
7890   fi
7891 done
7892 done
7893
7894 if test $ac_prog_rejected = yes; then
7895   # We found a bogon in the path, so make sure we never use it.
7896   set dummy $ac_cv_prog_CC
7897   shift
7898   if test $# != 0; then
7899     # We chose a different compiler from the bogus one.
7900     # However, it has the same basename, so the bogon will be chosen
7901     # first if we set CC to just the basename; use the full file name.
7902     shift
7903     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7904   fi
7905 fi
7906 fi
7907 fi
7908 CC=$ac_cv_prog_CC
7909 if test -n "$CC"; then
7910   echo "$as_me:$LINENO: result: $CC" >&5
7911 echo "${ECHO_T}$CC" >&6
7912 else
7913   echo "$as_me:$LINENO: result: no" >&5
7914 echo "${ECHO_T}no" >&6
7915 fi
7916
7917 fi
7918 if test -z "$CC"; then
7919   if test -n "$ac_tool_prefix"; then
7920   for ac_prog in cl
7921   do
7922     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7924 echo "$as_me:$LINENO: checking for $ac_word" >&5
7925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7926 if test "${ac_cv_prog_CC+set}" = set; then
7927   echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929   if test -n "$CC"; then
7930   ac_cv_prog_CC="$CC" # Let the user override the test.
7931 else
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7934 do
7935   IFS=$as_save_IFS
7936   test -z "$as_dir" && as_dir=.
7937   for ac_exec_ext in '' $ac_executable_extensions; do
7938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7939     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7941     break 2
7942   fi
7943 done
7944 done
7945
7946 fi
7947 fi
7948 CC=$ac_cv_prog_CC
7949 if test -n "$CC"; then
7950   echo "$as_me:$LINENO: result: $CC" >&5
7951 echo "${ECHO_T}$CC" >&6
7952 else
7953   echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6
7955 fi
7956
7957     test -n "$CC" && break
7958   done
7959 fi
7960 if test -z "$CC"; then
7961   ac_ct_CC=$CC
7962   for ac_prog in cl
7963 do
7964   # Extract the first word of "$ac_prog", so it can be a program name with args.
7965 set dummy $ac_prog; ac_word=$2
7966 echo "$as_me:$LINENO: checking for $ac_word" >&5
7967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7968 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7969   echo $ECHO_N "(cached) $ECHO_C" >&6
7970 else
7971   if test -n "$ac_ct_CC"; then
7972   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7973 else
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7976 do
7977   IFS=$as_save_IFS
7978   test -z "$as_dir" && as_dir=.
7979   for ac_exec_ext in '' $ac_executable_extensions; do
7980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7981     ac_cv_prog_ac_ct_CC="$ac_prog"
7982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7983     break 2
7984   fi
7985 done
7986 done
7987
7988 fi
7989 fi
7990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7991 if test -n "$ac_ct_CC"; then
7992   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7993 echo "${ECHO_T}$ac_ct_CC" >&6
7994 else
7995   echo "$as_me:$LINENO: result: no" >&5
7996 echo "${ECHO_T}no" >&6
7997 fi
7998
7999   test -n "$ac_ct_CC" && break
8000 done
8001
8002   CC=$ac_ct_CC
8003 fi
8004
8005 fi
8006
8007
8008 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
8009 See \`config.log' for more details." >&5
8010 echo "$as_me: error: no acceptable C compiler found in \$PATH
8011 See \`config.log' for more details." >&2;}
8012    { (exit 1); exit 1; }; }
8013
8014 # Provide some information about the compiler.
8015 echo "$as_me:$LINENO:" \
8016      "checking for C compiler version" >&5
8017 ac_compiler=`set X $ac_compile; echo $2`
8018 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8019   (eval $ac_compiler --version </dev/null >&5) 2>&5
8020   ac_status=$?
8021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022   (exit $ac_status); }
8023 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8024   (eval $ac_compiler -v </dev/null >&5) 2>&5
8025   ac_status=$?
8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   (exit $ac_status); }
8028 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8029   (eval $ac_compiler -V </dev/null >&5) 2>&5
8030   ac_status=$?
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); }
8033
8034 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
8035 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
8036 if test "${ac_cv_c_compiler_gnu+set}" = set; then
8037   echo $ECHO_N "(cached) $ECHO_C" >&6
8038 else
8039   cat >conftest.$ac_ext <<_ACEOF
8040 #line $LINENO "configure"
8041 /* confdefs.h.  */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h.  */
8046
8047 int
8048 main ()
8049 {
8050 #ifndef __GNUC__
8051        choke me
8052 #endif
8053
8054   ;
8055   return 0;
8056 }
8057 _ACEOF
8058 rm -f conftest.$ac_objext
8059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8060   (eval $ac_compile) 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); } &&
8064          { ac_try='test -s conftest.$ac_objext'
8065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066   (eval $ac_try) 2>&5
8067   ac_status=$?
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); }; }; then
8070   ac_compiler_gnu=yes
8071 else
8072   echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8074
8075 ac_compiler_gnu=no
8076 fi
8077 rm -f conftest.$ac_objext conftest.$ac_ext
8078 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8079
8080 fi
8081 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
8082 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
8083 GCC=`test $ac_compiler_gnu = yes && echo yes`
8084 ac_test_CFLAGS=${CFLAGS+set}
8085 ac_save_CFLAGS=$CFLAGS
8086 CFLAGS="-g"
8087 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
8088 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
8089 if test "${ac_cv_prog_cc_g+set}" = set; then
8090   echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092   cat >conftest.$ac_ext <<_ACEOF
8093 #line $LINENO "configure"
8094 /* confdefs.h.  */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h.  */
8099
8100 int
8101 main ()
8102 {
8103
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 rm -f conftest.$ac_objext
8109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8110   (eval $ac_compile) 2>&5
8111   ac_status=$?
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); } &&
8114          { ac_try='test -s conftest.$ac_objext'
8115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116   (eval $ac_try) 2>&5
8117   ac_status=$?
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); }; }; then
8120   ac_cv_prog_cc_g=yes
8121 else
8122   echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8124
8125 ac_cv_prog_cc_g=no
8126 fi
8127 rm -f conftest.$ac_objext conftest.$ac_ext
8128 fi
8129 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
8130 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
8131 if test "$ac_test_CFLAGS" = set; then
8132   CFLAGS=$ac_save_CFLAGS
8133 elif test $ac_cv_prog_cc_g = yes; then
8134   if test "$GCC" = yes; then
8135     CFLAGS="-g -O2"
8136   else
8137     CFLAGS="-g"
8138   fi
8139 else
8140   if test "$GCC" = yes; then
8141     CFLAGS="-O2"
8142   else
8143     CFLAGS=
8144   fi
8145 fi
8146 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8147 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8148 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8149   echo $ECHO_N "(cached) $ECHO_C" >&6
8150 else
8151   ac_cv_prog_cc_stdc=no
8152 ac_save_CC=$CC
8153 cat >conftest.$ac_ext <<_ACEOF
8154 #line $LINENO "configure"
8155 /* confdefs.h.  */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h.  */
8160 #include <stdarg.h>
8161 #include <stdio.h>
8162 #include <sys/types.h>
8163 #include <sys/stat.h>
8164 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
8165 struct buf { int x; };
8166 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8167 static char *e (p, i)
8168      char **p;
8169      int i;
8170 {
8171   return p[i];
8172 }
8173 static char *f (char * (*g) (char **, int), char **p, ...)
8174 {
8175   char *s;
8176   va_list v;
8177   va_start (v,p);
8178   s = g (p, va_arg (v,int));
8179   va_end (v);
8180   return s;
8181 }
8182 int test (int i, double x);
8183 struct s1 {int (*f) (int a);};
8184 struct s2 {int (*f) (double a);};
8185 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8186 int argc;
8187 char **argv;
8188 int
8189 main ()
8190 {
8191 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
8192   ;
8193   return 0;
8194 }
8195 _ACEOF
8196 # Don't try gcc -ansi; that turns off useful extensions and
8197 # breaks some systems' header files.
8198 # AIX                   -qlanglvl=ansi
8199 # Ultrix and OSF/1      -std1
8200 # HP-UX 10.20 and later -Ae
8201 # HP-UX older versions  -Aa -D_HPUX_SOURCE
8202 # SVR4                  -Xc -D__EXTENSIONS__
8203 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8204 do
8205   CC="$ac_save_CC $ac_arg"
8206   rm -f conftest.$ac_objext
8207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8208   (eval $ac_compile) 2>&5
8209   ac_status=$?
8210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211   (exit $ac_status); } &&
8212          { ac_try='test -s conftest.$ac_objext'
8213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214   (eval $ac_try) 2>&5
8215   ac_status=$?
8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217   (exit $ac_status); }; }; then
8218   ac_cv_prog_cc_stdc=$ac_arg
8219 break
8220 else
8221   echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8223
8224 fi
8225 rm -f conftest.$ac_objext
8226 done
8227 rm -f conftest.$ac_ext conftest.$ac_objext
8228 CC=$ac_save_CC
8229
8230 fi
8231
8232 case "x$ac_cv_prog_cc_stdc" in
8233   x|xno)
8234     echo "$as_me:$LINENO: result: none needed" >&5
8235 echo "${ECHO_T}none needed" >&6 ;;
8236   *)
8237     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8238 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8239     CC="$CC $ac_cv_prog_cc_stdc" ;;
8240 esac
8241
8242 # Some people use a C++ compiler to compile C.  Since we use `exit',
8243 # in C++ we need to declare it.  In case someone uses the same compiler
8244 # for both compiling C and C++ we need to have the C++ compiler decide
8245 # the declaration of exit, since it's the most demanding environment.
8246 cat >conftest.$ac_ext <<_ACEOF
8247 #ifndef __cplusplus
8248   choke me
8249 #endif
8250 _ACEOF
8251 rm -f conftest.$ac_objext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8253   (eval $ac_compile) 2>&5
8254   ac_status=$?
8255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256   (exit $ac_status); } &&
8257          { ac_try='test -s conftest.$ac_objext'
8258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259   (eval $ac_try) 2>&5
8260   ac_status=$?
8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); }; }; then
8263   for ac_declaration in \
8264    ''\
8265    '#include <stdlib.h>' \
8266    'extern "C" void std::exit (int) throw (); using std::exit;' \
8267    'extern "C" void std::exit (int); using std::exit;' \
8268    'extern "C" void exit (int) throw ();' \
8269    'extern "C" void exit (int);' \
8270    'void exit (int);'
8271 do
8272   cat >conftest.$ac_ext <<_ACEOF
8273 #line $LINENO "configure"
8274 /* confdefs.h.  */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h.  */
8279 #include <stdlib.h>
8280 $ac_declaration
8281 int
8282 main ()
8283 {
8284 exit (42);
8285   ;
8286   return 0;
8287 }
8288 _ACEOF
8289 rm -f conftest.$ac_objext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8291   (eval $ac_compile) 2>&5
8292   ac_status=$?
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); } &&
8295          { ac_try='test -s conftest.$ac_objext'
8296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297   (eval $ac_try) 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); }; }; then
8301   :
8302 else
8303   echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8305
8306 continue
8307 fi
8308 rm -f conftest.$ac_objext conftest.$ac_ext
8309   cat >conftest.$ac_ext <<_ACEOF
8310 #line $LINENO "configure"
8311 /* confdefs.h.  */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h.  */
8316 $ac_declaration
8317 int
8318 main ()
8319 {
8320 exit (42);
8321   ;
8322   return 0;
8323 }
8324 _ACEOF
8325 rm -f conftest.$ac_objext
8326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8327   (eval $ac_compile) 2>&5
8328   ac_status=$?
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); } &&
8331          { ac_try='test -s conftest.$ac_objext'
8332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333   (eval $ac_try) 2>&5
8334   ac_status=$?
8335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336   (exit $ac_status); }; }; then
8337   break
8338 else
8339   echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8341
8342 fi
8343 rm -f conftest.$ac_objext conftest.$ac_ext
8344 done
8345 rm -f conftest*
8346 if test -n "$ac_declaration"; then
8347   echo '#ifdef __cplusplus' >>confdefs.h
8348   echo $ac_declaration      >>confdefs.h
8349   echo '#endif'             >>confdefs.h
8350 fi
8351
8352 else
8353   echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8355
8356 fi
8357 rm -f conftest.$ac_objext conftest.$ac_ext
8358 ac_ext=c
8359 ac_cpp='$CPP $CPPFLAGS'
8360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8363
8364 depcc="$CC"   am_compiler_list=
8365
8366 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8367 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8368 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8369   echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8372   # We make a subdir and do the tests there.  Otherwise we can end up
8373   # making bogus files that we don't know about and never remove.  For
8374   # instance it was reported that on HP-UX the gcc test will end up
8375   # making a dummy file named `D' -- because `-MD' means `put the output
8376   # in D'.
8377   mkdir conftest.dir
8378   # Copy depcomp to subdir because otherwise we won't find it if we're
8379   # using a relative directory.
8380   cp "$am_depcomp" conftest.dir
8381   cd conftest.dir
8382
8383   am_cv_CC_dependencies_compiler_type=none
8384   if test "$am_compiler_list" = ""; then
8385      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8386   fi
8387   for depmode in $am_compiler_list; do
8388     # We need to recreate these files for each test, as the compiler may
8389     # overwrite some of them when testing with obscure command lines.
8390     # This happens at least with the AIX C compiler.
8391     echo '#include "conftest.h"' > conftest.c
8392     echo 'int i;' > conftest.h
8393     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
8394
8395     case $depmode in
8396     nosideeffect)
8397       # after this tag, mechanisms are not by side-effect, so they'll
8398       # only be used when explicitly requested
8399       if test "x$enable_dependency_tracking" = xyes; then
8400         continue
8401       else
8402         break
8403       fi
8404       ;;
8405     none) break ;;
8406     esac
8407     # We check with `-c' and `-o' for the sake of the "dashmstdout"
8408     # mode.  It turns out that the SunPro C++ compiler does not properly
8409     # handle `-M -o', and we need to detect this.
8410     if depmode=$depmode \
8411        source=conftest.c object=conftest.o \
8412        depfile=conftest.Po tmpdepfile=conftest.TPo \
8413        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
8414        grep conftest.h conftest.Po > /dev/null 2>&1 &&
8415        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8416       am_cv_CC_dependencies_compiler_type=$depmode
8417       break
8418     fi
8419   done
8420
8421   cd ..
8422   rm -rf conftest.dir
8423 else
8424   am_cv_CC_dependencies_compiler_type=none
8425 fi
8426
8427 fi
8428 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
8429 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
8430 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8431
8432
8433
8434 if
8435   test "x$enable_dependency_tracking" != xno \
8436   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
8437   am__fastdepCC_TRUE=
8438   am__fastdepCC_FALSE='#'
8439 else
8440   am__fastdepCC_TRUE='#'
8441   am__fastdepCC_FALSE=
8442 fi
8443
8444
8445 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
8446 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
8447 # Just in case
8448 sleep 1
8449 echo timestamp > conftest.file
8450 # Do `set' in a subshell so we don't clobber the current shell's
8451 # arguments.  Must try -L first in case configure is actually a
8452 # symlink; some systems play weird games with the mod time of symlinks
8453 # (eg FreeBSD returns the mod time of the symlink's containing
8454 # directory).
8455 if (
8456    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8457    if test "$*" = "X"; then
8458       # -L didn't work.
8459       set X `ls -t $srcdir/configure conftest.file`
8460    fi
8461    rm -f conftest.file
8462    if test "$*" != "X $srcdir/configure conftest.file" \
8463       && test "$*" != "X conftest.file $srcdir/configure"; then
8464
8465       # If neither matched, then we have a broken ls.  This can happen
8466       # if, for instance, CONFIG_SHELL is bash and it inherits a
8467       # broken ls alias from the environment.  This has actually
8468       # happened.  Such a system could not be considered "sane".
8469       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
8470 alias in your environment" >&5
8471 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
8472 alias in your environment" >&2;}
8473    { (exit 1); exit 1; }; }
8474    fi
8475
8476    test "$2" = conftest.file
8477    )
8478 then
8479    # Ok.
8480    :
8481 else
8482    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
8483 Check your system clock" >&5
8484 echo "$as_me: error: newly created file is older than distributed files!
8485 Check your system clock" >&2;}
8486    { (exit 1); exit 1; }; }
8487 fi
8488 echo "$as_me:$LINENO: result: yes" >&5
8489 echo "${ECHO_T}yes" >&6
8490 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8491 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8492 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
8493 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496   cat >conftest.make <<\_ACEOF
8497 all:
8498         @echo 'ac_maketemp="$(MAKE)"'
8499 _ACEOF
8500 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8501 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8502 if test -n "$ac_maketemp"; then
8503   eval ac_cv_prog_make_${ac_make}_set=yes
8504 else
8505   eval ac_cv_prog_make_${ac_make}_set=no
8506 fi
8507 rm -f conftest.make
8508 fi
8509 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8510   echo "$as_me:$LINENO: result: yes" >&5
8511 echo "${ECHO_T}yes" >&6
8512   SET_MAKE=
8513 else
8514   echo "$as_me:$LINENO: result: no" >&5
8515 echo "${ECHO_T}no" >&6
8516   SET_MAKE="MAKE=${MAKE-make}"
8517 fi
8518
8519
8520 # Check architecture signature
8521
8522 # Check for the architecture
8523 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8524 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8525 if test "${ac_cv_c_bigendian+set}" = set; then
8526   echo $ECHO_N "(cached) $ECHO_C" >&6
8527 else
8528   # See if sys/param.h defines the BYTE_ORDER macro.
8529 cat >conftest.$ac_ext <<_ACEOF
8530 #line $LINENO "configure"
8531 /* confdefs.h.  */
8532 _ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h.  */
8536 #include <sys/types.h>
8537 #include <sys/param.h>
8538
8539 int
8540 main ()
8541 {
8542 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8543  bogus endian macros
8544 #endif
8545
8546   ;
8547   return 0;
8548 }
8549 _ACEOF
8550 rm -f conftest.$ac_objext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8552   (eval $ac_compile) 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); } &&
8556          { ac_try='test -s conftest.$ac_objext'
8557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558   (eval $ac_try) 2>&5
8559   ac_status=$?
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); }; }; then
8562   # It does; now see whether it defined to BIG_ENDIAN or not.
8563 cat >conftest.$ac_ext <<_ACEOF
8564 #line $LINENO "configure"
8565 /* confdefs.h.  */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h.  */
8570 #include <sys/types.h>
8571 #include <sys/param.h>
8572
8573 int
8574 main ()
8575 {
8576 #if BYTE_ORDER != BIG_ENDIAN
8577  not big endian
8578 #endif
8579
8580   ;
8581   return 0;
8582 }
8583 _ACEOF
8584 rm -f conftest.$ac_objext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8586   (eval $ac_compile) 2>&5
8587   ac_status=$?
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); } &&
8590          { ac_try='test -s conftest.$ac_objext'
8591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592   (eval $ac_try) 2>&5
8593   ac_status=$?
8594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   (exit $ac_status); }; }; then
8596   ac_cv_c_bigendian=yes
8597 else
8598   echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8600
8601 ac_cv_c_bigendian=no
8602 fi
8603 rm -f conftest.$ac_objext conftest.$ac_ext
8604 else
8605   echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8607
8608 # It does not; compile a test program.
8609 if test "$cross_compiling" = yes; then
8610   # try to guess the endianness by grepping values into an object file
8611   ac_cv_c_bigendian=unknown
8612   cat >conftest.$ac_ext <<_ACEOF
8613 #line $LINENO "configure"
8614 /* confdefs.h.  */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h.  */
8619 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8620 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8621 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8622 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8623 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8624 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8625 int
8626 main ()
8627 {
8628  _ascii (); _ebcdic ();
8629   ;
8630   return 0;
8631 }
8632 _ACEOF
8633 rm -f conftest.$ac_objext
8634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8635   (eval $ac_compile) 2>&5
8636   ac_status=$?
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); } &&
8639          { ac_try='test -s conftest.$ac_objext'
8640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641   (eval $ac_try) 2>&5
8642   ac_status=$?
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); }; }; then
8645   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8646   ac_cv_c_bigendian=yes
8647 fi
8648 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8649   if test "$ac_cv_c_bigendian" = unknown; then
8650     ac_cv_c_bigendian=no
8651   else
8652     # finding both strings is unlikely to happen, but who knows?
8653     ac_cv_c_bigendian=unknown
8654   fi
8655 fi
8656 else
8657   echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8659
8660 fi
8661 rm -f conftest.$ac_objext conftest.$ac_ext
8662 else
8663   cat >conftest.$ac_ext <<_ACEOF
8664 #line $LINENO "configure"
8665 /* confdefs.h.  */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h.  */
8670 int
8671 main ()
8672 {
8673   /* Are we little or big endian?  From Harbison&Steele.  */
8674   union
8675   {
8676     long l;
8677     char c[sizeof (long)];
8678   } u;
8679   u.l = 1;
8680   exit (u.c[sizeof (long) - 1] == 1);
8681 }
8682 _ACEOF
8683 rm -f conftest$ac_exeext
8684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8685   (eval $ac_link) 2>&5
8686   ac_status=$?
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690   (eval $ac_try) 2>&5
8691   ac_status=$?
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); }; }; then
8694   ac_cv_c_bigendian=no
8695 else
8696   echo "$as_me: program exited with status $ac_status" >&5
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8699
8700 ( exit $ac_status )
8701 ac_cv_c_bigendian=yes
8702 fi
8703 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8704 fi
8705 fi
8706 rm -f conftest.$ac_objext conftest.$ac_ext
8707 fi
8708 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8709 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8710 case $ac_cv_c_bigendian in
8711   yes)
8712     endian=1 ;;
8713   no)
8714     endian=0 ;;
8715   *)
8716     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
8717 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
8718    { (exit 1); exit 1; }; } ;;
8719 esac
8720
8721
8722 cat >>confdefs.h <<_ACEOF
8723 #define GRAS_BIGENDIAN $endian
8724 _ACEOF
8725
8726
8727 echo "$as_me:$LINENO: checking size of char" >&5
8728 echo $ECHO_N "checking size of char... $ECHO_C" >&6
8729     if test "${ac_cv_sizeof_char+set}" = set; then
8730   echo $ECHO_N "(cached) $ECHO_C" >&6
8731 else
8732   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
8733    cat >conftest.$ac_ext <<_ACEOF
8734 #line $LINENO "configure"
8735 /* confdefs.h.  */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h.  */
8740 #include "confdefs.h"
8741    #include <sys/types.h>
8742
8743
8744 int
8745 main ()
8746 {
8747 switch (0) case 0: case (sizeof (char) == $ac_size):;
8748   ;
8749   return 0;
8750 }
8751 _ACEOF
8752 rm -f conftest.$ac_objext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754   (eval $ac_compile) 2>&5
8755   ac_status=$?
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); } &&
8758          { ac_try='test -s conftest.$ac_objext'
8759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760   (eval $ac_try) 2>&5
8761   ac_status=$?
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); }; }; then
8764   ac_cv_sizeof_char=$ac_size
8765 else
8766   echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8768
8769 fi
8770 rm -f conftest.$ac_objext conftest.$ac_ext
8771    if test x$ac_cv_sizeof_char != x ; then break; fi
8772   done
8773
8774 fi
8775
8776
8777 unspecif=$ac_cv_sizeof_char
8778 if test x$unspecif = x ; then
8779   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
8780 echo "$as_me: error: cannot determine a size for char" >&2;}
8781    { (exit 1); exit 1; }; }
8782 fi
8783
8784     if test "${ac_cv_sizeof_signed_char+set}" = set; then
8785   echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
8788    cat >conftest.$ac_ext <<_ACEOF
8789 #line $LINENO "configure"
8790 /* confdefs.h.  */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h.  */
8795 #include "confdefs.h"
8796    #include <sys/types.h>
8797
8798
8799 int
8800 main ()
8801 {
8802 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
8803   ;
8804   return 0;
8805 }
8806 _ACEOF
8807 rm -f conftest.$ac_objext
8808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8809   (eval $ac_compile) 2>&5
8810   ac_status=$?
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); } &&
8813          { ac_try='test -s conftest.$ac_objext'
8814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815   (eval $ac_try) 2>&5
8816   ac_status=$?
8817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818   (exit $ac_status); }; }; then
8819   ac_cv_sizeof_signed_char=$ac_size
8820 else
8821   echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8823
8824 fi
8825 rm -f conftest.$ac_objext conftest.$ac_ext
8826    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
8827   done
8828
8829 fi
8830
8831
8832 signed=$ac_cv_sizeof_signed_char
8833 if test x$signed = x ; then
8834   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
8835 echo "$as_me: error: cannot determine a size for signed char" >&2;}
8836    { (exit 1); exit 1; }; }
8837 fi
8838 if test x$unspecif != x$signed ; then
8839   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
8840 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
8841    { (exit 1); exit 1; }; }
8842 fi
8843
8844     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
8845   echo $ECHO_N "(cached) $ECHO_C" >&6
8846 else
8847   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
8848    cat >conftest.$ac_ext <<_ACEOF
8849 #line $LINENO "configure"
8850 /* confdefs.h.  */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h.  */
8855 #include "confdefs.h"
8856    #include <sys/types.h>
8857
8858
8859 int
8860 main ()
8861 {
8862 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
8863   ;
8864   return 0;
8865 }
8866 _ACEOF
8867 rm -f conftest.$ac_objext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8869   (eval $ac_compile) 2>&5
8870   ac_status=$?
8871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872   (exit $ac_status); } &&
8873          { ac_try='test -s conftest.$ac_objext'
8874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875   (eval $ac_try) 2>&5
8876   ac_status=$?
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); }; }; then
8879   ac_cv_sizeof_unsigned_char=$ac_size
8880 else
8881   echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8883
8884 fi
8885 rm -f conftest.$ac_objext conftest.$ac_ext
8886    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
8887   done
8888
8889 fi
8890
8891
8892 unsigned=$ac_cv_sizeof_unsigned_char
8893 if test x$unsigned = x ; then
8894   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
8895 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
8896    { (exit 1); exit 1; }; }
8897 fi
8898 if test x$unsigned != x$signed ; then
8899   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
8900 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
8901    { (exit 1); exit 1; }; }
8902 fi
8903
8904 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
8905 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
8906
8907 cat >>confdefs.h <<_ACEOF
8908 #define SIZEOF_CHAR $ac_cv_sizeof_unsigned_char
8909 _ACEOF
8910
8911
8912 echo "$as_me:$LINENO: checking size of short int" >&5
8913 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
8914     if test "${ac_cv_sizeof_short_int+set}" = set; then
8915   echo $ECHO_N "(cached) $ECHO_C" >&6
8916 else
8917   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
8918    cat >conftest.$ac_ext <<_ACEOF
8919 #line $LINENO "configure"
8920 /* confdefs.h.  */
8921 _ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h.  */
8925 #include "confdefs.h"
8926    #include <sys/types.h>
8927
8928
8929 int
8930 main ()
8931 {
8932 switch (0) case 0: case (sizeof (short int) == $ac_size):;
8933   ;
8934   return 0;
8935 }
8936 _ACEOF
8937 rm -f conftest.$ac_objext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8939   (eval $ac_compile) 2>&5
8940   ac_status=$?
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); } &&
8943          { ac_try='test -s conftest.$ac_objext'
8944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945   (eval $ac_try) 2>&5
8946   ac_status=$?
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); }; }; then
8949   ac_cv_sizeof_short_int=$ac_size
8950 else
8951   echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8953
8954 fi
8955 rm -f conftest.$ac_objext conftest.$ac_ext
8956    if test x$ac_cv_sizeof_short_int != x ; then break; fi
8957   done
8958
8959 fi
8960
8961
8962 unspecif=$ac_cv_sizeof_short_int
8963 if test x$unspecif = x ; then
8964   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
8965 echo "$as_me: error: cannot determine a size for short int" >&2;}
8966    { (exit 1); exit 1; }; }
8967 fi
8968
8969     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
8970   echo $ECHO_N "(cached) $ECHO_C" >&6
8971 else
8972   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
8973    cat >conftest.$ac_ext <<_ACEOF
8974 #line $LINENO "configure"
8975 /* confdefs.h.  */
8976 _ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h.  */
8980 #include "confdefs.h"
8981    #include <sys/types.h>
8982
8983
8984 int
8985 main ()
8986 {
8987 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
8988   ;
8989   return 0;
8990 }
8991 _ACEOF
8992 rm -f conftest.$ac_objext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8994   (eval $ac_compile) 2>&5
8995   ac_status=$?
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); } &&
8998          { ac_try='test -s conftest.$ac_objext'
8999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000   (eval $ac_try) 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); }; }; then
9004   ac_cv_sizeof_signed_short_int=$ac_size
9005 else
9006   echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9008
9009 fi
9010 rm -f conftest.$ac_objext conftest.$ac_ext
9011    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
9012   done
9013
9014 fi
9015
9016
9017 signed=$ac_cv_sizeof_signed_short_int
9018 if test x$signed = x ; then
9019   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
9020 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
9021    { (exit 1); exit 1; }; }
9022 fi
9023 if test x$unspecif != x$signed ; then
9024   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
9025 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
9026    { (exit 1); exit 1; }; }
9027 fi
9028
9029     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
9030   echo $ECHO_N "(cached) $ECHO_C" >&6
9031 else
9032   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
9033    cat >conftest.$ac_ext <<_ACEOF
9034 #line $LINENO "configure"
9035 /* confdefs.h.  */
9036 _ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h.  */
9040 #include "confdefs.h"
9041    #include <sys/types.h>
9042
9043
9044 int
9045 main ()
9046 {
9047 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
9048   ;
9049   return 0;
9050 }
9051 _ACEOF
9052 rm -f conftest.$ac_objext
9053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9054   (eval $ac_compile) 2>&5
9055   ac_status=$?
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); } &&
9058          { ac_try='test -s conftest.$ac_objext'
9059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060   (eval $ac_try) 2>&5
9061   ac_status=$?
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); }; }; then
9064   ac_cv_sizeof_unsigned_short_int=$ac_size
9065 else
9066   echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9068
9069 fi
9070 rm -f conftest.$ac_objext conftest.$ac_ext
9071    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
9072   done
9073
9074 fi
9075
9076
9077 unsigned=$ac_cv_sizeof_unsigned_short_int
9078 if test x$unsigned = x ; then
9079   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
9080 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
9081    { (exit 1); exit 1; }; }
9082 fi
9083 if test x$unsigned != x$signed ; then
9084   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
9085 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
9086    { (exit 1); exit 1; }; }
9087 fi
9088
9089 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
9090 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
9091
9092 cat >>confdefs.h <<_ACEOF
9093 #define SIZEOF_SHORT_INT $ac_cv_sizeof_unsigned_short_int
9094 _ACEOF
9095
9096
9097 echo "$as_me:$LINENO: checking size of int" >&5
9098 echo $ECHO_N "checking size of int... $ECHO_C" >&6
9099     if test "${ac_cv_sizeof_int+set}" = set; then
9100   echo $ECHO_N "(cached) $ECHO_C" >&6
9101 else
9102   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
9103    cat >conftest.$ac_ext <<_ACEOF
9104 #line $LINENO "configure"
9105 /* confdefs.h.  */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h.  */
9110 #include "confdefs.h"
9111    #include <sys/types.h>
9112
9113
9114 int
9115 main ()
9116 {
9117 switch (0) case 0: case (sizeof (int) == $ac_size):;
9118   ;
9119   return 0;
9120 }
9121 _ACEOF
9122 rm -f conftest.$ac_objext
9123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9124   (eval $ac_compile) 2>&5
9125   ac_status=$?
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); } &&
9128          { ac_try='test -s conftest.$ac_objext'
9129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130   (eval $ac_try) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); }; }; then
9134   ac_cv_sizeof_int=$ac_size
9135 else
9136   echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9138
9139 fi
9140 rm -f conftest.$ac_objext conftest.$ac_ext
9141    if test x$ac_cv_sizeof_int != x ; then break; fi
9142   done
9143
9144 fi
9145
9146
9147 unspecif=$ac_cv_sizeof_int
9148 if test x$unspecif = x ; then
9149   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
9150 echo "$as_me: error: cannot determine a size for int" >&2;}
9151    { (exit 1); exit 1; }; }
9152 fi
9153
9154     if test "${ac_cv_sizeof_signed_int+set}" = set; then
9155   echo $ECHO_N "(cached) $ECHO_C" >&6
9156 else
9157   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
9158    cat >conftest.$ac_ext <<_ACEOF
9159 #line $LINENO "configure"
9160 /* confdefs.h.  */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h.  */
9165 #include "confdefs.h"
9166    #include <sys/types.h>
9167
9168
9169 int
9170 main ()
9171 {
9172 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
9173   ;
9174   return 0;
9175 }
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179   (eval $ac_compile) 2>&5
9180   ac_status=$?
9181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182   (exit $ac_status); } &&
9183          { ac_try='test -s conftest.$ac_objext'
9184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185   (eval $ac_try) 2>&5
9186   ac_status=$?
9187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); }; }; then
9189   ac_cv_sizeof_signed_int=$ac_size
9190 else
9191   echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9193
9194 fi
9195 rm -f conftest.$ac_objext conftest.$ac_ext
9196    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
9197   done
9198
9199 fi
9200
9201
9202 signed=$ac_cv_sizeof_signed_int
9203 if test x$signed = x ; then
9204   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
9205 echo "$as_me: error: cannot determine a size for signed int" >&2;}
9206    { (exit 1); exit 1; }; }
9207 fi
9208 if test x$unspecif != x$signed ; then
9209   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
9210 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
9211    { (exit 1); exit 1; }; }
9212 fi
9213
9214     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
9215   echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
9218    cat >conftest.$ac_ext <<_ACEOF
9219 #line $LINENO "configure"
9220 /* confdefs.h.  */
9221 _ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h.  */
9225 #include "confdefs.h"
9226    #include <sys/types.h>
9227
9228
9229 int
9230 main ()
9231 {
9232 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
9233   ;
9234   return 0;
9235 }
9236 _ACEOF
9237 rm -f conftest.$ac_objext
9238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9239   (eval $ac_compile) 2>&5
9240   ac_status=$?
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); } &&
9243          { ac_try='test -s conftest.$ac_objext'
9244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245   (eval $ac_try) 2>&5
9246   ac_status=$?
9247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248   (exit $ac_status); }; }; then
9249   ac_cv_sizeof_unsigned_int=$ac_size
9250 else
9251   echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9253
9254 fi
9255 rm -f conftest.$ac_objext conftest.$ac_ext
9256    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
9257   done
9258
9259 fi
9260
9261
9262 unsigned=$ac_cv_sizeof_unsigned_int
9263 if test x$unsigned = x ; then
9264   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
9265 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
9266    { (exit 1); exit 1; }; }
9267 fi
9268 if test x$unsigned != x$signed ; then
9269   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
9270 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
9271    { (exit 1); exit 1; }; }
9272 fi
9273
9274 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
9275 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
9276
9277 cat >>confdefs.h <<_ACEOF
9278 #define SIZEOF_INT $ac_cv_sizeof_unsigned_int
9279 _ACEOF
9280
9281
9282 echo "$as_me:$LINENO: checking size of long int" >&5
9283 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
9284     if test "${ac_cv_sizeof_long_int+set}" = set; then
9285   echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9287   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
9288    cat >conftest.$ac_ext <<_ACEOF
9289 #line $LINENO "configure"
9290 /* confdefs.h.  */
9291 _ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h.  */
9295 #include "confdefs.h"
9296    #include <sys/types.h>
9297
9298
9299 int
9300 main ()
9301 {
9302 switch (0) case 0: case (sizeof (long int) == $ac_size):;
9303   ;
9304   return 0;
9305 }
9306 _ACEOF
9307 rm -f conftest.$ac_objext
9308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9309   (eval $ac_compile) 2>&5
9310   ac_status=$?
9311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   (exit $ac_status); } &&
9313          { ac_try='test -s conftest.$ac_objext'
9314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315   (eval $ac_try) 2>&5
9316   ac_status=$?
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); }; }; then
9319   ac_cv_sizeof_long_int=$ac_size
9320 else
9321   echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9323
9324 fi
9325 rm -f conftest.$ac_objext conftest.$ac_ext
9326    if test x$ac_cv_sizeof_long_int != x ; then break; fi
9327   done
9328
9329 fi
9330
9331
9332 unspecif=$ac_cv_sizeof_long_int
9333 if test x$unspecif = x ; then
9334   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
9335 echo "$as_me: error: cannot determine a size for long int" >&2;}
9336    { (exit 1); exit 1; }; }
9337 fi
9338
9339     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
9340   echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
9343    cat >conftest.$ac_ext <<_ACEOF
9344 #line $LINENO "configure"
9345 /* confdefs.h.  */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h.  */
9350 #include "confdefs.h"
9351    #include <sys/types.h>
9352
9353
9354 int
9355 main ()
9356 {
9357 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
9358   ;
9359   return 0;
9360 }
9361 _ACEOF
9362 rm -f conftest.$ac_objext
9363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9364   (eval $ac_compile) 2>&5
9365   ac_status=$?
9366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367   (exit $ac_status); } &&
9368          { ac_try='test -s conftest.$ac_objext'
9369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370   (eval $ac_try) 2>&5
9371   ac_status=$?
9372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); }; }; then
9374   ac_cv_sizeof_signed_long_int=$ac_size
9375 else
9376   echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9378
9379 fi
9380 rm -f conftest.$ac_objext conftest.$ac_ext
9381    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
9382   done
9383
9384 fi
9385
9386
9387 signed=$ac_cv_sizeof_signed_long_int
9388 if test x$signed = x ; then
9389   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
9390 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
9391    { (exit 1); exit 1; }; }
9392 fi
9393 if test x$unspecif != x$signed ; then
9394   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
9395 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
9396    { (exit 1); exit 1; }; }
9397 fi
9398
9399     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
9400   echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
9403    cat >conftest.$ac_ext <<_ACEOF
9404 #line $LINENO "configure"
9405 /* confdefs.h.  */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h.  */
9410 #include "confdefs.h"
9411    #include <sys/types.h>
9412
9413
9414 int
9415 main ()
9416 {
9417 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
9418   ;
9419   return 0;
9420 }
9421 _ACEOF
9422 rm -f conftest.$ac_objext
9423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9424   (eval $ac_compile) 2>&5
9425   ac_status=$?
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); } &&
9428          { ac_try='test -s conftest.$ac_objext'
9429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430   (eval $ac_try) 2>&5
9431   ac_status=$?
9432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433   (exit $ac_status); }; }; then
9434   ac_cv_sizeof_unsigned_long_int=$ac_size
9435 else
9436   echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9438
9439 fi
9440 rm -f conftest.$ac_objext conftest.$ac_ext
9441    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
9442   done
9443
9444 fi
9445
9446
9447 unsigned=$ac_cv_sizeof_unsigned_long_int
9448 if test x$unsigned = x ; then
9449   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
9450 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
9451    { (exit 1); exit 1; }; }
9452 fi
9453 if test x$unsigned != x$signed ; then
9454   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
9455 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
9456    { (exit 1); exit 1; }; }
9457 fi
9458
9459 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
9460 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
9461
9462 cat >>confdefs.h <<_ACEOF
9463 #define SIZEOF_LONG_INT $ac_cv_sizeof_unsigned_long_int
9464 _ACEOF
9465
9466
9467 echo "$as_me:$LINENO: checking size of long long int" >&5
9468 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
9469     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
9473    cat >conftest.$ac_ext <<_ACEOF
9474 #line $LINENO "configure"
9475 /* confdefs.h.  */
9476 _ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h.  */
9480 #include "confdefs.h"
9481    #include <sys/types.h>
9482
9483
9484 int
9485 main ()
9486 {
9487 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
9488   ;
9489   return 0;
9490 }
9491 _ACEOF
9492 rm -f conftest.$ac_objext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9494   (eval $ac_compile) 2>&5
9495   ac_status=$?
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); } &&
9498          { ac_try='test -s conftest.$ac_objext'
9499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500   (eval $ac_try) 2>&5
9501   ac_status=$?
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); }; }; then
9504   ac_cv_sizeof_long_long_int=$ac_size
9505 else
9506   echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9508
9509 fi
9510 rm -f conftest.$ac_objext conftest.$ac_ext
9511    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
9512   done
9513
9514 fi
9515
9516
9517 unspecif=$ac_cv_sizeof_long_long_int
9518 if test x$unspecif = x ; then
9519   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
9520 echo "$as_me: error: cannot determine a size for long long int" >&2;}
9521    { (exit 1); exit 1; }; }
9522 fi
9523
9524     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
9525   echo $ECHO_N "(cached) $ECHO_C" >&6
9526 else
9527   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
9528    cat >conftest.$ac_ext <<_ACEOF
9529 #line $LINENO "configure"
9530 /* confdefs.h.  */
9531 _ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h.  */
9535 #include "confdefs.h"
9536    #include <sys/types.h>
9537
9538
9539 int
9540 main ()
9541 {
9542 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
9543   ;
9544   return 0;
9545 }
9546 _ACEOF
9547 rm -f conftest.$ac_objext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9549   (eval $ac_compile) 2>&5
9550   ac_status=$?
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); } &&
9553          { ac_try='test -s conftest.$ac_objext'
9554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555   (eval $ac_try) 2>&5
9556   ac_status=$?
9557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558   (exit $ac_status); }; }; then
9559   ac_cv_sizeof_signed_long_long_int=$ac_size
9560 else
9561   echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.$ac_ext >&5
9563
9564 fi
9565 rm -f conftest.$ac_objext conftest.$ac_ext
9566    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
9567   done
9568
9569 fi
9570
9571
9572 signed=$ac_cv_sizeof_signed_long_long_int
9573 if test x$signed = x ; then
9574   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
9575 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
9576    { (exit 1); exit 1; }; }
9577 fi
9578 if test x$unspecif != x$signed ; then
9579   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
9580 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
9581    { (exit 1); exit 1; }; }
9582 fi
9583
9584     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
9585   echo $ECHO_N "(cached) $ECHO_C" >&6
9586 else
9587   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
9588    cat >conftest.$ac_ext <<_ACEOF
9589 #line $LINENO "configure"
9590 /* confdefs.h.  */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h.  */
9595 #include "confdefs.h"
9596    #include <sys/types.h>
9597
9598
9599 int
9600 main ()
9601 {
9602 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
9603   ;
9604   return 0;
9605 }
9606 _ACEOF
9607 rm -f conftest.$ac_objext
9608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9609   (eval $ac_compile) 2>&5
9610   ac_status=$?
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } &&
9613          { ac_try='test -s conftest.$ac_objext'
9614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615   (eval $ac_try) 2>&5
9616   ac_status=$?
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); }; }; then
9619   ac_cv_sizeof_unsigned_long_long_int=$ac_size
9620 else
9621   echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9623
9624 fi
9625 rm -f conftest.$ac_objext conftest.$ac_ext
9626    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
9627   done
9628
9629 fi
9630
9631
9632 unsigned=$ac_cv_sizeof_unsigned_long_long_int
9633 if test x$unsigned = x ; then
9634   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
9635 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
9636    { (exit 1); exit 1; }; }
9637 fi
9638 if test x$unsigned != x$signed ; then
9639   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
9640 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
9641    { (exit 1); exit 1; }; }
9642 fi
9643
9644 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
9645 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
9646
9647 cat >>confdefs.h <<_ACEOF
9648 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
9649 _ACEOF
9650
9651
9652
9653
9654 echo "$as_me:$LINENO: checking size of void *" >&5
9655 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
9656     if test "${ac_cv_sizeof_void_p+set}" = set; then
9657   echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
9660    cat >conftest.$ac_ext <<_ACEOF
9661 #line $LINENO "configure"
9662 /* confdefs.h.  */
9663 _ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h.  */
9667 #include "confdefs.h"
9668    #include <sys/types.h>
9669
9670
9671 int
9672 main ()
9673 {
9674 switch (0) case 0: case (sizeof (void *) == $ac_size):;
9675   ;
9676   return 0;
9677 }
9678 _ACEOF
9679 rm -f conftest.$ac_objext
9680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9681   (eval $ac_compile) 2>&5
9682   ac_status=$?
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); } &&
9685          { ac_try='test -s conftest.$ac_objext'
9686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687   (eval $ac_try) 2>&5
9688   ac_status=$?
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); }; }; then
9691   ac_cv_sizeof_void_p=$ac_size
9692 else
9693   echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9695
9696 fi
9697 rm -f conftest.$ac_objext conftest.$ac_ext
9698    if test x$ac_cv_sizeof_void_p != x ; then break; fi
9699   done
9700
9701 fi
9702
9703
9704 if test x$ac_cv_sizeof_void_p = x ; then
9705   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
9706 echo "$as_me: error: cannot determine a size for void *" >&2;}
9707    { (exit 1); exit 1; }; }
9708 fi
9709 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
9710 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
9711
9712 cat >>confdefs.h <<_ACEOF
9713 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
9714 _ACEOF
9715
9716
9717 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
9718 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
9719     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
9720   echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
9723    cat >conftest.$ac_ext <<_ACEOF
9724 #line $LINENO "configure"
9725 /* confdefs.h.  */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h.  */
9730 #include "confdefs.h"
9731    #include <sys/types.h>
9732
9733
9734 int
9735 main ()
9736 {
9737 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
9738   ;
9739   return 0;
9740 }
9741 _ACEOF
9742 rm -f conftest.$ac_objext
9743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9744   (eval $ac_compile) 2>&5
9745   ac_status=$?
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); } &&
9748          { ac_try='test -s conftest.$ac_objext'
9749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750   (eval $ac_try) 2>&5
9751   ac_status=$?
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); }; }; then
9754   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
9755 else
9756   echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9758
9759 fi
9760 rm -f conftest.$ac_objext conftest.$ac_ext
9761    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
9762   done
9763
9764 fi
9765
9766
9767 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
9768   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
9769 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
9770    { (exit 1); exit 1; }; }
9771 fi
9772 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
9773 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
9774
9775 cat >>confdefs.h <<_ACEOF
9776 #define SIZEOF_VOID__P___VOID_ $ac_cv_sizeof_void_LpR_LvoidR
9777 _ACEOF
9778
9779
9780
9781 echo "$as_me:$LINENO: checking size of float" >&5
9782 echo $ECHO_N "checking size of float... $ECHO_C" >&6
9783     if test "${ac_cv_sizeof_float+set}" = set; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
9787    cat >conftest.$ac_ext <<_ACEOF
9788 #line $LINENO "configure"
9789 /* confdefs.h.  */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h.  */
9794 #include "confdefs.h"
9795    #include <sys/types.h>
9796
9797
9798 int
9799 main ()
9800 {
9801 switch (0) case 0: case (sizeof (float) == $ac_size):;
9802   ;
9803   return 0;
9804 }
9805 _ACEOF
9806 rm -f conftest.$ac_objext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9808   (eval $ac_compile) 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); } &&
9812          { ac_try='test -s conftest.$ac_objext'
9813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814   (eval $ac_try) 2>&5
9815   ac_status=$?
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); }; }; then
9818   ac_cv_sizeof_float=$ac_size
9819 else
9820   echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9822
9823 fi
9824 rm -f conftest.$ac_objext conftest.$ac_ext
9825    if test x$ac_cv_sizeof_float != x ; then break; fi
9826   done
9827
9828 fi
9829
9830
9831 if test x$ac_cv_sizeof_float = x ; then
9832   { { echo "$as_me:$LINENO: error: cannot determine a size for float" >&5
9833 echo "$as_me: error: cannot determine a size for float" >&2;}
9834    { (exit 1); exit 1; }; }
9835 fi
9836 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9837 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
9838
9839 cat >>confdefs.h <<_ACEOF
9840 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9841 _ACEOF
9842
9843
9844 echo "$as_me:$LINENO: checking size of double" >&5
9845 echo $ECHO_N "checking size of double... $ECHO_C" >&6
9846     if test "${ac_cv_sizeof_double+set}" = set; then
9847   echo $ECHO_N "(cached) $ECHO_C" >&6
9848 else
9849   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
9850    cat >conftest.$ac_ext <<_ACEOF
9851 #line $LINENO "configure"
9852 /* confdefs.h.  */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h.  */
9857 #include "confdefs.h"
9858    #include <sys/types.h>
9859
9860
9861 int
9862 main ()
9863 {
9864 switch (0) case 0: case (sizeof (double) == $ac_size):;
9865   ;
9866   return 0;
9867 }
9868 _ACEOF
9869 rm -f conftest.$ac_objext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9871   (eval $ac_compile) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); } &&
9875          { ac_try='test -s conftest.$ac_objext'
9876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877   (eval $ac_try) 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; }; then
9881   ac_cv_sizeof_double=$ac_size
9882 else
9883   echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886 fi
9887 rm -f conftest.$ac_objext conftest.$ac_ext
9888    if test x$ac_cv_sizeof_double != x ; then break; fi
9889   done
9890
9891 fi
9892
9893
9894 if test x$ac_cv_sizeof_double = x ; then
9895   { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
9896 echo "$as_me: error: cannot determine a size for double" >&2;}
9897    { (exit 1); exit 1; }; }
9898 fi
9899 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9900 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
9901
9902 cat >>confdefs.h <<_ACEOF
9903 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9904 _ACEOF
9905
9906
9907 echo "$as_me:$LINENO: checking if floating point datatypes are IEEE 754 compliant" >&5
9908 echo $ECHO_N "checking if floating point datatypes are IEEE 754 compliant... $ECHO_C" >&6
9909 cat >conftest.$ac_ext <<_ACEOF
9910 #line $LINENO "configure"
9911 /* confdefs.h.  */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h.  */
9916 #include "confdefs.h"
9917 union {
9918         double testFP;
9919         unsigned char bytes[sizeof(double)];
9920 } doubleTester;
9921 union {
9922         float testFP;
9923         unsigned char bytes[sizeof(float)];
9924 } floatTester;
9925
9926 int
9927 main ()
9928 {
9929
9930 memset(&doubleTester, 0, sizeof(doubleTester));
9931 memset(&floatTester, 0, sizeof(floatTester));
9932
9933 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 1 : 0]=192;
9934 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 2 : 1] =
9935   (sizeof(double) == 4)  ? 128 :
9936   (sizeof(double) == 8)  ? 16 :
9937   (sizeof(double) == 16) ? 1 : 0;
9938 if (doubleTester.testFP != -4.0) return 1;
9939
9940 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 1 : 0]=192;
9941 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 2 : 1] =
9942   (sizeof(float) == 4)  ? 128 :
9943   (sizeof(float) == 8)  ? 16 :
9944   (sizeof(float) == 16) ? 1 : 0;
9945 if (floatTester.testFP != -4.0) return 1;
9946
9947 return 0;
9948   ;
9949   return 0;
9950 }
9951 _ACEOF
9952 rm -f conftest.$ac_objext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9954   (eval $ac_compile) 2>&5
9955   ac_status=$?
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); } &&
9958          { ac_try='test -s conftest.$ac_objext'
9959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960   (eval $ac_try) 2>&5
9961   ac_status=$?
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); }; }; then
9964   IEEE_FP=yes
9965
9966 cat >>confdefs.h <<\_ACEOF
9967 #define IEEE_FP 1
9968 _ACEOF
9969
9970
9971 else
9972   echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9974
9975 IEEE_FP=no
9976    { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
9977 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
9978    { (exit 1); exit 1; }; }
9979 fi
9980 rm -f conftest.$ac_objext conftest.$ac_extecho "$as_me:$LINENO: result: $IEEE_FP" >&5
9981 echo "${ECHO_T}$IEEE_FP" >&6
9982
9983
9984 echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
9985 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6
9986 if test x$endian = x1 ; then
9987   trace_endian=B
9988 else
9989   trace_endian=l
9990 fi
9991 gras_arch=unknown
9992 trace="$trace_endian"
9993 trace="${trace}:${ac_cv_sizeof_char}.${ac_cv_sizeof_short_int}.${ac_cv_sizeof_int}.${ac_cv_sizeof_long_int}.${ac_cv_sizeof_long_long_int}"
9994 trace="${trace}:${ac_cv_sizeof_void_p}.${ac_cv_sizeof_void_LpR_LvoidR}"
9995 trace="${trace}:${ac_cv_sizeof_float}.${ac_cv_sizeof_double}"
9996 case $trace in
9997   l:1.2.4.4.8:4.4:4.8) gras_arch=0; gras_arch_name=i386;;
9998 esac
9999 if test x$gras_arch = xunknown ; then
10000   echo "$as_me:$LINENO: result: damnit ($trace)" >&5
10001 echo "${ECHO_T}damnit ($trace)" >&6
10002   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
10003 Please report this architecture trace ($trace) and what it corresponds to." >&5
10004 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
10005 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
10006    { (exit 1); exit 1; }; }
10007 fi
10008 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
10009
10010 cat >>confdefs.h <<_ACEOF
10011 #define GRAS_THISARCH_NAME "$gras_arch_name"
10012 _ACEOF
10013
10014
10015 cat >>confdefs.h <<_ACEOF
10016 #define GRAS_THISARCH $gras_arch
10017 _ACEOF
10018
10019 echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
10020 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6
10021
10022
10023 # Checks for header files.
10024 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10025 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10026 if test "${ac_cv_header_stdc+set}" = set; then
10027   echo $ECHO_N "(cached) $ECHO_C" >&6
10028 else
10029   cat >conftest.$ac_ext <<_ACEOF
10030 #line $LINENO "configure"
10031 /* confdefs.h.  */
10032 _ACEOF
10033 cat confdefs.h >>conftest.$ac_ext
10034 cat >>conftest.$ac_ext <<_ACEOF
10035 /* end confdefs.h.  */
10036 #include <stdlib.h>
10037 #include <stdarg.h>
10038 #include <string.h>
10039 #include <float.h>
10040
10041 int
10042 main ()
10043 {
10044
10045   ;
10046   return 0;
10047 }
10048 _ACEOF
10049 rm -f conftest.$ac_objext
10050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10051   (eval $ac_compile) 2>&5
10052   ac_status=$?
10053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054   (exit $ac_status); } &&
10055          { ac_try='test -s conftest.$ac_objext'
10056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057   (eval $ac_try) 2>&5
10058   ac_status=$?
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); }; }; then
10061   ac_cv_header_stdc=yes
10062 else
10063   echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10065
10066 ac_cv_header_stdc=no
10067 fi
10068 rm -f conftest.$ac_objext conftest.$ac_ext
10069
10070 if test $ac_cv_header_stdc = yes; then
10071   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10072   cat >conftest.$ac_ext <<_ACEOF
10073 #line $LINENO "configure"
10074 /* confdefs.h.  */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h.  */
10079 #include <string.h>
10080
10081 _ACEOF
10082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10083   $EGREP "memchr" >/dev/null 2>&1; then
10084   :
10085 else
10086   ac_cv_header_stdc=no
10087 fi
10088 rm -f conftest*
10089
10090 fi
10091
10092 if test $ac_cv_header_stdc = yes; then
10093   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10094   cat >conftest.$ac_ext <<_ACEOF
10095 #line $LINENO "configure"
10096 /* confdefs.h.  */
10097 _ACEOF
10098 cat confdefs.h >>conftest.$ac_ext
10099 cat >>conftest.$ac_ext <<_ACEOF
10100 /* end confdefs.h.  */
10101 #include <stdlib.h>
10102
10103 _ACEOF
10104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10105   $EGREP "free" >/dev/null 2>&1; then
10106   :
10107 else
10108   ac_cv_header_stdc=no
10109 fi
10110 rm -f conftest*
10111
10112 fi
10113
10114 if test $ac_cv_header_stdc = yes; then
10115   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10116   if test "$cross_compiling" = yes; then
10117   :
10118 else
10119   cat >conftest.$ac_ext <<_ACEOF
10120 #line $LINENO "configure"
10121 /* confdefs.h.  */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h.  */
10126 #include <ctype.h>
10127 #if ((' ' & 0x0FF) == 0x020)
10128 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10129 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10130 #else
10131 # define ISLOWER(c) \
10132                    (('a' <= (c) && (c) <= 'i') \
10133                      || ('j' <= (c) && (c) <= 'r') \
10134                      || ('s' <= (c) && (c) <= 'z'))
10135 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10136 #endif
10137
10138 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10139 int
10140 main ()
10141 {
10142   int i;
10143   for (i = 0; i < 256; i++)
10144     if (XOR (islower (i), ISLOWER (i))
10145         || toupper (i) != TOUPPER (i))
10146       exit(2);
10147   exit (0);
10148 }
10149 _ACEOF
10150 rm -f conftest$ac_exeext
10151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10152   (eval $ac_link) 2>&5
10153   ac_status=$?
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157   (eval $ac_try) 2>&5
10158   ac_status=$?
10159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); }; }; then
10161   :
10162 else
10163   echo "$as_me: program exited with status $ac_status" >&5
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10166
10167 ( exit $ac_status )
10168 ac_cv_header_stdc=no
10169 fi
10170 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10171 fi
10172 fi
10173 fi
10174 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10175 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10176 if test $ac_cv_header_stdc = yes; then
10177
10178 cat >>confdefs.h <<\_ACEOF
10179 #define STDC_HEADERS 1
10180 _ACEOF
10181
10182 fi
10183
10184
10185
10186
10187
10188 for ac_header in stddef.h stdlib.h string.h unistd.h
10189 do
10190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10192   echo "$as_me:$LINENO: checking for $ac_header" >&5
10193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10195   echo $ECHO_N "(cached) $ECHO_C" >&6
10196 fi
10197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10199 else
10200   # Is the header compilable?
10201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10203 cat >conftest.$ac_ext <<_ACEOF
10204 #line $LINENO "configure"
10205 /* confdefs.h.  */
10206 _ACEOF
10207 cat confdefs.h >>conftest.$ac_ext
10208 cat >>conftest.$ac_ext <<_ACEOF
10209 /* end confdefs.h.  */
10210 $ac_includes_default
10211 #include <$ac_header>
10212 _ACEOF
10213 rm -f conftest.$ac_objext
10214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10215   (eval $ac_compile) 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); } &&
10219          { ac_try='test -s conftest.$ac_objext'
10220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221   (eval $ac_try) 2>&5
10222   ac_status=$?
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); }; }; then
10225   ac_header_compiler=yes
10226 else
10227   echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10229
10230 ac_header_compiler=no
10231 fi
10232 rm -f conftest.$ac_objext conftest.$ac_ext
10233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10234 echo "${ECHO_T}$ac_header_compiler" >&6
10235
10236 # Is the header present?
10237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10239 cat >conftest.$ac_ext <<_ACEOF
10240 #line $LINENO "configure"
10241 /* confdefs.h.  */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h.  */
10246 #include <$ac_header>
10247 _ACEOF
10248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10249   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10250   ac_status=$?
10251   grep -v '^ *+' conftest.er1 >conftest.err
10252   rm -f conftest.er1
10253   cat conftest.err >&5
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } >/dev/null; then
10256   if test -s conftest.err; then
10257     ac_cpp_err=$ac_c_preproc_warn_flag
10258   else
10259     ac_cpp_err=
10260   fi
10261 else
10262   ac_cpp_err=yes
10263 fi
10264 if test -z "$ac_cpp_err"; then
10265   ac_header_preproc=yes
10266 else
10267   echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10269
10270   ac_header_preproc=no
10271 fi
10272 rm -f conftest.err conftest.$ac_ext
10273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10274 echo "${ECHO_T}$ac_header_preproc" >&6
10275
10276 # So?  What about this header?
10277 case $ac_header_compiler:$ac_header_preproc in
10278   yes:no )
10279     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10283     (
10284       cat <<\_ASBOX
10285 ## ------------------------------------ ##
10286 ## Report this to bug-autoconf@gnu.org. ##
10287 ## ------------------------------------ ##
10288 _ASBOX
10289     ) |
10290       sed "s/^/$as_me: WARNING:     /" >&2
10291     ;;
10292   no:yes )
10293     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10295     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10299     (
10300       cat <<\_ASBOX
10301 ## ------------------------------------ ##
10302 ## Report this to bug-autoconf@gnu.org. ##
10303 ## ------------------------------------ ##
10304 _ASBOX
10305     ) |
10306       sed "s/^/$as_me: WARNING:     /" >&2
10307     ;;
10308 esac
10309 echo "$as_me:$LINENO: checking for $ac_header" >&5
10310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10312   echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314   eval "$as_ac_Header=$ac_header_preproc"
10315 fi
10316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10318
10319 fi
10320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10321   cat >>confdefs.h <<_ACEOF
10322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10323 _ACEOF
10324
10325 fi
10326
10327 done
10328
10329
10330 # Checks for typedefs, structures, and compiler characteristics.
10331 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10332 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10333 if test "${ac_cv_c_const+set}" = set; then
10334   echo $ECHO_N "(cached) $ECHO_C" >&6
10335 else
10336   cat >conftest.$ac_ext <<_ACEOF
10337 #line $LINENO "configure"
10338 /* confdefs.h.  */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h.  */
10343
10344 int
10345 main ()
10346 {
10347 /* FIXME: Include the comments suggested by Paul. */
10348 #ifndef __cplusplus
10349   /* Ultrix mips cc rejects this.  */
10350   typedef int charset[2];
10351   const charset x;
10352   /* SunOS 4.1.1 cc rejects this.  */
10353   char const *const *ccp;
10354   char **p;
10355   /* NEC SVR4.0.2 mips cc rejects this.  */
10356   struct point {int x, y;};
10357   static struct point const zero = {0,0};
10358   /* AIX XL C 1.02.0.0 rejects this.
10359      It does not let you subtract one const X* pointer from another in
10360      an arm of an if-expression whose if-part is not a constant
10361      expression */
10362   const char *g = "string";
10363   ccp = &g + (g ? g-g : 0);
10364   /* HPUX 7.0 cc rejects these. */
10365   ++ccp;
10366   p = (char**) ccp;
10367   ccp = (char const *const *) p;
10368   { /* SCO 3.2v4 cc rejects this.  */
10369     char *t;
10370     char const *s = 0 ? (char *) 0 : (char const *) 0;
10371
10372     *t++ = 0;
10373   }
10374   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10375     int x[] = {25, 17};
10376     const int *foo = &x[0];
10377     ++foo;
10378   }
10379   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10380     typedef const int *iptr;
10381     iptr p = 0;
10382     ++p;
10383   }
10384   { /* AIX XL C 1.02.0.0 rejects this saying
10385        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10386     struct s { int j; const int *ap[3]; };
10387     struct s *b; b->j = 5;
10388   }
10389   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10390     const int foo = 10;
10391   }
10392 #endif
10393
10394   ;
10395   return 0;
10396 }
10397 _ACEOF
10398 rm -f conftest.$ac_objext
10399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10400   (eval $ac_compile) 2>&5
10401   ac_status=$?
10402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); } &&
10404          { ac_try='test -s conftest.$ac_objext'
10405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406   (eval $ac_try) 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); }; }; then
10410   ac_cv_c_const=yes
10411 else
10412   echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10414
10415 ac_cv_c_const=no
10416 fi
10417 rm -f conftest.$ac_objext conftest.$ac_ext
10418 fi
10419 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10420 echo "${ECHO_T}$ac_cv_c_const" >&6
10421 if test $ac_cv_c_const = no; then
10422
10423 cat >>confdefs.h <<\_ACEOF
10424 #define const
10425 _ACEOF
10426
10427 fi
10428
10429 echo "$as_me:$LINENO: checking for inline" >&5
10430 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10431 if test "${ac_cv_c_inline+set}" = set; then
10432   echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434   ac_cv_c_inline=no
10435 for ac_kw in inline __inline__ __inline; do
10436   cat >conftest.$ac_ext <<_ACEOF
10437 #line $LINENO "configure"
10438 /* confdefs.h.  */
10439 _ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h.  */
10443 #ifndef __cplusplus
10444 typedef int foo_t;
10445 static $ac_kw foo_t static_foo () {return 0; }
10446 $ac_kw foo_t foo () {return 0; }
10447 #endif
10448
10449 _ACEOF
10450 rm -f conftest.$ac_objext
10451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10452   (eval $ac_compile) 2>&5
10453   ac_status=$?
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); } &&
10456          { ac_try='test -s conftest.$ac_objext'
10457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10458   (eval $ac_try) 2>&5
10459   ac_status=$?
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); }; }; then
10462   ac_cv_c_inline=$ac_kw; break
10463 else
10464   echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10466
10467 fi
10468 rm -f conftest.$ac_objext conftest.$ac_ext
10469 done
10470
10471 fi
10472 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10473 echo "${ECHO_T}$ac_cv_c_inline" >&6
10474 case $ac_cv_c_inline in
10475   inline | yes) ;;
10476   no)
10477 cat >>confdefs.h <<\_ACEOF
10478 #define inline
10479 _ACEOF
10480  ;;
10481   *)  cat >>confdefs.h <<_ACEOF
10482 #define inline $ac_cv_c_inline
10483 _ACEOF
10484  ;;
10485 esac
10486
10487 echo "$as_me:$LINENO: checking for size_t" >&5
10488 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10489 if test "${ac_cv_type_size_t+set}" = set; then
10490   echo $ECHO_N "(cached) $ECHO_C" >&6
10491 else
10492   cat >conftest.$ac_ext <<_ACEOF
10493 #line $LINENO "configure"
10494 /* confdefs.h.  */
10495 _ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h.  */
10499 $ac_includes_default
10500 int
10501 main ()
10502 {
10503 if ((size_t *) 0)
10504   return 0;
10505 if (sizeof (size_t))
10506   return 0;
10507   ;
10508   return 0;
10509 }
10510 _ACEOF
10511 rm -f conftest.$ac_objext
10512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10513   (eval $ac_compile) 2>&5
10514   ac_status=$?
10515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516   (exit $ac_status); } &&
10517          { ac_try='test -s conftest.$ac_objext'
10518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519   (eval $ac_try) 2>&5
10520   ac_status=$?
10521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522   (exit $ac_status); }; }; then
10523   ac_cv_type_size_t=yes
10524 else
10525   echo "$as_me: failed program was:" >&5
10526 sed 's/^/| /' conftest.$ac_ext >&5
10527
10528 ac_cv_type_size_t=no
10529 fi
10530 rm -f conftest.$ac_objext conftest.$ac_ext
10531 fi
10532 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10533 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10534 if test $ac_cv_type_size_t = yes; then
10535   :
10536 else
10537
10538 cat >>confdefs.h <<_ACEOF
10539 #define size_t unsigned
10540 _ACEOF
10541
10542 fi
10543
10544
10545 # Checks for library functions.
10546
10547 for ac_header in stdlib.h
10548 do
10549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10551   echo "$as_me:$LINENO: checking for $ac_header" >&5
10552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10554   echo $ECHO_N "(cached) $ECHO_C" >&6
10555 fi
10556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10558 else
10559   # Is the header compilable?
10560 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10562 cat >conftest.$ac_ext <<_ACEOF
10563 #line $LINENO "configure"
10564 /* confdefs.h.  */
10565 _ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h.  */
10569 $ac_includes_default
10570 #include <$ac_header>
10571 _ACEOF
10572 rm -f conftest.$ac_objext
10573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10574   (eval $ac_compile) 2>&5
10575   ac_status=$?
10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); } &&
10578          { ac_try='test -s conftest.$ac_objext'
10579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580   (eval $ac_try) 2>&5
10581   ac_status=$?
10582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583   (exit $ac_status); }; }; then
10584   ac_header_compiler=yes
10585 else
10586   echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10588
10589 ac_header_compiler=no
10590 fi
10591 rm -f conftest.$ac_objext conftest.$ac_ext
10592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10593 echo "${ECHO_T}$ac_header_compiler" >&6
10594
10595 # Is the header present?
10596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10598 cat >conftest.$ac_ext <<_ACEOF
10599 #line $LINENO "configure"
10600 /* confdefs.h.  */
10601 _ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h.  */
10605 #include <$ac_header>
10606 _ACEOF
10607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10608   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10609   ac_status=$?
10610   grep -v '^ *+' conftest.er1 >conftest.err
10611   rm -f conftest.er1
10612   cat conftest.err >&5
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); } >/dev/null; then
10615   if test -s conftest.err; then
10616     ac_cpp_err=$ac_c_preproc_warn_flag
10617   else
10618     ac_cpp_err=
10619   fi
10620 else
10621   ac_cpp_err=yes
10622 fi
10623 if test -z "$ac_cpp_err"; then
10624   ac_header_preproc=yes
10625 else
10626   echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10628
10629   ac_header_preproc=no
10630 fi
10631 rm -f conftest.err conftest.$ac_ext
10632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10633 echo "${ECHO_T}$ac_header_preproc" >&6
10634
10635 # So?  What about this header?
10636 case $ac_header_compiler:$ac_header_preproc in
10637   yes:no )
10638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10642     (
10643       cat <<\_ASBOX
10644 ## ------------------------------------ ##
10645 ## Report this to bug-autoconf@gnu.org. ##
10646 ## ------------------------------------ ##
10647 _ASBOX
10648     ) |
10649       sed "s/^/$as_me: WARNING:     /" >&2
10650     ;;
10651   no:yes )
10652     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10654     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10658     (
10659       cat <<\_ASBOX
10660 ## ------------------------------------ ##
10661 ## Report this to bug-autoconf@gnu.org. ##
10662 ## ------------------------------------ ##
10663 _ASBOX
10664     ) |
10665       sed "s/^/$as_me: WARNING:     /" >&2
10666     ;;
10667 esac
10668 echo "$as_me:$LINENO: checking for $ac_header" >&5
10669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10671   echo $ECHO_N "(cached) $ECHO_C" >&6
10672 else
10673   eval "$as_ac_Header=$ac_header_preproc"
10674 fi
10675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10677
10678 fi
10679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10680   cat >>confdefs.h <<_ACEOF
10681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10682 _ACEOF
10683
10684 fi
10685
10686 done
10687
10688 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
10689 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
10690 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
10691   echo $ECHO_N "(cached) $ECHO_C" >&6
10692 else
10693   if test "$cross_compiling" = yes; then
10694   ac_cv_func_malloc_0_nonnull=no
10695 else
10696   cat >conftest.$ac_ext <<_ACEOF
10697 #line $LINENO "configure"
10698 /* confdefs.h.  */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h.  */
10703 #if STDC_HEADERS || HAVE_STDLIB_H
10704 # include <stdlib.h>
10705 #else
10706 char *malloc ();
10707 #endif
10708
10709 int
10710 main ()
10711 {
10712 exit (malloc (0) ? 0 : 1);
10713   ;
10714   return 0;
10715 }
10716 _ACEOF
10717 rm -f conftest$ac_exeext
10718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10719   (eval $ac_link) 2>&5
10720   ac_status=$?
10721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724   (eval $ac_try) 2>&5
10725   ac_status=$?
10726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727   (exit $ac_status); }; }; then
10728   ac_cv_func_malloc_0_nonnull=yes
10729 else
10730   echo "$as_me: program exited with status $ac_status" >&5
10731 echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10733
10734 ( exit $ac_status )
10735 ac_cv_func_malloc_0_nonnull=no
10736 fi
10737 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10738 fi
10739 fi
10740 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
10741 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
10742 if test $ac_cv_func_malloc_0_nonnull = yes; then
10743
10744 cat >>confdefs.h <<\_ACEOF
10745 #define HAVE_MALLOC 1
10746 _ACEOF
10747
10748 else
10749   cat >>confdefs.h <<\_ACEOF
10750 #define HAVE_MALLOC 0
10751 _ACEOF
10752
10753    LIBOBJS="$LIBOBJS malloc.$ac_objext"
10754
10755 cat >>confdefs.h <<\_ACEOF
10756 #define malloc rpl_malloc
10757 _ACEOF
10758
10759 fi
10760
10761
10762
10763 echo "$as_me:$LINENO: checking for working memcmp" >&5
10764 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10765 if test "${ac_cv_func_memcmp_working+set}" = set; then
10766   echo $ECHO_N "(cached) $ECHO_C" >&6
10767 else
10768   if test "$cross_compiling" = yes; then
10769   ac_cv_func_memcmp_working=no
10770 else
10771   cat >conftest.$ac_ext <<_ACEOF
10772 #line $LINENO "configure"
10773 /* confdefs.h.  */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h.  */
10778
10779 int
10780 main ()
10781 {
10782
10783   /* Some versions of memcmp are not 8-bit clean.  */
10784   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10785   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10786     exit (1);
10787
10788   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10789      or more and with at least one buffer not starting on a 4-byte boundary.
10790      William Lewis provided this test program.   */
10791   {
10792     char foo[21];
10793     char bar[21];
10794     int i;
10795     for (i = 0; i < 4; i++)
10796       {
10797         char *a = foo + i;
10798         char *b = bar + i;
10799         strcpy (a, "--------01111111");
10800         strcpy (b, "--------10000000");
10801         if (memcmp (a, b, 16) >= 0)
10802           exit (1);
10803       }
10804     exit (0);
10805   }
10806
10807   ;
10808   return 0;
10809 }
10810 _ACEOF
10811 rm -f conftest$ac_exeext
10812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10813   (eval $ac_link) 2>&5
10814   ac_status=$?
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818   (eval $ac_try) 2>&5
10819   ac_status=$?
10820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821   (exit $ac_status); }; }; then
10822   ac_cv_func_memcmp_working=yes
10823 else
10824   echo "$as_me: program exited with status $ac_status" >&5
10825 echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10827
10828 ( exit $ac_status )
10829 ac_cv_func_memcmp_working=no
10830 fi
10831 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10832 fi
10833 fi
10834 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10835 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10836 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10837
10838
10839
10840
10841
10842 for ac_func in memset strchr strerror usleep
10843 do
10844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10845 echo "$as_me:$LINENO: checking for $ac_func" >&5
10846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10847 if eval "test \"\${$as_ac_var+set}\" = set"; then
10848   echo $ECHO_N "(cached) $ECHO_C" >&6
10849 else
10850   cat >conftest.$ac_ext <<_ACEOF
10851 #line $LINENO "configure"
10852 /* confdefs.h.  */
10853 _ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h.  */
10857 /* System header to define __stub macros and hopefully few prototypes,
10858     which can conflict with char $ac_func (); below.
10859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10860     <limits.h> exists even on freestanding compilers.  */
10861 #ifdef __STDC__
10862 # include <limits.h>
10863 #else
10864 # include <assert.h>
10865 #endif
10866 /* Override any gcc2 internal prototype to avoid an error.  */
10867 #ifdef __cplusplus
10868 extern "C"
10869 {
10870 #endif
10871 /* We use char because int might match the return type of a gcc2
10872    builtin and then its argument prototype would still apply.  */
10873 char $ac_func ();
10874 /* The GNU C library defines this for functions which it implements
10875     to always fail with ENOSYS.  Some functions are actually named
10876     something starting with __ and the normal name is an alias.  */
10877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10878 choke me
10879 #else
10880 char (*f) () = $ac_func;
10881 #endif
10882 #ifdef __cplusplus
10883 }
10884 #endif
10885
10886 int
10887 main ()
10888 {
10889 return f != $ac_func;
10890   ;
10891   return 0;
10892 }
10893 _ACEOF
10894 rm -f conftest.$ac_objext conftest$ac_exeext
10895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10896   (eval $ac_link) 2>&5
10897   ac_status=$?
10898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899   (exit $ac_status); } &&
10900          { ac_try='test -s conftest$ac_exeext'
10901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902   (eval $ac_try) 2>&5
10903   ac_status=$?
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); }; }; then
10906   eval "$as_ac_var=yes"
10907 else
10908   echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10910
10911 eval "$as_ac_var=no"
10912 fi
10913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10914 fi
10915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10917 if test `eval echo '${'$as_ac_var'}'` = yes; then
10918   cat >>confdefs.h <<_ACEOF
10919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10920 _ACEOF
10921
10922 fi
10923 done
10924
10925
10926 # Can we rebuild the documentation?
10927
10928         # Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
10929 set dummy gtkdoc-mkdb; ac_word=$2
10930 echo "$as_me:$LINENO: checking for $ac_word" >&5
10931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10932 if test "${ac_cv_prog_GTKDOC+set}" = set; then
10933   echo $ECHO_N "(cached) $ECHO_C" >&6
10934 else
10935   if test -n "$GTKDOC"; then
10936   ac_cv_prog_GTKDOC="$GTKDOC" # Let the user override the test.
10937 else
10938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939 for as_dir in $PATH
10940 do
10941   IFS=$as_save_IFS
10942   test -z "$as_dir" && as_dir=.
10943   for ac_exec_ext in '' $ac_executable_extensions; do
10944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10945     ac_cv_prog_GTKDOC="true"
10946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10947     break 2
10948   fi
10949 done
10950 done
10951
10952   test -z "$ac_cv_prog_GTKDOC" && ac_cv_prog_GTKDOC="false"
10953 fi
10954 fi
10955 GTKDOC=$ac_cv_prog_GTKDOC
10956 if test -n "$GTKDOC"; then
10957   echo "$as_me:$LINENO: result: $GTKDOC" >&5
10958 echo "${ECHO_T}$GTKDOC" >&6
10959 else
10960   echo "$as_me:$LINENO: result: no" >&5
10961 echo "${ECHO_T}no" >&6
10962 fi
10963
10964
10965
10966 if $GTKDOC; then
10967   HAVE_GTK_DOC_TRUE=
10968   HAVE_GTK_DOC_FALSE='#'
10969 else
10970   HAVE_GTK_DOC_TRUE='#'
10971   HAVE_GTK_DOC_FALSE=
10972 fi
10973
10974
10975
10976                 # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
10977 if test "${enable_gtk_doc+set}" = set; then
10978   enableval="$enable_gtk_doc"
10979   enable_gtk_doc="$enableval"
10980 else
10981   enable_gtk_doc=auto
10982 fi;
10983
10984         if test x$enable_gtk_doc = xauto ; then
10985           if test x$GTKDOC = xtrue ; then
10986             enable_gtk_doc=yes
10987           else
10988             enable_gtk_doc=no
10989           fi
10990         fi
10991
10992
10993
10994 if test x$enable_gtk_doc = xyes; then
10995   ENABLE_GTK_DOC_TRUE=
10996   ENABLE_GTK_DOC_FALSE='#'
10997 else
10998   ENABLE_GTK_DOC_TRUE='#'
10999   ENABLE_GTK_DOC_FALSE=
11000 fi
11001
11002
11003
11004
11005   echo "BEGINING OF ACI-PACKAGE-SAVED(XML)">&5;
11006   # Extract the first word of "xml2-config", so it can be a program name with args.
11007 set dummy xml2-config; ac_word=$2
11008 echo "$as_me:$LINENO: checking for $ac_word" >&5
11009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11010 if test "${ac_cv_path_ACI_CACHE_PROG+set}" = set; then
11011   echo $ECHO_N "(cached) $ECHO_C" >&6
11012 else
11013   case $ACI_CACHE_PROG in
11014   [\\/]* | ?:[\\/]*)
11015   ac_cv_path_ACI_CACHE_PROG="$ACI_CACHE_PROG" # Let the user override the test with a path.
11016   ;;
11017   *)
11018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019 for as_dir in $PATH
11020 do
11021   IFS=$as_save_IFS
11022   test -z "$as_dir" && as_dir=.
11023   for ac_exec_ext in '' $ac_executable_extensions; do
11024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11025     ac_cv_path_ACI_CACHE_PROG="$as_dir/$ac_word$ac_exec_ext"
11026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11027     break 2
11028   fi
11029 done
11030 done
11031
11032   test -z "$ac_cv_path_ACI_CACHE_PROG" && ac_cv_path_ACI_CACHE_PROG="no"
11033   ;;
11034 esac
11035 fi
11036 ACI_CACHE_PROG=$ac_cv_path_ACI_CACHE_PROG
11037
11038 if test -n "$ACI_CACHE_PROG"; then
11039   echo "$as_me:$LINENO: result: $ACI_CACHE_PROG" >&5
11040 echo "${ECHO_T}$ACI_CACHE_PROG" >&6
11041 else
11042   echo "$as_me:$LINENO: result: no" >&5
11043 echo "${ECHO_T}no" >&6
11044 fi
11045
11046   aci_module_desc_XML="XML library (version XML2)"
11047     aci_pkg_config_XML=xml2-config
11048     aci_packages="$aci_packages XML"
11049   if test x$ACI_CACHE_PROG = xno; then
11050     HAVE_XML=no
11051     CFLAGS_XML=""
11052     LIBS_XML=""
11053     :
11054   else
11055     HAVE_XML=yes
11056     CFLAGS_XML=`$ACI_CACHE_PROG --cflags `
11057     LIBS_XML=`$ACI_CACHE_PROG --libs `
11058     echo >/dev/null
11059   fi
11060           echo "END OF ACI-PACKAGE-SAVED(XML)">&5;
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071         aci_nameok=`echo SimGrid|sed 'y/-/./'`
11072         if test "xSimGrid" != "x$aci_nameok" ; then
11073           { { echo "$as_me:$LINENO: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&5
11074 echo "$as_me: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&2;}
11075    { (exit 1); exit 1; }; }
11076         fi
11077         echo "BEGINING OF ACI-PACKAGE(SimGrid)">&5;
11078         aci_module_desc_SimGrid="the SimGrid simulator"
11079                 aci_packages="$aci_packages SimGrid"
11080
11081
11082 # Check whether --with-SimGrid or --without-SimGrid was given.
11083 if test "${with_SimGrid+set}" = set; then
11084   withval="$with_SimGrid"
11085   with_SimGrid=$withval
11086            good=yes
11087            if test "$withval" = yes ; then good=no; fi
11088            if test "$withval" = no ; then good=no; fi
11089            if test $good = no ; then
11090              { { echo "$as_me:$LINENO: error: You gave me --with-SimGrid=$withval. I wait for a location, not yes or no (use --enable-the SimGrid simulator or --disable-the SimGrid simulator for that)" >&5
11091 echo "$as_me: error: You gave me --with-SimGrid=$withval. I wait for a location, not yes or no (use --enable-the SimGrid simulator or --disable-the SimGrid simulator for that)" >&2;}
11092    { (exit 1); exit 1; }; }
11093            fi
11094            aci_pkg_prefix_SimGrid="$withval"
11095            CFLAGS_SimGrid="-I$withval/include $CFLAGS_SimGrid"
11096            LIBS_SimGrid="-L$withval/lib $LIBS_SimGrid"
11097
11098 fi;
11099
11100
11101 # Check whether --with-SimGrid-includes or --without-SimGrid-includes was given.
11102 if test "${with_SimGrid_includes+set}" = set; then
11103   withval="$with_SimGrid_includes"
11104   CFLAGS_SimGrid="-I$withval $CFLAGS_SimGrid"
11105            aci_pkg_inc_SimGrid="$withval"
11106
11107 fi;
11108
11109
11110 # Check whether --with-SimGrid-libraries or --without-SimGrid-libraries was given.
11111 if test "${with_SimGrid_libraries+set}" = set; then
11112   withval="$with_SimGrid_libraries"
11113   LIBS_SimGrid="-L$withval $LIBS_SimGrid"
11114              aci_pkg_lib_SimGrid="$withval"
11115 fi;
11116
11117
11118 # Check whether --with-SimGrid-extra or --without-SimGrid-extra was given.
11119 if test "${with_SimGrid_extra+set}" = set; then
11120   withval="$with_SimGrid_extra"
11121   LIBS_SimGrid=`echo $withval|sed 's/!/ /g'`" $LIBS_SimGrid"
11122              aci_pkg_extra_SimGrid="$withval"
11123 fi;
11124
11125
11126                                 OLD_LDFLAGS=$LDFLAGS
11127         OLD_CFLAGS=$CFLAGS
11128         OLD_CPPFLAGS=$CPPFLAGS
11129
11130                 i=`echo -lsimgrid|wc -l`
11131         if test $i != 1 && test $i != 0 ; then
11132           { { echo "$as_me:$LINENO: error: Badly formed args for function ACI-PACKAGE.
11133             please no newline and no tab." >&5
11134 echo "$as_me: error: Badly formed args for function ACI-PACKAGE.
11135             please no newline and no tab." >&2;}
11136    { (exit 1); exit 1; }; }
11137         fi
11138
11139         ac_func_search_save_LIBS="$LIBS"
11140         ac_func_search_save_this_LIBS="$LIBS_SimGrid"
11141         aci_found="no"
11142         echo "----------------------------------------" >&5
11143         echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init without new libs" >&5
11144 echo $ECHO_N "checking for SimGrid. Can I access SG_init without new libs... $ECHO_C" >&6
11145         cat >conftest.$ac_ext <<_ACEOF
11146 #line $LINENO "configure"
11147 /* confdefs.h.  */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h.  */
11152
11153 /* Override any gcc2 internal prototype to avoid an error.  */
11154 #ifdef __cplusplus
11155 extern "C"
11156 #endif
11157 /* We use char because int might match the return type of a gcc2
11158    builtin and then its argument prototype would still apply.  */
11159 char SG_init ();
11160 int
11161 main ()
11162 {
11163 SG_init ();
11164   ;
11165   return 0;
11166 }
11167 _ACEOF
11168 rm -f conftest.$ac_objext conftest$ac_exeext
11169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11170   (eval $ac_link) 2>&5
11171   ac_status=$?
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); } &&
11174          { ac_try='test -s conftest$ac_exeext'
11175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176   (eval $ac_try) 2>&5
11177   ac_status=$?
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); }; }; then
11180   echo "$as_me:$LINENO: result: yes" >&5
11181 echo "${ECHO_T}yes" >&6 aci_found="yes"
11182 else
11183   echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11185
11186 echo "$as_me:$LINENO: result: no" >&5
11187 echo "${ECHO_T}no" >&6
11188 fi
11189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11190         if test "$aci_found" = "no"; then
11191           if test -n "$LIBS_SimGrid" ; then
11192             LIBS="$LIBS_SimGrid"
11193             echo "----------------------------------------" >&5
11194             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init the specified extra args" >&5
11195 echo $ECHO_N "checking for SimGrid. Can I access SG_init the specified extra args... $ECHO_C" >&6
11196             cat >conftest.$ac_ext <<_ACEOF
11197 #line $LINENO "configure"
11198 /* confdefs.h.  */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h.  */
11203
11204 /* Override any gcc2 internal prototype to avoid an error.  */
11205 #ifdef __cplusplus
11206 extern "C"
11207 #endif
11208 /* We use char because int might match the return type of a gcc2
11209    builtin and then its argument prototype would still apply.  */
11210 char SG_init ();
11211 int
11212 main ()
11213 {
11214 SG_init ();
11215   ;
11216   return 0;
11217 }
11218 _ACEOF
11219 rm -f conftest.$ac_objext conftest$ac_exeext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11221   (eval $ac_link) 2>&5
11222   ac_status=$?
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); } &&
11225          { ac_try='test -s conftest$ac_exeext'
11226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227   (eval $ac_try) 2>&5
11228   ac_status=$?
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); }; }; then
11231   aci_found="yes"
11232 else
11233   echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11235
11236 aci_found="no"
11237 fi
11238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11239             echo "$as_me:$LINENO: result: $aci_found" >&5
11240 echo "${ECHO_T}$aci_found" >&6
11241           fi
11242         fi
11243         for i in -lsimgrid
11244         do
11245           if test "x$aci_found" = "xno"; then
11246             LIBS_SimGrid=`echo "$i $ac_func_search_save_this_LIBS"|sed 's/!/ /g'`
11247             LIBS="$LIBS_SimGrid $ac_func_search_save_LIBS"
11248             echo "----------------------------------------" >&5
11249             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init with $LIBS_SimGrid" >&5
11250 echo $ECHO_N "checking for SimGrid. Can I access SG_init with $LIBS_SimGrid... $ECHO_C" >&6
11251             cat >conftest.$ac_ext <<_ACEOF
11252 #line $LINENO "configure"
11253 /* confdefs.h.  */
11254 _ACEOF
11255 cat confdefs.h >>conftest.$ac_ext
11256 cat >>conftest.$ac_ext <<_ACEOF
11257 /* end confdefs.h.  */
11258
11259 /* Override any gcc2 internal prototype to avoid an error.  */
11260 #ifdef __cplusplus
11261 extern "C"
11262 #endif
11263 /* We use char because int might match the return type of a gcc2
11264    builtin and then its argument prototype would still apply.  */
11265 char SG_init ();
11266 int
11267 main ()
11268 {
11269 SG_init ();
11270   ;
11271   return 0;
11272 }
11273 _ACEOF
11274 rm -f conftest.$ac_objext conftest$ac_exeext
11275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11276   (eval $ac_link) 2>&5
11277   ac_status=$?
11278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279   (exit $ac_status); } &&
11280          { ac_try='test -s conftest$ac_exeext'
11281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282   (eval $ac_try) 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); }; }; then
11286   aci_found="yes"
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291 aci_found="no"
11292 fi
11293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11294             echo "$as_me:$LINENO: result: $aci_found" >&5
11295 echo "${ECHO_T}$aci_found" >&6
11296           fi
11297         done
11298         LIBS="$ac_func_search_save_LIBS"
11299
11300                                 if test "x$aci_found" = "xyes" && test "x"simgrid.h != "x" ; then
11301           CPPFLAGS="$CPPFLAGS $CFLAGS_SimGrid"
11302           echo "CPPFLAGS=$CPPFLAGS">&5;
11303           if test "${ac_cv_header_simgrid_h+set}" = set; then
11304   echo "$as_me:$LINENO: checking for simgrid.h" >&5
11305 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
11306 if test "${ac_cv_header_simgrid_h+set}" = set; then
11307   echo $ECHO_N "(cached) $ECHO_C" >&6
11308 fi
11309 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
11310 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
11311 else
11312   # Is the header compilable?
11313 echo "$as_me:$LINENO: checking simgrid.h usability" >&5
11314 echo $ECHO_N "checking simgrid.h usability... $ECHO_C" >&6
11315 cat >conftest.$ac_ext <<_ACEOF
11316 #line $LINENO "configure"
11317 /* confdefs.h.  */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h.  */
11322 $ac_includes_default
11323 #include <simgrid.h>
11324 _ACEOF
11325 rm -f conftest.$ac_objext
11326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11327   (eval $ac_compile) 2>&5
11328   ac_status=$?
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } &&
11331          { ac_try='test -s conftest.$ac_objext'
11332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333   (eval $ac_try) 2>&5
11334   ac_status=$?
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); }; }; then
11337   ac_header_compiler=yes
11338 else
11339   echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11341
11342 ac_header_compiler=no
11343 fi
11344 rm -f conftest.$ac_objext conftest.$ac_ext
11345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11346 echo "${ECHO_T}$ac_header_compiler" >&6
11347
11348 # Is the header present?
11349 echo "$as_me:$LINENO: checking simgrid.h presence" >&5
11350 echo $ECHO_N "checking simgrid.h presence... $ECHO_C" >&6
11351 cat >conftest.$ac_ext <<_ACEOF
11352 #line $LINENO "configure"
11353 /* confdefs.h.  */
11354 _ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h.  */
11358 #include <simgrid.h>
11359 _ACEOF
11360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11362   ac_status=$?
11363   grep -v '^ *+' conftest.er1 >conftest.err
11364   rm -f conftest.er1
11365   cat conftest.err >&5
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); } >/dev/null; then
11368   if test -s conftest.err; then
11369     ac_cpp_err=$ac_c_preproc_warn_flag
11370   else
11371     ac_cpp_err=
11372   fi
11373 else
11374   ac_cpp_err=yes
11375 fi
11376 if test -z "$ac_cpp_err"; then
11377   ac_header_preproc=yes
11378 else
11379   echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11381
11382   ac_header_preproc=no
11383 fi
11384 rm -f conftest.err conftest.$ac_ext
11385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11386 echo "${ECHO_T}$ac_header_preproc" >&6
11387
11388 # So?  What about this header?
11389 case $ac_header_compiler:$ac_header_preproc in
11390   yes:no )
11391     { echo "$as_me:$LINENO: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&5
11392 echo "$as_me: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11393     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the preprocessor's result" >&5
11394 echo "$as_me: WARNING: simgrid.h: proceeding with the preprocessor's result" >&2;}
11395     (
11396       cat <<\_ASBOX
11397 ## ------------------------------------ ##
11398 ## Report this to bug-autoconf@gnu.org. ##
11399 ## ------------------------------------ ##
11400 _ASBOX
11401     ) |
11402       sed "s/^/$as_me: WARNING:     /" >&2
11403     ;;
11404   no:yes )
11405     { echo "$as_me:$LINENO: WARNING: simgrid.h: present but cannot be compiled" >&5
11406 echo "$as_me: WARNING: simgrid.h: present but cannot be compiled" >&2;}
11407     { echo "$as_me:$LINENO: WARNING: simgrid.h: check for missing prerequisite headers?" >&5
11408 echo "$as_me: WARNING: simgrid.h: check for missing prerequisite headers?" >&2;}
11409     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the preprocessor's result" >&5
11410 echo "$as_me: WARNING: simgrid.h: proceeding with the preprocessor's result" >&2;}
11411     (
11412       cat <<\_ASBOX
11413 ## ------------------------------------ ##
11414 ## Report this to bug-autoconf@gnu.org. ##
11415 ## ------------------------------------ ##
11416 _ASBOX
11417     ) |
11418       sed "s/^/$as_me: WARNING:     /" >&2
11419     ;;
11420 esac
11421 echo "$as_me:$LINENO: checking for simgrid.h" >&5
11422 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
11423 if test "${ac_cv_header_simgrid_h+set}" = set; then
11424   echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426   ac_cv_header_simgrid_h=$ac_header_preproc
11427 fi
11428 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
11429 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
11430
11431 fi
11432 if test $ac_cv_header_simgrid_h = yes; then
11433   good=yes
11434 else
11435   good=no
11436 fi
11437
11438
11439         fi
11440         if test "x$aci_found" = "xno" ; then
11441                                    { { echo "$as_me:$LINENO: error: Can't find the package SimGrid. Please install it, or if it is installed, tell me where with the --with-SimGrid argument (see ./configure --help=short)." >&5
11442 echo "$as_me: error: Can't find the package SimGrid. Please install it, or if it is installed, tell me where with the --with-SimGrid argument (see ./configure --help=short)." >&2;}
11443    { (exit 1); exit 1; }; }
11444         else
11445                         HAVE_SimGrid="yes"
11446                 echo >/dev/null
11447         fi
11448         if test "x$HAVE_SimGrid" != "xyes" ; then
11449           CFLAGS_SimGrid=""
11450           LIBS_SimGrid=""
11451         fi
11452
11453
11454
11455
11456         echo "END OF ACI-PACKAGE(SimGrid)">&5;
11457                 LDFLAGS=$OLDLDFLAGS
11458         CPPFLAGS=$OLDCPPFLAGS
11459         CFLAGS=$OLDCFLAGS
11460
11461
11462
11463 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11464 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11465     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11466 if test "${enable_maintainer_mode+set}" = set; then
11467   enableval="$enable_maintainer_mode"
11468   USE_MAINTAINER_MODE=$enableval
11469 else
11470   USE_MAINTAINER_MODE=no
11471 fi;
11472   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11473 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11474
11475
11476 if test $USE_MAINTAINER_MODE = yes; then
11477   MAINTAINER_MODE_TRUE=
11478   MAINTAINER_MODE_FALSE='#'
11479 else
11480   MAINTAINER_MODE_TRUE='#'
11481   MAINTAINER_MODE_FALSE=
11482 fi
11483
11484   MAINT=$MAINTAINER_MODE_TRUE
11485
11486
11487 if test x$USE_MAINTAINER_MODE = xyes
11488 then
11489
11490   # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
11491 if test "${enable_compile_warnings+set}" = set; then
11492   enableval="$enable_compile_warnings"
11493
11494 else
11495   enable_compile_warnings=yes
11496 fi;
11497
11498   echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
11499 echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
11500   warnCFLAGS=
11501   if test "x$GCC" != xyes; then
11502     enable_compile_warnings=no
11503   fi
11504
11505   if test "x$enable_compile_warnings" != "xno"; then
11506     if test "x$GCC" = "xyes"; then
11507       case " $CFLAGS " in
11508       *-Wall*) ;;
11509       *) warnCFLAGS="-g -Wall -Wunused" ;;
11510       esac
11511
11512       ## -W is not all that useful.  And it cannot be controlled
11513       ## with individual -Wno-xxx flags, unlike -Wall
11514       if test "x$enable_compile_warnings" = "xyes"; then
11515         warnCFLAGS="$warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations\
11516                     -finline-functions  -Wshadow -Wpointer-arith \
11517                     -Wwrite-strings -Wno-unused-function -Werror"
11518       fi
11519     fi
11520   fi
11521   echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
11522 echo "${ECHO_T}$warnCFLAGS" >&6
11523
11524   # Check whether --enable-iso-c or --disable-iso-c was given.
11525 if test "${enable_iso_c+set}" = set; then
11526   enableval="$enable_iso_c"
11527
11528 else
11529   enable_iso_c=no
11530 fi;
11531
11532   echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
11533 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
11534   complCFLAGS=
11535   if test "x$enable_iso_c" != "xno"; then
11536     if test "x$GCC" = "xyes"; then
11537       case " $CFLAGS " in
11538       *-ansi*) ;;
11539       *) complCFLAGS="$complCFLAGS -ansi" ;;
11540       esac
11541
11542       case " $CFLAGS " in
11543       *-pedantic*) ;;
11544       *) complCFLAGS="$complCFLAGS -pedantic" ;;
11545       esac
11546     fi
11547   fi
11548   echo "$as_me:$LINENO: result: $complCFLAGS" >&5
11549 echo "${ECHO_T}$complCFLAGS" >&6
11550   if test "x$cflags_set" != "xyes"; then
11551     CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
11552     cflags_set=yes
11553
11554   fi
11555
11556 fi
11557
11558
11559
11560
11561
11562 # Extract the first word of "bash", so it can be a program name with args.
11563 set dummy bash; ac_word=$2
11564 echo "$as_me:$LINENO: checking for $ac_word" >&5
11565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11566 if test "${ac_cv_prog_BASH+set}" = set; then
11567   echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569   if test -n "$BASH"; then
11570   ac_cv_prog_BASH="$BASH" # Let the user override the test.
11571 else
11572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573 for as_dir in $PATH
11574 do
11575   IFS=$as_save_IFS
11576   test -z "$as_dir" && as_dir=.
11577   for ac_exec_ext in '' $ac_executable_extensions; do
11578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11579     ac_cv_prog_BASH="`which bash`"
11580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11581     break 2
11582   fi
11583 done
11584 done
11585
11586   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
11587 fi
11588 fi
11589 BASH=$ac_cv_prog_BASH
11590 if test -n "$BASH"; then
11591   echo "$as_me:$LINENO: result: $BASH" >&5
11592 echo "${ECHO_T}$BASH" >&6
11593 else
11594   echo "$as_me:$LINENO: result: no" >&5
11595 echo "${ECHO_T}no" >&6
11596 fi
11597
11598 WARNING="This file is generated, do not edit"
11599
11600
11601                                                                                                                                                                 ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/include/modules/Makefile src/base/Makefile src/base/Tests/Makefile src/base/Tests/run_tests src/base/Tests/trp_tcp_usage src/base/Tests/trp_file_usage src/modules/Makefile src/examples/Makefile src/examples/ping/Makefile src/examples/bandwidth/Makefile src/examples/saturate/Makefile src/examples/alnem/Makefile doc/Makefile"
11602
11603
11604 cat >confcache <<\_ACEOF
11605 # This file is a shell script that caches the results of configure
11606 # tests run on this system so they can be shared between configure
11607 # scripts and configure runs, see configure's option --config-cache.
11608 # It is not useful on other systems.  If it contains results you don't
11609 # want to keep, you may remove or edit it.
11610 #
11611 # config.status only pays attention to the cache file if you give it
11612 # the --recheck option to rerun configure.
11613 #
11614 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11615 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11616 # following values.
11617
11618 _ACEOF
11619
11620 # The following way of writing the cache mishandles newlines in values,
11621 # but we know of no workaround that is simple, portable, and efficient.
11622 # So, don't put newlines in cache variables' values.
11623 # Ultrix sh set writes to stderr and can't be redirected directly,
11624 # and sets the high bit in the cache file unless we assign to the vars.
11625 {
11626   (set) 2>&1 |
11627     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11628     *ac_space=\ *)
11629       # `set' does not quote correctly, so add quotes (double-quote
11630       # substitution turns \\\\ into \\, and sed turns \\ into \).
11631       sed -n \
11632         "s/'/'\\\\''/g;
11633           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11634       ;;
11635     *)
11636       # `set' quotes correctly as required by POSIX, so do not add quotes.
11637       sed -n \
11638         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11639       ;;
11640     esac;
11641 } |
11642   sed '
11643      t clear
11644      : clear
11645      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11646      t end
11647      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11648      : end' >>confcache
11649 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11650   if test -w $cache_file; then
11651     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11652     cat confcache >$cache_file
11653   else
11654     echo "not updating unwritable cache $cache_file"
11655   fi
11656 fi
11657 rm -f confcache
11658
11659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11660 # Let make expand exec_prefix.
11661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11662
11663 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11664 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11665 # trailing colons and then remove the whole line if VPATH becomes empty
11666 # (actually we leave an empty line to preserve line numbers).
11667 if test "x$srcdir" = x.; then
11668   ac_vpsub='/^[         ]*VPATH[        ]*=/{
11669 s/:*\$(srcdir):*/:/;
11670 s/:*\${srcdir}:*/:/;
11671 s/:*@srcdir@:*/:/;
11672 s/^\([^=]*=[    ]*\):*/\1/;
11673 s/:*$//;
11674 s/^[^=]*=[      ]*$//;
11675 }'
11676 fi
11677
11678 DEFS=-DHAVE_CONFIG_H
11679
11680 ac_libobjs=
11681 ac_ltlibobjs=
11682 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11683   # 1. Remove the extension, and $U if already installed.
11684   ac_i=`echo "$ac_i" |
11685          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11686   # 2. Add them.
11687   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11688   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11689 done
11690 LIBOBJS=$ac_libobjs
11691
11692 LTLIBOBJS=$ac_ltlibobjs
11693
11694
11695 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11696   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11697 Usually this means the macro was only invoked conditionally." >&5
11698 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11699 Usually this means the macro was only invoked conditionally." >&2;}
11700    { (exit 1); exit 1; }; }
11701 fi
11702 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11703   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11704 Usually this means the macro was only invoked conditionally." >&5
11705 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11706 Usually this means the macro was only invoked conditionally." >&2;}
11707    { (exit 1); exit 1; }; }
11708 fi
11709 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11710   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11711 Usually this means the macro was only invoked conditionally." >&5
11712 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11713 Usually this means the macro was only invoked conditionally." >&2;}
11714    { (exit 1); exit 1; }; }
11715 fi
11716 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
11717   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK_DOC\" was never defined.
11718 Usually this means the macro was only invoked conditionally." >&5
11719 echo "$as_me: error: conditional \"HAVE_GTK_DOC\" was never defined.
11720 Usually this means the macro was only invoked conditionally." >&2;}
11721    { (exit 1); exit 1; }; }
11722 fi
11723 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
11724   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
11725 Usually this means the macro was only invoked conditionally." >&5
11726 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
11727 Usually this means the macro was only invoked conditionally." >&2;}
11728    { (exit 1); exit 1; }; }
11729 fi
11730 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11731   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11732 Usually this means the macro was only invoked conditionally." >&5
11733 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11734 Usually this means the macro was only invoked conditionally." >&2;}
11735    { (exit 1); exit 1; }; }
11736 fi
11737
11738 : ${CONFIG_STATUS=./config.status}
11739 ac_clean_files_save=$ac_clean_files
11740 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11741 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11742 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11743 cat >$CONFIG_STATUS <<_ACEOF
11744 #! $SHELL
11745 # Generated by $as_me.
11746 # Run this file to recreate the current configuration.
11747 # Compiler output produced by configure, useful for debugging
11748 # configure, is in config.log if it exists.
11749
11750 debug=false
11751 ac_cs_recheck=false
11752 ac_cs_silent=false
11753 SHELL=\${CONFIG_SHELL-$SHELL}
11754 _ACEOF
11755
11756 cat >>$CONFIG_STATUS <<\_ACEOF
11757 ## --------------------- ##
11758 ## M4sh Initialization.  ##
11759 ## --------------------- ##
11760
11761 # Be Bourne compatible
11762 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11763   emulate sh
11764   NULLCMD=:
11765   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11766   # is contrary to our usage.  Disable this feature.
11767   alias -g '${1+"$@"}'='"$@"'
11768 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11769   set -o posix
11770 fi
11771
11772 # Support unset when possible.
11773 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11774   as_unset=unset
11775 else
11776   as_unset=false
11777 fi
11778
11779
11780 # Work around bugs in pre-3.0 UWIN ksh.
11781 $as_unset ENV MAIL MAILPATH
11782 PS1='$ '
11783 PS2='> '
11784 PS4='+ '
11785
11786 # NLS nuisances.
11787 for as_var in \
11788   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11789   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11790   LC_TELEPHONE LC_TIME
11791 do
11792   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11793     eval $as_var=C; export $as_var
11794   else
11795     $as_unset $as_var
11796   fi
11797 done
11798
11799 # Required to use basename.
11800 if expr a : '\(a\)' >/dev/null 2>&1; then
11801   as_expr=expr
11802 else
11803   as_expr=false
11804 fi
11805
11806 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11807   as_basename=basename
11808 else
11809   as_basename=false
11810 fi
11811
11812
11813 # Name of the executable.
11814 as_me=`$as_basename "$0" ||
11815 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11816          X"$0" : 'X\(//\)$' \| \
11817          X"$0" : 'X\(/\)$' \| \
11818          .     : '\(.\)' 2>/dev/null ||
11819 echo X/"$0" |
11820     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11821           /^X\/\(\/\/\)$/{ s//\1/; q; }
11822           /^X\/\(\/\).*/{ s//\1/; q; }
11823           s/.*/./; q'`
11824
11825
11826 # PATH needs CR, and LINENO needs CR and PATH.
11827 # Avoid depending upon Character Ranges.
11828 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11829 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11830 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11831 as_cr_digits='0123456789'
11832 as_cr_alnum=$as_cr_Letters$as_cr_digits
11833
11834 # The user is always right.
11835 if test "${PATH_SEPARATOR+set}" != set; then
11836   echo "#! /bin/sh" >conf$$.sh
11837   echo  "exit 0"   >>conf$$.sh
11838   chmod +x conf$$.sh
11839   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11840     PATH_SEPARATOR=';'
11841   else
11842     PATH_SEPARATOR=:
11843   fi
11844   rm -f conf$$.sh
11845 fi
11846
11847
11848   as_lineno_1=$LINENO
11849   as_lineno_2=$LINENO
11850   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11851   test "x$as_lineno_1" != "x$as_lineno_2" &&
11852   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11853   # Find who we are.  Look in the path if we contain no path at all
11854   # relative or not.
11855   case $0 in
11856     *[\\/]* ) as_myself=$0 ;;
11857     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858 for as_dir in $PATH
11859 do
11860   IFS=$as_save_IFS
11861   test -z "$as_dir" && as_dir=.
11862   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11863 done
11864
11865        ;;
11866   esac
11867   # We did not find ourselves, most probably we were run as `sh COMMAND'
11868   # in which case we are not to be found in the path.
11869   if test "x$as_myself" = x; then
11870     as_myself=$0
11871   fi
11872   if test ! -f "$as_myself"; then
11873     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11874 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11875    { (exit 1); exit 1; }; }
11876   fi
11877   case $CONFIG_SHELL in
11878   '')
11879     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11881 do
11882   IFS=$as_save_IFS
11883   test -z "$as_dir" && as_dir=.
11884   for as_base in sh bash ksh sh5; do
11885          case $as_dir in
11886          /*)
11887            if ("$as_dir/$as_base" -c '
11888   as_lineno_1=$LINENO
11889   as_lineno_2=$LINENO
11890   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11891   test "x$as_lineno_1" != "x$as_lineno_2" &&
11892   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11893              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11894              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11895              CONFIG_SHELL=$as_dir/$as_base
11896              export CONFIG_SHELL
11897              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11898            fi;;
11899          esac
11900        done
11901 done
11902 ;;
11903   esac
11904
11905   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11906   # uniformly replaced by the line number.  The first 'sed' inserts a
11907   # line-number line before each line; the second 'sed' does the real
11908   # work.  The second script uses 'N' to pair each line-number line
11909   # with the numbered line, and appends trailing '-' during
11910   # substitution so that $LINENO is not a special case at line end.
11911   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11912   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11913   sed '=' <$as_myself |
11914     sed '
11915       N
11916       s,$,-,
11917       : loop
11918       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11919       t loop
11920       s,-$,,
11921       s,^['$as_cr_digits']*\n,,
11922     ' >$as_me.lineno &&
11923   chmod +x $as_me.lineno ||
11924     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11925 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11926    { (exit 1); exit 1; }; }
11927
11928   # Don't try to exec as it changes $[0], causing all sort of problems
11929   # (the dirname of $[0] is not the place where we might find the
11930   # original and so on.  Autoconf is especially sensible to this).
11931   . ./$as_me.lineno
11932   # Exit status is that of the last command.
11933   exit
11934 }
11935
11936
11937 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11938   *c*,-n*) ECHO_N= ECHO_C='
11939 ' ECHO_T='      ' ;;
11940   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11941   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11942 esac
11943
11944 if expr a : '\(a\)' >/dev/null 2>&1; then
11945   as_expr=expr
11946 else
11947   as_expr=false
11948 fi
11949
11950 rm -f conf$$ conf$$.exe conf$$.file
11951 echo >conf$$.file
11952 if ln -s conf$$.file conf$$ 2>/dev/null; then
11953   # We could just check for DJGPP; but this test a) works b) is more generic
11954   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11955   if test -f conf$$.exe; then
11956     # Don't use ln at all; we don't have any links
11957     as_ln_s='cp -p'
11958   else
11959     as_ln_s='ln -s'
11960   fi
11961 elif ln conf$$.file conf$$ 2>/dev/null; then
11962   as_ln_s=ln
11963 else
11964   as_ln_s='cp -p'
11965 fi
11966 rm -f conf$$ conf$$.exe conf$$.file
11967
11968 if mkdir -p . 2>/dev/null; then
11969   as_mkdir_p=:
11970 else
11971   as_mkdir_p=false
11972 fi
11973
11974 as_executable_p="test -f"
11975
11976 # Sed expression to map a string onto a valid CPP name.
11977 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11978
11979 # Sed expression to map a string onto a valid variable name.
11980 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11981
11982
11983 # IFS
11984 # We need space, tab and new line, in precisely that order.
11985 as_nl='
11986 '
11987 IFS="   $as_nl"
11988
11989 # CDPATH.
11990 $as_unset CDPATH
11991
11992 exec 6>&1
11993
11994 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11995 # report actual input values of CONFIG_FILES etc. instead of their
11996 # values after options handling.  Logging --version etc. is OK.
11997 exec 5>>config.log
11998 {
11999   echo
12000   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12001 ## Running $as_me. ##
12002 _ASBOX
12003 } >&5
12004 cat >&5 <<_CSEOF
12005
12006 This file was extended by GRAS $as_me 0.0.040304, which was
12007 generated by GNU Autoconf 2.57.  Invocation command line was
12008
12009   CONFIG_FILES    = $CONFIG_FILES
12010   CONFIG_HEADERS  = $CONFIG_HEADERS
12011   CONFIG_LINKS    = $CONFIG_LINKS
12012   CONFIG_COMMANDS = $CONFIG_COMMANDS
12013   $ $0 $@
12014
12015 _CSEOF
12016 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12017 echo >&5
12018 _ACEOF
12019
12020 # Files that config.status was made for.
12021 if test -n "$ac_config_files"; then
12022   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12023 fi
12024
12025 if test -n "$ac_config_headers"; then
12026   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12027 fi
12028
12029 if test -n "$ac_config_links"; then
12030   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12031 fi
12032
12033 if test -n "$ac_config_commands"; then
12034   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12035 fi
12036
12037 cat >>$CONFIG_STATUS <<\_ACEOF
12038
12039 ac_cs_usage="\
12040 \`$as_me' instantiates files from templates according to the
12041 current configuration.
12042
12043 Usage: $0 [OPTIONS] [FILE]...
12044
12045   -h, --help       print this help, then exit
12046   -V, --version    print version number, then exit
12047   -q, --quiet      do not print progress messages
12048   -d, --debug      don't remove temporary files
12049       --recheck    update $as_me by reconfiguring in the same conditions
12050   --file=FILE[:TEMPLATE]
12051                    instantiate the configuration file FILE
12052   --header=FILE[:TEMPLATE]
12053                    instantiate the configuration header FILE
12054
12055 Configuration files:
12056 $config_files
12057
12058 Configuration headers:
12059 $config_headers
12060
12061 Configuration commands:
12062 $config_commands
12063
12064 Report bugs to <bug-autoconf@gnu.org>."
12065 _ACEOF
12066
12067 cat >>$CONFIG_STATUS <<_ACEOF
12068 ac_cs_version="\\
12069 GRAS config.status 0.0.040304
12070 configured by $0, generated by GNU Autoconf 2.57,
12071   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12072
12073 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12074 Free Software Foundation, Inc.
12075 This config.status script is free software; the Free Software Foundation
12076 gives unlimited permission to copy, distribute and modify it."
12077 srcdir=$srcdir
12078 INSTALL="$INSTALL"
12079 _ACEOF
12080
12081 cat >>$CONFIG_STATUS <<\_ACEOF
12082 # If no file are specified by the user, then we need to provide default
12083 # value.  By we need to know if files were specified by the user.
12084 ac_need_defaults=:
12085 while test $# != 0
12086 do
12087   case $1 in
12088   --*=*)
12089     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12090     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12091     ac_shift=:
12092     ;;
12093   -*)
12094     ac_option=$1
12095     ac_optarg=$2
12096     ac_shift=shift
12097     ;;
12098   *) # This is not an option, so the user has probably given explicit
12099      # arguments.
12100      ac_option=$1
12101      ac_need_defaults=false;;
12102   esac
12103
12104   case $ac_option in
12105   # Handling of the options.
12106 _ACEOF
12107 cat >>$CONFIG_STATUS <<\_ACEOF
12108   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12109     ac_cs_recheck=: ;;
12110   --version | --vers* | -V )
12111     echo "$ac_cs_version"; exit 0 ;;
12112   --he | --h)
12113     # Conflict between --help and --header
12114     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12115 Try \`$0 --help' for more information." >&5
12116 echo "$as_me: error: ambiguous option: $1
12117 Try \`$0 --help' for more information." >&2;}
12118    { (exit 1); exit 1; }; };;
12119   --help | --hel | -h )
12120     echo "$ac_cs_usage"; exit 0 ;;
12121   --debug | --d* | -d )
12122     debug=: ;;
12123   --file | --fil | --fi | --f )
12124     $ac_shift
12125     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12126     ac_need_defaults=false;;
12127   --header | --heade | --head | --hea )
12128     $ac_shift
12129     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12130     ac_need_defaults=false;;
12131   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12132   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12133     ac_cs_silent=: ;;
12134
12135   # This is an error.
12136   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12137 Try \`$0 --help' for more information." >&5
12138 echo "$as_me: error: unrecognized option: $1
12139 Try \`$0 --help' for more information." >&2;}
12140    { (exit 1); exit 1; }; } ;;
12141
12142   *) ac_config_targets="$ac_config_targets $1" ;;
12143
12144   esac
12145   shift
12146 done
12147
12148 ac_configure_extra_args=
12149
12150 if $ac_cs_silent; then
12151   exec 6>/dev/null
12152   ac_configure_extra_args="$ac_configure_extra_args --silent"
12153 fi
12154
12155 _ACEOF
12156 cat >>$CONFIG_STATUS <<_ACEOF
12157 if \$ac_cs_recheck; then
12158   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12159   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12160 fi
12161
12162 _ACEOF
12163
12164 cat >>$CONFIG_STATUS <<_ACEOF
12165 #
12166 # INIT-COMMANDS section.
12167 #
12168
12169 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12170
12171 _ACEOF
12172
12173
12174
12175 cat >>$CONFIG_STATUS <<\_ACEOF
12176 for ac_config_target in $ac_config_targets
12177 do
12178   case "$ac_config_target" in
12179   # Handling of arguments.
12180   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12181   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12182   "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
12183   "src/include/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/modules/Makefile" ;;
12184   "src/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
12185   "src/base/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/Makefile" ;;
12186   "src/base/Tests/run_tests" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/run_tests" ;;
12187   "src/base/Tests/trp_tcp_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_tcp_usage" ;;
12188   "src/base/Tests/trp_file_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_file_usage" ;;
12189   "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
12190   "src/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
12191   "src/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/ping/Makefile" ;;
12192   "src/examples/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/bandwidth/Makefile" ;;
12193   "src/examples/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/saturate/Makefile" ;;
12194   "src/examples/alnem/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/alnem/Makefile" ;;
12195   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12196   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12197   "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
12198   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12199 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12200    { (exit 1); exit 1; }; };;
12201   esac
12202 done
12203
12204 # If the user did not use the arguments to specify the items to instantiate,
12205 # then the envvar interface is used.  Set only those that are not.
12206 # We use the long form for the default assignment because of an extremely
12207 # bizarre bug on SunOS 4.1.3.
12208 if $ac_need_defaults; then
12209   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12210   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12211   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12212 fi
12213
12214 # Have a temporary directory for convenience.  Make it in the build tree
12215 # simply because there is no reason to put it here, and in addition,
12216 # creating and moving files from /tmp can sometimes cause problems.
12217 # Create a temporary directory, and hook for its removal unless debugging.
12218 $debug ||
12219 {
12220   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12221   trap '{ (exit 1); exit 1; }' 1 2 13 15
12222 }
12223
12224 # Create a (secure) tmp directory for tmp files.
12225
12226 {
12227   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12228   test -n "$tmp" && test -d "$tmp"
12229 }  ||
12230 {
12231   tmp=./confstat$$-$RANDOM
12232   (umask 077 && mkdir $tmp)
12233 } ||
12234 {
12235    echo "$me: cannot create a temporary directory in ." >&2
12236    { (exit 1); exit 1; }
12237 }
12238
12239 _ACEOF
12240
12241 cat >>$CONFIG_STATUS <<_ACEOF
12242
12243 #
12244 # CONFIG_FILES section.
12245 #
12246
12247 # No need to generate the scripts if there are no CONFIG_FILES.
12248 # This happens for instance when ./config.status config.h
12249 if test -n "\$CONFIG_FILES"; then
12250   # Protect against being on the right side of a sed subst in config.status.
12251   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12252    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12253 s,@SHELL@,$SHELL,;t t
12254 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12255 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12256 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12257 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12258 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12259 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12260 s,@exec_prefix@,$exec_prefix,;t t
12261 s,@prefix@,$prefix,;t t
12262 s,@program_transform_name@,$program_transform_name,;t t
12263 s,@bindir@,$bindir,;t t
12264 s,@sbindir@,$sbindir,;t t
12265 s,@libexecdir@,$libexecdir,;t t
12266 s,@datadir@,$datadir,;t t
12267 s,@sysconfdir@,$sysconfdir,;t t
12268 s,@sharedstatedir@,$sharedstatedir,;t t
12269 s,@localstatedir@,$localstatedir,;t t
12270 s,@libdir@,$libdir,;t t
12271 s,@includedir@,$includedir,;t t
12272 s,@oldincludedir@,$oldincludedir,;t t
12273 s,@infodir@,$infodir,;t t
12274 s,@mandir@,$mandir,;t t
12275 s,@build_alias@,$build_alias,;t t
12276 s,@host_alias@,$host_alias,;t t
12277 s,@target_alias@,$target_alias,;t t
12278 s,@DEFS@,$DEFS,;t t
12279 s,@ECHO_C@,$ECHO_C,;t t
12280 s,@ECHO_N@,$ECHO_N,;t t
12281 s,@ECHO_T@,$ECHO_T,;t t
12282 s,@LIBS@,$LIBS,;t t
12283 s,@build@,$build,;t t
12284 s,@build_cpu@,$build_cpu,;t t
12285 s,@build_vendor@,$build_vendor,;t t
12286 s,@build_os@,$build_os,;t t
12287 s,@host@,$host,;t t
12288 s,@host_cpu@,$host_cpu,;t t
12289 s,@host_vendor@,$host_vendor,;t t
12290 s,@host_os@,$host_os,;t t
12291 s,@target@,$target,;t t
12292 s,@target_cpu@,$target_cpu,;t t
12293 s,@target_vendor@,$target_vendor,;t t
12294 s,@target_os@,$target_os,;t t
12295 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12296 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12297 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12298 s,@CYGPATH_W@,$CYGPATH_W,;t t
12299 s,@PACKAGE@,$PACKAGE,;t t
12300 s,@VERSION@,$VERSION,;t t
12301 s,@ACLOCAL@,$ACLOCAL,;t t
12302 s,@AUTOCONF@,$AUTOCONF,;t t
12303 s,@AUTOMAKE@,$AUTOMAKE,;t t
12304 s,@AUTOHEADER@,$AUTOHEADER,;t t
12305 s,@MAKEINFO@,$MAKEINFO,;t t
12306 s,@AMTAR@,$AMTAR,;t t
12307 s,@install_sh@,$install_sh,;t t
12308 s,@STRIP@,$STRIP,;t t
12309 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12310 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12311 s,@AWK@,$AWK,;t t
12312 s,@SET_MAKE@,$SET_MAKE,;t t
12313 s,@CC@,$CC,;t t
12314 s,@CFLAGS@,$CFLAGS,;t t
12315 s,@LDFLAGS@,$LDFLAGS,;t t
12316 s,@CPPFLAGS@,$CPPFLAGS,;t t
12317 s,@ac_ct_CC@,$ac_ct_CC,;t t
12318 s,@EXEEXT@,$EXEEXT,;t t
12319 s,@OBJEXT@,$OBJEXT,;t t
12320 s,@DEPDIR@,$DEPDIR,;t t
12321 s,@am__include@,$am__include,;t t
12322 s,@am__quote@,$am__quote,;t t
12323 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12324 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12325 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12326 s,@CCDEPMODE@,$CCDEPMODE,;t t
12327 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12328 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12329 s,@LN_S@,$LN_S,;t t
12330 s,@ECHO@,$ECHO,;t t
12331 s,@RANLIB@,$RANLIB,;t t
12332 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12333 s,@CPP@,$CPP,;t t
12334 s,@EGREP@,$EGREP,;t t
12335 s,@LIBTOOL@,$LIBTOOL,;t t
12336 s,@LIBOBJS@,$LIBOBJS,;t t
12337 s,@GTKDOC@,$GTKDOC,;t t
12338 s,@HAVE_GTK_DOC_TRUE@,$HAVE_GTK_DOC_TRUE,;t t
12339 s,@HAVE_GTK_DOC_FALSE@,$HAVE_GTK_DOC_FALSE,;t t
12340 s,@HAVE_GTK_DOC@,$HAVE_GTK_DOC,;t t
12341 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
12342 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
12343 s,@ACI_CACHE_PROG@,$ACI_CACHE_PROG,;t t
12344 s,@aci_module_desc_XML@,$aci_module_desc_XML,;t t
12345 s,@aci_pkg_config_XML@,$aci_pkg_config_XML,;t t
12346 s,@HAVE_XML@,$HAVE_XML,;t t
12347 s,@CFLAGS_XML@,$CFLAGS_XML,;t t
12348 s,@LIBS_XML@,$LIBS_XML,;t t
12349 s,@aci_module_desc_SimGrid@,$aci_module_desc_SimGrid,;t t
12350 s,@aci_pkg_prefix_SimGrid@,$aci_pkg_prefix_SimGrid,;t t
12351 s,@aci_pkg_inc_SimGrid@,$aci_pkg_inc_SimGrid,;t t
12352 s,@aci_pkg_lib_SimGrid@,$aci_pkg_lib_SimGrid,;t t
12353 s,@aci_pkg_extra_SimGrid@,$aci_pkg_extra_SimGrid,;t t
12354 s,@HAVE_SimGrid@,$HAVE_SimGrid,;t t
12355 s,@CFLAGS_SimGrid@,$CFLAGS_SimGrid,;t t
12356 s,@LIBS_SimGrid@,$LIBS_SimGrid,;t t
12357 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12358 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12359 s,@MAINT@,$MAINT,;t t
12360 s,@cflags_set@,$cflags_set,;t t
12361 s,@BASH@,$BASH,;t t
12362 s,@WARNING@,$WARNING,;t t
12363 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12364 CEOF
12365
12366 _ACEOF
12367
12368   cat >>$CONFIG_STATUS <<\_ACEOF
12369   # Split the substitutions into bite-sized pieces for seds with
12370   # small command number limits, like on Digital OSF/1 and HP-UX.
12371   ac_max_sed_lines=48
12372   ac_sed_frag=1 # Number of current file.
12373   ac_beg=1 # First line for current file.
12374   ac_end=$ac_max_sed_lines # Line after last line for current file.
12375   ac_more_lines=:
12376   ac_sed_cmds=
12377   while $ac_more_lines; do
12378     if test $ac_beg -gt 1; then
12379       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12380     else
12381       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12382     fi
12383     if test ! -s $tmp/subs.frag; then
12384       ac_more_lines=false
12385     else
12386       # The purpose of the label and of the branching condition is to
12387       # speed up the sed processing (if there are no `@' at all, there
12388       # is no need to browse any of the substitutions).
12389       # These are the two extra sed commands mentioned above.
12390       (echo ':t
12391   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12392       if test -z "$ac_sed_cmds"; then
12393         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12394       else
12395         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12396       fi
12397       ac_sed_frag=`expr $ac_sed_frag + 1`
12398       ac_beg=$ac_end
12399       ac_end=`expr $ac_end + $ac_max_sed_lines`
12400     fi
12401   done
12402   if test -z "$ac_sed_cmds"; then
12403     ac_sed_cmds=cat
12404   fi
12405 fi # test -n "$CONFIG_FILES"
12406
12407 _ACEOF
12408 cat >>$CONFIG_STATUS <<\_ACEOF
12409 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12410   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12411   case $ac_file in
12412   - | *:- | *:-:* ) # input from stdin
12413         cat >$tmp/stdin
12414         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12415         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12416   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12417         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12418   * )   ac_file_in=$ac_file.in ;;
12419   esac
12420
12421   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12422   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12423 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12424          X"$ac_file" : 'X\(//\)[^/]' \| \
12425          X"$ac_file" : 'X\(//\)$' \| \
12426          X"$ac_file" : 'X\(/\)' \| \
12427          .     : '\(.\)' 2>/dev/null ||
12428 echo X"$ac_file" |
12429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12430           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12431           /^X\(\/\/\)$/{ s//\1/; q; }
12432           /^X\(\/\).*/{ s//\1/; q; }
12433           s/.*/./; q'`
12434   { if $as_mkdir_p; then
12435     mkdir -p "$ac_dir"
12436   else
12437     as_dir="$ac_dir"
12438     as_dirs=
12439     while test ! -d "$as_dir"; do
12440       as_dirs="$as_dir $as_dirs"
12441       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12442 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12443          X"$as_dir" : 'X\(//\)[^/]' \| \
12444          X"$as_dir" : 'X\(//\)$' \| \
12445          X"$as_dir" : 'X\(/\)' \| \
12446          .     : '\(.\)' 2>/dev/null ||
12447 echo X"$as_dir" |
12448     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12449           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12450           /^X\(\/\/\)$/{ s//\1/; q; }
12451           /^X\(\/\).*/{ s//\1/; q; }
12452           s/.*/./; q'`
12453     done
12454     test ! -n "$as_dirs" || mkdir $as_dirs
12455   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12456 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12457    { (exit 1); exit 1; }; }; }
12458
12459   ac_builddir=.
12460
12461 if test "$ac_dir" != .; then
12462   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12463   # A "../" for each directory in $ac_dir_suffix.
12464   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12465 else
12466   ac_dir_suffix= ac_top_builddir=
12467 fi
12468
12469 case $srcdir in
12470   .)  # No --srcdir option.  We are building in place.
12471     ac_srcdir=.
12472     if test -z "$ac_top_builddir"; then
12473        ac_top_srcdir=.
12474     else
12475        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12476     fi ;;
12477   [\\/]* | ?:[\\/]* )  # Absolute path.
12478     ac_srcdir=$srcdir$ac_dir_suffix;
12479     ac_top_srcdir=$srcdir ;;
12480   *) # Relative path.
12481     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12482     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12483 esac
12484 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12485 # absolute.
12486 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12487 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12488 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12489 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12490
12491
12492   case $INSTALL in
12493   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12494   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12495   esac
12496
12497   if test x"$ac_file" != x-; then
12498     { echo "$as_me:$LINENO: creating $ac_file" >&5
12499 echo "$as_me: creating $ac_file" >&6;}
12500     rm -f "$ac_file"
12501   fi
12502   # Let's still pretend it is `configure' which instantiates (i.e., don't
12503   # use $as_me), people would be surprised to read:
12504   #    /* config.h.  Generated by config.status.  */
12505   if test x"$ac_file" = x-; then
12506     configure_input=
12507   else
12508     configure_input="$ac_file.  "
12509   fi
12510   configure_input=$configure_input"Generated from `echo $ac_file_in |
12511                                      sed 's,.*/,,'` by configure."
12512
12513   # First look for the input files in the build tree, otherwise in the
12514   # src tree.
12515   ac_file_inputs=`IFS=:
12516     for f in $ac_file_in; do
12517       case $f in
12518       -) echo $tmp/stdin ;;
12519       [\\/$]*)
12520          # Absolute (can't be DOS-style, as IFS=:)
12521          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12522 echo "$as_me: error: cannot find input file: $f" >&2;}
12523    { (exit 1); exit 1; }; }
12524          echo $f;;
12525       *) # Relative
12526          if test -f "$f"; then
12527            # Build tree
12528            echo $f
12529          elif test -f "$srcdir/$f"; then
12530            # Source tree
12531            echo $srcdir/$f
12532          else
12533            # /dev/null tree
12534            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12535 echo "$as_me: error: cannot find input file: $f" >&2;}
12536    { (exit 1); exit 1; }; }
12537          fi;;
12538       esac
12539     done` || { (exit 1); exit 1; }
12540 _ACEOF
12541 cat >>$CONFIG_STATUS <<_ACEOF
12542   sed "$ac_vpsub
12543 $extrasub
12544 _ACEOF
12545 cat >>$CONFIG_STATUS <<\_ACEOF
12546 :t
12547 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12548 s,@configure_input@,$configure_input,;t t
12549 s,@srcdir@,$ac_srcdir,;t t
12550 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12551 s,@top_srcdir@,$ac_top_srcdir,;t t
12552 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12553 s,@builddir@,$ac_builddir,;t t
12554 s,@abs_builddir@,$ac_abs_builddir,;t t
12555 s,@top_builddir@,$ac_top_builddir,;t t
12556 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12557 s,@INSTALL@,$ac_INSTALL,;t t
12558 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12559   rm -f $tmp/stdin
12560   if test x"$ac_file" != x-; then
12561     mv $tmp/out $ac_file
12562   else
12563     cat $tmp/out
12564     rm -f $tmp/out
12565   fi
12566
12567   # Run the commands associated with the file.
12568   case $ac_file in
12569     Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
12570      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
12571      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
12572      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
12573     src/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
12574      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
12575      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
12576      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
12577     src/include/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
12578      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
12579      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
12580      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
12581     src/include/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
12582      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
12583      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
12584      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
12585     src/base/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
12586      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
12587      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
12588      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
12589     src/base/Tests/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
12590      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
12591      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
12592      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
12593     src/base/Tests/run_tests ) ( cd src/include ; test -e gras || ln -s . gras )
12594      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
12595      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
12596      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
12597     src/base/Tests/trp_tcp_usage ) ( cd src/include ; test -e gras || ln -s . gras )
12598      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
12599      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
12600      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
12601     src/base/Tests/trp_file_usage ) ( cd src/include ; test -e gras || ln -s . gras )
12602      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
12603      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
12604      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
12605     src/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
12606      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
12607      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
12608      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
12609     src/examples/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
12610      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
12611      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
12612      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
12613     src/examples/ping/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
12614      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
12615      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
12616      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
12617     src/examples/bandwidth/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
12618      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
12619      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
12620      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
12621     src/examples/saturate/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
12622      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
12623      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
12624      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
12625     src/examples/alnem/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
12626      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
12627      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
12628      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
12629     doc/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
12630      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
12631      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
12632      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
12633   esac
12634 done
12635 _ACEOF
12636 cat >>$CONFIG_STATUS <<\_ACEOF
12637
12638 #
12639 # CONFIG_HEADER section.
12640 #
12641
12642 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12643 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12644 #
12645 # ac_d sets the value in "#define NAME VALUE" lines.
12646 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
12647 ac_dB='[        ].*$,\1#\2'
12648 ac_dC=' '
12649 ac_dD=',;t'
12650 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12651 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12652 ac_uB='$,\1#\2define\3'
12653 ac_uC=' '
12654 ac_uD=',;t'
12655
12656 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12657   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12658   case $ac_file in
12659   - | *:- | *:-:* ) # input from stdin
12660         cat >$tmp/stdin
12661         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12662         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12663   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12664         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12665   * )   ac_file_in=$ac_file.in ;;
12666   esac
12667
12668   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12669 echo "$as_me: creating $ac_file" >&6;}
12670
12671   # First look for the input files in the build tree, otherwise in the
12672   # src tree.
12673   ac_file_inputs=`IFS=:
12674     for f in $ac_file_in; do
12675       case $f in
12676       -) echo $tmp/stdin ;;
12677       [\\/$]*)
12678          # Absolute (can't be DOS-style, as IFS=:)
12679          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12680 echo "$as_me: error: cannot find input file: $f" >&2;}
12681    { (exit 1); exit 1; }; }
12682          echo $f;;
12683       *) # Relative
12684          if test -f "$f"; then
12685            # Build tree
12686            echo $f
12687          elif test -f "$srcdir/$f"; then
12688            # Source tree
12689            echo $srcdir/$f
12690          else
12691            # /dev/null tree
12692            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12693 echo "$as_me: error: cannot find input file: $f" >&2;}
12694    { (exit 1); exit 1; }; }
12695          fi;;
12696       esac
12697     done` || { (exit 1); exit 1; }
12698   # Remove the trailing spaces.
12699   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
12700
12701 _ACEOF
12702
12703 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12704 # `conftest.undefs', that substitutes the proper values into
12705 # config.h.in to produce config.h.  The first handles `#define'
12706 # templates, and the second `#undef' templates.
12707 # And first: Protect against being on the right side of a sed subst in
12708 # config.status.  Protect against being in an unquoted here document
12709 # in config.status.
12710 rm -f conftest.defines conftest.undefs
12711 # Using a here document instead of a string reduces the quoting nightmare.
12712 # Putting comments in sed scripts is not portable.
12713 #
12714 # `end' is used to avoid that the second main sed command (meant for
12715 # 0-ary CPP macros) applies to n-ary macro definitions.
12716 # See the Autoconf documentation for `clear'.
12717 cat >confdef2sed.sed <<\_ACEOF
12718 s/[\\&,]/\\&/g
12719 s,[\\$`],\\&,g
12720 t clear
12721 : clear
12722 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12723 t end
12724 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12725 : end
12726 _ACEOF
12727 # If some macros were called several times there might be several times
12728 # the same #defines, which is useless.  Nevertheless, we may not want to
12729 # sort them, since we want the *last* AC-DEFINE to be honored.
12730 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12731 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12732 rm -f confdef2sed.sed
12733
12734 # This sed command replaces #undef with comments.  This is necessary, for
12735 # example, in the case of _POSIX_SOURCE, which is predefined and required
12736 # on some systems where configure will not decide to define it.
12737 cat >>conftest.undefs <<\_ACEOF
12738 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12739 _ACEOF
12740
12741 # Break up conftest.defines because some shells have a limit on the size
12742 # of here documents, and old seds have small limits too (100 cmds).
12743 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12744 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12745 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12746 echo '  :' >>$CONFIG_STATUS
12747 rm -f conftest.tail
12748 while grep . conftest.defines >/dev/null
12749 do
12750   # Write a limited-size here document to $tmp/defines.sed.
12751   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12752   # Speed up: don't consider the non `#define' lines.
12753   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
12754   # Work around the forget-to-reset-the-flag bug.
12755   echo 't clr' >>$CONFIG_STATUS
12756   echo ': clr' >>$CONFIG_STATUS
12757   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12758   echo 'CEOF
12759   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12760   rm -f $tmp/in
12761   mv $tmp/out $tmp/in
12762 ' >>$CONFIG_STATUS
12763   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12764   rm -f conftest.defines
12765   mv conftest.tail conftest.defines
12766 done
12767 rm -f conftest.defines
12768 echo '  fi # grep' >>$CONFIG_STATUS
12769 echo >>$CONFIG_STATUS
12770
12771 # Break up conftest.undefs because some shells have a limit on the size
12772 # of here documents, and old seds have small limits too (100 cmds).
12773 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12774 rm -f conftest.tail
12775 while grep . conftest.undefs >/dev/null
12776 do
12777   # Write a limited-size here document to $tmp/undefs.sed.
12778   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12779   # Speed up: don't consider the non `#undef'
12780   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12781   # Work around the forget-to-reset-the-flag bug.
12782   echo 't clr' >>$CONFIG_STATUS
12783   echo ': clr' >>$CONFIG_STATUS
12784   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12785   echo 'CEOF
12786   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12787   rm -f $tmp/in
12788   mv $tmp/out $tmp/in
12789 ' >>$CONFIG_STATUS
12790   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12791   rm -f conftest.undefs
12792   mv conftest.tail conftest.undefs
12793 done
12794 rm -f conftest.undefs
12795
12796 cat >>$CONFIG_STATUS <<\_ACEOF
12797   # Let's still pretend it is `configure' which instantiates (i.e., don't
12798   # use $as_me), people would be surprised to read:
12799   #    /* config.h.  Generated by config.status.  */
12800   if test x"$ac_file" = x-; then
12801     echo "/* Generated by configure.  */" >$tmp/config.h
12802   else
12803     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12804   fi
12805   cat $tmp/in >>$tmp/config.h
12806   rm -f $tmp/in
12807   if test x"$ac_file" != x-; then
12808     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12809       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12810 echo "$as_me: $ac_file is unchanged" >&6;}
12811     else
12812       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12813 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12814          X"$ac_file" : 'X\(//\)[^/]' \| \
12815          X"$ac_file" : 'X\(//\)$' \| \
12816          X"$ac_file" : 'X\(/\)' \| \
12817          .     : '\(.\)' 2>/dev/null ||
12818 echo X"$ac_file" |
12819     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12820           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12821           /^X\(\/\/\)$/{ s//\1/; q; }
12822           /^X\(\/\).*/{ s//\1/; q; }
12823           s/.*/./; q'`
12824       { if $as_mkdir_p; then
12825     mkdir -p "$ac_dir"
12826   else
12827     as_dir="$ac_dir"
12828     as_dirs=
12829     while test ! -d "$as_dir"; do
12830       as_dirs="$as_dir $as_dirs"
12831       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12833          X"$as_dir" : 'X\(//\)[^/]' \| \
12834          X"$as_dir" : 'X\(//\)$' \| \
12835          X"$as_dir" : 'X\(/\)' \| \
12836          .     : '\(.\)' 2>/dev/null ||
12837 echo X"$as_dir" |
12838     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12839           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12840           /^X\(\/\/\)$/{ s//\1/; q; }
12841           /^X\(\/\).*/{ s//\1/; q; }
12842           s/.*/./; q'`
12843     done
12844     test ! -n "$as_dirs" || mkdir $as_dirs
12845   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12846 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12847    { (exit 1); exit 1; }; }; }
12848
12849       rm -f $ac_file
12850       mv $tmp/config.h $ac_file
12851     fi
12852   else
12853     cat $tmp/config.h
12854     rm -f $tmp/config.h
12855   fi
12856 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
12857 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12858 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12859          X$ac_file : 'X\(//\)[^/]' \| \
12860          X$ac_file : 'X\(//\)$' \| \
12861          X$ac_file : 'X\(/\)' \| \
12862          .     : '\(.\)' 2>/dev/null ||
12863 echo X$ac_file |
12864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12865           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12866           /^X\(\/\/\)$/{ s//\1/; q; }
12867           /^X\(\/\).*/{ s//\1/; q; }
12868           s/.*/./; q'`/stamp-h$_am_stamp_count
12869 done
12870 _ACEOF
12871 cat >>$CONFIG_STATUS <<\_ACEOF
12872
12873 #
12874 # CONFIG_COMMANDS section.
12875 #
12876 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12877   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12878   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12879   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12880 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12881          X"$ac_dest" : 'X\(//\)[^/]' \| \
12882          X"$ac_dest" : 'X\(//\)$' \| \
12883          X"$ac_dest" : 'X\(/\)' \| \
12884          .     : '\(.\)' 2>/dev/null ||
12885 echo X"$ac_dest" |
12886     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12887           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12888           /^X\(\/\/\)$/{ s//\1/; q; }
12889           /^X\(\/\).*/{ s//\1/; q; }
12890           s/.*/./; q'`
12891   ac_builddir=.
12892
12893 if test "$ac_dir" != .; then
12894   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12895   # A "../" for each directory in $ac_dir_suffix.
12896   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12897 else
12898   ac_dir_suffix= ac_top_builddir=
12899 fi
12900
12901 case $srcdir in
12902   .)  # No --srcdir option.  We are building in place.
12903     ac_srcdir=.
12904     if test -z "$ac_top_builddir"; then
12905        ac_top_srcdir=.
12906     else
12907        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12908     fi ;;
12909   [\\/]* | ?:[\\/]* )  # Absolute path.
12910     ac_srcdir=$srcdir$ac_dir_suffix;
12911     ac_top_srcdir=$srcdir ;;
12912   *) # Relative path.
12913     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12914     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12915 esac
12916 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12917 # absolute.
12918 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12919 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12920 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12921 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12922
12923
12924   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12925 echo "$as_me: executing $ac_dest commands" >&6;}
12926   case $ac_dest in
12927     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12928   # Strip MF so we end up with the name of the file.
12929   mf=`echo "$mf" | sed -e 's/:.*$//'`
12930   # Check whether this is an Automake generated Makefile or not.
12931   # We used to match only the files named `Makefile.in', but
12932   # some people rename them; so instead we look at the file content.
12933   # Grep'ing the first line is not enough: some people post-process
12934   # each Makefile.in and add a new line on top of each file to say so.
12935   # So let's grep whole file.
12936   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12937     dirpart=`(dirname "$mf") 2>/dev/null ||
12938 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12939          X"$mf" : 'X\(//\)[^/]' \| \
12940          X"$mf" : 'X\(//\)$' \| \
12941          X"$mf" : 'X\(/\)' \| \
12942          .     : '\(.\)' 2>/dev/null ||
12943 echo X"$mf" |
12944     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12945           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12946           /^X\(\/\/\)$/{ s//\1/; q; }
12947           /^X\(\/\).*/{ s//\1/; q; }
12948           s/.*/./; q'`
12949   else
12950     continue
12951   fi
12952   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12953   # Extract the definition of DEP_FILES from the Makefile without
12954   # running `make'.
12955   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12956   test -z "$DEPDIR" && continue
12957   # When using ansi2knr, U may be empty or an underscore; expand it
12958   U=`sed -n -e '/^U = / s///p' < "$mf"`
12959   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12960   # We invoke sed twice because it is the simplest approach to
12961   # changing $(DEPDIR) to its actual value in the expansion.
12962   for file in `sed -n -e '
12963     /^DEP_FILES = .*\\\\$/ {
12964       s/^DEP_FILES = //
12965       :loop
12966         s/\\\\$//
12967         p
12968         n
12969         /\\\\$/ b loop
12970       p
12971     }
12972     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12973        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12974     # Make sure the directory exists.
12975     test -f "$dirpart/$file" && continue
12976     fdir=`(dirname "$file") 2>/dev/null ||
12977 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12978          X"$file" : 'X\(//\)[^/]' \| \
12979          X"$file" : 'X\(//\)$' \| \
12980          X"$file" : 'X\(/\)' \| \
12981          .     : '\(.\)' 2>/dev/null ||
12982 echo X"$file" |
12983     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12984           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12985           /^X\(\/\/\)$/{ s//\1/; q; }
12986           /^X\(\/\).*/{ s//\1/; q; }
12987           s/.*/./; q'`
12988     { if $as_mkdir_p; then
12989     mkdir -p $dirpart/$fdir
12990   else
12991     as_dir=$dirpart/$fdir
12992     as_dirs=
12993     while test ! -d "$as_dir"; do
12994       as_dirs="$as_dir $as_dirs"
12995       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12997          X"$as_dir" : 'X\(//\)[^/]' \| \
12998          X"$as_dir" : 'X\(//\)$' \| \
12999          X"$as_dir" : 'X\(/\)' \| \
13000          .     : '\(.\)' 2>/dev/null ||
13001 echo X"$as_dir" |
13002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13003           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13004           /^X\(\/\/\)$/{ s//\1/; q; }
13005           /^X\(\/\).*/{ s//\1/; q; }
13006           s/.*/./; q'`
13007     done
13008     test ! -n "$as_dirs" || mkdir $as_dirs
13009   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13010 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13011    { (exit 1); exit 1; }; }; }
13012
13013     # echo "creating $dirpart/$file"
13014     echo '# dummy' > "$dirpart/$file"
13015   done
13016 done
13017  ;;
13018   esac
13019 done
13020 _ACEOF
13021
13022 cat >>$CONFIG_STATUS <<\_ACEOF
13023
13024 { (exit 0); exit 0; }
13025 _ACEOF
13026 chmod +x $CONFIG_STATUS
13027 ac_clean_files=$ac_clean_files_save
13028
13029
13030 # configure is writing to config.log, and then calls config.status.
13031 # config.status does its own redirection, appending to config.log.
13032 # Unfortunately, on DOS this fails, as config.log is still kept open
13033 # by configure, so config.status won't be able to write to it; its
13034 # output is simply discarded.  So we exec the FD to /dev/null,
13035 # effectively closing config.log, so it can be properly (re)opened and
13036 # appended to by config.status.  When coming back to configure, we
13037 # need to make the FD available again.
13038 if test "$no_create" != yes; then
13039   ac_cs_success=:
13040   ac_config_status_args=
13041   test "$silent" = yes &&
13042     ac_config_status_args="$ac_config_status_args --quiet"
13043   exec 5>/dev/null
13044   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13045   exec 5>>config.log
13046   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13047   # would make configure fail if this is the last instruction.
13048   $ac_cs_success || { (exit 1); exit 1; }
13049 fi
13050
13051
13052 echo "
13053
13054 Configuration of package \`${PACKAGE}':
13055
13056         Compiler:       ${CC}
13057
13058         CFlags:         ${CFLAGS}
13059         LDFlags:        ${LDFLAGS}
13060 "
13061
13062 exit 0;