Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
8e76abf227bfa09649c7e9d618860ccc20d3f774
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.154 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.3-cvs.
5 #
6 # Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 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 more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 case X$ECHO in
560 X*--fallback-echo)
561   # Remove one level of quotation (which was required for Make).
562   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563   ;;
564 esac
565
566 echo=${ECHO-echo}
567 if test "X$1" = X--no-reexec; then
568   # Discard the --no-reexec flag, and continue.
569   shift
570 elif test "X$1" = X--fallback-echo; then
571   # Avoid inline document here, it may be left over
572   :
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574   # Yippee, $echo works!
575   :
576 else
577   # Restart under the correct shell.
578   exec $SHELL "$0" --no-reexec ${1+"$@"}
579 fi
580
581 if test "X$1" = X--fallback-echo; then
582   # used as fallback echo
583   shift
584   cat <<EOF
585 $*
586 EOF
587   exit 0
588 fi
589
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 # if CDPATH is set.
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600        echo_test_string=`eval $cmd` &&
601        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602     then
603       break
604     fi
605   done
606 fi
607
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610    test "X$echo_testing_string" = "X$echo_test_string"; then
611   :
612 else
613   # The Solaris, AIX, and Digital Unix default echo programs unquote
614   # backslashes.  This makes it impossible to quote backslashes using
615   #   echo "$something" | sed 's/\\/\\\\/g'
616   #
617   # So, first we look for a working echo in the user's PATH.
618
619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620   for dir in $PATH /usr/ucb; do
621     IFS="$lt_save_ifs"
622     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625        test "X$echo_testing_string" = "X$echo_test_string"; then
626       echo="$dir/echo"
627       break
628     fi
629   done
630   IFS="$lt_save_ifs"
631
632   if test "X$echo" = Xecho; then
633     # We didn't find a better echo, so look for alternatives.
634     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636        test "X$echo_testing_string" = "X$echo_test_string"; then
637       # This shell has a builtin print -r that does the trick.
638       echo='print -r'
639     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640          test "X$CONFIG_SHELL" != X/bin/ksh; then
641       # If we have ksh, try running configure again with it.
642       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643       export ORIGINAL_CONFIG_SHELL
644       CONFIG_SHELL=/bin/ksh
645       export CONFIG_SHELL
646       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647     else
648       # Try using printf.
649       echo='printf %s\n'
650       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652          test "X$echo_testing_string" = "X$echo_test_string"; then
653         # Cool, printf works
654         :
655       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656            test "X$echo_testing_string" = 'X\t' &&
657            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658            test "X$echo_testing_string" = "X$echo_test_string"; then
659         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660         export CONFIG_SHELL
661         SHELL="$CONFIG_SHELL"
662         export SHELL
663         echo="$CONFIG_SHELL $0 --fallback-echo"
664       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665            test "X$echo_testing_string" = 'X\t' &&
666            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667            test "X$echo_testing_string" = "X$echo_test_string"; then
668         echo="$CONFIG_SHELL $0 --fallback-echo"
669       else
670         # maybe with a smaller string...
671         prev=:
672
673         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675           then
676             break
677           fi
678           prev="$cmd"
679         done
680
681         if test "$prev" != 'sed 50q "$0"'; then
682           echo_test_string=`eval $prev`
683           export echo_test_string
684           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685         else
686           # Oops.  We lost completely, so just stick with echo.
687           echo=echo
688         fi
689       fi
690     fi
691   fi
692 fi
693 fi
694
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
697 ECHO=$echo
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700 fi
701
702
703
704
705 tagnames=${tagnames+${tagnames},}CXX
706
707 tagnames=${tagnames+${tagnames},}F77
708
709 exec 7<&0 </dev/null 6>&1
710
711 # Name of the host.
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
716 #
717 # Initializations.
718 #
719 ac_default_prefix=/usr/local
720 ac_clean_files=
721 ac_config_libobj_dir=.
722 LIBOBJS=
723 cross_compiling=no
724 subdirs=
725 MFLAGS=
726 MAKEFLAGS=
727 SHELL=${CONFIG_SHELL-/bin/sh}
728
729 # Identity of this package.
730 PACKAGE_NAME='simgrid'
731 PACKAGE_TARNAME='simgrid'
732 PACKAGE_VERSION='3.3-cvs'
733 PACKAGE_STRING='simgrid 3.3-cvs'
734 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
735
736 ac_unique_file="include/gras.h"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 target
819 target_cpu
820 target_vendor
821 target_os
822 INSTALL_PROGRAM
823 INSTALL_SCRIPT
824 INSTALL_DATA
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 CC
844 CFLAGS
845 LDFLAGS
846 CPPFLAGS
847 ac_ct_CC
848 EXEEXT
849 OBJEXT
850 DEPDIR
851 am__include
852 am__quote
853 AMDEP_TRUE
854 AMDEP_FALSE
855 AMDEPBACKSLASH
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
859 GREP
860 EGREP
861 LN_S
862 ECHO
863 AR
864 RANLIB
865 DLLTOOL
866 AS
867 OBJDUMP
868 CPP
869 CXX
870 CXXFLAGS
871 ac_ct_CXX
872 CXXDEPMODE
873 am__fastdepCXX_TRUE
874 am__fastdepCXX_FALSE
875 CXXCPP
876 F77
877 FFLAGS
878 ac_ct_F77
879 LIBTOOL
880 LIBOBJS
881 PTH_STACK_GROWTH
882 pth_skaddr_makecontext
883 pth_sksize_makecontext
884 USE_SIMIX_TRUE
885 USE_SIMIX_FALSE
886 GTNETS_CFLAGS
887 GTNETS_LDFLAGS
888 USE_GTNETS_TRUE
889 USE_GTNETS_FALSE
890 HAVE_SDP_TRUE
891 HAVE_SDP_FALSE
892 SIMGRID_DEP
893 AM_CFLAGS
894 GRAS_DEP
895 GRAMINE_MODE_TRUE
896 GRAMINE_MODE_FALSE
897 MAINTAINER_MODE_TRUE
898 MAINTAINER_MODE_FALSE
899 MAINT
900 LD_DYNAMIC_FLAGS
901 abs_builddir
902 abs_srcdir
903 abs_top_builddir
904 abs_top_srcdir
905 BASH
906 WARNING
907 LEX
908 LEX_OUTPUT_ROOT
909 LEXLIB
910 FLEXML
911 HAVE_FLEXML_TRUE
912 HAVE_FLEXML_FALSE
913 DOXYGEN
914 ADDR2LINE
915 ac_configure_args
916 MD5SUM
917 build_id
918 LTLIBOBJS'
919 ac_subst_files=''
920       ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CPP
929 CXX
930 CXXFLAGS
931 CCC
932 CXXCPP
933 F77
934 FFLAGS'
935
936
937 # Initialize some variables set by options.
938 ac_init_help=
939 ac_init_version=false
940 # The variables have the same names as the options, with
941 # dashes changed to underlines.
942 cache_file=/dev/null
943 exec_prefix=NONE
944 no_create=
945 no_recursion=
946 prefix=NONE
947 program_prefix=NONE
948 program_suffix=NONE
949 program_transform_name=s,x,x,
950 silent=
951 site=
952 srcdir=
953 verbose=
954 x_includes=NONE
955 x_libraries=NONE
956
957 # Installation directory options.
958 # These are left unexpanded so users can "make install exec_prefix=/foo"
959 # and all the variables that are supposed to be based on exec_prefix
960 # by default will actually change.
961 # Use braces instead of parens because sh, perl, etc. also accept them.
962 # (The list follows the same order as the GNU Coding Standards.)
963 bindir='${exec_prefix}/bin'
964 sbindir='${exec_prefix}/sbin'
965 libexecdir='${exec_prefix}/libexec'
966 datarootdir='${prefix}/share'
967 datadir='${datarootdir}'
968 sysconfdir='${prefix}/etc'
969 sharedstatedir='${prefix}/com'
970 localstatedir='${prefix}/var'
971 includedir='${prefix}/include'
972 oldincludedir='/usr/include'
973 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
974 infodir='${datarootdir}/info'
975 htmldir='${docdir}'
976 dvidir='${docdir}'
977 pdfdir='${docdir}'
978 psdir='${docdir}'
979 libdir='${exec_prefix}/lib'
980 localedir='${datarootdir}/locale'
981 mandir='${datarootdir}/man'
982
983 ac_prev=
984 ac_dashdash=
985 for ac_option
986 do
987   # If the previous option needs an argument, assign it.
988   if test -n "$ac_prev"; then
989     eval $ac_prev=\$ac_option
990     ac_prev=
991     continue
992   fi
993
994   case $ac_option in
995   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
996   *)    ac_optarg=yes ;;
997   esac
998
999   # Accept the important Cygnus configure options, so we can diagnose typos.
1000
1001   case $ac_dashdash$ac_option in
1002   --)
1003     ac_dashdash=yes ;;
1004
1005   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006     ac_prev=bindir ;;
1007   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1008     bindir=$ac_optarg ;;
1009
1010   -build | --build | --buil | --bui | --bu)
1011     ac_prev=build_alias ;;
1012   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1013     build_alias=$ac_optarg ;;
1014
1015   -cache-file | --cache-file | --cache-fil | --cache-fi \
1016   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1017     ac_prev=cache_file ;;
1018   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1019   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1020     cache_file=$ac_optarg ;;
1021
1022   --config-cache | -C)
1023     cache_file=config.cache ;;
1024
1025   -datadir | --datadir | --datadi | --datad)
1026     ac_prev=datadir ;;
1027   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1028     datadir=$ac_optarg ;;
1029
1030   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1031   | --dataroo | --dataro | --datar)
1032     ac_prev=datarootdir ;;
1033   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1034   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1035     datarootdir=$ac_optarg ;;
1036
1037   -disable-* | --disable-*)
1038     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1039     # Reject names that are not valid shell variable names.
1040     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1042    { (exit 1); exit 1; }; }
1043     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1044     eval enable_$ac_feature=no ;;
1045
1046   -docdir | --docdir | --docdi | --doc | --do)
1047     ac_prev=docdir ;;
1048   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1049     docdir=$ac_optarg ;;
1050
1051   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1052     ac_prev=dvidir ;;
1053   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1054     dvidir=$ac_optarg ;;
1055
1056   -enable-* | --enable-*)
1057     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1058     # Reject names that are not valid shell variable names.
1059     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1061    { (exit 1); exit 1; }; }
1062     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1063     eval enable_$ac_feature=\$ac_optarg ;;
1064
1065   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067   | --exec | --exe | --ex)
1068     ac_prev=exec_prefix ;;
1069   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071   | --exec=* | --exe=* | --ex=*)
1072     exec_prefix=$ac_optarg ;;
1073
1074   -gas | --gas | --ga | --g)
1075     # Obsolete; use --with-gas.
1076     with_gas=yes ;;
1077
1078   -help | --help | --hel | --he | -h)
1079     ac_init_help=long ;;
1080   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081     ac_init_help=recursive ;;
1082   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083     ac_init_help=short ;;
1084
1085   -host | --host | --hos | --ho)
1086     ac_prev=host_alias ;;
1087   -host=* | --host=* | --hos=* | --ho=*)
1088     host_alias=$ac_optarg ;;
1089
1090   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091     ac_prev=htmldir ;;
1092   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093   | --ht=*)
1094     htmldir=$ac_optarg ;;
1095
1096   -includedir | --includedir | --includedi | --included | --include \
1097   | --includ | --inclu | --incl | --inc)
1098     ac_prev=includedir ;;
1099   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100   | --includ=* | --inclu=* | --incl=* | --inc=*)
1101     includedir=$ac_optarg ;;
1102
1103   -infodir | --infodir | --infodi | --infod | --info | --inf)
1104     ac_prev=infodir ;;
1105   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106     infodir=$ac_optarg ;;
1107
1108   -libdir | --libdir | --libdi | --libd)
1109     ac_prev=libdir ;;
1110   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111     libdir=$ac_optarg ;;
1112
1113   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114   | --libexe | --libex | --libe)
1115     ac_prev=libexecdir ;;
1116   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117   | --libexe=* | --libex=* | --libe=*)
1118     libexecdir=$ac_optarg ;;
1119
1120   -localedir | --localedir | --localedi | --localed | --locale)
1121     ac_prev=localedir ;;
1122   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123     localedir=$ac_optarg ;;
1124
1125   -localstatedir | --localstatedir | --localstatedi | --localstated \
1126   | --localstate | --localstat | --localsta | --localst | --locals)
1127     ac_prev=localstatedir ;;
1128   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130     localstatedir=$ac_optarg ;;
1131
1132   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133     ac_prev=mandir ;;
1134   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135     mandir=$ac_optarg ;;
1136
1137   -nfp | --nfp | --nf)
1138     # Obsolete; use --without-fp.
1139     with_fp=no ;;
1140
1141   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142   | --no-cr | --no-c | -n)
1143     no_create=yes ;;
1144
1145   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147     no_recursion=yes ;;
1148
1149   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151   | --oldin | --oldi | --old | --ol | --o)
1152     ac_prev=oldincludedir ;;
1153   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156     oldincludedir=$ac_optarg ;;
1157
1158   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159     ac_prev=prefix ;;
1160   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161     prefix=$ac_optarg ;;
1162
1163   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164   | --program-pre | --program-pr | --program-p)
1165     ac_prev=program_prefix ;;
1166   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168     program_prefix=$ac_optarg ;;
1169
1170   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171   | --program-suf | --program-su | --program-s)
1172     ac_prev=program_suffix ;;
1173   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175     program_suffix=$ac_optarg ;;
1176
1177   -program-transform-name | --program-transform-name \
1178   | --program-transform-nam | --program-transform-na \
1179   | --program-transform-n | --program-transform- \
1180   | --program-transform | --program-transfor \
1181   | --program-transfo | --program-transf \
1182   | --program-trans | --program-tran \
1183   | --progr-tra | --program-tr | --program-t)
1184     ac_prev=program_transform_name ;;
1185   -program-transform-name=* | --program-transform-name=* \
1186   | --program-transform-nam=* | --program-transform-na=* \
1187   | --program-transform-n=* | --program-transform-=* \
1188   | --program-transform=* | --program-transfor=* \
1189   | --program-transfo=* | --program-transf=* \
1190   | --program-trans=* | --program-tran=* \
1191   | --progr-tra=* | --program-tr=* | --program-t=*)
1192     program_transform_name=$ac_optarg ;;
1193
1194   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195     ac_prev=pdfdir ;;
1196   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197     pdfdir=$ac_optarg ;;
1198
1199   -psdir | --psdir | --psdi | --psd | --ps)
1200     ac_prev=psdir ;;
1201   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202     psdir=$ac_optarg ;;
1203
1204   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205   | -silent | --silent | --silen | --sile | --sil)
1206     silent=yes ;;
1207
1208   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209     ac_prev=sbindir ;;
1210   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211   | --sbi=* | --sb=*)
1212     sbindir=$ac_optarg ;;
1213
1214   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216   | --sharedst | --shareds | --shared | --share | --shar \
1217   | --sha | --sh)
1218     ac_prev=sharedstatedir ;;
1219   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222   | --sha=* | --sh=*)
1223     sharedstatedir=$ac_optarg ;;
1224
1225   -site | --site | --sit)
1226     ac_prev=site ;;
1227   -site=* | --site=* | --sit=*)
1228     site=$ac_optarg ;;
1229
1230   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231     ac_prev=srcdir ;;
1232   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233     srcdir=$ac_optarg ;;
1234
1235   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236   | --syscon | --sysco | --sysc | --sys | --sy)
1237     ac_prev=sysconfdir ;;
1238   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240     sysconfdir=$ac_optarg ;;
1241
1242   -target | --target | --targe | --targ | --tar | --ta | --t)
1243     ac_prev=target_alias ;;
1244   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245     target_alias=$ac_optarg ;;
1246
1247   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248     verbose=yes ;;
1249
1250   -version | --version | --versio | --versi | --vers | -V)
1251     ac_init_version=: ;;
1252
1253   -with-* | --with-*)
1254     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255     # Reject names that are not valid shell variable names.
1256     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257       { echo "$as_me: error: invalid package name: $ac_package" >&2
1258    { (exit 1); exit 1; }; }
1259     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1260     eval with_$ac_package=\$ac_optarg ;;
1261
1262   -without-* | --without-*)
1263     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1264     # Reject names that are not valid shell variable names.
1265     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266       { echo "$as_me: error: invalid package name: $ac_package" >&2
1267    { (exit 1); exit 1; }; }
1268     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1269     eval with_$ac_package=no ;;
1270
1271   --x)
1272     # Obsolete; use --with-x.
1273     with_x=yes ;;
1274
1275   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276   | --x-incl | --x-inc | --x-in | --x-i)
1277     ac_prev=x_includes ;;
1278   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1280     x_includes=$ac_optarg ;;
1281
1282   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284     ac_prev=x_libraries ;;
1285   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1287     x_libraries=$ac_optarg ;;
1288
1289   -*) { echo "$as_me: error: unrecognized option: $ac_option
1290 Try \`$0 --help' for more information." >&2
1291    { (exit 1); exit 1; }; }
1292     ;;
1293
1294   *=*)
1295     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1296     # Reject names that are not valid shell variable names.
1297     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1298       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1299    { (exit 1); exit 1; }; }
1300     eval $ac_envvar=\$ac_optarg
1301     export $ac_envvar ;;
1302
1303   *)
1304     # FIXME: should be removed in autoconf 3.0.
1305     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1306     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1307       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1308     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1309     ;;
1310
1311   esac
1312 done
1313
1314 if test -n "$ac_prev"; then
1315   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1316   { echo "$as_me: error: missing argument to $ac_option" >&2
1317    { (exit 1); exit 1; }; }
1318 fi
1319
1320 # Be sure to have absolute directory names.
1321 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322                 datadir sysconfdir sharedstatedir localstatedir includedir \
1323                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324                 libdir localedir mandir
1325 do
1326   eval ac_val=\$$ac_var
1327   case $ac_val in
1328     [\\/$]* | ?:[\\/]* )  continue;;
1329     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330   esac
1331   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1332    { (exit 1); exit 1; }; }
1333 done
1334
1335 # There might be people who depend on the old broken behavior: `$host'
1336 # used to hold the argument of --host etc.
1337 # FIXME: To remove some day.
1338 build=$build_alias
1339 host=$host_alias
1340 target=$target_alias
1341
1342 # FIXME: To remove some day.
1343 if test "x$host_alias" != x; then
1344   if test "x$build_alias" = x; then
1345     cross_compiling=maybe
1346     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1347     If a cross compiler is detected then cross compile mode will be used." >&2
1348   elif test "x$build_alias" != "x$host_alias"; then
1349     cross_compiling=yes
1350   fi
1351 fi
1352
1353 ac_tool_prefix=
1354 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355
1356 test "$silent" = yes && exec 6>/dev/null
1357
1358
1359 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360 ac_ls_di=`ls -di .` &&
1361 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1362   { echo "$as_me: error: Working directory cannot be determined" >&2
1363    { (exit 1); exit 1; }; }
1364 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365   { echo "$as_me: error: pwd does not report name of working directory" >&2
1366    { (exit 1); exit 1; }; }
1367
1368
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371   ac_srcdir_defaulted=yes
1372   # Try the directory containing this script, then the parent directory.
1373   ac_confdir=`$as_dirname -- "$0" ||
1374 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375          X"$0" : 'X\(//\)[^/]' \| \
1376          X"$0" : 'X\(//\)$' \| \
1377          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1378 echo X"$0" |
1379     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380             s//\1/
1381             q
1382           }
1383           /^X\(\/\/\)[^/].*/{
1384             s//\1/
1385             q
1386           }
1387           /^X\(\/\/\)$/{
1388             s//\1/
1389             q
1390           }
1391           /^X\(\/\).*/{
1392             s//\1/
1393             q
1394           }
1395           s/.*/./; q'`
1396   srcdir=$ac_confdir
1397   if test ! -r "$srcdir/$ac_unique_file"; then
1398     srcdir=..
1399   fi
1400 else
1401   ac_srcdir_defaulted=no
1402 fi
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1406    { (exit 1); exit 1; }; }
1407 fi
1408 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 ac_abs_confdir=`(
1410         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1411    { (exit 1); exit 1; }; }
1412         pwd)`
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415   srcdir=.
1416 fi
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1420 case $srcdir in
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 esac
1423 for ac_var in $ac_precious_vars; do
1424   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425   eval ac_env_${ac_var}_value=\$${ac_var}
1426   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428 done
1429
1430 #
1431 # Report the --help message.
1432 #
1433 if test "$ac_init_help" = "long"; then
1434   # Omit some internal or obsolete options to make the list less imposing.
1435   # This message is too long to be a string in the A/UX 3.1 sh.
1436   cat <<_ACEOF
1437 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1438
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1440
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE.  See below for descriptions of some of the useful variables.
1443
1444 Defaults for the options are specified in brackets.
1445
1446 Configuration:
1447   -h, --help              display this help and exit
1448       --help=short        display options specific to this package
1449       --help=recursive    display the short help of all the included packages
1450   -V, --version           display version information and exit
1451   -q, --quiet, --silent   do not print \`checking...' messages
1452       --cache-file=FILE   cache test results in FILE [disabled]
1453   -C, --config-cache      alias for \`--cache-file=config.cache'
1454   -n, --no-create         do not create output files
1455       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1456
1457 Installation directories:
1458   --prefix=PREFIX         install architecture-independent files in PREFIX
1459                           [$ac_default_prefix]
1460   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1461                           [PREFIX]
1462
1463 By default, \`make install' will install all the files in
1464 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1465 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466 for instance \`--prefix=\$HOME'.
1467
1468 For better control, use the options below.
1469
1470 Fine tuning of the installation directories:
1471   --bindir=DIR           user executables [EPREFIX/bin]
1472   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1473   --libexecdir=DIR       program executables [EPREFIX/libexec]
1474   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1475   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1476   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1477   --libdir=DIR           object code libraries [EPREFIX/lib]
1478   --includedir=DIR       C header files [PREFIX/include]
1479   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1480   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1481   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1482   --infodir=DIR          info documentation [DATAROOTDIR/info]
1483   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1484   --mandir=DIR           man documentation [DATAROOTDIR/man]
1485   --docdir=DIR           documentation root [DATAROOTDIR/doc/simgrid]
1486   --htmldir=DIR          html documentation [DOCDIR]
1487   --dvidir=DIR           dvi documentation [DOCDIR]
1488   --pdfdir=DIR           pdf documentation [DOCDIR]
1489   --psdir=DIR            ps documentation [DOCDIR]
1490 _ACEOF
1491
1492   cat <<\_ACEOF
1493
1494 Program names:
1495   --program-prefix=PREFIX            prepend PREFIX to installed program names
1496   --program-suffix=SUFFIX            append SUFFIX to installed program names
1497   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1498
1499 System types:
1500   --build=BUILD     configure for building on BUILD [guessed]
1501   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1502   --target=TARGET   configure for building compilers for TARGET [HOST]
1503 _ACEOF
1504 fi
1505
1506 if test -n "$ac_init_help"; then
1507   case $ac_init_help in
1508      short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1509    esac
1510   cat <<\_ACEOF
1511
1512 Optional Features:
1513   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1514   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1515   --enable-shared[=PKGS]  build shared libraries [default=yes]
1516   --enable-static[=PKGS]  build static libraries [default=yes]
1517   --enable-fast-install[=PKGS]
1518                           optimize for fast installation [default=yes]
1519   --disable-dependency-tracking  speeds up one-time build
1520   --enable-dependency-tracking   do not reject slow dependency extractors
1521   --disable-libtool-lock  avoid locking (might break parallel builds)
1522   --enable-simix          Use the new SimIX module (default=no)
1523   --enable-maintainer-mode  enable make rules and dependencies not useful
1524                           (and sometimes confusing) to the casual installer
1525   --enable-compile-warnings
1526                           use compiler warnings (default=no, unless in
1527                           maintainer mode)
1528   --disable-compile-optimizations
1529                           use compiler optimizations (default=yes, unless if
1530                           CFLAGS is explicitly set)
1531
1532 Optional Packages:
1533   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1534   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1535   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1536   --with-pic              try to use only PIC/non-PIC objects [default=use
1537                           both]
1538   --with-tags[=TAGS]      include additional configurations [automatic]
1539   --with-pthread   Use pthread instead of ucontext.
1540   --with-pthreads   Use pthread instead of ucontext.
1541   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1542   --with-gtnets           Path to GTNetS installation (default to empty, ie
1543                           not using GTNetS)
1544
1545 Some influential environment variables:
1546   CC          C compiler command
1547   CFLAGS      C compiler flags
1548   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1549               nonstandard directory <lib dir>
1550   LIBS        libraries to pass to the linker, e.g. -l<library>
1551   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1552               you have headers in a nonstandard directory <include dir>
1553   CPP         C preprocessor
1554   CXX         C++ compiler command
1555   CXXFLAGS    C++ compiler flags
1556   CXXCPP      C++ preprocessor
1557   F77         Fortran 77 compiler command
1558   FFLAGS      Fortran 77 compiler flags
1559
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1562
1563 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1564 _ACEOF
1565 ac_status=$?
1566 fi
1567
1568 if test "$ac_init_help" = "recursive"; then
1569   # If there are subdirs, report their specific --help.
1570   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571     test -d "$ac_dir" || continue
1572     ac_builddir=.
1573
1574 case "$ac_dir" in
1575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *)
1577   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1578   # A ".." for each directory in $ac_dir_suffix.
1579   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1580   case $ac_top_builddir_sub in
1581   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583   esac ;;
1584 esac
1585 ac_abs_top_builddir=$ac_pwd
1586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587 # for backward compatibility:
1588 ac_top_builddir=$ac_top_build_prefix
1589
1590 case $srcdir in
1591   .)  # We are building in place.
1592     ac_srcdir=.
1593     ac_top_srcdir=$ac_top_builddir_sub
1594     ac_abs_top_srcdir=$ac_pwd ;;
1595   [\\/]* | ?:[\\/]* )  # Absolute name.
1596     ac_srcdir=$srcdir$ac_dir_suffix;
1597     ac_top_srcdir=$srcdir
1598     ac_abs_top_srcdir=$srcdir ;;
1599   *) # Relative name.
1600     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601     ac_top_srcdir=$ac_top_build_prefix$srcdir
1602     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603 esac
1604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606     cd "$ac_dir" || { ac_status=$?; continue; }
1607     # Check for guested configure.
1608     if test -f "$ac_srcdir/configure.gnu"; then
1609       echo &&
1610       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611     elif test -f "$ac_srcdir/configure"; then
1612       echo &&
1613       $SHELL "$ac_srcdir/configure" --help=recursive
1614     else
1615       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616     fi || ac_status=$?
1617     cd "$ac_pwd" || { ac_status=$?; break; }
1618   done
1619 fi
1620
1621 test -n "$ac_init_help" && exit $ac_status
1622 if $ac_init_version; then
1623   cat <<\_ACEOF
1624 simgrid configure 3.3-cvs
1625 generated by GNU Autoconf 2.61
1626
1627 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1628 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1631 _ACEOF
1632   exit
1633 fi
1634 cat >config.log <<_ACEOF
1635 This file contains any messages produced by compilers while
1636 running configure, to aid debugging if configure makes a mistake.
1637
1638 It was created by simgrid $as_me 3.3-cvs, which was
1639 generated by GNU Autoconf 2.61.  Invocation command line was
1640
1641   $ $0 $@
1642
1643 _ACEOF
1644 exec 5>>config.log
1645 {
1646 cat <<_ASUNAME
1647 ## --------- ##
1648 ## Platform. ##
1649 ## --------- ##
1650
1651 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1652 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1653 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1654 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1655 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1656
1657 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1658 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1659
1660 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1661 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1662 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1663 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1664 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1665 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1666 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1667
1668 _ASUNAME
1669
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 for as_dir in $PATH
1672 do
1673   IFS=$as_save_IFS
1674   test -z "$as_dir" && as_dir=.
1675   echo "PATH: $as_dir"
1676 done
1677 IFS=$as_save_IFS
1678
1679 } >&5
1680
1681 cat >&5 <<_ACEOF
1682
1683
1684 ## ----------- ##
1685 ## Core tests. ##
1686 ## ----------- ##
1687
1688 _ACEOF
1689
1690
1691 # Keep a trace of the command line.
1692 # Strip out --no-create and --no-recursion so they do not pile up.
1693 # Strip out --silent because we don't want to record it for future runs.
1694 # Also quote any args containing shell meta-characters.
1695 # Make two passes to allow for proper duplicate-argument suppression.
1696 ac_configure_args=
1697 ac_configure_args0=
1698 ac_configure_args1=
1699 ac_must_keep_next=false
1700 for ac_pass in 1 2
1701 do
1702   for ac_arg
1703   do
1704     case $ac_arg in
1705     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1706     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1707     | -silent | --silent | --silen | --sile | --sil)
1708       continue ;;
1709     *\'*)
1710       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1711     esac
1712     case $ac_pass in
1713     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1714     2)
1715       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1716       if test $ac_must_keep_next = true; then
1717         ac_must_keep_next=false # Got value, back to normal.
1718       else
1719         case $ac_arg in
1720           *=* | --config-cache | -C | -disable-* | --disable-* \
1721           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1722           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1723           | -with-* | --with-* | -without-* | --without-* | --x)
1724             case "$ac_configure_args0 " in
1725               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1726             esac
1727             ;;
1728           -* ) ac_must_keep_next=true ;;
1729         esac
1730       fi
1731       ac_configure_args="$ac_configure_args '$ac_arg'"
1732       ;;
1733     esac
1734   done
1735 done
1736 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1737 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1738
1739 # When interrupted or exit'd, cleanup temporary files, and complete
1740 # config.log.  We remove comments because anyway the quotes in there
1741 # would cause problems or look ugly.
1742 # WARNING: Use '\'' to represent an apostrophe within the trap.
1743 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1744 trap 'exit_status=$?
1745   # Save into config.log some information that might help in debugging.
1746   {
1747     echo
1748
1749     cat <<\_ASBOX
1750 ## ---------------- ##
1751 ## Cache variables. ##
1752 ## ---------------- ##
1753 _ASBOX
1754     echo
1755     # The following way of writing the cache mishandles newlines in values,
1756 (
1757   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1758     eval ac_val=\$$ac_var
1759     case $ac_val in #(
1760     *${as_nl}*)
1761       case $ac_var in #(
1762       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1763 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1764       esac
1765       case $ac_var in #(
1766       _ | IFS | as_nl) ;; #(
1767       *) $as_unset $ac_var ;;
1768       esac ;;
1769     esac
1770   done
1771   (set) 2>&1 |
1772     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1773     *${as_nl}ac_space=\ *)
1774       sed -n \
1775         "s/'\''/'\''\\\\'\'''\''/g;
1776           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1777       ;; #(
1778     *)
1779       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1780       ;;
1781     esac |
1782     sort
1783 )
1784     echo
1785
1786     cat <<\_ASBOX
1787 ## ----------------- ##
1788 ## Output variables. ##
1789 ## ----------------- ##
1790 _ASBOX
1791     echo
1792     for ac_var in $ac_subst_vars
1793     do
1794       eval ac_val=\$$ac_var
1795       case $ac_val in
1796       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1797       esac
1798       echo "$ac_var='\''$ac_val'\''"
1799     done | sort
1800     echo
1801
1802     if test -n "$ac_subst_files"; then
1803       cat <<\_ASBOX
1804 ## ------------------- ##
1805 ## File substitutions. ##
1806 ## ------------------- ##
1807 _ASBOX
1808       echo
1809       for ac_var in $ac_subst_files
1810       do
1811         eval ac_val=\$$ac_var
1812         case $ac_val in
1813         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814         esac
1815         echo "$ac_var='\''$ac_val'\''"
1816       done | sort
1817       echo
1818     fi
1819
1820     if test -s confdefs.h; then
1821       cat <<\_ASBOX
1822 ## ----------- ##
1823 ## confdefs.h. ##
1824 ## ----------- ##
1825 _ASBOX
1826       echo
1827       cat confdefs.h
1828       echo
1829     fi
1830     test "$ac_signal" != 0 &&
1831       echo "$as_me: caught signal $ac_signal"
1832     echo "$as_me: exit $exit_status"
1833   } >&5
1834   rm -f core *.core core.conftest.* &&
1835     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1836     exit $exit_status
1837 ' 0
1838 for ac_signal in 1 2 13 15; do
1839   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1840 done
1841 ac_signal=0
1842
1843 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1844 rm -f -r conftest* confdefs.h
1845
1846 # Predefined preprocessor variables.
1847
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_NAME "$PACKAGE_NAME"
1850 _ACEOF
1851
1852
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1855 _ACEOF
1856
1857
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1860 _ACEOF
1861
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_STRING "$PACKAGE_STRING"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1870 _ACEOF
1871
1872
1873 # Let the site file select an alternate cache file if it wants to.
1874 # Prefer explicitly selected file to automatically selected ones.
1875 if test -n "$CONFIG_SITE"; then
1876   set x "$CONFIG_SITE"
1877 elif test "x$prefix" != xNONE; then
1878   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1879 else
1880   set x "$ac_default_prefix/share/config.site" \
1881         "$ac_default_prefix/etc/config.site"
1882 fi
1883 shift
1884 for ac_site_file
1885 do
1886   if test -r "$ac_site_file"; then
1887     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1888 echo "$as_me: loading site script $ac_site_file" >&6;}
1889     sed 's/^/| /' "$ac_site_file" >&5
1890     . "$ac_site_file"
1891   fi
1892 done
1893
1894 if test -r "$cache_file"; then
1895   # Some versions of bash will fail to source /dev/null (special
1896   # files actually), so we avoid doing that.
1897   if test -f "$cache_file"; then
1898     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1899 echo "$as_me: loading cache $cache_file" >&6;}
1900     case $cache_file in
1901       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1902       *)                      . "./$cache_file";;
1903     esac
1904   fi
1905 else
1906   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1907 echo "$as_me: creating cache $cache_file" >&6;}
1908   >$cache_file
1909 fi
1910
1911 # Check that the precious variables saved in the cache have kept the same
1912 # value.
1913 ac_cache_corrupted=false
1914 for ac_var in $ac_precious_vars; do
1915   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1916   eval ac_new_set=\$ac_env_${ac_var}_set
1917   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1918   eval ac_new_val=\$ac_env_${ac_var}_value
1919   case $ac_old_set,$ac_new_set in
1920     set,)
1921       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1922 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1923       ac_cache_corrupted=: ;;
1924     ,set)
1925       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1926 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1927       ac_cache_corrupted=: ;;
1928     ,);;
1929     *)
1930       if test "x$ac_old_val" != "x$ac_new_val"; then
1931         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1932 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1933         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1934 echo "$as_me:   former value:  $ac_old_val" >&2;}
1935         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1936 echo "$as_me:   current value: $ac_new_val" >&2;}
1937         ac_cache_corrupted=:
1938       fi;;
1939   esac
1940   # Pass precious variables to config.status.
1941   if test "$ac_new_set" = set; then
1942     case $ac_new_val in
1943     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1944     *) ac_arg=$ac_var=$ac_new_val ;;
1945     esac
1946     case " $ac_configure_args " in
1947       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1948       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1949     esac
1950   fi
1951 done
1952 if $ac_cache_corrupted; then
1953   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1954 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1955   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1956 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1957    { (exit 1); exit 1; }; }
1958 fi
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984 ac_ext=c
1985 ac_cpp='$CPP $CPPFLAGS'
1986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1989
1990
1991
1992 ac_config_headers="$ac_config_headers src/gras_config.h"
1993
1994 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1995
1996
1997 ac_aux_dir=
1998 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1999   if test -f "$ac_dir/install-sh"; then
2000     ac_aux_dir=$ac_dir
2001     ac_install_sh="$ac_aux_dir/install-sh -c"
2002     break
2003   elif test -f "$ac_dir/install.sh"; then
2004     ac_aux_dir=$ac_dir
2005     ac_install_sh="$ac_aux_dir/install.sh -c"
2006     break
2007   elif test -f "$ac_dir/shtool"; then
2008     ac_aux_dir=$ac_dir
2009     ac_install_sh="$ac_aux_dir/shtool install -c"
2010     break
2011   fi
2012 done
2013 if test -z "$ac_aux_dir"; then
2014   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2015 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2016    { (exit 1); exit 1; }; }
2017 fi
2018
2019 # These three variables are undocumented and unsupported,
2020 # and are intended to be withdrawn in a future Autoconf release.
2021 # They can cause serious problems if a builder's source tree is in a directory
2022 # whose full name contains unusual characters.
2023 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2024 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2025 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2026
2027
2028 # Make sure we can run config.sub.
2029 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2030   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2031 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2032    { (exit 1); exit 1; }; }
2033
2034 { echo "$as_me:$LINENO: checking build system type" >&5
2035 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2036 if test "${ac_cv_build+set}" = set; then
2037   echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039   ac_build_alias=$build_alias
2040 test "x$ac_build_alias" = x &&
2041   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2042 test "x$ac_build_alias" = x &&
2043   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2044 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2045    { (exit 1); exit 1; }; }
2046 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2047   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2048 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2049    { (exit 1); exit 1; }; }
2050
2051 fi
2052 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2053 echo "${ECHO_T}$ac_cv_build" >&6; }
2054 case $ac_cv_build in
2055 *-*-*) ;;
2056 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2057 echo "$as_me: error: invalid value of canonical build" >&2;}
2058    { (exit 1); exit 1; }; };;
2059 esac
2060 build=$ac_cv_build
2061 ac_save_IFS=$IFS; IFS='-'
2062 set x $ac_cv_build
2063 shift
2064 build_cpu=$1
2065 build_vendor=$2
2066 shift; shift
2067 # Remember, the first character of IFS is used to create $*,
2068 # except with old shells:
2069 build_os=$*
2070 IFS=$ac_save_IFS
2071 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2072
2073
2074 { echo "$as_me:$LINENO: checking host system type" >&5
2075 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2076 if test "${ac_cv_host+set}" = set; then
2077   echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079   if test "x$host_alias" = x; then
2080   ac_cv_host=$ac_cv_build
2081 else
2082   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2083     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2084 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2085    { (exit 1); exit 1; }; }
2086 fi
2087
2088 fi
2089 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2090 echo "${ECHO_T}$ac_cv_host" >&6; }
2091 case $ac_cv_host in
2092 *-*-*) ;;
2093 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2094 echo "$as_me: error: invalid value of canonical host" >&2;}
2095    { (exit 1); exit 1; }; };;
2096 esac
2097 host=$ac_cv_host
2098 ac_save_IFS=$IFS; IFS='-'
2099 set x $ac_cv_host
2100 shift
2101 host_cpu=$1
2102 host_vendor=$2
2103 shift; shift
2104 # Remember, the first character of IFS is used to create $*,
2105 # except with old shells:
2106 host_os=$*
2107 IFS=$ac_save_IFS
2108 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2109
2110
2111 { echo "$as_me:$LINENO: checking target system type" >&5
2112 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2113 if test "${ac_cv_target+set}" = set; then
2114   echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116   if test "x$target_alias" = x; then
2117   ac_cv_target=$ac_cv_host
2118 else
2119   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2120     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2121 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2122    { (exit 1); exit 1; }; }
2123 fi
2124
2125 fi
2126 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2127 echo "${ECHO_T}$ac_cv_target" >&6; }
2128 case $ac_cv_target in
2129 *-*-*) ;;
2130 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2131 echo "$as_me: error: invalid value of canonical target" >&2;}
2132    { (exit 1); exit 1; }; };;
2133 esac
2134 target=$ac_cv_target
2135 ac_save_IFS=$IFS; IFS='-'
2136 set x $ac_cv_target
2137 shift
2138 target_cpu=$1
2139 target_vendor=$2
2140 shift; shift
2141 # Remember, the first character of IFS is used to create $*,
2142 # except with old shells:
2143 target_os=$*
2144 IFS=$ac_save_IFS
2145 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2146
2147
2148 # The aliases save the names the user supplied, while $host etc.
2149 # will get canonicalized.
2150 test -n "$target_alias" &&
2151   test "$program_prefix$program_suffix$program_transform_name" = \
2152     NONENONEs,x,x, &&
2153   program_prefix=${target_alias}-
2154 ac_ext=c
2155 ac_cpp='$CPP $CPPFLAGS'
2156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2159
2160
2161 am__api_version="1.9"
2162 # Find a good install program.  We prefer a C program (faster),
2163 # so one script is as good as another.  But avoid the broken or
2164 # incompatible versions:
2165 # SysV /etc/install, /usr/sbin/install
2166 # SunOS /usr/etc/install
2167 # IRIX /sbin/install
2168 # AIX /bin/install
2169 # AmigaOS /C/install, which installs bootblocks on floppy discs
2170 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2171 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2172 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2173 # OS/2's system install, which has a completely different semantic
2174 # ./install, which can be erroneously created by make from ./install.sh.
2175 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2176 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2177 if test -z "$INSTALL"; then
2178 if test "${ac_cv_path_install+set}" = set; then
2179   echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2183 do
2184   IFS=$as_save_IFS
2185   test -z "$as_dir" && as_dir=.
2186   # Account for people who put trailing slashes in PATH elements.
2187 case $as_dir/ in
2188   ./ | .// | /cC/* | \
2189   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2190   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2191   /usr/ucb/* ) ;;
2192   *)
2193     # OSF1 and SCO ODT 3.0 have their own names for install.
2194     # Don't use installbsd from OSF since it installs stuff as root
2195     # by default.
2196     for ac_prog in ginstall scoinst install; do
2197       for ac_exec_ext in '' $ac_executable_extensions; do
2198         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2199           if test $ac_prog = install &&
2200             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2201             # AIX install.  It has an incompatible calling convention.
2202             :
2203           elif test $ac_prog = install &&
2204             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2205             # program-specific install script used by HP pwplus--don't use.
2206             :
2207           else
2208             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2209             break 3
2210           fi
2211         fi
2212       done
2213     done
2214     ;;
2215 esac
2216 done
2217 IFS=$as_save_IFS
2218
2219
2220 fi
2221   if test "${ac_cv_path_install+set}" = set; then
2222     INSTALL=$ac_cv_path_install
2223   else
2224     # As a last resort, use the slow shell script.  Don't cache a
2225     # value for INSTALL within a source directory, because that will
2226     # break other packages using the cache if that directory is
2227     # removed, or if the value is a relative name.
2228     INSTALL=$ac_install_sh
2229   fi
2230 fi
2231 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2232 echo "${ECHO_T}$INSTALL" >&6; }
2233
2234 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2235 # It thinks the first close brace ends the variable substitution.
2236 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2237
2238 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2239
2240 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2241
2242 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2243 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2244 # Just in case
2245 sleep 1
2246 echo timestamp > conftest.file
2247 # Do `set' in a subshell so we don't clobber the current shell's
2248 # arguments.  Must try -L first in case configure is actually a
2249 # symlink; some systems play weird games with the mod time of symlinks
2250 # (eg FreeBSD returns the mod time of the symlink's containing
2251 # directory).
2252 if (
2253    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2254    if test "$*" = "X"; then
2255       # -L didn't work.
2256       set X `ls -t $srcdir/configure conftest.file`
2257    fi
2258    rm -f conftest.file
2259    if test "$*" != "X $srcdir/configure conftest.file" \
2260       && test "$*" != "X conftest.file $srcdir/configure"; then
2261
2262       # If neither matched, then we have a broken ls.  This can happen
2263       # if, for instance, CONFIG_SHELL is bash and it inherits a
2264       # broken ls alias from the environment.  This has actually
2265       # happened.  Such a system could not be considered "sane".
2266       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2267 alias in your environment" >&5
2268 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2269 alias in your environment" >&2;}
2270    { (exit 1); exit 1; }; }
2271    fi
2272
2273    test "$2" = conftest.file
2274    )
2275 then
2276    # Ok.
2277    :
2278 else
2279    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2280 Check your system clock" >&5
2281 echo "$as_me: error: newly created file is older than distributed files!
2282 Check your system clock" >&2;}
2283    { (exit 1); exit 1; }; }
2284 fi
2285 { echo "$as_me:$LINENO: result: yes" >&5
2286 echo "${ECHO_T}yes" >&6; }
2287 test "$program_prefix" != NONE &&
2288   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2289 # Use a double $ so make ignores it.
2290 test "$program_suffix" != NONE &&
2291   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2292 # Double any \ or $.  echo might interpret backslashes.
2293 # By default was `s,x,x', remove it if useless.
2294 cat <<\_ACEOF >conftest.sed
2295 s/[\\$]/&&/g;s/;s,x,x,$//
2296 _ACEOF
2297 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2298 rm -f conftest.sed
2299
2300 # expand $ac_aux_dir to an absolute path
2301 am_aux_dir=`cd $ac_aux_dir && pwd`
2302
2303 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2304 # Use eval to expand $SHELL
2305 if eval "$MISSING --run true"; then
2306   am_missing_run="$MISSING --run "
2307 else
2308   am_missing_run=
2309   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2310 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2311 fi
2312
2313 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2314   # We used to keeping the `.' as first argument, in order to
2315   # allow $(mkdir_p) to be used without argument.  As in
2316   #   $(mkdir_p) $(somedir)
2317   # where $(somedir) is conditionally defined.  However this is wrong
2318   # for two reasons:
2319   #  1. if the package is installed by a user who cannot write `.'
2320   #     make install will fail,
2321   #  2. the above comment should most certainly read
2322   #     $(mkdir_p) $(DESTDIR)$(somedir)
2323   #     so it does not work when $(somedir) is undefined and
2324   #     $(DESTDIR) is not.
2325   #  To support the latter case, we have to write
2326   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2327   #  so the `.' trick is pointless.
2328   mkdir_p='mkdir -p --'
2329 else
2330   # On NextStep and OpenStep, the `mkdir' command does not
2331   # recognize any option.  It will interpret all options as
2332   # directories to create, and then abort because `.' already
2333   # exists.
2334   for d in ./-p ./--version;
2335   do
2336     test -d $d && rmdir $d
2337   done
2338   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2339   if test -f "$ac_aux_dir/mkinstalldirs"; then
2340     mkdir_p='$(mkinstalldirs)'
2341   else
2342     mkdir_p='$(install_sh) -d'
2343   fi
2344 fi
2345
2346 for ac_prog in gawk mawk nawk awk
2347 do
2348   # Extract the first word of "$ac_prog", so it can be a program name with args.
2349 set dummy $ac_prog; ac_word=$2
2350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_AWK+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   if test -n "$AWK"; then
2356   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363   for ac_exec_ext in '' $ac_executable_extensions; do
2364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365     ac_cv_prog_AWK="$ac_prog"
2366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367     break 2
2368   fi
2369 done
2370 done
2371 IFS=$as_save_IFS
2372
2373 fi
2374 fi
2375 AWK=$ac_cv_prog_AWK
2376 if test -n "$AWK"; then
2377   { echo "$as_me:$LINENO: result: $AWK" >&5
2378 echo "${ECHO_T}$AWK" >&6; }
2379 else
2380   { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2382 fi
2383
2384
2385   test -n "$AWK" && break
2386 done
2387
2388 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2389 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2390 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2391 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2392   echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394   cat >conftest.make <<\_ACEOF
2395 SHELL = /bin/sh
2396 all:
2397         @echo '@@@%%%=$(MAKE)=@@@%%%'
2398 _ACEOF
2399 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2400 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2401   *@@@%%%=?*=@@@%%%*)
2402     eval ac_cv_prog_make_${ac_make}_set=yes;;
2403   *)
2404     eval ac_cv_prog_make_${ac_make}_set=no;;
2405 esac
2406 rm -f conftest.make
2407 fi
2408 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2409   { echo "$as_me:$LINENO: result: yes" >&5
2410 echo "${ECHO_T}yes" >&6; }
2411   SET_MAKE=
2412 else
2413   { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2415   SET_MAKE="MAKE=${MAKE-make}"
2416 fi
2417
2418 rm -rf .tst 2>/dev/null
2419 mkdir .tst 2>/dev/null
2420 if test -d .tst; then
2421   am__leading_dot=.
2422 else
2423   am__leading_dot=_
2424 fi
2425 rmdir .tst 2>/dev/null
2426
2427 # test to see if srcdir already configured
2428 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2429    test -f $srcdir/config.status; then
2430   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2431 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2432    { (exit 1); exit 1; }; }
2433 fi
2434
2435 # test whether we have cygpath
2436 if test -z "$CYGPATH_W"; then
2437   if (cygpath --version) >/dev/null 2>/dev/null; then
2438     CYGPATH_W='cygpath -w'
2439   else
2440     CYGPATH_W=echo
2441   fi
2442 fi
2443
2444
2445 # Define the identity of the package.
2446  PACKAGE='simgrid'
2447  VERSION='3.3-cvs'
2448
2449
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE "$PACKAGE"
2452 _ACEOF
2453
2454
2455 cat >>confdefs.h <<_ACEOF
2456 #define VERSION "$VERSION"
2457 _ACEOF
2458
2459 # Some tools Automake needs.
2460
2461 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2462
2463
2464 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2465
2466
2467 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2468
2469
2470 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2471
2472
2473 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2474
2475 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2476
2477 # Installed binaries are usually stripped using `strip' when the user
2478 # run `make install-strip'.  However `strip' might not be the right
2479 # tool to use in cross-compilation environments, therefore Automake
2480 # will honor the `STRIP' environment variable to overrule this program.
2481 if test "$cross_compiling" != no; then
2482   if test -n "$ac_tool_prefix"; then
2483   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2484 set dummy ${ac_tool_prefix}strip; ac_word=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_STRIP+set}" = set; then
2488   echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490   if test -n "$STRIP"; then
2491   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496   IFS=$as_save_IFS
2497   test -z "$as_dir" && as_dir=.
2498   for ac_exec_ext in '' $ac_executable_extensions; do
2499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502     break 2
2503   fi
2504 done
2505 done
2506 IFS=$as_save_IFS
2507
2508 fi
2509 fi
2510 STRIP=$ac_cv_prog_STRIP
2511 if test -n "$STRIP"; then
2512   { echo "$as_me:$LINENO: result: $STRIP" >&5
2513 echo "${ECHO_T}$STRIP" >&6; }
2514 else
2515   { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2517 fi
2518
2519
2520 fi
2521 if test -z "$ac_cv_prog_STRIP"; then
2522   ac_ct_STRIP=$STRIP
2523   # Extract the first word of "strip", so it can be a program name with args.
2524 set dummy strip; ac_word=$2
2525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2528   echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530   if test -n "$ac_ct_STRIP"; then
2531   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536   IFS=$as_save_IFS
2537   test -z "$as_dir" && as_dir=.
2538   for ac_exec_ext in '' $ac_executable_extensions; do
2539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2540     ac_cv_prog_ac_ct_STRIP="strip"
2541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542     break 2
2543   fi
2544 done
2545 done
2546 IFS=$as_save_IFS
2547
2548 fi
2549 fi
2550 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2551 if test -n "$ac_ct_STRIP"; then
2552   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2553 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2554 else
2555   { echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6; }
2557 fi
2558
2559   if test "x$ac_ct_STRIP" = x; then
2560     STRIP=":"
2561   else
2562     case $cross_compiling:$ac_tool_warned in
2563 yes:)
2564 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2565 whose name does not start with the host triplet.  If you think this
2566 configuration is useful to you, please write to autoconf@gnu.org." >&5
2567 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2568 whose name does not start with the host triplet.  If you think this
2569 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2570 ac_tool_warned=yes ;;
2571 esac
2572     STRIP=$ac_ct_STRIP
2573   fi
2574 else
2575   STRIP="$ac_cv_prog_STRIP"
2576 fi
2577
2578 fi
2579 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2580
2581 # We need awk for the "check" target.  The system "awk" is bad on
2582 # some platforms.
2583 # Always define AMTAR for backward compatibility.
2584
2585 AMTAR=${AMTAR-"${am_missing_run}tar"}
2586
2587 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2588
2589
2590
2591
2592
2593
2594 ACLOCAL="$ACLOCAL -I acmacro"
2595
2596
2597 # Check whether --enable-shared was given.
2598 if test "${enable_shared+set}" = set; then
2599   enableval=$enable_shared; p=${PACKAGE-default}
2600     case $enableval in
2601     yes) enable_shared=yes ;;
2602     no) enable_shared=no ;;
2603     *)
2604       enable_shared=no
2605       # Look at the argument we got.  We use all the common list separators.
2606       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2607       for pkg in $enableval; do
2608         IFS="$lt_save_ifs"
2609         if test "X$pkg" = "X$p"; then
2610           enable_shared=yes
2611         fi
2612       done
2613       IFS="$lt_save_ifs"
2614       ;;
2615     esac
2616 else
2617   enable_shared=yes
2618 fi
2619
2620
2621 # Check whether --enable-static was given.
2622 if test "${enable_static+set}" = set; then
2623   enableval=$enable_static; p=${PACKAGE-default}
2624     case $enableval in
2625     yes) enable_static=yes ;;
2626     no) enable_static=no ;;
2627     *)
2628      enable_static=no
2629       # Look at the argument we got.  We use all the common list separators.
2630       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2631       for pkg in $enableval; do
2632         IFS="$lt_save_ifs"
2633         if test "X$pkg" = "X$p"; then
2634           enable_static=yes
2635         fi
2636       done
2637       IFS="$lt_save_ifs"
2638       ;;
2639     esac
2640 else
2641   enable_static=yes
2642 fi
2643
2644
2645 # Check whether --enable-fast-install was given.
2646 if test "${enable_fast_install+set}" = set; then
2647   enableval=$enable_fast_install; p=${PACKAGE-default}
2648     case $enableval in
2649     yes) enable_fast_install=yes ;;
2650     no) enable_fast_install=no ;;
2651     *)
2652       enable_fast_install=no
2653       # Look at the argument we got.  We use all the common list separators.
2654       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2655       for pkg in $enableval; do
2656         IFS="$lt_save_ifs"
2657         if test "X$pkg" = "X$p"; then
2658           enable_fast_install=yes
2659         fi
2660       done
2661       IFS="$lt_save_ifs"
2662       ;;
2663     esac
2664 else
2665   enable_fast_install=yes
2666 fi
2667
2668
2669 DEPDIR="${am__leading_dot}deps"
2670
2671 ac_config_commands="$ac_config_commands depfiles"
2672
2673
2674 am_make=${MAKE-make}
2675 cat > confinc << 'END'
2676 am__doit:
2677         @echo done
2678 .PHONY: am__doit
2679 END
2680 # If we don't find an include directive, just comment out the code.
2681 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2682 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2683 am__include="#"
2684 am__quote=
2685 _am_result=none
2686 # First try GNU make style include.
2687 echo "include confinc" > confmf
2688 # We grep out `Entering directory' and `Leaving directory'
2689 # messages which can occur if `w' ends up in MAKEFLAGS.
2690 # In particular we don't look at `^make:' because GNU make might
2691 # be invoked under some other name (usually "gmake"), in which
2692 # case it prints its new name instead of `make'.
2693 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2694    am__include=include
2695    am__quote=
2696    _am_result=GNU
2697 fi
2698 # Now try BSD make style include.
2699 if test "$am__include" = "#"; then
2700    echo '.include "confinc"' > confmf
2701    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2702       am__include=.include
2703       am__quote="\""
2704       _am_result=BSD
2705    fi
2706 fi
2707
2708
2709 { echo "$as_me:$LINENO: result: $_am_result" >&5
2710 echo "${ECHO_T}$_am_result" >&6; }
2711 rm -f confinc confmf
2712
2713 # Check whether --enable-dependency-tracking was given.
2714 if test "${enable_dependency_tracking+set}" = set; then
2715   enableval=$enable_dependency_tracking;
2716 fi
2717
2718 if test "x$enable_dependency_tracking" != xno; then
2719   am_depcomp="$ac_aux_dir/depcomp"
2720   AMDEPBACKSLASH='\'
2721 fi
2722
2723
2724 if test "x$enable_dependency_tracking" != xno; then
2725   AMDEP_TRUE=
2726   AMDEP_FALSE='#'
2727 else
2728   AMDEP_TRUE='#'
2729   AMDEP_FALSE=
2730 fi
2731
2732
2733
2734 ac_ext=c
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739 if test -n "$ac_tool_prefix"; then
2740   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2744 if test "${ac_cv_prog_CC+set}" = set; then
2745   echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747   if test -n "$CC"; then
2748   ac_cv_prog_CC="$CC" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753   IFS=$as_save_IFS
2754   test -z "$as_dir" && as_dir=.
2755   for ac_exec_ext in '' $ac_executable_extensions; do
2756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759     break 2
2760   fi
2761 done
2762 done
2763 IFS=$as_save_IFS
2764
2765 fi
2766 fi
2767 CC=$ac_cv_prog_CC
2768 if test -n "$CC"; then
2769   { echo "$as_me:$LINENO: result: $CC" >&5
2770 echo "${ECHO_T}$CC" >&6; }
2771 else
2772   { echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6; }
2774 fi
2775
2776
2777 fi
2778 if test -z "$ac_cv_prog_CC"; then
2779   ac_ct_CC=$CC
2780   # Extract the first word of "gcc", so it can be a program name with args.
2781 set dummy gcc; ac_word=$2
2782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2785   echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787   if test -n "$ac_ct_CC"; then
2788   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793   IFS=$as_save_IFS
2794   test -z "$as_dir" && as_dir=.
2795   for ac_exec_ext in '' $ac_executable_extensions; do
2796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797     ac_cv_prog_ac_ct_CC="gcc"
2798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799     break 2
2800   fi
2801 done
2802 done
2803 IFS=$as_save_IFS
2804
2805 fi
2806 fi
2807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2808 if test -n "$ac_ct_CC"; then
2809   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2810 echo "${ECHO_T}$ac_ct_CC" >&6; }
2811 else
2812   { echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6; }
2814 fi
2815
2816   if test "x$ac_ct_CC" = x; then
2817     CC=""
2818   else
2819     case $cross_compiling:$ac_tool_warned in
2820 yes:)
2821 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2822 whose name does not start with the host triplet.  If you think this
2823 configuration is useful to you, please write to autoconf@gnu.org." >&5
2824 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2825 whose name does not start with the host triplet.  If you think this
2826 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2827 ac_tool_warned=yes ;;
2828 esac
2829     CC=$ac_ct_CC
2830   fi
2831 else
2832   CC="$ac_cv_prog_CC"
2833 fi
2834
2835 if test -z "$CC"; then
2836           if test -n "$ac_tool_prefix"; then
2837     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}cc; ac_word=$2
2839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2841 if test "${ac_cv_prog_CC+set}" = set; then
2842   echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844   if test -n "$CC"; then
2845   ac_cv_prog_CC="$CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850   IFS=$as_save_IFS
2851   test -z "$as_dir" && as_dir=.
2852   for ac_exec_ext in '' $ac_executable_extensions; do
2853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854     ac_cv_prog_CC="${ac_tool_prefix}cc"
2855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856     break 2
2857   fi
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 fi
2863 fi
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866   { echo "$as_me:$LINENO: result: $CC" >&5
2867 echo "${ECHO_T}$CC" >&6; }
2868 else
2869   { echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6; }
2871 fi
2872
2873
2874   fi
2875 fi
2876 if test -z "$CC"; then
2877   # Extract the first word of "cc", so it can be a program name with args.
2878 set dummy cc; ac_word=$2
2879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2881 if test "${ac_cv_prog_CC+set}" = set; then
2882   echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884   if test -n "$CC"; then
2885   ac_cv_prog_CC="$CC" # Let the user override the test.
2886 else
2887   ac_prog_rejected=no
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891   IFS=$as_save_IFS
2892   test -z "$as_dir" && as_dir=.
2893   for ac_exec_ext in '' $ac_executable_extensions; do
2894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2896        ac_prog_rejected=yes
2897        continue
2898      fi
2899     ac_cv_prog_CC="cc"
2900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901     break 2
2902   fi
2903 done
2904 done
2905 IFS=$as_save_IFS
2906
2907 if test $ac_prog_rejected = yes; then
2908   # We found a bogon in the path, so make sure we never use it.
2909   set dummy $ac_cv_prog_CC
2910   shift
2911   if test $# != 0; then
2912     # We chose a different compiler from the bogus one.
2913     # However, it has the same basename, so the bogon will be chosen
2914     # first if we set CC to just the basename; use the full file name.
2915     shift
2916     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2917   fi
2918 fi
2919 fi
2920 fi
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923   { echo "$as_me:$LINENO: result: $CC" >&5
2924 echo "${ECHO_T}$CC" >&6; }
2925 else
2926   { echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6; }
2928 fi
2929
2930
2931 fi
2932 if test -z "$CC"; then
2933   if test -n "$ac_tool_prefix"; then
2934   for ac_prog in cl.exe
2935   do
2936     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2940 if test "${ac_cv_prog_CC+set}" = set; then
2941   echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943   if test -n "$CC"; then
2944   ac_cv_prog_CC="$CC" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949   IFS=$as_save_IFS
2950   test -z "$as_dir" && as_dir=.
2951   for ac_exec_ext in '' $ac_executable_extensions; do
2952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955     break 2
2956   fi
2957 done
2958 done
2959 IFS=$as_save_IFS
2960
2961 fi
2962 fi
2963 CC=$ac_cv_prog_CC
2964 if test -n "$CC"; then
2965   { echo "$as_me:$LINENO: result: $CC" >&5
2966 echo "${ECHO_T}$CC" >&6; }
2967 else
2968   { echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6; }
2970 fi
2971
2972
2973     test -n "$CC" && break
2974   done
2975 fi
2976 if test -z "$CC"; then
2977   ac_ct_CC=$CC
2978   for ac_prog in cl.exe
2979 do
2980   # Extract the first word of "$ac_prog", so it can be a program name with args.
2981 set dummy $ac_prog; ac_word=$2
2982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   if test -n "$ac_ct_CC"; then
2988   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993   IFS=$as_save_IFS
2994   test -z "$as_dir" && as_dir=.
2995   for ac_exec_ext in '' $ac_executable_extensions; do
2996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997     ac_cv_prog_ac_ct_CC="$ac_prog"
2998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2999     break 2
3000   fi
3001 done
3002 done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008 if test -n "$ac_ct_CC"; then
3009   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3010 echo "${ECHO_T}$ac_ct_CC" >&6; }
3011 else
3012   { echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6; }
3014 fi
3015
3016
3017   test -n "$ac_ct_CC" && break
3018 done
3019
3020   if test "x$ac_ct_CC" = x; then
3021     CC=""
3022   else
3023     case $cross_compiling:$ac_tool_warned in
3024 yes:)
3025 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3026 whose name does not start with the host triplet.  If you think this
3027 configuration is useful to you, please write to autoconf@gnu.org." >&5
3028 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3029 whose name does not start with the host triplet.  If you think this
3030 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3031 ac_tool_warned=yes ;;
3032 esac
3033     CC=$ac_ct_CC
3034   fi
3035 fi
3036
3037 fi
3038
3039
3040 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3041 See \`config.log' for more details." >&5
3042 echo "$as_me: error: no acceptable C compiler found in \$PATH
3043 See \`config.log' for more details." >&2;}
3044    { (exit 1); exit 1; }; }
3045
3046 # Provide some information about the compiler.
3047 echo "$as_me:$LINENO: checking for C compiler version" >&5
3048 ac_compiler=`set X $ac_compile; echo $2`
3049 { (ac_try="$ac_compiler --version >&5"
3050 case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_compiler --version >&5") 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }
3059 { (ac_try="$ac_compiler -v >&5"
3060 case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_compiler -v >&5") 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }
3069 { (ac_try="$ac_compiler -V >&5"
3070 case "(($ac_try" in
3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072   *) ac_try_echo=$ac_try;;
3073 esac
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075   (eval "$ac_compiler -V >&5") 2>&5
3076   ac_status=$?
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); }
3079
3080 cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086
3087 int
3088 main ()
3089 {
3090
3091   ;
3092   return 0;
3093 }
3094 _ACEOF
3095 ac_clean_files_save=$ac_clean_files
3096 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3097 # Try to create an executable without -o first, disregard a.out.
3098 # It will help us diagnose broken compilers, and finding out an intuition
3099 # of exeext.
3100 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3101 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3102 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3103 #
3104 # List of possible output files, starting from the most likely.
3105 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3106 # only as a last resort.  b.out is created by i960 compilers.
3107 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3108 #
3109 # The IRIX 6 linker writes into existing files which may not be
3110 # executable, retaining their permissions.  Remove them first so a
3111 # subsequent execution test works.
3112 ac_rmfiles=
3113 for ac_file in $ac_files
3114 do
3115   case $ac_file in
3116     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3117     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3118   esac
3119 done
3120 rm -f $ac_rmfiles
3121
3122 if { (ac_try="$ac_link_default"
3123 case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_link_default") 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; then
3132   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3133 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3134 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3135 # so that the user can short-circuit this test for compilers unknown to
3136 # Autoconf.
3137 for ac_file in $ac_files ''
3138 do
3139   test -f "$ac_file" || continue
3140   case $ac_file in
3141     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3142         ;;
3143     [ab].out )
3144         # We found the default executable, but exeext='' is most
3145         # certainly right.
3146         break;;
3147     *.* )
3148         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3149         then :; else
3150            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151         fi
3152         # We set ac_cv_exeext here because the later test for it is not
3153         # safe: cross compilers may not add the suffix if given an `-o'
3154         # argument, so we may need to know it at that point already.
3155         # Even if this section looks crufty: it has the advantage of
3156         # actually working.
3157         break;;
3158     * )
3159         break;;
3160   esac
3161 done
3162 test "$ac_cv_exeext" = no && ac_cv_exeext=
3163
3164 else
3165   ac_file=''
3166 fi
3167
3168 { echo "$as_me:$LINENO: result: $ac_file" >&5
3169 echo "${ECHO_T}$ac_file" >&6; }
3170 if test -z "$ac_file"; then
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3175 See \`config.log' for more details." >&5
3176 echo "$as_me: error: C compiler cannot create executables
3177 See \`config.log' for more details." >&2;}
3178    { (exit 77); exit 77; }; }
3179 fi
3180
3181 ac_exeext=$ac_cv_exeext
3182
3183 # Check that the compiler produces executables we can run.  If not, either
3184 # the compiler is broken, or we cross compile.
3185 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3186 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3187 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3188 # If not cross compiling, check that we can run a simple program.
3189 if test "$cross_compiling" != yes; then
3190   if { ac_try='./$ac_file'
3191   { (case "(($ac_try" in
3192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193   *) ac_try_echo=$ac_try;;
3194 esac
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196   (eval "$ac_try") 2>&5
3197   ac_status=$?
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); }; }; then
3200     cross_compiling=no
3201   else
3202     if test "$cross_compiling" = maybe; then
3203         cross_compiling=yes
3204     else
3205         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3206 If you meant to cross compile, use \`--host'.
3207 See \`config.log' for more details." >&5
3208 echo "$as_me: error: cannot run C compiled programs.
3209 If you meant to cross compile, use \`--host'.
3210 See \`config.log' for more details." >&2;}
3211    { (exit 1); exit 1; }; }
3212     fi
3213   fi
3214 fi
3215 { echo "$as_me:$LINENO: result: yes" >&5
3216 echo "${ECHO_T}yes" >&6; }
3217
3218 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3219 ac_clean_files=$ac_clean_files_save
3220 # Check that the compiler produces executables we can run.  If not, either
3221 # the compiler is broken, or we cross compile.
3222 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3223 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3224 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3225 echo "${ECHO_T}$cross_compiling" >&6; }
3226
3227 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3228 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3229 if { (ac_try="$ac_link"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235   (eval "$ac_link") 2>&5
3236   ac_status=$?
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }; then
3239   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3240 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3241 # work properly (i.e., refer to `conftest.exe'), while it won't with
3242 # `rm'.
3243 for ac_file in conftest.exe conftest conftest.*; do
3244   test -f "$ac_file" || continue
3245   case $ac_file in
3246     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3247     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3248           break;;
3249     * ) break;;
3250   esac
3251 done
3252 else
3253   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3254 See \`config.log' for more details." >&5
3255 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3256 See \`config.log' for more details." >&2;}
3257    { (exit 1); exit 1; }; }
3258 fi
3259
3260 rm -f conftest$ac_cv_exeext
3261 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3262 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3263
3264 rm -f conftest.$ac_ext
3265 EXEEXT=$ac_cv_exeext
3266 ac_exeext=$EXEEXT
3267 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3268 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3269 if test "${ac_cv_objext+set}" = set; then
3270   echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272   cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h.  */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h.  */
3278
3279 int
3280 main ()
3281 {
3282
3283   ;
3284   return 0;
3285 }
3286 _ACEOF
3287 rm -f conftest.o conftest.obj
3288 if { (ac_try="$ac_compile"
3289 case "(($ac_try" in
3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291   *) ac_try_echo=$ac_try;;
3292 esac
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294   (eval "$ac_compile") 2>&5
3295   ac_status=$?
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); }; then
3298   for ac_file in conftest.o conftest.obj conftest.*; do
3299   test -f "$ac_file" || continue;
3300   case $ac_file in
3301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3302     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3303        break;;
3304   esac
3305 done
3306 else
3307   echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3311 See \`config.log' for more details." >&5
3312 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3313 See \`config.log' for more details." >&2;}
3314    { (exit 1); exit 1; }; }
3315 fi
3316
3317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3318 fi
3319 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3320 echo "${ECHO_T}$ac_cv_objext" >&6; }
3321 OBJEXT=$ac_cv_objext
3322 ac_objext=$OBJEXT
3323 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3324 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3325 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3326   echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328   cat >conftest.$ac_ext <<_ACEOF
3329 /* confdefs.h.  */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h.  */
3334
3335 int
3336 main ()
3337 {
3338 #ifndef __GNUC__
3339        choke me
3340 #endif
3341
3342   ;
3343   return 0;
3344 }
3345 _ACEOF
3346 rm -f conftest.$ac_objext
3347 if { (ac_try="$ac_compile"
3348 case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353   (eval "$ac_compile") 2>conftest.er1
3354   ac_status=$?
3355   grep -v '^ *+' conftest.er1 >conftest.err
3356   rm -f conftest.er1
3357   cat conftest.err >&5
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); } && {
3360          test -z "$ac_c_werror_flag" ||
3361          test ! -s conftest.err
3362        } && test -s conftest.$ac_objext; then
3363   ac_compiler_gnu=yes
3364 else
3365   echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368         ac_compiler_gnu=no
3369 fi
3370
3371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3373
3374 fi
3375 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3376 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3377 GCC=`test $ac_compiler_gnu = yes && echo yes`
3378 ac_test_CFLAGS=${CFLAGS+set}
3379 ac_save_CFLAGS=$CFLAGS
3380 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3381 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3382 if test "${ac_cv_prog_cc_g+set}" = set; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385   ac_save_c_werror_flag=$ac_c_werror_flag
3386    ac_c_werror_flag=yes
3387    ac_cv_prog_cc_g=no
3388    CFLAGS="-g"
3389    cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h.  */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h.  */
3395
3396 int
3397 main ()
3398 {
3399
3400   ;
3401   return 0;
3402 }
3403 _ACEOF
3404 rm -f conftest.$ac_objext
3405 if { (ac_try="$ac_compile"
3406 case "(($ac_try" in
3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408   *) ac_try_echo=$ac_try;;
3409 esac
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411   (eval "$ac_compile") 2>conftest.er1
3412   ac_status=$?
3413   grep -v '^ *+' conftest.er1 >conftest.err
3414   rm -f conftest.er1
3415   cat conftest.err >&5
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); } && {
3418          test -z "$ac_c_werror_flag" ||
3419          test ! -s conftest.err
3420        } && test -s conftest.$ac_objext; then
3421   ac_cv_prog_cc_g=yes
3422 else
3423   echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426         CFLAGS=""
3427       cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h.  */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h.  */
3433
3434 int
3435 main ()
3436 {
3437
3438   ;
3439   return 0;
3440 }
3441 _ACEOF
3442 rm -f conftest.$ac_objext
3443 if { (ac_try="$ac_compile"
3444 case "(($ac_try" in
3445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446   *) ac_try_echo=$ac_try;;
3447 esac
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449   (eval "$ac_compile") 2>conftest.er1
3450   ac_status=$?
3451   grep -v '^ *+' conftest.er1 >conftest.err
3452   rm -f conftest.er1
3453   cat conftest.err >&5
3454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455   (exit $ac_status); } && {
3456          test -z "$ac_c_werror_flag" ||
3457          test ! -s conftest.err
3458        } && test -s conftest.$ac_objext; then
3459   :
3460 else
3461   echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464         ac_c_werror_flag=$ac_save_c_werror_flag
3465          CFLAGS="-g"
3466          cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h.  */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h.  */
3472
3473 int
3474 main ()
3475 {
3476
3477   ;
3478   return 0;
3479 }
3480 _ACEOF
3481 rm -f conftest.$ac_objext
3482 if { (ac_try="$ac_compile"
3483 case "(($ac_try" in
3484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485   *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488   (eval "$ac_compile") 2>conftest.er1
3489   ac_status=$?
3490   grep -v '^ *+' conftest.er1 >conftest.err
3491   rm -f conftest.er1
3492   cat conftest.err >&5
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); } && {
3495          test -z "$ac_c_werror_flag" ||
3496          test ! -s conftest.err
3497        } && test -s conftest.$ac_objext; then
3498   ac_cv_prog_cc_g=yes
3499 else
3500   echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503
3504 fi
3505
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 fi
3508
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 fi
3511
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513    ac_c_werror_flag=$ac_save_c_werror_flag
3514 fi
3515 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3516 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3517 if test "$ac_test_CFLAGS" = set; then
3518   CFLAGS=$ac_save_CFLAGS
3519 elif test $ac_cv_prog_cc_g = yes; then
3520   if test "$GCC" = yes; then
3521     CFLAGS="-g -O2"
3522   else
3523     CFLAGS="-g"
3524   fi
3525 else
3526   if test "$GCC" = yes; then
3527     CFLAGS="-O2"
3528   else
3529     CFLAGS=
3530   fi
3531 fi
3532 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3533 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3534 if test "${ac_cv_prog_cc_c89+set}" = set; then
3535   echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537   ac_cv_prog_cc_c89=no
3538 ac_save_CC=$CC
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h.  */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h.  */
3545 #include <stdarg.h>
3546 #include <stdio.h>
3547 #include <sys/types.h>
3548 #include <sys/stat.h>
3549 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3550 struct buf { int x; };
3551 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3552 static char *e (p, i)
3553      char **p;
3554      int i;
3555 {
3556   return p[i];
3557 }
3558 static char *f (char * (*g) (char **, int), char **p, ...)
3559 {
3560   char *s;
3561   va_list v;
3562   va_start (v,p);
3563   s = g (p, va_arg (v,int));
3564   va_end (v);
3565   return s;
3566 }
3567
3568 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3569    function prototypes and stuff, but not '\xHH' hex character constants.
3570    These don't provoke an error unfortunately, instead are silently treated
3571    as 'x'.  The following induces an error, until -std is added to get
3572    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3573    array size at least.  It's necessary to write '\x00'==0 to get something
3574    that's true only with -std.  */
3575 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3576
3577 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3578    inside strings and character constants.  */
3579 #define FOO(x) 'x'
3580 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3581
3582 int test (int i, double x);
3583 struct s1 {int (*f) (int a);};
3584 struct s2 {int (*f) (double a);};
3585 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3586 int argc;
3587 char **argv;
3588 int
3589 main ()
3590 {
3591 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3592   ;
3593   return 0;
3594 }
3595 _ACEOF
3596 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3597         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3598 do
3599   CC="$ac_save_CC $ac_arg"
3600   rm -f conftest.$ac_objext
3601 if { (ac_try="$ac_compile"
3602 case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607   (eval "$ac_compile") 2>conftest.er1
3608   ac_status=$?
3609   grep -v '^ *+' conftest.er1 >conftest.err
3610   rm -f conftest.er1
3611   cat conftest.err >&5
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); } && {
3614          test -z "$ac_c_werror_flag" ||
3615          test ! -s conftest.err
3616        } && test -s conftest.$ac_objext; then
3617   ac_cv_prog_cc_c89=$ac_arg
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622
3623 fi
3624
3625 rm -f core conftest.err conftest.$ac_objext
3626   test "x$ac_cv_prog_cc_c89" != "xno" && break
3627 done
3628 rm -f conftest.$ac_ext
3629 CC=$ac_save_CC
3630
3631 fi
3632 # AC_CACHE_VAL
3633 case "x$ac_cv_prog_cc_c89" in
3634   x)
3635     { echo "$as_me:$LINENO: result: none needed" >&5
3636 echo "${ECHO_T}none needed" >&6; } ;;
3637   xno)
3638     { echo "$as_me:$LINENO: result: unsupported" >&5
3639 echo "${ECHO_T}unsupported" >&6; } ;;
3640   *)
3641     CC="$CC $ac_cv_prog_cc_c89"
3642     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3643 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3644 esac
3645
3646
3647 ac_ext=c
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652
3653 depcc="$CC"   am_compiler_list=
3654
3655 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3656 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3657 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3661   # We make a subdir and do the tests there.  Otherwise we can end up
3662   # making bogus files that we don't know about and never remove.  For
3663   # instance it was reported that on HP-UX the gcc test will end up
3664   # making a dummy file named `D' -- because `-MD' means `put the output
3665   # in D'.
3666   mkdir conftest.dir
3667   # Copy depcomp to subdir because otherwise we won't find it if we're
3668   # using a relative directory.
3669   cp "$am_depcomp" conftest.dir
3670   cd conftest.dir
3671   # We will build objects and dependencies in a subdirectory because
3672   # it helps to detect inapplicable dependency modes.  For instance
3673   # both Tru64's cc and ICC support -MD to output dependencies as a
3674   # side effect of compilation, but ICC will put the dependencies in
3675   # the current directory while Tru64 will put them in the object
3676   # directory.
3677   mkdir sub
3678
3679   am_cv_CC_dependencies_compiler_type=none
3680   if test "$am_compiler_list" = ""; then
3681      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3682   fi
3683   for depmode in $am_compiler_list; do
3684     # Setup a source with many dependencies, because some compilers
3685     # like to wrap large dependency lists on column 80 (with \), and
3686     # we should not choose a depcomp mode which is confused by this.
3687     #
3688     # We need to recreate these files for each test, as the compiler may
3689     # overwrite some of them when testing with obscure command lines.
3690     # This happens at least with the AIX C compiler.
3691     : > sub/conftest.c
3692     for i in 1 2 3 4 5 6; do
3693       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3694       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3695       # Solaris 8's {/usr,}/bin/sh.
3696       touch sub/conftst$i.h
3697     done
3698     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3699
3700     case $depmode in
3701     nosideeffect)
3702       # after this tag, mechanisms are not by side-effect, so they'll
3703       # only be used when explicitly requested
3704       if test "x$enable_dependency_tracking" = xyes; then
3705         continue
3706       else
3707         break
3708       fi
3709       ;;
3710     none) break ;;
3711     esac
3712     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3713     # mode.  It turns out that the SunPro C++ compiler does not properly
3714     # handle `-M -o', and we need to detect this.
3715     if depmode=$depmode \
3716        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3717        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3718        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3719          >/dev/null 2>conftest.err &&
3720        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3721        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3722        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3723       # icc doesn't choke on unknown options, it will just issue warnings
3724       # or remarks (even with -Werror).  So we grep stderr for any message
3725       # that says an option was ignored or not supported.
3726       # When given -MP, icc 7.0 and 7.1 complain thusly:
3727       #   icc: Command line warning: ignoring option '-M'; no argument required
3728       # The diagnosis changed in icc 8.0:
3729       #   icc: Command line remark: option '-MP' not supported
3730       if (grep 'ignoring option' conftest.err ||
3731           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3732         am_cv_CC_dependencies_compiler_type=$depmode
3733         break
3734       fi
3735     fi
3736   done
3737
3738   cd ..
3739   rm -rf conftest.dir
3740 else
3741   am_cv_CC_dependencies_compiler_type=none
3742 fi
3743
3744 fi
3745 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3746 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3747 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3748
3749
3750
3751 if
3752   test "x$enable_dependency_tracking" != xno \
3753   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3754   am__fastdepCC_TRUE=
3755   am__fastdepCC_FALSE='#'
3756 else
3757   am__fastdepCC_TRUE='#'
3758   am__fastdepCC_FALSE=
3759 fi
3760
3761
3762 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3763 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3764 if test "${lt_cv_path_SED+set}" = set; then
3765   echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767   # Loop through the user's path and test for sed and gsed.
3768 # Then use that list of sed's as ones to test for truncation.
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772   IFS=$as_save_IFS
3773   test -z "$as_dir" && as_dir=.
3774   for lt_ac_prog in sed gsed; do
3775     for ac_exec_ext in '' $ac_executable_extensions; do
3776       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3777         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3778       fi
3779     done
3780   done
3781 done
3782 lt_ac_max=0
3783 lt_ac_count=0
3784 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3785 # along with /bin/sed that truncates output.
3786 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3787   test ! -f $lt_ac_sed && continue
3788   cat /dev/null > conftest.in
3789   lt_ac_count=0
3790   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3791   # Check for GNU sed and select it if it is found.
3792   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3793     lt_cv_path_SED=$lt_ac_sed
3794     break
3795   fi
3796   while true; do
3797     cat conftest.in conftest.in >conftest.tmp
3798     mv conftest.tmp conftest.in
3799     cp conftest.in conftest.nl
3800     echo >>conftest.nl
3801     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3802     cmp -s conftest.out conftest.nl || break
3803     # 10000 chars as input seems more than enough
3804     test $lt_ac_count -gt 10 && break
3805     lt_ac_count=`expr $lt_ac_count + 1`
3806     if test $lt_ac_count -gt $lt_ac_max; then
3807       lt_ac_max=$lt_ac_count
3808       lt_cv_path_SED=$lt_ac_sed
3809     fi
3810   done
3811 done
3812
3813 fi
3814
3815 SED=$lt_cv_path_SED
3816 { echo "$as_me:$LINENO: result: $SED" >&5
3817 echo "${ECHO_T}$SED" >&6; }
3818
3819 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3820 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3821 if test "${ac_cv_path_GREP+set}" = set; then
3822   echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824   # Extract the first word of "grep ggrep" to use in msg output
3825 if test -z "$GREP"; then
3826 set dummy grep ggrep; ac_prog_name=$2
3827 if test "${ac_cv_path_GREP+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   ac_path_GREP_found=false
3831 # Loop through the user's path and test for each of PROGNAME-LIST
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3834 do
3835   IFS=$as_save_IFS
3836   test -z "$as_dir" && as_dir=.
3837   for ac_prog in grep ggrep; do
3838   for ac_exec_ext in '' $ac_executable_extensions; do
3839     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3840     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3841     # Check for GNU ac_path_GREP and select it if it is found.
3842   # Check for GNU $ac_path_GREP
3843 case `"$ac_path_GREP" --version 2>&1` in
3844 *GNU*)
3845   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3846 *)
3847   ac_count=0
3848   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3849   while :
3850   do
3851     cat "conftest.in" "conftest.in" >"conftest.tmp"
3852     mv "conftest.tmp" "conftest.in"
3853     cp "conftest.in" "conftest.nl"
3854     echo 'GREP' >> "conftest.nl"
3855     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3856     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3857     ac_count=`expr $ac_count + 1`
3858     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3859       # Best one so far, save it but keep looking for a better one
3860       ac_cv_path_GREP="$ac_path_GREP"
3861       ac_path_GREP_max=$ac_count
3862     fi
3863     # 10*(2^10) chars as input seems more than enough
3864     test $ac_count -gt 10 && break
3865   done
3866   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3867 esac
3868
3869
3870     $ac_path_GREP_found && break 3
3871   done
3872 done
3873
3874 done
3875 IFS=$as_save_IFS
3876
3877
3878 fi
3879
3880 GREP="$ac_cv_path_GREP"
3881 if test -z "$GREP"; then
3882   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3883 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3884    { (exit 1); exit 1; }; }
3885 fi
3886
3887 else
3888   ac_cv_path_GREP=$GREP
3889 fi
3890
3891
3892 fi
3893 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3894 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3895  GREP="$ac_cv_path_GREP"
3896
3897
3898 { echo "$as_me:$LINENO: checking for egrep" >&5
3899 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3900 if test "${ac_cv_path_EGREP+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3904    then ac_cv_path_EGREP="$GREP -E"
3905    else
3906      # Extract the first word of "egrep" to use in msg output
3907 if test -z "$EGREP"; then
3908 set dummy egrep; ac_prog_name=$2
3909 if test "${ac_cv_path_EGREP+set}" = set; then
3910   echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912   ac_path_EGREP_found=false
3913 # Loop through the user's path and test for each of PROGNAME-LIST
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3916 do
3917   IFS=$as_save_IFS
3918   test -z "$as_dir" && as_dir=.
3919   for ac_prog in egrep; do
3920   for ac_exec_ext in '' $ac_executable_extensions; do
3921     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3922     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3923     # Check for GNU ac_path_EGREP and select it if it is found.
3924   # Check for GNU $ac_path_EGREP
3925 case `"$ac_path_EGREP" --version 2>&1` in
3926 *GNU*)
3927   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3928 *)
3929   ac_count=0
3930   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3931   while :
3932   do
3933     cat "conftest.in" "conftest.in" >"conftest.tmp"
3934     mv "conftest.tmp" "conftest.in"
3935     cp "conftest.in" "conftest.nl"
3936     echo 'EGREP' >> "conftest.nl"
3937     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3938     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3939     ac_count=`expr $ac_count + 1`
3940     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3941       # Best one so far, save it but keep looking for a better one
3942       ac_cv_path_EGREP="$ac_path_EGREP"
3943       ac_path_EGREP_max=$ac_count
3944     fi
3945     # 10*(2^10) chars as input seems more than enough
3946     test $ac_count -gt 10 && break
3947   done
3948   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3949 esac
3950
3951
3952     $ac_path_EGREP_found && break 3
3953   done
3954 done
3955
3956 done
3957 IFS=$as_save_IFS
3958
3959
3960 fi
3961
3962 EGREP="$ac_cv_path_EGREP"
3963 if test -z "$EGREP"; then
3964   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3965 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3966    { (exit 1); exit 1; }; }
3967 fi
3968
3969 else
3970   ac_cv_path_EGREP=$EGREP
3971 fi
3972
3973
3974    fi
3975 fi
3976 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3977 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3978  EGREP="$ac_cv_path_EGREP"
3979
3980
3981
3982 # Check whether --with-gnu-ld was given.
3983 if test "${with_gnu_ld+set}" = set; then
3984   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3985 else
3986   with_gnu_ld=no
3987 fi
3988
3989 ac_prog=ld
3990 if test "$GCC" = yes; then
3991   # Check if gcc -print-prog-name=ld gives a path.
3992   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3993 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3994   case $host in
3995   *-*-mingw*)
3996     # gcc leaves a trailing carriage return which upsets mingw
3997     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3998   *)
3999     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4000   esac
4001   case $ac_prog in
4002     # Accept absolute paths.
4003     [\\/]* | ?:[\\/]*)
4004       re_direlt='/[^/][^/]*/\.\./'
4005       # Canonicalize the pathname of ld
4006       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4007       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4008         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4009       done
4010       test -z "$LD" && LD="$ac_prog"
4011       ;;
4012   "")
4013     # If it fails, then pretend we aren't using GCC.
4014     ac_prog=ld
4015     ;;
4016   *)
4017     # If it is relative, then search for the first ld in PATH.
4018     with_gnu_ld=unknown
4019     ;;
4020   esac
4021 elif test "$with_gnu_ld" = yes; then
4022   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4023 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4024 else
4025   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4026 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4027 fi
4028 if test "${lt_cv_path_LD+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   if test -z "$LD"; then
4032   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4033   for ac_dir in $PATH; do
4034     IFS="$lt_save_ifs"
4035     test -z "$ac_dir" && ac_dir=.
4036     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4037       lt_cv_path_LD="$ac_dir/$ac_prog"
4038       # Check to see if the program is GNU ld.  I'd rather use --version,
4039       # but apparently some variants of GNU ld only accept -v.
4040       # Break only if it was the GNU/non-GNU ld that we prefer.
4041       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4042       *GNU* | *'with BFD'*)
4043         test "$with_gnu_ld" != no && break
4044         ;;
4045       *)
4046         test "$with_gnu_ld" != yes && break
4047         ;;
4048       esac
4049     fi
4050   done
4051   IFS="$lt_save_ifs"
4052 else
4053   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4054 fi
4055 fi
4056
4057 LD="$lt_cv_path_LD"
4058 if test -n "$LD"; then
4059   { echo "$as_me:$LINENO: result: $LD" >&5
4060 echo "${ECHO_T}$LD" >&6; }
4061 else
4062   { echo "$as_me:$LINENO: result: no" >&5
4063 echo "${ECHO_T}no" >&6; }
4064 fi
4065 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4066 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4067    { (exit 1); exit 1; }; }
4068 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4069 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4070 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4074 case `$LD -v 2>&1 </dev/null` in
4075 *GNU* | *'with BFD'*)
4076   lt_cv_prog_gnu_ld=yes
4077   ;;
4078 *)
4079   lt_cv_prog_gnu_ld=no
4080   ;;
4081 esac
4082 fi
4083 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4084 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4085 with_gnu_ld=$lt_cv_prog_gnu_ld
4086
4087
4088 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4089 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4090 if test "${lt_cv_ld_reload_flag+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   lt_cv_ld_reload_flag='-r'
4094 fi
4095 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4096 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4097 reload_flag=$lt_cv_ld_reload_flag
4098 case $reload_flag in
4099 "" | " "*) ;;
4100 *) reload_flag=" $reload_flag" ;;
4101 esac
4102 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4103 case $host_os in
4104   darwin*)
4105     if test "$GCC" = yes; then
4106       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4107     else
4108       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4109     fi
4110     ;;
4111 esac
4112
4113 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4114 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4115 if test "${lt_cv_path_NM+set}" = set; then
4116   echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118   if test -n "$NM"; then
4119   # Let the user override the test.
4120   lt_cv_path_NM="$NM"
4121 else
4122   lt_nm_to_check="${ac_tool_prefix}nm"
4123   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4124     lt_nm_to_check="$lt_nm_to_check nm"
4125   fi
4126   for lt_tmp_nm in $lt_nm_to_check; do
4127     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4128     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4129       IFS="$lt_save_ifs"
4130       test -z "$ac_dir" && ac_dir=.
4131       tmp_nm="$ac_dir/$lt_tmp_nm"
4132       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4133         # Check to see if the nm accepts a BSD-compat flag.
4134         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4135         #   nm: unknown option "B" ignored
4136         # Tru64's nm complains that /dev/null is an invalid object file
4137         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4138         */dev/null* | *'Invalid file or object type'*)
4139           lt_cv_path_NM="$tmp_nm -B"
4140           break
4141           ;;
4142         *)
4143           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4144           */dev/null*)
4145             lt_cv_path_NM="$tmp_nm -p"
4146             break
4147             ;;
4148           *)
4149             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4150             continue # so that we can try to find one that supports BSD flags
4151             ;;
4152           esac
4153           ;;
4154         esac
4155       fi
4156     done
4157     IFS="$lt_save_ifs"
4158   done
4159   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4160 fi
4161 fi
4162 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4163 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4164 NM="$lt_cv_path_NM"
4165
4166 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4167 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4168 LN_S=$as_ln_s
4169 if test "$LN_S" = "ln -s"; then
4170   { echo "$as_me:$LINENO: result: yes" >&5
4171 echo "${ECHO_T}yes" >&6; }
4172 else
4173   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4174 echo "${ECHO_T}no, using $LN_S" >&6; }
4175 fi
4176
4177 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4178 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4179 if test "${lt_cv_deplibs_check_method+set}" = set; then
4180   echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182   lt_cv_file_magic_cmd='$MAGIC_CMD'
4183 lt_cv_file_magic_test_file=
4184 lt_cv_deplibs_check_method='unknown'
4185 # Need to set the preceding variable on all platforms that support
4186 # interlibrary dependencies.
4187 # 'none' -- dependencies not supported.
4188 # `unknown' -- same as none, but documents that we really don't know.
4189 # 'pass_all' -- all dependencies passed with no checks.
4190 # 'test_compile' -- check by making test program.
4191 # 'file_magic [[regex]]' -- check by looking for files in library path
4192 # which responds to the $file_magic_cmd with a given extended regex.
4193 # If you have `file' or equivalent on your system and you're not sure
4194 # whether `pass_all' will *always* work, you probably want this one.
4195
4196 case $host_os in
4197 aix4* | aix5*)
4198   lt_cv_deplibs_check_method=pass_all
4199   ;;
4200
4201 beos*)
4202   lt_cv_deplibs_check_method=pass_all
4203   ;;
4204
4205 bsdi[45]*)
4206   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4207   lt_cv_file_magic_cmd='/usr/bin/file -L'
4208   lt_cv_file_magic_test_file=/shlib/libc.so
4209   ;;
4210
4211 cygwin*)
4212   # func_win32_libid is a shell function defined in ltmain.sh
4213   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4214   lt_cv_file_magic_cmd='func_win32_libid'
4215   ;;
4216
4217 mingw* | pw32*)
4218   # Base MSYS/MinGW do not provide the 'file' command needed by
4219   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4220   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4221   lt_cv_file_magic_cmd='$OBJDUMP -f'
4222   ;;
4223
4224 darwin* | rhapsody*)
4225   lt_cv_deplibs_check_method=pass_all
4226   ;;
4227
4228 freebsd* | dragonfly*)
4229   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4230     case $host_cpu in
4231     i*86 )
4232       # Not sure whether the presence of OpenBSD here was a mistake.
4233       # Let's accept both of them until this is cleared up.
4234       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4235       lt_cv_file_magic_cmd=/usr/bin/file
4236       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4237       ;;
4238     esac
4239   else
4240     lt_cv_deplibs_check_method=pass_all
4241   fi
4242   ;;
4243
4244 gnu*)
4245   lt_cv_deplibs_check_method=pass_all
4246   ;;
4247
4248 hpux10.20* | hpux11*)
4249   lt_cv_file_magic_cmd=/usr/bin/file
4250   case $host_cpu in
4251   ia64*)
4252     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4253     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4254     ;;
4255   hppa*64*)
4256     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4257     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4258     ;;
4259   *)
4260     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4261     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4262     ;;
4263   esac
4264   ;;
4265
4266 interix3*)
4267   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4268   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4269   ;;
4270
4271 irix5* | irix6* | nonstopux*)
4272   case $LD in
4273   *-32|*"-32 ") libmagic=32-bit;;
4274   *-n32|*"-n32 ") libmagic=N32;;
4275   *-64|*"-64 ") libmagic=64-bit;;
4276   *) libmagic=never-match;;
4277   esac
4278   lt_cv_deplibs_check_method=pass_all
4279   ;;
4280
4281 # This must be Linux ELF.
4282 linux* | k*bsd*-gnu)
4283   lt_cv_deplibs_check_method=pass_all
4284   ;;
4285
4286 netbsd* | netbsdelf*-gnu)
4287   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4288     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4289   else
4290     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4291   fi
4292   ;;
4293
4294 newos6*)
4295   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4296   lt_cv_file_magic_cmd=/usr/bin/file
4297   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4298   ;;
4299
4300 nto-qnx*)
4301   lt_cv_deplibs_check_method=unknown
4302   ;;
4303
4304 openbsd*)
4305   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4306     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4307   else
4308     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4309   fi
4310   ;;
4311
4312 osf3* | osf4* | osf5*)
4313   lt_cv_deplibs_check_method=pass_all
4314   ;;
4315
4316 solaris*)
4317   lt_cv_deplibs_check_method=pass_all
4318   ;;
4319
4320 sysv4 | sysv4.3*)
4321   case $host_vendor in
4322   motorola)
4323     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]'
4324     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4325     ;;
4326   ncr)
4327     lt_cv_deplibs_check_method=pass_all
4328     ;;
4329   sequent)
4330     lt_cv_file_magic_cmd='/bin/file'
4331     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4332     ;;
4333   sni)
4334     lt_cv_file_magic_cmd='/bin/file'
4335     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4336     lt_cv_file_magic_test_file=/lib/libc.so
4337     ;;
4338   siemens)
4339     lt_cv_deplibs_check_method=pass_all
4340     ;;
4341   pc)
4342     lt_cv_deplibs_check_method=pass_all
4343     ;;
4344   esac
4345   ;;
4346
4347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4348   lt_cv_deplibs_check_method=pass_all
4349   ;;
4350 esac
4351
4352 fi
4353 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4354 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4355 file_magic_cmd=$lt_cv_file_magic_cmd
4356 deplibs_check_method=$lt_cv_deplibs_check_method
4357 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4358
4359
4360
4361
4362 # If no C compiler was specified, use CC.
4363 LTCC=${LTCC-"$CC"}
4364
4365 # If no C compiler flags were specified, use CFLAGS.
4366 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4367
4368 # Allow CC to be a program name with arguments.
4369 compiler=$CC
4370
4371
4372 # Check whether --enable-libtool-lock was given.
4373 if test "${enable_libtool_lock+set}" = set; then
4374   enableval=$enable_libtool_lock;
4375 fi
4376
4377 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4378
4379 # Some flags need to be propagated to the compiler or linker for good
4380 # libtool support.
4381 case $host in
4382 ia64-*-hpux*)
4383   # Find out which ABI we are using.
4384   echo 'int i;' > conftest.$ac_ext
4385   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4386   (eval $ac_compile) 2>&5
4387   ac_status=$?
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); }; then
4390     case `/usr/bin/file conftest.$ac_objext` in
4391     *ELF-32*)
4392       HPUX_IA64_MODE="32"
4393       ;;
4394     *ELF-64*)
4395       HPUX_IA64_MODE="64"
4396       ;;
4397     esac
4398   fi
4399   rm -rf conftest*
4400   ;;
4401 *-*-irix6*)
4402   # Find out which ABI we are using.
4403   echo '#line 4403 "configure"' > conftest.$ac_ext
4404   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405   (eval $ac_compile) 2>&5
4406   ac_status=$?
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); }; then
4409    if test "$lt_cv_prog_gnu_ld" = yes; then
4410     case `/usr/bin/file conftest.$ac_objext` in
4411     *32-bit*)
4412       LD="${LD-ld} -melf32bsmip"
4413       ;;
4414     *N32*)
4415       LD="${LD-ld} -melf32bmipn32"
4416       ;;
4417     *64-bit*)
4418       LD="${LD-ld} -melf64bmip"
4419       ;;
4420     esac
4421    else
4422     case `/usr/bin/file conftest.$ac_objext` in
4423     *32-bit*)
4424       LD="${LD-ld} -32"
4425       ;;
4426     *N32*)
4427       LD="${LD-ld} -n32"
4428       ;;
4429     *64-bit*)
4430       LD="${LD-ld} -64"
4431       ;;
4432     esac
4433    fi
4434   fi
4435   rm -rf conftest*
4436   ;;
4437
4438 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4439   # Find out which ABI we are using.
4440   echo 'int i;' > conftest.$ac_ext
4441   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4442   (eval $ac_compile) 2>&5
4443   ac_status=$?
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); }; then
4446     case `/usr/bin/file conftest.o` in
4447     *32-bit*)
4448       case $host in
4449         x86_64-*linux*)
4450           LD="${LD-ld} -m elf_i386"
4451           ;;
4452         ppc64-*linux*|powerpc64-*linux*)
4453           LD="${LD-ld} -m elf32ppclinux"
4454           ;;
4455         s390x-*linux*)
4456           LD="${LD-ld} -m elf_s390"
4457           ;;
4458         sparc64-*linux*)
4459           LD="${LD-ld} -m elf32_sparc"
4460           ;;
4461       esac
4462       ;;
4463     *64-bit*)
4464       case $host in
4465         x86_64-*linux*)
4466           LD="${LD-ld} -m elf_x86_64"
4467           ;;
4468         ppc*-*linux*|powerpc*-*linux*)
4469           LD="${LD-ld} -m elf64ppc"
4470           ;;
4471         s390*-*linux*)
4472           LD="${LD-ld} -m elf64_s390"
4473           ;;
4474         sparc*-*linux*)
4475           LD="${LD-ld} -m elf64_sparc"
4476           ;;
4477       esac
4478       ;;
4479     esac
4480   fi
4481   rm -rf conftest*
4482   ;;
4483
4484 *-*-sco3.2v5*)
4485   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4486   SAVE_CFLAGS="$CFLAGS"
4487   CFLAGS="$CFLAGS -belf"
4488   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4489 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4490 if test "${lt_cv_cc_needs_belf+set}" = set; then
4491   echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493   ac_ext=c
4494 ac_cpp='$CPP $CPPFLAGS'
4495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4498
4499      cat >conftest.$ac_ext <<_ACEOF
4500 /* confdefs.h.  */
4501 _ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h.  */
4505
4506 int
4507 main ()
4508 {
4509
4510   ;
4511   return 0;
4512 }
4513 _ACEOF
4514 rm -f conftest.$ac_objext conftest$ac_exeext
4515 if { (ac_try="$ac_link"
4516 case "(($ac_try" in
4517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518   *) ac_try_echo=$ac_try;;
4519 esac
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521   (eval "$ac_link") 2>conftest.er1
4522   ac_status=$?
4523   grep -v '^ *+' conftest.er1 >conftest.err
4524   rm -f conftest.er1
4525   cat conftest.err >&5
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); } && {
4528          test -z "$ac_c_werror_flag" ||
4529          test ! -s conftest.err
4530        } && test -s conftest$ac_exeext &&
4531        $as_test_x conftest$ac_exeext; then
4532   lt_cv_cc_needs_belf=yes
4533 else
4534   echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.$ac_ext >&5
4536
4537         lt_cv_cc_needs_belf=no
4538 fi
4539
4540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4541       conftest$ac_exeext conftest.$ac_ext
4542      ac_ext=c
4543 ac_cpp='$CPP $CPPFLAGS'
4544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547
4548 fi
4549 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4550 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4551   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4552     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4553     CFLAGS="$SAVE_CFLAGS"
4554   fi
4555   ;;
4556 sparc*-*solaris*)
4557   # Find out which ABI we are using.
4558   echo 'int i;' > conftest.$ac_ext
4559   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4560   (eval $ac_compile) 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); }; then
4564     case `/usr/bin/file conftest.o` in
4565     *64-bit*)
4566       case $lt_cv_prog_gnu_ld in
4567       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4568       *)    LD="${LD-ld} -64" ;;
4569       esac
4570       ;;
4571     esac
4572   fi
4573   rm -rf conftest*
4574   ;;
4575
4576 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4577   if test -n "$ac_tool_prefix"; then
4578   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4579 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4582 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4583   echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585   if test -n "$DLLTOOL"; then
4586   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591   IFS=$as_save_IFS
4592   test -z "$as_dir" && as_dir=.
4593   for ac_exec_ext in '' $ac_executable_extensions; do
4594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597     break 2
4598   fi
4599 done
4600 done
4601 IFS=$as_save_IFS
4602
4603 fi
4604 fi
4605 DLLTOOL=$ac_cv_prog_DLLTOOL
4606 if test -n "$DLLTOOL"; then
4607   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4608 echo "${ECHO_T}$DLLTOOL" >&6; }
4609 else
4610   { echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6; }
4612 fi
4613
4614
4615 fi
4616 if test -z "$ac_cv_prog_DLLTOOL"; then
4617   ac_ct_DLLTOOL=$DLLTOOL
4618   # Extract the first word of "dlltool", so it can be a program name with args.
4619 set dummy dlltool; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   if test -n "$ac_ct_DLLTOOL"; then
4626   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633   for ac_exec_ext in '' $ac_executable_extensions; do
4634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638   fi
4639 done
4640 done
4641 IFS=$as_save_IFS
4642
4643 fi
4644 fi
4645 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4646 if test -n "$ac_ct_DLLTOOL"; then
4647   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4648 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4649 else
4650   { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4652 fi
4653
4654   if test "x$ac_ct_DLLTOOL" = x; then
4655     DLLTOOL="false"
4656   else
4657     case $cross_compiling:$ac_tool_warned in
4658 yes:)
4659 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4660 whose name does not start with the host triplet.  If you think this
4661 configuration is useful to you, please write to autoconf@gnu.org." >&5
4662 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4663 whose name does not start with the host triplet.  If you think this
4664 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4665 ac_tool_warned=yes ;;
4666 esac
4667     DLLTOOL=$ac_ct_DLLTOOL
4668   fi
4669 else
4670   DLLTOOL="$ac_cv_prog_DLLTOOL"
4671 fi
4672
4673   if test -n "$ac_tool_prefix"; then
4674   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4675 set dummy ${ac_tool_prefix}as; ac_word=$2
4676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4678 if test "${ac_cv_prog_AS+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   if test -n "$AS"; then
4682   ac_cv_prog_AS="$AS" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4686 do
4687   IFS=$as_save_IFS
4688   test -z "$as_dir" && as_dir=.
4689   for ac_exec_ext in '' $ac_executable_extensions; do
4690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4691     ac_cv_prog_AS="${ac_tool_prefix}as"
4692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693     break 2
4694   fi
4695 done
4696 done
4697 IFS=$as_save_IFS
4698
4699 fi
4700 fi
4701 AS=$ac_cv_prog_AS
4702 if test -n "$AS"; then
4703   { echo "$as_me:$LINENO: result: $AS" >&5
4704 echo "${ECHO_T}$AS" >&6; }
4705 else
4706   { echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6; }
4708 fi
4709
4710
4711 fi
4712 if test -z "$ac_cv_prog_AS"; then
4713   ac_ct_AS=$AS
4714   # Extract the first word of "as", so it can be a program name with args.
4715 set dummy as; ac_word=$2
4716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4718 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4719   echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721   if test -n "$ac_ct_AS"; then
4722   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4723 else
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4726 do
4727   IFS=$as_save_IFS
4728   test -z "$as_dir" && as_dir=.
4729   for ac_exec_ext in '' $ac_executable_extensions; do
4730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731     ac_cv_prog_ac_ct_AS="as"
4732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733     break 2
4734   fi
4735 done
4736 done
4737 IFS=$as_save_IFS
4738
4739 fi
4740 fi
4741 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4742 if test -n "$ac_ct_AS"; then
4743   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4744 echo "${ECHO_T}$ac_ct_AS" >&6; }
4745 else
4746   { echo "$as_me:$LINENO: result: no" >&5
4747 echo "${ECHO_T}no" >&6; }
4748 fi
4749
4750   if test "x$ac_ct_AS" = x; then
4751     AS="false"
4752   else
4753     case $cross_compiling:$ac_tool_warned in
4754 yes:)
4755 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4756 whose name does not start with the host triplet.  If you think this
4757 configuration is useful to you, please write to autoconf@gnu.org." >&5
4758 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4759 whose name does not start with the host triplet.  If you think this
4760 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4761 ac_tool_warned=yes ;;
4762 esac
4763     AS=$ac_ct_AS
4764   fi
4765 else
4766   AS="$ac_cv_prog_AS"
4767 fi
4768
4769   if test -n "$ac_tool_prefix"; then
4770   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4771 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4774 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4775   echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777   if test -n "$OBJDUMP"; then
4778   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4779 else
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783   IFS=$as_save_IFS
4784   test -z "$as_dir" && as_dir=.
4785   for ac_exec_ext in '' $ac_executable_extensions; do
4786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789     break 2
4790   fi
4791 done
4792 done
4793 IFS=$as_save_IFS
4794
4795 fi
4796 fi
4797 OBJDUMP=$ac_cv_prog_OBJDUMP
4798 if test -n "$OBJDUMP"; then
4799   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4800 echo "${ECHO_T}$OBJDUMP" >&6; }
4801 else
4802   { echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6; }
4804 fi
4805
4806
4807 fi
4808 if test -z "$ac_cv_prog_OBJDUMP"; then
4809   ac_ct_OBJDUMP=$OBJDUMP
4810   # Extract the first word of "objdump", so it can be a program name with args.
4811 set dummy objdump; ac_word=$2
4812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4814 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4815   echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817   if test -n "$ac_ct_OBJDUMP"; then
4818   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823   IFS=$as_save_IFS
4824   test -z "$as_dir" && as_dir=.
4825   for ac_exec_ext in '' $ac_executable_extensions; do
4826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829     break 2
4830   fi
4831 done
4832 done
4833 IFS=$as_save_IFS
4834
4835 fi
4836 fi
4837 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4838 if test -n "$ac_ct_OBJDUMP"; then
4839   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4840 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4841 else
4842   { echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6; }
4844 fi
4845
4846   if test "x$ac_ct_OBJDUMP" = x; then
4847     OBJDUMP="false"
4848   else
4849     case $cross_compiling:$ac_tool_warned in
4850 yes:)
4851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4852 whose name does not start with the host triplet.  If you think this
4853 configuration is useful to you, please write to autoconf@gnu.org." >&5
4854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4855 whose name does not start with the host triplet.  If you think this
4856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4857 ac_tool_warned=yes ;;
4858 esac
4859     OBJDUMP=$ac_ct_OBJDUMP
4860   fi
4861 else
4862   OBJDUMP="$ac_cv_prog_OBJDUMP"
4863 fi
4864
4865   ;;
4866
4867 esac
4868
4869 need_locks="$enable_libtool_lock"
4870
4871
4872 ac_ext=c
4873 ac_cpp='$CPP $CPPFLAGS'
4874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4877 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4878 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4879 # On Suns, sometimes $CPP names a directory.
4880 if test -n "$CPP" && test -d "$CPP"; then
4881   CPP=
4882 fi
4883 if test -z "$CPP"; then
4884   if test "${ac_cv_prog_CPP+set}" = set; then
4885   echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887       # Double quotes because CPP needs to be expanded
4888     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4889     do
4890       ac_preproc_ok=false
4891 for ac_c_preproc_warn_flag in '' yes
4892 do
4893   # Use a header file that comes with gcc, so configuring glibc
4894   # with a fresh cross-compiler works.
4895   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4896   # <limits.h> exists even on freestanding compilers.
4897   # On the NeXT, cc -E runs the code through the compiler's parser,
4898   # not just through cpp. "Syntax error" is here to catch this case.
4899   cat >conftest.$ac_ext <<_ACEOF
4900 /* confdefs.h.  */
4901 _ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h.  */
4905 #ifdef __STDC__
4906 # include <limits.h>
4907 #else