Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
take care of new dll import and dll export in Windows
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.137 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.1.1-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.1.1-cvs'
733 PACKAGE_STRING='simgrid 3.1.1-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 HAVE_SDP_TRUE
885 HAVE_SDP_FALSE
886 SIMGRID_DEP
887 GRAS_DEP
888 GRAMINE_MODE_TRUE
889 GRAMINE_MODE_FALSE
890 MAINTAINER_MODE_TRUE
891 MAINTAINER_MODE_FALSE
892 MAINT
893 LD_DYNAMIC_FLAGS
894 abs_builddir
895 abs_srcdir
896 abs_top_builddir
897 abs_top_srcdir
898 BASH
899 WARNING
900 LEX
901 LEX_OUTPUT_ROOT
902 LEXLIB
903 FLEXML
904 HAVE_FLEXML_TRUE
905 HAVE_FLEXML_FALSE
906 DOXYGEN
907 ADDR2LINE
908 ac_configure_args
909 MD5SUM
910 build_id
911 LTLIBOBJS'
912 ac_subst_files=''
913       ac_precious_vars='build_alias
914 host_alias
915 target_alias
916 CC
917 CFLAGS
918 LDFLAGS
919 LIBS
920 CPPFLAGS
921 CPP
922 CXX
923 CXXFLAGS
924 CCC
925 CXXCPP
926 F77
927 FFLAGS'
928
929
930 # Initialize some variables set by options.
931 ac_init_help=
932 ac_init_version=false
933 # The variables have the same names as the options, with
934 # dashes changed to underlines.
935 cache_file=/dev/null
936 exec_prefix=NONE
937 no_create=
938 no_recursion=
939 prefix=NONE
940 program_prefix=NONE
941 program_suffix=NONE
942 program_transform_name=s,x,x,
943 silent=
944 site=
945 srcdir=
946 verbose=
947 x_includes=NONE
948 x_libraries=NONE
949
950 # Installation directory options.
951 # These are left unexpanded so users can "make install exec_prefix=/foo"
952 # and all the variables that are supposed to be based on exec_prefix
953 # by default will actually change.
954 # Use braces instead of parens because sh, perl, etc. also accept them.
955 # (The list follows the same order as the GNU Coding Standards.)
956 bindir='${exec_prefix}/bin'
957 sbindir='${exec_prefix}/sbin'
958 libexecdir='${exec_prefix}/libexec'
959 datarootdir='${prefix}/share'
960 datadir='${datarootdir}'
961 sysconfdir='${prefix}/etc'
962 sharedstatedir='${prefix}/com'
963 localstatedir='${prefix}/var'
964 includedir='${prefix}/include'
965 oldincludedir='/usr/include'
966 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
967 infodir='${datarootdir}/info'
968 htmldir='${docdir}'
969 dvidir='${docdir}'
970 pdfdir='${docdir}'
971 psdir='${docdir}'
972 libdir='${exec_prefix}/lib'
973 localedir='${datarootdir}/locale'
974 mandir='${datarootdir}/man'
975
976 ac_prev=
977 ac_dashdash=
978 for ac_option
979 do
980   # If the previous option needs an argument, assign it.
981   if test -n "$ac_prev"; then
982     eval $ac_prev=\$ac_option
983     ac_prev=
984     continue
985   fi
986
987   case $ac_option in
988   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989   *)    ac_optarg=yes ;;
990   esac
991
992   # Accept the important Cygnus configure options, so we can diagnose typos.
993
994   case $ac_dashdash$ac_option in
995   --)
996     ac_dashdash=yes ;;
997
998   -bindir | --bindir | --bindi | --bind | --bin | --bi)
999     ac_prev=bindir ;;
1000   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001     bindir=$ac_optarg ;;
1002
1003   -build | --build | --buil | --bui | --bu)
1004     ac_prev=build_alias ;;
1005   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1006     build_alias=$ac_optarg ;;
1007
1008   -cache-file | --cache-file | --cache-fil | --cache-fi \
1009   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1010     ac_prev=cache_file ;;
1011   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1012   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1013     cache_file=$ac_optarg ;;
1014
1015   --config-cache | -C)
1016     cache_file=config.cache ;;
1017
1018   -datadir | --datadir | --datadi | --datad)
1019     ac_prev=datadir ;;
1020   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1021     datadir=$ac_optarg ;;
1022
1023   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1024   | --dataroo | --dataro | --datar)
1025     ac_prev=datarootdir ;;
1026   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1027   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1028     datarootdir=$ac_optarg ;;
1029
1030   -disable-* | --disable-*)
1031     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1032     # Reject names that are not valid shell variable names.
1033     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035    { (exit 1); exit 1; }; }
1036     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037     eval enable_$ac_feature=no ;;
1038
1039   -docdir | --docdir | --docdi | --doc | --do)
1040     ac_prev=docdir ;;
1041   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042     docdir=$ac_optarg ;;
1043
1044   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045     ac_prev=dvidir ;;
1046   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047     dvidir=$ac_optarg ;;
1048
1049   -enable-* | --enable-*)
1050     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051     # Reject names that are not valid shell variable names.
1052     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1053       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1054    { (exit 1); exit 1; }; }
1055     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1056     eval enable_$ac_feature=\$ac_optarg ;;
1057
1058   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1059   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1060   | --exec | --exe | --ex)
1061     ac_prev=exec_prefix ;;
1062   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1063   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1064   | --exec=* | --exe=* | --ex=*)
1065     exec_prefix=$ac_optarg ;;
1066
1067   -gas | --gas | --ga | --g)
1068     # Obsolete; use --with-gas.
1069     with_gas=yes ;;
1070
1071   -help | --help | --hel | --he | -h)
1072     ac_init_help=long ;;
1073   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1074     ac_init_help=recursive ;;
1075   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1076     ac_init_help=short ;;
1077
1078   -host | --host | --hos | --ho)
1079     ac_prev=host_alias ;;
1080   -host=* | --host=* | --hos=* | --ho=*)
1081     host_alias=$ac_optarg ;;
1082
1083   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1084     ac_prev=htmldir ;;
1085   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1086   | --ht=*)
1087     htmldir=$ac_optarg ;;
1088
1089   -includedir | --includedir | --includedi | --included | --include \
1090   | --includ | --inclu | --incl | --inc)
1091     ac_prev=includedir ;;
1092   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1093   | --includ=* | --inclu=* | --incl=* | --inc=*)
1094     includedir=$ac_optarg ;;
1095
1096   -infodir | --infodir | --infodi | --infod | --info | --inf)
1097     ac_prev=infodir ;;
1098   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1099     infodir=$ac_optarg ;;
1100
1101   -libdir | --libdir | --libdi | --libd)
1102     ac_prev=libdir ;;
1103   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1104     libdir=$ac_optarg ;;
1105
1106   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1107   | --libexe | --libex | --libe)
1108     ac_prev=libexecdir ;;
1109   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1110   | --libexe=* | --libex=* | --libe=*)
1111     libexecdir=$ac_optarg ;;
1112
1113   -localedir | --localedir | --localedi | --localed | --locale)
1114     ac_prev=localedir ;;
1115   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1116     localedir=$ac_optarg ;;
1117
1118   -localstatedir | --localstatedir | --localstatedi | --localstated \
1119   | --localstate | --localstat | --localsta | --localst | --locals)
1120     ac_prev=localstatedir ;;
1121   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1122   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1123     localstatedir=$ac_optarg ;;
1124
1125   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1126     ac_prev=mandir ;;
1127   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1128     mandir=$ac_optarg ;;
1129
1130   -nfp | --nfp | --nf)
1131     # Obsolete; use --without-fp.
1132     with_fp=no ;;
1133
1134   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1135   | --no-cr | --no-c | -n)
1136     no_create=yes ;;
1137
1138   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1139   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1140     no_recursion=yes ;;
1141
1142   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1143   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1144   | --oldin | --oldi | --old | --ol | --o)
1145     ac_prev=oldincludedir ;;
1146   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1147   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1148   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1149     oldincludedir=$ac_optarg ;;
1150
1151   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1152     ac_prev=prefix ;;
1153   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1154     prefix=$ac_optarg ;;
1155
1156   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1157   | --program-pre | --program-pr | --program-p)
1158     ac_prev=program_prefix ;;
1159   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1160   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1161     program_prefix=$ac_optarg ;;
1162
1163   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1164   | --program-suf | --program-su | --program-s)
1165     ac_prev=program_suffix ;;
1166   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1167   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1168     program_suffix=$ac_optarg ;;
1169
1170   -program-transform-name | --program-transform-name \
1171   | --program-transform-nam | --program-transform-na \
1172   | --program-transform-n | --program-transform- \
1173   | --program-transform | --program-transfor \
1174   | --program-transfo | --program-transf \
1175   | --program-trans | --program-tran \
1176   | --progr-tra | --program-tr | --program-t)
1177     ac_prev=program_transform_name ;;
1178   -program-transform-name=* | --program-transform-name=* \
1179   | --program-transform-nam=* | --program-transform-na=* \
1180   | --program-transform-n=* | --program-transform-=* \
1181   | --program-transform=* | --program-transfor=* \
1182   | --program-transfo=* | --program-transf=* \
1183   | --program-trans=* | --program-tran=* \
1184   | --progr-tra=* | --program-tr=* | --program-t=*)
1185     program_transform_name=$ac_optarg ;;
1186
1187   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1188     ac_prev=pdfdir ;;
1189   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1190     pdfdir=$ac_optarg ;;
1191
1192   -psdir | --psdir | --psdi | --psd | --ps)
1193     ac_prev=psdir ;;
1194   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1195     psdir=$ac_optarg ;;
1196
1197   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1198   | -silent | --silent | --silen | --sile | --sil)
1199     silent=yes ;;
1200
1201   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1202     ac_prev=sbindir ;;
1203   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1204   | --sbi=* | --sb=*)
1205     sbindir=$ac_optarg ;;
1206
1207   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1208   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1209   | --sharedst | --shareds | --shared | --share | --shar \
1210   | --sha | --sh)
1211     ac_prev=sharedstatedir ;;
1212   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1213   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1214   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1215   | --sha=* | --sh=*)
1216     sharedstatedir=$ac_optarg ;;
1217
1218   -site | --site | --sit)
1219     ac_prev=site ;;
1220   -site=* | --site=* | --sit=*)
1221     site=$ac_optarg ;;
1222
1223   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1224     ac_prev=srcdir ;;
1225   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1226     srcdir=$ac_optarg ;;
1227
1228   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1229   | --syscon | --sysco | --sysc | --sys | --sy)
1230     ac_prev=sysconfdir ;;
1231   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1232   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1233     sysconfdir=$ac_optarg ;;
1234
1235   -target | --target | --targe | --targ | --tar | --ta | --t)
1236     ac_prev=target_alias ;;
1237   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1238     target_alias=$ac_optarg ;;
1239
1240   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1241     verbose=yes ;;
1242
1243   -version | --version | --versio | --versi | --vers | -V)
1244     ac_init_version=: ;;
1245
1246   -with-* | --with-*)
1247     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1248     # Reject names that are not valid shell variable names.
1249     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250       { echo "$as_me: error: invalid package name: $ac_package" >&2
1251    { (exit 1); exit 1; }; }
1252     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1253     eval with_$ac_package=\$ac_optarg ;;
1254
1255   -without-* | --without-*)
1256     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257     # Reject names that are not valid shell variable names.
1258     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259       { echo "$as_me: error: invalid package name: $ac_package" >&2
1260    { (exit 1); exit 1; }; }
1261     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1262     eval with_$ac_package=no ;;
1263
1264   --x)
1265     # Obsolete; use --with-x.
1266     with_x=yes ;;
1267
1268   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269   | --x-incl | --x-inc | --x-in | --x-i)
1270     ac_prev=x_includes ;;
1271   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273     x_includes=$ac_optarg ;;
1274
1275   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277     ac_prev=x_libraries ;;
1278   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280     x_libraries=$ac_optarg ;;
1281
1282   -*) { echo "$as_me: error: unrecognized option: $ac_option
1283 Try \`$0 --help' for more information." >&2
1284    { (exit 1); exit 1; }; }
1285     ;;
1286
1287   *=*)
1288     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1291       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1292    { (exit 1); exit 1; }; }
1293     eval $ac_envvar=\$ac_optarg
1294     export $ac_envvar ;;
1295
1296   *)
1297     # FIXME: should be removed in autoconf 3.0.
1298     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1302     ;;
1303
1304   esac
1305 done
1306
1307 if test -n "$ac_prev"; then
1308   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309   { echo "$as_me: error: missing argument to $ac_option" >&2
1310    { (exit 1); exit 1; }; }
1311 fi
1312
1313 # Be sure to have absolute directory names.
1314 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315                 datadir sysconfdir sharedstatedir localstatedir includedir \
1316                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317                 libdir localedir mandir
1318 do
1319   eval ac_val=\$$ac_var
1320   case $ac_val in
1321     [\\/$]* | ?:[\\/]* )  continue;;
1322     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323   esac
1324   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1325    { (exit 1); exit 1; }; }
1326 done
1327
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1331 build=$build_alias
1332 host=$host_alias
1333 target=$target_alias
1334
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337   if test "x$build_alias" = x; then
1338     cross_compiling=maybe
1339     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1340     If a cross compiler is detected then cross compile mode will be used." >&2
1341   elif test "x$build_alias" != "x$host_alias"; then
1342     cross_compiling=yes
1343   fi
1344 fi
1345
1346 ac_tool_prefix=
1347 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348
1349 test "$silent" = yes && exec 6>/dev/null
1350
1351
1352 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di=`ls -di .` &&
1354 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355   { echo "$as_me: error: Working directory cannot be determined" >&2
1356    { (exit 1); exit 1; }; }
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358   { echo "$as_me: error: pwd does not report name of working directory" >&2
1359    { (exit 1); exit 1; }; }
1360
1361
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364   ac_srcdir_defaulted=yes
1365   # Try the directory containing this script, then the parent directory.
1366   ac_confdir=`$as_dirname -- "$0" ||
1367 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368          X"$0" : 'X\(//\)[^/]' \| \
1369          X"$0" : 'X\(//\)$' \| \
1370          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1371 echo X"$0" |
1372     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373             s//\1/
1374             q
1375           }
1376           /^X\(\/\/\)[^/].*/{
1377             s//\1/
1378             q
1379           }
1380           /^X\(\/\/\)$/{
1381             s//\1/
1382             q
1383           }
1384           /^X\(\/\).*/{
1385             s//\1/
1386             q
1387           }
1388           s/.*/./; q'`
1389   srcdir=$ac_confdir
1390   if test ! -r "$srcdir/$ac_unique_file"; then
1391     srcdir=..
1392   fi
1393 else
1394   ac_srcdir_defaulted=no
1395 fi
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1399    { (exit 1); exit 1; }; }
1400 fi
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 ac_abs_confdir=`(
1403         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1404    { (exit 1); exit 1; }; }
1405         pwd)`
1406 # When building in place, set srcdir=.
1407 if test "$ac_abs_confdir" = "$ac_pwd"; then
1408   srcdir=.
1409 fi
1410 # Remove unnecessary trailing slashes from srcdir.
1411 # Double slashes in file names in object file debugging info
1412 # mess up M-x gdb in Emacs.
1413 case $srcdir in
1414 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 esac
1416 for ac_var in $ac_precious_vars; do
1417   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418   eval ac_env_${ac_var}_value=\$${ac_var}
1419   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421 done
1422
1423 #
1424 # Report the --help message.
1425 #
1426 if test "$ac_init_help" = "long"; then
1427   # Omit some internal or obsolete options to make the list less imposing.
1428   # This message is too long to be a string in the A/UX 3.1 sh.
1429   cat <<_ACEOF
1430 \`configure' configures simgrid 3.1.1-cvs to adapt to many kinds of systems.
1431
1432 Usage: $0 [OPTION]... [VAR=VALUE]...
1433
1434 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435 VAR=VALUE.  See below for descriptions of some of the useful variables.
1436
1437 Defaults for the options are specified in brackets.
1438
1439 Configuration:
1440   -h, --help              display this help and exit
1441       --help=short        display options specific to this package
1442       --help=recursive    display the short help of all the included packages
1443   -V, --version           display version information and exit
1444   -q, --quiet, --silent   do not print \`checking...' messages
1445       --cache-file=FILE   cache test results in FILE [disabled]
1446   -C, --config-cache      alias for \`--cache-file=config.cache'
1447   -n, --no-create         do not create output files
1448       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1449
1450 Installation directories:
1451   --prefix=PREFIX         install architecture-independent files in PREFIX
1452                           [$ac_default_prefix]
1453   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1454                           [PREFIX]
1455
1456 By default, \`make install' will install all the files in
1457 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1458 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459 for instance \`--prefix=\$HOME'.
1460
1461 For better control, use the options below.
1462
1463 Fine tuning of the installation directories:
1464   --bindir=DIR           user executables [EPREFIX/bin]
1465   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1466   --libexecdir=DIR       program executables [EPREFIX/libexec]
1467   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1468   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1469   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1470   --libdir=DIR           object code libraries [EPREFIX/lib]
1471   --includedir=DIR       C header files [PREFIX/include]
1472   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1473   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1474   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1475   --infodir=DIR          info documentation [DATAROOTDIR/info]
1476   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1477   --mandir=DIR           man documentation [DATAROOTDIR/man]
1478   --docdir=DIR           documentation root [DATAROOTDIR/doc/simgrid]
1479   --htmldir=DIR          html documentation [DOCDIR]
1480   --dvidir=DIR           dvi documentation [DOCDIR]
1481   --pdfdir=DIR           pdf documentation [DOCDIR]
1482   --psdir=DIR            ps documentation [DOCDIR]
1483 _ACEOF
1484
1485   cat <<\_ACEOF
1486
1487 Program names:
1488   --program-prefix=PREFIX            prepend PREFIX to installed program names
1489   --program-suffix=SUFFIX            append SUFFIX to installed program names
1490   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1491
1492 System types:
1493   --build=BUILD     configure for building on BUILD [guessed]
1494   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1495   --target=TARGET   configure for building compilers for TARGET [HOST]
1496 _ACEOF
1497 fi
1498
1499 if test -n "$ac_init_help"; then
1500   case $ac_init_help in
1501      short | recursive ) echo "Configuration of simgrid 3.1.1-cvs:";;
1502    esac
1503   cat <<\_ACEOF
1504
1505 Optional Features:
1506   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1507   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1508   --enable-shared[=PKGS]  build shared libraries [default=yes]
1509   --enable-static[=PKGS]  build static libraries [default=yes]
1510   --enable-fast-install[=PKGS]
1511                           optimize for fast installation [default=yes]
1512   --disable-dependency-tracking  speeds up one-time build
1513   --enable-dependency-tracking   do not reject slow dependency extractors
1514   --disable-libtool-lock  avoid locking (might break parallel builds)
1515   --enable-maintainer-mode  enable make rules and dependencies not useful
1516                           (and sometimes confusing) to the casual installer
1517   --enable-compile-warnings
1518                           use compiler warnings (default=no, unless in
1519                           maintainer mode)
1520   --disable-compile-optimizations
1521                           use compiler optimizations (default=yes, unless if
1522                           CFLAGS is explicitly set)
1523
1524 Optional Packages:
1525   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1526   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1527   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1528   --with-pic              try to use only PIC/non-PIC objects [default=use
1529                           both]
1530   --with-tags[=TAGS]      include additional configurations [automatic]
1531   --with-pthread   Use pthread instead of ucontext.
1532   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1533
1534 Some influential environment variables:
1535   CC          C compiler command
1536   CFLAGS      C compiler flags
1537   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1538               nonstandard directory <lib dir>
1539   LIBS        libraries to pass to the linker, e.g. -l<library>
1540   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1541               you have headers in a nonstandard directory <include dir>
1542   CPP         C preprocessor
1543   CXX         C++ compiler command
1544   CXXFLAGS    C++ compiler flags
1545   CXXCPP      C++ preprocessor
1546   F77         Fortran 77 compiler command
1547   FFLAGS      Fortran 77 compiler flags
1548
1549 Use these variables to override the choices made by `configure' or to help
1550 it to find libraries and programs with nonstandard names/locations.
1551
1552 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1553 _ACEOF
1554 ac_status=$?
1555 fi
1556
1557 if test "$ac_init_help" = "recursive"; then
1558   # If there are subdirs, report their specific --help.
1559   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560     test -d "$ac_dir" || continue
1561     ac_builddir=.
1562
1563 case "$ac_dir" in
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *)
1566   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1567   # A ".." for each directory in $ac_dir_suffix.
1568   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1569   case $ac_top_builddir_sub in
1570   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572   esac ;;
1573 esac
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1578
1579 case $srcdir in
1580   .)  # We are building in place.
1581     ac_srcdir=.
1582     ac_top_srcdir=$ac_top_builddir_sub
1583     ac_abs_top_srcdir=$ac_pwd ;;
1584   [\\/]* | ?:[\\/]* )  # Absolute name.
1585     ac_srcdir=$srcdir$ac_dir_suffix;
1586     ac_top_srcdir=$srcdir
1587     ac_abs_top_srcdir=$srcdir ;;
1588   *) # Relative name.
1589     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590     ac_top_srcdir=$ac_top_build_prefix$srcdir
1591     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 esac
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594
1595     cd "$ac_dir" || { ac_status=$?; continue; }
1596     # Check for guested configure.
1597     if test -f "$ac_srcdir/configure.gnu"; then
1598       echo &&
1599       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600     elif test -f "$ac_srcdir/configure"; then
1601       echo &&
1602       $SHELL "$ac_srcdir/configure" --help=recursive
1603     else
1604       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605     fi || ac_status=$?
1606     cd "$ac_pwd" || { ac_status=$?; break; }
1607   done
1608 fi
1609
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1612   cat <<\_ACEOF
1613 simgrid configure 3.1.1-cvs
1614 generated by GNU Autoconf 2.61
1615
1616 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1617 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1618 This configure script is free software; the Free Software Foundation
1619 gives unlimited permission to copy, distribute and modify it.
1620 _ACEOF
1621   exit
1622 fi
1623 cat >config.log <<_ACEOF
1624 This file contains any messages produced by compilers while
1625 running configure, to aid debugging if configure makes a mistake.
1626
1627 It was created by simgrid $as_me 3.1.1-cvs, which was
1628 generated by GNU Autoconf 2.61.  Invocation command line was
1629
1630   $ $0 $@
1631
1632 _ACEOF
1633 exec 5>>config.log
1634 {
1635 cat <<_ASUNAME
1636 ## --------- ##
1637 ## Platform. ##
1638 ## --------- ##
1639
1640 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1641 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1642 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1643 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1644 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1645
1646 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1647 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1648
1649 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1650 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1651 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1652 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1653 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1654 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1655 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1656
1657 _ASUNAME
1658
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 for as_dir in $PATH
1661 do
1662   IFS=$as_save_IFS
1663   test -z "$as_dir" && as_dir=.
1664   echo "PATH: $as_dir"
1665 done
1666 IFS=$as_save_IFS
1667
1668 } >&5
1669
1670 cat >&5 <<_ACEOF
1671
1672
1673 ## ----------- ##
1674 ## Core tests. ##
1675 ## ----------- ##
1676
1677 _ACEOF
1678
1679
1680 # Keep a trace of the command line.
1681 # Strip out --no-create and --no-recursion so they do not pile up.
1682 # Strip out --silent because we don't want to record it for future runs.
1683 # Also quote any args containing shell meta-characters.
1684 # Make two passes to allow for proper duplicate-argument suppression.
1685 ac_configure_args=
1686 ac_configure_args0=
1687 ac_configure_args1=
1688 ac_must_keep_next=false
1689 for ac_pass in 1 2
1690 do
1691   for ac_arg
1692   do
1693     case $ac_arg in
1694     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1695     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1696     | -silent | --silent | --silen | --sile | --sil)
1697       continue ;;
1698     *\'*)
1699       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1700     esac
1701     case $ac_pass in
1702     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1703     2)
1704       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1705       if test $ac_must_keep_next = true; then
1706         ac_must_keep_next=false # Got value, back to normal.
1707       else
1708         case $ac_arg in
1709           *=* | --config-cache | -C | -disable-* | --disable-* \
1710           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1711           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1712           | -with-* | --with-* | -without-* | --without-* | --x)
1713             case "$ac_configure_args0 " in
1714               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1715             esac
1716             ;;
1717           -* ) ac_must_keep_next=true ;;
1718         esac
1719       fi
1720       ac_configure_args="$ac_configure_args '$ac_arg'"
1721       ;;
1722     esac
1723   done
1724 done
1725 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1726 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1727
1728 # When interrupted or exit'd, cleanup temporary files, and complete
1729 # config.log.  We remove comments because anyway the quotes in there
1730 # would cause problems or look ugly.
1731 # WARNING: Use '\'' to represent an apostrophe within the trap.
1732 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1733 trap 'exit_status=$?
1734   # Save into config.log some information that might help in debugging.
1735   {
1736     echo
1737
1738     cat <<\_ASBOX
1739 ## ---------------- ##
1740 ## Cache variables. ##
1741 ## ---------------- ##
1742 _ASBOX
1743     echo
1744     # The following way of writing the cache mishandles newlines in values,
1745 (
1746   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1747     eval ac_val=\$$ac_var
1748     case $ac_val in #(
1749     *${as_nl}*)
1750       case $ac_var in #(
1751       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1752 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1753       esac
1754       case $ac_var in #(
1755       _ | IFS | as_nl) ;; #(
1756       *) $as_unset $ac_var ;;
1757       esac ;;
1758     esac
1759   done
1760   (set) 2>&1 |
1761     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1762     *${as_nl}ac_space=\ *)
1763       sed -n \
1764         "s/'\''/'\''\\\\'\'''\''/g;
1765           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1766       ;; #(
1767     *)
1768       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1769       ;;
1770     esac |
1771     sort
1772 )
1773     echo
1774
1775     cat <<\_ASBOX
1776 ## ----------------- ##
1777 ## Output variables. ##
1778 ## ----------------- ##
1779 _ASBOX
1780     echo
1781     for ac_var in $ac_subst_vars
1782     do
1783       eval ac_val=\$$ac_var
1784       case $ac_val in
1785       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1786       esac
1787       echo "$ac_var='\''$ac_val'\''"
1788     done | sort
1789     echo
1790
1791     if test -n "$ac_subst_files"; then
1792       cat <<\_ASBOX
1793 ## ------------------- ##
1794 ## File substitutions. ##
1795 ## ------------------- ##
1796 _ASBOX
1797       echo
1798       for ac_var in $ac_subst_files
1799       do
1800         eval ac_val=\$$ac_var
1801         case $ac_val in
1802         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803         esac
1804         echo "$ac_var='\''$ac_val'\''"
1805       done | sort
1806       echo
1807     fi
1808
1809     if test -s confdefs.h; then
1810       cat <<\_ASBOX
1811 ## ----------- ##
1812 ## confdefs.h. ##
1813 ## ----------- ##
1814 _ASBOX
1815       echo
1816       cat confdefs.h
1817       echo
1818     fi
1819     test "$ac_signal" != 0 &&
1820       echo "$as_me: caught signal $ac_signal"
1821     echo "$as_me: exit $exit_status"
1822   } >&5
1823   rm -f core *.core core.conftest.* &&
1824     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1825     exit $exit_status
1826 ' 0
1827 for ac_signal in 1 2 13 15; do
1828   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1829 done
1830 ac_signal=0
1831
1832 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1833 rm -f -r conftest* confdefs.h
1834
1835 # Predefined preprocessor variables.
1836
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_NAME "$PACKAGE_NAME"
1839 _ACEOF
1840
1841
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1844 _ACEOF
1845
1846
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1849 _ACEOF
1850
1851
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_STRING "$PACKAGE_STRING"
1854 _ACEOF
1855
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1859 _ACEOF
1860
1861
1862 # Let the site file select an alternate cache file if it wants to.
1863 # Prefer explicitly selected file to automatically selected ones.
1864 if test -n "$CONFIG_SITE"; then
1865   set x "$CONFIG_SITE"
1866 elif test "x$prefix" != xNONE; then
1867   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1868 else
1869   set x "$ac_default_prefix/share/config.site" \
1870         "$ac_default_prefix/etc/config.site"
1871 fi
1872 shift
1873 for ac_site_file
1874 do
1875   if test -r "$ac_site_file"; then
1876     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1877 echo "$as_me: loading site script $ac_site_file" >&6;}
1878     sed 's/^/| /' "$ac_site_file" >&5
1879     . "$ac_site_file"
1880   fi
1881 done
1882
1883 if test -r "$cache_file"; then
1884   # Some versions of bash will fail to source /dev/null (special
1885   # files actually), so we avoid doing that.
1886   if test -f "$cache_file"; then
1887     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1888 echo "$as_me: loading cache $cache_file" >&6;}
1889     case $cache_file in
1890       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1891       *)                      . "./$cache_file";;
1892     esac
1893   fi
1894 else
1895   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1896 echo "$as_me: creating cache $cache_file" >&6;}
1897   >$cache_file
1898 fi
1899
1900 # Check that the precious variables saved in the cache have kept the same
1901 # value.
1902 ac_cache_corrupted=false
1903 for ac_var in $ac_precious_vars; do
1904   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1905   eval ac_new_set=\$ac_env_${ac_var}_set
1906   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1907   eval ac_new_val=\$ac_env_${ac_var}_value
1908   case $ac_old_set,$ac_new_set in
1909     set,)
1910       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1911 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1912       ac_cache_corrupted=: ;;
1913     ,set)
1914       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1915 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1916       ac_cache_corrupted=: ;;
1917     ,);;
1918     *)
1919       if test "x$ac_old_val" != "x$ac_new_val"; then
1920         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1921 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1922         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1923 echo "$as_me:   former value:  $ac_old_val" >&2;}
1924         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1925 echo "$as_me:   current value: $ac_new_val" >&2;}
1926         ac_cache_corrupted=:
1927       fi;;
1928   esac
1929   # Pass precious variables to config.status.
1930   if test "$ac_new_set" = set; then
1931     case $ac_new_val in
1932     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1933     *) ac_arg=$ac_var=$ac_new_val ;;
1934     esac
1935     case " $ac_configure_args " in
1936       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1937       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1938     esac
1939   fi
1940 done
1941 if $ac_cache_corrupted; then
1942   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1943 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1944   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1945 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1946    { (exit 1); exit 1; }; }
1947 fi
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973 ac_ext=c
1974 ac_cpp='$CPP $CPPFLAGS'
1975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978
1979
1980
1981 ac_config_headers="$ac_config_headers src/gras_config.h"
1982
1983 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1984
1985
1986 ac_aux_dir=
1987 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1988   if test -f "$ac_dir/install-sh"; then
1989     ac_aux_dir=$ac_dir
1990     ac_install_sh="$ac_aux_dir/install-sh -c"
1991     break
1992   elif test -f "$ac_dir/install.sh"; then
1993     ac_aux_dir=$ac_dir
1994     ac_install_sh="$ac_aux_dir/install.sh -c"
1995     break
1996   elif test -f "$ac_dir/shtool"; then
1997     ac_aux_dir=$ac_dir
1998     ac_install_sh="$ac_aux_dir/shtool install -c"
1999     break
2000   fi
2001 done
2002 if test -z "$ac_aux_dir"; then
2003   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2004 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2005    { (exit 1); exit 1; }; }
2006 fi
2007
2008 # These three variables are undocumented and unsupported,
2009 # and are intended to be withdrawn in a future Autoconf release.
2010 # They can cause serious problems if a builder's source tree is in a directory
2011 # whose full name contains unusual characters.
2012 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2013 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2014 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2015
2016
2017 # Make sure we can run config.sub.
2018 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2019   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2020 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2021    { (exit 1); exit 1; }; }
2022
2023 { echo "$as_me:$LINENO: checking build system type" >&5
2024 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2025 if test "${ac_cv_build+set}" = set; then
2026   echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028   ac_build_alias=$build_alias
2029 test "x$ac_build_alias" = x &&
2030   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2031 test "x$ac_build_alias" = x &&
2032   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2033 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2034    { (exit 1); exit 1; }; }
2035 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2036   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2037 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2038    { (exit 1); exit 1; }; }
2039
2040 fi
2041 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2042 echo "${ECHO_T}$ac_cv_build" >&6; }
2043 case $ac_cv_build in
2044 *-*-*) ;;
2045 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2046 echo "$as_me: error: invalid value of canonical build" >&2;}
2047    { (exit 1); exit 1; }; };;
2048 esac
2049 build=$ac_cv_build
2050 ac_save_IFS=$IFS; IFS='-'
2051 set x $ac_cv_build
2052 shift
2053 build_cpu=$1
2054 build_vendor=$2
2055 shift; shift
2056 # Remember, the first character of IFS is used to create $*,
2057 # except with old shells:
2058 build_os=$*
2059 IFS=$ac_save_IFS
2060 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2061
2062
2063 { echo "$as_me:$LINENO: checking host system type" >&5
2064 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2065 if test "${ac_cv_host+set}" = set; then
2066   echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068   if test "x$host_alias" = x; then
2069   ac_cv_host=$ac_cv_build
2070 else
2071   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2072     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2073 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2074    { (exit 1); exit 1; }; }
2075 fi
2076
2077 fi
2078 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2079 echo "${ECHO_T}$ac_cv_host" >&6; }
2080 case $ac_cv_host in
2081 *-*-*) ;;
2082 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2083 echo "$as_me: error: invalid value of canonical host" >&2;}
2084    { (exit 1); exit 1; }; };;
2085 esac
2086 host=$ac_cv_host
2087 ac_save_IFS=$IFS; IFS='-'
2088 set x $ac_cv_host
2089 shift
2090 host_cpu=$1
2091 host_vendor=$2
2092 shift; shift
2093 # Remember, the first character of IFS is used to create $*,
2094 # except with old shells:
2095 host_os=$*
2096 IFS=$ac_save_IFS
2097 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2098
2099
2100 { echo "$as_me:$LINENO: checking target system type" >&5
2101 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2102 if test "${ac_cv_target+set}" = set; then
2103   echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105   if test "x$target_alias" = x; then
2106   ac_cv_target=$ac_cv_host
2107 else
2108   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2109     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2110 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2111    { (exit 1); exit 1; }; }
2112 fi
2113
2114 fi
2115 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2116 echo "${ECHO_T}$ac_cv_target" >&6; }
2117 case $ac_cv_target in
2118 *-*-*) ;;
2119 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2120 echo "$as_me: error: invalid value of canonical target" >&2;}
2121    { (exit 1); exit 1; }; };;
2122 esac
2123 target=$ac_cv_target
2124 ac_save_IFS=$IFS; IFS='-'
2125 set x $ac_cv_target
2126 shift
2127 target_cpu=$1
2128 target_vendor=$2
2129 shift; shift
2130 # Remember, the first character of IFS is used to create $*,
2131 # except with old shells:
2132 target_os=$*
2133 IFS=$ac_save_IFS
2134 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2135
2136
2137 # The aliases save the names the user supplied, while $host etc.
2138 # will get canonicalized.
2139 test -n "$target_alias" &&
2140   test "$program_prefix$program_suffix$program_transform_name" = \
2141     NONENONEs,x,x, &&
2142   program_prefix=${target_alias}-
2143 ac_ext=c
2144 ac_cpp='$CPP $CPPFLAGS'
2145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2148
2149
2150 am__api_version="1.9"
2151 # Find a good install program.  We prefer a C program (faster),
2152 # so one script is as good as another.  But avoid the broken or
2153 # incompatible versions:
2154 # SysV /etc/install, /usr/sbin/install
2155 # SunOS /usr/etc/install
2156 # IRIX /sbin/install
2157 # AIX /bin/install
2158 # AmigaOS /C/install, which installs bootblocks on floppy discs
2159 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2160 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2161 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2162 # OS/2's system install, which has a completely different semantic
2163 # ./install, which can be erroneously created by make from ./install.sh.
2164 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2165 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2166 if test -z "$INSTALL"; then
2167 if test "${ac_cv_path_install+set}" = set; then
2168   echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2172 do
2173   IFS=$as_save_IFS
2174   test -z "$as_dir" && as_dir=.
2175   # Account for people who put trailing slashes in PATH elements.
2176 case $as_dir/ in
2177   ./ | .// | /cC/* | \
2178   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2179   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2180   /usr/ucb/* ) ;;
2181   *)
2182     # OSF1 and SCO ODT 3.0 have their own names for install.
2183     # Don't use installbsd from OSF since it installs stuff as root
2184     # by default.
2185     for ac_prog in ginstall scoinst install; do
2186       for ac_exec_ext in '' $ac_executable_extensions; do
2187         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2188           if test $ac_prog = install &&
2189             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2190             # AIX install.  It has an incompatible calling convention.
2191             :
2192           elif test $ac_prog = install &&
2193             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2194             # program-specific install script used by HP pwplus--don't use.
2195             :
2196           else
2197             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2198             break 3
2199           fi
2200         fi
2201       done
2202     done
2203     ;;
2204 esac
2205 done
2206 IFS=$as_save_IFS
2207
2208
2209 fi
2210   if test "${ac_cv_path_install+set}" = set; then
2211     INSTALL=$ac_cv_path_install
2212   else
2213     # As a last resort, use the slow shell script.  Don't cache a
2214     # value for INSTALL within a source directory, because that will
2215     # break other packages using the cache if that directory is
2216     # removed, or if the value is a relative name.
2217     INSTALL=$ac_install_sh
2218   fi
2219 fi
2220 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2221 echo "${ECHO_T}$INSTALL" >&6; }
2222
2223 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2224 # It thinks the first close brace ends the variable substitution.
2225 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2226
2227 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2228
2229 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2230
2231 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2232 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2233 # Just in case
2234 sleep 1
2235 echo timestamp > conftest.file
2236 # Do `set' in a subshell so we don't clobber the current shell's
2237 # arguments.  Must try -L first in case configure is actually a
2238 # symlink; some systems play weird games with the mod time of symlinks
2239 # (eg FreeBSD returns the mod time of the symlink's containing
2240 # directory).
2241 if (
2242    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2243    if test "$*" = "X"; then
2244       # -L didn't work.
2245       set X `ls -t $srcdir/configure conftest.file`
2246    fi
2247    rm -f conftest.file
2248    if test "$*" != "X $srcdir/configure conftest.file" \
2249       && test "$*" != "X conftest.file $srcdir/configure"; then
2250
2251       # If neither matched, then we have a broken ls.  This can happen
2252       # if, for instance, CONFIG_SHELL is bash and it inherits a
2253       # broken ls alias from the environment.  This has actually
2254       # happened.  Such a system could not be considered "sane".
2255       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2256 alias in your environment" >&5
2257 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2258 alias in your environment" >&2;}
2259    { (exit 1); exit 1; }; }
2260    fi
2261
2262    test "$2" = conftest.file
2263    )
2264 then
2265    # Ok.
2266    :
2267 else
2268    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2269 Check your system clock" >&5
2270 echo "$as_me: error: newly created file is older than distributed files!
2271 Check your system clock" >&2;}
2272    { (exit 1); exit 1; }; }
2273 fi
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2276 test "$program_prefix" != NONE &&
2277   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2278 # Use a double $ so make ignores it.
2279 test "$program_suffix" != NONE &&
2280   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2281 # Double any \ or $.  echo might interpret backslashes.
2282 # By default was `s,x,x', remove it if useless.
2283 cat <<\_ACEOF >conftest.sed
2284 s/[\\$]/&&/g;s/;s,x,x,$//
2285 _ACEOF
2286 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2287 rm -f conftest.sed
2288
2289 # expand $ac_aux_dir to an absolute path
2290 am_aux_dir=`cd $ac_aux_dir && pwd`
2291
2292 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2293 # Use eval to expand $SHELL
2294 if eval "$MISSING --run true"; then
2295   am_missing_run="$MISSING --run "
2296 else
2297   am_missing_run=
2298   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2299 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2300 fi
2301
2302 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2303   # We used to keeping the `.' as first argument, in order to
2304   # allow $(mkdir_p) to be used without argument.  As in
2305   #   $(mkdir_p) $(somedir)
2306   # where $(somedir) is conditionally defined.  However this is wrong
2307   # for two reasons:
2308   #  1. if the package is installed by a user who cannot write `.'
2309   #     make install will fail,
2310   #  2. the above comment should most certainly read
2311   #     $(mkdir_p) $(DESTDIR)$(somedir)
2312   #     so it does not work when $(somedir) is undefined and
2313   #     $(DESTDIR) is not.
2314   #  To support the latter case, we have to write
2315   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2316   #  so the `.' trick is pointless.
2317   mkdir_p='mkdir -p --'
2318 else
2319   # On NextStep and OpenStep, the `mkdir' command does not
2320   # recognize any option.  It will interpret all options as
2321   # directories to create, and then abort because `.' already
2322   # exists.
2323   for d in ./-p ./--version;
2324   do
2325     test -d $d && rmdir $d
2326   done
2327   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2328   if test -f "$ac_aux_dir/mkinstalldirs"; then
2329     mkdir_p='$(mkinstalldirs)'
2330   else
2331     mkdir_p='$(install_sh) -d'
2332   fi
2333 fi
2334
2335 for ac_prog in gawk mawk nawk awk
2336 do
2337   # Extract the first word of "$ac_prog", so it can be a program name with args.
2338 set dummy $ac_prog; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_AWK+set}" = set; then
2342   echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344   if test -n "$AWK"; then
2345   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350   IFS=$as_save_IFS
2351   test -z "$as_dir" && as_dir=.
2352   for ac_exec_ext in '' $ac_executable_extensions; do
2353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354     ac_cv_prog_AWK="$ac_prog"
2355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356     break 2
2357   fi
2358 done
2359 done
2360 IFS=$as_save_IFS
2361
2362 fi
2363 fi
2364 AWK=$ac_cv_prog_AWK
2365 if test -n "$AWK"; then
2366   { echo "$as_me:$LINENO: result: $AWK" >&5
2367 echo "${ECHO_T}$AWK" >&6; }
2368 else
2369   { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2371 fi
2372
2373
2374   test -n "$AWK" && break
2375 done
2376
2377 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2378 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2379 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2380 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2381   echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383   cat >conftest.make <<\_ACEOF
2384 SHELL = /bin/sh
2385 all:
2386         @echo '@@@%%%=$(MAKE)=@@@%%%'
2387 _ACEOF
2388 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2389 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2390   *@@@%%%=?*=@@@%%%*)
2391     eval ac_cv_prog_make_${ac_make}_set=yes;;
2392   *)
2393     eval ac_cv_prog_make_${ac_make}_set=no;;
2394 esac
2395 rm -f conftest.make
2396 fi
2397 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2398   { echo "$as_me:$LINENO: result: yes" >&5
2399 echo "${ECHO_T}yes" >&6; }
2400   SET_MAKE=
2401 else
2402   { echo "$as_me:$LINENO: result: no" >&5
2403 echo "${ECHO_T}no" >&6; }
2404   SET_MAKE="MAKE=${MAKE-make}"
2405 fi
2406
2407 rm -rf .tst 2>/dev/null
2408 mkdir .tst 2>/dev/null
2409 if test -d .tst; then
2410   am__leading_dot=.
2411 else
2412   am__leading_dot=_
2413 fi
2414 rmdir .tst 2>/dev/null
2415
2416 # test to see if srcdir already configured
2417 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2418    test -f $srcdir/config.status; then
2419   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2420 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2421    { (exit 1); exit 1; }; }
2422 fi
2423
2424 # test whether we have cygpath
2425 if test -z "$CYGPATH_W"; then
2426   if (cygpath --version) >/dev/null 2>/dev/null; then
2427     CYGPATH_W='cygpath -w'
2428   else
2429     CYGPATH_W=echo
2430   fi
2431 fi
2432
2433
2434 # Define the identity of the package.
2435  PACKAGE='simgrid'
2436  VERSION='3.1.1-cvs'
2437
2438
2439 cat >>confdefs.h <<_ACEOF
2440 #define PACKAGE "$PACKAGE"
2441 _ACEOF
2442
2443
2444 cat >>confdefs.h <<_ACEOF
2445 #define VERSION "$VERSION"
2446 _ACEOF
2447
2448 # Some tools Automake needs.
2449
2450 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2451
2452
2453 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2454
2455
2456 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2457
2458
2459 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2460
2461
2462 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2463
2464 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2465
2466 # Installed binaries are usually stripped using `strip' when the user
2467 # run `make install-strip'.  However `strip' might not be the right
2468 # tool to use in cross-compilation environments, therefore Automake
2469 # will honor the `STRIP' environment variable to overrule this program.
2470 if test "$cross_compiling" != no; then
2471   if test -n "$ac_tool_prefix"; then
2472   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2473 set dummy ${ac_tool_prefix}strip; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_STRIP+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   if test -n "$STRIP"; then
2480   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485   IFS=$as_save_IFS
2486   test -z "$as_dir" && as_dir=.
2487   for ac_exec_ext in '' $ac_executable_extensions; do
2488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491     break 2
2492   fi
2493 done
2494 done
2495 IFS=$as_save_IFS
2496
2497 fi
2498 fi
2499 STRIP=$ac_cv_prog_STRIP
2500 if test -n "$STRIP"; then
2501   { echo "$as_me:$LINENO: result: $STRIP" >&5
2502 echo "${ECHO_T}$STRIP" >&6; }
2503 else
2504   { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2506 fi
2507
2508
2509 fi
2510 if test -z "$ac_cv_prog_STRIP"; then
2511   ac_ct_STRIP=$STRIP
2512   # Extract the first word of "strip", so it can be a program name with args.
2513 set dummy strip; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   if test -n "$ac_ct_STRIP"; then
2520   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525   IFS=$as_save_IFS
2526   test -z "$as_dir" && as_dir=.
2527   for ac_exec_ext in '' $ac_executable_extensions; do
2528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529     ac_cv_prog_ac_ct_STRIP="strip"
2530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531     break 2
2532   fi
2533 done
2534 done
2535 IFS=$as_save_IFS
2536
2537 fi
2538 fi
2539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2540 if test -n "$ac_ct_STRIP"; then
2541   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2542 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2543 else
2544   { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2546 fi
2547
2548   if test "x$ac_ct_STRIP" = x; then
2549     STRIP=":"
2550   else
2551     case $cross_compiling:$ac_tool_warned in
2552 yes:)
2553 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2554 whose name does not start with the host triplet.  If you think this
2555 configuration is useful to you, please write to autoconf@gnu.org." >&5
2556 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2557 whose name does not start with the host triplet.  If you think this
2558 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2559 ac_tool_warned=yes ;;
2560 esac
2561     STRIP=$ac_ct_STRIP
2562   fi
2563 else
2564   STRIP="$ac_cv_prog_STRIP"
2565 fi
2566
2567 fi
2568 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2569
2570 # We need awk for the "check" target.  The system "awk" is bad on
2571 # some platforms.
2572 # Always define AMTAR for backward compatibility.
2573
2574 AMTAR=${AMTAR-"${am_missing_run}tar"}
2575
2576 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2577
2578
2579
2580
2581
2582
2583 ACLOCAL="$ACLOCAL -I acmacro"
2584
2585
2586 # Check whether --enable-shared was given.
2587 if test "${enable_shared+set}" = set; then
2588   enableval=$enable_shared; p=${PACKAGE-default}
2589     case $enableval in
2590     yes) enable_shared=yes ;;
2591     no) enable_shared=no ;;
2592     *)
2593       enable_shared=no
2594       # Look at the argument we got.  We use all the common list separators.
2595       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2596       for pkg in $enableval; do
2597         IFS="$lt_save_ifs"
2598         if test "X$pkg" = "X$p"; then
2599           enable_shared=yes
2600         fi
2601       done
2602       IFS="$lt_save_ifs"
2603       ;;
2604     esac
2605 else
2606   enable_shared=yes
2607 fi
2608
2609
2610 # Check whether --enable-static was given.
2611 if test "${enable_static+set}" = set; then
2612   enableval=$enable_static; p=${PACKAGE-default}
2613     case $enableval in
2614     yes) enable_static=yes ;;
2615     no) enable_static=no ;;
2616     *)
2617      enable_static=no
2618       # Look at the argument we got.  We use all the common list separators.
2619       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2620       for pkg in $enableval; do
2621         IFS="$lt_save_ifs"
2622         if test "X$pkg" = "X$p"; then
2623           enable_static=yes
2624         fi
2625       done
2626       IFS="$lt_save_ifs"
2627       ;;
2628     esac
2629 else
2630   enable_static=yes
2631 fi
2632
2633
2634 # Check whether --enable-fast-install was given.
2635 if test "${enable_fast_install+set}" = set; then
2636   enableval=$enable_fast_install; p=${PACKAGE-default}
2637     case $enableval in
2638     yes) enable_fast_install=yes ;;
2639     no) enable_fast_install=no ;;
2640     *)
2641       enable_fast_install=no
2642       # Look at the argument we got.  We use all the common list separators.
2643       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2644       for pkg in $enableval; do
2645         IFS="$lt_save_ifs"
2646         if test "X$pkg" = "X$p"; then
2647           enable_fast_install=yes
2648         fi
2649       done
2650       IFS="$lt_save_ifs"
2651       ;;
2652     esac
2653 else
2654   enable_fast_install=yes
2655 fi
2656
2657
2658 DEPDIR="${am__leading_dot}deps"
2659
2660 ac_config_commands="$ac_config_commands depfiles"
2661
2662
2663 am_make=${MAKE-make}
2664 cat > confinc << 'END'
2665 am__doit:
2666         @echo done
2667 .PHONY: am__doit
2668 END
2669 # If we don't find an include directive, just comment out the code.
2670 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2671 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2672 am__include="#"
2673 am__quote=
2674 _am_result=none
2675 # First try GNU make style include.
2676 echo "include confinc" > confmf
2677 # We grep out `Entering directory' and `Leaving directory'
2678 # messages which can occur if `w' ends up in MAKEFLAGS.
2679 # In particular we don't look at `^make:' because GNU make might
2680 # be invoked under some other name (usually "gmake"), in which
2681 # case it prints its new name instead of `make'.
2682 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2683    am__include=include
2684    am__quote=
2685    _am_result=GNU
2686 fi
2687 # Now try BSD make style include.
2688 if test "$am__include" = "#"; then
2689    echo '.include "confinc"' > confmf
2690    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2691       am__include=.include
2692       am__quote="\""
2693       _am_result=BSD
2694    fi
2695 fi
2696
2697
2698 { echo "$as_me:$LINENO: result: $_am_result" >&5
2699 echo "${ECHO_T}$_am_result" >&6; }
2700 rm -f confinc confmf
2701
2702 # Check whether --enable-dependency-tracking was given.
2703 if test "${enable_dependency_tracking+set}" = set; then
2704   enableval=$enable_dependency_tracking;
2705 fi
2706
2707 if test "x$enable_dependency_tracking" != xno; then
2708   am_depcomp="$ac_aux_dir/depcomp"
2709   AMDEPBACKSLASH='\'
2710 fi
2711
2712
2713 if test "x$enable_dependency_tracking" != xno; then
2714   AMDEP_TRUE=
2715   AMDEP_FALSE='#'
2716 else
2717   AMDEP_TRUE='#'
2718   AMDEP_FALSE=
2719 fi
2720
2721
2722
2723 ac_ext=c
2724 ac_cpp='$CPP $CPPFLAGS'
2725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728 if test -n "$ac_tool_prefix"; then
2729   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2730 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2733 if test "${ac_cv_prog_CC+set}" = set; then
2734   echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736   if test -n "$CC"; then
2737   ac_cv_prog_CC="$CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742   IFS=$as_save_IFS
2743   test -z "$as_dir" && as_dir=.
2744   for ac_exec_ext in '' $ac_executable_extensions; do
2745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748     break 2
2749   fi
2750 done
2751 done
2752 IFS=$as_save_IFS
2753
2754 fi
2755 fi
2756 CC=$ac_cv_prog_CC
2757 if test -n "$CC"; then
2758   { echo "$as_me:$LINENO: result: $CC" >&5
2759 echo "${ECHO_T}$CC" >&6; }
2760 else
2761   { echo "$as_me:$LINENO: result: no" >&5
2762 echo "${ECHO_T}no" >&6; }
2763 fi
2764
2765
2766 fi
2767 if test -z "$ac_cv_prog_CC"; then
2768   ac_ct_CC=$CC
2769   # Extract the first word of "gcc", so it can be a program name with args.
2770 set dummy gcc; ac_word=$2
2771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2774   echo $ECHO_N "(cached) $ECHO_C" >&6
2775 else
2776   if test -n "$ac_ct_CC"; then
2777   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782   IFS=$as_save_IFS
2783   test -z "$as_dir" && as_dir=.
2784   for ac_exec_ext in '' $ac_executable_extensions; do
2785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786     ac_cv_prog_ac_ct_CC="gcc"
2787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788     break 2
2789   fi
2790 done
2791 done
2792 IFS=$as_save_IFS
2793
2794 fi
2795 fi
2796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797 if test -n "$ac_ct_CC"; then
2798   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2799 echo "${ECHO_T}$ac_ct_CC" >&6; }
2800 else
2801   { echo "$as_me:$LINENO: result: no" >&5
2802 echo "${ECHO_T}no" >&6; }
2803 fi
2804
2805   if test "x$ac_ct_CC" = x; then
2806     CC=""
2807   else
2808     case $cross_compiling:$ac_tool_warned in
2809 yes:)
2810 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2811 whose name does not start with the host triplet.  If you think this
2812 configuration is useful to you, please write to autoconf@gnu.org." >&5
2813 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2814 whose name does not start with the host triplet.  If you think this
2815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2816 ac_tool_warned=yes ;;
2817 esac
2818     CC=$ac_ct_CC
2819   fi
2820 else
2821   CC="$ac_cv_prog_CC"
2822 fi
2823
2824 if test -z "$CC"; then
2825           if test -n "$ac_tool_prefix"; then
2826     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2827 set dummy ${ac_tool_prefix}cc; ac_word=$2
2828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830 if test "${ac_cv_prog_CC+set}" = set; then
2831   echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833   if test -n "$CC"; then
2834   ac_cv_prog_CC="$CC" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2838 do
2839   IFS=$as_save_IFS
2840   test -z "$as_dir" && as_dir=.
2841   for ac_exec_ext in '' $ac_executable_extensions; do
2842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843     ac_cv_prog_CC="${ac_tool_prefix}cc"
2844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845     break 2
2846   fi
2847 done
2848 done
2849 IFS=$as_save_IFS
2850
2851 fi
2852 fi
2853 CC=$ac_cv_prog_CC
2854 if test -n "$CC"; then
2855   { echo "$as_me:$LINENO: result: $CC" >&5
2856 echo "${ECHO_T}$CC" >&6; }
2857 else
2858   { echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6; }
2860 fi
2861
2862
2863   fi
2864 fi
2865 if test -z "$CC"; then
2866   # Extract the first word of "cc", so it can be a program name with args.
2867 set dummy cc; ac_word=$2
2868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2870 if test "${ac_cv_prog_CC+set}" = set; then
2871   echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873   if test -n "$CC"; then
2874   ac_cv_prog_CC="$CC" # Let the user override the test.
2875 else
2876   ac_prog_rejected=no
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880   IFS=$as_save_IFS
2881   test -z "$as_dir" && as_dir=.
2882   for ac_exec_ext in '' $ac_executable_extensions; do
2883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2885        ac_prog_rejected=yes
2886        continue
2887      fi
2888     ac_cv_prog_CC="cc"
2889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890     break 2
2891   fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 if test $ac_prog_rejected = yes; then
2897   # We found a bogon in the path, so make sure we never use it.
2898   set dummy $ac_cv_prog_CC
2899   shift
2900   if test $# != 0; then
2901     # We chose a different compiler from the bogus one.
2902     # However, it has the same basename, so the bogon will be chosen
2903     # first if we set CC to just the basename; use the full file name.
2904     shift
2905     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2906   fi
2907 fi
2908 fi
2909 fi
2910 CC=$ac_cv_prog_CC
2911 if test -n "$CC"; then
2912   { echo "$as_me:$LINENO: result: $CC" >&5
2913 echo "${ECHO_T}$CC" >&6; }
2914 else
2915   { echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6; }
2917 fi
2918
2919
2920 fi
2921 if test -z "$CC"; then
2922   if test -n "$ac_tool_prefix"; then
2923   for ac_prog in cl.exe
2924   do
2925     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2929 if test "${ac_cv_prog_CC+set}" = set; then
2930   echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932   if test -n "$CC"; then
2933   ac_cv_prog_CC="$CC" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2937 do
2938   IFS=$as_save_IFS
2939   test -z "$as_dir" && as_dir=.
2940   for ac_exec_ext in '' $ac_executable_extensions; do
2941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944     break 2
2945   fi
2946 done
2947 done
2948 IFS=$as_save_IFS
2949
2950 fi
2951 fi
2952 CC=$ac_cv_prog_CC
2953 if test -n "$CC"; then
2954   { echo "$as_me:$LINENO: result: $CC" >&5
2955 echo "${ECHO_T}$CC" >&6; }
2956 else
2957   { echo "$as_me:$LINENO: result: no" >&5
2958 echo "${ECHO_T}no" >&6; }
2959 fi
2960
2961
2962     test -n "$CC" && break
2963   done
2964 fi
2965 if test -z "$CC"; then
2966   ac_ct_CC=$CC
2967   for ac_prog in cl.exe
2968 do
2969   # Extract the first word of "$ac_prog", so it can be a program name with args.
2970 set dummy $ac_prog; ac_word=$2
2971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2973 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2974   echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976   if test -n "$ac_ct_CC"; then
2977   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982   IFS=$as_save_IFS
2983   test -z "$as_dir" && as_dir=.
2984   for ac_exec_ext in '' $ac_executable_extensions; do
2985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986     ac_cv_prog_ac_ct_CC="$ac_prog"
2987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988     break 2
2989   fi
2990 done
2991 done
2992 IFS=$as_save_IFS
2993
2994 fi
2995 fi
2996 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2997 if test -n "$ac_ct_CC"; then
2998   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2999 echo "${ECHO_T}$ac_ct_CC" >&6; }
3000 else
3001   { echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6; }
3003 fi
3004
3005
3006   test -n "$ac_ct_CC" && break
3007 done
3008
3009   if test "x$ac_ct_CC" = x; then
3010     CC=""
3011   else
3012     case $cross_compiling:$ac_tool_warned in
3013 yes:)
3014 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3015 whose name does not start with the host triplet.  If you think this
3016 configuration is useful to you, please write to autoconf@gnu.org." >&5
3017 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3018 whose name does not start with the host triplet.  If you think this
3019 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3020 ac_tool_warned=yes ;;
3021 esac
3022     CC=$ac_ct_CC
3023   fi
3024 fi
3025
3026 fi
3027
3028
3029 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3030 See \`config.log' for more details." >&5
3031 echo "$as_me: error: no acceptable C compiler found in \$PATH
3032 See \`config.log' for more details." >&2;}
3033    { (exit 1); exit 1; }; }
3034
3035 # Provide some information about the compiler.
3036 echo "$as_me:$LINENO: checking for C compiler version" >&5
3037 ac_compiler=`set X $ac_compile; echo $2`
3038 { (ac_try="$ac_compiler --version >&5"
3039 case "(($ac_try" in
3040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041   *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044   (eval "$ac_compiler --version >&5") 2>&5
3045   ac_status=$?
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); }
3048 { (ac_try="$ac_compiler -v >&5"
3049 case "(($ac_try" in
3050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051   *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054   (eval "$ac_compiler -v >&5") 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }
3058 { (ac_try="$ac_compiler -V >&5"
3059 case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_compiler -V >&5") 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }
3068
3069 cat >conftest.$ac_ext <<_ACEOF
3070 /* confdefs.h.  */
3071 _ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h.  */
3075
3076 int
3077 main ()
3078 {
3079
3080   ;
3081   return 0;
3082 }
3083 _ACEOF
3084 ac_clean_files_save=$ac_clean_files
3085 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3086 # Try to create an executable without -o first, disregard a.out.
3087 # It will help us diagnose broken compilers, and finding out an intuition
3088 # of exeext.
3089 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3090 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3091 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3092 #
3093 # List of possible output files, starting from the most likely.
3094 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3095 # only as a last resort.  b.out is created by i960 compilers.
3096 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3097 #
3098 # The IRIX 6 linker writes into existing files which may not be
3099 # executable, retaining their permissions.  Remove them first so a
3100 # subsequent execution test works.
3101 ac_rmfiles=
3102 for ac_file in $ac_files
3103 do
3104   case $ac_file in
3105     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3106     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3107   esac
3108 done
3109 rm -f $ac_rmfiles
3110
3111 if { (ac_try="$ac_link_default"
3112 case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117   (eval "$ac_link_default") 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; then
3121   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3122 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3123 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3124 # so that the user can short-circuit this test for compilers unknown to
3125 # Autoconf.
3126 for ac_file in $ac_files ''
3127 do
3128   test -f "$ac_file" || continue
3129   case $ac_file in
3130     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3131         ;;
3132     [ab].out )
3133         # We found the default executable, but exeext='' is most
3134         # certainly right.
3135         break;;
3136     *.* )
3137         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3138         then :; else
3139            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3140         fi
3141         # We set ac_cv_exeext here because the later test for it is not
3142         # safe: cross compilers may not add the suffix if given an `-o'
3143         # argument, so we may need to know it at that point already.
3144         # Even if this section looks crufty: it has the advantage of
3145         # actually working.
3146         break;;
3147     * )
3148         break;;
3149   esac
3150 done
3151 test "$ac_cv_exeext" = no && ac_cv_exeext=
3152
3153 else
3154   ac_file=''
3155 fi
3156
3157 { echo "$as_me:$LINENO: result: $ac_file" >&5
3158 echo "${ECHO_T}$ac_file" >&6; }
3159 if test -z "$ac_file"; then
3160   echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3164 See \`config.log' for more details." >&5
3165 echo "$as_me: error: C compiler cannot create executables
3166 See \`config.log' for more details." >&2;}
3167    { (exit 77); exit 77; }; }
3168 fi
3169
3170 ac_exeext=$ac_cv_exeext
3171
3172 # Check that the compiler produces executables we can run.  If not, either
3173 # the compiler is broken, or we cross compile.
3174 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3175 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3176 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3177 # If not cross compiling, check that we can run a simple program.
3178 if test "$cross_compiling" != yes; then
3179   if { ac_try='./$ac_file'
3180   { (case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_try") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; }; then
3189     cross_compiling=no
3190   else
3191     if test "$cross_compiling" = maybe; then
3192         cross_compiling=yes
3193     else
3194         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3195 If you meant to cross compile, use \`--host'.
3196 See \`config.log' for more details." >&5
3197 echo "$as_me: error: cannot run C compiled programs.
3198 If you meant to cross compile, use \`--host'.
3199 See \`config.log' for more details." >&2;}
3200    { (exit 1); exit 1; }; }
3201     fi
3202   fi
3203 fi
3204 { echo "$as_me:$LINENO: result: yes" >&5
3205 echo "${ECHO_T}yes" >&6; }
3206
3207 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3208 ac_clean_files=$ac_clean_files_save
3209 # Check that the compiler produces executables we can run.  If not, either
3210 # the compiler is broken, or we cross compile.
3211 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3212 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3213 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3214 echo "${ECHO_T}$cross_compiling" >&6; }
3215
3216 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3217 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3218 if { (ac_try="$ac_link"
3219 case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224   (eval "$ac_link") 2>&5
3225   ac_status=$?
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); }; then
3228   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3229 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3230 # work properly (i.e., refer to `conftest.exe'), while it won't with
3231 # `rm'.
3232 for ac_file in conftest.exe conftest conftest.*; do
3233   test -f "$ac_file" || continue
3234   case $ac_file in
3235     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3236     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3237           break;;
3238     * ) break;;
3239   esac
3240 done
3241 else
3242   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3243 See \`config.log' for more details." >&5
3244 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3245 See \`config.log' for more details." >&2;}
3246    { (exit 1); exit 1; }; }
3247 fi
3248
3249 rm -f conftest$ac_cv_exeext
3250 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3251 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3252
3253 rm -f conftest.$ac_ext
3254 EXEEXT=$ac_cv_exeext
3255 ac_exeext=$EXEEXT
3256 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3257 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3258 if test "${ac_cv_objext+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261   cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267
3268 int
3269 main ()
3270 {
3271
3272   ;
3273   return 0;
3274 }
3275 _ACEOF
3276 rm -f conftest.o conftest.obj
3277 if { (ac_try="$ac_compile"
3278 case "(($ac_try" in
3279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280   *) ac_try_echo=$ac_try;;
3281 esac
3282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283   (eval "$ac_compile") 2>&5
3284   ac_status=$?
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); }; then
3287   for ac_file in conftest.o conftest.obj conftest.*; do
3288   test -f "$ac_file" || continue;
3289   case $ac_file in
3290     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3291     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3292        break;;
3293   esac
3294 done
3295 else
3296   echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3300 See \`config.log' for more details." >&5
3301 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3302 See \`config.log' for more details." >&2;}
3303    { (exit 1); exit 1; }; }
3304 fi
3305
3306 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3307 fi
3308 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3309 echo "${ECHO_T}$ac_cv_objext" >&6; }
3310 OBJEXT=$ac_cv_objext
3311 ac_objext=$OBJEXT
3312 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3313 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3314 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3315   echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317   cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h.  */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h.  */
3323
3324 int
3325 main ()
3326 {
3327 #ifndef __GNUC__
3328        choke me
3329 #endif
3330
3331   ;
3332   return 0;
3333 }
3334 _ACEOF
3335 rm -f conftest.$ac_objext
3336 if { (ac_try="$ac_compile"
3337 case "(($ac_try" in
3338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339   *) ac_try_echo=$ac_try;;
3340 esac
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342   (eval "$ac_compile") 2>conftest.er1
3343   ac_status=$?
3344   grep -v '^ *+' conftest.er1 >conftest.err
3345   rm -f conftest.er1
3346   cat conftest.err >&5
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); } && {
3349          test -z "$ac_c_werror_flag" ||
3350          test ! -s conftest.err
3351        } && test -s conftest.$ac_objext; then
3352   ac_compiler_gnu=yes
3353 else
3354   echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3356
3357         ac_compiler_gnu=no
3358 fi
3359
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3362
3363 fi
3364 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3365 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3366 GCC=`test $ac_compiler_gnu = yes && echo yes`
3367 ac_test_CFLAGS=${CFLAGS+set}
3368 ac_save_CFLAGS=$CFLAGS
3369 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3370 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3371 if test "${ac_cv_prog_cc_g+set}" = set; then
3372   echo $ECHO_N "(cached) $ECHO_C" >&6
3373 else
3374   ac_save_c_werror_flag=$ac_c_werror_flag
3375    ac_c_werror_flag=yes
3376    ac_cv_prog_cc_g=no
3377    CFLAGS="-g"
3378    cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h.  */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h.  */
3384
3385 int
3386 main ()
3387 {
3388
3389   ;
3390   return 0;
3391 }
3392 _ACEOF
3393 rm -f conftest.$ac_objext
3394 if { (ac_try="$ac_compile"
3395 case "(($ac_try" in
3396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397   *) ac_try_echo=$ac_try;;
3398 esac
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400   (eval "$ac_compile") 2>conftest.er1
3401   ac_status=$?
3402   grep -v '^ *+' conftest.er1 >conftest.err
3403   rm -f conftest.er1
3404   cat conftest.err >&5
3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406   (exit $ac_status); } && {
3407          test -z "$ac_c_werror_flag" ||
3408          test ! -s conftest.err
3409        } && test -s conftest.$ac_objext; then
3410   ac_cv_prog_cc_g=yes
3411 else
3412   echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3414
3415         CFLAGS=""
3416       cat >conftest.$ac_ext <<_ACEOF
3417 /* confdefs.h.  */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h.  */
3422
3423 int
3424 main ()
3425 {
3426
3427   ;
3428   return 0;
3429 }
3430 _ACEOF
3431 rm -f conftest.$ac_objext
3432 if { (ac_try="$ac_compile"
3433 case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438   (eval "$ac_compile") 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } && {
3445          test -z "$ac_c_werror_flag" ||
3446          test ! -s conftest.err
3447        } && test -s conftest.$ac_objext; then
3448   :
3449 else
3450   echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453         ac_c_werror_flag=$ac_save_c_werror_flag
3454          CFLAGS="-g"
3455          cat >conftest.$ac_ext <<_ACEOF
3456 /* confdefs.h.  */
3457 _ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h.  */
3461
3462 int
3463 main ()
3464 {
3465
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 rm -f conftest.$ac_objext
3471 if { (ac_try="$ac_compile"
3472 case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_compile") 2>conftest.er1
3478   ac_status=$?
3479   grep -v '^ *+' conftest.er1 >conftest.err
3480   rm -f conftest.er1
3481   cat conftest.err >&5
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); } && {
3484          test -z "$ac_c_werror_flag" ||
3485          test ! -s conftest.err
3486        } && test -s conftest.$ac_objext; then
3487   ac_cv_prog_cc_g=yes
3488 else
3489   echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492
3493 fi
3494
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 fi
3497
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 fi
3500
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502    ac_c_werror_flag=$ac_save_c_werror_flag
3503 fi
3504 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3505 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3506 if test "$ac_test_CFLAGS" = set; then
3507   CFLAGS=$ac_save_CFLAGS
3508 elif test $ac_cv_prog_cc_g = yes; then
3509   if test "$GCC" = yes; then
3510     CFLAGS="-g -O2"
3511   else
3512     CFLAGS="-g"
3513   fi
3514 else
3515   if test "$GCC" = yes; then
3516     CFLAGS="-O2"
3517   else
3518     CFLAGS=
3519   fi
3520 fi
3521 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3522 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3523 if test "${ac_cv_prog_cc_c89+set}" = set; then
3524   echo $ECHO_N "(cached) $ECHO_C" >&6
3525 else
3526   ac_cv_prog_cc_c89=no
3527 ac_save_CC=$CC
3528 cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h.  */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h.  */
3534 #include <stdarg.h>
3535 #include <stdio.h>
3536 #include <sys/types.h>
3537 #include <sys/stat.h>
3538 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3539 struct buf { int x; };
3540 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3541 static char *e (p, i)
3542      char **p;
3543      int i;
3544 {
3545   return p[i];
3546 }
3547 static char *f (char * (*g) (char **, int), char **p, ...)
3548 {
3549   char *s;
3550   va_list v;
3551   va_start (v,p);
3552   s = g (p, va_arg (v,int));
3553   va_end (v);
3554   return s;
3555 }
3556
3557 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3558    function prototypes and stuff, but not '\xHH' hex character constants.
3559    These don't provoke an error unfortunately, instead are silently treated
3560    as 'x'.  The following induces an error, until -std is added to get
3561    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3562    array size at least.  It's necessary to write '\x00'==0 to get something
3563    that's true only with -std.  */
3564 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3565
3566 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3567    inside strings and character constants.  */
3568 #define FOO(x) 'x'
3569 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3570
3571 int test (int i, double x);
3572 struct s1 {int (*f) (int a);};
3573 struct s2 {int (*f) (double a);};
3574 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3575 int argc;
3576 char **argv;
3577 int
3578 main ()
3579 {
3580 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3581   ;
3582   return 0;
3583 }
3584 _ACEOF
3585 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3586         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3587 do
3588   CC="$ac_save_CC $ac_arg"
3589   rm -f conftest.$ac_objext
3590 if { (ac_try="$ac_compile"
3591 case "(($ac_try" in
3592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593   *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596   (eval "$ac_compile") 2>conftest.er1
3597   ac_status=$?
3598   grep -v '^ *+' conftest.er1 >conftest.err
3599   rm -f conftest.er1
3600   cat conftest.err >&5
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); } && {
3603          test -z "$ac_c_werror_flag" ||
3604          test ! -s conftest.err
3605        } && test -s conftest.$ac_objext; then
3606   ac_cv_prog_cc_c89=$ac_arg
3607 else
3608   echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611
3612 fi
3613
3614 rm -f core conftest.err conftest.$ac_objext
3615   test "x$ac_cv_prog_cc_c89" != "xno" && break
3616 done
3617 rm -f conftest.$ac_ext
3618 CC=$ac_save_CC
3619
3620 fi
3621 # AC_CACHE_VAL
3622 case "x$ac_cv_prog_cc_c89" in
3623   x)
3624     { echo "$as_me:$LINENO: result: none needed" >&5
3625 echo "${ECHO_T}none needed" >&6; } ;;
3626   xno)
3627     { echo "$as_me:$LINENO: result: unsupported" >&5
3628 echo "${ECHO_T}unsupported" >&6; } ;;
3629   *)
3630     CC="$CC $ac_cv_prog_cc_c89"
3631     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3632 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3633 esac
3634
3635
3636 ac_ext=c
3637 ac_cpp='$CPP $CPPFLAGS'
3638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641
3642 depcc="$CC"   am_compiler_list=
3643
3644 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3645 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3646 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3647   echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3650   # We make a subdir and do the tests there.  Otherwise we can end up
3651   # making bogus files that we don't know about and never remove.  For
3652   # instance it was reported that on HP-UX the gcc test will end up
3653   # making a dummy file named `D' -- because `-MD' means `put the output
3654   # in D'.
3655   mkdir conftest.dir
3656   # Copy depcomp to subdir because otherwise we won't find it if we're
3657   # using a relative directory.
3658   cp "$am_depcomp" conftest.dir
3659   cd conftest.dir
3660   # We will build objects and dependencies in a subdirectory because
3661   # it helps to detect inapplicable dependency modes.  For instance
3662   # both Tru64's cc and ICC support -MD to output dependencies as a
3663   # side effect of compilation, but ICC will put the dependencies in
3664   # the current directory while Tru64 will put them in the object
3665   # directory.
3666   mkdir sub
3667
3668   am_cv_CC_dependencies_compiler_type=none
3669   if test "$am_compiler_list" = ""; then
3670      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3671   fi
3672   for depmode in $am_compiler_list; do
3673     # Setup a source with many dependencies, because some compilers
3674     # like to wrap large dependency lists on column 80 (with \), and
3675     # we should not choose a depcomp mode which is confused by this.
3676     #
3677     # We need to recreate these files for each test, as the compiler may
3678     # overwrite some of them when testing with obscure command lines.
3679     # This happens at least with the AIX C compiler.
3680     : > sub/conftest.c
3681     for i in 1 2 3 4 5 6; do
3682       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3683       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3684       # Solaris 8's {/usr,}/bin/sh.
3685       touch sub/conftst$i.h
3686     done
3687     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3688
3689     case $depmode in
3690     nosideeffect)
3691       # after this tag, mechanisms are not by side-effect, so they'll
3692       # only be used when explicitly requested
3693       if test "x$enable_dependency_tracking" = xyes; then
3694         continue
3695       else
3696         break
3697       fi
3698       ;;
3699     none) break ;;
3700     esac
3701     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3702     # mode.  It turns out that the SunPro C++ compiler does not properly
3703     # handle `-M -o', and we need to detect this.
3704     if depmode=$depmode \
3705        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3706        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3707        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3708          >/dev/null 2>conftest.err &&
3709        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3710        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3711        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3712       # icc doesn't choke on unknown options, it will just issue warnings
3713       # or remarks (even with -Werror).  So we grep stderr for any message
3714       # that says an option was ignored or not supported.
3715       # When given -MP, icc 7.0 and 7.1 complain thusly:
3716       #   icc: Command line warning: ignoring option '-M'; no argument required
3717       # The diagnosis changed in icc 8.0:
3718       #   icc: Command line remark: option '-MP' not supported
3719       if (grep 'ignoring option' conftest.err ||
3720           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3721         am_cv_CC_dependencies_compiler_type=$depmode
3722         break
3723       fi
3724     fi
3725   done
3726
3727   cd ..
3728   rm -rf conftest.dir
3729 else
3730   am_cv_CC_dependencies_compiler_type=none
3731 fi
3732
3733 fi
3734 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3735 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3736 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3737
3738
3739
3740 if
3741   test "x$enable_dependency_tracking" != xno \
3742   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3743   am__fastdepCC_TRUE=
3744   am__fastdepCC_FALSE='#'
3745 else
3746   am__fastdepCC_TRUE='#'
3747   am__fastdepCC_FALSE=
3748 fi
3749
3750
3751 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3752 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3753 if test "${lt_cv_path_SED+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756   # Loop through the user's path and test for sed and gsed.
3757 # Then use that list of sed's as ones to test for truncation.
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3760 do
3761   IFS=$as_save_IFS
3762   test -z "$as_dir" && as_dir=.
3763   for lt_ac_prog in sed gsed; do
3764     for ac_exec_ext in '' $ac_executable_extensions; do
3765       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3766         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3767       fi
3768     done
3769   done
3770 done
3771 lt_ac_max=0
3772 lt_ac_count=0
3773 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3774 # along with /bin/sed that truncates output.
3775 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3776   test ! -f $lt_ac_sed && continue
3777   cat /dev/null > conftest.in
3778   lt_ac_count=0
3779   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3780   # Check for GNU sed and select it if it is found.
3781   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3782     lt_cv_path_SED=$lt_ac_sed
3783     break
3784   fi
3785   while true; do
3786     cat conftest.in conftest.in >conftest.tmp
3787     mv conftest.tmp conftest.in
3788     cp conftest.in conftest.nl
3789     echo >>conftest.nl
3790     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3791     cmp -s conftest.out conftest.nl || break
3792     # 10000 chars as input seems more than enough
3793     test $lt_ac_count -gt 10 && break
3794     lt_ac_count=`expr $lt_ac_count + 1`
3795     if test $lt_ac_count -gt $lt_ac_max; then
3796       lt_ac_max=$lt_ac_count
3797       lt_cv_path_SED=$lt_ac_sed
3798     fi
3799   done
3800 done
3801
3802 fi
3803
3804 SED=$lt_cv_path_SED
3805 { echo "$as_me:$LINENO: result: $SED" >&5
3806 echo "${ECHO_T}$SED" >&6; }
3807
3808 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3809 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3810 if test "${ac_cv_path_GREP+set}" = set; then
3811   echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813   # Extract the first word of "grep ggrep" to use in msg output
3814 if test -z "$GREP"; then
3815 set dummy grep ggrep; ac_prog_name=$2
3816 if test "${ac_cv_path_GREP+set}" = set; then
3817   echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819   ac_path_GREP_found=false
3820 # Loop through the user's path and test for each of PROGNAME-LIST
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3823 do
3824   IFS=$as_save_IFS
3825   test -z "$as_dir" && as_dir=.
3826   for ac_prog in grep ggrep; do
3827   for ac_exec_ext in '' $ac_executable_extensions; do
3828     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3829     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3830     # Check for GNU ac_path_GREP and select it if it is found.
3831   # Check for GNU $ac_path_GREP
3832 case `"$ac_path_GREP" --version 2>&1` in
3833 *GNU*)
3834   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3835 *)
3836   ac_count=0
3837   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3838   while :
3839   do
3840     cat "conftest.in" "conftest.in" >"conftest.tmp"
3841     mv "conftest.tmp" "conftest.in"
3842     cp "conftest.in" "conftest.nl"
3843     echo 'GREP' >> "conftest.nl"
3844     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3845     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3846     ac_count=`expr $ac_count + 1`
3847     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3848       # Best one so far, save it but keep looking for a better one
3849       ac_cv_path_GREP="$ac_path_GREP"
3850       ac_path_GREP_max=$ac_count
3851     fi
3852     # 10*(2^10) chars as input seems more than enough
3853     test $ac_count -gt 10 && break
3854   done
3855   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3856 esac
3857
3858
3859     $ac_path_GREP_found && break 3
3860   done
3861 done
3862
3863 done
3864 IFS=$as_save_IFS
3865
3866
3867 fi
3868
3869 GREP="$ac_cv_path_GREP"
3870 if test -z "$GREP"; then
3871   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3872 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3873    { (exit 1); exit 1; }; }
3874 fi
3875
3876 else
3877   ac_cv_path_GREP=$GREP
3878 fi
3879
3880
3881 fi
3882 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3883 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3884  GREP="$ac_cv_path_GREP"
3885
3886
3887 { echo "$as_me:$LINENO: checking for egrep" >&5
3888 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3889 if test "${ac_cv_path_EGREP+set}" = set; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3893    then ac_cv_path_EGREP="$GREP -E"
3894    else
3895      # Extract the first word of "egrep" to use in msg output
3896 if test -z "$EGREP"; then
3897 set dummy egrep; ac_prog_name=$2
3898 if test "${ac_cv_path_EGREP+set}" = set; then
3899   echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901   ac_path_EGREP_found=false
3902 # Loop through the user's path and test for each of PROGNAME-LIST
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3905 do
3906   IFS=$as_save_IFS
3907   test -z "$as_dir" && as_dir=.
3908   for ac_prog in egrep; do
3909   for ac_exec_ext in '' $ac_executable_extensions; do
3910     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3911     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3912     # Check for GNU ac_path_EGREP and select it if it is found.
3913   # Check for GNU $ac_path_EGREP
3914 case `"$ac_path_EGREP" --version 2>&1` in
3915 *GNU*)
3916   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3917 *)
3918   ac_count=0
3919   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3920   while :
3921   do
3922     cat "conftest.in" "conftest.in" >"conftest.tmp"
3923     mv "conftest.tmp" "conftest.in"
3924     cp "conftest.in" "conftest.nl"
3925     echo 'EGREP' >> "conftest.nl"
3926     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3927     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3928     ac_count=`expr $ac_count + 1`
3929     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3930       # Best one so far, save it but keep looking for a better one
3931       ac_cv_path_EGREP="$ac_path_EGREP"
3932       ac_path_EGREP_max=$ac_count
3933     fi
3934     # 10*(2^10) chars as input seems more than enough
3935     test $ac_count -gt 10 && break
3936   done
3937   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3938 esac
3939
3940
3941     $ac_path_EGREP_found && break 3
3942   done
3943 done
3944
3945 done
3946 IFS=$as_save_IFS
3947
3948
3949 fi
3950
3951 EGREP="$ac_cv_path_EGREP"
3952 if test -z "$EGREP"; then
3953   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3954 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3955    { (exit 1); exit 1; }; }
3956 fi
3957
3958 else
3959   ac_cv_path_EGREP=$EGREP
3960 fi
3961
3962
3963    fi
3964 fi
3965 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3966 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3967  EGREP="$ac_cv_path_EGREP"
3968
3969
3970
3971 # Check whether --with-gnu-ld was given.
3972 if test "${with_gnu_ld+set}" = set; then
3973   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3974 else
3975   with_gnu_ld=no
3976 fi
3977
3978 ac_prog=ld
3979 if test "$GCC" = yes; then
3980   # Check if gcc -print-prog-name=ld gives a path.
3981   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3982 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3983   case $host in
3984   *-*-mingw*)
3985     # gcc leaves a trailing carriage return which upsets mingw
3986     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3987   *)
3988     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3989   esac
3990   case $ac_prog in
3991     # Accept absolute paths.
3992     [\\/]* | ?:[\\/]*)
3993       re_direlt='/[^/][^/]*/\.\./'
3994       # Canonicalize the pathname of ld
3995       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3996       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3997         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3998       done
3999       test -z "$LD" && LD="$ac_prog"
4000       ;;
4001   "")
4002     # If it fails, then pretend we aren't using GCC.
4003     ac_prog=ld
4004     ;;
4005   *)
4006     # If it is relative, then search for the first ld in PATH.
4007     with_gnu_ld=unknown
4008     ;;
4009   esac
4010 elif test "$with_gnu_ld" = yes; then
4011   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4012 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4013 else
4014   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4015 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4016 fi
4017 if test "${lt_cv_path_LD+set}" = set; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   if test -z "$LD"; then
4021   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4022   for ac_dir in $PATH; do
4023     IFS="$lt_save_ifs"
4024     test -z "$ac_dir" && ac_dir=.
4025     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4026       lt_cv_path_LD="$ac_dir/$ac_prog"
4027       # Check to see if the program is GNU ld.  I'd rather use --version,
4028       # but apparently some variants of GNU ld only accept -v.
4029       # Break only if it was the GNU/non-GNU ld that we prefer.
4030       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4031       *GNU* | *'with BFD'*)
4032         test "$with_gnu_ld" != no && break
4033         ;;
4034       *)
4035         test "$with_gnu_ld" != yes && break
4036         ;;
4037       esac
4038     fi
4039   done
4040   IFS="$lt_save_ifs"
4041 else
4042   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4043 fi
4044 fi
4045
4046 LD="$lt_cv_path_LD"
4047 if test -n "$LD"; then
4048   { echo "$as_me:$LINENO: result: $LD" >&5
4049 echo "${ECHO_T}$LD" >&6; }
4050 else
4051   { echo "$as_me:$LINENO: result: no" >&5
4052 echo "${ECHO_T}no" >&6; }
4053 fi
4054 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4055 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4056    { (exit 1); exit 1; }; }
4057 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4058 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4059 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4060   echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4063 case `$LD -v 2>&1 </dev/null` in
4064 *GNU* | *'with BFD'*)
4065   lt_cv_prog_gnu_ld=yes
4066   ;;
4067 *)
4068   lt_cv_prog_gnu_ld=no
4069   ;;
4070 esac
4071 fi
4072 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4073 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4074 with_gnu_ld=$lt_cv_prog_gnu_ld
4075
4076
4077 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4078 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4079 if test "${lt_cv_ld_reload_flag+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   lt_cv_ld_reload_flag='-r'
4083 fi
4084 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4085 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4086 reload_flag=$lt_cv_ld_reload_flag
4087 case $reload_flag in
4088 "" | " "*) ;;
4089 *) reload_flag=" $reload_flag" ;;
4090 esac
4091 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4092 case $host_os in
4093   darwin*)
4094     if test "$GCC" = yes; then
4095       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4096     else
4097       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4098     fi
4099     ;;
4100 esac
4101
4102 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4103 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4104 if test "${lt_cv_path_NM+set}" = set; then
4105   echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107   if test -n "$NM"; then
4108   # Let the user override the test.
4109   lt_cv_path_NM="$NM"
4110 else
4111   lt_nm_to_check="${ac_tool_prefix}nm"
4112   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4113     lt_nm_to_check="$lt_nm_to_check nm"
4114   fi
4115   for lt_tmp_nm in $lt_nm_to_check; do
4116     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4117     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4118       IFS="$lt_save_ifs"
4119       test -z "$ac_dir" && ac_dir=.
4120       tmp_nm="$ac_dir/$lt_tmp_nm"
4121       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4122         # Check to see if the nm accepts a BSD-compat flag.
4123         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4124         #   nm: unknown option "B" ignored
4125         # Tru64's nm complains that /dev/null is an invalid object file
4126         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4127         */dev/null* | *'Invalid file or object type'*)
4128           lt_cv_path_NM="$tmp_nm -B"
4129           break
4130           ;;
4131         *)
4132           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4133           */dev/null*)
4134             lt_cv_path_NM="$tmp_nm -p"
4135             break
4136             ;;
4137           *)
4138             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4139             continue # so that we can try to find one that supports BSD flags
4140             ;;
4141           esac
4142           ;;
4143         esac
4144       fi
4145     done
4146     IFS="$lt_save_ifs"
4147   done
4148   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4149 fi
4150 fi
4151 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4152 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4153 NM="$lt_cv_path_NM"
4154
4155 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4156 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4157 LN_S=$as_ln_s
4158 if test "$LN_S" = "ln -s"; then
4159   { echo "$as_me:$LINENO: result: yes" >&5
4160 echo "${ECHO_T}yes" >&6; }
4161 else
4162   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4163 echo "${ECHO_T}no, using $LN_S" >&6; }
4164 fi
4165
4166 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4167 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4168 if test "${lt_cv_deplibs_check_method+set}" = set; then
4169   echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171   lt_cv_file_magic_cmd='$MAGIC_CMD'
4172 lt_cv_file_magic_test_file=
4173 lt_cv_deplibs_check_method='unknown'
4174 # Need to set the preceding variable on all platforms that support
4175 # interlibrary dependencies.
4176 # 'none' -- dependencies not supported.
4177 # `unknown' -- same as none, but documents that we really don't know.
4178 # 'pass_all' -- all dependencies passed with no checks.
4179 # 'test_compile' -- check by making test program.
4180 # 'file_magic [[regex]]' -- check by looking for files in library path
4181 # which responds to the $file_magic_cmd with a given extended regex.
4182 # If you have `file' or equivalent on your system and you're not sure
4183 # whether `pass_all' will *always* work, you probably want this one.
4184
4185 case $host_os in
4186 aix4* | aix5*)
4187   lt_cv_deplibs_check_method=pass_all
4188   ;;
4189
4190 beos*)
4191   lt_cv_deplibs_check_method=pass_all
4192   ;;
4193
4194 bsdi[45]*)
4195   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4196   lt_cv_file_magic_cmd='/usr/bin/file -L'
4197   lt_cv_file_magic_test_file=/shlib/libc.so
4198   ;;
4199
4200 cygwin*)
4201   # func_win32_libid is a shell function defined in ltmain.sh
4202   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4203   lt_cv_file_magic_cmd='func_win32_libid'
4204   ;;
4205
4206 mingw* | pw32*)
4207   # Base MSYS/MinGW do not provide the 'file' command needed by
4208   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4209   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4210   lt_cv_file_magic_cmd='$OBJDUMP -f'
4211   ;;
4212
4213 darwin* | rhapsody*)
4214   lt_cv_deplibs_check_method=pass_all
4215   ;;
4216
4217 freebsd* | dragonfly*)
4218   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4219     case $host_cpu in
4220     i*86 )
4221       # Not sure whether the presence of OpenBSD here was a mistake.
4222       # Let's accept both of them until this is cleared up.
4223       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4224       lt_cv_file_magic_cmd=/usr/bin/file
4225       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4226       ;;
4227     esac
4228   else
4229     lt_cv_deplibs_check_method=pass_all
4230   fi
4231   ;;
4232
4233 gnu*)
4234   lt_cv_deplibs_check_method=pass_all
4235   ;;
4236
4237 hpux10.20* | hpux11*)
4238   lt_cv_file_magic_cmd=/usr/bin/file
4239   case $host_cpu in
4240   ia64*)
4241     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4242     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4243     ;;
4244   hppa*64*)
4245     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]'
4246     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4247     ;;
4248   *)
4249     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4250     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4251     ;;
4252   esac
4253   ;;
4254
4255 interix3*)
4256   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4257   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4258   ;;
4259
4260 irix5* | irix6* | nonstopux*)
4261   case $LD in
4262   *-32|*"-32 ") libmagic=32-bit;;
4263   *-n32|*"-n32 ") libmagic=N32;;
4264   *-64|*"-64 ") libmagic=64-bit;;
4265   *) libmagic=never-match;;
4266   esac
4267   lt_cv_deplibs_check_method=pass_all
4268   ;;
4269
4270 # This must be Linux ELF.
4271 linux* | k*bsd*-gnu)
4272   lt_cv_deplibs_check_method=pass_all
4273   ;;
4274
4275 netbsd* | netbsdelf*-gnu)
4276   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4277     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4278   else
4279     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4280   fi
4281   ;;
4282
4283 newos6*)
4284   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4285   lt_cv_file_magic_cmd=/usr/bin/file
4286   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4287   ;;
4288
4289 nto-qnx*)
4290   lt_cv_deplibs_check_method=unknown
4291   ;;
4292
4293 openbsd*)
4294   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4295     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4296   else
4297     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4298   fi
4299   ;;
4300
4301 osf3* | osf4* | osf5*)
4302   lt_cv_deplibs_check_method=pass_all
4303   ;;
4304
4305 solaris*)
4306   lt_cv_deplibs_check_method=pass_all
4307   ;;
4308
4309 sysv4 | sysv4.3*)
4310   case $host_vendor in
4311   motorola)
4312     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]'
4313     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4314     ;;
4315   ncr)
4316     lt_cv_deplibs_check_method=pass_all
4317     ;;
4318   sequent)
4319     lt_cv_file_magic_cmd='/bin/file'
4320     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4321     ;;
4322   sni)
4323     lt_cv_file_magic_cmd='/bin/file'
4324     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4325     lt_cv_file_magic_test_file=/lib/libc.so
4326     ;;
4327   siemens)
4328     lt_cv_deplibs_check_method=pass_all
4329     ;;
4330   pc)
4331     lt_cv_deplibs_check_method=pass_all
4332     ;;
4333   esac
4334   ;;
4335
4336 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4337   lt_cv_deplibs_check_method=pass_all
4338   ;;
4339 esac
4340
4341 fi
4342 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4343 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4344 file_magic_cmd=$lt_cv_file_magic_cmd
4345 deplibs_check_method=$lt_cv_deplibs_check_method
4346 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4347
4348
4349
4350
4351 # If no C compiler was specified, use CC.
4352 LTCC=${LTCC-"$CC"}
4353
4354 # If no C compiler flags were specified, use CFLAGS.
4355 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4356
4357 # Allow CC to be a program name with arguments.
4358 compiler=$CC
4359
4360
4361 # Check whether --enable-libtool-lock was given.
4362 if test "${enable_libtool_lock+set}" = set; then
4363   enableval=$enable_libtool_lock;
4364 fi
4365
4366 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4367
4368 # Some flags need to be propagated to the compiler or linker for good
4369 # libtool support.
4370 case $host in
4371 ia64-*-hpux*)
4372   # Find out which ABI we are using.
4373   echo 'int i;' > conftest.$ac_ext
4374   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375   (eval $ac_compile) 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); }; then
4379     case `/usr/bin/file conftest.$ac_objext` in
4380     *ELF-32*)
4381       HPUX_IA64_MODE="32"
4382       ;;
4383     *ELF-64*)
4384       HPUX_IA64_MODE="64"
4385       ;;
4386     esac
4387   fi
4388   rm -rf conftest*
4389   ;;
4390 *-*-irix6*)
4391   # Find out which ABI we are using.
4392   echo '#line 4392 "configure"' > conftest.$ac_ext
4393   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394   (eval $ac_compile) 2>&5
4395   ac_status=$?
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); }; then
4398    if test "$lt_cv_prog_gnu_ld" = yes; then
4399     case `/usr/bin/file conftest.$ac_objext` in
4400     *32-bit*)
4401       LD="${LD-ld} -melf32bsmip"
4402       ;;
4403     *N32*)
4404       LD="${LD-ld} -melf32bmipn32"
4405       ;;
4406     *64-bit*)
4407       LD="${LD-ld} -melf64bmip"
4408       ;;
4409     esac
4410    else
4411     case `/usr/bin/file conftest.$ac_objext` in
4412     *32-bit*)
4413       LD="${LD-ld} -32"
4414       ;;
4415     *N32*)
4416       LD="${LD-ld} -n32"
4417       ;;
4418     *64-bit*)
4419       LD="${LD-ld} -64"
4420       ;;
4421     esac
4422    fi
4423   fi
4424   rm -rf conftest*
4425   ;;
4426
4427 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4428   # Find out which ABI we are using.
4429   echo 'int i;' > conftest.$ac_ext
4430   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431   (eval $ac_compile) 2>&5
4432   ac_status=$?
4433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434   (exit $ac_status); }; then
4435     case `/usr/bin/file conftest.o` in
4436     *32-bit*)
4437       case $host in
4438         x86_64-*linux*)
4439           LD="${LD-ld} -m elf_i386"
4440           ;;
4441         ppc64-*linux*|powerpc64-*linux*)
4442           LD="${LD-ld} -m elf32ppclinux"
4443           ;;
4444         s390x-*linux*)
4445           LD="${LD-ld} -m elf_s390"
4446           ;;
4447         sparc64-*linux*)
4448           LD="${LD-ld} -m elf32_sparc"
4449           ;;
4450       esac
4451       ;;
4452     *64-bit*)
4453       case $host in
4454         x86_64-*linux*)
4455           LD="${LD-ld} -m elf_x86_64"
4456           ;;
4457         ppc*-*linux*|powerpc*-*linux*)
4458           LD="${LD-ld} -m elf64ppc"
4459           ;;
4460         s390*-*linux*)
4461           LD="${LD-ld} -m elf64_s390"
4462           ;;
4463         sparc*-*linux*)
4464           LD="${LD-ld} -m elf64_sparc"
4465           ;;
4466       esac
4467       ;;
4468     esac
4469   fi
4470   rm -rf conftest*
4471   ;;
4472
4473 *-*-sco3.2v5*)
4474   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4475   SAVE_CFLAGS="$CFLAGS"
4476   CFLAGS="$CFLAGS -belf"
4477   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4478 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4479 if test "${lt_cv_cc_needs_belf+set}" = set; then
4480   echo $ECHO_N "(cached) $ECHO_C" >&6
4481 else
4482   ac_ext=c
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487
4488      cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h.  */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h.  */
4494
4495 int
4496 main ()
4497 {
4498
4499   ;
4500   return 0;
4501 }
4502 _ACEOF
4503 rm -f conftest.$ac_objext conftest$ac_exeext
4504 if { (ac_try="$ac_link"
4505 case "(($ac_try" in
4506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507   *) ac_try_echo=$ac_try;;
4508 esac
4509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4510   (eval "$ac_link") 2>conftest.er1
4511   ac_status=$?
4512   grep -v '^ *+' conftest.er1 >conftest.err
4513   rm -f conftest.er1
4514   cat conftest.err >&5
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); } && {
4517          test -z "$ac_c_werror_flag" ||
4518          test ! -s conftest.err
4519        } && test -s conftest$ac_exeext &&
4520        $as_test_x conftest$ac_exeext; then
4521   lt_cv_cc_needs_belf=yes
4522 else
4523   echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526         lt_cv_cc_needs_belf=no
4527 fi
4528
4529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4530       conftest$ac_exeext conftest.$ac_ext
4531      ac_ext=c
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536
4537 fi
4538 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4539 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4540   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4541     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4542     CFLAGS="$SAVE_CFLAGS"
4543   fi
4544   ;;
4545 sparc*-*solaris*)
4546   # Find out which ABI we are using.
4547   echo 'int i;' > conftest.$ac_ext
4548   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4549   (eval $ac_compile) 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); }; then
4553     case `/usr/bin/file conftest.o` in
4554     *64-bit*)
4555       case $lt_cv_prog_gnu_ld in
4556       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4557       *)    LD="${LD-ld} -64" ;;
4558       esac
4559       ;;
4560     esac
4561   fi
4562   rm -rf conftest*
4563   ;;
4564
4565 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4566   if test -n "$ac_tool_prefix"; then
4567   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4568 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4571 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4572   echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574   if test -n "$DLLTOOL"; then
4575   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4576 else
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580   IFS=$as_save_IFS
4581   test -z "$as_dir" && as_dir=.
4582   for ac_exec_ext in '' $ac_executable_extensions; do
4583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586     break 2
4587   fi
4588 done
4589 done
4590 IFS=$as_save_IFS
4591
4592 fi
4593 fi
4594 DLLTOOL=$ac_cv_prog_DLLTOOL
4595 if test -n "$DLLTOOL"; then
4596   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4597 echo "${ECHO_T}$DLLTOOL" >&6; }
4598 else
4599   { echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6; }
4601 fi
4602
4603
4604 fi
4605 if test -z "$ac_cv_prog_DLLTOOL"; then
4606   ac_ct_DLLTOOL=$DLLTOOL
4607   # Extract the first word of "dlltool", so it can be a program name with args.
4608 set dummy dlltool; ac_word=$2
4609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4611 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4612   echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614   if test -n "$ac_ct_DLLTOOL"; then
4615   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620   IFS=$as_save_IFS
4621   test -z "$as_dir" && as_dir=.
4622   for ac_exec_ext in '' $ac_executable_extensions; do
4623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626     break 2
4627   fi
4628 done
4629 done
4630 IFS=$as_save_IFS
4631
4632 fi
4633 fi
4634 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4635 if test -n "$ac_ct_DLLTOOL"; then
4636   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4637 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4638 else
4639   { echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6; }
4641 fi
4642
4643   if test "x$ac_ct_DLLTOOL" = x; then
4644     DLLTOOL="false"
4645   else
4646     case $cross_compiling:$ac_tool_warned in
4647 yes:)
4648 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4649 whose name does not start with the host triplet.  If you think this
4650 configuration is useful to you, please write to autoconf@gnu.org." >&5
4651 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4652 whose name does not start with the host triplet.  If you think this
4653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4654 ac_tool_warned=yes ;;
4655 esac
4656     DLLTOOL=$ac_ct_DLLTOOL
4657   fi
4658 else
4659   DLLTOOL="$ac_cv_prog_DLLTOOL"
4660 fi
4661
4662   if test -n "$ac_tool_prefix"; then
4663   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4664 set dummy ${ac_tool_prefix}as; ac_word=$2
4665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667 if test "${ac_cv_prog_AS+set}" = set; then
4668   echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670   if test -n "$AS"; then
4671   ac_cv_prog_AS="$AS" # Let the user override the test.
4672 else
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4675 do
4676   IFS=$as_save_IFS
4677   test -z "$as_dir" && as_dir=.
4678   for ac_exec_ext in '' $ac_executable_extensions; do
4679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680     ac_cv_prog_AS="${ac_tool_prefix}as"
4681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682     break 2
4683   fi
4684 done
4685 done
4686 IFS=$as_save_IFS
4687
4688 fi
4689 fi
4690 AS=$ac_cv_prog_AS
4691 if test -n "$AS"; then
4692   { echo "$as_me:$LINENO: result: $AS" >&5
4693 echo "${ECHO_T}$AS" >&6; }
4694 else
4695   { echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6; }
4697 fi
4698
4699
4700 fi
4701 if test -z "$ac_cv_prog_AS"; then
4702   ac_ct_AS=$AS
4703   # Extract the first word of "as", so it can be a program name with args.
4704 set dummy as; ac_word=$2
4705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4708   echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710   if test -n "$ac_ct_AS"; then
4711   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4715 do
4716   IFS=$as_save_IFS
4717   test -z "$as_dir" && as_dir=.
4718   for ac_exec_ext in '' $ac_executable_extensions; do
4719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720     ac_cv_prog_ac_ct_AS="as"
4721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722     break 2
4723   fi
4724 done
4725 done
4726 IFS=$as_save_IFS
4727
4728 fi
4729 fi
4730 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4731 if test -n "$ac_ct_AS"; then
4732   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4733 echo "${ECHO_T}$ac_ct_AS" >&6; }
4734 else
4735   { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4737 fi
4738
4739   if test "x$ac_ct_AS" = x; then
4740     AS="false"
4741   else
4742     case $cross_compiling:$ac_tool_warned in
4743 yes:)
4744 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4745 whose name does not start with the host triplet.  If you think this
4746 configuration is useful to you, please write to autoconf@gnu.org." >&5
4747 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4748 whose name does not start with the host triplet.  If you think this
4749 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4750 ac_tool_warned=yes ;;
4751 esac
4752     AS=$ac_ct_AS
4753   fi
4754 else
4755   AS="$ac_cv_prog_AS"
4756 fi
4757
4758   if test -n "$ac_tool_prefix"; then
4759   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4760 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4763 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4764   echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766   if test -n "$OBJDUMP"; then
4767   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4768 else
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4771 do
4772   IFS=$as_save_IFS
4773   test -z "$as_dir" && as_dir=.
4774   for ac_exec_ext in '' $ac_executable_extensions; do
4775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778     break 2
4779   fi
4780 done
4781 done
4782 IFS=$as_save_IFS
4783
4784 fi
4785 fi
4786 OBJDUMP=$ac_cv_prog_OBJDUMP
4787 if test -n "$OBJDUMP"; then
4788   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4789 echo "${ECHO_T}$OBJDUMP" >&6; }
4790 else
4791   { echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6; }
4793 fi
4794
4795
4796 fi
4797 if test -z "$ac_cv_prog_OBJDUMP"; then
4798   ac_ct_OBJDUMP=$OBJDUMP
4799   # Extract the first word of "objdump", so it can be a program name with args.
4800 set dummy objdump; ac_word=$2
4801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4803 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4804   echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806   if test -n "$ac_ct_OBJDUMP"; then
4807   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4808 else
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812   IFS=$as_save_IFS
4813   test -z "$as_dir" && as_dir=.
4814   for ac_exec_ext in '' $ac_executable_extensions; do
4815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818     break 2
4819   fi
4820 done
4821 done
4822 IFS=$as_save_IFS
4823
4824 fi
4825 fi
4826 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4827 if test -n "$ac_ct_OBJDUMP"; then
4828   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4829 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4830 else
4831   { echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6; }
4833 fi
4834
4835   if test "x$ac_ct_OBJDUMP" = x; then
4836     OBJDUMP="false"
4837   else
4838     case $cross_compiling:$ac_tool_warned in
4839 yes:)
4840 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4841 whose name does not start with the host triplet.  If you think this
4842 configuration is useful to you, please write to autoconf@gnu.org." >&5
4843 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4844 whose name does not start with the host triplet.  If you think this
4845 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4846 ac_tool_warned=yes ;;
4847 esac
4848     OBJDUMP=$ac_ct_OBJDUMP
4849   fi
4850 else
4851   OBJDUMP="$ac_cv_prog_OBJDUMP"
4852 fi
4853
4854   ;;
4855
4856 esac
4857
4858 need_locks="$enable_libtool_lock"
4859
4860
4861 ac_ext=c
4862 ac_cpp='$CPP $CPPFLAGS'
4863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4866 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4867 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4868 # On Suns, sometimes $CPP names a directory.
4869 if test -n "$CPP" && test -d "$CPP"; then
4870   CPP=
4871 fi
4872 if test -z "$CPP"; then
4873   if test "${ac_cv_prog_CPP+set}" = set; then
4874   echo $ECHO_N "(cached) $ECHO_C" >&6
4875 else
4876       # Double quotes because CPP needs to be expanded
4877     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4878     do
4879       ac_preproc_ok=false
4880 for ac_c_preproc_warn_flag in '' yes
4881 do
4882   # Use a header file that comes with gcc, so configuring glibc
4883   # with a fresh cross-compiler works.
4884   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4885   # <limits.h> exists even on freestanding compilers.
4886   # On the NeXT, cc -E runs the code through the compiler's parser,
4887   # not just through cpp. "Syntax error" is here to catch this case.
4888   cat >conftest.$ac_ext <<_ACEOF
4889 /* confdefs.h.  */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h.  */
4894 #ifdef __STDC__
4895 # include <limits.h>
4896 #else
4897 # include <assert.h>
4898 #endif
4899                      Syntax error
4900 _ACEOF
4901 if { (ac_try="$ac_cpp conftest.$ac_ext"
4902 case "(($ac_try" in
4903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904   *) ac_try_echo=$ac_try;;
4905 esac
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4908   ac_status=$?
4909   grep -v '^ *+' conftest.er1 >conftest.err
4910   rm -f conftest.er1
4911   cat conftest.err >&5
4912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913   (exit $ac_status); } >/dev/null && {
4914          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4915          test ! -s conftest.err
4916        }; then
4917   :
4918 else
4919   echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922   # Broken: fails on valid input.
4923 continue
4924 fi
4925
4926 rm -f conftest.err conftest.$ac_ext
4927
4928   # OK, works on sane cases.  Now check whether nonexistent headers
4929   # can be detected and how.
4930   cat >conftest.$ac_ext <<_ACEOF
4931 /* confdefs.h.  */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h.  */
4936 #include <ac_nonexistent.h>
4937 _ACEOF
4938 if { (ac_try="$ac_cpp conftest.$ac_ext"
4939 case "(($ac_try" in
4940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941   *) ac_try_echo=$ac_try;;
4942 esac
4943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4945   ac_status=$?
4946   grep -v '^ *+' conftest.er1 >conftest.err
4947   rm -f conftest.er1
4948   cat conftest.err >&5
4949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950   (exit $ac_status); } >/dev/null && {
4951          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4952          test ! -s conftest.err
4953        }; then
4954   # Broken: success on invalid input.
4955 continue
4956 else
4957   echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960   # Passes both tests.
4961 ac_preproc_ok=:
4962 break
4963 fi
4964
4965 rm -f conftest.err conftest.$ac_ext
4966
4967 done
4968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4969 rm -f conftest.err conftest.$ac_ext
4970 if $ac_preproc_ok; then
4971   break
4972 fi
4973
4974     done
4975     ac_cv_prog_CPP=$CPP
4976
4977 fi
4978   CPP=$ac_cv_prog_CPP
4979 else
4980   ac_cv_prog_CPP=$CPP
4981 fi
4982 { echo "$as_me:$LINENO: result: $CPP" >&5
4983 echo "${ECHO_T}$CPP" >&6; }
4984 ac_preproc_ok=false
4985 for ac_c_preproc_warn_flag in '' yes
4986 do
4987   # Use a header file that comes with gcc, so configuring glibc
4988   # with a fresh cross-compiler works.
4989   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4990   # <limits.h> exists even on freestanding compilers.
4991   # On the NeXT, cc -E runs the code through the compiler's parser,
4992   # not just through cpp. "Syntax error" is here to catch this case.
4993   cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h.  */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h.  */
4999 #ifdef __STDC__
5000 # include <limits.h>
5001 #else
5002 # include <assert.h>
5003 #endif
5004                      Syntax error
5005 _ACEOF
5006 if { (ac_try="$ac_cpp conftest.$ac_ext"
5007 case "(($ac_try" in
5008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009   *) ac_try_echo=$ac_try;;
5010 esac
5011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5013   ac_status=$?
5014   grep -v '^ *+' conftest.er1 >conftest.err
5015   rm -f conftest.er1
5016   cat conftest.err >&5
5017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018   (exit $ac_status); } >/dev/null && {
5019          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5020          test ! -s conftest.err
5021        }; then
5022   :
5023 else
5024   echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5026
5027   # Broken: fails on valid input.
5028 continue
5029 fi
5030
5031 rm -f conftest.err conftest.$ac_ext
5032
5033   # OK, works on sane cases.  Now check whether nonexistent headers
5034   # can be detected and how.
5035   cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h.  */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h.  */
5041 #include <ac_nonexistent.h>
5042 _ACEOF
5043 if { (ac_try="$ac_cpp conftest.$ac_ext"
5044 case "(($ac_try" in
5045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046   *) ac_try_echo=$ac_try;;
5047 esac
5048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5050   ac_status=$?
5051   grep -v '^ *+' conftest.er1 >conftest.err
5052   rm -f conftest.er1
5053   cat conftest.err >&5
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); } >/dev/null && {
5056          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5057          test ! -s conftest.err
5058        }; then
5059   # Broken: success on invalid input.
5060 continue
5061 else
5062   echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065   # Passes both tests.
5066 ac_preproc_ok=:
5067 break
5068 fi
5069
5070 rm -f conftest.err conftest.$ac_ext
5071
5072 done
5073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5074 rm -f conftest.err conftest.$ac_ext
5075 if $ac_preproc_ok; then
5076   :
5077 else
5078   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5079 See \`config.log' for more details." >&5
5080 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5081 See \`config.log' for more details." >&2;}
5082    { (exit 1); exit 1; }; }
5083 fi
5084
5085 ac_ext=c
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090
5091
5092 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5093 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5094 if test "${ac_cv_header_stdc+set}" = set; then
5095   echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097   cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h.  */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h.  */
5103 #include <stdlib.h>
5104 #include <stdarg.h>
5105 #include <string.h>
5106 #include <float.h>
5107
5108 int
5109 main ()
5110 {
5111
5112   ;
5113   return 0;
5114 }
5115 _ACEOF
5116 rm -f conftest.$ac_objext
5117 if { (ac_try="$ac_compile"
5118 case "(($ac_try" in
5119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120   *) ac_try_echo=$ac_try;;
5121 esac
5122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123   (eval "$ac_compile") 2>conftest.er1
5124   ac_status=$?
5125   grep -v '^ *+' conftest.er1 >conftest.err
5126   rm -f conftest.er1
5127   cat conftest.err >&5
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); } && {
5130          test -z "$ac_c_werror_flag" ||
5131          test ! -s conftest.err
5132        } && test -s conftest.$ac_objext; then
5133   ac_cv_header_stdc=yes
5134 else
5135   echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5137
5138         ac_cv_header_stdc=no
5139 fi
5140
5141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142
5143 if test $ac_cv_header_stdc = yes; then
5144   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5145   cat >conftest.$ac_ext <<_ACEOF
5146 /* confdefs.h.  */
5147 _ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h.  */
5151 #include <string.h>
5152
5153 _ACEOF
5154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5155   $EGREP "memchr" >/dev/null 2>&1; then
5156   :
5157 else
5158   ac_cv_header_stdc=no
5159 fi
5160 rm -f conftest*
5161
5162 fi
5163
5164 if test $ac_cv_header_stdc = yes; then
5165   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5166   cat >conftest.$ac_ext <<_ACEOF
5167 /* confdefs.h.  */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h.  */
5172 #include <stdlib.h>
5173
5174 _ACEOF
5175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5176   $EGREP "free" >/dev/null 2>&1; then
5177   :
5178 else
5179   ac_cv_header_stdc=no
5180 fi
5181 rm -f conftest*
5182
5183 fi
5184
5185 if test $ac_cv_header_stdc = yes; then
5186   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5187   if test "$cross_compiling" = yes; then
5188   :
5189 else
5190   cat >conftest.$ac_ext <<_ACEOF
5191 /* confdefs.h.  */
5192 _ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h.  */
5196 #include <ctype.h>
5197 #include <stdlib.h>
5198 #if ((' ' & 0x0FF) == 0x020)
5199 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5200 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5201 #else
5202 # define ISLOWER(c) \
5203                    (('a' <= (c) && (c) <= 'i') \
5204                      || ('j' <= (c) && (c) <= 'r') \
5205                      || ('s' <= (c) && (c) <= 'z'))
5206 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5207 #endif
5208
5209 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5210 int
5211 main ()
5212 {
5213   int i;
5214   for (i = 0; i < 256; i++)
5215     if (XOR (islower (i), ISLOWER (i))
5216         || toupper (i) != TOUPPER (i))
5217       return 2;
5218   return 0;
5219 }
5220 _ACEOF
5221 rm -f conftest$ac_exeext
5222 if { (ac_try="$ac_link"
5223 case "(($ac_try" in
5224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225   *) ac_try_echo=$ac_try;;
5226 esac
5227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228   (eval "$ac_link") 2>&5
5229   ac_status=$?
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5232   { (case "(($ac_try" in
5233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234   *) ac_try_echo=$ac_try;;
5235 esac
5236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237   (eval "$ac_try") 2>&5
5238   ac_status=$?
5239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); }; }; then
5241   :
5242 else
5243   echo "$as_me: program exited with status $ac_status" >&5
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5246
5247 ( exit $ac_status )
5248 ac_cv_header_stdc=no
5249 fi
5250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5251 fi
5252
5253
5254 fi
5255 fi
5256 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5257 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5258 if test $ac_cv_header_stdc = yes; then
5259
5260 cat >>confdefs.h <<\_ACEOF
5261 #define STDC_HEADERS 1
5262 _ACEOF
5263
5264 fi
5265
5266 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5277                   inttypes.h stdint.h unistd.h
5278 do
5279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5283   echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285   cat >conftest.$ac_ext <<_ACEOF
5286 /* confdefs.h.  */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h.  */
5291 $ac_includes_default
5292
5293 #include <$ac_header>
5294 _ACEOF
5295 rm -f conftest.$ac_objext
5296 if { (ac_try="$ac_compile"
5297 case "(($ac_try" in
5298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299   *) ac_try_echo=$ac_try;;
5300 esac
5301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302   (eval "$ac_compile") 2>conftest.er1
5303   ac_status=$?
5304   grep -v '^ *+' conftest.er1 >conftest.err
5305   rm -f conftest.er1
5306   cat conftest.err >&5
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); } && {
5309          test -z "$ac_c_werror_flag" ||
5310          test ! -s conftest.err
5311        } && test -s conftest.$ac_objext; then
5312   eval "$as_ac_Header=yes"
5313 else
5314   echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5316
5317         eval "$as_ac_Header=no"
5318 fi
5319
5320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321 fi
5322 ac_res=`eval echo '${'$as_ac_Header'}'`
5323                { echo "$as_me:$LINENO: result: $ac_res" >&5
5324 echo "${ECHO_T}$ac_res" >&6; }
5325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5326   cat >>confdefs.h <<_ACEOF
5327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5328 _ACEOF
5329
5330 fi
5331
5332 done
5333
5334
5335
5336 for ac_header in dlfcn.h
5337 do
5338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5340   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 fi
5345 ac_res=`eval echo '${'$as_ac_Header'}'`
5346                { echo "$as_me:$LINENO: result: $ac_res" >&5
5347 echo "${ECHO_T}$ac_res" >&6; }
5348 else
5349   # Is the header compilable?
5350 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5352 cat >conftest.$ac_ext <<_ACEOF
5353 /* confdefs.h.  */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h.  */
5358 $ac_includes_default
5359 #include <$ac_header>
5360 _ACEOF
5361 rm -f conftest.$ac_objext
5362 if { (ac_try="$ac_compile"
5363 case "(($ac_try" in
5364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365   *) ac_try_echo=$ac_try;;
5366 esac
5367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368   (eval "$ac_compile") 2>conftest.er1
5369   ac_status=$?
5370   grep -v '^ *+' conftest.er1 >conftest.err
5371   rm -f conftest.er1
5372   cat conftest.err >&5
5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); } && {
5375          test -z "$ac_c_werror_flag" ||
5376          test ! -s conftest.err
5377        } && test -s conftest.$ac_objext; then
5378   ac_header_compiler=yes
5379 else
5380   echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5382
5383         ac_header_compiler=no
5384 fi
5385
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5388 echo "${ECHO_T}$ac_header_compiler" >&6; }
5389
5390 # Is the header present?
5391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5393 cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h.  */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h.  */
5399 #include <$ac_header>
5400 _ACEOF
5401 if { (ac_try="$ac_cpp conftest.$ac_ext"
5402 case "(($ac_try" in
5403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404   *) ac_try_echo=$ac_try;;
5405 esac
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5408   ac_status=$?
5409   grep -v '^ *+' conftest.er1 >conftest.err
5410   rm -f conftest.er1
5411   cat conftest.err >&5
5412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413   (exit $ac_status); } >/dev/null && {
5414          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5415          test ! -s conftest.err
5416        }; then
5417   ac_header_preproc=yes
5418 else
5419   echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5421
5422   ac_header_preproc=no
5423 fi
5424
5425 rm -f conftest.err conftest.$ac_ext
5426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5427 echo "${ECHO_T}$ac_header_preproc" >&6; }
5428
5429 # So?  What about this header?
5430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5431   yes:no: )
5432     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5436     ac_header_preproc=yes
5437     ;;
5438   no:yes:* )
5439     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5441     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5442 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5443     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5445     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5446 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5449     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5451     ( cat <<\_ASBOX
5452 ## -------------------------------------------------- ##
5453 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5454 ## -------------------------------------------------- ##
5455 _ASBOX
5456      ) | sed "s/^/$as_me: WARNING:     /" >&2
5457     ;;
5458 esac
5459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5462   echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464   eval "$as_ac_Header=\$ac_header_preproc"
5465 fi
5466 ac_res=`eval echo '${'$as_ac_Header'}'`
5467                { echo "$as_me:$LINENO: result: $ac_res" >&5
5468 echo "${ECHO_T}$ac_res" >&6; }
5469
5470 fi
5471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5472   cat >>confdefs.h <<_ACEOF
5473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5474 _ACEOF
5475
5476 fi
5477
5478 done
5479
5480 ac_ext=cpp
5481 ac_cpp='$CXXCPP $CPPFLAGS'
5482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5485 if test -z "$CXX"; then
5486   if test -n "$CCC"; then
5487     CXX=$CCC
5488   else
5489     if test -n "$ac_tool_prefix"; then
5490   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5491   do
5492     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5496 if test "${ac_cv_prog_CXX+set}" = set; then
5497   echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499   if test -n "$CXX"; then
5500   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505   IFS=$as_save_IFS
5506   test -z "$as_dir" && as_dir=.
5507   for ac_exec_ext in '' $ac_executable_extensions; do
5508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5509     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5511     break 2
5512   fi
5513 done
5514 done
5515 IFS=$as_save_IFS
5516
5517 fi
5518 fi
5519 CXX=$ac_cv_prog_CXX
5520 if test -n "$CXX"; then
5521   { echo "$as_me:$LINENO: result: $CXX" >&5
5522 echo "${ECHO_T}$CXX" >&6; }
5523 else
5524   { echo "$as_me:$LINENO: result: no" >&5
5525 echo "${ECHO_T}no" >&6; }
5526 fi
5527
5528
5529     test -n "$CXX" && break
5530   done
5531 fi
5532 if test -z "$CXX"; then
5533   ac_ct_CXX=$CXX
5534   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5535 do
5536   # Extract the first word of "$ac_prog", so it can be a program name with args.
5537 set dummy $ac_prog; ac_word=$2
5538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5540 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5541   echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543   if test -n "$ac_ct_CXX"; then
5544   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5545 else
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5548 do
5549   IFS=$as_save_IFS
5550   test -z "$as_dir" && as_dir=.
5551   for ac_exec_ext in '' $ac_executable_extensions; do
5552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5553     ac_cv_prog_ac_ct_CXX="$ac_prog"
5554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555     break 2
5556   fi
5557 done
5558 done
5559 IFS=$as_save_IFS
5560
5561 fi
5562 fi
5563 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5564 if test -n "$ac_ct_CXX"; then
5565   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5566 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5567 else
5568   { echo "$as_me:$LINENO: result: no" >&5
5569 echo "${ECHO_T}no" >&6; }
5570 fi
5571
5572
5573   test -n "$ac_ct_CXX" && break
5574 done
5575
5576   if test "x$ac_ct_CXX" = x; then
5577     CXX="g++"
5578   else
5579     case $cross_compiling:$ac_tool_warned in
5580 yes:)
5581 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5582 whose name does not start with the host triplet.  If you think this
5583 configuration is useful to you, please write to autoconf@gnu.org." >&5
5584 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5585 whose name does not start with the host triplet.  If you think this
5586 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5587 ac_tool_warned=yes ;;
5588 esac
5589     CXX=$ac_ct_CXX
5590   fi
5591 fi
5592
5593   fi
5594 fi
5595 # Provide some information about the compiler.
5596 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5597 ac_compiler=`set X $ac_compile; echo $2`
5598 { (ac_try="$ac_compiler --version >&5"
5599 case "(($ac_try" in
5600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601   *) ac_try_echo=$ac_try;;
5602 esac
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604   (eval "$ac_compiler --version >&5") 2>&5
5605   ac_status=$?
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); }
5608 { (ac_try="$ac_compiler -v >&5"
5609 case "(($ac_try" in
5610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611   *) ac_try_echo=$ac_try;;
5612 esac
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614   (eval "$ac_compiler -v >&5") 2>&5
5615   ac_status=$?
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); }
5618 { (ac_try="$ac_compiler -V >&5"
5619 case "(($ac_try" in
5620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621   *) ac_try_echo=$ac_try;;
5622 esac
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624   (eval "$ac_compiler -V >&5") 2>&5
5625   ac_status=$?
5626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627   (exit $ac_status); }
5628
5629 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5630 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5631 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5632   echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634   cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h.  */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h.  */
5640
5641 int
5642 main ()
5643 {
5644 #ifndef __GNUC__
5645        choke me
5646 #endif
5647
5648   ;
5649   return 0;
5650 }
5651 _ACEOF
5652 rm -f conftest.$ac_objext
5653 if { (ac_try="$ac_compile"
5654 case "(($ac_try" in
5655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656   *) ac_try_echo=$ac_try;;
5657 esac
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659   (eval "$ac_compile") 2>conftest.er1
5660   ac_status=$?
5661   grep -v '^ *+' conftest.er1 >conftest.err
5662   rm -f conftest.er1
5663   cat conftest.err >&5
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); } && {
5666          test -z "$ac_cxx_werror_flag" ||
5667          test ! -s conftest.err
5668        } && test -s conftest.$ac_objext; then
5669   ac_compiler_gnu=yes
5670 else
5671   echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5673
5674         ac_compiler_gnu=no
5675 fi
5676
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5679
5680 fi
5681 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5682 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5683 GXX=`test $ac_compiler_gnu = yes && echo yes`
5684 ac_test_CXXFLAGS=${CXXFLAGS+set}
5685 ac_save_CXXFLAGS=$CXXFLAGS
5686 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5687 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5688 if test "${ac_cv_prog_cxx_g+set}" = set; then
5689   echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5692    ac_cxx_werror_flag=yes
5693    ac_cv_prog_cxx_g=no
5694    CXXFLAGS="-g"
5695    cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701
5702 int
5703 main ()
5704 {
5705
5706   ;
5707   return 0;
5708 }
5709 _ACEOF
5710 rm -f conftest.$ac_objext
5711 if { (ac_try="$ac_compile"
5712 case "(($ac_try" in
5713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714   *) ac_try_echo=$ac_try;;
5715 esac
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717   (eval "$ac_compile") 2>conftest.er1
5718   ac_status=$?
5719   grep -v '^ *+' conftest.er1 >conftest.err
5720   rm -f conftest.er1
5721   cat conftest.err >&5
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); } && {
5724          test -z "$ac_cxx_werror_flag" ||
5725          test ! -s conftest.err
5726        } && test -s conftest.$ac_objext; then
5727   ac_cv_prog_cxx_g=yes
5728 else
5729   echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5731
5732         CXXFLAGS=""
5733       cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h.  */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h.  */
5739
5740 int
5741 main ()
5742 {
5743
5744   ;
5745   return 0;
5746 }
5747 _ACEOF
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5750 case "(($ac_try" in
5751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752   *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755   (eval "$ac_compile") 2>conftest.er1
5756   ac_status=$?
5757   grep -v '^ *+' conftest.er1 >conftest.err
5758   rm -f conftest.er1
5759   cat conftest.err >&5
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); } && {
5762          test -z "$ac_cxx_werror_flag" ||
5763          test ! -s conftest.err
5764        } && test -s conftest.$ac_objext; then
5765   :
5766 else
5767   echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5769
5770         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5771          CXXFLAGS="-g"
5772          cat >conftest.$ac_ext <<_ACEOF
5773 /* confdefs.h.  */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h.  */
5778
5779 int
5780 main ()
5781 {
5782
5783   ;
5784   return 0;
5785 }
5786 _ACEOF
5787 rm -f conftest.$ac_objext
5788 if { (ac_try="$ac_compile"
5789 case "(($ac_try" in
5790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791   *) ac_try_echo=$ac_try;;
5792 esac
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794   (eval "$ac_compile") 2>conftest.er1
5795   ac_status=$?
5796   grep -v '^ *+' conftest.er1 >conftest.err
5797   rm -f conftest.er1
5798   cat conftest.err >&5
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); } && {
5801          test -z "$ac_cxx_werror_flag" ||
5802          test ! -s conftest.err
5803        } && test -s conftest.$ac_objext; then
5804   ac_cv_prog_cxx_g=yes
5805 else
5806   echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5808
5809
5810 fi
5811
5812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 fi
5814
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816 fi
5817
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5820 fi
5821 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5822 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5823 if test "$ac_test_CXXFLAGS" = set; then
5824   CXXFLAGS=$ac_save_CXXFLAGS
5825 elif test $ac_cv_prog_cxx_g = yes; then
5826   if test "$GXX" = yes; then
5827     CXXFLAGS="-g -O2"
5828   else
5829     CXXFLAGS="-g"
5830   fi
5831 else
5832   if test "$GXX" = yes; then
5833     CXXFLAGS="-O2"
5834   else
5835     CXXFLAGS=
5836   fi
5837 fi
5838 ac_ext=cpp
5839 ac_cpp='$CXXCPP $CPPFLAGS'
5840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5843
5844 depcc="$CXX"  am_compiler_list=
5845
5846 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5847 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5848 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5849   echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5852   # We make a subdir and do the tests there.  Otherwise we can end up
5853   # making bogus files that we don't know about and never remove.  For
5854   # instance it was reported that on HP-UX the gcc test will end up
5855   # making a dummy file named `D' -- because `-MD' means `put the output
5856   # in D'.
5857   mkdir conftest.dir
5858   # Copy depcomp to subdir because otherwise we won't find it if we're
5859   # using a relative directory.
5860   cp "$am_depcomp" conftest.dir
5861   cd conftest.dir
5862   # We will build objects and dependencies in a subdirectory because
5863   # it helps to detect inapplicable dependency modes.  For instance
5864   # both Tru64's cc and ICC support -MD to output dependencies as a
5865   # side effect of compilation, but ICC will put the dependencies in
5866   # the current directory while Tru64 will put them in the object
5867   # directory.
5868   mkdir sub
5869
5870   am_cv_CXX_dependencies_compiler_type=none
5871   if test "$am_compiler_list" = ""; then
5872      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5873   fi
5874   for depmode in $am_compiler_list; do
5875     # Setup a source with many dependencies, because some compilers
5876     # like to wrap large dependency lists on column 80 (with \), and
5877     # we should not choose a depcomp mode which is confused by this.
5878     #
5879     # We need to recreate these files for each test, as the compiler may
5880     # overwrite some of them when testing with obscure command lines.
5881     # This happens at least with the AIX C compiler.
5882     : > sub/conftest.c
5883     for i in 1 2 3 4 5 6; do
5884       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5885       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5886       # Solaris 8's {/usr,}/bin/sh.
5887       touch sub/conftst$i.h
5888     done
5889     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5890
5891     case $depmode in
5892     nosideeffect)
5893       # after this tag, mechanisms are not by side-effect, so they'll
5894       # only be used when explicitly requested
5895       if test "x$enable_dependency_tracking" = xyes; then
5896         continue
5897       else
5898         break
5899       fi
5900       ;;
5901     none) break ;;
5902     esac
5903     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5904     # mode.  It turns out that the SunPro C++ compiler does not properly
5905     # handle `-M -o', and we need to detect this.
5906     if depmode=$depmode \
5907        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5908        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5909        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5910          >/dev/null 2>conftest.err &&
5911        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5912        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5913        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5914       # icc doesn't choke on unknown options, it will just issue warnings
5915       # or remarks (even with -Werror).  So we grep stderr for any message
5916       # that says an option was ignored or not supported.
5917       # When given -MP, icc 7.0 and 7.1 complain thusly:
5918       #   icc: Command line warning: ignoring option '-M'; no argument required
5919       # The diagnosis changed in icc 8.0:
5920       #   icc: Command line remark: option '-MP' not supported
5921       if (grep 'ignoring option' conftest.err ||
5922           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5923         am_cv_CXX_dependencies_compiler_type=$depmode
5924         break
5925       fi
5926     fi
5927   done
5928
5929   cd ..
5930   rm -rf conftest.dir
5931 else
5932   am_cv_CXX_dependencies_compiler_type=none
5933 fi
5934
5935 fi
5936 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5937 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5938 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5939
5940
5941
5942 if
5943   test "x$enable_dependency_tracking" != xno \
5944   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5945   am__fastdepCXX_TRUE=
5946   am__fastdepCXX_FALSE='#'
5947 else
5948   am__fastdepCXX_TRUE='#'
5949   am__fastdepCXX_FALSE=
5950 fi
5951
5952
5953
5954
5955 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5956     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5957     (test "X$CXX" != "Xg++"))) ; then
5958   ac_ext=cpp
5959 ac_cpp='$CXXCPP $CPPFLAGS'
5960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5963 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5964 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5965 if test -z "$CXXCPP"; then
5966   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969       # Double quotes because CXXCPP needs to be expanded
5970     for CXXCPP in "$CXX -E" "/lib/cpp"
5971     do
5972       ac_preproc_ok=false
5973 for ac_cxx_preproc_warn_flag in '' yes
5974 do
5975   # Use a header file that comes with gcc, so configuring glibc
5976   # with a fresh cross-compiler works.
5977   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5978   # <limits.h> exists even on freestanding compilers.
5979   # On the NeXT, cc -E runs the code through the compiler's parser,
5980   # not just through cpp. "Syntax error" is here to catch this case.
5981   cat >conftest.$ac_ext <<_ACEOF
5982 /* confdefs.h.  */
5983 _ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h.  */
5987 #ifdef __STDC__
5988 # include <limits.h>
5989 #else
5990 # include <assert.h>
5991 #endif
5992                      Syntax error
5993 _ACEOF
5994 if { (ac_try="$ac_cpp conftest.$ac_ext"
5995 case "(($ac_try" in
5996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997   *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6001   ac_status=$?
6002   grep -v '^ *+' conftest.er1 >conftest.err
6003   rm -f conftest.er1
6004   cat conftest.err >&5
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); } >/dev/null && {
6007          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6008          test ! -s conftest.err
6009        }; then
6010   :
6011 else
6012   echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015   # Broken: fails on valid input.
6016 continue
6017 fi
6018
6019 rm -f conftest.err conftest.$ac_ext
6020
6021   # OK, works on sane cases.  Now check whether nonexistent headers
6022   # can be detected and how.
6023   cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h.  */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h.  */
6029 #include <ac_nonexistent.h>
6030 _ACEOF
6031 if { (ac_try="$ac_cpp conftest.$ac_ext"
6032 case "(($ac_try" in
6033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034   *) ac_try_echo=$ac_try;;
6035 esac
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6038   ac_status=$?
6039   grep -v '^ *+' conftest.er1 >conftest.err
6040   rm -f conftest.er1
6041   cat conftest.err >&5
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); } >/dev/null && {
6044          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6045          test ! -s conftest.err
6046        }; then
6047   # Broken: success on invalid input.
6048 continue
6049 else
6050   echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6052
6053   # Passes both tests.
6054 ac_preproc_ok=:
6055 break
6056 fi
6057
6058 rm -f conftest.err conftest.$ac_ext
6059
6060 done
6061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6062 rm -f conftest.err conftest.$ac_ext
6063 if $ac_preproc_ok; then
6064   break
6065 fi
6066
6067     done
6068     ac_cv_prog_CXXCPP=$CXXCPP
6069
6070 fi
6071   CXXCPP=$ac_cv_prog_CXXCPP
6072 else
6073   ac_cv_prog_CXXCPP=$CXXCPP
6074 fi
6075 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6076 echo "${ECHO_T}$CXXCPP" >&6; }
6077 ac_preproc_ok=false
6078 for ac_cxx_preproc_warn_flag in '' yes
6079 do
6080   # Use a header file that comes with gcc, so configuring glibc
6081   # with a fresh cross-compiler works.
6082   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6083   # <limits.h> exists even on freestanding compilers.
6084   # On the NeXT, cc -E runs the code through the compiler's parser,
6085   # not just through cpp. "Syntax error" is here to catch this case.
6086   cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h.  */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h.  */
6092 #ifdef __STDC__
6093 # include <limits.h>
6094 #else
6095 # include <assert.h>
6096 #endif
6097                      Syntax error
6098 _ACEOF
6099 if { (ac_try="$ac_cpp conftest.$ac_ext"
6100 case "(($ac_try" in
6101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102   *) ac_try_echo=$ac_try;;
6103 esac
6104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6105   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6106   ac_status=$?
6107   grep -v '^ *+' conftest.er1 >conftest.err
6108   rm -f conftest.er1
6109   cat conftest.err >&5
6110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111   (exit $ac_status); } >/dev/null && {
6112          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6113          test ! -s conftest.err
6114        }; then
6115   :
6116 else
6117   echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6119
6120   # Broken: fails on valid input.
6121 continue
6122 fi
6123
6124 rm -f conftest.err conftest.$ac_ext
6125
6126   # OK, works on sane cases.  Now check whether nonexistent headers
6127   # can be detected and how.
6128   cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h.  */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h.  */
6134 #include <ac_nonexistent.h>
6135 _ACEOF
6136 if { (ac_try="$ac_cpp conftest.$ac_ext"
6137 case "(($ac_try" in
6138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139   *) ac_try_echo=$ac_try;;
6140 esac
6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6143   ac_status=$?
6144   grep -v '^ *+' conftest.er1 >conftest.err
6145   rm -f conftest.er1
6146   cat conftest.err >&5
6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148   (exit $ac_status); } >/dev/null && {
6149          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6150          test ! -s conftest.err
6151        }; then
6152   # Broken: success on invalid input.
6153 continue
6154 else
6155   echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158   # Passes both tests.
6159 ac_preproc_ok=:
6160 break
6161 fi
6162
6163 rm -f conftest.err conftest.$ac_ext
6164
6165 done
6166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6167 rm -f conftest.err conftest.$ac_ext
6168 if $ac_preproc_ok; then
6169   :
6170 else
6171   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6172 See \`config.log' for more details." >&5
6173 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6174 See \`config.log' for more details." >&2;}
6175    { (exit 1); exit 1; }; }
6176 fi
6177
6178 ac_ext=cpp
6179 ac_cpp='$CXXCPP $CPPFLAGS'
6180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6183
6184 fi
6185
6186
6187 ac_ext=f
6188 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6189 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6190 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6191 if test -n "$ac_tool_prefix"; then
6192   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6193   do
6194     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6198 if test "${ac_cv_prog_F77+set}" = set; then
6199   echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201   if test -n "$F77"; then
6202   ac_cv_prog_F77="$F77" # Let the user override the test.
6203 else
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6206 do
6207   IFS=$as_save_IFS
6208   test -z "$as_dir" && as_dir=.
6209   for ac_exec_ext in '' $ac_executable_extensions; do
6210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213     break 2
6214   fi
6215 done
6216 done
6217 IFS=$as_save_IFS
6218
6219 fi
6220 fi
6221 F77=$ac_cv_prog_F77
6222 if test -n "$F77"; then
6223   { echo "$as_me:$LINENO: result: $F77" >&5
6224 echo "${ECHO_T}$F77" >&6; }
6225 else
6226   { echo "$as_me:$LINENO: result: no" >&5
6227 echo "${ECHO_T}no" >&6; }
6228 fi
6229
6230
6231     test -n "$F77" && break
6232   done
6233 fi
6234 if test -z "$F77"; then
6235   ac_ct_F77=$F77
6236   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6237 do
6238   # Extract the first word of "$ac_prog", so it can be a program name with args.
6239 set dummy $ac_prog; ac_word=$2
6240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6242 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6243   echo $ECHO_N "(cached) $ECHO_C" >&6
6244 else
6245   if test -n "$ac_ct_F77"; then
6246   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6250 do
6251   IFS=$as_save_IFS
6252   test -z "$as_dir" && as_dir=.
6253   for ac_exec_ext in '' $ac_executable_extensions; do
6254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6255     ac_cv_prog_ac_ct_F77="$ac_prog"
6256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257     break 2
6258   fi
6259 done
6260 done
6261 IFS=$as_save_IFS
6262
6263 fi
6264 fi
6265 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6266 if test -n "$ac_ct_F77"; then
6267   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6268 echo "${ECHO_T}$ac_ct_F77" >&6; }
6269 else
6270   { echo "$as_me:$LINENO: result: no" >&5
6271 echo "${ECHO_T}no" >&6; }
6272 fi
6273
6274
6275   test -n "$ac_ct_F77" && break
6276 done
6277
6278   if test "x$ac_ct_F77" = x; then
6279     F77=""
6280   else
6281     case $cross_compiling:$ac_tool_warned in
6282 yes:)
6283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6284 whose name does not start with the host triplet.  If you think this
6285 configuration is useful to you, please write to autoconf@gnu.org." >&5
6286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6287 whose name does not start with the host triplet.  If you think this
6288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6289 ac_tool_warned=yes ;;
6290 esac
6291     F77=$ac_ct_F77
6292   fi
6293 fi
6294
6295
6296 # Provide some information about the compiler.
6297 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6298 ac_compiler=`set X $ac_compile; echo $2`
6299 { (ac_try="$ac_compiler --version >&5"
6300 case "(($ac_try" in
6301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302   *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305   (eval "$ac_compiler --version >&5") 2>&5
6306   ac_status=$?
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); }
6309 { (ac_try="$ac_compiler -v >&5"
6310 case "(($ac_try" in
6311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312   *) ac_try_echo=$ac_try;;
6313 esac
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315   (eval "$ac_compiler -v >&5") 2>&5
6316   ac_status=$?
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); }
6319 { (ac_try="$ac_compiler -V >&5"
6320 case "(($ac_try" in
6321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322   *) ac_try_echo=$ac_try;;
6323 esac
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325   (eval "$ac_compiler -V >&5") 2>&5
6326   ac_status=$?
6327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328   (exit $ac_status); }
6329 rm -f a.out
6330
6331 # If we don't use `.F' as extension, the preprocessor is not run on the
6332 # input file.  (Note that this only needs to work for GNU compilers.)
6333 ac_save_ext=$ac_ext
6334 ac_ext=F
6335 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6336 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6337 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6338   echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340   cat >conftest.$ac_ext <<_ACEOF
6341       program main
6342 #ifndef __GNUC__
6343        choke me
6344 #endif
6345
6346       end
6347 _ACEOF
6348 rm -f conftest.$ac_objext
6349 if { (ac_try="$ac_compile"
6350 case "(($ac_try" in
6351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352   *) ac_try_echo=$ac_try;;
6353 esac
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355   (eval "$ac_compile") 2>conftest.er1
6356   ac_status=$?
6357   grep -v '^ *+' conftest.er1 >conftest.err
6358   rm -f conftest.er1
6359   cat conftest.err >&5
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); } && {
6362          test -z "$ac_f77_werror_flag" ||
6363          test ! -s conftest.err
6364        } && test -s conftest.$ac_objext; then
6365   ac_compiler_gnu=yes
6366 else
6367   echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6369
6370         ac_compiler_gnu=no
6371 fi
6372
6373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6375
6376 fi
6377 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6378 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6379 ac_ext=$ac_save_ext
6380 ac_test_FFLAGS=${FFLAGS+set}
6381 ac_save_FFLAGS=$FFLAGS
6382 FFLAGS=
6383 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6384 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6385 if test "${ac_cv_prog_f77_g+set}" = set; then
6386   echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388   FFLAGS=-g
6389 cat >conftest.$ac_ext <<_ACEOF
6390       program main
6391
6392       end
6393 _ACEOF
6394 rm -f conftest.$ac_objext
6395 if { (ac_try="$ac_compile"
6396 case "(($ac_try" in
6397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398   *) ac_try_echo=$ac_try;;
6399 esac
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401   (eval "$ac_compile") 2>conftest.er1
6402   ac_status=$?
6403   grep -v '^ *+' conftest.er1 >conftest.err
6404   rm -f conftest.er1
6405   cat conftest.err >&5
6406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); } && {
6408          test -z "$ac_f77_werror_flag" ||
6409          test ! -s conftest.err
6410        } && test -s conftest.$ac_objext; then
6411   ac_cv_prog_f77_g=yes
6412 else
6413   echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6415
6416         ac_cv_prog_f77_g=no
6417 fi
6418
6419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420
6421 fi
6422 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6423 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6424 if test "$ac_test_FFLAGS" = set; then
6425   FFLAGS=$ac_save_FFLAGS
6426 elif test $ac_cv_prog_f77_g = yes; then
6427   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6428     FFLAGS="-g -O2"
6429   else
6430     FFLAGS="-g"
6431   fi
6432 else
6433   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6434     FFLAGS="-O2"
6435   else
6436     FFLAGS=
6437   fi
6438 fi
6439
6440 G77=`test $ac_compiler_gnu = yes && echo yes`
6441 ac_ext=c
6442 ac_cpp='$CPP $CPPFLAGS'
6443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6446
6447
6448
6449 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6450
6451 # find the maximum length of command line arguments
6452 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6453 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6454 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6455   echo $ECHO_N "(cached) $ECHO_C" >&6
6456 else
6457     i=0
6458   teststring="ABCD"
6459
6460   case $build_os in
6461   msdosdjgpp*)
6462     # On DJGPP, this test can blow up pretty badly due to problems in libc
6463     # (any single argument exceeding 2000 bytes causes a buffer overrun
6464     # during glob expansion).  Even if it were fixed, the result of this
6465     # check would be larger than it should be.
6466     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6467     ;;
6468
6469   gnu*)
6470     # Under GNU Hurd, this test is not required because there is
6471     # no limit to the length of command line arguments.
6472     # Libtool will interpret -1 as no limit whatsoever
6473     lt_cv_sys_max_cmd_len=-1;
6474     ;;
6475
6476   cygwin* | mingw*)
6477     # On Win9x/ME, this test blows up -- it succeeds, but takes
6478     # about 5 minutes as the teststring grows exponentially.
6479     # Worse, since 9x/ME are not pre-emptively multitasking,
6480     # you end up with a "frozen" computer, even though with patience
6481     # the test eventually succeeds (with a max line length of 256k).
6482     # Instead, let's just punt: use the minimum linelength reported by
6483     # all of the supported platforms: 8192 (on NT/2K/XP).
6484     lt_cv_sys_max_cmd_len=8192;
6485     ;;
6486
6487   amigaos*)
6488     # On AmigaOS with pdksh, this test takes hours, literally.
6489     # So we just punt and use a minimum line length of 8192.
6490     lt_cv_sys_max_cmd_len=8192;
6491     ;;
6492
6493   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6494     # This has been around since 386BSD, at least.  Likely further.
6495     if test -x /sbin/sysctl; then
6496       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6497     elif test -x /usr/sbin/sysctl; then
6498       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6499     else
6500       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6501     fi
6502     # And add a safety zone
6503     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6504     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6505     ;;
6506
6507   interix*)
6508     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6509     lt_cv_sys_max_cmd_len=196608
6510     ;;
6511
6512   osf*)
6513     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6514     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6515     # nice to cause kernel panics so lets avoid the loop below.
6516     # First set a reasonable default.
6517     lt_cv_sys_max_cmd_len=16384
6518     #
6519     if test -x /sbin/sysconfig; then
6520       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6521         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6522       esac
6523     fi
6524     ;;
6525   sco3.2v5*)
6526     lt_cv_sys_max_cmd_len=102400
6527     ;;
6528   sysv5* | sco5v6* | sysv4.2uw2*)
6529     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6530     if test -n "$kargmax"; then
6531       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6532     else
6533       lt_cv_sys_max_cmd_len=32768
6534     fi
6535     ;;
6536   *)
6537     # If test is not a shell built-in, we'll probably end up computing a
6538     # maximum length that is only half of the actual maximum length, but
6539     # we can't tell.
6540     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6541     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6542                = "XX$teststring") >/dev/null 2>&1 &&
6543             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6544             lt_cv_sys_max_cmd_len=$new_result &&
6545             test $i != 17 # 1/2 MB should be enough
6546     do
6547       i=`expr $i + 1`
6548       teststring=$teststring$teststring
6549     done
6550     teststring=
6551     # Add a significant safety factor because C++ compilers can tack on massive
6552     # amounts of additional arguments before passing them to the linker.
6553     # It appears as though 1/2 is a usable value.
6554     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6555     ;;
6556   esac
6557
6558 fi
6559
6560 if test -n $lt_cv_sys_max_cmd_len ; then
6561   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6562 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6563 else
6564   { echo "$as_me:$LINENO: result: none" >&5
6565 echo "${ECHO_T}none" >&6; }
6566 fi
6567
6568
6569
6570
6571 # Check for command to grab the raw symbol name followed by C symbol from nm.
6572 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6573 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6574 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6575   echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577
6578 # These are sane defaults that work on at least a few old systems.
6579 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6580
6581 # Character class describing NM global symbol codes.
6582 symcode='[BCDEGRST]'
6583
6584 # Regexp to match symbols that can be accessed directly from C.
6585 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6586
6587 # Transform an extracted symbol line into a proper C declaration
6588 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6589
6590 # Transform an extracted symbol line into symbol name and symbol address
6591 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6592
6593 # Define system-specific variables.
6594 case $host_os in
6595 aix*)
6596   symcode='[BCDT]'
6597   ;;
6598 cygwin* | mingw* | pw32*)
6599   symcode='[ABCDGISTW]'
6600   ;;
6601 hpux*) # Its linker distinguishes data from code symbols
6602   if test "$host_cpu" = ia64; then
6603     symcode='[ABCDEGRST]'
6604   fi
6605   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6606   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6607   ;;
6608 linux* | k*bsd*-gnu)
6609   if test "$host_cpu" = ia64; then
6610     symcode='[ABCDGIRSTW]'
6611     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6612     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6613   fi
6614   ;;
6615 irix* | nonstopux*)
6616   symcode='[BCDEGRST]'
6617   ;;
6618 osf*)
6619   symcode='[BCDEGQRST]'
6620   ;;
6621 solaris*)
6622   symcode='[BDRT]'
6623   ;;
6624 sco3.2v5*)
6625   symcode='[DT]'
6626   ;;
6627 sysv4.2uw2*)
6628   symcode='[DT]'
6629   ;;
6630 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6631   symcode='[ABDT]'
6632   ;;
6633 sysv4)
6634   symcode='[DFNSTU]'
6635   ;;
6636 esac
6637
6638 # Handle CRLF in mingw tool chain
6639 opt_cr=
6640 case $build_os in
6641 mingw*)
6642   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6643   ;;
6644 esac
6645
6646 # If we're using GNU nm, then use its standard symbol codes.
6647 case `$NM -V 2>&1` in
6648 *GNU* | *'with BFD'*)
6649   symcode='[ABCDGIRSTW]' ;;
6650 esac
6651
6652 # Try without a prefix undercore, then with it.
6653 for ac_symprfx in "" "_"; do
6654
6655   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6656   symxfrm="\\1 $ac_symprfx\\2 \\2"
6657
6658   # Write the raw and C identifiers.
6659   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6660
6661   # Check to see that the pipe works correctly.
6662   pipe_works=no
6663
6664   rm -f conftest*
6665   cat > conftest.$ac_ext <<EOF
6666 #ifdef __cplusplus
6667 extern "C" {
6668 #endif
6669 char nm_test_var;
6670 void nm_test_func(){}
6671 #ifdef __cplusplus
6672 }
6673 #endif
6674 int main(){nm_test_var='a';nm_test_func();return(0);}
6675 EOF
6676
6677   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678   (eval $ac_compile) 2>&5
6679   ac_status=$?
6680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681   (exit $ac_status); }; then
6682     # Now try to grab the symbols.
6683     nlist=conftest.nm
6684     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6685   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6686   ac_status=$?
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); } && test -s "$nlist"; then
6689       # Try sorting and uniquifying the output.
6690       if sort "$nlist" | uniq > "$nlist"T; then
6691         mv -f "$nlist"T "$nlist"
6692       else
6693         rm -f "$nlist"T
6694       fi
6695
6696       # Make sure that we snagged all the symbols we need.
6697       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6698         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6699           cat <<EOF > conftest.$ac_ext
6700 #ifdef __cplusplus
6701 extern "C" {
6702 #endif
6703
6704 EOF
6705           # Now generate the symbol file.
6706           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6707
6708           cat <<EOF >> conftest.$ac_ext
6709 #if defined (__STDC__) && __STDC__
6710 # define lt_ptr_t void *
6711 #else
6712 # define lt_ptr_t char *
6713 # define const
6714 #endif
6715
6716 /* The mapping between symbol names and symbols. */
6717 const struct {
6718   const char *name;
6719   lt_ptr_t address;
6720 }
6721 lt_preloaded_symbols[] =
6722 {
6723 EOF
6724           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6725           cat <<\EOF >> conftest.$ac_ext
6726   {0, (lt_ptr_t) 0}
6727 };
6728
6729 #ifdef __cplusplus
6730 }
6731 #endif
6732 EOF
6733           # Now try linking the two files.
6734           mv conftest.$ac_objext conftstm.$ac_objext
6735           lt_save_LIBS="$LIBS"
6736           lt_save_CFLAGS="$CFLAGS"
6737           LIBS="conftstm.$ac_objext"
6738           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6739           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6740   (eval $ac_link) 2>&5
6741   ac_status=$?
6742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6744             pipe_works=yes
6745           fi
6746           LIBS="$lt_save_LIBS"
6747           CFLAGS="$lt_save_CFLAGS"
6748         else
6749           echo "cannot find nm_test_func in $nlist" >&5
6750         fi
6751       else
6752         echo "cannot find nm_test_var in $nlist" >&5
6753       fi
6754     else
6755       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6756     fi
6757   else
6758     echo "$progname: failed program was:" >&5
6759     cat conftest.$ac_ext >&5
6760   fi
6761   rm -f conftest* conftst*
6762
6763   # Do not use the global_symbol_pipe unless it works.
6764   if test "$pipe_works" = yes; then
6765     break
6766   else
6767     lt_cv_sys_global_symbol_pipe=
6768   fi
6769 done
6770
6771 fi
6772
6773 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6774   lt_cv_sys_global_symbol_to_cdecl=
6775 fi
6776 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6777   { echo "$as_me:$LINENO: result: failed" >&5
6778 echo "${ECHO_T}failed" >&6; }
6779 else
6780   { echo "$as_me:$LINENO: result: ok" >&5
6781 echo "${ECHO_T}ok" >&6; }
6782 fi
6783
6784 { echo "$as_me:$LINENO: checking for objdir" >&5
6785 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6786 if test "${lt_cv_objdir+set}" = set; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   rm -f .libs 2>/dev/null
6790 mkdir .libs 2>/dev/null
6791 if test -d .libs; then
6792   lt_cv_objdir=.libs
6793 else
6794   # MS-DOS does not allow filenames that begin with a dot.
6795   lt_cv_objdir=_libs
6796 fi
6797 rmdir .libs 2>/dev/null
6798 fi
6799 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6800 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6801 objdir=$lt_cv_objdir
6802
6803
6804
6805
6806
6807 case $host_os in
6808 aix3*)
6809   # AIX sometimes has problems with the GCC collect2 program.  For some
6810   # reason, if we set the COLLECT_NAMES environment variable, the problems
6811   # vanish in a puff of smoke.
6812   if test "X${COLLECT_NAMES+set}" != Xset; then
6813     COLLECT_NAMES=
6814     export COLLECT_NAMES
6815   fi
6816   ;;
6817 esac
6818
6819 # Sed substitution that helps us do robust quoting.  It backslashifies
6820 # metacharacters that are still active within double-quoted strings.
6821 Xsed='sed -e 1s/^X//'
6822 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6823
6824 # Same as above, but do not quote variable references.
6825 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6826
6827 # Sed substitution to delay expansion of an escaped shell variable in a
6828 # double_quote_subst'ed string.
6829 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6830
6831 # Sed substitution to avoid accidental globbing in evaled expressions
6832 no_glob_subst='s/\*/\\\*/g'
6833
6834 # Constants:
6835 rm="rm -f"
6836
6837 # Global variables:
6838 default_ofile=libtool
6839 can_build_shared=yes
6840
6841 # All known linkers require a `.a' archive for static linking (except MSVC,
6842 # which needs '.lib').
6843 libext=a
6844 ltmain="$ac_aux_dir/ltmain.sh"
6845 ofile="$default_ofile"
6846 with_gnu_ld="$lt_cv_prog_gnu_ld"
6847
6848 if test -n "$ac_tool_prefix"; then
6849   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6850 set dummy ${ac_tool_prefix}ar; ac_word=$2
6851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853 if test "${ac_cv_prog_AR+set}" = set; then
6854   echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856   if test -n "$AR"; then
6857   ac_cv_prog_AR="$AR" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862   IFS=$as_save_IFS
6863   test -z "$as_dir" && as_dir=.
6864   for ac_exec_ext in '' $ac_executable_extensions; do
6865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866     ac_cv_prog_AR="${ac_tool_prefix}ar"
6867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868     break 2
6869   fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874 fi
6875 fi
6876 AR=$ac_cv_prog_AR
6877 if test -n "$AR"; then
6878   { echo "$as_me:$LINENO: result: $AR" >&5
6879 echo "${ECHO_T}$AR" >&6; }
6880 else
6881   { echo "$as_me:$LINENO: result: no" >&5
6882 echo "${ECHO_T}no" >&6; }
6883 fi
6884
6885
6886 fi
6887 if test -z "$ac_cv_prog_AR"; then
6888   ac_ct_AR=$AR
6889   # Extract the first word of "ar", so it can be a program name with args.
6890 set dummy ar; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6894   echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896   if test -n "$ac_ct_AR"; then
6897   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902   IFS=$as_save_IFS
6903   test -z "$as_dir" && as_dir=.
6904   for ac_exec_ext in '' $ac_executable_extensions; do
6905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906     ac_cv_prog_ac_ct_AR="ar"
6907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908     break 2
6909   fi
6910 done
6911 done
6912 IFS=$as_save_IFS
6913
6914 fi
6915 fi
6916 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6917 if test -n "$ac_ct_AR"; then
6918   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6919 echo "${ECHO_T}$ac_ct_AR" >&6; }
6920 else
6921   { echo "$as_me:$LINENO: result: no" >&5
6922 echo "${ECHO_T}no" >&6; }
6923 fi
6924
6925   if test "x$ac_ct_AR" = x; then
6926     AR="false"
6927   else
6928     case $cross_compiling:$ac_tool_warned in
6929 yes:)
6930 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6931 whose name does not start with the host triplet.  If you think this
6932 configuration is useful to you, please write to autoconf@gnu.org." >&5
6933 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6934 whose name does not start with the host triplet.  If you think this
6935 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6936 ac_tool_warned=yes ;;
6937 esac
6938     AR=$ac_ct_AR
6939   fi
6940 else
6941   AR="$ac_cv_prog_AR"
6942 fi
6943
6944 if test -n "$ac_tool_prefix"; then
6945   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6946 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_prog_RANLIB+set}" = set; then
6950   echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952   if test -n "$RANLIB"; then
6953   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6954 else
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6957 do
6958   IFS=$as_save_IFS
6959   test -z "$as_dir" && as_dir=.
6960   for ac_exec_ext in '' $ac_executable_extensions; do
6961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6962     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964     break 2
6965   fi
6966 done
6967 done
6968 IFS=$as_save_IFS
6969
6970 fi
6971 fi
6972 RANLIB=$ac_cv_prog_RANLIB
6973 if test -n "$RANLIB"; then
6974   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6975 echo "${ECHO_T}$RANLIB" >&6; }
6976 else
6977   { echo "$as_me:$LINENO: result: no" >&5
6978 echo "${ECHO_T}no" >&6; }
6979 fi
6980
6981
6982 fi
6983 if test -z "$ac_cv_prog_RANLIB"; then
6984   ac_ct_RANLIB=$RANLIB
6985   # Extract the first word of "ranlib", so it can be a program name with args.
6986 set dummy ranlib; ac_word=$2
6987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6989 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6990   echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992   if test -n "$ac_ct_RANLIB"; then
6993   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998   IFS=$as_save_IFS
6999   test -z "$as_dir" && as_dir=.
7000   for ac_exec_ext in '' $ac_executable_extensions; do
7001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7002     ac_cv_prog_ac_ct_RANLIB="ranlib"
7003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004     break 2
7005   fi
7006 done
7007 done
7008 IFS=$as_save_IFS
7009
7010 fi
7011 fi
7012 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7013 if test -n "$ac_ct_RANLIB"; then
7014   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7015 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7016 else
7017   { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7019 fi
7020
7021   if test "x$ac_ct_RANLIB" = x; then
7022     RANLIB=":"
7023   else
7024     case $cross_compiling:$ac_tool_warned in
7025 yes:)
7026 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7027 whose name does not start with the host triplet.  If you think this
7028 configuration is useful to you, please write to autoconf@gnu.org." >&5
7029 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7030 whose name does not start with the host triplet.  If you think this
7031 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7032 ac_tool_warned=yes ;;
7033 esac
7034     RANLIB=$ac_ct_RANLIB
7035   fi
7036 else
7037   RANLIB="$ac_cv_prog_RANLIB"
7038 fi
7039
7040 if test -n "$ac_tool_prefix"; then
7041   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7042 set dummy ${ac_tool_prefix}strip; ac_word=$2
7043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045 if test "${ac_cv_prog_STRIP+set}" = set; then
7046   echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048   if test -n "$STRIP"; then
7049   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7050 else
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7053 do
7054   IFS=$as_save_IFS
7055   test -z "$as_dir" && as_dir=.
7056   for ac_exec_ext in '' $ac_executable_extensions; do
7057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7058     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060     break 2
7061   fi
7062 done
7063 done
7064 IFS=$as_save_IFS
7065
7066 fi
7067 fi
7068 STRIP=$ac_cv_prog_STRIP
7069 if test -n "$STRIP"; then
7070   { echo "$as_me:$LINENO: result: $STRIP" >&5
7071 echo "${ECHO_T}$STRIP" >&6; }
7072 else
7073   { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7075 fi
7076
7077
7078 fi
7079 if test -z "$ac_cv_prog_STRIP"; then
7080   ac_ct_STRIP=$STRIP
7081   # Extract the first word of "strip", so it can be a program name with args.
7082 set dummy strip; ac_word=$2
7083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7085 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7086   echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088   if test -n "$ac_ct_STRIP"; then
7089   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7090 else
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094   IFS=$as_save_IFS
7095   test -z "$as_dir" && as_dir=.
7096   for ac_exec_ext in '' $ac_executable_extensions; do
7097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7098     ac_cv_prog_ac_ct_STRIP="strip"
7099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100     break 2
7101   fi
7102 done
7103 done
7104 IFS=$as_save_IFS
7105
7106 fi
7107 fi
7108 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7109 if test -n "$ac_ct_STRIP"; then
7110   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7111 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7112 else
7113   { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7115 fi
7116
7117   if test "x$ac_ct_STRIP" = x; then
7118     STRIP=":"
7119   else
7120     case $cross_compiling:$ac_tool_warned in
7121 yes:)
7122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7123 whose name does not start with the host triplet.  If you think this
7124 configuration is useful to you, please write to autoconf@gnu.org." >&5
7125 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7126 whose name does not start with the host triplet.  If you think this
7127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7128 ac_tool_warned=yes ;;
7129 esac
7130     STRIP=$ac_ct_STRIP
7131   fi
7132 else
7133   STRIP="$ac_cv_prog_STRIP"
7134 fi
7135
7136
7137 old_CC="$CC"
7138 old_CFLAGS="$CFLAGS"
7139
7140 # Set sane defaults for various variables
7141 test -z "$AR" && AR=ar
7142 test -z "$AR_FLAGS" && AR_FLAGS=cru
7143 test -z "$AS" && AS=as
7144 test -z "$CC" && CC=cc
7145 test -z "$LTCC" && LTCC=$CC
7146 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7147 test -z "$DLLTOOL" && DLLTOOL=dlltool
7148 test -z "$LD" && LD=ld
7149 test -z "$LN_S" && LN_S="ln -s"
7150 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7151 test -z "$NM" && NM=nm
7152 test -z "$SED" && SED=sed
7153 test -z "$OBJDUMP" && OBJDUMP=objdump
7154 test -z "$RANLIB" && RANLIB=:
7155 test -z "$STRIP" && STRIP=:
7156 test -z "$ac_objext" && ac_objext=o
7157
7158 # Determine commands to create old-style static archives.
7159 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7160 old_postinstall_cmds='chmod 644 $oldlib'
7161 old_postuninstall_cmds=
7162
7163 if test -n "$RANLIB"; then
7164   case $host_os in
7165   openbsd*)
7166     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7167     ;;
7168   *)
7169     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7170     ;;
7171   esac
7172   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7173 fi
7174
7175 for cc_temp in $compiler""; do
7176   case $cc_temp in
7177     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7178     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7179     \-*) ;;
7180     *) break;;
7181   esac
7182 done
7183 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7184
7185
7186 # Only perform the check for file, if the check method requires it
7187 case $deplibs_check_method in
7188 file_magic*)
7189   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7190     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7191 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7192 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7193   echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195   case $MAGIC_CMD in
7196 [\\/*] |  ?:[\\/]*)
7197   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7198   ;;
7199 *)
7200   lt_save_MAGIC_CMD="$MAGIC_CMD"
7201   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7202   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7203   for ac_dir in $ac_dummy; do
7204     IFS="$lt_save_ifs"
7205     test -z "$ac_dir" && ac_dir=.
7206     if test -f $ac_dir/${ac_tool_prefix}file; then
7207       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7208       if test -n "$file_magic_test_file"; then
7209         case $deplibs_check_method in
7210         "file_magic "*)
7211           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7212           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7213           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7214             $EGREP "$file_magic_regex" > /dev/null; then
7215             :
7216           else
7217             cat <<EOF 1>&2
7218
7219 *** Warning: the command libtool uses to detect shared libraries,
7220 *** $file_magic_cmd, produces output that libtool cannot recognize.
7221 *** The result is that libtool may fail to recognize shared libraries
7222 *** as such.  This will affect the creation of libtool libraries that
7223 *** depend on shared libraries, but programs linked with such libtool
7224 *** libraries will work regardless of this problem.  Nevertheless, you
7225 *** may want to report the problem to your system manager and/or to
7226 *** bug-libtool@gnu.org
7227
7228 EOF
7229           fi ;;
7230         esac
7231       fi
7232       break
7233     fi
7234   done
7235   IFS="$lt_save_ifs"
7236   MAGIC_CMD="$lt_save_MAGIC_CMD"
7237   ;;
7238 esac
7239 fi
7240
7241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7242 if test -n "$MAGIC_CMD"; then
7243   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7244 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7245 else
7246   { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7248 fi
7249
7250 if test -z "$lt_cv_path_MAGIC_CMD"; then
7251   if test -n "$ac_tool_prefix"; then
7252     { echo "$as_me:$LINENO: checking for file" >&5
7253 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7254 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7255   echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257   case $MAGIC_CMD in
7258 [\\/*] |  ?:[\\/]*)
7259   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7260   ;;
7261 *)
7262   lt_save_MAGIC_CMD="$MAGIC_CMD"
7263   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7264   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7265   for ac_dir in $ac_dummy; do
7266     IFS="$lt_save_ifs"
7267     test -z "$ac_dir" && ac_dir=.
7268     if test -f $ac_dir/file; then
7269       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7270       if test -n "$file_magic_test_file"; then
7271         case $deplibs_check_method in
7272         "file_magic "*)
7273           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7274           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7275           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7276             $EGREP "$file_magic_regex" > /dev/null; then
7277             :
7278           else
7279             cat <<EOF 1>&2
7280
7281 *** Warning: the command libtool uses to detect shared libraries,
7282 *** $file_magic_cmd, produces output that libtool cannot recognize.
7283 *** The result is that libtool may fail to recognize shared libraries
7284 *** as such.  This will affect the creation of libtool libraries that
7285 *** depend on shared libraries, but programs linked with such libtool
7286 *** libraries will work regardless of this problem.  Nevertheless, you
7287 *** may want to report the problem to your system manager and/or to
7288 *** bug-libtool@gnu.org
7289
7290 EOF
7291           fi ;;
7292         esac
7293       fi
7294       break
7295     fi
7296   done
7297   IFS="$lt_save_ifs"
7298   MAGIC_CMD="$lt_save_MAGIC_CMD"
7299   ;;
7300 esac
7301 fi
7302
7303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7304 if test -n "$MAGIC_CMD"; then
7305   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7306 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7307 else
7308   { echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6; }
7310 fi
7311
7312   else
7313     MAGIC_CMD=:
7314   fi
7315 fi
7316
7317   fi
7318   ;;
7319 esac
7320
7321 enable_dlopen=no
7322 enable_win32_dll=yes
7323
7324 # Check whether --enable-libtool-lock was given.
7325 if test "${enable_libtool_lock+set}" = set; then
7326   enableval=$enable_libtool_lock;
7327 fi
7328
7329 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7330
7331
7332 # Check whether --with-pic was given.
7333 if test "${with_pic+set}" = set; then
7334   withval=$with_pic; pic_mode="$withval"
7335 else
7336   pic_mode=default
7337 fi
7338
7339 test -z "$pic_mode" && pic_mode=default
7340
7341 # Use C for the default configuration in the libtool script
7342 tagname=
7343 lt_save_CC="$CC"
7344 ac_ext=c
7345 ac_cpp='$CPP $CPPFLAGS'
7346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7349
7350
7351 # Source file extension for C test sources.
7352 ac_ext=c
7353
7354 # Object file extension for compiled C test sources.
7355 objext=o
7356 objext=$objext
7357
7358 # Code to be used in simple compile tests
7359 lt_simple_compile_test_code="int some_variable = 0;\n"
7360
7361 # Code to be used in simple link tests
7362 lt_simple_link_test_code='int main(){return(0);}\n'
7363
7364
7365 # If no C compiler was specified, use CC.
7366 LTCC=${LTCC-"$CC"}
7367
7368 # If no C compiler flags were specified, use CFLAGS.
7369 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7370
7371 # Allow CC to be a program name with arguments.
7372 compiler=$CC
7373
7374
7375 # save warnings/boilerplate of simple test code
7376 ac_outfile=conftest.$ac_objext
7377 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7378 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7379 _lt_compiler_boilerplate=`cat conftest.err`
7380 $rm conftest*
7381
7382 ac_outfile=conftest.$ac_objext
7383 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7384 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7385 _lt_linker_boilerplate=`cat conftest.err`
7386 $rm conftest*
7387
7388
7389
7390 lt_prog_compiler_no_builtin_flag=
7391
7392 if test "$GCC" = yes; then
7393   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7394
7395
7396 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7397 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7398 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7399   echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401   lt_cv_prog_compiler_rtti_exceptions=no
7402   ac_outfile=conftest.$ac_objext
7403    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7404    lt_compiler_flag="-fno-rtti -fno-exceptions"
7405    # Insert the option either (1) after the last *FLAGS variable, or
7406    # (2) before a word containing "conftest.", or (3) at the end.
7407    # Note that $ac_compile itself does not contain backslashes and begins
7408    # with a dollar sign (not a hyphen), so the echo should work correctly.
7409    # The option is referenced via a variable to avoid confusing sed.
7410    lt_compile=`echo "$ac_compile" | $SED \
7411    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7412    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7413    -e 's:$: $lt_compiler_flag:'`
7414    (eval echo "\"\$as_me:7414: $lt_compile\"" >&5)
7415    (eval "$lt_compile" 2>conftest.err)
7416    ac_status=$?
7417    cat conftest.err >&5
7418    echo "$as_me:7418: \$? = $ac_status" >&5
7419    if (exit $ac_status) && test -s "$ac_outfile"; then
7420      # The compiler can only warn and ignore the option if not recognized
7421      # So say no if there are warnings other than the usual output.
7422      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7423      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7424      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7425        lt_cv_prog_compiler_rtti_exceptions=yes
7426      fi
7427    fi
7428    $rm conftest*
7429
7430 fi
7431 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7432 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7433
7434 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7435     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7436 else
7437     :
7438 fi
7439
7440 fi
7441
7442 lt_prog_compiler_wl=
7443 lt_prog_compiler_pic=
7444 lt_prog_compiler_static=
7445
7446 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7447 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7448
7449   if test "$GCC" = yes; then
7450     lt_prog_compiler_wl='-Wl,'
7451     lt_prog_compiler_static='-static'
7452
7453     case $host_os in
7454       aix*)
7455       # All AIX code is PIC.
7456       if test "$host_cpu" = ia64; then
7457         # AIX 5 now supports IA64 processor
7458         lt_prog_compiler_static='-Bstatic'
7459       fi
7460       ;;
7461
7462     amigaos*)
7463       # FIXME: we need at least 68020 code to build shared libraries, but
7464       # adding the `-m68020' flag to GCC prevents building anything better,
7465       # like `-m68040'.
7466       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7467       ;;
7468
7469     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7470       # PIC is the default for these OSes.
7471       ;;
7472
7473     mingw* | pw32* | os2*)
7474       # This hack is so that the source file can tell whether it is being
7475       # built for inclusion in a dll (and should export symbols for example).
7476       lt_prog_compiler_pic='-DDLL_EXPORT'
7477       ;;
7478
7479     darwin* | rhapsody*)
7480       # PIC is the default on this platform
7481       # Common symbols not allowed in MH_DYLIB files
7482       lt_prog_compiler_pic='-fno-common'
7483       ;;
7484
7485     interix3*)
7486       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7487       # Instead, we relocate shared libraries at runtime.
7488       ;;
7489
7490     msdosdjgpp*)
7491       # Just because we use GCC doesn't mean we suddenly get shared libraries
7492       # on systems that don't support them.
7493       lt_prog_compiler_can_build_shared=no
7494       enable_shared=no
7495       ;;
7496
7497     sysv4*MP*)
7498       if test -d /usr/nec; then
7499         lt_prog_compiler_pic=-Kconform_pic
7500       fi
7501       ;;
7502
7503     hpux*)
7504       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7505       # not for PA HP-UX.
7506       case $host_cpu in
7507       hppa*64*|ia64*)
7508         # +Z the default
7509         ;;
7510       *)
7511         lt_prog_compiler_pic='-fPIC'
7512         ;;
7513       esac
7514       ;;
7515
7516     *)
7517       lt_prog_compiler_pic='-fPIC'
7518       ;;
7519     esac
7520   else
7521     # PORTME Check for flag to pass linker flags through the system compiler.
7522     case $host_os in
7523     aix*)
7524       lt_prog_compiler_wl='-Wl,'
7525       if test "$host_cpu" = ia64; then
7526         # AIX 5 now supports IA64 processor
7527         lt_prog_compiler_static='-Bstatic'
7528       else
7529         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7530       fi
7531       ;;
7532       darwin*)
7533         # PIC is the default on this platform
7534         # Common symbols not allowed in MH_DYLIB files
7535        case $cc_basename in
7536          xlc*)
7537          lt_prog_compiler_pic='-qnocommon'
7538          lt_prog_compiler_wl='-Wl,'
7539          ;;
7540        esac
7541        ;;
7542
7543     mingw* | pw32* | os2*)
7544       # This hack is so that the source file can tell whether it is being
7545       # built for inclusion in a dll (and should export symbols for example).
7546       lt_prog_compiler_pic='-DDLL_EXPORT'
7547       ;;
7548
7549     hpux9* | hpux10* | hpux11*)
7550       lt_prog_compiler_wl='-Wl,'
7551       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7552       # not for PA HP-UX.
7553       case $host_cpu in
7554       hppa*64*|ia64*)
7555         # +Z the default
7556         ;;
7557       *)
7558         lt_prog_compiler_pic='+Z'
7559         ;;
7560       esac
7561       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7562       lt_prog_compiler_static='${wl}-a ${wl}archive'
7563       ;;
7564
7565     irix5* | irix6* | nonstopux*)
7566       lt_prog_compiler_wl='-Wl,'
7567       # PIC (with -KPIC) is the default.
7568       lt_prog_compiler_static='-non_shared'
7569       ;;
7570
7571     newsos6)
7572       lt_prog_compiler_pic='-KPIC'
7573       lt_prog_compiler_static='-Bstatic'
7574       ;;
7575
7576     linux* | k*bsd*-gnu)
7577       case $cc_basename in
7578       icc* | ecc*)
7579         lt_prog_compiler_wl='-Wl,'
7580         lt_prog_compiler_pic='-KPIC'
7581         lt_prog_compiler_static='-static'
7582         ;;
7583       pgcc* | pgf77* | pgf90* | pgf95*)
7584         # Portland Group compilers (*not* the Pentium gcc compiler,
7585         # which looks to be a dead project)
7586         lt_prog_compiler_wl='-Wl,'
7587         lt_prog_compiler_pic='-fpic'
7588         lt_prog_compiler_static='-Bstatic'
7589         ;;
7590       ccc*)
7591         lt_prog_compiler_wl='-Wl,'
7592         # All Alpha code is PIC.
7593         lt_prog_compiler_static='-non_shared'
7594         ;;
7595       esac
7596       ;;
7597
7598     osf3* | osf4* | osf5*)
7599       lt_prog_compiler_wl='-Wl,'
7600       # All OSF/1 code is PIC.
7601       lt_prog_compiler_static='-non_shared'
7602       ;;
7603
7604     solaris*)
7605       lt_prog_compiler_pic='-KPIC'
7606       lt_prog_compiler_static='-Bstatic'
7607       case $cc_basename in
7608       f77* | f90* | f95*)
7609         lt_prog_compiler_wl='-Qoption ld ';;
7610       *)
7611         lt_prog_compiler_wl='-Wl,';;
7612       esac
7613       ;;
7614
7615     sunos4*)
7616       lt_prog_compiler_wl='-Qoption ld '
7617       lt_prog_compiler_pic='-PIC'
7618       lt_prog_compiler_static='-Bstatic'
7619       ;;
7620
7621     sysv4 | sysv4.2uw2* | sysv4.3*)
7622       lt_prog_compiler_wl='-Wl,'
7623       lt_prog_compiler_pic='-KPIC'
7624       lt_prog_compiler_static='-Bstatic'
7625       ;;
7626
7627     sysv4*MP*)
7628       if test -d /usr/nec ;then
7629         lt_prog_compiler_pic='-Kconform_pic'
7630         lt_prog_compiler_static='-Bstatic'
7631       fi
7632       ;;
7633
7634     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7635       lt_prog_compiler_wl='-Wl,'
7636       lt_prog_compiler_pic='-KPIC'
7637       lt_prog_compiler_static='-Bstatic'
7638       ;;
7639
7640     unicos*)
7641       lt_prog_compiler_wl='-Wl,'
7642       lt_prog_compiler_can_build_shared=no
7643       ;;
7644
7645     uts4*)
7646       lt_prog_compiler_pic='-pic'
7647       lt_prog_compiler_static='-Bstatic'
7648       ;;
7649
7650     *)
7651       lt_prog_compiler_can_build_shared=no
7652       ;;
7653     esac
7654   fi
7655
7656 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7657 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7658
7659 #
7660 # Check to make sure the PIC flag actually works.
7661 #
7662 if test -n "$lt_prog_compiler_pic"; then
7663
7664 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7665 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7666 if test "${lt_prog_compiler_pic_works+set}" = set; then
7667   echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669   lt_prog_compiler_pic_works=no
7670   ac_outfile=conftest.$ac_objext
7671    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7672    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7673    # Insert the option either (1) after the last *FLAGS variable, or
7674    # (2) before a word containing "conftest.", or (3) at the end.
7675    # Note that $ac_compile itself does not contain backslashes and begins
7676    # with a dollar sign (not a hyphen), so the echo should work correctly.
7677    # The option is referenced via a variable to avoid confusing sed.
7678    lt_compile=`echo "$ac_compile" | $SED \
7679    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7680    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7681    -e 's:$: $lt_compiler_flag:'`
7682    (eval echo "\"\$as_me:7682: $lt_compile\"" >&5)
7683    (eval "$lt_compile" 2>conftest.err)
7684    ac_status=$?
7685    cat conftest.err >&5
7686    echo "$as_me:7686: \$? = $ac_status" >&5
7687    if (exit $ac_status) && test -s "$ac_outfile"; then
7688      # The compiler can only warn and ignore the option if not recognized
7689      # So say no if there are warnings other than the usual output.
7690      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7691      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7692      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7693        lt_prog_compiler_pic_works=yes
7694      fi
7695    fi
7696    $rm conftest*
7697
7698 fi
7699 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7700 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7701
7702 if test x"$lt_prog_compiler_pic_works" = xyes; then
7703     case $lt_prog_compiler_pic in
7704      "" | " "*) ;;
7705      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7706      esac
7707 else
7708     lt_prog_compiler_pic=
7709      lt_prog_compiler_can_build_shared=no
7710 fi
7711
7712 fi
7713 case $host_os in
7714   # For platforms which do not support PIC, -DPIC is meaningless:
7715   *djgpp*)
7716     lt_prog_compiler_pic=
7717     ;;
7718   *)
7719     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7720     ;;
7721 esac
7722
7723 #
7724 # Check to make sure the static flag actually works.
7725 #
7726 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7727 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7728 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7729 if test "${lt_prog_compiler_static_works+set}" = set; then
7730   echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732   lt_prog_compiler_static_works=no
7733    save_LDFLAGS="$LDFLAGS"
7734    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7735    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7736    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7737      # The linker can only warn and ignore the option if not recognized
7738      # So say no if there are warnings
7739      if test -s conftest.err; then
7740        # Append any errors to the config.log.
7741        cat conftest.err 1>&5
7742        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7743        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7744        if diff conftest.exp conftest.er2 >/dev/null; then
7745          lt_prog_compiler_static_works=yes
7746        fi
7747      else
7748        lt_prog_compiler_static_works=yes
7749      fi
7750    fi
7751    $rm conftest*
7752    LDFLAGS="$save_LDFLAGS"
7753
7754 fi
7755 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7756 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7757
7758 if test x"$lt_prog_compiler_static_works" = xyes; then
7759     :
7760 else
7761     lt_prog_compiler_static=
7762 fi
7763
7764
7765 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7766 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7767 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7768   echo $ECHO_N "(cached) $ECHO_C" >&6
7769 else
7770   lt_cv_prog_compiler_c_o=no
7771    $rm -r conftest 2>/dev/null
7772    mkdir conftest
7773    cd conftest
7774    mkdir out
7775    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7776
7777    lt_compiler_flag="-o out/conftest2.$ac_objext"
7778    # Insert the option either (1) after the last *FLAGS variable, or
7779    # (2) before a word containing "conftest.", or (3) at the end.
7780    # Note that $ac_compile itself does not contain backslashes and begins
7781    # with a dollar sign (not a hyphen), so the echo should work correctly.
7782    lt_compile=`echo "$ac_compile" | $SED \
7783    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7784    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7785    -e 's:$: $lt_compiler_flag:'`
7786    (eval echo "\"\$as_me:7786: $lt_compile\"" >&5)
7787    (eval "$lt_compile" 2>out/conftest.err)
7788    ac_status=$?
7789    cat out/conftest.err >&5
7790    echo "$as_me:7790: \$? = $ac_status" >&5
7791    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7792    then
7793      # The compiler can only warn and ignore the option if not recognized
7794      # So say no if there are warnings
7795      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7796      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7797      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7798        lt_cv_prog_compiler_c_o=yes
7799      fi
7800    fi
7801    chmod u+w . 2>&5
7802    $rm conftest*
7803    # SGI C++ compiler will create directory out/ii_files/ for
7804    # template instantiation
7805    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7806    $rm out/* && rmdir out
7807    cd ..
7808    rmdir conftest
7809    $rm conftest*
7810
7811 fi
7812 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7813 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7814
7815
7816 hard_links="nottested"
7817 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7818   # do not overwrite the value of need_locks provided by the user
7819   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7820 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7821   hard_links=yes
7822   $rm conftest*
7823   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7824   touch conftest.a
7825   ln conftest.a conftest.b 2>&5 || hard_links=no
7826   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7827   { echo "$as_me:$LINENO: result: $hard_links" >&5
7828 echo "${ECHO_T}$hard_links" >&6; }
7829   if test "$hard_links" = no; then
7830     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7831 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7832     need_locks=warn
7833   fi
7834 else
7835   need_locks=no
7836 fi
7837
7838 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7839 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7840
7841   runpath_var=
7842   allow_undefined_flag=
7843   enable_shared_with_static_runtimes=no
7844   archive_cmds=
7845   archive_expsym_cmds=
7846   old_archive_From_new_cmds=
7847   old_archive_from_expsyms_cmds=
7848   export_dynamic_flag_spec=
7849   whole_archive_flag_spec=
7850   thread_safe_flag_spec=
7851   hardcode_libdir_flag_spec=
7852   hardcode_libdir_flag_spec_ld=
7853   hardcode_libdir_separator=
7854   hardcode_direct=no
7855   hardcode_minus_L=no
7856   hardcode_shlibpath_var=unsupported
7857   link_all_deplibs=unknown
7858   hardcode_automatic=no
7859   module_cmds=
7860   module_expsym_cmds=
7861   always_export_symbols=no
7862   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7863   # include_expsyms should be a list of space-separated symbols to be *always*
7864   # included in the symbol list
7865   include_expsyms=
7866   # exclude_expsyms can be an extended regexp of symbols to exclude
7867   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7868   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7869   # as well as any symbol that contains `d'.
7870   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7871   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7872   # platforms (ab)use it in PIC code, but their linkers get confused if
7873   # the symbol is explicitly referenced.  Since portable code cannot
7874   # rely on this symbol name, it's probably fine to never include it in
7875   # preloaded symbol tables.
7876   extract_expsyms_cmds=
7877   # Just being paranoid about ensuring that cc_basename is set.
7878   for cc_temp in $compiler""; do
7879   case $cc_temp in
7880     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7881     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7882     \-*) ;;
7883     *) break;;
7884   esac
7885 done
7886 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7887
7888   case $host_os in
7889   cygwin* | mingw* | pw32*)
7890     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7891     # When not using gcc, we currently assume that we are using
7892     # Microsoft Visual C++.
7893     if test "$GCC" != yes; then
7894       with_gnu_ld=no
7895     fi
7896     ;;
7897   interix*)
7898     # we just hope/assume this is gcc and not c89 (= MSVC++)
7899     with_gnu_ld=yes
7900     ;;
7901   openbsd*)
7902     with_gnu_ld=no
7903     ;;
7904   esac
7905
7906   ld_shlibs=yes
7907   if test "$with_gnu_ld" = yes; then
7908     # If archive_cmds runs LD, not CC, wlarc should be empty
7909     wlarc='${wl}'
7910
7911     # Set some defaults for GNU ld with shared library support. These
7912     # are reset later if shared libraries are not supported. Putting them
7913     # here allows them to be overridden if necessary.
7914     runpath_var=LD_RUN_PATH
7915     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7916     export_dynamic_flag_spec='${wl}--export-dynamic'
7917     # ancient GNU ld didn't support --whole-archive et. al.
7918     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7919         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7920       else
7921         whole_archive_flag_spec=
7922     fi
7923     supports_anon_versioning=no
7924     case `$LD -v 2>/dev/null` in
7925       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7926       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7927       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7928       *\ 2.11.*) ;; # other 2.11 versions
7929       *) supports_anon_versioning=yes ;;
7930     esac
7931
7932     # See if GNU ld supports shared libraries.
7933     case $host_os in
7934     aix3* | aix4* | aix5*)
7935       # On AIX/PPC, the GNU linker is very broken
7936       if test "$host_cpu" != ia64; then
7937         ld_shlibs=no
7938         cat <<EOF 1>&2
7939
7940 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7941 *** to be unable to reliably create shared libraries on AIX.
7942 *** Therefore, libtool is disabling shared libraries support.  If you
7943 *** really care for shared libraries, you may want to modify your PATH
7944 *** so that a non-GNU linker is found, and then restart.
7945
7946 EOF
7947       fi
7948       ;;
7949
7950     amigaos*)
7951       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7952       hardcode_libdir_flag_spec='-L$libdir'
7953       hardcode_minus_L=yes
7954
7955       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7956       # that the semantics of dynamic libraries on AmigaOS, at least up
7957       # to version 4, is to share data among multiple programs linked
7958       # with the same dynamic library.  Since this doesn't match the
7959       # behavior of shared libraries on other platforms, we can't use
7960       # them.
7961       ld_shlibs=no
7962       ;;
7963
7964     beos*)
7965       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7966         allow_undefined_flag=unsupported
7967         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7968         # support --undefined.  This deserves some investigation.  FIXME
7969         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7970       else
7971         ld_shlibs=no
7972       fi
7973       ;;
7974
7975     cygwin* | mingw* | pw32*)
7976       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7977       # as there is no search path for DLLs.
7978       hardcode_libdir_flag_spec='-L$libdir'
7979       allow_undefined_flag=unsupported
7980       always_export_symbols=no
7981       enable_shared_with_static_runtimes=yes
7982       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7983
7984       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7985         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7986         # If the export-symbols file already is a .def file (1st line
7987         # is EXPORTS), use it as is; otherwise, prepend...
7988         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7989           cp $export_symbols $output_objdir/$soname.def;
7990         else
7991           echo EXPORTS > $output_objdir/$soname.def;
7992           cat $export_symbols >> $output_objdir/$soname.def;
7993         fi~
7994         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7995       else
7996         ld_shlibs=no
7997       fi
7998       ;;
7999
8000     interix3*)
8001       hardcode_direct=no
8002       hardcode_shlibpath_var=no
8003       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8004       export_dynamic_flag_spec='${wl}-E'
8005       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8006       # Instead, shared libraries are loaded at an image base (0x10000000 by
8007       # default) and relocated if they conflict, which is a slow very memory
8008       # consuming and fragmenting process.  To avoid this, we pick a random,
8009       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8010       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8011       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8012       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8013       ;;
8014
8015     linux* | k*bsd*-gnu)
8016       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8017         tmp_addflag=
8018         case $cc_basename,$host_cpu in
8019         pgcc*)                          # Portland Group C compiler
8020           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8021           tmp_addflag=' $pic_flag'
8022           ;;
8023         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8024           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8025           tmp_addflag=' $pic_flag -Mnomain' ;;
8026         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8027           tmp_addflag=' -i_dynamic' ;;
8028         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8029           tmp_addflag=' -i_dynamic -nofor_main' ;;
8030         ifc* | ifort*)                  # Intel Fortran compiler
8031           tmp_addflag=' -nofor_main' ;;
8032         esac
8033         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8034
8035         if test $supports_anon_versioning = yes; then
8036           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8037   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8038   $echo "local: *; };" >> $output_objdir/$libname.ver~
8039           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8040         fi
8041         link_all_deplibs=no
8042       else
8043         ld_shlibs=no
8044       fi
8045       ;;
8046
8047     netbsd* | netbsdelf*-gnu)
8048       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8049         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8050         wlarc=
8051       else
8052         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8053         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8054       fi
8055       ;;
8056
8057     solaris*)
8058       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8059         ld_shlibs=no
8060         cat <<EOF 1>&2
8061
8062 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8063 *** create shared libraries on Solaris systems.  Therefore, libtool
8064 *** is disabling shared libraries support.  We urge you to upgrade GNU
8065 *** binutils to release 2.9.1 or newer.  Another option is to modify
8066 *** your PATH or compiler configuration so that the native linker is
8067 *** used, and then restart.
8068
8069 EOF
8070       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8071         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8072         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8073       else
8074         ld_shlibs=no
8075       fi
8076       ;;
8077
8078     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8079       case `$LD -v 2>&1` in
8080         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8081         ld_shlibs=no
8082         cat <<_LT_EOF 1>&2
8083
8084 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8085 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8086 *** is disabling shared libraries support.  We urge you to upgrade GNU
8087 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8088 *** your PATH or compiler configuration so that the native linker is
8089 *** used, and then restart.
8090
8091 _LT_EOF
8092         ;;
8093         *)
8094           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8095             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8096             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8097             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8098           else
8099             ld_shlibs=no
8100           fi
8101         ;;
8102       esac
8103       ;;
8104
8105     sunos4*)
8106       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8107       wlarc=
8108       hardcode_direct=yes
8109       hardcode_shlibpath_var=no
8110       ;;
8111
8112     *)
8113       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8114         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8115         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8116       else
8117         ld_shlibs=no
8118       fi
8119       ;;
8120     esac
8121
8122     if test "$ld_shlibs" = no; then
8123       runpath_var=
8124       hardcode_libdir_flag_spec=
8125       export_dynamic_flag_spec=
8126       whole_archive_flag_spec=
8127     fi
8128   else
8129     # PORTME fill in a description of your system's linker (not GNU ld)
8130     case $host_os in
8131     aix3*)
8132       allow_undefined_flag=unsupported
8133       always_export_symbols=yes
8134       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8135       # Note: this linker hardcodes the directories in LIBPATH if there
8136       # are no directories specified by -L.
8137       hardcode_minus_L=yes
8138       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8139         # Neither direct hardcoding nor static linking is supported with a
8140         # broken collect2.
8141         hardcode_direct=unsupported
8142       fi
8143       ;;
8144
8145     aix4* | aix5*)
8146       if test "$host_cpu" = ia64; then
8147         # On IA64, the linker does run time linking by default, so we don't
8148         # have to do anything special.
8149         aix_use_runtimelinking=no
8150         exp_sym_flag='-Bexport'
8151         no_entry_flag=""
8152       else
8153         # If we're using GNU nm, then we don't want the "-C" option.
8154         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8155         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8156           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8157         else
8158           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8159         fi
8160         aix_use_runtimelinking=no
8161
8162         # Test if we are trying to use run time linking or normal
8163         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8164         # need to do runtime linking.
8165         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8166           for ld_flag in $LDFLAGS; do
8167           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8168             aix_use_runtimelinking=yes
8169             break
8170           fi
8171           done
8172           ;;
8173         esac
8174
8175         exp_sym_flag='-bexport'
8176         no_entry_flag='-bnoentry'
8177       fi
8178
8179       # When large executables or shared objects are built, AIX ld can
8180       # have problems creating the table of contents.  If linking a library
8181       # or program results in "error TOC overflow" add -mminimal-toc to
8182       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8183       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8184
8185       archive_cmds=''
8186       hardcode_direct=yes
8187       hardcode_libdir_separator=':'
8188       link_all_deplibs=yes
8189
8190       if test "$GCC" = yes; then
8191         case $host_os in aix4.[012]|aix4.[012].*)
8192         # We only want to do this on AIX 4.2 and lower, the check
8193         # below for broken collect2 doesn't work under 4.3+
8194           collect2name=`${CC} -print-prog-name=collect2`
8195           if test -f "$collect2name" && \
8196            strings "$collect2name" | grep resolve_lib_name >/dev/null
8197           then
8198           # We have reworked collect2
8199           hardcode_direct=yes
8200           else
8201           # We have old collect2
8202           hardcode_direct=unsupported
8203           # It fails to find uninstalled libraries when the uninstalled
8204           # path is not listed in the libpath.  Setting hardcode_minus_L
8205           # to unsupported forces relinking
8206           hardcode_minus_L=yes
8207           hardcode_libdir_flag_spec='-L$libdir'
8208           hardcode_libdir_separator=
8209           fi
8210           ;;
8211         esac
8212         shared_flag='-shared'
8213         if test "$aix_use_runtimelinking" = yes; then
8214           shared_flag="$shared_flag "'${wl}-G'
8215         fi
8216       else
8217         # not using gcc
8218         if test "$host_cpu" = ia64; then
8219         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8220         # chokes on -Wl,-G. The following line is correct:
8221           shared_flag='-G'
8222         else
8223           if test "$aix_use_runtimelinking" = yes; then
8224             shared_flag='${wl}-G'
8225           else
8226             shared_flag='${wl}-bM:SRE'
8227           fi
8228         fi
8229       fi
8230
8231       # It seems that -bexpall does not export symbols beginning with
8232       # underscore (_), so it is better to generate a list of symbols to export.
8233       always_export_symbols=yes
8234       if test "$aix_use_runtimelinking" = yes; then
8235         # Warning - without using the other runtime loading flags (-brtl),
8236         # -berok will link without error, but may produce a broken library.
8237         allow_undefined_flag='-berok'
8238        # Determine the default libpath from the value encoded in an empty executable.
8239        cat >conftest.$ac_ext <<_ACEOF
8240 /* confdefs.h.  */
8241 _ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h.  */
8245
8246 int
8247 main ()
8248 {
8249
8250   ;
8251   return 0;
8252 }
8253 _ACEOF
8254 rm -f conftest.$ac_objext conftest$ac_exeext
8255 if { (ac_try="$ac_link"
8256 case "(($ac_try" in
8257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258   *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261   (eval "$ac_link") 2>conftest.er1
8262   ac_status=$?
8263   grep -v '^ *+' conftest.er1 >conftest.err
8264   rm -f conftest.er1
8265   cat conftest.err >&5
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); } && {
8268          test -z "$ac_c_werror_flag" ||
8269          test ! -s conftest.err
8270        } && test -s conftest$ac_exeext &&
8271        $as_test_x conftest$ac_exeext; then
8272
8273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8274 }'`
8275 # Check for a 64-bit object if we didn't find anything.
8276 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8277 }'`; fi
8278 else
8279   echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8281
8282
8283 fi
8284
8285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8286       conftest$ac_exeext conftest.$ac_ext
8287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8288
8289        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8290         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8291        else
8292         if test "$host_cpu" = ia64; then
8293           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8294           allow_undefined_flag="-z nodefs"
8295           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8296         else
8297          # Determine the default libpath from the value encoded in an empty executable.
8298          cat >conftest.$ac_ext <<_ACEOF
8299 /* confdefs.h.  */
8300 _ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h.  */
8304
8305 int
8306 main ()
8307 {
8308
8309   ;
8310   return 0;
8311 }
8312 _ACEOF
8313 rm -f conftest.$ac_objext conftest$ac_exeext
8314 if { (ac_try="$ac_link"
8315 case "(($ac_try" in
8316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317   *) ac_try_echo=$ac_try;;
8318 esac
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320   (eval "$ac_link") 2>conftest.er1
8321   ac_status=$?
8322   grep -v '^ *+' conftest.er1 >conftest.err
8323   rm -f conftest.er1
8324   cat conftest.err >&5
8325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326   (exit $ac_status); } && {
8327          test -z "$ac_c_werror_flag" ||
8328          test ! -s conftest.err
8329        } && test -s conftest$ac_exeext &&
8330        $as_test_x conftest$ac_exeext; then
8331
8332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8333 }'`
8334 # Check for a 64-bit object if we didn't find anything.
8335 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8336 }'`; fi
8337 else
8338   echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8340
8341
8342 fi
8343
8344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8345       conftest$ac_exeext conftest.$ac_ext
8346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8347
8348          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8349           # Warning - without using the other run time loading flags,
8350           # -berok will link without error, but may produce a broken library.
8351           no_undefined_flag=' ${wl}-bernotok'
8352           allow_undefined_flag=' ${wl}-berok'
8353           # Exported symbols can be pulled into shared objects from archives
8354           whole_archive_flag_spec='$convenience'
8355           archive_cmds_need_lc=yes
8356           # This is similar to how AIX traditionally builds its shared libraries.
8357           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8358         fi
8359       fi
8360       ;;
8361
8362     amigaos*)
8363       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8364       hardcode_libdir_flag_spec='-L$libdir'
8365       hardcode_minus_L=yes
8366       # see comment about different semantics on the GNU ld section
8367       ld_shlibs=no
8368       ;;
8369
8370     bsdi[45]*)
8371       export_dynamic_flag_spec=-rdynamic
8372       ;;
8373
8374     cygwin* | mingw* | pw32*)
8375       # When not using gcc, we currently assume that we are using
8376       # Microsoft Visual C++.
8377       # hardcode_libdir_flag_spec is actually meaningless, as there is
8378       # no search path for DLLs.
8379       hardcode_libdir_flag_spec=' '
8380       allow_undefined_flag=unsupported
8381       # Tell ltmain to make .lib files, not .a files.
8382       libext=lib
8383       # Tell ltmain to make .dll files, not .so files.
8384       shrext_cmds=".dll"
8385       # FIXME: Setting linknames here is a bad hack.
8386       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8387       # The linker will automatically build a .lib file if we build a DLL.
8388       old_archive_From_new_cmds='true'
8389       # FIXME: Should let the user specify the lib program.
8390       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8391       fix_srcfile_path='`cygpath -w "$srcfile"`'
8392       enable_shared_with_static_runtimes=yes
8393       ;;
8394
8395     darwin* | rhapsody*)
8396       case $host_os in
8397         rhapsody* | darwin1.[012])
8398          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8399          ;;
8400        *) # Darwin 1.3 on
8401          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8402            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8403          else
8404            case ${MACOSX_DEPLOYMENT_TARGET} in
8405              10.[012])
8406                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8407                ;;
8408              10.*)
8409                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8410                ;;
8411            esac
8412          fi
8413          ;;
8414       esac
8415       archive_cmds_need_lc=no
8416       hardcode_direct=no
8417       hardcode_automatic=yes
8418       hardcode_shlibpath_var=unsupported
8419       whole_archive_flag_spec=''
8420       link_all_deplibs=yes
8421     if test "$GCC" = yes ; then
8422         output_verbose_link_cmd='echo'
8423         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8424       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8425       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8426       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8427       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8428     else
8429       case $cc_basename in
8430         xlc*)
8431          output_verbose_link_cmd='echo'
8432          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8433          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8434           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8435          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8436           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8437           ;;
8438        *)
8439          ld_shlibs=no
8440           ;;
8441       esac
8442     fi
8443       ;;
8444
8445     dgux*)
8446       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447       hardcode_libdir_flag_spec='-L$libdir'
8448       hardcode_shlibpath_var=no
8449       ;;
8450
8451     freebsd1*)
8452       ld_shlibs=no
8453       ;;
8454
8455     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8456     # support.  Future versions do this automatically, but an explicit c++rt0.o
8457     # does not break anything, and helps significantly (at the cost of a little
8458     # extra space).
8459     freebsd2.2*)
8460       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8461       hardcode_libdir_flag_spec='-R$libdir'
8462       hardcode_direct=yes
8463       hardcode_shlibpath_var=no
8464       ;;
8465
8466     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8467     freebsd2*)
8468       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8469       hardcode_direct=yes
8470       hardcode_minus_L=yes
8471       hardcode_shlibpath_var=no
8472       ;;
8473
8474     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8475     freebsd* | dragonfly*)
8476       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8477       hardcode_libdir_flag_spec='-R$libdir'
8478       hardcode_direct=yes
8479       hardcode_shlibpath_var=no
8480       ;;
8481
8482     hpux9*)
8483       if test "$GCC" = yes; then
8484         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8485       else
8486         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8487       fi
8488       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8489       hardcode_libdir_separator=:
8490       hardcode_direct=yes
8491
8492       # hardcode_minus_L: Not really in the search PATH,
8493       # but as the default location of the library.
8494       hardcode_minus_L=yes
8495       export_dynamic_flag_spec='${wl}-E'
8496       ;;
8497
8498     hpux10*)
8499       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8500         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8501       else
8502         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8503       fi
8504       if test "$with_gnu_ld" = no; then
8505         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8506         hardcode_libdir_separator=:
8507
8508         hardcode_direct=yes
8509         export_dynamic_flag_spec='${wl}-E'
8510
8511         # hardcode_minus_L: Not really in the search PATH,
8512         # but as the default location of the library.
8513         hardcode_minus_L=yes
8514       fi
8515       ;;
8516
8517     hpux11*)
8518       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8519         case $host_cpu in
8520         hppa*64*)
8521           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8522           ;;
8523         ia64*)
8524           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8525           ;;
8526         *)
8527           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8528           ;;
8529         esac
8530       else
8531         case $host_cpu in
8532         hppa*64*)
8533           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8534           ;;
8535         ia64*)
8536           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8537           ;;
8538         *)
8539           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8540           ;;
8541         esac
8542       fi
8543       if test "$with_gnu_ld" = no; then
8544         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8545         hardcode_libdir_separator=:
8546
8547         case $host_cpu in
8548         hppa*64*|ia64*)
8549           hardcode_libdir_flag_spec_ld='+b $libdir'
8550           hardcode_direct=no
8551           hardcode_shlibpath_var=no
8552           ;;
8553         *)
8554           hardcode_direct=yes
8555           export_dynamic_flag_spec='${wl}-E'
8556
8557           # hardcode_minus_L: Not really in the search PATH,
8558           # but as the default location of the library.
8559           hardcode_minus_L=yes
8560           ;;
8561         esac
8562       fi
8563       ;;
8564
8565     irix5* | irix6* | nonstopux*)
8566       if test "$GCC" = yes; then
8567         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8568       else
8569         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8570         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8571       fi
8572       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8573       hardcode_libdir_separator=:
8574       link_all_deplibs=yes
8575       ;;
8576
8577     netbsd* | netbsdelf*-gnu)
8578       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8579         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8580       else
8581         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8582       fi
8583       hardcode_libdir_flag_spec='-R$libdir'
8584       hardcode_direct=yes
8585       hardcode_shlibpath_var=no
8586       ;;
8587
8588     newsos6)
8589       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8590       hardcode_direct=yes
8591       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8592       hardcode_libdir_separator=:
8593       hardcode_shlibpath_var=no
8594       ;;
8595
8596     openbsd*)
8597       hardcode_direct=yes
8598       hardcode_shlibpath_var=no
8599       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8600         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8601         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8602         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8603         export_dynamic_flag_spec='${wl}-E'
8604       else
8605        case $host_os in
8606          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8607            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8608            hardcode_libdir_flag_spec='-R$libdir'
8609            ;;
8610          *)
8611            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8612            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8613            ;;
8614        esac
8615       fi
8616       ;;
8617
8618     os2*)
8619       hardcode_libdir_flag_spec='-L$libdir'
8620       hardcode_minus_L=yes
8621       allow_undefined_flag=unsupported
8622       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8623       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8624       ;;
8625
8626     osf3*)
8627       if test "$GCC" = yes; then
8628         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8629         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8630       else
8631         allow_undefined_flag=' -expect_unresolved \*'
8632         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8633       fi
8634       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8635       hardcode_libdir_separator=:
8636       ;;
8637
8638     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8639       if test "$GCC" = yes; then
8640         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8641         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8642         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8643       else
8644         allow_undefined_flag=' -expect_unresolved \*'
8645         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8646         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8647         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8648
8649         # Both c and cxx compiler support -rpath directly
8650         hardcode_libdir_flag_spec='-rpath $libdir'
8651       fi
8652       hardcode_libdir_separator=:
8653       ;;
8654
8655     solaris*)
8656       no_undefined_flag=' -z text'
8657       if test "$GCC" = yes; then
8658         wlarc='${wl}'
8659         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8660         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8661           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8662       else
8663         wlarc=''
8664         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8665         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8666         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8667       fi
8668       hardcode_libdir_flag_spec='-R$libdir'
8669       hardcode_shlibpath_var=no
8670       case $host_os in
8671       solaris2.[0-5] | solaris2.[0-5].*) ;;
8672       *)
8673         # The compiler driver will combine linker options so we
8674         # cannot just pass the convience library names through
8675         # without $wl, iff we do not link with $LD.
8676         # Luckily, gcc supports the same syntax we need for Sun Studio.
8677         # Supported since Solaris 2.6 (maybe 2.5.1?)
8678         case $wlarc in
8679         '')
8680           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8681         *)
8682           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8683         esac ;;
8684       esac
8685       link_all_deplibs=yes
8686       ;;
8687
8688     sunos4*)
8689       if test "x$host_vendor" = xsequent; then
8690         # Use $CC to link under sequent, because it throws in some extra .o
8691         # files that make .init and .fini sections work.
8692         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8693       else
8694         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8695       fi
8696       hardcode_libdir_flag_spec='-L$libdir'
8697       hardcode_direct=yes
8698       hardcode_minus_L=yes
8699       hardcode_shlibpath_var=no
8700       ;;
8701
8702     sysv4)
8703       case $host_vendor in
8704         sni)
8705           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8706           hardcode_direct=yes # is this really true???
8707         ;;
8708         siemens)
8709           ## LD is ld it makes a PLAMLIB
8710           ## CC just makes a GrossModule.
8711           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8712           reload_cmds='$CC -r -o $output$reload_objs'
8713           hardcode_direct=no
8714         ;;
8715         motorola)
8716           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8717           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8718         ;;
8719       esac
8720       runpath_var='LD_RUN_PATH'
8721       hardcode_shlibpath_var=no
8722       ;;
8723
8724     sysv4.3*)
8725       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8726       hardcode_shlibpath_var=no
8727       export_dynamic_flag_spec='-Bexport'
8728       ;;
8729
8730     sysv4*MP*)
8731       if test -d /usr/nec; then
8732         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8733         hardcode_shlibpath_var=no
8734         runpath_var=LD_RUN_PATH
8735         hardcode_runpath_var=yes
8736         ld_shlibs=yes
8737       fi
8738       ;;
8739
8740     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8741       no_undefined_flag='${wl}-z,text'
8742       archive_cmds_need_lc=no
8743       hardcode_shlibpath_var=no
8744       runpath_var='LD_RUN_PATH'
8745
8746       if test "$GCC" = yes; then
8747         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8748         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8749       else
8750         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8751         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8752       fi
8753       ;;
8754
8755     sysv5* | sco3.2v5* | sco5v6*)
8756       # Note: We can NOT use -z defs as we might desire, because we do not
8757       # link with -lc, and that would cause any symbols used from libc to
8758       # always be unresolved, which means just about no library would
8759       # ever link correctly.  If we're not using GNU ld we use -z text
8760       # though, which does catch some bad symbols but isn't as heavy-handed
8761       # as -z defs.
8762       no_undefined_flag='${wl}-z,text'
8763       allow_undefined_flag='${wl}-z,nodefs'
8764       archive_cmds_need_lc=no
8765       hardcode_shlibpath_var=no
8766       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8767       hardcode_libdir_separator=':'
8768       link_all_deplibs=yes
8769       export_dynamic_flag_spec='${wl}-Bexport'
8770       runpath_var='LD_RUN_PATH'
8771
8772       if test "$GCC" = yes; then
8773         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8774         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8775       else
8776         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8777         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8778       fi
8779       ;;
8780
8781     uts4*)
8782       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8783       hardcode_libdir_flag_spec='-L$libdir'
8784       hardcode_shlibpath_var=no
8785       ;;
8786
8787     *)
8788       ld_shlibs=no
8789       ;;
8790     esac
8791   fi
8792
8793 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8794 echo "${ECHO_T}$ld_shlibs" >&6; }
8795 test "$ld_shlibs" = no && can_build_shared=no
8796
8797 #
8798 # Do we need to explicitly link libc?
8799 #
8800 case "x$archive_cmds_need_lc" in
8801 x|xyes)
8802   # Assume -lc should be added
8803   archive_cmds_need_lc=yes
8804
8805   if test "$enable_shared" = yes && test "$GCC" = yes; then
8806     case $archive_cmds in
8807     *'~'*)
8808       # FIXME: we may have to deal with multi-command sequences.
8809       ;;
8810     '$CC '*)
8811       # Test whether the compiler implicitly links with -lc since on some
8812       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8813       # to ld, don't add -lc before -lgcc.
8814       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8815 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8816       $rm conftest*
8817       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8818
8819       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8820   (eval $ac_compile) 2>&5
8821   ac_status=$?
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); } 2>conftest.err; then
8824         soname=conftest
8825         lib=conftest
8826         libobjs=conftest.$ac_objext
8827         deplibs=
8828         wl=$lt_prog_compiler_wl
8829         pic_flag=$lt_prog_compiler_pic
8830         compiler_flags=-v
8831         linker_flags=-v
8832         verstring=
8833         output_objdir=.
8834         libname=conftest
8835         lt_save_allow_undefined_flag=$allow_undefined_flag
8836         allow_undefined_flag=
8837         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8838   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8839   ac_status=$?
8840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841   (exit $ac_status); }
8842         then
8843           archive_cmds_need_lc=no
8844         else
8845           archive_cmds_need_lc=yes
8846         fi
8847         allow_undefined_flag=$lt_save_allow_undefined_flag
8848       else
8849         cat conftest.err 1>&5
8850       fi
8851       $rm conftest*
8852       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8853 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8854       ;;
8855     esac
8856   fi
8857   ;;
8858 esac
8859
8860 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8861 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8862 library_names_spec=
8863 libname_spec='lib$name'
8864 soname_spec=
8865 shrext_cmds=".so"
8866 postinstall_cmds=
8867 postuninstall_cmds=
8868 finish_cmds=
8869 finish_eval=
8870 shlibpath_var=
8871 shlibpath_overrides_runpath=unknown
8872 version_type=none
8873 dynamic_linker="$host_os ld.so"
8874 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8875 if test "$GCC" = yes; then
8876   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8877   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8878     # if the path contains ";" then we assume it to be the separator
8879     # otherwise default to the standard path separator (i.e. ":") - it is
8880     # assumed that no part of a normal pathname contains ";" but that should
8881     # okay in the real world where ";" in dirpaths is itself problematic.
8882     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8883   else
8884     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8885   fi
8886 else
8887   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8888 fi
8889 need_lib_prefix=unknown
8890 hardcode_into_libs=no
8891
8892 # when you set need_version to no, make sure it does not cause -set_version
8893 # flags to be left without arguments
8894 need_version=unknown
8895
8896 case $host_os in
8897 aix3*)
8898   version_type=linux
8899   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8900   shlibpath_var=LIBPATH
8901
8902   # AIX 3 has no versioning support, so we append a major version to the name.
8903   soname_spec='${libname}${release}${shared_ext}$major'
8904   ;;
8905
8906 aix4* | aix5*)
8907   version_type=linux
8908   need_lib_prefix=no
8909   need_version=no
8910   hardcode_into_libs=yes
8911   if test "$host_cpu" = ia64; then
8912     # AIX 5 supports IA64
8913     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8914     shlibpath_var=LD_LIBRARY_PATH
8915   else
8916     # With GCC up to 2.95.x, collect2 would create an import file
8917     # for dependence libraries.  The import file would start with
8918     # the line `#! .'.  This would cause the generated library to
8919     # depend on `.', always an invalid library.  This was fixed in
8920     # development snapshots of GCC prior to 3.0.
8921     case $host_os in
8922       aix4 | aix4.[01] | aix4.[01].*)
8923       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8924            echo ' yes '
8925            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8926         :
8927       else
8928         can_build_shared=no
8929       fi
8930       ;;
8931     esac
8932     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8933     # soname into executable. Probably we can add versioning support to
8934     # collect2, so additional links can be useful in future.
8935     if test "$aix_use_runtimelinking" = yes; then
8936       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8937       # instead of lib<name>.a to let people know that these are not
8938       # typical AIX shared libraries.
8939       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940     else
8941       # We preserve .a as extension for shared libraries through AIX4.2
8942       # and later when we are not doing run time linking.
8943       library_names_spec='${libname}${release}.a $libname.a'
8944       soname_spec='${libname}${release}${shared_ext}$major'
8945     fi
8946     shlibpath_var=LIBPATH
8947   fi
8948   ;;
8949
8950 amigaos*)
8951   library_names_spec='$libname.ixlibrary $libname.a'
8952   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8953   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8954   ;;
8955
8956 beos*)
8957   library_names_spec='${libname}${shared_ext}'
8958   dynamic_linker="$host_os ld.so"
8959   shlibpath_var=LIBRARY_PATH
8960   ;;
8961
8962 bsdi[45]*)
8963   version_type=linux
8964   need_version=no
8965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8966   soname_spec='${libname}${release}${shared_ext}$major'
8967   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8968   shlibpath_var=LD_LIBRARY_PATH
8969   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8970   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8971   # the default ld.so.conf also contains /usr/contrib/lib and
8972   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8973   # libtool to hard-code these into programs
8974   ;;
8975
8976 cygwin* | mingw* | pw32*)
8977   version_type=windows
8978   shrext_cmds=".dll"
8979   need_version=no
8980   need_lib_prefix=no
8981
8982   case $GCC,$host_os in
8983   yes,cygwin* | yes,mingw* | yes,pw32*)
8984     library_names_spec='$libname.dll.a'
8985     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8986     postinstall_cmds='base_file=`basename \${file}`~
8987       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8988       dldir=$destdir/`dirname \$dlpath`~
8989       test -d \$dldir || mkdir -p \$dldir~
8990       $install_prog $dir/$dlname \$dldir/$dlname~
8991       chmod a+x \$dldir/$dlname'
8992     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8993       dlpath=$dir/\$dldll~
8994        $rm \$dlpath'
8995     shlibpath_overrides_runpath=yes
8996
8997     case $host_os in
8998     cygwin*)
8999       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9000       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9001       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9002       ;;
9003     mingw*)
9004       # MinGW DLLs use traditional 'lib' prefix
9005       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9006       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9007       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9008         # It is most probably a Windows format PATH printed by
9009         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9010         # path with ; separators, and with drive letters. We can handle the
9011         # drive letters (cygwin fileutils understands them), so leave them,
9012         # especially as we might pass files found there to a mingw objdump,
9013         # which wouldn't understand a cygwinified path. Ahh.
9014         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9015       else
9016         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9017       fi
9018       ;;
9019     pw32*)
9020       # pw32 DLLs use 'pw' prefix rather than 'lib'
9021       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9022       ;;
9023     esac
9024     ;;
9025
9026   *)
9027     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9028     ;;
9029   esac
9030   dynamic_linker='Win32 ld.exe'
9031   # FIXME: first we should search . and the directory the executable is in
9032   shlibpath_var=PATH
9033   ;;
9034
9035 darwin* | rhapsody*)
9036   dynamic_linker="$host_os dyld"
9037   version_type=darwin
9038   need_lib_prefix=no
9039   need_version=no
9040   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9041   soname_spec='${libname}${release}${major}$shared_ext'
9042   shlibpath_overrides_runpath=yes
9043   shlibpath_var=DYLD_LIBRARY_PATH
9044   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9045   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9046   if test "$GCC" = yes; then
9047     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9048   else
9049     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9050   fi
9051   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9052   ;;
9053
9054 dgux*)
9055   version_type=linux
9056   need_lib_prefix=no
9057   need_version=no
9058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9059   soname_spec='${libname}${release}${shared_ext}$major'
9060   shlibpath_var=LD_LIBRARY_PATH
9061   ;;
9062
9063 freebsd1*)
9064   dynamic_linker=no
9065   ;;
9066
9067 freebsd* | dragonfly*)
9068   # DragonFly does not have aout.  When/if they implement a new
9069   # versioning mechanism, adjust this.
9070   if test -x /usr/bin/objformat; then
9071     objformat=`/usr/bin/objformat`
9072   else
9073     case $host_os in
9074     freebsd[123]*) objformat=aout ;;
9075     *) objformat=elf ;;
9076     esac
9077   fi
9078   version_type=freebsd-$objformat
9079   case $version_type in
9080     freebsd-elf*)
9081       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9082       need_version=no
9083       need_lib_prefix=no
9084       ;;
9085     freebsd-*)
9086       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9087       need_version=yes
9088       ;;
9089   esac
9090   shlibpath_var=LD_LIBRARY_PATH
9091   case $host_os in
9092   freebsd2*)
9093     shlibpath_overrides_runpath=yes
9094     ;;
9095   freebsd3.[01]* | freebsdelf3.[01]*)
9096     shlibpath_overrides_runpath=yes
9097     hardcode_into_libs=yes
9098     ;;
9099   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9100   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9101     shlibpath_overrides_runpath=no
9102     hardcode_into_libs=yes
9103     ;;
9104   freebsd*) # from 4.6 on
9105     shlibpath_overrides_runpath=yes
9106     hardcode_into_libs=yes
9107     ;;
9108   esac
9109   ;;
9110
9111 gnu*)
9112   version_type=linux
9113   need_lib_prefix=no
9114   need_version=no
9115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9116   soname_spec='${libname}${release}${shared_ext}$major'
9117   shlibpath_var=LD_LIBRARY_PATH
9118   hardcode_into_libs=yes
9119   ;;
9120
9121 hpux9* | hpux10* | hpux11*)
9122   # Give a soname corresponding to the major version so that dld.sl refuses to
9123   # link against other versions.
9124   version_type=sunos
9125   need_lib_prefix=no
9126   need_version=no
9127   case $host_cpu in
9128   ia64*)
9129     shrext_cmds='.so'
9130     hardcode_into_libs=yes
9131     dynamic_linker="$host_os dld.so"
9132     shlibpath_var=LD_LIBRARY_PATH
9133     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9134     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135     soname_spec='${libname}${release}${shared_ext}$major'
9136     if test "X$HPUX_IA64_MODE" = X32; then
9137       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9138     else
9139       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9140     fi
9141     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9142     ;;
9143    hppa*64*)
9144      shrext_cmds='.sl'
9145      hardcode_into_libs=yes
9146      dynamic_linker="$host_os dld.sl"
9147      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9148      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9149      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150      soname_spec='${libname}${release}${shared_ext}$major'
9151      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9152      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9153      ;;
9154    *)
9155     shrext_cmds='.sl'
9156     dynamic_linker="$host_os dld.sl"
9157     shlibpath_var=SHLIB_PATH
9158     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9159     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160     soname_spec='${libname}${release}${shared_ext}$major'
9161     ;;
9162   esac
9163   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9164   postinstall_cmds='chmod 555 $lib'
9165   ;;
9166
9167 interix3*)
9168   version_type=linux
9169   need_lib_prefix=no
9170   need_version=no
9171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9172   soname_spec='${libname}${release}${shared_ext}$major'
9173   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9174   shlibpath_var=LD_LIBRARY_PATH
9175   shlibpath_overrides_runpath=no
9176   hardcode_into_libs=yes
9177   ;;
9178
9179 irix5* | irix6* | nonstopux*)
9180   case $host_os in
9181     nonstopux*) version_type=nonstopux ;;
9182     *)
9183         if test "$lt_cv_prog_gnu_ld" = yes; then
9184                 version_type=linux
9185         else
9186                 version_type=irix
9187         fi ;;
9188   esac
9189   need_lib_prefix=no
9190   need_version=no
9191   soname_spec='${libname}${release}${shared_ext}$major'
9192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9193   case $host_os in
9194   irix5* | nonstopux*)
9195     libsuff= shlibsuff=
9196     ;;
9197   *)
9198     case $LD in # libtool.m4 will add one of these switches to LD
9199     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9200       libsuff= shlibsuff= libmagic=32-bit;;
9201     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9202       libsuff=32 shlibsuff=N32 libmagic=N32;;
9203     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9204       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9205     *) libsuff= shlibsuff= libmagic=never-match;;
9206     esac
9207     ;;
9208   esac
9209   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9210   shlibpath_overrides_runpath=no
9211   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9212   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9213   hardcode_into_libs=yes
9214   ;;
9215
9216 # No shared lib support for Linux oldld, aout, or coff.
9217 linux*oldld* | linux*aout* | linux*coff*)
9218   dynamic_linker=no
9219   ;;
9220
9221 # This must be Linux ELF.
9222 linux* | k*bsd*-gnu)
9223   version_type=linux
9224   need_lib_prefix=no
9225   need_version=no
9226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227   soname_spec='${libname}${release}${shared_ext}$major'
9228   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9229   shlibpath_var=LD_LIBRARY_PATH
9230   shlibpath_overrides_runpath=no
9231   # This implies no fast_install, which is unacceptable.
9232   # Some rework will be needed to allow for fast_install
9233   # before this can be enabled.
9234   hardcode_into_libs=yes
9235
9236   # Append ld.so.conf contents to the search path
9237   if test -f /etc/ld.so.conf; then
9238     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9239     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9240   fi
9241
9242   # We used to test for /lib/ld.so.1 and disable shared libraries on
9243   # powerpc, because MkLinux only supported shared libraries with the
9244   # GNU dynamic linker.  Since this was broken with cross compilers,
9245   # most powerpc-linux boxes support dynamic linking these days and
9246   # people can always --disable-shared, the test was removed, and we
9247   # assume the GNU/Linux dynamic linker is in use.
9248   dynamic_linker='GNU/Linux ld.so'
9249   ;;
9250
9251 netbsdelf*-gnu)
9252   version_type=linux
9253   need_lib_prefix=no
9254   need_version=no
9255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9256   soname_spec='${libname}${release}${shared_ext}$major'
9257   shlibpath_var=LD_LIBRARY_PATH
9258   shlibpath_overrides_runpath=no
9259   hardcode_into_libs=yes
9260   dynamic_linker='NetBSD ld.elf_so'
9261   ;;
9262
9263 netbsd*)
9264   version_type=sunos
9265   need_lib_prefix=no
9266   need_version=no
9267   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9268     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9269     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9270     dynamic_linker='NetBSD (a.out) ld.so'
9271   else
9272     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9273     soname_spec='${libname}${release}${shared_ext}$major'
9274     dynamic_linker='NetBSD ld.elf_so'
9275   fi
9276   shlibpath_var=LD_LIBRARY_PATH
9277   shlibpath_overrides_runpath=yes
9278   hardcode_into_libs=yes
9279   ;;
9280
9281 newsos6)
9282   version_type=linux
9283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9284   shlibpath_var=LD_LIBRARY_PATH
9285   shlibpath_overrides_runpath=yes
9286   ;;
9287
9288 nto-qnx*)
9289   version_type=linux
9290   need_lib_prefix=no
9291   need_version=no
9292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293   soname_spec='${libname}${release}${shared_ext}$major'
9294   shlibpath_var=LD_LIBRARY_PATH
9295   shlibpath_overrides_runpath=yes
9296   ;;
9297
9298 openbsd*)
9299   version_type=sunos
9300   sys_lib_dlsearch_path_spec="/usr/lib"
9301   need_lib_prefix=no
9302   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9303   case $host_os in
9304     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9305     *)                         need_version=no  ;;
9306   esac
9307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9308   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9309   shlibpath_var=LD_LIBRARY_PATH
9310   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9311     case $host_os in
9312       openbsd2.[89] | openbsd2.[89].*)
9313         shlibpath_overrides_runpath=no
9314         ;;
9315       *)
9316         shlibpath_overrides_runpath=yes
9317         ;;
9318       esac
9319   else
9320     shlibpath_overrides_runpath=yes
9321   fi
9322   ;;
9323
9324 os2*)
9325   libname_spec='$name'
9326   shrext_cmds=".dll"
9327   need_lib_prefix=no
9328   library_names_spec='$libname${shared_ext} $libname.a'
9329   dynamic_linker='OS/2 ld.exe'
9330   shlibpath_var=LIBPATH
9331   ;;
9332
9333 osf3* | osf4* | osf5*)
9334   version_type=osf
9335   need_lib_prefix=no
9336   need_version=no
9337   soname_spec='${libname}${release}${shared_ext}$major'
9338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339   shlibpath_var=LD_LIBRARY_PATH
9340   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9341   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9342   ;;
9343
9344 solaris*)
9345   version_type=linux
9346   need_lib_prefix=no
9347   need_version=no
9348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9349   soname_spec='${libname}${release}${shared_ext}$major'
9350   shlibpath_var=LD_LIBRARY_PATH
9351   shlibpath_overrides_runpath=yes
9352   hardcode_into_libs=yes
9353   # ldd complains unless libraries are executable
9354   postinstall_cmds='chmod +x $lib'
9355   ;;
9356
9357 sunos4*)
9358   version_type=sunos
9359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9360   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9361   shlibpath_var=LD_LIBRARY_PATH
9362   shlibpath_overrides_runpath=yes
9363   if test "$with_gnu_ld" = yes; then
9364     need_lib_prefix=no
9365   fi
9366   need_version=yes
9367   ;;
9368
9369 sysv4 | sysv4.3*)
9370   version_type=linux
9371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372   soname_spec='${libname}${release}${shared_ext}$major'
9373   shlibpath_var=LD_LIBRARY_PATH
9374   case $host_vendor in
9375     sni)
9376       shlibpath_overrides_runpath=no
9377       need_lib_prefix=no
9378       export_dynamic_flag_spec='${wl}-Blargedynsym'
9379       runpath_var=LD_RUN_PATH
9380       ;;
9381     siemens)
9382       need_lib_prefix=no
9383       ;;
9384     motorola)
9385       need_lib_prefix=no
9386       need_version=no
9387       shlibpath_overrides_runpath=no
9388       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9389       ;;
9390   esac
9391   ;;
9392
9393 sysv4*MP*)
9394   if test -d /usr/nec ;then
9395     version_type=linux
9396     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9397     soname_spec='$libname${shared_ext}.$major'
9398     shlibpath_var=LD_LIBRARY_PATH
9399   fi
9400   ;;
9401
9402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9403   version_type=freebsd-elf
9404   need_lib_prefix=no
9405   need_version=no
9406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9407   soname_spec='${libname}${release}${shared_ext}$major'
9408   shlibpath_var=LD_LIBRARY_PATH
9409   hardcode_into_libs=yes
9410   if test "$with_gnu_ld" = yes; then
9411     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9412     shlibpath_overrides_runpath=no
9413   else
9414     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9415     shlibpath_overrides_runpath=yes
9416     case $host_os in
9417       sco3.2v5*)
9418         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9419         ;;
9420     esac
9421   fi
9422   sys_lib_dlsearch_path_spec='/usr/lib'
9423   ;;
9424
9425 uts4*)
9426   version_type=linux
9427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428   soname_spec='${libname}${release}${shared_ext}$major'
9429   shlibpath_var=LD_LIBRARY_PATH
9430   ;;
9431
9432 *)
9433   dynamic_linker=no
9434   ;;
9435 esac
9436 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9437 echo "${ECHO_T}$dynamic_linker" >&6; }
9438 test "$dynamic_linker" = no && can_build_shared=no
9439
9440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9441 if test "$GCC" = yes; then
9442   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9443 fi
9444
9445 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9446 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9447 hardcode_action=
9448 if test -n "$hardcode_libdir_flag_spec" || \
9449    test -n "$runpath_var" || \
9450    test "X$hardcode_automatic" = "Xyes" ; then
9451
9452   # We can hardcode non-existant directories.
9453   if test "$hardcode_direct" != no &&
9454      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9455      # have to relink, otherwise we might link with an installed library
9456      # when we should be linking with a yet-to-be-installed one
9457      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9458      test "$hardcode_minus_L" != no; then
9459     # Linking always hardcodes the temporary library directory.
9460     hardcode_action=relink
9461   else
9462     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9463     hardcode_action=immediate
9464   fi
9465 else
9466   # We cannot hardcode anything, or else we can only hardcode existing
9467   # directories.
9468   hardcode_action=unsupported
9469 fi
9470 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9471 echo "${ECHO_T}$hardcode_action" >&6; }
9472
9473 if test "$hardcode_action" = relink; then
9474   # Fast installation is not supported
9475   enable_fast_install=no
9476 elif test "$shlibpath_overrides_runpath" = yes ||
9477      test "$enable_shared" = no; then
9478   # Fast installation is not necessary
9479   enable_fast_install=needless
9480 fi
9481
9482 striplib=
9483 old_striplib=
9484 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9485 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9486 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9487   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9488   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9489   { echo "$as_me:$LINENO: result: yes" >&5
9490 echo "${ECHO_T}yes" >&6; }
9491 else
9492 # FIXME - insert some real tests, host_os isn't really good enough
9493   case $host_os in
9494    darwin*)
9495        if test -n "$STRIP" ; then
9496          striplib="$STRIP -x"
9497          { echo "$as_me:$LINENO: result: yes" >&5
9498 echo "${ECHO_T}yes" >&6; }
9499        else
9500   { echo "$as_me:$LINENO: result: no" >&5
9501 echo "${ECHO_T}no" >&6; }
9502 fi
9503        ;;
9504    *)
9505   { echo "$as_me:$LINENO: result: no" >&5
9506 echo "${ECHO_T}no" >&6; }
9507     ;;
9508   esac
9509 fi
9510
9511 if test "x$enable_dlopen" != xyes; then
9512   enable_dlopen=unknown
9513   enable_dlopen_self=unknown
9514   enable_dlopen_self_static=unknown
9515 else
9516   lt_cv_dlopen=no
9517   lt_cv_dlopen_libs=
9518
9519   case $host_os in
9520   beos*)
9521     lt_cv_dlopen="load_add_on"
9522     lt_cv_dlopen_libs=
9523     lt_cv_dlopen_self=yes
9524     ;;
9525
9526   mingw* | pw32*)
9527     lt_cv_dlopen="LoadLibrary"
9528     lt_cv_dlopen_libs=
9529    ;;
9530
9531   cygwin*)
9532     lt_cv_dlopen="dlopen"
9533     lt_cv_dlopen_libs=
9534    ;;
9535
9536   darwin*)
9537   # if libdl is installed we need to link against it
9538     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9539 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9540 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543   ac_check_lib_save_LIBS=$LIBS
9544 LIBS="-ldl  $LIBS"
9545 cat >conftest.$ac_ext <<_ACEOF
9546 /* confdefs.h.  */
9547 _ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h.  */
9551
9552 /* Override any GCC internal prototype to avoid an error.
9553    Use char because int might match the return type of a GCC
9554    builtin and then its argument prototype would still apply.  */
9555 #ifdef __cplusplus
9556 extern "C"
9557 #endif
9558 char dlopen ();
9559 int
9560 main ()
9561 {
9562 return dlopen ();
9563   ;
9564   return 0;
9565 }
9566 _ACEOF
9567 rm -f conftest.$ac_objext conftest$ac_exeext
9568 if { (ac_try="$ac_link"
9569 case "(($ac_try" in
9570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571   *) ac_try_echo=$ac_try;;
9572 esac
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574   (eval "$ac_link") 2>conftest.er1
9575   ac_status=$?
9576   grep -v '^ *+' conftest.er1 >conftest.err
9577   rm -f conftest.er1
9578   cat conftest.err >&5
9579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); } && {
9581          test -z "$ac_c_werror_flag" ||
9582          test ! -s conftest.err
9583        } && test -s conftest$ac_exeext &&
9584        $as_test_x conftest$ac_exeext; then
9585   ac_cv_lib_dl_dlopen=yes
9586 else
9587   echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9589
9590         ac_cv_lib_dl_dlopen=no
9591 fi
9592
9593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9594       conftest$ac_exeext conftest.$ac_ext
9595 LIBS=$ac_check_lib_save_LIBS
9596 fi
9597 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9598 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9599 if test $ac_cv_lib_dl_dlopen = yes; then
9600   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9601 else
9602
9603     lt_cv_dlopen="dyld"
9604     lt_cv_dlopen_libs=
9605     lt_cv_dlopen_self=yes
9606
9607 fi
9608
9609    ;;
9610
9611   *)
9612     { echo "$as_me:$LINENO: checking for shl_load" >&5
9613 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9614 if test "${ac_cv_func_shl_load+set}" = set; then
9615   echo $ECHO_N "(cached) $ECHO_C" >&6
9616 else
9617   cat >conftest.$ac_ext <<_ACEOF
9618 /* confdefs.h.  */
9619 _ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h.  */
9623 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9625 #define shl_load innocuous_shl_load
9626
9627 /* System header to define __stub macros and hopefully few prototypes,
9628     which can conflict with char shl_load (); below.
9629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9630     <limits.h> exists even on freestanding compilers.  */
9631
9632 #ifdef __STDC__
9633 # include <limits.h>
9634 #else
9635 # include <assert.h>
9636 #endif
9637
9638 #undef shl_load
9639
9640 /* Override any GCC internal prototype to avoid an error.
9641    Use char because int might match the return type of a GCC
9642    builtin and then its argument prototype would still apply.  */
9643 #ifdef __cplusplus
9644 extern "C"
9645 #endif
9646 char shl_load ();
9647 /* The GNU C library defines this for functions which it implements
9648     to always fail with ENOSYS.  Some functions are actually named
9649     something starting with __ and the normal name is an alias.  */
9650 #if defined __stub_shl_load || defined __stub___shl_load
9651 choke me
9652 #endif
9653
9654 int
9655 main ()
9656 {
9657 return shl_load ();
9658   ;
9659   return 0;
9660 }
9661 _ACEOF
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (ac_try="$ac_link"
9664 case "(($ac_try" in
9665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666   *) ac_try_echo=$ac_try;;
9667 esac
9668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669   (eval "$ac_link") 2>conftest.er1
9670   ac_status=$?
9671   grep -v '^ *+' conftest.er1 >conftest.err
9672   rm -f conftest.er1
9673   cat conftest.err >&5
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); } && {
9676          test -z "$ac_c_werror_flag" ||
9677          test ! -s conftest.err
9678        } && test -s conftest$ac_exeext &&
9679        $as_test_x conftest$ac_exeext; then
9680   ac_cv_func_shl_load=yes
9681 else
9682   echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9684
9685         ac_cv_func_shl_load=no
9686 fi
9687
9688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9689       conftest$ac_exeext conftest.$ac_ext
9690 fi
9691 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9692 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9693 if test $ac_cv_func_shl_load = yes; then
9694   lt_cv_dlopen="shl_load"
9695 else
9696   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9697 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9698 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9699   echo $ECHO_N "(cached) $ECHO_C" >&6
9700 else
9701   ac_check_lib_save_LIBS=$LIBS
9702 LIBS="-ldld  $LIBS"
9703 cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h.  */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h.  */
9709
9710 /* Override any GCC internal prototype to avoid an error.
9711    Use char because int might match the return type of a GCC
9712    builtin and then its argument prototype would still apply.  */
9713 #ifdef __cplusplus
9714 extern "C"
9715 #endif
9716 char shl_load ();
9717 int
9718 main ()
9719 {
9720 return shl_load ();
9721   ;
9722   return 0;
9723 }
9724 _ACEOF
9725 rm -f conftest.$ac_objext conftest$ac_exeext
9726 if { (ac_try="$ac_link"
9727 case "(($ac_try" in
9728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729   *) ac_try_echo=$ac_try;;
9730 esac
9731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732   (eval "$ac_link") 2>conftest.er1
9733   ac_status=$?
9734   grep -v '^ *+' conftest.er1 >conftest.err
9735   rm -f conftest.er1
9736   cat conftest.err >&5
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); } && {
9739          test -z "$ac_c_werror_flag" ||
9740          test ! -s conftest.err
9741        } && test -s conftest$ac_exeext &&
9742        $as_test_x conftest$ac_exeext; then
9743   ac_cv_lib_dld_shl_load=yes
9744 else
9745   echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.$ac_ext >&5
9747
9748         ac_cv_lib_dld_shl_load=no
9749 fi
9750
9751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9752       conftest$ac_exeext conftest.$ac_ext
9753 LIBS=$ac_check_lib_save_LIBS
9754 fi
9755 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9756 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9757 if test $ac_cv_lib_dld_shl_load = yes; then
9758   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9759 else
9760   { echo "$as_me:$LINENO: checking for dlopen" >&5
9761 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9762 if test "${ac_cv_func_dlopen+set}" = set; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   cat >conftest.$ac_ext <<_ACEOF
9766 /* confdefs.h.  */
9767 _ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h.  */
9771 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9773 #define dlopen innocuous_dlopen
9774
9775 /* System header to define __stub macros and hopefully few prototypes,
9776     which can conflict with char dlopen (); below.
9777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9778     <limits.h> exists even on freestanding compilers.  */
9779
9780 #ifdef __STDC__
9781 # include <limits.h>
9782 #else
9783 # include <assert.h>
9784 #endif
9785
9786 #undef dlopen
9787
9788 /* Override any GCC internal prototype to avoid an error.
9789    Use char because int might match the return type of a GCC
9790    builtin and then its argument prototype would still apply.  */
9791 #ifdef __cplusplus
9792 extern "C"
9793 #endif
9794 char dlopen ();
9795 /* The GNU C library defines this for functions which it implements
9796     to always fail with ENOSYS.  Some functions are actually named
9797     something starting with __ and the normal name is an alias.  */
9798 #if defined __stub_dlopen || defined __stub___dlopen
9799 choke me
9800 #endif
9801
9802 int
9803 main ()
9804 {
9805 return dlopen ();
9806   ;
9807   return 0;
9808 }
9809 _ACEOF
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (ac_try="$ac_link"
9812 case "(($ac_try" in
9813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814   *) ac_try_echo=$ac_try;;
9815 esac
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817   (eval "$ac_link") 2>conftest.er1
9818   ac_status=$?
9819   grep -v '^ *+' conftest.er1 >conftest.err
9820   rm -f conftest.er1
9821   cat conftest.err >&5
9822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); } && {
9824          test -z "$ac_c_werror_flag" ||
9825          test ! -s conftest.err
9826        } && test -s conftest$ac_exeext &&
9827        $as_test_x conftest$ac_exeext; then
9828   ac_cv_func_dlopen=yes
9829 else
9830   echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9832
9833         ac_cv_func_dlopen=no
9834 fi
9835
9836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9837       conftest$ac_exeext conftest.$ac_ext
9838 fi
9839 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9840 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9841 if test $ac_cv_func_dlopen = yes; then
9842   lt_cv_dlopen="dlopen"
9843 else
9844   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9845 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9846 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9847   echo $ECHO_N "(cached) $ECHO_C" >&6
9848 else
9849   ac_check_lib_save_LIBS=$LIBS
9850 LIBS="-ldl  $LIBS"
9851 cat >conftest.$ac_ext <<_ACEOF
9852 /* confdefs.h.  */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h.  */
9857
9858 /* Override any GCC internal prototype to avoid an error.
9859    Use char because int might match the return type of a GCC
9860    builtin and then its argument prototype would still apply.  */
9861 #ifdef __cplusplus
9862 extern "C"
9863 #endif
9864 char dlopen ();
9865 int
9866 main ()
9867 {
9868 return dlopen ();
9869   ;
9870   return 0;
9871 }
9872 _ACEOF
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (ac_try="$ac_link"
9875 case "(($ac_try" in
9876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877   *) ac_try_echo=$ac_try;;
9878 esac
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880   (eval "$ac_link") 2>conftest.er1
9881   ac_status=$?
9882   grep -v '^ *+' conftest.er1 >conftest.err
9883   rm -f conftest.er1
9884   cat conftest.err >&5
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); } && {
9887          test -z "$ac_c_werror_flag" ||
9888          test ! -s conftest.err
9889        } && test -s conftest$ac_exeext &&
9890        $as_test_x conftest$ac_exeext; then
9891   ac_cv_lib_dl_dlopen=yes
9892 else
9893   echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9895
9896         ac_cv_lib_dl_dlopen=no
9897 fi
9898
9899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9900       conftest$ac_exeext conftest.$ac_ext
9901 LIBS=$ac_check_lib_save_LIBS
9902 fi
9903 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9904 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9905 if test $ac_cv_lib_dl_dlopen = yes; then
9906   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9907 else
9908   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9909 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9910 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9911   echo $ECHO_N "(cached) $ECHO_C" >&6
9912 else
9913   ac_check_lib_save_LIBS=$LIBS
9914 LIBS="-lsvld  $LIBS"
9915 cat >conftest.$ac_ext <<_ACEOF
9916 /* confdefs.h.  */
9917 _ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h.  */
9921
9922 /* Override any GCC internal prototype to avoid an error.
9923    Use char because int might match the return type of a GCC
9924    builtin and then its argument prototype would still apply.  */
9925 #ifdef __cplusplus
9926 extern "C"
9927 #endif
9928 char dlopen ();
9929 int
9930 main ()
9931 {
9932 return dlopen ();
9933   ;
9934   return 0;
9935 }
9936 _ACEOF
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (ac_try="$ac_link"
9939 case "(($ac_try" in
9940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941   *) ac_try_echo=$ac_try;;
9942 esac
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944   (eval "$ac_link") 2>conftest.er1
9945   ac_status=$?
9946   grep -v '^ *+' conftest.er1 >conftest.err
9947   rm -f conftest.er1
9948   cat conftest.err >&5
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); } && {
9951          test -z "$ac_c_werror_flag" ||
9952          test ! -s conftest.err
9953        } && test -s conftest$ac_exeext &&
9954        $as_test_x conftest$ac_exeext; then
9955   ac_cv_lib_svld_dlopen=yes
9956 else
9957   echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9959
9960         ac_cv_lib_svld_dlopen=no
9961 fi
9962
9963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9964       conftest$ac_exeext conftest.$ac_ext
9965 LIBS=$ac_check_lib_save_LIBS
9966 fi
9967 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9968 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9969 if test $ac_cv_lib_svld_dlopen = yes; then
9970   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9971 else
9972   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9973 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9974 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9975   echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977   ac_check_lib_save_LIBS=$LIBS
9978 LIBS="-ldld  $LIBS"
9979 cat >conftest.$ac_ext <<_ACEOF
9980 /* confdefs.h.  */
9981 _ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h.  */
9985
9986 /* Override any GCC internal prototype to avoid an error.
9987    Use char because int might match the return type of a GCC
9988    builtin and then its argument prototype would still apply.  */
9989 #ifdef __cplusplus
9990 extern "C"
9991 #endif
9992 char dld_link ();
9993 int
9994 main ()
9995 {
9996 return dld_link ();
9997   ;
9998   return 0;
9999 }
10000 _ACEOF
10001 rm -f conftest.$ac_objext conftest$ac_exeext
10002 if { (ac_try="$ac_link"
10003 case "(($ac_try" in
10004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005   *) ac_try_echo=$ac_try;;
10006 esac
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008   (eval "$ac_link") 2>conftest.er1
10009   ac_status=$?
10010   grep -v '^ *+' conftest.er1 >conftest.err
10011   rm -f conftest.er1
10012   cat conftest.err >&5
10013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014   (exit $ac_status); } && {
10015          test -z "$ac_c_werror_flag" ||
10016          test ! -s conftest.err
10017        } && test -s conftest$ac_exeext &&
10018        $as_test_x conftest$ac_exeext; then
10019   ac_cv_lib_dld_dld_link=yes
10020 else
10021   echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10023
10024         ac_cv_lib_dld_dld_link=no
10025 fi
10026
10027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10028       conftest$ac_exeext conftest.$ac_ext
10029 LIBS=$ac_check_lib_save_LIBS
10030 fi
10031 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10032 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10033 if test $ac_cv_lib_dld_dld_link = yes; then
10034   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10035 fi
10036
10037
10038 fi
10039
10040
10041 fi
10042
10043
10044 fi
10045
10046
10047 fi
10048
10049
10050 fi
10051
10052     ;;
10053   esac
10054
10055   if test "x$lt_cv_dlopen" != xno; then
10056     enable_dlopen=yes
10057   else
10058     enable_dlopen=no
10059   fi
10060
10061   case $lt_cv_dlopen in
10062   dlopen)
10063     save_CPPFLAGS="$CPPFLAGS"
10064     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10065
10066     save_LDFLAGS="$LDFLAGS"
10067     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10068
10069     save_LIBS="$LIBS"
10070     LIBS="$lt_cv_dlopen_libs $LIBS"
10071
10072     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10073 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10074 if test "${lt_cv_dlopen_self+set}" = set; then
10075   echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077           if test "$cross_compiling" = yes; then :
10078   lt_cv_dlopen_self=cross
10079 else
10080   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10081   lt_status=$lt_dlunknown
10082   cat > conftest.$ac_ext <<EOF
10083 #line 10083 "configure"
10084 #include "confdefs.h"
10085
10086 #if HAVE_DLFCN_H
10087 #include <dlfcn.h>
10088 #endif
10089
10090 #include <stdio.h>
10091
10092 #ifdef RTLD_GLOBAL
10093 #  define LT_DLGLOBAL           RTLD_GLOBAL
10094 #else
10095 #  ifdef DL_GLOBAL
10096 #    define LT_DLGLOBAL         DL_GLOBAL
10097 #  else
10098 #    define LT_DLGLOBAL         0
10099 #  endif
10100 #endif
10101
10102 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10103    find out it does not work in some platform. */
10104 #ifndef LT_DLLAZY_OR_NOW
10105 #  ifdef RTLD_LAZY
10106 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10107 #  else
10108 #    ifdef DL_LAZY
10109 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10110 #    else
10111 #      ifdef RTLD_NOW
10112 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10113 #      else
10114 #        ifdef DL_NOW
10115 #          define LT_DLLAZY_OR_NOW      DL_NOW
10116 #        else
10117 #          define LT_DLLAZY_OR_NOW      0
10118 #        endif
10119 #      endif
10120 #    endif
10121 #  endif
10122 #endif
10123
10124 #ifdef __cplusplus
10125 extern "C" void exit (int);
10126 #endif
10127
10128 void fnord() { int i=42;}
10129 int main ()
10130 {
10131   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10132   int status = $lt_dlunknown;
10133
10134   if (self)
10135     {
10136       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10137       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10138       /* dlclose (self); */
10139     }
10140   else
10141     puts (dlerror ());
10142
10143     exit (status);
10144 }
10145 EOF
10146   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147   (eval $ac_link) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10151     (./conftest; exit; ) >&5 2>/dev/null
10152     lt_status=$?
10153     case x$lt_status in
10154       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10155       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10156       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10157     esac
10158   else :
10159     # compilation failed
10160     lt_cv_dlopen_self=no
10161   fi
10162 fi
10163 rm -fr conftest*
10164
10165
10166 fi
10167 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10168 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10169
10170     if test "x$lt_cv_dlopen_self" = xyes; then
10171       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10172       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10173 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10174 if test "${lt_cv_dlopen_self_static+set}" = set; then
10175   echo $ECHO_N "(cached) $ECHO_C" >&6
10176 else
10177           if test "$cross_compiling" = yes; then :
10178   lt_cv_dlopen_self_static=cross
10179 else
10180   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10181   lt_status=$lt_dlunknown
10182   cat > conftest.$ac_ext <<EOF
10183 #line 10183 "configure"
10184 #include "confdefs.h"
10185
10186 #if HAVE_DLFCN_H
10187 #include <dlfcn.h>
10188 #endif
10189
10190 #include <stdio.h>
10191
10192 #ifdef RTLD_GLOBAL
10193 #  define LT_DLGLOBAL           RTLD_GLOBAL
10194 #else
10195 #  ifdef DL_GLOBAL
10196 #    define LT_DLGLOBAL         DL_GLOBAL
10197 #  else
10198 #    define LT_DLGLOBAL         0
10199 #  endif
10200 #endif
10201
10202 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10203    find out it does not work in some platform. */
10204 #ifndef LT_DLLAZY_OR_NOW
10205 #  ifdef RTLD_LAZY
10206 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10207 #  else
10208 #    ifdef DL_LAZY
10209 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10210 #    else
10211 #      ifdef RTLD_NOW
10212 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10213 #      else
10214 #        ifdef DL_NOW
10215 #          define LT_DLLAZY_OR_NOW      DL_NOW
10216 #        else
10217 #          define LT_DLLAZY_OR_NOW      0
10218 #        endif
10219 #      endif
10220 #    endif
10221 #  endif
10222 #endif
10223
10224 #ifdef __cplusplus
10225 extern "C" void exit (int);
10226 #endif
10227
10228 void fnord() { int i=42;}
10229 int main ()
10230 {
10231   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10232   int status = $lt_dlunknown;
10233
10234   if (self)
10235     {
10236       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10237       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10238       /* dlclose (self); */
10239     }
10240   else
10241     puts (dlerror ());
10242
10243     exit (status);
10244 }
10245 EOF
10246   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10247   (eval $ac_link) 2>&5
10248   ac_status=$?
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10251     (./conftest; exit; ) >&5 2>/dev/null
10252     lt_status=$?
10253     case x$lt_status in
10254       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10255       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10256       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10257     esac
10258   else :
10259     # compilation failed
10260     lt_cv_dlopen_self_static=no
10261   fi
10262 fi
10263 rm -fr conftest*
10264
10265
10266 fi
10267 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10268 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10269     fi
10270
10271     CPPFLAGS="$save_CPPFLAGS"
10272     LDFLAGS="$save_LDFLAGS"
10273     LIBS="$save_LIBS"
10274     ;;
10275   esac
10276
10277   case $lt_cv_dlopen_self in
10278   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10279   *) enable_dlopen_self=unknown ;;
10280   esac
10281
10282   case $lt_cv_dlopen_self_static in
10283   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10284   *) enable_dlopen_self_static=unknown ;;
10285   esac
10286 fi
10287
10288
10289 # Report which library types will actually be built
10290 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10291 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10292 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10293 echo "${ECHO_T}$can_build_shared" >&6; }
10294
10295 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10296 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10297 test "$can_build_shared" = "no" && enable_shared=no
10298
10299 # On AIX, shared libraries and static libraries use the same namespace, and
10300 # are all built from PIC.
10301 case $host_os in
10302 aix3*)
10303   test "$enable_shared" = yes && enable_static=no
10304   if test -n "$RANLIB"; then
10305     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10306     postinstall_cmds='$RANLIB $lib'
10307   fi
10308   ;;
10309
10310 aix4* | aix5*)
10311   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10312     test "$enable_shared" = yes && enable_static=no
10313   fi
10314     ;;
10315 esac
10316 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10317 echo "${ECHO_T}$enable_shared" >&6; }
10318
10319 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10320 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10321 # Make sure either enable_shared or enable_static is yes.
10322 test "$enable_shared" = yes || enable_static=yes
10323 { echo "$as_me:$LINENO: result: $enable_static" >&5
10324 echo "${ECHO_T}$enable_static" >&6; }
10325
10326 # The else clause should only fire when bootstrapping the
10327 # libtool distribution, otherwise you forgot to ship ltmain.sh
10328 # with your package, and you will get complaints that there are
10329 # no rules to generate ltmain.sh.
10330 if test -f "$ltmain"; then
10331   # See if we are running on zsh, and set the options which allow our commands through
10332   # without removal of \ escapes.
10333   if test -n "${ZSH_VERSION+set}" ; then
10334     setopt NO_GLOB_SUBST
10335   fi
10336   # Now quote all the things that may contain metacharacters while being
10337   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10338   # variables and quote the copies for generation of the libtool script.
10339   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10340     SED SHELL STRIP \
10341     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10342     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10343     deplibs_check_method reload_flag reload_cmds need_locks \
10344     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10345     lt_cv_sys_global_symbol_to_c_name_address \
10346     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10347     old_postinstall_cmds old_postuninstall_cmds \
10348     compiler \
10349     CC \
10350     LD \
10351     lt_prog_compiler_wl \
10352     lt_prog_compiler_pic \
10353     lt_prog_compiler_static \
10354     lt_prog_compiler_no_builtin_flag \
10355     export_dynamic_flag_spec \
10356     thread_safe_flag_spec \
10357     whole_archive_flag_spec \
10358     enable_shared_with_static_runtimes \
10359     old_archive_cmds \
10360     old_archive_from_new_cmds \
10361     predep_objects \
10362     postdep_objects \
10363     predeps \
10364     postdeps \
10365     compiler_lib_search_path \
10366     archive_cmds \
10367     archive_expsym_cmds \
10368     postinstall_cmds \
10369     postuninstall_cmds \
10370     old_archive_from_expsyms_cmds \
10371     allow_undefined_flag \
10372     no_undefined_flag \
10373     export_symbols_cmds \
10374     hardcode_libdir_flag_spec \
10375     hardcode_libdir_flag_spec_ld \
10376     hardcode_libdir_separator \
10377     hardcode_automatic \
10378     module_cmds \
10379     module_expsym_cmds \
10380     lt_cv_prog_compiler_c_o \
10381     exclude_expsyms \
10382     include_expsyms; do
10383
10384     case $var in
10385     old_archive_cmds | \
10386     old_archive_from_new_cmds | \
10387     archive_cmds | \
10388     archive_expsym_cmds | \
10389     module_cmds | \
10390     module_expsym_cmds | \
10391     old_archive_from_expsyms_cmds | \
10392     export_symbols_cmds | \
10393     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10394     postinstall_cmds | postuninstall_cmds | \
10395     old_postinstall_cmds | old_postuninstall_cmds | \
10396     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10397       # Double-quote double-evaled strings.
10398       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10399       ;;
10400     *)
10401       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10402       ;;
10403     esac
10404   done
10405
10406   case $lt_echo in
10407   *'\$0 --fallback-echo"')
10408     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10409     ;;
10410   esac
10411
10412 cfgfile="${ofile}T"
10413   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10414   $rm -f "$cfgfile"
10415   { echo "$as_me:$LINENO: creating $ofile" >&5
10416 echo "$as_me: creating $ofile" >&6;}
10417
10418   cat <<__EOF__ >> "$cfgfile"
10419 #! $SHELL
10420
10421 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10422 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10423 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10424 #
10425 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10426 # Free Software Foundation, Inc.
10427 #
10428 # This file is part of GNU Libtool:
10429 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10430 #
10431 # This program is free software; you can redistribute it and/or modify
10432 # it under the terms of the GNU General Public License as published by
10433 # the Free Software Foundation; either version 2 of the License, or
10434 # (at your option) any later version.
10435 #
10436 # This program is distributed in the hope that it will be useful, but
10437 # WITHOUT ANY WARRANTY; without even the implied warranty of
10438 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10439 # General Public License for more details.
10440 #
10441 # You should have received a copy of the GNU General Public License
10442 # along with this program; if not, write to the Free Software
10443 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10444 #
10445 # As a special exception to the GNU General Public License, if you
10446 # distribute this file as part of a program that contains a
10447 # configuration script generated by Autoconf, you may include it under
10448 # the same distribution terms that you use for the rest of that program.
10449
10450 # A sed program that does not truncate output.
10451 SED=$lt_SED
10452
10453 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10454 Xsed="$SED -e 1s/^X//"
10455
10456 # The HP-UX ksh and POSIX shell print the target directory to stdout
10457 # if CDPATH is set.
10458 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10459
10460 # The names of the tagged configurations supported by this script.
10461 available_tags=
10462
10463 # ### BEGIN LIBTOOL CONFIG
10464
10465 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10466
10467 # Shell to use when invoking shell scripts.
10468 SHELL=$lt_SHELL
10469
10470 # Whether or not to build shared libraries.
10471 build_libtool_libs=$enable_shared
10472
10473 # Whether or not to build static libraries.
10474 build_old_libs=$enable_static
10475
10476 # Whether or not to add -lc for building shared libraries.
10477 build_libtool_need_lc=$archive_cmds_need_lc
10478
10479 # Whether or not to disallow shared libs when runtime libs are static
10480 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10481
10482 # Whether or not to optimize for fast installation.
10483 fast_install=$enable_fast_install
10484
10485 # The host system.
10486 host_alias=$host_alias
10487 host=$host
10488 host_os=$host_os
10489
10490 # The build system.
10491 build_alias=$build_alias
10492 build=$build
10493 build_os=$build_os
10494
10495 # An echo program that does not interpret backslashes.
10496 echo=$lt_echo
10497
10498 # The archiver.
10499 AR=$lt_AR
10500 AR_FLAGS=$lt_AR_FLAGS
10501
10502 # A C compiler.
10503 LTCC=$lt_LTCC
10504
10505 # LTCC compiler flags.
10506 LTCFLAGS=$lt_LTCFLAGS
10507
10508 # A language-specific compiler.
10509 CC=$lt_compiler
10510
10511 # Is the compiler the GNU C compiler?
10512 with_gcc=$GCC
10513
10514 # An ERE matcher.
10515 EGREP=$lt_EGREP
10516
10517 # The linker used to build libraries.
10518 LD=$lt_LD
10519
10520 # Whether we need hard or soft links.
10521 LN_S=$lt_LN_S
10522
10523 # A BSD-compatible nm program.
10524 NM=$lt_NM
10525
10526 # A symbol stripping program
10527 STRIP=$lt_STRIP
10528
10529 # Used to examine libraries when file_magic_cmd begins "file"
10530 MAGIC_CMD=$MAGIC_CMD
10531
10532 # Used on cygwin: DLL creation program.
10533 DLLTOOL="$DLLTOOL"
10534
10535 # Used on cygwin: object dumper.
10536 OBJDUMP="$OBJDUMP"
10537
10538 # Used on cygwin: assembler.
10539 AS="$AS"
10540
10541 # The name of the directory that contains temporary libtool files.
10542 objdir=$objdir
10543
10544 # How to create reloadable object files.
10545 reload_flag=$lt_reload_flag
10546 reload_cmds=$lt_reload_cmds
10547
10548 # How to pass a linker flag through the compiler.
10549 wl=$lt_lt_prog_compiler_wl
10550
10551 # Object file suffix (normally "o").
10552 objext="$ac_objext"
10553
10554 # Old archive suffix (normally "a").
10555 libext="$libext"
10556
10557 # Shared library suffix (normally ".so").
10558 shrext_cmds='$shrext_cmds'
10559
10560 # Executable file suffix (normally "").
10561 exeext="$exeext"
10562
10563 # Additional compiler flags for building library objects.
10564 pic_flag=$lt_lt_prog_compiler_pic
10565 pic_mode=$pic_mode
10566
10567 # What is the maximum length of a command?
10568 max_cmd_len=$lt_cv_sys_max_cmd_len
10569
10570 # Does compiler simultaneously support -c and -o options?
10571 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10572
10573 # Must we lock files when doing compilation?
10574 need_locks=$lt_need_locks
10575
10576 # Do we need the lib prefix for modules?
10577 need_lib_prefix=$need_lib_prefix
10578
10579 # Do we need a version for libraries?
10580 need_version=$need_version
10581
10582 # Whether dlopen is supported.
10583 dlopen_support=$enable_dlopen
10584
10585 # Whether dlopen of programs is supported.
10586 dlopen_self=$enable_dlopen_self
10587
10588 # Whether dlopen of statically linked programs is supported.
10589 dlopen_self_static=$enable_dlopen_self_static
10590
10591 # Compiler flag to prevent dynamic linking.
10592 link_static_flag=$lt_lt_prog_compiler_static
10593
10594 # Compiler flag to turn off builtin functions.
10595 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10596
10597 # Compiler flag to allow reflexive dlopens.
10598 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10599
10600 # Compiler flag to generate shared objects directly from archives.
10601 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10602
10603 # Compiler flag to generate thread-safe objects.
10604 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10605
10606 # Library versioning type.
10607 version_type=$version_type
10608
10609 # Format of library name prefix.
10610 libname_spec=$lt_libname_spec
10611
10612 # List of archive names.  First name is the real one, the rest are links.
10613 # The last name is the one that the linker finds with -lNAME.
10614 library_names_spec=$lt_library_names_spec
10615
10616 # The coded name of the library, if different from the real name.
10617 soname_spec=$lt_soname_spec
10618
10619 # Commands used to build and install an old-style archive.
10620 RANLIB=$lt_RANLIB
10621 old_archive_cmds=$lt_old_archive_cmds
10622 old_postinstall_cmds=$lt_old_postinstall_cmds
10623 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10624
10625 # Create an old-style archive from a shared archive.
10626 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10627
10628 # Create a temporary old-style archive to link instead of a shared archive.
10629 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10630
10631 # Commands used to build and install a shared archive.
10632 archive_cmds=$lt_archive_cmds
10633 archive_expsym_cmds=$lt_archive_expsym_cmds
10634 postinstall_cmds=$lt_postinstall_cmds
10635 postuninstall_cmds=$lt_postuninstall_cmds
10636
10637 # Commands used to build a loadable module (assumed same as above if empty)
10638 module_cmds=$lt_module_cmds
10639 module_expsym_cmds=$lt_module_expsym_cmds
10640
10641 # Commands to strip libraries.
10642 old_striplib=$lt_old_striplib
10643 striplib=$lt_striplib
10644
10645 # Dependencies to place before the objects being linked to create a
10646 # shared library.
10647 predep_objects=$lt_predep_objects
10648
10649 # Dependencies to place after the objects being linked to create a
10650 # shared library.
10651 postdep_objects=$lt_postdep_objects
10652
10653 # Dependencies to place before the objects being linked to create a
10654 # shared library.
10655 predeps=$lt_predeps
10656
10657 # Dependencies to place after the objects being linked to create a
10658 # shared library.
10659 postdeps=$lt_postdeps
10660
10661 # The library search path used internally by the compiler when linking
10662 # a shared library.
10663 compiler_lib_search_path=$lt_compiler_lib_search_path
10664
10665 # Method to check whether dependent libraries are shared objects.
10666 deplibs_check_method=$lt_deplibs_check_method
10667
10668 # Command to use when deplibs_check_method == file_magic.
10669 file_magic_cmd=$lt_file_magic_cmd
10670
10671 # Flag that allows shared libraries with undefined symbols to be built.
10672 allow_undefined_flag=$lt_allow_undefined_flag
10673
10674 # Flag that forces no undefined symbols.
10675 no_undefined_flag=$lt_no_undefined_flag
10676
10677 # Commands used to finish a libtool library installation in a directory.
10678 finish_cmds=$lt_finish_cmds
10679
10680 # Same as above, but a single script fragment to be evaled but not shown.
10681 finish_eval=$lt_finish_eval
10682
10683 # Take the output of nm and produce a listing of raw symbols and C names.
10684 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10685
10686 # Transform the output of nm in a proper C declaration
10687 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10688
10689 # Transform the output of nm in a C name address pair
10690 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10691
10692 # This is the shared library runtime path variable.
10693 runpath_var=$runpath_var
10694
10695 # This is the shared library path variable.
10696 shlibpath_var=$shlibpath_var
10697
10698 # Is shlibpath searched before the hard-coded library search path?
10699 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10700
10701 # How to hardcode a shared library path into an executable.
10702 hardcode_action=$hardcode_action
10703
10704 # Whether we should hardcode library paths into libraries.
10705 hardcode_into_libs=$hardcode_into_libs
10706
10707 # Flag to hardcode \$libdir into a binary during linking.
10708 # This must work even if \$libdir does not exist.
10709 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10710
10711 # If ld is used when linking, flag to hardcode \$libdir into
10712 # a binary during linking. This must work even if \$libdir does
10713 # not exist.
10714 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10715
10716 # Whether we need a single -rpath flag with a separated argument.
10717 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10718
10719 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10720 # resulting binary.
10721 hardcode_direct=$hardcode_direct
10722
10723 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10724 # resulting binary.
10725 hardcode_minus_L=$hardcode_minus_L
10726
10727 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10728 # the resulting binary.
10729 hardcode_shlibpath_var=$hardcode_shlibpath_var
10730
10731 # Set to yes if building a shared library automatically hardcodes DIR into the library
10732 # and all subsequent libraries and executables linked against it.
10733 hardcode_automatic=$hardcode_automatic
10734
10735 # Variables whose values should be saved in libtool wrapper scripts and
10736 # restored at relink time.
10737 variables_saved_for_relink="$variables_saved_for_relink"
10738
10739 # Whether libtool must link a program against all its dependency libraries.
10740 link_all_deplibs=$link_all_deplibs
10741
10742 # Compile-time system search path for libraries
10743 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10744
10745 # Run-time system search path for libraries
10746 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10747
10748 # Fix the shell variable \$srcfile for the compiler.
10749 fix_srcfile_path="$fix_srcfile_path"
10750
10751 # Set to yes if exported symbols are required.
10752 always_export_symbols=$always_export_symbols
10753
10754 # The commands to list exported symbols.
10755 export_symbols_cmds=$lt_export_symbols_cmds
10756
10757 # The commands to extract the exported symbol list from a shared archive.
10758 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10759
10760 # Symbols that should not be listed in the preloaded symbols.
10761 exclude_expsyms=$lt_exclude_expsyms
10762
10763 # Symbols that must always be exported.
10764 include_expsyms=$lt_include_expsyms
10765
10766 # ### END LIBTOOL CONFIG
10767
10768 __EOF__
10769
10770
10771   case $host_os in
10772   aix3*)
10773     cat <<\EOF >> "$cfgfile"
10774
10775 # AIX sometimes has problems with the GCC collect2 program.  For some
10776 # reason, if we set the COLLECT_NAMES environment variable, the problems
10777 # vanish in a puff of smoke.
10778 if test "X${COLLECT_NAMES+set}" != Xset; then
10779   COLLECT_NAMES=
10780   export COLLECT_NAMES
10781 fi
10782 EOF
10783     ;;
10784   esac
10785
10786   # We use sed instead of cat because bash on DJGPP gets confused if
10787   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10788   # text mode, it properly converts lines to CR/LF.  This bash problem
10789   # is reportedly fixed, but why not run on old versions too?
10790   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10791
10792   mv -f "$cfgfile" "$ofile" || \
10793     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10794   chmod +x "$ofile"
10795
10796 else
10797   # If there is no Makefile yet, we rely on a make rule to execute
10798   # `config.status --recheck' to rerun these tests and create the
10799   # libtool script then.
10800   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10801   if test -f "$ltmain_in"; then
10802     test -f Makefile && make "$ltmain"
10803   fi
10804 fi
10805
10806
10807 ac_ext=c
10808 ac_cpp='$CPP $CPPFLAGS'
10809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10812
10813 CC="$lt_save_CC"
10814
10815
10816 # Check whether --with-tags was given.
10817 if test "${with_tags+set}" = set; then
10818   withval=$with_tags; tagnames="$withval"
10819 fi
10820
10821
10822 if test -f "$ltmain" && test -n "$tagnames"; then
10823   if test ! -f "${ofile}"; then
10824     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10825 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10826   fi
10827
10828   if test -z "$LTCC"; then
10829     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10830     if test -z "$LTCC"; then
10831       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10832 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10833     else
10834       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10835 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10836     fi
10837   fi
10838   if test -z "$LTCFLAGS"; then
10839     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10840   fi
10841
10842   # Extract list of available tagged configurations in $ofile.
10843   # Note that this assumes the entire list is on one line.
10844   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10845
10846   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10847   for tagname in $tagnames; do
10848     IFS="$lt_save_ifs"
10849     # Check whether tagname contains only valid characters
10850     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10851     "") ;;
10852     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10853 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10854    { (exit 1); exit 1; }; }
10855         ;;
10856     esac
10857
10858     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10859     then
10860       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10861 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10862    { (exit 1); exit 1; }; }
10863     fi
10864
10865     # Update the list of available tags.
10866     if test -n "$tagname"; then
10867       echo appending configuration tag \"$tagname\" to $ofile
10868
10869       case $tagname in
10870       CXX)
10871         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10872             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10873             (test "X$CXX" != "Xg++"))) ; then
10874           ac_ext=cpp
10875 ac_cpp='$CXXCPP $CPPFLAGS'
10876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10879
10880
10881
10882
10883 archive_cmds_need_lc_CXX=no
10884 allow_undefined_flag_CXX=
10885 always_export_symbols_CXX=no
10886 archive_expsym_cmds_CXX=
10887 export_dynamic_flag_spec_CXX=
10888 hardcode_direct_CXX=no
10889 hardcode_libdir_flag_spec_CXX=
10890 hardcode_libdir_flag_spec_ld_CXX=
10891 hardcode_libdir_separator_CXX=
10892 hardcode_minus_L_CXX=no
10893 hardcode_shlibpath_var_CXX=unsupported
10894 hardcode_automatic_CXX=no
10895 module_cmds_CXX=
10896 module_expsym_cmds_CXX=
10897 link_all_deplibs_CXX=unknown
10898 old_archive_cmds_CXX=$old_archive_cmds
10899 no_undefined_flag_CXX=
10900 whole_archive_flag_spec_CXX=
10901 enable_shared_with_static_runtimes_CXX=no
10902
10903 # Dependencies to place before and after the object being linked:
10904 predep_objects_CXX=
10905 postdep_objects_CXX=
10906 predeps_CXX=
10907 postdeps_CXX=
10908 compiler_lib_search_path_CXX=
10909
10910 # Source file extension for C++ test sources.
10911 ac_ext=cpp
10912
10913 # Object file extension for compiled C++ test sources.
10914 objext=o
10915 objext_CXX=$objext
10916
10917 # Code to be used in simple compile tests
10918 lt_simple_compile_test_code="int some_variable = 0;\n"
10919
10920 # Code to be used in simple link tests
10921 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10922
10923 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10924
10925 # If no C compiler was specified, use CC.
10926 LTCC=${LTCC-"$CC"}
10927
10928 # If no C compiler flags were specified, use CFLAGS.
10929 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10930
10931 # Allow CC to be a program name with arguments.
10932 compiler=$CC
10933
10934
10935 # save warnings/boilerplate of simple test code
10936 ac_outfile=conftest.$ac_objext
10937 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10938 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10939 _lt_compiler_boilerplate=`cat conftest.err`
10940 $rm conftest*
10941
10942 ac_outfile=conftest.$ac_objext
10943 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10944 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10945 _lt_linker_boilerplate=`cat conftest.err`
10946 $rm conftest*
10947
10948
10949 # Allow CC to be a program name with arguments.
10950 lt_save_CC=$CC
10951 lt_save_LD=$LD
10952 lt_save_GCC=$GCC
10953 GCC=$GXX
10954 lt_save_with_gnu_ld=$with_gnu_ld
10955 lt_save_path_LD=$lt_cv_path_LD
10956 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10957   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10958 else
10959   $as_unset lt_cv_prog_gnu_ld
10960 fi
10961 if test -n "${lt_cv_path_LDCXX+set}"; then
10962   lt_cv_path_LD=$lt_cv_path_LDCXX
10963 else
10964   $as_unset lt_cv_path_LD
10965 fi
10966 test -z "${LDCXX+set}" || LD=$LDCXX
10967 CC=${CXX-"c++"}
10968 compiler=$CC
10969 compiler_CXX=$CC
10970 for cc_temp in $compiler""; do
10971   case $cc_temp in
10972     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10973     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10974     \-*) ;;
10975     *) break;;
10976   esac
10977 done
10978 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10979
10980
10981 # We don't want -fno-exception wen compiling C++ code, so set the
10982 # no_builtin_flag separately
10983 if test "$GXX" = yes; then
10984   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10985 else
10986   lt_prog_compiler_no_builtin_flag_CXX=
10987 fi
10988
10989 if test "$GXX" = yes; then
10990   # Set up default GNU C++ configuration
10991
10992
10993 # Check whether --with-gnu-ld was given.
10994 if test "${with_gnu_ld+set}" = set; then
10995   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10996 else
10997   with_gnu_ld=no
10998 fi
10999
11000 ac_prog=ld
11001 if test "$GCC" = yes; then
11002   # Check if gcc -print-prog-name=ld gives a path.
11003   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11004 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11005   case $host in
11006   *-*-mingw*)
11007     # gcc leaves a trailing carriage return which upsets mingw
11008     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11009   *)
11010     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11011   esac
11012   case $ac_prog in
11013     # Accept absolute paths.
11014     [\\/]* | ?:[\\/]*)
11015       re_direlt='/[^/][^/]*/\.\./'
11016       # Canonicalize the pathname of ld
11017       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11018       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11019         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11020       done
11021       test -z "$LD" && LD="$ac_prog"
11022       ;;
11023   "")
11024     # If it fails, then pretend we aren't using GCC.
11025     ac_prog=ld
11026     ;;
11027   *)
11028     # If it is relative, then search for the first ld in PATH.
11029     with_gnu_ld=unknown
11030     ;;
11031   esac
11032 elif test "$with_gnu_ld" = yes; then
11033   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11034 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11035 else
11036   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11037 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11038 fi
11039 if test "${lt_cv_path_LD+set}" = set; then
11040   echo $ECHO_N "(cached) $ECHO_C" >&6
11041 else
11042   if test -z "$LD"; then
11043   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11044   for ac_dir in $PATH; do
11045     IFS="$lt_save_ifs"
11046     test -z "$ac_dir" && ac_dir=.
11047     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11048       lt_cv_path_LD="$ac_dir/$ac_prog"
11049       # Check to see if the program is GNU ld.  I'd rather use --version,
11050       # but apparently some variants of GNU ld only accept -v.
11051       # Break only if it was the GNU/non-GNU ld that we prefer.
11052       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11053       *GNU* | *'with BFD'*)
11054         test "$with_gnu_ld" != no && break
11055         ;;
11056       *)
11057         test "$with_gnu_ld" != yes && break
11058         ;;
11059       esac
11060     fi
11061   done
11062   IFS="$lt_save_ifs"
11063 else
11064   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11065 fi
11066 fi
11067
11068 LD="$lt_cv_path_LD"
11069 if test -n "$LD"; then
11070   { echo "$as_me:$LINENO: result: $LD" >&5
11071 echo "${ECHO_T}$LD" >&6; }
11072 else
11073   { echo "$as_me:$LINENO: result: no" >&5
11074 echo "${ECHO_T}no" >&6; }
11075 fi
11076 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11077 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11078    { (exit 1); exit 1; }; }
11079 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11080 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11081 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11082   echo $ECHO_N "(cached) $ECHO_C" >&6
11083 else
11084   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11085 case `$LD -v 2>&1 </dev/null` in
11086 *GNU* | *'with BFD'*)
11087   lt_cv_prog_gnu_ld=yes
11088   ;;
11089 *)
11090   lt_cv_prog_gnu_ld=no
11091   ;;
11092 esac
11093 fi
11094 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11095 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11096 with_gnu_ld=$lt_cv_prog_gnu_ld
11097
11098
11099
11100   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11101   # archiving commands below assume that GNU ld is being used.
11102   if test "$with_gnu_ld" = yes; then
11103     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11104     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11105
11106     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11107     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11108
11109     # If archive_cmds runs LD, not CC, wlarc should be empty
11110     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11111     #     investigate it a little bit more. (MM)
11112     wlarc='${wl}'
11113
11114     # ancient GNU ld didn't support --whole-archive et. al.
11115     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11116         grep 'no-whole-archive' > /dev/null; then
11117       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11118     else
11119       whole_archive_flag_spec_CXX=
11120     fi
11121   else
11122     with_gnu_ld=no
11123     wlarc=
11124
11125     # A generic and very simple default shared library creation
11126     # command for GNU C++ for the case where it uses the native
11127     # linker, instead of GNU ld.  If possible, this setting should
11128     # overridden to take advantage of the native linker features on
11129     # the platform it is being used on.
11130     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11131   fi
11132
11133   # Commands to make compiler produce verbose output that lists
11134   # what "hidden" libraries, object files and flags are used when
11135   # linking a shared library.
11136   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11137
11138 else
11139   GXX=no
11140   with_gnu_ld=no
11141   wlarc=
11142 fi
11143
11144 # PORTME: fill in a description of your system's C++ link characteristics
11145 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11146 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11147 ld_shlibs_CXX=yes
11148 case $host_os in
11149   aix3*)
11150     # FIXME: insert proper C++ library support
11151     ld_shlibs_CXX=no
11152     ;;
11153   aix4* | aix5*)
11154     if test "$host_cpu" = ia64; then
11155       # On IA64, the linker does run time linking by default, so we don't
11156       # have to do anything special.
11157       aix_use_runtimelinking=no
11158       exp_sym_flag='-Bexport'
11159       no_entry_flag=""
11160     else
11161       aix_use_runtimelinking=no
11162
11163       # Test if we are trying to use run time linking or normal
11164       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11165       # need to do runtime linking.
11166       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11167         for ld_flag in $LDFLAGS; do
11168           case $ld_flag in
11169           *-brtl*)
11170             aix_use_runtimelinking=yes
11171             break
11172             ;;
11173           esac
11174         done
11175         ;;
11176       esac
11177
11178       exp_sym_flag='-bexport'
11179       no_entry_flag='-bnoentry'
11180     fi
11181
11182     # When large executables or shared objects are built, AIX ld can
11183     # have problems creating the table of contents.  If linking a library
11184     # or program results in "error TOC overflow" add -mminimal-toc to
11185     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11186     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11187
11188     archive_cmds_CXX=''
11189     hardcode_direct_CXX=yes
11190     hardcode_libdir_separator_CXX=':'
11191     link_all_deplibs_CXX=yes
11192
11193     if test "$GXX" = yes; then
11194       case $host_os in aix4.[012]|aix4.[012].*)
11195       # We only want to do this on AIX 4.2 and lower, the check
11196       # below for broken collect2 doesn't work under 4.3+
11197         collect2name=`${CC} -print-prog-name=collect2`
11198         if test -f "$collect2name" && \
11199            strings "$collect2name" | grep resolve_lib_name >/dev/null
11200         then
11201           # We have reworked collect2
11202           hardcode_direct_CXX=yes
11203         else
11204           # We have old collect2
11205           hardcode_direct_CXX=unsupported
11206           # It fails to find uninstalled libraries when the uninstalled
11207           # path is not listed in the libpath.  Setting hardcode_minus_L
11208           # to unsupported forces relinking
11209           hardcode_minus_L_CXX=yes
11210           hardcode_libdir_flag_spec_CXX='-L$libdir'
11211           hardcode_libdir_separator_CXX=
11212         fi
11213         ;;
11214       esac
11215       shared_flag='-shared'
11216       if test "$aix_use_runtimelinking" = yes; then
11217         shared_flag="$shared_flag "'${wl}-G'
11218       fi
11219     else
11220       # not using gcc
11221       if test "$host_cpu" = ia64; then
11222         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11223         # chokes on -Wl,-G. The following line is correct:
11224         shared_flag='-G'
11225       else
11226         if test "$aix_use_runtimelinking" = yes; then
11227           shared_flag='${wl}-G'
11228         else
11229           shared_flag='${wl}-bM:SRE'
11230         fi
11231       fi
11232     fi
11233
11234     # It seems that -bexpall does not export symbols beginning with
11235     # underscore (_), so it is better to generate a list of symbols to export.
11236     always_export_symbols_CXX=yes
11237     if test "$aix_use_runtimelinking" = yes; then
11238       # Warning - without using the other runtime loading flags (-brtl),
11239       # -berok will link without error, but may produce a broken library.
11240       allow_undefined_flag_CXX='-berok'
11241       # Determine the default libpath from the value encoded in an empty executable.
11242       cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h.  */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h.  */
11248
11249 int
11250 main ()
11251 {
11252
11253   ;
11254   return 0;
11255 }
11256 _ACEOF
11257 rm -f conftest.$ac_objext conftest$ac_exeext
11258 if { (ac_try="$ac_link"
11259 case "(($ac_try" in
11260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261   *) ac_try_echo=$ac_try;;
11262 esac
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264   (eval "$ac_link") 2>conftest.er1
11265   ac_status=$?
11266   grep -v '^ *+' conftest.er1 >conftest.err
11267   rm -f conftest.er1
11268   cat conftest.err >&5
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); } && {
11271          test -z "$ac_cxx_werror_flag" ||
11272          test ! -s conftest.err
11273        } && test -s conftest$ac_exeext &&
11274        $as_test_x conftest$ac_exeext; then
11275
11276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11277 }'`
11278 # Check for a 64-bit object if we didn't find anything.
11279 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11280 }'`; fi
11281 else
11282   echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11284
11285
11286 fi
11287
11288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11289       conftest$ac_exeext conftest.$ac_ext
11290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11291
11292       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11293
11294       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11295      else
11296       if test "$host_cpu" = ia64; then
11297         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11298         allow_undefined_flag_CXX="-z nodefs"
11299         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11300       else
11301         # Determine the default libpath from the value encoded in an empty executable.
11302         cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h.  */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h.  */
11308
11309 int
11310 main ()
11311 {
11312
11313   ;
11314   return 0;
11315 }
11316 _ACEOF
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (ac_try="$ac_link"
11319 case "(($ac_try" in
11320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321   *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324   (eval "$ac_link") 2>conftest.er1
11325   ac_status=$?
11326   grep -v '^ *+' conftest.er1 >conftest.err
11327   rm -f conftest.er1
11328   cat conftest.err >&5
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } && {
11331          test -z "$ac_cxx_werror_flag" ||
11332          test ! -s conftest.err
11333        } && test -s conftest$ac_exeext &&
11334        $as_test_x conftest$ac_exeext; then
11335
11336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11337 }'`
11338 # Check for a 64-bit object if we didn't find anything.
11339 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11340 }'`; fi
11341 else
11342   echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11344
11345
11346 fi
11347
11348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11349       conftest$ac_exeext conftest.$ac_ext
11350 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11351
11352         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11353         # Warning - without using the other run time loading flags,
11354         # -berok will link without error, but may produce a broken library.
11355         no_undefined_flag_CXX=' ${wl}-bernotok'
11356         allow_undefined_flag_CXX=' ${wl}-berok'
11357         # Exported symbols can be pulled into shared objects from archives
11358         whole_archive_flag_spec_CXX='$convenience'
11359         archive_cmds_need_lc_CXX=yes
11360         # This is similar to how AIX traditionally builds its shared libraries.
11361         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11362       fi
11363     fi
11364     ;;
11365
11366   beos*)
11367     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11368       allow_undefined_flag_CXX=unsupported
11369       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11370       # support --undefined.  This deserves some investigation.  FIXME
11371       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11372     else
11373       ld_shlibs_CXX=no
11374     fi
11375     ;;
11376
11377   chorus*)
11378     case $cc_basename in
11379       *)
11380         # FIXME: insert proper C++ library support
11381         ld_shlibs_CXX=no
11382         ;;
11383     esac
11384     ;;
11385
11386   cygwin* | mingw* | pw32*)
11387     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11388     # as there is no search path for DLLs.
11389     hardcode_libdir_flag_spec_CXX='-L$libdir'
11390     allow_undefined_flag_CXX=unsupported
11391     always_export_symbols_CXX=no
11392     enable_shared_with_static_runtimes_CXX=yes
11393
11394     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11395       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11396       # If the export-symbols file already is a .def file (1st line
11397       # is EXPORTS), use it as is; otherwise, prepend...
11398       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11399         cp $export_symbols $output_objdir/$soname.def;
11400       else
11401         echo EXPORTS > $output_objdir/$soname.def;
11402         cat $export_symbols >> $output_objdir/$soname.def;
11403       fi~
11404       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11405     else
11406       ld_shlibs_CXX=no
11407     fi
11408   ;;
11409       darwin* | rhapsody*)
11410         case $host_os in
11411         rhapsody* | darwin1.[012])
11412          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11413          ;;
11414        *) # Darwin 1.3 on
11415          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11416            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11417          else
11418            case ${MACOSX_DEPLOYMENT_TARGET} in
11419              10.[012])
11420                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11421                ;;
11422              10.*)
11423                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11424                ;;
11425            esac
11426          fi
11427          ;;
11428         esac
11429       archive_cmds_need_lc_CXX=no
11430       hardcode_direct_CXX=no
11431       hardcode_automatic_CXX=yes
11432       hardcode_shlibpath_var_CXX=unsupported
11433       whole_archive_flag_spec_CXX=''
11434       link_all_deplibs_CXX=yes
11435
11436     if test "$GXX" = yes ; then
11437       lt_int_apple_cc_single_mod=no
11438       output_verbose_link_cmd='echo'
11439       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11440        lt_int_apple_cc_single_mod=yes
11441       fi
11442       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11443        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11444       else
11445           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11446         fi
11447         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11448         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11449           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11450             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11451           else
11452             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11453           fi
11454             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11455       else
11456       case $cc_basename in
11457         xlc*)
11458          output_verbose_link_cmd='echo'
11459           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11460           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11461           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11462           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11463           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11464           ;;
11465        *)
11466          ld_shlibs_CXX=no
11467           ;;
11468       esac
11469       fi
11470         ;;
11471
11472   dgux*)
11473     case $cc_basename in
11474       ec++*)
11475         # FIXME: insert proper C++ library support
11476         ld_shlibs_CXX=no
11477         ;;
11478       ghcx*)
11479         # Green Hills C++ Compiler
11480         # FIXME: insert proper C++ library support
11481         ld_shlibs_CXX=no
11482         ;;
11483       *)
11484         # FIXME: insert proper C++ library support
11485         ld_shlibs_CXX=no
11486         ;;
11487     esac
11488     ;;
11489   freebsd[12]*)
11490     # C++ shared libraries reported to be fairly broken before switch to ELF
11491     ld_shlibs_CXX=no
11492     ;;
11493   freebsd-elf*)
11494     archive_cmds_need_lc_CXX=no
11495     ;;
11496   freebsd* | dragonfly*)
11497     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11498     # conventions
11499     ld_shlibs_CXX=yes
11500     ;;
11501   gnu*)
11502     ;;
11503   hpux9*)
11504     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11505     hardcode_libdir_separator_CXX=:
11506     export_dynamic_flag_spec_CXX='${wl}-E'
11507     hardcode_direct_CXX=yes
11508     hardcode_minus_L_CXX=yes # Not in the search PATH,
11509                                 # but as the default
11510                                 # location of the library.
11511
11512     case $cc_basename in
11513     CC*)
11514       # FIXME: insert proper C++ library support
11515       ld_shlibs_CXX=no
11516       ;;
11517     aCC*)
11518       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11519       # Commands to make compiler produce verbose output that lists
11520       # what "hidden" libraries, object files and flags are used when
11521       # linking a shared library.
11522       #
11523       # There doesn't appear to be a way to prevent this compiler from
11524       # explicitly linking system object files so we need to strip them
11525       # from the output so that they don't get included in the library
11526       # dependencies.
11527       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11528       ;;
11529     *)
11530       if test "$GXX" = yes; then
11531         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11532       else
11533         # FIXME: insert proper C++ library support
11534         ld_shlibs_CXX=no
11535       fi
11536       ;;
11537     esac
11538     ;;
11539   hpux10*|hpux11*)
11540     if test $with_gnu_ld = no; then
11541       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11542       hardcode_libdir_separator_CXX=:
11543
11544       case $host_cpu in
11545       hppa*64*|ia64*)
11546         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11547         ;;
11548       *)
11549         export_dynamic_flag_spec_CXX='${wl}-E'
11550         ;;
11551       esac
11552     fi
11553     case $host_cpu in
11554     hppa*64*|ia64*)
11555       hardcode_direct_CXX=no
11556       hardcode_shlibpath_var_CXX=no
11557       ;;
11558     *)
11559       hardcode_direct_CXX=yes
11560       hardcode_minus_L_CXX=yes # Not in the search PATH,
11561                                               # but as the default
11562                                               # location of the library.
11563       ;;
11564     esac
11565
11566     case $cc_basename in
11567       CC*)
11568         # FIXME: insert proper C++ library support
11569         ld_shlibs_CXX=no
11570         ;;
11571       aCC*)
11572         case $host_cpu in
11573         hppa*64*)
11574           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11575           ;;
11576         ia64*)
11577           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11578           ;;
11579         *)
11580           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11581           ;;
11582         esac
11583         # Commands to make compiler produce verbose output that lists
11584         # what "hidden" libraries, object files and flags are used when
11585         # linking a shared library.
11586         #
11587         # There doesn't appear to be a way to prevent this compiler from
11588         # explicitly linking system object files so we need to strip them
11589         # from the output so that they don't get included in the library
11590         # dependencies.
11591         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11592         ;;
11593       *)
11594         if test "$GXX" = yes; then
11595           if test $with_gnu_ld = no; then
11596             case $host_cpu in
11597             hppa*64*)
11598               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11599               ;;
11600             ia64*)
11601               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11602               ;;
11603             *)
11604               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11605               ;;
11606             esac
11607           fi
11608         else
11609           # FIXME: insert proper C++ library support
11610           ld_shlibs_CXX=no
11611         fi
11612         ;;
11613     esac
11614     ;;
11615   interix3*)
11616     hardcode_direct_CXX=no
11617     hardcode_shlibpath_var_CXX=no
11618     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11619     export_dynamic_flag_spec_CXX='${wl}-E'
11620     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11621     # Instead, shared libraries are loaded at an image base (0x10000000 by
11622     # default) and relocated if they conflict, which is a slow very memory
11623     # consuming and fragmenting process.  To avoid this, we pick a random,
11624     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11625     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11626     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11627     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11628     ;;
11629   irix5* | irix6*)
11630     case $cc_basename in
11631       CC*)
11632         # SGI C++
11633         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11634
11635         # Archives containing C++ object files must be created using
11636         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11637         # necessary to make sure instantiated templates are included
11638         # in the archive.
11639         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11640         ;;
11641       *)
11642         if test "$GXX" = yes; then
11643           if test "$with_gnu_ld" = no; then
11644             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11645           else
11646             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11647           fi
11648         fi
11649         link_all_deplibs_CXX=yes
11650         ;;
11651     esac
11652     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11653     hardcode_libdir_separator_CXX=:
11654     ;;
11655   linux* | k*bsd*-gnu)
11656     case $cc_basename in
11657       KCC*)
11658         # Kuck and Associates, Inc. (KAI) C++ Compiler
11659
11660         # KCC will only create a shared library if the output file
11661         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11662         # to its proper name (with version) after linking.
11663         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11664         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11665         # Commands to make compiler produce verbose output that lists
11666         # what "hidden" libraries, object files and flags are used when
11667         # linking a shared library.
11668         #
11669         # There doesn't appear to be a way to prevent this compiler from
11670         # explicitly linking system object files so we need to strip them
11671         # from the output so that they don't get included in the library
11672         # dependencies.
11673         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11674
11675         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11676         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11677
11678         # Archives containing C++ object files must be created using
11679         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11680         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11681         ;;
11682       icpc*)
11683         # Intel C++
11684         with_gnu_ld=yes
11685         # version 8.0 and above of icpc choke on multiply defined symbols
11686         # if we add $predep_objects and $postdep_objects, however 7.1 and
11687         # earlier do not add the objects themselves.
11688         case `$CC -V 2>&1` in
11689         *"Version 7."*)
11690           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11691           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11692           ;;
11693         *)  # Version 8.0 or newer
11694           tmp_idyn=
11695           case $host_cpu in
11696             ia64*) tmp_idyn=' -i_dynamic';;
11697           esac
11698           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11699           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11700           ;;
11701         esac
11702         archive_cmds_need_lc_CXX=no
11703         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11704         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11705         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11706         ;;
11707       pgCC*)
11708         # Portland Group C++ compiler
11709         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11710         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11711
11712         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11713         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11714         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11715         ;;
11716       cxx*)
11717         # Compaq C++
11718         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11719         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11720
11721         runpath_var=LD_RUN_PATH
11722         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11723         hardcode_libdir_separator_CXX=:
11724
11725         # Commands to make compiler produce verbose output that lists
11726         # what "hidden" libraries, object files and flags are used when
11727         # linking a shared library.
11728         #
11729         # There doesn't appear to be a way to prevent this compiler from
11730         # explicitly linking system object files so we need to strip them
11731         # from the output so that they don't get included in the library
11732         # dependencies.
11733         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11734         ;;
11735     esac
11736     ;;
11737   lynxos*)
11738     # FIXME: insert proper C++ library support
11739     ld_shlibs_CXX=no
11740     ;;
11741   m88k*)
11742     # FIXME: insert proper C++ library support
11743     ld_shlibs_CXX=no
11744     ;;
11745   mvs*)
11746     case $cc_basename in
11747       cxx*)
11748         # FIXME: insert proper C++ library support
11749         ld_shlibs_CXX=no
11750         ;;
11751       *)
11752         # FIXME: insert proper C++ library support
11753         ld_shlibs_CXX=no
11754         ;;
11755     esac
11756     ;;
11757   netbsd* | netbsdelf*-gnu)
11758     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11759       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11760       wlarc=
11761       hardcode_libdir_flag_spec_CXX='-R$libdir'
11762       hardcode_direct_CXX=yes
11763       hardcode_shlibpath_var_CXX=no
11764     fi
11765     # Workaround some broken pre-1.5 toolchains
11766     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11767     ;;
11768   openbsd2*)
11769     # C++ shared libraries are fairly broken
11770     ld_shlibs_CXX=no
11771     ;;
11772   openbsd*)
11773     hardcode_direct_CXX=yes
11774     hardcode_shlibpath_var_CXX=no
11775     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11776     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11777     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11778       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11779       export_dynamic_flag_spec_CXX='${wl}-E'
11780       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11781     fi
11782     output_verbose_link_cmd='echo'
11783     ;;
11784   osf3*)
11785     case $cc_basename in
11786       KCC*)
11787         # Kuck and Associates, Inc. (KAI) C++ Compiler
11788
11789         # KCC will only create a shared library if the output file
11790         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11791         # to its proper name (with version) after linking.
11792         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11793
11794         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11795         hardcode_libdir_separator_CXX=:
11796
11797         # Archives containing C++ object files must be created using
11798         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11799         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11800
11801         ;;
11802       RCC*)
11803         # Rational C++ 2.4.1
11804         # FIXME: insert proper C++ library support
11805         ld_shlibs_CXX=no
11806         ;;
11807       cxx*)
11808         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11809         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11810
11811         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11812         hardcode_libdir_separator_CXX=:
11813
11814         # Commands to make compiler produce verbose output that lists
11815         # what "hidden" libraries, object files and flags are used when
11816         # linking a shared library.
11817         #
11818         # There doesn't appear to be a way to prevent this compiler from
11819         # explicitly linking system object files so we need to strip them
11820         # from the output so that they don't get included in the library
11821         # dependencies.
11822         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11823         ;;
11824       *)
11825         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11826           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11827           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11828
11829           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11830           hardcode_libdir_separator_CXX=:
11831
11832           # Commands to make compiler produce verbose output that lists
11833           # what "hidden" libraries, object files and flags are used when
11834           # linking a shared library.
11835           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11836
11837         else
11838           # FIXME: insert proper C++ library support
11839           ld_shlibs_CXX=no
11840         fi
11841         ;;
11842     esac
11843     ;;
11844   osf4* | osf5*)
11845     case $cc_basename in
11846       KCC*)
11847         # Kuck and Associates, Inc. (KAI) C++ Compiler
11848
11849         # KCC will only create a shared library if the output file
11850         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11851         # to its proper name (with version) after linking.
11852         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11853
11854         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11855         hardcode_libdir_separator_CXX=:
11856
11857         # Archives containing C++ object files must be created using
11858         # the KAI C++ compiler.
11859         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11860         ;;
11861       RCC*)
11862         # Rational C++ 2.4.1
11863         # FIXME: insert proper C++ library support
11864         ld_shlibs_CXX=no
11865         ;;
11866       cxx*)
11867         allow_undefined_flag_CXX=' -expect_unresolved \*'
11868         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11869         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11870           echo "-hidden">> $lib.exp~
11871           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11872           $rm $lib.exp'
11873
11874         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11875         hardcode_libdir_separator_CXX=:
11876
11877         # Commands to make compiler produce verbose output that lists
11878         # what "hidden" libraries, object files and flags are used when
11879         # linking a shared library.
11880         #
11881         # There doesn't appear to be a way to prevent this compiler from
11882         # explicitly linking system object files so we need to strip them
11883         # from the output so that they don't get included in the library
11884         # dependencies.
11885         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11886         ;;
11887       *)
11888         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11889           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11890          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11891
11892           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11893           hardcode_libdir_separator_CXX=:
11894
11895           # Commands to make compiler produce verbose output that lists
11896           # what "hidden" libraries, object files and flags are used when
11897           # linking a shared library.
11898           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11899
11900         else
11901           # FIXME: insert proper C++ library support
11902           ld_shlibs_CXX=no
11903         fi
11904         ;;
11905     esac
11906     ;;
11907   psos*)
11908     # FIXME: insert proper C++ library support
11909     ld_shlibs_CXX=no
11910     ;;
11911   sunos4*)
11912     case $cc_basename in
11913       CC*)
11914         # Sun C++ 4.x
11915         # FIXME: insert proper C++ library support
11916         ld_shlibs_CXX=no
11917         ;;
11918       lcc*)
11919         # Lucid
11920         # FIXME: insert proper C++ library support
11921         ld_shlibs_CXX=no
11922         ;;
11923       *)
11924         # FIXME: insert proper C++ library support
11925         ld_shlibs_CXX=no
11926         ;;
11927     esac
11928     ;;
11929   solaris*)
11930     case $cc_basename in
11931       CC*)
11932         # Sun C++ 4.2, 5.x and Centerline C++
11933         archive_cmds_need_lc_CXX=yes
11934         no_undefined_flag_CXX=' -zdefs'
11935         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11936         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11937         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11938
11939         hardcode_libdir_flag_spec_CXX='-R$libdir'
11940         hardcode_shlibpath_var_CXX=no
11941         case $host_os in
11942           solaris2.[0-5] | solaris2.[0-5].*) ;;
11943           *)
11944             # The C++ compiler is used as linker so we must use $wl
11945             # flag to pass the commands to the underlying system
11946             # linker. We must also pass each convience library through
11947             # to the system linker between allextract/defaultextract.
11948             # The C++ compiler will combine linker options so we
11949             # cannot just pass the convience library names through
11950             # without $wl.
11951             # Supported since Solaris 2.6 (maybe 2.5.1?)
11952             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11953             ;;
11954         esac
11955         link_all_deplibs_CXX=yes
11956
11957         output_verbose_link_cmd='echo'
11958
11959         # Archives containing C++ object files must be created using
11960         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11961         # necessary to make sure instantiated templates are included
11962         # in the archive.
11963         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11964         ;;
11965       gcx*)
11966         # Green Hills C++ Compiler
11967         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11968
11969         # The C++ compiler must be used to create the archive.
11970         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11971         ;;
11972       *)
11973         # GNU C++ compiler with Solaris linker
11974         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11975           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11976           if $CC --version | grep -v '^2\.7' > /dev/null; then
11977             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11978             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11979                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11980
11981             # Commands to make compiler produce verbose output that lists
11982             # what "hidden" libraries, object files and flags are used when
11983             # linking a shared library.
11984             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11985           else
11986             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11987             # platform.
11988             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11989             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11990                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11991
11992             # Commands to make compiler produce verbose output that lists
11993             # what "hidden" libraries, object files and flags are used when
11994             # linking a shared library.
11995             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11996           fi
11997
11998           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11999         fi
12000         ;;
12001     esac
12002     ;;
12003   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12004     no_undefined_flag_CXX='${wl}-z,text'
12005     archive_cmds_need_lc_CXX=no
12006     hardcode_shlibpath_var_CXX=no
12007     runpath_var='LD_RUN_PATH'
12008
12009     case $cc_basename in
12010       CC*)
12011         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12012         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12013         ;;
12014       *)
12015         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12016         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12017         ;;
12018     esac
12019     ;;
12020   sysv5* | sco3.2v5* | sco5v6*)
12021     # Note: We can NOT use -z defs as we might desire, because we do not
12022     # link with -lc, and that would cause any symbols used from libc to
12023     # always be unresolved, which means just about no library would
12024     # ever link correctly.  If we're not using GNU ld we use -z text
12025     # though, which does catch some bad symbols but isn't as heavy-handed
12026     # as -z defs.
12027     # For security reasons, it is highly recommended that you always
12028     # use absolute paths for naming shared libraries, and exclude the
12029     # DT_RUNPATH tag from executables and libraries.  But doing so
12030     # requires that you compile everything twice, which is a pain.
12031     # So that behaviour is only enabled if SCOABSPATH is set to a
12032     # non-empty value in the environment.  Most likely only useful for
12033     # creating official distributions of packages.
12034     # This is a hack until libtool officially supports absolute path
12035     # names for shared libraries.
12036     no_undefined_flag_CXX='${wl}-z,text'
12037     allow_undefined_flag_CXX='${wl}-z,nodefs'
12038     archive_cmds_need_lc_CXX=no
12039     hardcode_shlibpath_var_CXX=no
12040     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12041     hardcode_libdir_separator_CXX=':'
12042     link_all_deplibs_CXX=yes
12043     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12044     runpath_var='LD_RUN_PATH'
12045
12046     case $cc_basename in
12047       CC*)
12048         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12049         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12050         ;;
12051       *)
12052         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12053         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12054         ;;
12055     esac
12056     ;;
12057   tandem*)
12058     case $cc_basename in
12059       NCC*)
12060         # NonStop-UX NCC 3.20
12061         # FIXME: insert proper C++ library support
12062         ld_shlibs_CXX=no
12063         ;;
12064       *)
12065         # FIXME: insert proper C++ library support
12066         ld_shlibs_CXX=no
12067         ;;
12068     esac
12069     ;;
12070   vxworks*)
12071     # FIXME: insert proper C++ library support
12072     ld_shlibs_CXX=no
12073     ;;
12074   *)
12075     # FIXME: insert proper C++ library support
12076     ld_shlibs_CXX=no
12077     ;;
12078 esac
12079 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12080 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12081 test "$ld_shlibs_CXX" = no && can_build_shared=no
12082
12083 GCC_CXX="$GXX"
12084 LD_CXX="$LD"
12085
12086
12087 cat > conftest.$ac_ext <<EOF
12088 class Foo
12089 {
12090 public:
12091   Foo (void) { a = 0; }
12092 private:
12093   int a;
12094 };
12095 EOF
12096
12097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12098   (eval $ac_compile) 2>&5
12099   ac_status=$?
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); }; then
12102   # Parse the compiler output and extract the necessary
12103   # objects, libraries and library flags.
12104
12105   # Sentinel used to keep track of whether or not we are before
12106   # the conftest object file.
12107   pre_test_object_deps_done=no
12108
12109   # The `*' in the case matches for architectures that use `case' in
12110   # $output_verbose_cmd can trigger glob expansion during the loop
12111   # eval without this substitution.
12112   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12113
12114   for p in `eval $output_verbose_link_cmd`; do
12115     case $p in
12116
12117     -L* | -R* | -l*)
12118        # Some compilers place space between "-{L,R}" and the path.
12119        # Remove the space.
12120        if test $p = "-L" \
12121           || test $p = "-R"; then
12122          prev=$p
12123          continue
12124        else
12125          prev=
12126        fi
12127
12128        if test "$pre_test_object_deps_done" = no; then
12129          case $p in
12130          -L* | -R*)
12131            # Internal compiler library paths should come after those
12132            # provided the user.  The postdeps already come after the
12133            # user supplied libs so there is no need to process them.
12134            if test -z "$compiler_lib_search_path_CXX"; then
12135              compiler_lib_search_path_CXX="${prev}${p}"
12136            else
12137              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12138            fi
12139            ;;
12140          # The "-l" case would never come before the object being
12141          # linked, so don't bother handling this case.
12142          esac
12143        else
12144          if test -z "$postdeps_CXX"; then
12145            postdeps_CXX="${prev}${p}"
12146          else
12147            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12148          fi
12149        fi
12150        ;;
12151
12152     *.$objext)
12153        # This assumes that the test object file only shows up
12154        # once in the compiler output.
12155        if test "$p" = "conftest.$objext"; then
12156          pre_test_object_deps_done=yes
12157          continue
12158        fi
12159
12160        if test "$pre_test_object_deps_done" = no; then
12161          if test -z "$predep_objects_CXX"; then
12162            predep_objects_CXX="$p"
12163          else
12164            predep_objects_CXX="$predep_objects_CXX $p"
12165          fi
12166        else
12167          if test -z "$postdep_objects_CXX"; then
12168            postdep_objects_CXX="$p"
12169          else
12170            postdep_objects_CXX="$postdep_objects_CXX $p"
12171          fi
12172        fi
12173        ;;
12174
12175     *) ;; # Ignore the rest.
12176
12177     esac
12178   done
12179
12180   # Clean up.
12181   rm -f a.out a.exe
12182 else
12183   echo "libtool.m4: error: problem compiling CXX test program"
12184 fi
12185
12186 $rm -f confest.$objext
12187
12188 # PORTME: override above test on systems where it is broken
12189 case $host_os in
12190 interix3*)
12191   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12192   # hack all around it, let's just trust "g++" to DTRT.
12193   predep_objects_CXX=
12194   postdep_objects_CXX=
12195   postdeps_CXX=
12196   ;;
12197
12198 solaris*)
12199   case $cc_basename in
12200   CC*)
12201     # Adding this requires a known-good setup of shared libraries for
12202     # Sun compiler versions before 5.6, else PIC objects from an old
12203     # archive will be linked into the output, leading to subtle bugs.
12204     postdeps_CXX='-lCstd -lCrun'
12205     ;;
12206   esac
12207   ;;
12208 esac
12209
12210
12211 case " $postdeps_CXX " in
12212 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12213 esac
12214
12215 lt_prog_compiler_wl_CXX=
12216 lt_prog_compiler_pic_CXX=
12217 lt_prog_compiler_static_CXX=
12218
12219 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12220 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12221
12222   # C++ specific cases for pic, static, wl, etc.
12223   if test "$GXX" = yes; then
12224     lt_prog_compiler_wl_CXX='-Wl,'
12225     lt_prog_compiler_static_CXX='-static'
12226
12227     case $host_os in
12228     aix*)
12229       # All AIX code is PIC.
12230       if test "$host_cpu" = ia64; then
12231         # AIX 5 now supports IA64 processor
12232         lt_prog_compiler_static_CXX='-Bstatic'
12233       fi
12234       ;;
12235     amigaos*)
12236       # FIXME: we need at least 68020 code to build shared libraries, but
12237       # adding the `-m68020' flag to GCC prevents building anything better,
12238       # like `-m68040'.
12239       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12240       ;;
12241     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12242       # PIC is the default for these OSes.
12243       ;;
12244     mingw* | os2* | pw32*)
12245       # This hack is so that the source file can tell whether it is being
12246       # built for inclusion in a dll (and should export symbols for example).
12247       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12248       ;;
12249     darwin* | rhapsody*)
12250       # PIC is the default on this platform
12251       # Common symbols not allowed in MH_DYLIB files
12252       lt_prog_compiler_pic_CXX='-fno-common'
12253       ;;
12254     *djgpp*)
12255       # DJGPP does not support shared libraries at all
12256       lt_prog_compiler_pic_CXX=
12257       ;;
12258     interix3*)
12259       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12260       # Instead, we relocate shared libraries at runtime.
12261       ;;
12262     sysv4*MP*)
12263       if test -d /usr/nec; then
12264         lt_prog_compiler_pic_CXX=-Kconform_pic
12265       fi
12266       ;;
12267     hpux*)
12268       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12269       # not for PA HP-UX.
12270       case $host_cpu in
12271       hppa*64*|ia64*)
12272         ;;
12273       *)
12274         lt_prog_compiler_pic_CXX='-fPIC'
12275         ;;
12276       esac
12277       ;;
12278     *)
12279       lt_prog_compiler_pic_CXX='-fPIC'
12280       ;;
12281     esac
12282   else
12283     case $host_os in
12284       aix4* | aix5*)
12285         # All AIX code is PIC.
12286         if test "$host_cpu" = ia64; then
12287           # AIX 5 now supports IA64 processor
12288           lt_prog_compiler_static_CXX='-Bstatic'
12289         else
12290           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12291         fi
12292         ;;
12293       chorus*)
12294         case $cc_basename in
12295         cxch68*)
12296           # Green Hills C++ Compiler
12297           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12298           ;;
12299         esac
12300         ;;
12301        darwin*)
12302          # PIC is the default on this platform
12303          # Common symbols not allowed in MH_DYLIB files
12304          case $cc_basename in
12305            xlc*)
12306            lt_prog_compiler_pic_CXX='-qnocommon'
12307            lt_prog_compiler_wl_CXX='-Wl,'
12308            ;;
12309          esac
12310        ;;
12311       dgux*)
12312         case $cc_basename in
12313           ec++*)
12314             lt_prog_compiler_pic_CXX='-KPIC'
12315             ;;
12316           ghcx*)
12317             # Green Hills C++ Compiler
12318             lt_prog_compiler_pic_CXX='-pic'
12319             ;;
12320           *)
12321             ;;
12322         esac
12323         ;;
12324       freebsd* | dragonfly*)
12325         # FreeBSD uses GNU C++
12326         ;;
12327       hpux9* | hpux10* | hpux11*)
12328         case $cc_basename in
12329           CC*)
12330             lt_prog_compiler_wl_CXX='-Wl,'
12331             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12332             if test "$host_cpu" != ia64; then
12333               lt_prog_compiler_pic_CXX='+Z'
12334             fi
12335             ;;
12336           aCC*)
12337             lt_prog_compiler_wl_CXX='-Wl,'
12338             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12339             case $host_cpu in
12340             hppa*64*|ia64*)
12341               # +Z the default
12342               ;;
12343             *)
12344               lt_prog_compiler_pic_CXX='+Z'
12345               ;;
12346             esac
12347             ;;
12348           *)
12349             ;;
12350         esac
12351         ;;
12352       interix*)
12353         # This is c89, which is MS Visual C++ (no shared libs)
12354         # Anyone wants to do a port?
12355         ;;
12356       irix5* | irix6* | nonstopux*)
12357         case $cc_basename in
12358           CC*)
12359             lt_prog_compiler_wl_CXX='-Wl,'
12360             lt_prog_compiler_static_CXX='-non_shared'
12361             # CC pic flag -KPIC is the default.
12362             ;;
12363           *)
12364             ;;
12365         esac
12366         ;;
12367       linux* | k*bsd*-gnu)
12368         case $cc_basename in
12369           KCC*)
12370             # KAI C++ Compiler
12371             lt_prog_compiler_wl_CXX='--backend -Wl,'
12372             lt_prog_compiler_pic_CXX='-fPIC'
12373             ;;
12374           icpc* | ecpc*)
12375             # Intel C++
12376             lt_prog_compiler_wl_CXX='-Wl,'
12377             lt_prog_compiler_pic_CXX='-KPIC'
12378             lt_prog_compiler_static_CXX='-static'
12379             ;;
12380           pgCC*)
12381             # Portland Group C++ compiler.
12382             lt_prog_compiler_wl_CXX='-Wl,'
12383             lt_prog_compiler_pic_CXX='-fpic'
12384             lt_prog_compiler_static_CXX='-Bstatic'
12385             ;;
12386           cxx*)
12387             # Compaq C++
12388             # Make sure the PIC flag is empty.  It appears that all Alpha
12389             # Linux and Compaq Tru64 Unix objects are PIC.
12390             lt_prog_compiler_pic_CXX=
12391             lt_prog_compiler_static_CXX='-non_shared'
12392             ;;
12393           *)
12394             ;;
12395         esac
12396         ;;
12397       lynxos*)
12398         ;;
12399       m88k*)
12400         ;;
12401       mvs*)
12402         case $cc_basename in
12403           cxx*)
12404             lt_prog_compiler_pic_CXX='-W c,exportall'
12405             ;;
12406           *)
12407             ;;
12408         esac
12409         ;;
12410       netbsd* | netbsdelf*-gnu)
12411         ;;
12412       osf3* | osf4* | osf5*)
12413         case $cc_basename in
12414           KCC*)
12415             lt_prog_compiler_wl_CXX='--backend -Wl,'
12416             ;;
12417           RCC*)
12418             # Rational C++ 2.4.1
12419             lt_prog_compiler_pic_CXX='-pic'
12420             ;;
12421           cxx*)
12422             # Digital/Compaq C++
12423             lt_prog_compiler_wl_CXX='-Wl,'
12424             # Make sure the PIC flag is empty.  It appears that all Alpha
12425             # Linux and Compaq Tru64 Unix objects are PIC.
12426             lt_prog_compiler_pic_CXX=
12427             lt_prog_compiler_static_CXX='-non_shared'
12428             ;;
12429           *)
12430             ;;
12431         esac
12432         ;;
12433       psos*)
12434         ;;
12435       solaris*)
12436         case $cc_basename in
12437           CC*)
12438             # Sun C++ 4.2, 5.x and Centerline C++
12439             lt_prog_compiler_pic_CXX='-KPIC'
12440             lt_prog_compiler_static_CXX='-Bstatic'
12441             lt_prog_compiler_wl_CXX='-Qoption ld '
12442             ;;
12443           gcx*)
12444             # Green Hills C++ Compiler
12445             lt_prog_compiler_pic_CXX='-PIC'
12446             ;;
12447           *)
12448             ;;
12449         esac
12450         ;;
12451       sunos4*)
12452         case $cc_basename in
12453           CC*)
12454             # Sun C++ 4.x
12455             lt_prog_compiler_pic_CXX='-pic'
12456             lt_prog_compiler_static_CXX='-Bstatic'
12457             ;;
12458           lcc*)
12459             # Lucid
12460             lt_prog_compiler_pic_CXX='-pic'
12461             ;;
12462           *)
12463             ;;
12464         esac
12465         ;;
12466       tandem*)
12467         case $cc_basename in
12468           NCC*)
12469             # NonStop-UX NCC 3.20
12470             lt_prog_compiler_pic_CXX='-KPIC'
12471             ;;
12472           *)
12473             ;;
12474         esac
12475         ;;
12476       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12477         case $cc_basename in
12478           CC*)
12479             lt_prog_compiler_wl_CXX='-Wl,'
12480             lt_prog_compiler_pic_CXX='-KPIC'
12481             lt_prog_compiler_static_CXX='-Bstatic'
12482             ;;
12483         esac
12484         ;;
12485       vxworks*)
12486         ;;
12487       *)
12488         lt_prog_compiler_can_build_shared_CXX=no
12489         ;;
12490     esac
12491   fi
12492
12493 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12494 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12495
12496 #
12497 # Check to make sure the PIC flag actually works.
12498 #
12499 if test -n "$lt_prog_compiler_pic_CXX"; then
12500
12501 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12502 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12503 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12504   echo $ECHO_N "(cached) $ECHO_C" >&6
12505 else
12506   lt_prog_compiler_pic_works_CXX=no
12507   ac_outfile=conftest.$ac_objext
12508    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12509    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12510    # Insert the option either (1) after the last *FLAGS variable, or
12511    # (2) before a word containing "conftest.", or (3) at the end.
12512    # Note that $ac_compile itself does not contain backslashes and begins
12513    # with a dollar sign (not a hyphen), so the echo should work correctly.
12514    # The option is referenced via a variable to avoid confusing sed.
12515    lt_compile=`echo "$ac_compile" | $SED \
12516    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12517    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12518    -e 's:$: $lt_compiler_flag:'`
12519    (eval echo "\"\$as_me:12519: $lt_compile\"" >&5)
12520    (eval "$lt_compile" 2>conftest.err)
12521    ac_status=$?
12522    cat conftest.err >&5
12523    echo "$as_me:12523: \$? = $ac_status" >&5
12524    if (exit $ac_status) && test -s "$ac_outfile"; then
12525      # The compiler can only warn and ignore the option if not recognized
12526      # So say no if there are warnings other than the usual output.
12527      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12528      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12529      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12530        lt_prog_compiler_pic_works_CXX=yes
12531      fi
12532    fi
12533    $rm conftest*
12534
12535 fi
12536 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12537 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12538
12539 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12540     case $lt_prog_compiler_pic_CXX in
12541      "" | " "*) ;;
12542      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12543      esac
12544 else
12545     lt_prog_compiler_pic_CXX=
12546      lt_prog_compiler_can_build_shared_CXX=no
12547 fi
12548
12549 fi
12550 case $host_os in
12551   # For platforms which do not support PIC, -DPIC is meaningless:
12552   *djgpp*)
12553     lt_prog_compiler_pic_CXX=
12554     ;;
12555   *)
12556     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12557     ;;
12558 esac
12559
12560 #
12561 # Check to make sure the static flag actually works.
12562 #
12563 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12564 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12565 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12566 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12567   echo $ECHO_N "(cached) $ECHO_C" >&6
12568 else
12569   lt_prog_compiler_static_works_CXX=no
12570    save_LDFLAGS="$LDFLAGS"
12571    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12572    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12573    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12574      # The linker can only warn and ignore the option if not recognized
12575      # So say no if there are warnings
12576      if test -s conftest.err; then
12577        # Append any errors to the config.log.
12578        cat conftest.err 1>&5
12579        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12580        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12581        if diff conftest.exp conftest.er2 >/dev/null; then
12582          lt_prog_compiler_static_works_CXX=yes
12583        fi
12584      else
12585        lt_prog_compiler_static_works_CXX=yes
12586      fi
12587    fi
12588    $rm conftest*
12589    LDFLAGS="$save_LDFLAGS"
12590
12591 fi
12592 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12593 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12594
12595 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12596     :
12597 else
12598     lt_prog_compiler_static_CXX=
12599 fi
12600
12601
12602 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12603 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12604 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12605   echo $ECHO_N "(cached) $ECHO_C" >&6
12606 else
12607   lt_cv_prog_compiler_c_o_CXX=no
12608    $rm -r conftest 2>/dev/null
12609    mkdir conftest
12610    cd conftest
12611    mkdir out
12612    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12613
12614    lt_compiler_flag="-o out/conftest2.$ac_objext"
12615    # Insert the option either (1) after the last *FLAGS variable, or
12616    # (2) before a word containing "conftest.", or (3) at the end.
12617    # Note that $ac_compile itself does not contain backslashes and begins
12618    # with a dollar sign (not a hyphen), so the echo should work correctly.
12619    lt_compile=`echo "$ac_compile" | $SED \
12620    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12621    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12622    -e 's:$: $lt_compiler_flag:'`
12623    (eval echo "\"\$as_me:12623: $lt_compile\"" >&5)
12624    (eval "$lt_compile" 2>out/conftest.err)
12625    ac_status=$?
12626    cat out/conftest.err >&5
12627    echo "$as_me:12627: \$? = $ac_status" >&5
12628    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12629    then
12630      # The compiler can only warn and ignore the option if not recognized
12631      # So say no if there are warnings
12632      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12633      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12634      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12635        lt_cv_prog_compiler_c_o_CXX=yes
12636      fi
12637    fi
12638    chmod u+w . 2>&5
12639    $rm conftest*
12640    # SGI C++ compiler will create directory out/ii_files/ for
12641    # template instantiation
12642    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12643    $rm out/* && rmdir out
12644    cd ..
12645    rmdir conftest
12646    $rm conftest*
12647
12648 fi
12649 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12650 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12651
12652
12653 hard_links="nottested"
12654 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12655   # do not overwrite the value of need_locks provided by the user
12656   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12657 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12658   hard_links=yes
12659   $rm conftest*
12660   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12661   touch conftest.a
12662   ln conftest.a conftest.b 2>&5 || hard_links=no
12663   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12664   { echo "$as_me:$LINENO: result: $hard_links" >&5
12665 echo "${ECHO_T}$hard_links" >&6; }
12666   if test "$hard_links" = no; then
12667     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12668 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12669     need_locks=warn
12670   fi
12671 else
12672   need_locks=no
12673 fi
12674
12675 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12676 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12677
12678   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12679   case $host_os in
12680   aix4* | aix5*)
12681     # If we're using GNU nm, then we don't want the "-C" option.
12682     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12683     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12684       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12685     else
12686       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12687     fi
12688     ;;
12689   pw32*)
12690     export_symbols_cmds_CXX="$ltdll_cmds"
12691   ;;
12692   cygwin* | mingw*)
12693     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12694   ;;
12695   linux* | k*bsd*-gnu)
12696     link_all_deplibs_CXX=no
12697   ;;
12698   *)
12699     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12700   ;;
12701   esac
12702
12703 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12704 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12705 test "$ld_shlibs_CXX" = no && can_build_shared=no
12706
12707 #
12708 # Do we need to explicitly link libc?
12709 #
12710 case "x$archive_cmds_need_lc_CXX" in
12711 x|xyes)
12712   # Assume -lc should be added
12713   archive_cmds_need_lc_CXX=yes
12714
12715   if test "$enable_shared" = yes && test "$GCC" = yes; then
12716     case $archive_cmds_CXX in
12717     *'~'*)
12718       # FIXME: we may have to deal with multi-command sequences.
12719       ;;
12720     '$CC '*)
12721       # Test whether the compiler implicitly links with -lc since on some
12722       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12723       # to ld, don't add -lc before -lgcc.
12724       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12725 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12726       $rm conftest*
12727       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12728
12729       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12730   (eval $ac_compile) 2>&5
12731   ac_status=$?
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); } 2>conftest.err; then
12734         soname=conftest
12735         lib=conftest
12736         libobjs=conftest.$ac_objext
12737         deplibs=
12738         wl=$lt_prog_compiler_wl_CXX
12739         pic_flag=$lt_prog_compiler_pic_CXX
12740         compiler_flags=-v
12741         linker_flags=-v
12742         verstring=
12743         output_objdir=.
12744         libname=conftest
12745         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12746         allow_undefined_flag_CXX=
12747         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12748   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12749   ac_status=$?
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); }
12752         then
12753           archive_cmds_need_lc_CXX=no
12754         else
12755           archive_cmds_need_lc_CXX=yes
12756         fi
12757         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12758       else
12759         cat conftest.err 1>&5
12760       fi
12761       $rm conftest*
12762       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12763 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12764       ;;
12765     esac
12766   fi
12767   ;;
12768 esac
12769
12770 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12771 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12772 library_names_spec=
12773 libname_spec='lib$name'
12774 soname_spec=
12775 shrext_cmds=".so"
12776 postinstall_cmds=
12777 postuninstall_cmds=
12778 finish_cmds=
12779 finish_eval=
12780 shlibpath_var=
12781 shlibpath_overrides_runpath=unknown
12782 version_type=none
12783 dynamic_linker="$host_os ld.so"
12784 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12785 if test "$GCC" = yes; then
12786   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12787   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12788     # if the path contains ";" then we assume it to be the separator
12789     # otherwise default to the standard path separator (i.e. ":") - it is
12790     # assumed that no part of a normal pathname contains ";" but that should
12791     # okay in the real world where ";" in dirpaths is itself problematic.
12792     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12793   else
12794     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12795   fi
12796 else
12797   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12798 fi
12799 need_lib_prefix=unknown
12800 hardcode_into_libs=no
12801
12802 # when you set need_version to no, make sure it does not cause -set_version
12803 # flags to be left without arguments
12804 need_version=unknown
12805
12806 case $host_os in
12807 aix3*)
12808   version_type=linux
12809   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12810   shlibpath_var=LIBPATH
12811
12812   # AIX 3 has no versioning support, so we append a major version to the name.
12813   soname_spec='${libname}${release}${shared_ext}$major'
12814   ;;
12815
12816 aix4* | aix5*)
12817   version_type=linux
12818   need_lib_prefix=no
12819   need_version=no
12820   hardcode_into_libs=yes
12821   if test "$host_cpu" = ia64; then
12822     # AIX 5 supports IA64
12823     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12824     shlibpath_var=LD_LIBRARY_PATH
12825   else
12826     # With GCC up to 2.95.x, collect2 would create an import file
12827     # for dependence libraries.  The import file would start with
12828     # the line `#! .'.  This would cause the generated library to
12829     # depend on `.', always an invalid library.  This was fixed in
12830     # development snapshots of GCC prior to 3.0.
12831     case $host_os in
12832       aix4 | aix4.[01] | aix4.[01].*)
12833       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12834            echo ' yes '
12835            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12836         :
12837       else
12838         can_build_shared=no
12839       fi
12840       ;;
12841     esac
12842     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12843     # soname into executable. Probably we can add versioning support to
12844     # collect2, so additional links can be useful in future.
12845     if test "$aix_use_runtimelinking" = yes; then
12846       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12847       # instead of lib<name>.a to let people know that these are not
12848       # typical AIX shared libraries.
12849       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12850     else
12851       # We preserve .a as extension for shared libraries through AIX4.2
12852       # and later when we are not doing run time linking.
12853       library_names_spec='${libname}${release}.a $libname.a'
12854       soname_spec='${libname}${release}${shared_ext}$major'
12855     fi
12856     shlibpath_var=LIBPATH
12857   fi
12858   ;;
12859
12860 amigaos*)
12861   library_names_spec='$libname.ixlibrary $libname.a'
12862   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12863   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12864   ;;
12865
12866 beos*)
12867   library_names_spec='${libname}${shared_ext}'
12868   dynamic_linker="$host_os ld.so"
12869   shlibpath_var=LIBRARY_PATH
12870   ;;
12871
12872 bsdi[45]*)
12873   version_type=linux
12874   need_version=no
12875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12876   soname_spec='${libname}${release}${shared_ext}$major'
12877   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12878   shlibpath_var=LD_LIBRARY_PATH
12879   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12880   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12881   # the default ld.so.conf also contains /usr/contrib/lib and
12882   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12883   # libtool to hard-code these into programs
12884   ;;
12885
12886 cygwin* | mingw* | pw32*)
12887   version_type=windows
12888   shrext_cmds=".dll"
12889   need_version=no
12890   need_lib_prefix=no
12891
12892   case $GCC,$host_os in
12893   yes,cygwin* | yes,mingw* | yes,pw32*)
12894     library_names_spec='$libname.dll.a'
12895     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12896     postinstall_cmds='base_file=`basename \${file}`~
12897       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12898       dldir=$destdir/`dirname \$dlpath`~
12899       test -d \$dldir || mkdir -p \$dldir~
12900       $install_prog $dir/$dlname \$dldir/$dlname~
12901       chmod a+x \$dldir/$dlname'
12902     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12903       dlpath=$dir/\$dldll~
12904        $rm \$dlpath'
12905     shlibpath_overrides_runpath=yes
12906
12907     case $host_os in
12908     cygwin*)
12909       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12910       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12911       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12912       ;;
12913     mingw*)
12914       # MinGW DLLs use traditional 'lib' prefix
12915       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12916       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12917       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12918         # It is most probably a Windows format PATH printed by
12919         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12920         # path with ; separators, and with drive letters. We can handle the
12921         # drive letters (cygwin fileutils understands them), so leave them,
12922         # especially as we might pass files found there to a mingw objdump,
12923         # which wouldn't understand a cygwinified path. Ahh.
12924         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12925       else
12926         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12927       fi
12928       ;;
12929     pw32*)
12930       # pw32 DLLs use 'pw' prefix rather than 'lib'
12931       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12932       ;;
12933     esac
12934     ;;
12935
12936   *)
12937     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12938     ;;
12939   esac
12940   dynamic_linker='Win32 ld.exe'
12941   # FIXME: first we should search . and the directory the executable is in
12942   shlibpath_var=PATH
12943   ;;
12944
12945 darwin* | rhapsody*)
12946   dynamic_linker="$host_os dyld"
12947   version_type=darwin
12948   need_lib_prefix=no
12949   need_version=no
12950   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12951   soname_spec='${libname}${release}${major}$shared_ext'
12952   shlibpath_overrides_runpath=yes
12953   shlibpath_var=DYLD_LIBRARY_PATH
12954   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12955   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12956   if test "$GCC" = yes; then
12957     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12958   else
12959     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12960   fi
12961   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12962   ;;
12963
12964 dgux*)
12965   version_type=linux
12966   need_lib_prefix=no
12967   need_version=no
12968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12969   soname_spec='${libname}${release}${shared_ext}$major'
12970   shlibpath_var=LD_LIBRARY_PATH
12971   ;;
12972
12973 freebsd1*)
12974   dynamic_linker=no
12975   ;;
12976
12977 freebsd* | dragonfly*)
12978   # DragonFly does not have aout.  When/if they implement a new
12979   # versioning mechanism, adjust this.
12980   if test -x /usr/bin/objformat; then
12981     objformat=`/usr/bin/objformat`
12982   else
12983     case $host_os in
12984     freebsd[123]*) objformat=aout ;;
12985     *) objformat=elf ;;
12986     esac
12987   fi
12988   version_type=freebsd-$objformat
12989   case $version_type in
12990     freebsd-elf*)
12991       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12992       need_version=no
12993       need_lib_prefix=no
12994       ;;
12995     freebsd-*)
12996       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12997       need_version=yes
12998       ;;
12999   esac
13000   shlibpath_var=LD_LIBRARY_PATH
13001   case $host_os in
13002   freebsd2*)
13003     shlibpath_overrides_runpath=yes
13004     ;;
13005   freebsd3.[01]* | freebsdelf3.[01]*)
13006     shlibpath_overrides_runpath=yes
13007     hardcode_into_libs=yes
13008     ;;
13009   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13010   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13011     shlibpath_overrides_runpath=no
13012     hardcode_into_libs=yes
13013     ;;
13014   freebsd*) # from 4.6 on
13015     shlibpath_overrides_runpath=yes
13016     hardcode_into_libs=yes
13017     ;;
13018   esac
13019   ;;
13020
13021 gnu*)
13022   version_type=linux
13023   need_lib_prefix=no
13024   need_version=no
13025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13026   soname_spec='${libname}${release}${shared_ext}$major'
13027   shlibpath_var=LD_LIBRARY_PATH
13028   hardcode_into_libs=yes
13029   ;;
13030
13031 hpux9* | hpux10* | hpux11*)
13032   # Give a soname corresponding to the major version so that dld.sl refuses to
13033   # link against other versions.
13034   version_type=sunos
13035   need_lib_prefix=no
13036   need_version=no
13037   case $host_cpu in
13038   ia64*)
13039     shrext_cmds='.so'
13040     hardcode_into_libs=yes
13041     dynamic_linker="$host_os dld.so"
13042     shlibpath_var=LD_LIBRARY_PATH
13043     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13044     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13045     soname_spec='${libname}${release}${shared_ext}$major'
13046     if test "X$HPUX_IA64_MODE" = X32; then
13047       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13048     else
13049       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13050     fi
13051     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13052     ;;
13053    hppa*64*)
13054      shrext_cmds='.sl'
13055      hardcode_into_libs=yes
13056      dynamic_linker="$host_os dld.sl"
13057      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13058      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13059      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13060      soname_spec='${libname}${release}${shared_ext}$major'
13061      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13062      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13063      ;;
13064    *)
13065     shrext_cmds='.sl'
13066     dynamic_linker="$host_os dld.sl"
13067     shlibpath_var=SHLIB_PATH
13068     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13069     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13070     soname_spec='${libname}${release}${shared_ext}$major'
13071     ;;
13072   esac
13073   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13074   postinstall_cmds='chmod 555 $lib'
13075   ;;
13076
13077 interix3*)
13078   version_type=linux
13079   need_lib_prefix=no
13080   need_version=no
13081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13082   soname_spec='${libname}${release}${shared_ext}$major'
13083   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13084   shlibpath_var=LD_LIBRARY_PATH
13085   shlibpath_overrides_runpath=no
13086   hardcode_into_libs=yes
13087   ;;
13088
13089 irix5* | irix6* | nonstopux*)
13090   case $host_os in
13091     nonstopux*) version_type=nonstopux ;;
13092     *)
13093         if test "$lt_cv_prog_gnu_ld" = yes; then
13094                 version_type=linux
13095         else
13096                 version_type=irix
13097         fi ;;
13098   esac
13099   need_lib_prefix=no
13100   need_version=no
13101   soname_spec='${libname}${release}${shared_ext}$major'
13102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13103   case $host_os in
13104   irix5* | nonstopux*)
13105     libsuff= shlibsuff=
13106     ;;
13107   *)
13108     case $LD in # libtool.m4 will add one of these switches to LD
13109     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13110       libsuff= shlibsuff= libmagic=32-bit;;
13111     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13112       libsuff=32 shlibsuff=N32 libmagic=N32;;
13113     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13114       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13115     *) libsuff= shlibsuff= libmagic=never-match;;
13116     esac
13117     ;;
13118   esac
13119   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13120   shlibpath_overrides_runpath=no
13121   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13122   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13123   hardcode_into_libs=yes
13124   ;;
13125
13126 # No shared lib support for Linux oldld, aout, or coff.
13127 linux*oldld* | linux*aout* | linux*coff*)
13128   dynamic_linker=no
13129   ;;
13130
13131 # This must be Linux ELF.
13132 linux* | k*bsd*-gnu)
13133   version_type=linux
13134   need_lib_prefix=no
13135   need_version=no
13136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13137   soname_spec='${libname}${release}${shared_ext}$major'
13138   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13139   shlibpath_var=LD_LIBRARY_PATH
13140   shlibpath_overrides_runpath=no
13141   # This implies no fast_install, which is unacceptable.
13142   # Some rework will be needed to allow for fast_install
13143   # before this can be enabled.
13144   hardcode_into_libs=yes
13145
13146   # Append ld.so.conf contents to the search path
13147   if test -f /etc/ld.so.conf; then
13148     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13149     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13150   fi
13151
13152   # We used to test for /lib/ld.so.1 and disable shared libraries on
13153   # powerpc, because MkLinux only supported shared libraries with the
13154   # GNU dynamic linker.  Since this was broken with cross compilers,
13155   # most powerpc-linux boxes support dynamic linking these days and
13156   # people can always --disable-shared, the test was removed, and we
13157   # assume the GNU/Linux dynamic linker is in use.
13158   dynamic_linker='GNU/Linux ld.so'
13159   ;;
13160
13161 netbsdelf*-gnu)
13162   version_type=linux
13163   need_lib_prefix=no
13164   need_version=no
13165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13166   soname_spec='${libname}${release}${shared_ext}$major'
13167   shlibpath_var=LD_LIBRARY_PATH
13168   shlibpath_overrides_runpath=no
13169   hardcode_into_libs=yes
13170   dynamic_linker='NetBSD ld.elf_so'
13171   ;;
13172
13173 netbsd*)
13174   version_type=sunos
13175   need_lib_prefix=no
13176   need_version=no
13177   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13178     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13179     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13180     dynamic_linker='NetBSD (a.out) ld.so'
13181   else
13182     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13183     soname_spec='${libname}${release}${shared_ext}$major'
13184     dynamic_linker='NetBSD ld.elf_so'
13185   fi
13186   shlibpath_var=LD_LIBRARY_PATH
13187   shlibpath_overrides_runpath=yes
13188   hardcode_into_libs=yes
13189   ;;
13190
13191 newsos6)
13192   version_type=linux
13193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13194   shlibpath_var=LD_LIBRARY_PATH
13195   shlibpath_overrides_runpath=yes
13196   ;;
13197
13198 nto-qnx*)
13199   version_type=linux
13200   need_lib_prefix=no
13201   need_version=no
13202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13203   soname_spec='${libname}${release}${shared_ext}$major'
13204   shlibpath_var=LD_LIBRARY_PATH
13205   shlibpath_overrides_runpath=yes
13206   ;;
13207
13208 openbsd*)
13209   version_type=sunos
13210   sys_lib_dlsearch_path_spec="/usr/lib"
13211   need_lib_prefix=no
13212   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13213   case $host_os in
13214     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13215     *)                         need_version=no  ;;
13216   esac
13217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13218   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13219   shlibpath_var=LD_LIBRARY_PATH
13220   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13221     case $host_os in
13222       openbsd2.[89] | openbsd2.[89].*)
13223         shlibpath_overrides_runpath=no
13224         ;;
13225       *)
13226         shlibpath_overrides_runpath=yes
13227         ;;
13228       esac
13229   else
13230     shlibpath_overrides_runpath=yes
13231   fi
13232   ;;
13233
13234 os2*)
13235   libname_spec='$name'
13236   shrext_cmds=".dll"
13237   need_lib_prefix=no
13238   library_names_spec='$libname${shared_ext} $libname.a'
13239   dynamic_linker='OS/2 ld.exe'
13240   shlibpath_var=LIBPATH
13241   ;;
13242
13243 osf3* | osf4* | osf5*)
13244   version_type=osf
13245   need_lib_prefix=no
13246   need_version=no
13247   soname_spec='${libname}${release}${shared_ext}$major'
13248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13249   shlibpath_var=LD_LIBRARY_PATH
13250   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13251   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13252   ;;
13253
13254 solaris*)
13255   version_type=linux
13256   need_lib_prefix=no
13257   need_version=no
13258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13259   soname_spec='${libname}${release}${shared_ext}$major'
13260   shlibpath_var=LD_LIBRARY_PATH
13261   shlibpath_overrides_runpath=yes
13262   hardcode_into_libs=yes
13263   # ldd complains unless libraries are executable
13264   postinstall_cmds='chmod +x $lib'
13265   ;;
13266
13267 sunos4*)
13268   version_type=sunos
13269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13270   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13271   shlibpath_var=LD_LIBRARY_PATH
13272   shlibpath_overrides_runpath=yes
13273   if test "$with_gnu_ld" = yes; then
13274     need_lib_prefix=no
13275   fi
13276   need_version=yes
13277   ;;
13278
13279 sysv4 | sysv4.3*)
13280   version_type=linux
13281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13282   soname_spec='${libname}${release}${shared_ext}$major'
13283   shlibpath_var=LD_LIBRARY_PATH
13284   case $host_vendor in
13285     sni)
13286       shlibpath_overrides_runpath=no
13287       need_lib_prefix=no
13288       export_dynamic_flag_spec='${wl}-Blargedynsym'
13289       runpath_var=LD_RUN_PATH
13290       ;;
13291     siemens)
13292       need_lib_prefix=no
13293       ;;
13294     motorola)
13295       need_lib_prefix=no
13296       need_version=no
13297       shlibpath_overrides_runpath=no
13298       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13299       ;;
13300   esac
13301   ;;
13302
13303 sysv4*MP*)
13304   if test -d /usr/nec ;then
13305     version_type=linux
13306     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13307     soname_spec='$libname${shared_ext}.$major'
13308     shlibpath_var=LD_LIBRARY_PATH
13309   fi
13310   ;;
13311
13312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13313   version_type=freebsd-elf
13314   need_lib_prefix=no
13315   need_version=no
13316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13317   soname_spec='${libname}${release}${shared_ext}$major'
13318   shlibpath_var=LD_LIBRARY_PATH
13319   hardcode_into_libs=yes
13320   if test "$with_gnu_ld" = yes; then
13321     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13322     shlibpath_overrides_runpath=no
13323   else
13324     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13325     shlibpath_overrides_runpath=yes
13326     case $host_os in
13327       sco3.2v5*)
13328         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13329         ;;
13330     esac
13331   fi
13332   sys_lib_dlsearch_path_spec='/usr/lib'
13333   ;;
13334
13335 uts4*)
13336   version_type=linux
13337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13338   soname_spec='${libname}${release}${shared_ext}$major'
13339   shlibpath_var=LD_LIBRARY_PATH
13340   ;;
13341
13342 *)
13343   dynamic_linker=no
13344   ;;
13345 esac
13346 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13347 echo "${ECHO_T}$dynamic_linker" >&6; }
13348 test "$dynamic_linker" = no && can_build_shared=no
13349
13350 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13351 if test "$GCC" = yes; then
13352   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13353 fi
13354
13355 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13356 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13357 hardcode_action_CXX=
13358 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13359    test -n "$runpath_var_CXX" || \
13360    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13361
13362   # We can hardcode non-existant directories.
13363   if test "$hardcode_direct_CXX" != no &&
13364      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13365      # have to relink, otherwise we might link with an installed library
13366      # when we should be linking with a yet-to-be-installed one
13367      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13368      test "$hardcode_minus_L_CXX" != no; then
13369     # Linking always hardcodes the temporary library directory.
13370     hardcode_action_CXX=relink
13371   else
13372     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13373     hardcode_action_CXX=immediate
13374   fi
13375 else
13376   # We cannot hardcode anything, or else we can only hardcode existing
13377   # directories.
13378   hardcode_action_CXX=unsupported
13379 fi
13380 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13381 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13382
13383 if test "$hardcode_action_CXX" = relink; then
13384   # Fast installation is not supported
13385   enable_fast_install=no
13386 elif test "$shlibpath_overrides_runpath" = yes ||
13387      test "$enable_shared" = no; then
13388   # Fast installation is not necessary
13389   enable_fast_install=needless
13390 fi
13391
13392
13393 # The else clause should only fire when bootstrapping the
13394 # libtool distribution, otherwise you forgot to ship ltmain.sh
13395 # with your package, and you will get complaints that there are
13396 # no rules to generate ltmain.sh.
13397 if test -f "$ltmain"; then
13398   # See if we are running on zsh, and set the options which allow our commands through
13399   # without removal of \ escapes.
13400   if test -n "${ZSH_VERSION+set}" ; then
13401     setopt NO_GLOB_SUBST
13402   fi
13403   # Now quote all the things that may contain metacharacters while being
13404   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13405   # variables and quote the copies for generation of the libtool script.
13406   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13407     SED SHELL STRIP \
13408     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13409     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13410     deplibs_check_method reload_flag reload_cmds need_locks \
13411     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13412     lt_cv_sys_global_symbol_to_c_name_address \
13413     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13414     old_postinstall_cmds old_postuninstall_cmds \
13415     compiler_CXX \
13416     CC_CXX \
13417     LD_CXX \
13418     lt_prog_compiler_wl_CXX \
13419     lt_prog_compiler_pic_CXX \
13420     lt_prog_compiler_static_CXX \
13421     lt_prog_compiler_no_builtin_flag_CXX \
13422     export_dynamic_flag_spec_CXX \
13423     thread_safe_flag_spec_CXX \
13424     whole_archive_flag_spec_CXX \
13425     enable_shared_with_static_runtimes_CXX \
13426     old_archive_cmds_CXX \
13427     old_archive_from_new_cmds_CXX \
13428     predep_objects_CXX \
13429     postdep_objects_CXX \
13430     predeps_CXX \
13431     postdeps_CXX \
13432     compiler_lib_search_path_CXX \
13433     archive_cmds_CXX \
13434     archive_expsym_cmds_CXX \
13435     postinstall_cmds_CXX \
13436     postuninstall_cmds_CXX \
13437     old_archive_from_expsyms_cmds_CXX \
13438     allow_undefined_flag_CXX \
13439     no_undefined_flag_CXX \
13440     export_symbols_cmds_CXX \
13441     hardcode_libdir_flag_spec_CXX \
13442     hardcode_libdir_flag_spec_ld_CXX \
13443     hardcode_libdir_separator_CXX \
13444     hardcode_automatic_CXX \
13445     module_cmds_CXX \
13446     module_expsym_cmds_CXX \
13447     lt_cv_prog_compiler_c_o_CXX \
13448     exclude_expsyms_CXX \
13449     include_expsyms_CXX; do
13450
13451     case $var in
13452     old_archive_cmds_CXX | \
13453     old_archive_from_new_cmds_CXX | \
13454     archive_cmds_CXX | \
13455     archive_expsym_cmds_CXX | \
13456     module_cmds_CXX | \
13457     module_expsym_cmds_CXX | \
13458     old_archive_from_expsyms_cmds_CXX | \
13459     export_symbols_cmds_CXX | \
13460     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13461     postinstall_cmds | postuninstall_cmds | \
13462     old_postinstall_cmds | old_postuninstall_cmds | \
13463     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13464       # Double-quote double-evaled strings.
13465       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13466       ;;
13467     *)
13468       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13469       ;;
13470     esac
13471   done
13472
13473   case $lt_echo in
13474   *'\$0 --fallback-echo"')
13475     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13476     ;;
13477   esac
13478
13479 cfgfile="$ofile"
13480
13481   cat <<__EOF__ >> "$cfgfile"
13482 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13483
13484 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13485
13486 # Shell to use when invoking shell scripts.
13487 SHELL=$lt_SHELL
13488
13489 # Whether or not to build shared libraries.
13490 build_libtool_libs=$enable_shared
13491
13492 # Whether or not to build static libraries.
13493 build_old_libs=$enable_static
13494
13495 # Whether or not to add -lc for building shared libraries.
13496 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13497
13498 # Whether or not to disallow shared libs when runtime libs are static
13499 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13500
13501 # Whether or not to optimize for fast installation.
13502 fast_install=$enable_fast_install
13503
13504 # The host system.
13505 host_alias=$host_alias
13506 host=$host
13507 host_os=$host_os
13508
13509 # The build system.
13510 build_alias=$build_alias
13511 build=$build
13512 build_os=$build_os
13513
13514 # An echo program that does not interpret backslashes.
13515 echo=$lt_echo
13516
13517 # The archiver.
13518 AR=$lt_AR
13519 AR_FLAGS=$lt_AR_FLAGS
13520
13521 # A C compiler.
13522 LTCC=$lt_LTCC
13523
13524 # LTCC compiler flags.
13525 LTCFLAGS=$lt_LTCFLAGS
13526
13527 # A language-specific compiler.
13528 CC=$lt_compiler_CXX
13529
13530 # Is the compiler the GNU C compiler?
13531 with_gcc=$GCC_CXX
13532
13533 # An ERE matcher.
13534 EGREP=$lt_EGREP
13535
13536 # The linker used to build libraries.
13537 LD=$lt_LD_CXX
13538
13539 # Whether we need hard or soft links.
13540 LN_S=$lt_LN_S
13541
13542 # A BSD-compatible nm program.
13543 NM=$lt_NM
13544
13545 # A symbol stripping program
13546 STRIP=$lt_STRIP
13547
13548 # Used to examine libraries when file_magic_cmd begins "file"
13549 MAGIC_CMD=$MAGIC_CMD
13550
13551 # Used on cygwin: DLL creation program.
13552 DLLTOOL="$DLLTOOL"
13553
13554 # Used on cygwin: object dumper.
13555 OBJDUMP="$OBJDUMP"
13556
13557 # Used on cygwin: assembler.
13558 AS="$AS"
13559
13560 # The name of the directory that contains temporary libtool files.
13561 objdir=$objdir
13562
13563 # How to create reloadable object files.
13564 reload_flag=$lt_reload_flag
13565 reload_cmds=$lt_reload_cmds
13566
13567 # How to pass a linker flag through the compiler.
13568 wl=$lt_lt_prog_compiler_wl_CXX
13569
13570 # Object file suffix (normally "o").
13571 objext="$ac_objext"
13572
13573 # Old archive suffix (normally "a").
13574 libext="$libext"
13575
13576 # Shared library suffix (normally ".so").
13577 shrext_cmds='$shrext_cmds'
13578
13579 # Executable file suffix (normally "").
13580 exeext="$exeext"
13581
13582 # Additional compiler flags for building library objects.
13583 pic_flag=$lt_lt_prog_compiler_pic_CXX
13584 pic_mode=$pic_mode
13585
13586 # What is the maximum length of a command?
13587 max_cmd_len=$lt_cv_sys_max_cmd_len
13588
13589 # Does compiler simultaneously support -c and -o options?
13590 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13591
13592 # Must we lock files when doing compilation?
13593 need_locks=$lt_need_locks
13594
13595 # Do we need the lib prefix for modules?
13596 need_lib_prefix=$need_lib_prefix
13597
13598 # Do we need a version for libraries?
13599 need_version=$need_version
13600
13601 # Whether dlopen is supported.
13602 dlopen_support=$enable_dlopen
13603
13604 # Whether dlopen of programs is supported.
13605 dlopen_self=$enable_dlopen_self
13606
13607 # Whether dlopen of statically linked programs is supported.
13608 dlopen_self_static=$enable_dlopen_self_static
13609
13610 # Compiler flag to prevent dynamic linking.
13611 link_static_flag=$lt_lt_prog_compiler_static_CXX
13612
13613 # Compiler flag to turn off builtin functions.
13614 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13615
13616 # Compiler flag to allow reflexive dlopens.
13617 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13618
13619 # Compiler flag to generate shared objects directly from archives.
13620 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13621
13622 # Compiler flag to generate thread-safe objects.
13623 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13624
13625 # Library versioning type.
13626 version_type=$version_type
13627
13628 # Format of library name prefix.
13629 libname_spec=$lt_libname_spec
13630
13631 # List of archive names.  First name is the real one, the rest are links.
13632 # The last name is the one that the linker finds with -lNAME.
13633 library_names_spec=$lt_library_names_spec
13634
13635 # The coded name of the library, if different from the real name.
13636 soname_spec=$lt_soname_spec
13637
13638 # Commands used to build and install an old-style archive.
13639 RANLIB=$lt_RANLIB
13640 old_archive_cmds=$lt_old_archive_cmds_CXX
13641 old_postinstall_cmds=$lt_old_postinstall_cmds
13642 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13643
13644 # Create an old-style archive from a shared archive.
13645 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13646
13647 # Create a temporary old-style archive to link instead of a shared archive.
13648 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13649
13650 # Commands used to build and install a shared archive.
13651 archive_cmds=$lt_archive_cmds_CXX
13652 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13653 postinstall_cmds=$lt_postinstall_cmds
13654 postuninstall_cmds=$lt_postuninstall_cmds
13655
13656 # Commands used to build a loadable module (assumed same as above if empty)
13657 module_cmds=$lt_module_cmds_CXX
13658 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13659
13660 # Commands to strip libraries.
13661 old_striplib=$lt_old_striplib
13662 striplib=$lt_striplib
13663
13664 # Dependencies to place before the objects being linked to create a
13665 # shared library.
13666 predep_objects=$lt_predep_objects_CXX
13667
13668 # Dependencies to place after the objects being linked to create a
13669 # shared library.
13670 postdep_objects=$lt_postdep_objects_CXX
13671
13672 # Dependencies to place before the objects being linked to create a
13673 # shared library.
13674 predeps=$lt_predeps_CXX
13675
13676 # Dependencies to place after the objects being linked to create a
13677 # shared library.
13678 postdeps=$lt_postdeps_CXX
13679
13680 # The library search path used internally by the compiler when linking
13681 # a shared library.
13682 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13683
13684 # Method to check whether dependent libraries are shared objects.
13685 deplibs_check_method=$lt_deplibs_check_method
13686
13687 # Command to use when deplibs_check_method == file_magic.
13688 file_magic_cmd=$lt_file_magic_cmd
13689
13690 # Flag that allows shared libraries with undefined symbols to be built.
13691 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13692
13693 # Flag that forces no undefined symbols.
13694 no_undefined_flag=$lt_no_undefined_flag_CXX
13695
13696 # Commands used to finish a libtool library installation in a directory.
13697 finish_cmds=$lt_finish_cmds
13698
13699 # Same as above, but a single script fragment to be evaled but not shown.
13700 finish_eval=$lt_finish_eval
13701
13702 # Take the output of nm and produce a listing of raw symbols and C names.
13703 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13704
13705 # Transform the output of nm in a proper C declaration
13706 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13707
13708 # Transform the output of nm in a C name address pair
13709 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13710
13711 # This is the shared library runtime path variable.
13712 runpath_var=$runpath_var
13713
13714 # This is the shared library path variable.
13715 shlibpath_var=$shlibpath_var
13716
13717 # Is shlibpath searched before the hard-coded library search path?
13718 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13719
13720 # How to hardcode a shared library path into an executable.
13721 hardcode_action=$hardcode_action_CXX
13722
13723 # Whether we should hardcode library paths into libraries.
13724 hardcode_into_libs=$hardcode_into_libs
13725
13726 # Flag to hardcode \$libdir into a binary during linking.
13727 # This must work even if \$libdir does not exist.
13728 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13729
13730 # If ld is used when linking, flag to hardcode \$libdir into
13731 # a binary during linking. This must work even if \$libdir does
13732 # not exist.
13733 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13734
13735 # Whether we need a single -rpath flag with a separated argument.
13736 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13737
13738 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13739 # resulting binary.
13740 hardcode_direct=$hardcode_direct_CXX
13741
13742 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13743 # resulting binary.
13744 hardcode_minus_L=$hardcode_minus_L_CXX
13745
13746 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13747 # the resulting binary.
13748 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13749
13750 # Set to yes if building a shared library automatically hardcodes DIR into the library
13751 # and all subsequent libraries and executables linked against it.
13752 hardcode_automatic=$hardcode_automatic_CXX
13753
13754 # Variables whose values should be saved in libtool wrapper scripts and
13755 # restored at relink time.
13756 variables_saved_for_relink="$variables_saved_for_relink"
13757
13758 # Whether libtool must link a program against all its dependency libraries.
13759 link_all_deplibs=$link_all_deplibs_CXX
13760
13761 # Compile-time system search path for libraries
13762 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13763
13764 # Run-time system search path for libraries
13765 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13766
13767 # Fix the shell variable \$srcfile for the compiler.
13768 fix_srcfile_path="$fix_srcfile_path_CXX"
13769
13770 # Set to yes if exported symbols are required.
13771 always_export_symbols=$always_export_symbols_CXX
13772
13773 # The commands to list exported symbols.
13774 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13775
13776 # The commands to extract the exported symbol list from a shared archive.
13777 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13778
13779 # Symbols that should not be listed in the preloaded symbols.
13780 exclude_expsyms=$lt_exclude_expsyms_CXX
13781
13782 # Symbols that must always be exported.
13783 include_expsyms=$lt_include_expsyms_CXX
13784
13785 # ### END LIBTOOL TAG CONFIG: $tagname
13786
13787 __EOF__
13788
13789
13790 else
13791   # If there is no Makefile yet, we rely on a make rule to execute
13792   # `config.status --recheck' to rerun these tests and create the
13793   # libtool script then.
13794   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13795   if test -f "$ltmain_in"; then
13796     test -f Makefile && make "$ltmain"
13797   fi
13798 fi
13799
13800
13801 ac_ext=c
13802 ac_cpp='$CPP $CPPFLAGS'
13803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13806
13807 CC=$lt_save_CC
13808 LDCXX=$LD
13809 LD=$lt_save_LD
13810 GCC=$lt_save_GCC
13811 with_gnu_ldcxx=$with_gnu_ld
13812 with_gnu_ld=$lt_save_with_gnu_ld
13813 lt_cv_path_LDCXX=$lt_cv_path_LD
13814 lt_cv_path_LD=$lt_save_path_LD
13815 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13816 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13817
13818         else
13819           tagname=""
13820         fi
13821         ;;
13822
13823       F77)
13824         if test -n "$F77" && test "X$F77" != "Xno"; then
13825
13826 ac_ext=f
13827 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13828 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13829 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13830
13831
13832 archive_cmds_need_lc_F77=no
13833 allow_undefined_flag_F77=
13834 always_export_symbols_F77=no
13835 archive_expsym_cmds_F77=
13836 export_dynamic_flag_spec_F77=
13837 hardcode_direct_F77=no
13838 hardcode_libdir_flag_spec_F77=
13839 hardcode_libdir_flag_spec_ld_F77=
13840 hardcode_libdir_separator_F77=
13841 hardcode_minus_L_F77=no
13842 hardcode_automatic_F77=no
13843 module_cmds_F77=
13844 module_expsym_cmds_F77=
13845 link_all_deplibs_F77=unknown
13846 old_archive_cmds_F77=$old_archive_cmds
13847 no_undefined_flag_F77=
13848 whole_archive_flag_spec_F77=
13849 enable_shared_with_static_runtimes_F77=no
13850
13851 # Source file extension for f77 test sources.
13852 ac_ext=f
13853
13854 # Object file extension for compiled f77 test sources.
13855 objext=o
13856 objext_F77=$objext
13857
13858 # Code to be used in simple compile tests
13859 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13860
13861 # Code to be used in simple link tests
13862 lt_simple_link_test_code="      program t\n      end\n"
13863
13864 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13865
13866 # If no C compiler was specified, use CC.
13867 LTCC=${LTCC-"$CC"}
13868
13869 # If no C compiler flags were specified, use CFLAGS.
13870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13871
13872 # Allow CC to be a program name with arguments.
13873 compiler=$CC
13874
13875
13876 # save warnings/boilerplate of simple test code
13877 ac_outfile=conftest.$ac_objext
13878 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13880 _lt_compiler_boilerplate=`cat conftest.err`
13881 $rm conftest*
13882
13883 ac_outfile=conftest.$ac_objext
13884 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13886 _lt_linker_boilerplate=`cat conftest.err`
13887 $rm conftest*
13888
13889
13890 # Allow CC to be a program name with arguments.
13891 lt_save_CC="$CC"
13892 CC=${F77-"f77"}
13893 compiler=$CC
13894 compiler_F77=$CC
13895 for cc_temp in $compiler""; do
13896   case $cc_temp in
13897     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13898     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13899     \-*) ;;
13900     *) break;;
13901   esac
13902 done
13903 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13904
13905
13906 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13907 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13908 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13909 echo "${ECHO_T}$can_build_shared" >&6; }
13910
13911 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13912 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13913 test "$can_build_shared" = "no" && enable_shared=no
13914
13915 # On AIX, shared libraries and static libraries use the same namespace, and
13916 # are all built from PIC.
13917 case $host_os in
13918 aix3*)
13919   test "$enable_shared" = yes && enable_static=no
13920   if test -n "$RANLIB"; then
13921     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13922     postinstall_cmds='$RANLIB $lib'
13923   fi
13924   ;;
13925 aix4* | aix5*)
13926   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13927     test "$enable_shared" = yes && enable_static=no
13928   fi
13929   ;;
13930 esac
13931 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13932 echo "${ECHO_T}$enable_shared" >&6; }
13933
13934 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13935 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13936 # Make sure either enable_shared or enable_static is yes.
13937 test "$enable_shared" = yes || enable_static=yes
13938 { echo "$as_me:$LINENO: result: $enable_static" >&5
13939 echo "${ECHO_T}$enable_static" >&6; }
13940
13941 GCC_F77="$G77"
13942 LD_F77="$LD"
13943
13944 lt_prog_compiler_wl_F77=
13945 lt_prog_compiler_pic_F77=
13946 lt_prog_compiler_static_F77=
13947
13948 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13949 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13950
13951   if test "$GCC" = yes; then
13952     lt_prog_compiler_wl_F77='-Wl,'
13953     lt_prog_compiler_static_F77='-static'
13954
13955     case $host_os in
13956       aix*)
13957       # All AIX code is PIC.
13958       if test "$host_cpu" = ia64; then
13959         # AIX 5 now supports IA64 processor
13960         lt_prog_compiler_static_F77='-Bstatic'
13961       fi
13962       ;;
13963
13964     amigaos*)
13965       # FIXME: we need at least 68020 code to build shared libraries, but
13966       # adding the `-m68020' flag to GCC prevents building anything better,
13967       # like `-m68040'.
13968       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13969       ;;
13970
13971     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13972       # PIC is the default for these OSes.
13973       ;;
13974
13975     mingw* | pw32* | os2*)
13976       # This hack is so that the source file can tell whether it is being
13977       # built for inclusion in a dll (and should export symbols for example).
13978       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13979       ;;
13980
13981     darwin* | rhapsody*)
13982       # PIC is the default on this platform
13983       # Common symbols not allowed in MH_DYLIB files
13984       lt_prog_compiler_pic_F77='-fno-common'
13985       ;;
13986
13987     interix3*)
13988       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13989       # Instead, we relocate shared libraries at runtime.
13990       ;;
13991
13992     msdosdjgpp*)
13993       # Just because we use GCC doesn't mean we suddenly get shared libraries
13994       # on systems that don't support them.
13995       lt_prog_compiler_can_build_shared_F77=no
13996       enable_shared=no
13997       ;;
13998
13999     sysv4*MP*)
14000       if test -d /usr/nec; then
14001         lt_prog_compiler_pic_F77=-Kconform_pic
14002       fi
14003       ;;
14004
14005     hpux*)
14006       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14007       # not for PA HP-UX.
14008       case $host_cpu in
14009       hppa*64*|ia64*)
14010         # +Z the default
14011         ;;
14012       *)
14013         lt_prog_compiler_pic_F77='-fPIC'
14014         ;;
14015       esac
14016       ;;
14017
14018     *)
14019       lt_prog_compiler_pic_F77='-fPIC'
14020       ;;
14021     esac
14022   else
14023     # PORTME Check for flag to pass linker flags through the system compiler.
14024     case $host_os in
14025     aix*)
14026       lt_prog_compiler_wl_F77='-Wl,'
14027       if test "$host_cpu" = ia64; then
14028         # AIX 5 now supports IA64 processor
14029         lt_prog_compiler_static_F77='-Bstatic'
14030       else
14031         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14032       fi
14033       ;;
14034       darwin*)
14035         # PIC is the default on this platform
14036         # Common symbols not allowed in MH_DYLIB files
14037        case $cc_basename in
14038          xlc*)
14039          lt_prog_compiler_pic_F77='-qnocommon'
14040          lt_prog_compiler_wl_F77='-Wl,'
14041          ;;
14042        esac
14043        ;;
14044
14045     mingw* | pw32* | os2*)
14046       # This hack is so that the source file can tell whether it is being
14047       # built for inclusion in a dll (and should export symbols for example).
14048       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14049       ;;
14050
14051     hpux9* | hpux10* | hpux11*)
14052       lt_prog_compiler_wl_F77='-Wl,'
14053       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14054       # not for PA HP-UX.
14055       case $host_cpu in
14056       hppa*64*|ia64*)
14057         # +Z the default
14058         ;;
14059       *)
14060         lt_prog_compiler_pic_F77='+Z'
14061         ;;
14062       esac
14063       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14064       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14065       ;;
14066
14067     irix5* | irix6* | nonstopux*)
14068       lt_prog_compiler_wl_F77='-Wl,'
14069       # PIC (with -KPIC) is the default.
14070       lt_prog_compiler_static_F77='-non_shared'
14071       ;;
14072
14073     newsos6)
14074       lt_prog_compiler_pic_F77='-KPIC'
14075       lt_prog_compiler_static_F77='-Bstatic'
14076       ;;
14077
14078     linux* | k*bsd*-gnu)
14079       case $cc_basename in
14080       icc* | ecc*)
14081         lt_prog_compiler_wl_F77='-Wl,'
14082         lt_prog_compiler_pic_F77='-KPIC'
14083         lt_prog_compiler_static_F77='-static'
14084         ;;
14085       pgcc* | pgf77* | pgf90* | pgf95*)
14086         # Portland Group compilers (*not* the Pentium gcc compiler,
14087         # which looks to be a dead project)
14088         lt_prog_compiler_wl_F77='-Wl,'
14089         lt_prog_compiler_pic_F77='-fpic'
14090         lt_prog_compiler_static_F77='-Bstatic'
14091         ;;
14092       ccc*)
14093         lt_prog_compiler_wl_F77='-Wl,'
14094         # All Alpha code is PIC.
14095         lt_prog_compiler_static_F77='-non_shared'
14096         ;;
14097       esac
14098       ;;
14099
14100     osf3* | osf4* | osf5*)
14101       lt_prog_compiler_wl_F77='-Wl,'
14102       # All OSF/1 code is PIC.
14103       lt_prog_compiler_static_F77='-non_shared'
14104       ;;
14105
14106     solaris*)
14107       lt_prog_compiler_pic_F77='-KPIC'
14108       lt_prog_compiler_static_F77='-Bstatic'
14109       case $cc_basename in
14110       f77* | f90* | f95*)
14111         lt_prog_compiler_wl_F77='-Qoption ld ';;
14112       *)
14113         lt_prog_compiler_wl_F77='-Wl,';;
14114       esac
14115       ;;
14116
14117     sunos4*)
14118       lt_prog_compiler_wl_F77='-Qoption ld '
14119       lt_prog_compiler_pic_F77='-PIC'
14120       lt_prog_compiler_static_F77='-Bstatic'
14121       ;;
14122
14123     sysv4 | sysv4.2uw2* | sysv4.3*)
14124       lt_prog_compiler_wl_F77='-Wl,'
14125       lt_prog_compiler_pic_F77='-KPIC'
14126       lt_prog_compiler_static_F77='-Bstatic'
14127       ;;
14128
14129     sysv4*MP*)
14130       if test -d /usr/nec ;then
14131         lt_prog_compiler_pic_F77='-Kconform_pic'
14132         lt_prog_compiler_static_F77='-Bstatic'
14133       fi
14134       ;;
14135
14136     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14137       lt_prog_compiler_wl_F77='-Wl,'
14138       lt_prog_compiler_pic_F77='-KPIC'
14139       lt_prog_compiler_static_F77='-Bstatic'
14140       ;;
14141
14142     unicos*)
14143       lt_prog_compiler_wl_F77='-Wl,'
14144       lt_prog_compiler_can_build_shared_F77=no
14145       ;;
14146
14147     uts4*)
14148       lt_prog_compiler_pic_F77='-pic'
14149       lt_prog_compiler_static_F77='-Bstatic'
14150       ;;
14151
14152     *)
14153       lt_prog_compiler_can_build_shared_F77=no
14154       ;;
14155     esac
14156   fi
14157
14158 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14159 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14160
14161 #
14162 # Check to make sure the PIC flag actually works.
14163 #
14164 if test -n "$lt_prog_compiler_pic_F77"; then
14165
14166 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14167 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14168 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14169   echo $ECHO_N "(cached) $ECHO_C" >&6
14170 else
14171   lt_prog_compiler_pic_works_F77=no
14172   ac_outfile=conftest.$ac_objext
14173    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14174    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14175    # Insert the option either (1) after the last *FLAGS variable, or
14176    # (2) before a word containing "conftest.", or (3) at the end.
14177    # Note that $ac_compile itself does not contain backslashes and begins
14178    # with a dollar sign (not a hyphen), so the echo should work correctly.
14179    # The option is referenced via a variable to avoid confusing sed.
14180    lt_compile=`echo "$ac_compile" | $SED \
14181    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14182    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14183    -e 's:$: $lt_compiler_flag:'`
14184    (eval echo "\"\$as_me:14184: $lt_compile\"" >&5)
14185    (eval "$lt_compile" 2>conftest.err)
14186    ac_status=$?
14187    cat conftest.err >&5
14188    echo "$as_me:14188: \$? = $ac_status" >&5
14189    if (exit $ac_status) && test -s "$ac_outfile"; then
14190      # The compiler can only warn and ignore the option if not recognized
14191      # So say no if there are warnings other than the usual output.
14192      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14193      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14194      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14195        lt_prog_compiler_pic_works_F77=yes
14196      fi
14197    fi
14198    $rm conftest*
14199
14200 fi
14201 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14202 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14203
14204 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14205     case $lt_prog_compiler_pic_F77 in
14206      "" | " "*) ;;
14207      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14208      esac
14209 else
14210     lt_prog_compiler_pic_F77=
14211      lt_prog_compiler_can_build_shared_F77=no
14212 fi
14213
14214 fi
14215 case $host_os in
14216   # For platforms which do not support PIC, -DPIC is meaningless:
14217   *djgpp*)
14218     lt_prog_compiler_pic_F77=
14219     ;;
14220   *)
14221     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14222     ;;
14223 esac
14224
14225 #
14226 # Check to make sure the static flag actually works.
14227 #
14228 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14229 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14230 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14231 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14232   echo $ECHO_N "(cached) $ECHO_C" >&6
14233 else
14234   lt_prog_compiler_static_works_F77=no
14235    save_LDFLAGS="$LDFLAGS"
14236    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14237    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14238    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14239      # The linker can only warn and ignore the option if not recognized
14240      # So say no if there are warnings
14241      if test -s conftest.err; then
14242        # Append any errors to the config.log.
14243        cat conftest.err 1>&5
14244        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14245        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14246        if diff conftest.exp conftest.er2 >/dev/null; then
14247          lt_prog_compiler_static_works_F77=yes
14248        fi
14249      else
14250        lt_prog_compiler_static_works_F77=yes
14251      fi
14252    fi
14253    $rm conftest*
14254    LDFLAGS="$save_LDFLAGS"
14255
14256 fi
14257 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14258 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14259
14260 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14261     :
14262 else
14263     lt_prog_compiler_static_F77=
14264 fi
14265
14266
14267 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14268 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14269 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14270   echo $ECHO_N "(cached) $ECHO_C" >&6
14271 else
14272   lt_cv_prog_compiler_c_o_F77=no
14273    $rm -r conftest 2>/dev/null
14274    mkdir conftest
14275    cd conftest
14276    mkdir out
14277    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14278
14279    lt_compiler_flag="-o out/conftest2.$ac_objext"
14280    # Insert the option either (1) after the last *FLAGS variable, or
14281    # (2) before a word containing "conftest.", or (3) at the end.
14282    # Note that $ac_compile itself does not contain backslashes and begins
14283    # with a dollar sign (not a hyphen), so the echo should work correctly.
14284    lt_compile=`echo "$ac_compile" | $SED \
14285    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14286    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14287    -e 's:$: $lt_compiler_flag:'`
14288    (eval echo "\"\$as_me:14288: $lt_compile\"" >&5)
14289    (eval "$lt_compile" 2>out/conftest.err)
14290    ac_status=$?
14291    cat out/conftest.err >&5
14292    echo "$as_me:14292: \$? = $ac_status" >&5
14293    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14294    then
14295      # The compiler can only warn and ignore the option if not recognized
14296      # So say no if there are warnings
14297      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14298      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14299      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14300        lt_cv_prog_compiler_c_o_F77=yes
14301      fi
14302    fi
14303    chmod u+w . 2>&5
14304    $rm conftest*
14305    # SGI C++ compiler will create directory out/ii_files/ for
14306    # template instantiation
14307    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14308    $rm out/* && rmdir out
14309    cd ..
14310    rmdir conftest
14311    $rm conftest*
14312
14313 fi
14314 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14315 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14316
14317
14318 hard_links="nottested"
14319 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14320   # do not overwrite the value of need_locks provided by the user
14321   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14322 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14323   hard_links=yes
14324   $rm conftest*
14325   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14326   touch conftest.a
14327   ln conftest.a conftest.b 2>&5 || hard_links=no
14328   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14329   { echo "$as_me:$LINENO: result: $hard_links" >&5
14330 echo "${ECHO_T}$hard_links" >&6; }
14331   if test "$hard_links" = no; then
14332     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14333 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14334     need_locks=warn
14335   fi
14336 else
14337   need_locks=no
14338 fi
14339
14340 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14341 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14342
14343   runpath_var=
14344   allow_undefined_flag_F77=
14345   enable_shared_with_static_runtimes_F77=no
14346   archive_cmds_F77=
14347   archive_expsym_cmds_F77=
14348   old_archive_From_new_cmds_F77=
14349   old_archive_from_expsyms_cmds_F77=
14350   export_dynamic_flag_spec_F77=
14351   whole_archive_flag_spec_F77=
14352   thread_safe_flag_spec_F77=
14353   hardcode_libdir_flag_spec_F77=
14354   hardcode_libdir_flag_spec_ld_F77=
14355   hardcode_libdir_separator_F77=
14356   hardcode_direct_F77=no
14357   hardcode_minus_L_F77=no
14358   hardcode_shlibpath_var_F77=unsupported
14359   link_all_deplibs_F77=unknown
14360   hardcode_automatic_F77=no
14361   module_cmds_F77=
14362   module_expsym_cmds_F77=
14363   always_export_symbols_F77=no
14364   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14365   # include_expsyms should be a list of space-separated symbols to be *always*
14366   # included in the symbol list
14367   include_expsyms_F77=
14368   # exclude_expsyms can be an extended regexp of symbols to exclude
14369   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14370   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14371   # as well as any symbol that contains `d'.
14372   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14373   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14374   # platforms (ab)use it in PIC code, but their linkers get confused if
14375   # the symbol is explicitly referenced.  Since portable code cannot
14376   # rely on this symbol name, it's probably fine to never include it in
14377   # preloaded symbol tables.
14378   extract_expsyms_cmds=
14379   # Just being paranoid about ensuring that cc_basename is set.
14380   for cc_temp in $compiler""; do
14381   case $cc_temp in
14382     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14383     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14384     \-*) ;;
14385     *) break;;
14386   esac
14387 done
14388 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14389
14390   case $host_os in
14391   cygwin* | mingw* | pw32*)
14392     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14393     # When not using gcc, we currently assume that we are using
14394     # Microsoft Visual C++.
14395     if test "$GCC" != yes; then
14396       with_gnu_ld=no
14397     fi
14398     ;;
14399   interix*)
14400     # we just hope/assume this is gcc and not c89 (= MSVC++)
14401     with_gnu_ld=yes
14402     ;;
14403   openbsd*)
14404     with_gnu_ld=no
14405     ;;
14406   esac
14407
14408   ld_shlibs_F77=yes
14409   if test "$with_gnu_ld" = yes; then
14410     # If archive_cmds runs LD, not CC, wlarc should be empty
14411     wlarc='${wl}'
14412
14413     # Set some defaults for GNU ld with shared library support. These
14414     # are reset later if shared libraries are not supported. Putting them
14415     # here allows them to be overridden if necessary.
14416     runpath_var=LD_RUN_PATH
14417     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14418     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14419     # ancient GNU ld didn't support --whole-archive et. al.
14420     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14421         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14422       else
14423         whole_archive_flag_spec_F77=
14424     fi
14425     supports_anon_versioning=no
14426     case `$LD -v 2>/dev/null` in
14427       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14428       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14429       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14430       *\ 2.11.*) ;; # other 2.11 versions
14431       *) supports_anon_versioning=yes ;;
14432     esac
14433
14434     # See if GNU ld supports shared libraries.
14435     case $host_os in
14436     aix3* | aix4* | aix5*)
14437       # On AIX/PPC, the GNU linker is very broken
14438       if test "$host_cpu" != ia64; then
14439         ld_shlibs_F77=no
14440         cat <<EOF 1>&2
14441
14442 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14443 *** to be unable to reliably create shared libraries on AIX.
14444 *** Therefore, libtool is disabling shared libraries support.  If you
14445 *** really care for shared libraries, you may want to modify your PATH
14446 *** so that a non-GNU linker is found, and then restart.
14447
14448 EOF
14449       fi
14450       ;;
14451
14452     amigaos*)
14453       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14454       hardcode_libdir_flag_spec_F77='-L$libdir'
14455       hardcode_minus_L_F77=yes
14456
14457       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14458       # that the semantics of dynamic libraries on AmigaOS, at least up
14459       # to version 4, is to share data among multiple programs linked
14460       # with the same dynamic library.  Since this doesn't match the
14461       # behavior of shared libraries on other platforms, we can't use
14462       # them.
14463       ld_shlibs_F77=no
14464       ;;
14465
14466     beos*)
14467       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14468         allow_undefined_flag_F77=unsupported
14469         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14470         # support --undefined.  This deserves some investigation.  FIXME
14471         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14472       else
14473         ld_shlibs_F77=no
14474       fi
14475       ;;
14476
14477     cygwin* | mingw* | pw32*)
14478       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14479       # as there is no search path for DLLs.
14480       hardcode_libdir_flag_spec_F77='-L$libdir'
14481       allow_undefined_flag_F77=unsupported
14482       always_export_symbols_F77=no
14483       enable_shared_with_static_runtimes_F77=yes
14484       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14485
14486       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14487         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14488         # If the export-symbols file already is a .def file (1st line
14489         # is EXPORTS), use it as is; otherwise, prepend...
14490         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14491           cp $export_symbols $output_objdir/$soname.def;
14492         else
14493           echo EXPORTS > $output_objdir/$soname.def;
14494           cat $export_symbols >> $output_objdir/$soname.def;
14495         fi~
14496         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14497       else
14498         ld_shlibs_F77=no
14499       fi
14500       ;;
14501
14502     interix3*)
14503       hardcode_direct_F77=no
14504       hardcode_shlibpath_var_F77=no
14505       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14506       export_dynamic_flag_spec_F77='${wl}-E'
14507       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14508       # Instead, shared libraries are loaded at an image base (0x10000000 by
14509       # default) and relocated if they conflict, which is a slow very memory
14510       # consuming and fragmenting process.  To avoid this, we pick a random,
14511       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14512       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14513       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14514       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14515       ;;
14516
14517     linux* | k*bsd*-gnu)
14518       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14519         tmp_addflag=
14520         case $cc_basename,$host_cpu in
14521         pgcc*)                          # Portland Group C compiler
14522           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14523           tmp_addflag=' $pic_flag'
14524           ;;
14525         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14526           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14527           tmp_addflag=' $pic_flag -Mnomain' ;;
14528         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14529           tmp_addflag=' -i_dynamic' ;;
14530         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14531           tmp_addflag=' -i_dynamic -nofor_main' ;;
14532         ifc* | ifort*)                  # Intel Fortran compiler
14533           tmp_addflag=' -nofor_main' ;;
14534         esac
14535         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14536
14537         if test $supports_anon_versioning = yes; then
14538           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14539   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14540   $echo "local: *; };" >> $output_objdir/$libname.ver~
14541           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14542         fi
14543         link_all_deplibs_F77=no
14544       else
14545         ld_shlibs_F77=no
14546       fi
14547       ;;
14548
14549     netbsd* | netbsdelf*-gnu)
14550       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14551         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14552         wlarc=
14553       else
14554         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14555         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14556       fi
14557       ;;
14558
14559     solaris*)
14560       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14561         ld_shlibs_F77=no
14562         cat <<EOF 1>&2
14563
14564 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14565 *** create shared libraries on Solaris systems.  Therefore, libtool
14566 *** is disabling shared libraries support.  We urge you to upgrade GNU
14567 *** binutils to release 2.9.1 or newer.  Another option is to modify
14568 *** your PATH or compiler configuration so that the native linker is
14569 *** used, and then restart.
14570
14571 EOF
14572       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14573         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14574         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14575       else
14576         ld_shlibs_F77=no
14577       fi
14578       ;;
14579
14580     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14581       case `$LD -v 2>&1` in
14582         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14583         ld_shlibs_F77=no
14584         cat <<_LT_EOF 1>&2
14585
14586 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14587 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14588 *** is disabling shared libraries support.  We urge you to upgrade GNU
14589 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14590 *** your PATH or compiler configuration so that the native linker is
14591 *** used, and then restart.
14592
14593 _LT_EOF
14594         ;;
14595         *)
14596           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14597             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14598             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14599             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14600           else
14601             ld_shlibs_F77=no
14602           fi
14603         ;;
14604       esac
14605       ;;
14606
14607     sunos4*)
14608       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14609       wlarc=
14610       hardcode_direct_F77=yes
14611       hardcode_shlibpath_var_F77=no
14612       ;;
14613
14614     *)
14615       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14616         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14617         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14618       else
14619         ld_shlibs_F77=no
14620       fi
14621       ;;
14622     esac
14623
14624     if test "$ld_shlibs_F77" = no; then
14625       runpath_var=
14626       hardcode_libdir_flag_spec_F77=
14627       export_dynamic_flag_spec_F77=
14628       whole_archive_flag_spec_F77=
14629     fi
14630   else
14631     # PORTME fill in a description of your system's linker (not GNU ld)
14632     case $host_os in
14633     aix3*)
14634       allow_undefined_flag_F77=unsupported
14635       always_export_symbols_F77=yes
14636       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14637       # Note: this linker hardcodes the directories in LIBPATH if there
14638       # are no directories specified by -L.
14639       hardcode_minus_L_F77=yes
14640       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14641         # Neither direct hardcoding nor static linking is supported with a
14642         # broken collect2.
14643         hardcode_direct_F77=unsupported
14644       fi
14645       ;;
14646
14647     aix4* | aix5*)
14648       if test "$host_cpu" = ia64; then
14649         # On IA64, the linker does run time linking by default, so we don't
14650         # have to do anything special.
14651         aix_use_runtimelinking=no
14652         exp_sym_flag='-Bexport'
14653         no_entry_flag=""
14654       else
14655         # If we're using GNU nm, then we don't want the "-C" option.
14656         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14657         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14658           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14659         else
14660           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14661         fi
14662         aix_use_runtimelinking=no
14663
14664         # Test if we are trying to use run time linking or normal
14665         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14666         # need to do runtime linking.
14667         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14668           for ld_flag in $LDFLAGS; do
14669           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14670             aix_use_runtimelinking=yes
14671             break
14672           fi
14673           done
14674           ;;
14675         esac
14676
14677         exp_sym_flag='-bexport'
14678         no_entry_flag='-bnoentry'
14679       fi
14680
14681       # When large executables or shared objects are built, AIX ld can
14682       # have problems creating the table of contents.  If linking a library
14683       # or program results in "error TOC overflow" add -mminimal-toc to
14684       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14685       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14686
14687       archive_cmds_F77=''
14688       hardcode_direct_F77=yes
14689       hardcode_libdir_separator_F77=':'
14690       link_all_deplibs_F77=yes
14691
14692       if test "$GCC" = yes; then
14693         case $host_os in aix4.[012]|aix4.[012].*)
14694         # We only want to do this on AIX 4.2 and lower, the check
14695         # below for broken collect2 doesn't work under 4.3+
14696           collect2name=`${CC} -print-prog-name=collect2`
14697           if test -f "$collect2name" && \
14698            strings "$collect2name" | grep resolve_lib_name >/dev/null
14699           then
14700           # We have reworked collect2
14701           hardcode_direct_F77=yes
14702           else
14703           # We have old collect2
14704           hardcode_direct_F77=unsupported
14705           # It fails to find uninstalled libraries when the uninstalled
14706           # path is not listed in the libpath.  Setting hardcode_minus_L
14707           # to unsupported forces relinking
14708           hardcode_minus_L_F77=yes
14709           hardcode_libdir_flag_spec_F77='-L$libdir'
14710           hardcode_libdir_separator_F77=
14711           fi
14712           ;;
14713         esac
14714         shared_flag='-shared'
14715         if test "$aix_use_runtimelinking" = yes; then
14716           shared_flag="$shared_flag "'${wl}-G'
14717         fi
14718       else
14719         # not using gcc
14720         if test "$host_cpu" = ia64; then
14721         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14722         # chokes on -Wl,-G. The following line is correct:
14723           shared_flag='-G'
14724         else
14725           if test "$aix_use_runtimelinking" = yes; then
14726             shared_flag='${wl}-G'
14727           else
14728             shared_flag='${wl}-bM:SRE'
14729           fi
14730         fi
14731       fi
14732
14733       # It seems that -bexpall does not export symbols beginning with
14734       # underscore (_), so it is better to generate a list of symbols to export.
14735       always_export_symbols_F77=yes
14736       if test "$aix_use_runtimelinking" = yes; then
14737         # Warning - without using the other runtime loading flags (-brtl),
14738         # -berok will link without error, but may produce a broken library.
14739         allow_undefined_flag_F77='-berok'
14740        # Determine the default libpath from the value encoded in an empty executable.
14741        cat >conftest.$ac_ext <<_ACEOF
14742       program main
14743
14744       end
14745 _ACEOF
14746 rm -f conftest.$ac_objext conftest$ac_exeext
14747 if { (ac_try="$ac_link"
14748 case "(($ac_try" in
14749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750   *) ac_try_echo=$ac_try;;
14751 esac
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753   (eval "$ac_link") 2>conftest.er1
14754   ac_status=$?
14755   grep -v '^ *+' conftest.er1 >conftest.err
14756   rm -f conftest.er1
14757   cat conftest.err >&5
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); } && {
14760          test -z "$ac_f77_werror_flag" ||
14761          test ! -s conftest.err
14762        } && test -s conftest$ac_exeext &&
14763        $as_test_x conftest$ac_exeext; then
14764
14765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14766 }'`
14767 # Check for a 64-bit object if we didn't find anything.
14768 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14769 }'`; fi
14770 else
14771   echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14773
14774
14775 fi
14776
14777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14778       conftest$ac_exeext conftest.$ac_ext
14779 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14780
14781        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14782         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14783        else
14784         if test "$host_cpu" = ia64; then
14785           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14786           allow_undefined_flag_F77="-z nodefs"
14787           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14788         else
14789          # Determine the default libpath from the value encoded in an empty executable.
14790          cat >conftest.$ac_ext <<_ACEOF
14791       program main
14792
14793       end
14794 _ACEOF
14795 rm -f conftest.$ac_objext conftest$ac_exeext
14796 if { (ac_try="$ac_link"
14797 case "(($ac_try" in
14798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14799   *) ac_try_echo=$ac_try;;
14800 esac
14801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14802   (eval "$ac_link") 2>conftest.er1
14803   ac_status=$?
14804   grep -v '^ *+' conftest.er1 >conftest.err
14805   rm -f conftest.er1
14806   cat conftest.err >&5
14807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808   (exit $ac_status); } && {
14809          test -z "$ac_f77_werror_flag" ||
14810          test ! -s conftest.err
14811        } && test -s conftest$ac_exeext &&
14812        $as_test_x conftest$ac_exeext; then
14813
14814 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14815 }'`
14816 # Check for a 64-bit object if we didn't find anything.
14817 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14818 }'`; fi
14819 else
14820   echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14822
14823
14824 fi
14825
14826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14827       conftest$ac_exeext conftest.$ac_ext
14828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14829
14830          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14831           # Warning - without using the other run time loading flags,
14832           # -berok will link without error, but may produce a broken library.
14833           no_undefined_flag_F77=' ${wl}-bernotok'
14834           allow_undefined_flag_F77=' ${wl}-berok'
14835           # Exported symbols can be pulled into shared objects from archives
14836           whole_archive_flag_spec_F77='$convenience'
14837           archive_cmds_need_lc_F77=yes
14838           # This is similar to how AIX traditionally builds its shared libraries.
14839           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14840         fi
14841       fi
14842       ;;
14843
14844     amigaos*)
14845       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14846       hardcode_libdir_flag_spec_F77='-L$libdir'
14847       hardcode_minus_L_F77=yes
14848       # see comment about different semantics on the GNU ld section
14849       ld_shlibs_F77=no
14850       ;;
14851
14852     bsdi[45]*)
14853       export_dynamic_flag_spec_F77=-rdynamic
14854       ;;
14855
14856     cygwin* | mingw* | pw32*)
14857       # When not using gcc, we currently assume that we are using
14858       # Microsoft Visual C++.
14859       # hardcode_libdir_flag_spec is actually meaningless, as there is
14860       # no search path for DLLs.
14861       hardcode_libdir_flag_spec_F77=' '
14862       allow_undefined_flag_F77=unsupported
14863       # Tell ltmain to make .lib files, not .a files.
14864       libext=lib
14865       # Tell ltmain to make .dll files, not .so files.
14866       shrext_cmds=".dll"
14867       # FIXME: Setting linknames here is a bad hack.
14868       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14869       # The linker will automatically build a .lib file if we build a DLL.
14870       old_archive_From_new_cmds_F77='true'
14871       # FIXME: Should let the user specify the lib program.
14872       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14873       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14874       enable_shared_with_static_runtimes_F77=yes
14875       ;;
14876
14877     darwin* | rhapsody*)
14878       case $host_os in
14879         rhapsody* | darwin1.[012])
14880          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14881          ;;
14882        *) # Darwin 1.3 on
14883          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14884            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14885          else
14886            case ${MACOSX_DEPLOYMENT_TARGET} in
14887              10.[012])
14888                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14889                ;;
14890              10.*)
14891                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14892                ;;
14893            esac
14894          fi
14895          ;;
14896       esac
14897       archive_cmds_need_lc_F77=no
14898       hardcode_direct_F77=no
14899       hardcode_automatic_F77=yes
14900       hardcode_shlibpath_var_F77=unsupported
14901       whole_archive_flag_spec_F77=''
14902       link_all_deplibs_F77=yes
14903     if test "$GCC" = yes ; then
14904         output_verbose_link_cmd='echo'
14905         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14906       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14907       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14908       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14909       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14910     else
14911       case $cc_basename in
14912         xlc*)
14913          output_verbose_link_cmd='echo'
14914          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14915          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14916           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14917          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14918           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14919           ;;
14920        *)
14921          ld_shlibs_F77=no
14922           ;;
14923       esac
14924     fi
14925       ;;
14926
14927     dgux*)
14928       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14929       hardcode_libdir_flag_spec_F77='-L$libdir'
14930       hardcode_shlibpath_var_F77=no
14931       ;;
14932
14933     freebsd1*)
14934       ld_shlibs_F77=no
14935       ;;
14936
14937     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14938     # support.  Future versions do this automatically, but an explicit c++rt0.o
14939     # does not break anything, and helps significantly (at the cost of a little
14940     # extra space).
14941     freebsd2.2*)
14942       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14943       hardcode_libdir_flag_spec_F77='-R$libdir'
14944       hardcode_direct_F77=yes
14945       hardcode_shlibpath_var_F77=no
14946       ;;
14947
14948     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14949     freebsd2*)
14950       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14951       hardcode_direct_F77=yes
14952       hardcode_minus_L_F77=yes
14953       hardcode_shlibpath_var_F77=no
14954       ;;
14955
14956     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14957     freebsd* | dragonfly*)
14958       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14959       hardcode_libdir_flag_spec_F77='-R$libdir'
14960       hardcode_direct_F77=yes
14961       hardcode_shlibpath_var_F77=no
14962       ;;
14963
14964     hpux9*)
14965       if test "$GCC" = yes; then
14966         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14967       else
14968         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14969       fi
14970       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14971       hardcode_libdir_separator_F77=:
14972       hardcode_direct_F77=yes
14973
14974       # hardcode_minus_L: Not really in the search PATH,
14975       # but as the default location of the library.
14976       hardcode_minus_L_F77=yes
14977       export_dynamic_flag_spec_F77='${wl}-E'
14978       ;;
14979
14980     hpux10*)
14981       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14982         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14983       else
14984         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14985       fi
14986       if test "$with_gnu_ld" = no; then
14987         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14988         hardcode_libdir_separator_F77=:
14989
14990         hardcode_direct_F77=yes
14991         export_dynamic_flag_spec_F77='${wl}-E'
14992
14993         # hardcode_minus_L: Not really in the search PATH,
14994         # but as the default location of the library.
14995         hardcode_minus_L_F77=yes
14996       fi
14997       ;;
14998
14999     hpux11*)
15000       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15001         case $host_cpu in
15002         hppa*64*)
15003           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15004           ;;
15005         ia64*)
15006           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15007           ;;
15008         *)
15009           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15010           ;;
15011         esac
15012       else
15013         case $host_cpu in
15014         hppa*64*)
15015           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15016           ;;
15017         ia64*)
15018           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15019           ;;
15020         *)
15021           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15022           ;;
15023         esac
15024       fi
15025       if test "$with_gnu_ld" = no; then
15026         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15027         hardcode_libdir_separator_F77=:
15028
15029         case $host_cpu in
15030         hppa*64*|ia64*)
15031           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15032           hardcode_direct_F77=no
15033           hardcode_shlibpath_var_F77=no
15034           ;;
15035         *)
15036           hardcode_direct_F77=yes
15037           export_dynamic_flag_spec_F77='${wl}-E'
15038
15039           # hardcode_minus_L: Not really in the search PATH,
15040           # but as the default location of the library.
15041           hardcode_minus_L_F77=yes
15042           ;;
15043         esac
15044       fi
15045       ;;
15046
15047     irix5* | irix6* | nonstopux*)
15048       if test "$GCC" = yes; then
15049         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15050       else
15051         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15052         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15053       fi
15054       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15055       hardcode_libdir_separator_F77=:
15056       link_all_deplibs_F77=yes
15057       ;;
15058
15059     netbsd* | netbsdelf*-gnu)
15060       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15061         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15062       else
15063         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15064       fi
15065       hardcode_libdir_flag_spec_F77='-R$libdir'
15066       hardcode_direct_F77=yes
15067       hardcode_shlibpath_var_F77=no
15068       ;;
15069
15070     newsos6)
15071       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15072       hardcode_direct_F77=yes
15073       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15074       hardcode_libdir_separator_F77=:
15075       hardcode_shlibpath_var_F77=no
15076       ;;
15077
15078     openbsd*)
15079       hardcode_direct_F77=yes
15080       hardcode_shlibpath_var_F77=no
15081       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15082         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15083         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15084         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15085         export_dynamic_flag_spec_F77='${wl}-E'
15086       else
15087        case $host_os in
15088          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15089            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15090            hardcode_libdir_flag_spec_F77='-R$libdir'
15091            ;;
15092          *)
15093            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15094            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15095            ;;
15096        esac
15097       fi
15098       ;;
15099
15100     os2*)
15101       hardcode_libdir_flag_spec_F77='-L$libdir'
15102       hardcode_minus_L_F77=yes
15103       allow_undefined_flag_F77=unsupported
15104       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15105       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15106       ;;
15107
15108     osf3*)
15109       if test "$GCC" = yes; then
15110         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15111         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15112       else
15113         allow_undefined_flag_F77=' -expect_unresolved \*'
15114         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15115       fi
15116       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15117       hardcode_libdir_separator_F77=:
15118       ;;
15119
15120     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15121       if test "$GCC" = yes; then
15122         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15123         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15124         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15125       else
15126         allow_undefined_flag_F77=' -expect_unresolved \*'
15127         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15128         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15129         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15130
15131         # Both c and cxx compiler support -rpath directly
15132         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15133       fi
15134       hardcode_libdir_separator_F77=:
15135       ;;
15136
15137     solaris*)
15138       no_undefined_flag_F77=' -z text'
15139       if test "$GCC" = yes; then
15140         wlarc='${wl}'
15141         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15142         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15143           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15144       else
15145         wlarc=''
15146         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15147         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15148         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15149       fi
15150       hardcode_libdir_flag_spec_F77='-R$libdir'
15151       hardcode_shlibpath_var_F77=no
15152       case $host_os in
15153       solaris2.[0-5] | solaris2.[0-5].*) ;;
15154       *)
15155         # The compiler driver will combine linker options so we
15156         # cannot just pass the convience library names through
15157         # without $wl, iff we do not link with $LD.
15158         # Luckily, gcc supports the same syntax we need for Sun Studio.
15159         # Supported since Solaris 2.6 (maybe 2.5.1?)
15160         case $wlarc in
15161         '')
15162           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15163         *)
15164           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15165         esac ;;
15166       esac
15167       link_all_deplibs_F77=yes
15168       ;;
15169
15170     sunos4*)
15171       if test "x$host_vendor" = xsequent; then
15172         # Use $CC to link under sequent, because it throws in some extra .o
15173         # files that make .init and .fini sections work.
15174         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15175       else
15176         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15177       fi
15178       hardcode_libdir_flag_spec_F77='-L$libdir'
15179       hardcode_direct_F77=yes
15180       hardcode_minus_L_F77=yes
15181       hardcode_shlibpath_var_F77=no
15182       ;;
15183
15184     sysv4)
15185       case $host_vendor in
15186         sni)
15187           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15188           hardcode_direct_F77=yes # is this really true???
15189         ;;
15190         siemens)
15191           ## LD is ld it makes a PLAMLIB
15192           ## CC just makes a GrossModule.
15193           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15194           reload_cmds_F77='$CC -r -o $output$reload_objs'
15195           hardcode_direct_F77=no
15196         ;;
15197         motorola)
15198           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15199           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15200         ;;
15201       esac
15202       runpath_var='LD_RUN_PATH'
15203       hardcode_shlibpath_var_F77=no
15204       ;;
15205
15206     sysv4.3*)
15207       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15208       hardcode_shlibpath_var_F77=no
15209       export_dynamic_flag_spec_F77='-Bexport'
15210       ;;
15211
15212     sysv4*MP*)
15213       if test -d /usr/nec; then
15214         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15215         hardcode_shlibpath_var_F77=no
15216         runpath_var=LD_RUN_PATH
15217         hardcode_runpath_var=yes
15218         ld_shlibs_F77=yes
15219       fi
15220       ;;
15221
15222     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15223       no_undefined_flag_F77='${wl}-z,text'
15224       archive_cmds_need_lc_F77=no
15225       hardcode_shlibpath_var_F77=no
15226       runpath_var='LD_RUN_PATH'
15227
15228       if test "$GCC" = yes; then
15229         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15230         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15231       else
15232         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15233         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15234       fi
15235       ;;
15236
15237     sysv5* | sco3.2v5* | sco5v6*)
15238       # Note: We can NOT use -z defs as we might desire, because we do not
15239       # link with -lc, and that would cause any symbols used from libc to
15240       # always be unresolved, which means just about no library would
15241       # ever link correctly.  If we're not using GNU ld we use -z text
15242       # though, which does catch some bad symbols but isn't as heavy-handed
15243       # as -z defs.
15244       no_undefined_flag_F77='${wl}-z,text'
15245       allow_undefined_flag_F77='${wl}-z,nodefs'
15246       archive_cmds_need_lc_F77=no
15247       hardcode_shlibpath_var_F77=no
15248       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15249       hardcode_libdir_separator_F77=':'
15250       link_all_deplibs_F77=yes
15251       export_dynamic_flag_spec_F77='${wl}-Bexport'
15252       runpath_var='LD_RUN_PATH'
15253
15254       if test "$GCC" = yes; then
15255         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15256         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15257       else
15258         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15259         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15260       fi
15261       ;;
15262
15263     uts4*)
15264       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15265       hardcode_libdir_flag_spec_F77='-L$libdir'
15266       hardcode_shlibpath_var_F77=no
15267       ;;
15268
15269     *)
15270       ld_shlibs_F77=no
15271       ;;
15272     esac
15273   fi
15274
15275 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15276 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15277 test "$ld_shlibs_F77" = no && can_build_shared=no
15278
15279 #
15280 # Do we need to explicitly link libc?
15281 #
15282 case "x$archive_cmds_need_lc_F77" in
15283 x|xyes)
15284   # Assume -lc should be added
15285   archive_cmds_need_lc_F77=yes
15286
15287   if test "$enable_shared" = yes && test "$GCC" = yes; then
15288     case $archive_cmds_F77 in
15289     *'~'*)
15290       # FIXME: we may have to deal with multi-command sequences.
15291       ;;
15292     '$CC '*)
15293       # Test whether the compiler implicitly links with -lc since on some
15294       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15295       # to ld, don't add -lc before -lgcc.
15296       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15297 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15298       $rm conftest*
15299       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15300
15301       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15302   (eval $ac_compile) 2>&5
15303   ac_status=$?
15304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305   (exit $ac_status); } 2>conftest.err; then
15306         soname=conftest
15307         lib=conftest
15308         libobjs=conftest.$ac_objext
15309         deplibs=
15310         wl=$lt_prog_compiler_wl_F77
15311         pic_flag=$lt_prog_compiler_pic_F77
15312         compiler_flags=-v
15313         linker_flags=-v
15314         verstring=
15315         output_objdir=.
15316         libname=conftest
15317         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15318         allow_undefined_flag_F77=
15319         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15320   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15321   ac_status=$?
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); }
15324         then
15325           archive_cmds_need_lc_F77=no
15326         else
15327           archive_cmds_need_lc_F77=yes
15328         fi
15329         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15330       else
15331         cat conftest.err 1>&5
15332       fi
15333       $rm conftest*
15334       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15335 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15336       ;;
15337     esac
15338   fi
15339   ;;
15340 esac
15341
15342 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15343 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15344 library_names_spec=
15345 libname_spec='lib$name'
15346 soname_spec=
15347 shrext_cmds=".so"
15348 postinstall_cmds=
15349 postuninstall_cmds=
15350 finish_cmds=
15351 finish_eval=
15352 shlibpath_var=
15353 shlibpath_overrides_runpath=unknown
15354 version_type=none
15355 dynamic_linker="$host_os ld.so"
15356 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15357 if test "$GCC" = yes; then
15358   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15359   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15360     # if the path contains ";" then we assume it to be the separator
15361     # otherwise default to the standard path separator (i.e. ":") - it is
15362     # assumed that no part of a normal pathname contains ";" but that should
15363     # okay in the real world where ";" in dirpaths is itself problematic.
15364     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15365   else
15366     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15367   fi
15368 else
15369   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15370 fi
15371 need_lib_prefix=unknown
15372 hardcode_into_libs=no
15373
15374 # when you set need_version to no, make sure it does not cause -set_version
15375 # flags to be left without arguments
15376 need_version=unknown
15377
15378 case $host_os in
15379 aix3*)
15380   version_type=linux
15381   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15382   shlibpath_var=LIBPATH
15383
15384   # AIX 3 has no versioning support, so we append a major version to the name.
15385   soname_spec='${libname}${release}${shared_ext}$major'
15386   ;;
15387
15388 aix4* | aix5*)
15389   version_type=linux
15390   need_lib_prefix=no
15391   need_version=no
15392   hardcode_into_libs=yes
15393   if test "$host_cpu" = ia64; then
15394     # AIX 5 supports IA64
15395     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15396     shlibpath_var=LD_LIBRARY_PATH
15397   else
15398     # With GCC up to 2.95.x, collect2 would create an import file
15399     # for dependence libraries.  The import file would start with
15400     # the line `#! .'.  This would cause the generated library to
15401     # depend on `.', always an invalid library.  This was fixed in
15402     # development snapshots of GCC prior to 3.0.
15403     case $host_os in
15404       aix4 | aix4.[01] | aix4.[01].*)
15405       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15406            echo ' yes '
15407            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15408         :
15409       else
15410         can_build_shared=no
15411       fi
15412       ;;
15413     esac
15414     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15415     # soname into executable. Probably we can add versioning support to
15416     # collect2, so additional links can be useful in future.
15417     if test "$aix_use_runtimelinking" = yes; then
15418       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15419       # instead of lib<name>.a to let people know that these are not
15420       # typical AIX shared libraries.
15421       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15422     else
15423       # We preserve .a as extension for shared libraries through AIX4.2
15424       # and later when we are not doing run time linking.
15425       library_names_spec='${libname}${release}.a $libname.a'
15426       soname_spec='${libname}${release}${shared_ext}$major'
15427     fi
15428     shlibpath_var=LIBPATH
15429   fi
15430   ;;
15431
15432 amigaos*)
15433   library_names_spec='$libname.ixlibrary $libname.a'
15434   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15435   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15436   ;;
15437
15438 beos*)
15439   library_names_spec='${libname}${shared_ext}'
15440   dynamic_linker="$host_os ld.so"
15441   shlibpath_var=LIBRARY_PATH
15442   ;;
15443
15444 bsdi[45]*)
15445   version_type=linux
15446   need_version=no
15447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15448   soname_spec='${libname}${release}${shared_ext}$major'
15449   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15450   shlibpath_var=LD_LIBRARY_PATH
15451   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15452   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15453   # the default ld.so.conf also contains /usr/contrib/lib and
15454   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15455   # libtool to hard-code these into programs
15456   ;;
15457
15458 cygwin* | mingw* | pw32*)
15459   version_type=windows
15460   shrext_cmds=".dll"
15461   need_version=no
15462   need_lib_prefix=no
15463
15464   case $GCC,$host_os in
15465   yes,cygwin* | yes,mingw* | yes,pw32*)
15466     library_names_spec='$libname.dll.a'
15467     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15468     postinstall_cmds='base_file=`basename \${file}`~
15469       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15470       dldir=$destdir/`dirname \$dlpath`~
15471       test -d \$dldir || mkdir -p \$dldir~
15472       $install_prog $dir/$dlname \$dldir/$dlname~
15473       chmod a+x \$dldir/$dlname'
15474     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15475       dlpath=$dir/\$dldll~
15476        $rm \$dlpath'
15477     shlibpath_overrides_runpath=yes
15478
15479     case $host_os in
15480     cygwin*)
15481       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15482       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15483       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15484       ;;
15485     mingw*)
15486       # MinGW DLLs use traditional 'lib' prefix
15487       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15488       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15489       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15490         # It is most probably a Windows format PATH printed by
15491         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15492         # path with ; separators, and with drive letters. We can handle the
15493         # drive letters (cygwin fileutils understands them), so leave them,
15494         # especially as we might pass files found there to a mingw objdump,
15495         # which wouldn't understand a cygwinified path. Ahh.
15496         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15497       else
15498         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15499       fi
15500       ;;
15501     pw32*)
15502       # pw32 DLLs use 'pw' prefix rather than 'lib'
15503       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15504       ;;
15505     esac
15506     ;;
15507
15508   *)
15509     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15510     ;;
15511   esac
15512   dynamic_linker='Win32 ld.exe'
15513   # FIXME: first we should search . and the directory the executable is in
15514   shlibpath_var=PATH
15515   ;;
15516
15517 darwin* | rhapsody*)
15518   dynamic_linker="$host_os dyld"
15519   version_type=darwin
15520   need_lib_prefix=no
15521   need_version=no
15522   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15523   soname_spec='${libname}${release}${major}$shared_ext'
15524   shlibpath_overrides_runpath=yes
15525   shlibpath_var=DYLD_LIBRARY_PATH
15526   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15527   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15528   if test "$GCC" = yes; then
15529     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15530   else
15531     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15532   fi
15533   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15534   ;;
15535
15536 dgux*)
15537   version_type=linux
15538   need_lib_prefix=no
15539   need_version=no
15540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15541   soname_spec='${libname}${release}${shared_ext}$major'
15542   shlibpath_var=LD_LIBRARY_PATH
15543   ;;
15544
15545 freebsd1*)
15546   dynamic_linker=no
15547   ;;
15548
15549 freebsd* | dragonfly*)
15550   # DragonFly does not have aout.  When/if they implement a new
15551   # versioning mechanism, adjust this.
15552   if test -x /usr/bin/objformat; then
15553     objformat=`/usr/bin/objformat`
15554   else
15555     case $host_os in
15556     freebsd[123]*) objformat=aout ;;
15557     *) objformat=elf ;;
15558     esac
15559   fi
15560   version_type=freebsd-$objformat
15561   case $version_type in
15562     freebsd-elf*)
15563       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15564       need_version=no
15565       need_lib_prefix=no
15566       ;;
15567     freebsd-*)
15568       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15569       need_version=yes
15570       ;;
15571   esac
15572   shlibpath_var=LD_LIBRARY_PATH
15573   case $host_os in
15574   freebsd2*)
15575     shlibpath_overrides_runpath=yes
15576     ;;
15577   freebsd3.[01]* | freebsdelf3.[01]*)
15578     shlibpath_overrides_runpath=yes
15579     hardcode_into_libs=yes
15580     ;;
15581   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15582   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15583     shlibpath_overrides_runpath=no
15584     hardcode_into_libs=yes
15585     ;;
15586   freebsd*) # from 4.6 on
15587     shlibpath_overrides_runpath=yes
15588     hardcode_into_libs=yes
15589     ;;
15590   esac
15591   ;;
15592
15593 gnu*)
15594   version_type=linux
15595   need_lib_prefix=no
15596   need_version=no
15597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15598   soname_spec='${libname}${release}${shared_ext}$major'
15599   shlibpath_var=LD_LIBRARY_PATH
15600   hardcode_into_libs=yes
15601   ;;
15602
15603 hpux9* | hpux10* | hpux11*)
15604   # Give a soname corresponding to the major version so that dld.sl refuses to
15605   # link against other versions.
15606   version_type=sunos
15607   need_lib_prefix=no
15608   need_version=no
15609   case $host_cpu in
15610   ia64*)
15611     shrext_cmds='.so'
15612     hardcode_into_libs=yes
15613     dynamic_linker="$host_os dld.so"
15614     shlibpath_var=LD_LIBRARY_PATH
15615     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15616     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617     soname_spec='${libname}${release}${shared_ext}$major'
15618     if test "X$HPUX_IA64_MODE" = X32; then
15619       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15620     else
15621       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15622     fi
15623     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15624     ;;
15625    hppa*64*)
15626      shrext_cmds='.sl'
15627      hardcode_into_libs=yes
15628      dynamic_linker="$host_os dld.sl"
15629      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15630      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15631      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632      soname_spec='${libname}${release}${shared_ext}$major'
15633      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15634      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15635      ;;
15636    *)
15637     shrext_cmds='.sl'
15638     dynamic_linker="$host_os dld.sl"
15639     shlibpath_var=SHLIB_PATH
15640     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642     soname_spec='${libname}${release}${shared_ext}$major'
15643     ;;
15644   esac
15645   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15646   postinstall_cmds='chmod 555 $lib'
15647   ;;
15648
15649 interix3*)
15650   version_type=linux
15651   need_lib_prefix=no
15652   need_version=no
15653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15654   soname_spec='${libname}${release}${shared_ext}$major'
15655   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15656   shlibpath_var=LD_LIBRARY_PATH
15657   shlibpath_overrides_runpath=no
15658   hardcode_into_libs=yes
15659   ;;
15660
15661 irix5* | irix6* | nonstopux*)
15662   case $host_os in
15663     nonstopux*) version_type=nonstopux ;;
15664     *)
15665         if test "$lt_cv_prog_gnu_ld" = yes; then
15666                 version_type=linux
15667         else
15668                 version_type=irix
15669         fi ;;
15670   esac
15671   need_lib_prefix=no
15672   need_version=no
15673   soname_spec='${libname}${release}${shared_ext}$major'
15674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15675   case $host_os in
15676   irix5* | nonstopux*)
15677     libsuff= shlibsuff=
15678     ;;
15679   *)
15680     case $LD in # libtool.m4 will add one of these switches to LD
15681     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15682       libsuff= shlibsuff= libmagic=32-bit;;
15683     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15684       libsuff=32 shlibsuff=N32 libmagic=N32;;
15685     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15686       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15687     *) libsuff= shlibsuff= libmagic=never-match;;
15688     esac
15689     ;;
15690   esac
15691   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15692   shlibpath_overrides_runpath=no
15693   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15694   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15695   hardcode_into_libs=yes
15696   ;;
15697
15698 # No shared lib support for Linux oldld, aout, or coff.
15699 linux*oldld* | linux*aout* | linux*coff*)
15700   dynamic_linker=no
15701   ;;
15702
15703 # This must be Linux ELF.
15704 linux* | k*bsd*-gnu)
15705   version_type=linux
15706   need_lib_prefix=no
15707   need_version=no
15708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15709   soname_spec='${libname}${release}${shared_ext}$major'
15710   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15711   shlibpath_var=LD_LIBRARY_PATH
15712   shlibpath_overrides_runpath=no
15713   # This implies no fast_install, which is unacceptable.
15714   # Some rework will be needed to allow for fast_install
15715   # before this can be enabled.
15716   hardcode_into_libs=yes
15717
15718   # Append ld.so.conf contents to the search path
15719   if test -f /etc/ld.so.conf; then
15720     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15721     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15722   fi
15723
15724   # We used to test for /lib/ld.so.1 and disable shared libraries on
15725   # powerpc, because MkLinux only supported shared libraries with the
15726   # GNU dynamic linker.  Since this was broken with cross compilers,
15727   # most powerpc-linux boxes support dynamic linking these days and
15728   # people can always --disable-shared, the test was removed, and we
15729   # assume the GNU/Linux dynamic linker is in use.
15730   dynamic_linker='GNU/Linux ld.so'
15731   ;;
15732
15733 netbsdelf*-gnu)
15734   version_type=linux
15735   need_lib_prefix=no
15736   need_version=no
15737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15738   soname_spec='${libname}${release}${shared_ext}$major'
15739   shlibpath_var=LD_LIBRARY_PATH
15740   shlibpath_overrides_runpath=no
15741   hardcode_into_libs=yes
15742   dynamic_linker='NetBSD ld.elf_so'
15743   ;;
15744
15745 netbsd*)
15746   version_type=sunos
15747   need_lib_prefix=no
15748   need_version=no
15749   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15750     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15751     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15752     dynamic_linker='NetBSD (a.out) ld.so'
15753   else
15754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15755     soname_spec='${libname}${release}${shared_ext}$major'
15756     dynamic_linker='NetBSD ld.elf_so'
15757   fi
15758   shlibpath_var=LD_LIBRARY_PATH
15759   shlibpath_overrides_runpath=yes
15760   hardcode_into_libs=yes
15761   ;;
15762
15763 newsos6)
15764   version_type=linux
15765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15766   shlibpath_var=LD_LIBRARY_PATH
15767   shlibpath_overrides_runpath=yes
15768   ;;
15769
15770 nto-qnx*)
15771   version_type=linux
15772   need_lib_prefix=no
15773   need_version=no
15774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15775   soname_spec='${libname}${release}${shared_ext}$major'
15776   shlibpath_var=LD_LIBRARY_PATH
15777   shlibpath_overrides_runpath=yes
15778   ;;
15779
15780 openbsd*)
15781   version_type=sunos
15782   sys_lib_dlsearch_path_spec="/usr/lib"
15783   need_lib_prefix=no
15784   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15785   case $host_os in
15786     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15787     *)                         need_version=no  ;;
15788   esac
15789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15790   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15791   shlibpath_var=LD_LIBRARY_PATH
15792   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15793     case $host_os in
15794       openbsd2.[89] | openbsd2.[89].*)
15795         shlibpath_overrides_runpath=no
15796         ;;
15797       *)
15798         shlibpath_overrides_runpath=yes
15799         ;;
15800       esac
15801   else
15802     shlibpath_overrides_runpath=yes
15803   fi
15804   ;;
15805
15806 os2*)
15807   libname_spec='$name'
15808   shrext_cmds=".dll"
15809   need_lib_prefix=no
15810   library_names_spec='$libname${shared_ext} $libname.a'
15811   dynamic_linker='OS/2 ld.exe'
15812   shlibpath_var=LIBPATH
15813   ;;
15814
15815 osf3* | osf4* | osf5*)
15816   version_type=osf
15817   need_lib_prefix=no
15818   need_version=no
15819   soname_spec='${libname}${release}${shared_ext}$major'
15820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15821   shlibpath_var=LD_LIBRARY_PATH
15822   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15823   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15824   ;;
15825
15826 solaris*)
15827   version_type=linux
15828   need_lib_prefix=no
15829   need_version=no
15830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15831   soname_spec='${libname}${release}${shared_ext}$major'
15832   shlibpath_var=LD_LIBRARY_PATH
15833   shlibpath_overrides_runpath=yes
15834   hardcode_into_libs=yes
15835   # ldd complains unless libraries are executable
15836   postinstall_cmds='chmod +x $lib'
15837   ;;
15838
15839 sunos4*)
15840   version_type=sunos
15841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15842   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15843   shlibpath_var=LD_LIBRARY_PATH
15844   shlibpath_overrides_runpath=yes
15845   if test "$with_gnu_ld" = yes; then
15846     need_lib_prefix=no
15847   fi
15848   need_version=yes
15849   ;;
15850
15851 sysv4 | sysv4.3*)
15852   version_type=linux
15853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854   soname_spec='${libname}${release}${shared_ext}$major'
15855   shlibpath_var=LD_LIBRARY_PATH
15856   case $host_vendor in
15857     sni)
15858       shlibpath_overrides_runpath=no
15859       need_lib_prefix=no
15860       export_dynamic_flag_spec='${wl}-Blargedynsym'
15861       runpath_var=LD_RUN_PATH
15862       ;;
15863     siemens)
15864       need_lib_prefix=no
15865       ;;
15866     motorola)
15867       need_lib_prefix=no
15868       need_version=no
15869       shlibpath_overrides_runpath=no
15870       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15871       ;;
15872   esac
15873   ;;
15874
15875 sysv4*MP*)
15876   if test -d /usr/nec ;then
15877     version_type=linux
15878     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15879     soname_spec='$libname${shared_ext}.$major'
15880     shlibpath_var=LD_LIBRARY_PATH
15881   fi
15882   ;;
15883
15884 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15885   version_type=freebsd-elf
15886   need_lib_prefix=no
15887   need_version=no
15888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15889   soname_spec='${libname}${release}${shared_ext}$major'
15890   shlibpath_var=LD_LIBRARY_PATH
15891   hardcode_into_libs=yes
15892   if test "$with_gnu_ld" = yes; then
15893     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15894     shlibpath_overrides_runpath=no
15895   else
15896     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15897     shlibpath_overrides_runpath=yes
15898     case $host_os in
15899       sco3.2v5*)
15900         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15901         ;;
15902     esac
15903   fi
15904   sys_lib_dlsearch_path_spec='/usr/lib'
15905   ;;
15906
15907 uts4*)
15908   version_type=linux
15909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910   soname_spec='${libname}${release}${shared_ext}$major'
15911   shlibpath_var=LD_LIBRARY_PATH
15912   ;;
15913
15914 *)
15915   dynamic_linker=no
15916   ;;
15917 esac
15918 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15919 echo "${ECHO_T}$dynamic_linker" >&6; }
15920 test "$dynamic_linker" = no && can_build_shared=no
15921
15922 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15923 if test "$GCC" = yes; then
15924   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15925 fi
15926
15927 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15928 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15929 hardcode_action_F77=
15930 if test -n "$hardcode_libdir_flag_spec_F77" || \
15931    test -n "$runpath_var_F77" || \
15932    test "X$hardcode_automatic_F77" = "Xyes" ; then
15933
15934   # We can hardcode non-existant directories.
15935   if test "$hardcode_direct_F77" != no &&
15936      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15937      # have to relink, otherwise we might link with an installed library
15938      # when we should be linking with a yet-to-be-installed one
15939      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15940      test "$hardcode_minus_L_F77" != no; then
15941     # Linking always hardcodes the temporary library directory.
15942     hardcode_action_F77=relink
15943   else
15944     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15945     hardcode_action_F77=immediate
15946   fi
15947 else
15948   # We cannot hardcode anything, or else we can only hardcode existing
15949   # directories.
15950   hardcode_action_F77=unsupported
15951 fi
15952 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15953 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15954
15955 if test "$hardcode_action_F77" = relink; then
15956   # Fast installation is not supported
15957   enable_fast_install=no
15958 elif test "$shlibpath_overrides_runpath" = yes ||
15959      test "$enable_shared" = no; then
15960   # Fast installation is not necessary
15961   enable_fast_install=needless
15962 fi
15963
15964
15965 # The else clause should only fire when bootstrapping the
15966 # libtool distribution, otherwise you forgot to ship ltmain.sh
15967 # with your package, and you will get complaints that there are
15968 # no rules to generate ltmain.sh.
15969 if test -f "$ltmain"; then
15970   # See if we are running on zsh, and set the options which allow our commands through
15971   # without removal of \ escapes.
15972   if test -n "${ZSH_VERSION+set}" ; then
15973     setopt NO_GLOB_SUBST
15974   fi
15975   # Now quote all the things that may contain metacharacters while being
15976   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15977   # variables and quote the copies for generation of the libtool script.
15978   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15979     SED SHELL STRIP \
15980     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15981     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15982     deplibs_check_method reload_flag reload_cmds need_locks \
15983     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15984     lt_cv_sys_global_symbol_to_c_name_address \
15985     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15986     old_postinstall_cmds old_postuninstall_cmds \
15987     compiler_F77 \
15988     CC_F77 \
15989     LD_F77 \
15990     lt_prog_compiler_wl_F77 \
15991     lt_prog_compiler_pic_F77 \
15992     lt_prog_compiler_static_F77 \
15993     lt_prog_compiler_no_builtin_flag_F77 \
15994     export_dynamic_flag_spec_F77 \
15995     thread_safe_flag_spec_F77 \
15996     whole_archive_flag_spec_F77 \
15997     enable_shared_with_static_runtimes_F77 \
15998     old_archive_cmds_F77 \
15999     old_archive_from_new_cmds_F77 \
16000     predep_objects_F77 \
16001     postdep_objects_F77 \
16002     predeps_F77 \
16003     postdeps_F77 \
16004     compiler_lib_search_path_F77 \
16005     archive_cmds_F77 \
16006     archive_expsym_cmds_F77 \
16007     postinstall_cmds_F77 \
16008     postuninstall_cmds_F77 \
16009     old_archive_from_expsyms_cmds_F77 \
16010     allow_undefined_flag_F77 \
16011     no_undefined_flag_F77 \
16012     export_symbols_cmds_F77 \
16013     hardcode_libdir_flag_spec_F77 \
16014     hardcode_libdir_flag_spec_ld_F77 \
16015     hardcode_libdir_separator_F77 \
16016     hardcode_automatic_F77 \
16017     module_cmds_F77 \
16018     module_expsym_cmds_F77 \
16019     lt_cv_prog_compiler_c_o_F77 \
16020     exclude_expsyms_F77 \
16021     include_expsyms_F77; do
16022
16023     case $var in
16024     old_archive_cmds_F77 | \
16025     old_archive_from_new_cmds_F77 | \
16026     archive_cmds_F77 | \
16027     archive_expsym_cmds_F77 | \
16028     module_cmds_F77 | \
16029     module_expsym_cmds_F77 | \
16030     old_archive_from_expsyms_cmds_F77 | \
16031     export_symbols_cmds_F77 | \
16032     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16033     postinstall_cmds | postuninstall_cmds | \
16034     old_postinstall_cmds | old_postuninstall_cmds | \
16035     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16036       # Double-quote double-evaled strings.
16037       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16038       ;;
16039     *)
16040       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16041       ;;
16042     esac
16043   done
16044
16045   case $lt_echo in
16046   *'\$0 --fallback-echo"')
16047     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16048     ;;
16049   esac
16050
16051 cfgfile="$ofile"
16052
16053   cat <<__EOF__ >> "$cfgfile"
16054 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16055
16056 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16057
16058 # Shell to use when invoking shell scripts.
16059 SHELL=$lt_SHELL
16060
16061 # Whether or not to build shared libraries.
16062 build_libtool_libs=$enable_shared
16063
16064 # Whether or not to build static libraries.
16065 build_old_libs=$enable_static
16066
16067 # Whether or not to add -lc for building shared libraries.
16068 build_libtool_need_lc=$archive_cmds_need_lc_F77
16069
16070 # Whether or not to disallow shared libs when runtime libs are static
16071 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16072
16073 # Whether or not to optimize for fast installation.
16074 fast_install=$enable_fast_install
16075
16076 # The host system.
16077 host_alias=$host_alias
16078 host=$host
16079 host_os=$host_os
16080
16081 # The build system.
16082 build_alias=$build_alias
16083 build=$build
16084 build_os=$build_os
16085
16086 # An echo program that does not interpret backslashes.
16087 echo=$lt_echo
16088
16089 # The archiver.
16090 AR=$lt_AR
16091 AR_FLAGS=$lt_AR_FLAGS
16092
16093 # A C compiler.
16094 LTCC=$lt_LTCC
16095
16096 # LTCC compiler flags.
16097 LTCFLAGS=$lt_LTCFLAGS
16098
16099 # A language-specific compiler.
16100 CC=$lt_compiler_F77
16101
16102 # Is the compiler the GNU C compiler?
16103 with_gcc=$GCC_F77
16104
16105 # An ERE matcher.
16106 EGREP=$lt_EGREP
16107
16108 # The linker used to build libraries.
16109 LD=$lt_LD_F77
16110
16111 # Whether we need hard or soft links.
16112 LN_S=$lt_LN_S
16113
16114 # A BSD-compatible nm program.
16115 NM=$lt_NM
16116
16117 # A symbol stripping program
16118 STRIP=$lt_STRIP
16119
16120 # Used to examine libraries when file_magic_cmd begins "file"
16121 MAGIC_CMD=$MAGIC_CMD
16122
16123 # Used on cygwin: DLL creation program.
16124 DLLTOOL="$DLLTOOL"
16125
16126 # Used on cygwin: object dumper.
16127 OBJDUMP="$OBJDUMP"
16128
16129 # Used on cygwin: assembler.
16130 AS="$AS"
16131
16132 # The name of the directory that contains temporary libtool files.
16133 objdir=$objdir
16134
16135 # How to create reloadable object files.
16136 reload_flag=$lt_reload_flag
16137 reload_cmds=$lt_reload_cmds
16138
16139 # How to pass a linker flag through the compiler.
16140 wl=$lt_lt_prog_compiler_wl_F77
16141
16142 # Object file suffix (normally "o").
16143 objext="$ac_objext"
16144
16145 # Old archive suffix (normally "a").
16146 libext="$libext"
16147
16148 # Shared library suffix (normally ".so").
16149 shrext_cmds='$shrext_cmds'
16150
16151 # Executable file suffix (normally "").
16152 exeext="$exeext"
16153
16154 # Additional compiler flags for building library objects.
16155 pic_flag=$lt_lt_prog_compiler_pic_F77
16156 pic_mode=$pic_mode
16157
16158 # What is the maximum length of a command?
16159 max_cmd_len=$lt_cv_sys_max_cmd_len
16160
16161 # Does compiler simultaneously support -c and -o options?
16162 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16163
16164 # Must we lock files when doing compilation?
16165 need_locks=$lt_need_locks
16166
16167 # Do we need the lib prefix for modules?
16168 need_lib_prefix=$need_lib_prefix
16169
16170 # Do we need a version for libraries?
16171 need_version=$need_version
16172
16173 # Whether dlopen is supported.
16174 dlopen_support=$enable_dlopen
16175
16176 # Whether dlopen of programs is supported.
16177 dlopen_self=$enable_dlopen_self
16178
16179 # Whether dlopen of statically linked programs is supported.
16180 dlopen_self_static=$enable_dlopen_self_static
16181
16182 # Compiler flag to prevent dynamic linking.
16183 link_static_flag=$lt_lt_prog_compiler_static_F77
16184
16185 # Compiler flag to turn off builtin functions.
16186 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16187
16188 # Compiler flag to allow reflexive dlopens.
16189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16190
16191 # Compiler flag to generate shared objects directly from archives.
16192 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16193
16194 # Compiler flag to generate thread-safe objects.
16195 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16196
16197 # Library versioning type.
16198 version_type=$version_type
16199
16200 # Format of library name prefix.
16201 libname_spec=$lt_libname_spec
16202
16203 # List of archive names.  First name is the real one, the rest are links.
16204 # The last name is the one that the linker finds with -lNAME.
16205 library_names_spec=$lt_library_names_spec
16206
16207 # The coded name of the library, if different from the real name.
16208 soname_spec=$lt_soname_spec
16209
16210 # Commands used to build and install an old-style archive.
16211 RANLIB=$lt_RANLIB
16212 old_archive_cmds=$lt_old_archive_cmds_F77
16213 old_postinstall_cmds=$lt_old_postinstall_cmds
16214 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16215
16216 # Create an old-style archive from a shared archive.
16217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16218
16219 # Create a temporary old-style archive to link instead of a shared archive.
16220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16221
16222 # Commands used to build and install a shared archive.
16223 archive_cmds=$lt_archive_cmds_F77
16224 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16225 postinstall_cmds=$lt_postinstall_cmds
16226 postuninstall_cmds=$lt_postuninstall_cmds
16227
16228 # Commands used to build a loadable module (assumed same as above if empty)
16229 module_cmds=$lt_module_cmds_F77
16230 module_expsym_cmds=$lt_module_expsym_cmds_F77
16231
16232 # Commands to strip libraries.
16233 old_striplib=$lt_old_striplib
16234 striplib=$lt_striplib
16235
16236 # Dependencies to place before the objects being linked to create a
16237 # shared library.
16238 predep_objects=$lt_predep_objects_F77
16239
16240 # Dependencies to place after the objects being linked to create a
16241 # shared library.
16242 postdep_objects=$lt_postdep_objects_F77
16243
16244 # Dependencies to place before the objects being linked to create a
16245 # shared library.
16246 predeps=$lt_predeps_F77
16247
16248 # Dependencies to place after the objects being linked to create a
16249 # shared library.
16250 postdeps=$lt_postdeps_F77
16251
16252 # The library search path used internally by the compiler when linking
16253 # a shared library.
16254 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16255
16256 # Method to check whether dependent libraries are shared objects.
16257 deplibs_check_method=$lt_deplibs_check_method
16258
16259 # Command to use when deplibs_check_method == file_magic.
16260 file_magic_cmd=$lt_file_magic_cmd
16261
16262 # Flag that allows shared libraries with undefined symbols to be built.
16263 allow_undefined_flag=$lt_allow_undefined_flag_F77
16264
16265 # Flag that forces no undefined symbols.
16266 no_undefined_flag=$lt_no_undefined_flag_F77
16267
16268 # Commands used to finish a libtool library installation in a directory.
16269 finish_cmds=$lt_finish_cmds
16270
16271 # Same as above, but a single script fragment to be evaled but not shown.
16272 finish_eval=$lt_finish_eval
16273
16274 # Take the output of nm and produce a listing of raw symbols and C names.
16275 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16276
16277 # Transform the output of nm in a proper C declaration
16278 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16279
16280 # Transform the output of nm in a C name address pair
16281 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16282
16283 # This is the shared library runtime path variable.
16284 runpath_var=$runpath_var
16285
16286 # This is the shared library path variable.
16287 shlibpath_var=$shlibpath_var
16288
16289 # Is shlibpath searched before the hard-coded library search path?
16290 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16291
16292 # How to hardcode a shared library path into an executable.
16293 hardcode_action=$hardcode_action_F77
16294
16295 # Whether we should hardcode library paths into libraries.
16296 hardcode_into_libs=$hardcode_into_libs
16297
16298 # Flag to hardcode \$libdir into a binary during linking.
16299 # This must work even if \$libdir does not exist.
16300 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16301
16302 # If ld is used when linking, flag to hardcode \$libdir into
16303 # a binary during linking. This must work even if \$libdir does
16304 # not exist.
16305 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16306
16307 # Whether we need a single -rpath flag with a separated argument.
16308 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16309
16310 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16311 # resulting binary.
16312 hardcode_direct=$hardcode_direct_F77
16313
16314 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16315 # resulting binary.
16316 hardcode_minus_L=$hardcode_minus_L_F77
16317
16318 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16319 # the resulting binary.
16320 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16321
16322 # Set to yes if building a shared library automatically hardcodes DIR into the library
16323 # and all subsequent libraries and executables linked against it.
16324 hardcode_automatic=$hardcode_automatic_F77
16325
16326 # Variables whose values should be saved in libtool wrapper scripts and
16327 # restored at relink time.
16328 variables_saved_for_relink="$variables_saved_for_relink"
16329
16330 # Whether libtool must link a program against all its dependency libraries.
16331 link_all_deplibs=$link_all_deplibs_F77
16332
16333 # Compile-time system search path for libraries
16334 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16335
16336 # Run-time system search path for libraries
16337 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16338
16339 # Fix the shell variable \$srcfile for the compiler.
16340 fix_srcfile_path="$fix_srcfile_path_F77"
16341
16342 # Set to yes if exported symbols are required.
16343 always_export_symbols=$always_export_symbols_F77
16344
16345 # The commands to list exported symbols.
16346 export_symbols_cmds=$lt_export_symbols_cmds_F77
16347
16348 # The commands to extract the exported symbol list from a shared archive.
16349 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16350
16351 # Symbols that should not be listed in the preloaded symbols.
16352 exclude_expsyms=$lt_exclude_expsyms_F77
16353
16354 # Symbols that must always be exported.
16355 include_expsyms=$lt_include_expsyms_F77
16356
16357 # ### END LIBTOOL TAG CONFIG: $tagname
16358
16359 __EOF__
16360
16361
16362 else
16363   # If there is no Makefile yet, we rely on a make rule to execute
16364   # `config.status --recheck' to rerun these tests and create the
16365   # libtool script then.
16366   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16367   if test -f "$ltmain_in"; then
16368     test -f Makefile && make "$ltmain"
16369   fi
16370 fi
16371
16372
16373 ac_ext=c
16374 ac_cpp='$CPP $CPPFLAGS'
16375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16378
16379 CC="$lt_save_CC"
16380
16381         else
16382           tagname=""
16383         fi
16384         ;;
16385
16386       GCJ)
16387         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16388
16389
16390 # Source file extension for Java test sources.
16391 ac_ext=java
16392
16393 # Object file extension for compiled Java test sources.
16394 objext=o
16395 objext_GCJ=$objext
16396
16397 # Code to be used in simple compile tests
16398 lt_simple_compile_test_code="class foo {}\n"
16399
16400 # Code to be used in simple link tests
16401 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16402
16403 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16404
16405 # If no C compiler was specified, use CC.
16406 LTCC=${LTCC-"$CC"}
16407
16408 # If no C compiler flags were specified, use CFLAGS.
16409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16410
16411 # Allow CC to be a program name with arguments.
16412 compiler=$CC
16413
16414
16415 # save warnings/boilerplate of simple test code
16416 ac_outfile=conftest.$ac_objext
16417 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16418 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16419 _lt_compiler_boilerplate=`cat conftest.err`
16420 $rm conftest*
16421
16422 ac_outfile=conftest.$ac_objext
16423 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16424 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16425 _lt_linker_boilerplate=`cat conftest.err`
16426 $rm conftest*
16427
16428
16429 # Allow CC to be a program name with arguments.
16430 lt_save_CC="$CC"
16431 CC=${GCJ-"gcj"}
16432 compiler=$CC
16433 compiler_GCJ=$CC
16434 for cc_temp in $compiler""; do
16435   case $cc_temp in
16436     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16437     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16438     \-*) ;;
16439     *) break;;
16440   esac
16441 done
16442 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16443
16444
16445 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16446 archive_cmds_need_lc_GCJ=no
16447
16448 old_archive_cmds_GCJ=$old_archive_cmds
16449
16450
16451 lt_prog_compiler_no_builtin_flag_GCJ=
16452
16453 if test "$GCC" = yes; then
16454   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16455
16456
16457 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16458 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16459 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16460   echo $ECHO_N "(cached) $ECHO_C" >&6
16461 else
16462   lt_cv_prog_compiler_rtti_exceptions=no
16463   ac_outfile=conftest.$ac_objext
16464    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16465    lt_compiler_flag="-fno-rtti -fno-exceptions"
16466    # Insert the option either (1) after the last *FLAGS variable, or
16467    # (2) before a word containing "conftest.", or (3) at the end.
16468    # Note that $ac_compile itself does not contain backslashes and begins
16469    # with a dollar sign (not a hyphen), so the echo should work correctly.
16470    # The option is referenced via a variable to avoid confusing sed.
16471    lt_compile=`echo "$ac_compile" | $SED \
16472    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16473    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16474    -e 's:$: $lt_compiler_flag:'`
16475    (eval echo "\"\$as_me:16475: $lt_compile\"" >&5)
16476    (eval "$lt_compile" 2>conftest.err)
16477    ac_status=$?
16478    cat conftest.err >&5
16479    echo "$as_me:16479: \$? = $ac_status" >&5
16480    if (exit $ac_status) && test -s "$ac_outfile"; then
16481      # The compiler can only warn and ignore the option if not recognized
16482      # So say no if there are warnings other than the usual output.
16483      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16484      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16485      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16486        lt_cv_prog_compiler_rtti_exceptions=yes
16487      fi
16488    fi
16489    $rm conftest*
16490
16491 fi
16492 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16493 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16494
16495 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16496     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16497 else
16498     :
16499 fi
16500
16501 fi
16502
16503 lt_prog_compiler_wl_GCJ=
16504 lt_prog_compiler_pic_GCJ=
16505 lt_prog_compiler_static_GCJ=
16506
16507 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16508 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16509
16510   if test "$GCC" = yes; then
16511     lt_prog_compiler_wl_GCJ='-Wl,'
16512     lt_prog_compiler_static_GCJ='-static'
16513
16514     case $host_os in
16515       aix*)
16516       # All AIX code is PIC.
16517       if test "$host_cpu" = ia64; then
16518         # AIX 5 now supports IA64 processor
16519         lt_prog_compiler_static_GCJ='-Bstatic'
16520       fi
16521       ;;
16522
16523     amigaos*)
16524       # FIXME: we need at least 68020 code to build shared libraries, but
16525       # adding the `-m68020' flag to GCC prevents building anything better,
16526       # like `-m68040'.
16527       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16528       ;;
16529
16530     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16531       # PIC is the default for these OSes.
16532       ;;
16533
16534     mingw* | pw32* | os2*)
16535       # This hack is so that the source file can tell whether it is being
16536       # built for inclusion in a dll (and should export symbols for example).
16537       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16538       ;;
16539
16540     darwin* | rhapsody*)
16541       # PIC is the default on this platform
16542       # Common symbols not allowed in MH_DYLIB files
16543       lt_prog_compiler_pic_GCJ='-fno-common'
16544       ;;
16545
16546     interix3*)
16547       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16548       # Instead, we relocate shared libraries at runtime.
16549       ;;
16550
16551     msdosdjgpp*)
16552       # Just because we use GCC doesn't mean we suddenly get shared libraries
16553       # on systems that don't support them.
16554       lt_prog_compiler_can_build_shared_GCJ=no
16555       enable_shared=no
16556       ;;
16557
16558     sysv4*MP*)
16559       if test -d /usr/nec; then
16560         lt_prog_compiler_pic_GCJ=-Kconform_pic
16561       fi
16562       ;;
16563
16564     hpux*)
16565       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16566       # not for PA HP-UX.
16567       case $host_cpu in
16568       hppa*64*|ia64*)
16569         # +Z the default
16570         ;;
16571       *)
16572         lt_prog_compiler_pic_GCJ='-fPIC'
16573         ;;
16574       esac
16575       ;;
16576
16577     *)
16578       lt_prog_compiler_pic_GCJ='-fPIC'
16579       ;;
16580     esac
16581   else
16582     # PORTME Check for flag to pass linker flags through the system compiler.
16583     case $host_os in
16584     aix*)
16585       lt_prog_compiler_wl_GCJ='-Wl,'
16586       if test "$host_cpu" = ia64; then
16587         # AIX 5 now supports IA64 processor
16588         lt_prog_compiler_static_GCJ='-Bstatic'
16589       else
16590         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16591       fi
16592       ;;
16593       darwin*)
16594         # PIC is the default on this platform
16595         # Common symbols not allowed in MH_DYLIB files
16596        case $cc_basename in
16597          xlc*)
16598          lt_prog_compiler_pic_GCJ='-qnocommon'
16599          lt_prog_compiler_wl_GCJ='-Wl,'
16600          ;;
16601        esac
16602        ;;
16603
16604     mingw* | pw32* | os2*)
16605       # This hack is so that the source file can tell whether it is being
16606       # built for inclusion in a dll (and should export symbols for example).
16607       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16608       ;;
16609
16610     hpux9* | hpux10* | hpux11*)
16611       lt_prog_compiler_wl_GCJ='-Wl,'
16612       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16613       # not for PA HP-UX.
16614       case $host_cpu in
16615       hppa*64*|ia64*)
16616         # +Z the default
16617         ;;
16618       *)
16619         lt_prog_compiler_pic_GCJ='+Z'
16620         ;;
16621       esac
16622       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16623       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16624       ;;
16625
16626     irix5* | irix6* | nonstopux*)
16627       lt_prog_compiler_wl_GCJ='-Wl,'
16628       # PIC (with -KPIC) is the default.
16629       lt_prog_compiler_static_GCJ='-non_shared'
16630       ;;
16631
16632     newsos6)
16633       lt_prog_compiler_pic_GCJ='-KPIC'
16634       lt_prog_compiler_static_GCJ='-Bstatic'
16635       ;;
16636
16637     linux* | k*bsd*-gnu)
16638       case $cc_basename in
16639       icc* | ecc*)
16640         lt_prog_compiler_wl_GCJ='-Wl,'
16641         lt_prog_compiler_pic_GCJ='-KPIC'
16642         lt_prog_compiler_static_GCJ='-static'
16643         ;;
16644       pgcc* | pgf77* | pgf90* | pgf95*)
16645         # Portland Group compilers (*not* the Pentium gcc compiler,
16646         # which looks to be a dead project)
16647         lt_prog_compiler_wl_GCJ='-Wl,'
16648         lt_prog_compiler_pic_GCJ='-fpic'
16649         lt_prog_compiler_static_GCJ='-Bstatic'
16650         ;;
16651       ccc*)
16652         lt_prog_compiler_wl_GCJ='-Wl,'
16653         # All Alpha code is PIC.
16654         lt_prog_compiler_static_GCJ='-non_shared'
16655         ;;
16656       esac
16657       ;;
16658
16659     osf3* | osf4* | osf5*)
16660       lt_prog_compiler_wl_GCJ='-Wl,'
16661       # All OSF/1 code is PIC.
16662       lt_prog_compiler_static_GCJ='-non_shared'
16663       ;;
16664
16665     solaris*)
16666       lt_prog_compiler_pic_GCJ='-KPIC'
16667       lt_prog_compiler_static_GCJ='-Bstatic'
16668       case $cc_basename in
16669       f77* | f90* | f95*)
16670         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16671       *)
16672         lt_prog_compiler_wl_GCJ='-Wl,';;
16673       esac
16674       ;;
16675
16676     sunos4*)
16677       lt_prog_compiler_wl_GCJ='-Qoption ld '
16678       lt_prog_compiler_pic_GCJ='-PIC'
16679       lt_prog_compiler_static_GCJ='-Bstatic'
16680       ;;
16681
16682     sysv4 | sysv4.2uw2* | sysv4.3*)
16683       lt_prog_compiler_wl_GCJ='-Wl,'
16684       lt_prog_compiler_pic_GCJ='-KPIC'
16685       lt_prog_compiler_static_GCJ='-Bstatic'
16686       ;;
16687
16688     sysv4*MP*)
16689       if test -d /usr/nec ;then
16690         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16691         lt_prog_compiler_static_GCJ='-Bstatic'
16692       fi
16693       ;;
16694
16695     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16696       lt_prog_compiler_wl_GCJ='-Wl,'
16697       lt_prog_compiler_pic_GCJ='-KPIC'
16698       lt_prog_compiler_static_GCJ='-Bstatic'
16699       ;;
16700
16701     unicos*)
16702       lt_prog_compiler_wl_GCJ='-Wl,'
16703       lt_prog_compiler_can_build_shared_GCJ=no
16704       ;;
16705
16706     uts4*)
16707       lt_prog_compiler_pic_GCJ='-pic'
16708       lt_prog_compiler_static_GCJ='-Bstatic'
16709       ;;
16710
16711     *)
16712       lt_prog_compiler_can_build_shared_GCJ=no
16713       ;;
16714     esac
16715   fi
16716
16717 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16718 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16719
16720 #
16721 # Check to make sure the PIC flag actually works.
16722 #
16723 if test -n "$lt_prog_compiler_pic_GCJ"; then
16724
16725 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16726 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16727 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16728   echo $ECHO_N "(cached) $ECHO_C" >&6
16729 else
16730   lt_prog_compiler_pic_works_GCJ=no
16731   ac_outfile=conftest.$ac_objext
16732    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16733    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16734    # Insert the option either (1) after the last *FLAGS variable, or
16735    # (2) before a word containing "conftest.", or (3) at the end.
16736    # Note that $ac_compile itself does not contain backslashes and begins
16737    # with a dollar sign (not a hyphen), so the echo should work correctly.
16738    # The option is referenced via a variable to avoid confusing sed.
16739    lt_compile=`echo "$ac_compile" | $SED \
16740    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16741    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16742    -e 's:$: $lt_compiler_flag:'`
16743    (eval echo "\"\$as_me:16743: $lt_compile\"" >&5)
16744    (eval "$lt_compile" 2>conftest.err)
16745    ac_status=$?
16746    cat conftest.err >&5
16747    echo "$as_me:16747: \$? = $ac_status" >&5
16748    if (exit $ac_status) && test -s "$ac_outfile"; then
16749      # The compiler can only warn and ignore the option if not recognized
16750      # So say no if there are warnings other than the usual output.
16751      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16752      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16753      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16754        lt_prog_compiler_pic_works_GCJ=yes
16755      fi
16756    fi
16757    $rm conftest*
16758
16759 fi
16760 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16761 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16762
16763 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16764     case $lt_prog_compiler_pic_GCJ in
16765      "" | " "*) ;;
16766      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16767      esac
16768 else
16769     lt_prog_compiler_pic_GCJ=
16770      lt_prog_compiler_can_build_shared_GCJ=no
16771 fi
16772
16773 fi
16774 case $host_os in
16775   # For platforms which do not support PIC, -DPIC is meaningless:
16776   *djgpp*)
16777     lt_prog_compiler_pic_GCJ=
16778     ;;
16779   *)
16780     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16781     ;;
16782 esac
16783
16784 #
16785 # Check to make sure the static flag actually works.
16786 #
16787 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16788 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16789 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16790 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16791   echo $ECHO_N "(cached) $ECHO_C" >&6
16792 else
16793   lt_prog_compiler_static_works_GCJ=no
16794    save_LDFLAGS="$LDFLAGS"
16795    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16796    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16797    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16798      # The linker can only warn and ignore the option if not recognized
16799      # So say no if there are warnings
16800      if test -s conftest.err; then
16801        # Append any errors to the config.log.
16802        cat conftest.err 1>&5
16803        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16804        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16805        if diff conftest.exp conftest.er2 >/dev/null; then
16806          lt_prog_compiler_static_works_GCJ=yes
16807        fi
16808      else
16809        lt_prog_compiler_static_works_GCJ=yes
16810      fi
16811    fi
16812    $rm conftest*
16813    LDFLAGS="$save_LDFLAGS"
16814
16815 fi
16816 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16817 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16818
16819 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16820     :
16821 else
16822     lt_prog_compiler_static_GCJ=
16823 fi
16824
16825
16826 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16827 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16828 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16829   echo $ECHO_N "(cached) $ECHO_C" >&6
16830 else
16831   lt_cv_prog_compiler_c_o_GCJ=no
16832    $rm -r conftest 2>/dev/null
16833    mkdir conftest
16834    cd conftest
16835    mkdir out
16836    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16837
16838    lt_compiler_flag="-o out/conftest2.$ac_objext"
16839    # Insert the option either (1) after the last *FLAGS variable, or
16840    # (2) before a word containing "conftest.", or (3) at the end.
16841    # Note that $ac_compile itself does not contain backslashes and begins
16842    # with a dollar sign (not a hyphen), so the echo should work correctly.
16843    lt_compile=`echo "$ac_compile" | $SED \
16844    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16845    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16846    -e 's:$: $lt_compiler_flag:'`
16847    (eval echo "\"\$as_me:16847: $lt_compile\"" >&5)
16848    (eval "$lt_compile" 2>out/conftest.err)
16849    ac_status=$?
16850    cat out/conftest.err >&5
16851    echo "$as_me:16851: \$? = $ac_status" >&5
16852    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16853    then
16854      # The compiler can only warn and ignore the option if not recognized
16855      # So say no if there are warnings
16856      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16857      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16858      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16859        lt_cv_prog_compiler_c_o_GCJ=yes
16860      fi
16861    fi
16862    chmod u+w . 2>&5
16863    $rm conftest*
16864    # SGI C++ compiler will create directory out/ii_files/ for
16865    # template instantiation
16866    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16867    $rm out/* && rmdir out
16868    cd ..
16869    rmdir conftest
16870    $rm conftest*
16871
16872 fi
16873 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16874 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16875
16876
16877 hard_links="nottested"
16878 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16879   # do not overwrite the value of need_locks provided by the user
16880   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16881 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16882   hard_links=yes
16883   $rm conftest*
16884   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16885   touch conftest.a
16886   ln conftest.a conftest.b 2>&5 || hard_links=no
16887   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16888   { echo "$as_me:$LINENO: result: $hard_links" >&5
16889 echo "${ECHO_T}$hard_links" >&6; }
16890   if test "$hard_links" = no; then
16891     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16892 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16893     need_locks=warn
16894   fi
16895 else
16896   need_locks=no
16897 fi
16898
16899 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16900 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16901
16902   runpath_var=
16903   allow_undefined_flag_GCJ=
16904   enable_shared_with_static_runtimes_GCJ=no
16905   archive_cmds_GCJ=
16906   archive_expsym_cmds_GCJ=
16907   old_archive_From_new_cmds_GCJ=
16908   old_archive_from_expsyms_cmds_GCJ=
16909   export_dynamic_flag_spec_GCJ=
16910   whole_archive_flag_spec_GCJ=
16911   thread_safe_flag_spec_GCJ=
16912   hardcode_libdir_flag_spec_GCJ=
16913   hardcode_libdir_flag_spec_ld_GCJ=
16914   hardcode_libdir_separator_GCJ=
16915   hardcode_direct_GCJ=no
16916   hardcode_minus_L_GCJ=no
16917   hardcode_shlibpath_var_GCJ=unsupported
16918   link_all_deplibs_GCJ=unknown
16919   hardcode_automatic_GCJ=no
16920   module_cmds_GCJ=
16921   module_expsym_cmds_GCJ=
16922   always_export_symbols_GCJ=no
16923   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16924   # include_expsyms should be a list of space-separated symbols to be *always*
16925   # included in the symbol list
16926   include_expsyms_GCJ=
16927   # exclude_expsyms can be an extended regexp of symbols to exclude
16928   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16929   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16930   # as well as any symbol that contains `d'.
16931   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16932   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16933   # platforms (ab)use it in PIC code, but their linkers get confused if
16934   # the symbol is explicitly referenced.  Since portable code cannot
16935   # rely on this symbol name, it's probably fine to never include it in
16936   # preloaded symbol tables.
16937   extract_expsyms_cmds=
16938   # Just being paranoid about ensuring that cc_basename is set.
16939   for cc_temp in $compiler""; do
16940   case $cc_temp in
16941     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16942     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16943     \-*) ;;
16944     *) break;;
16945   esac
16946 done
16947 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16948
16949   case $host_os in
16950   cygwin* | mingw* | pw32*)
16951     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16952     # When not using gcc, we currently assume that we are using
16953     # Microsoft Visual C++.
16954     if test "$GCC" != yes; then
16955       with_gnu_ld=no
16956     fi
16957     ;;
16958   interix*)
16959     # we just hope/assume this is gcc and not c89 (= MSVC++)
16960     with_gnu_ld=yes
16961     ;;
16962   openbsd*)
16963     with_gnu_ld=no
16964     ;;
16965   esac
16966
16967   ld_shlibs_GCJ=yes
16968   if test "$with_gnu_ld" = yes; then
16969     # If archive_cmds runs LD, not CC, wlarc should be empty
16970     wlarc='${wl}'
16971
16972     # Set some defaults for GNU ld with shared library support. These
16973     # are reset later if shared libraries are not supported. Putting them
16974     # here allows them to be overridden if necessary.
16975     runpath_var=LD_RUN_PATH
16976     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16977     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16978     # ancient GNU ld didn't support --whole-archive et. al.
16979     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16980         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16981       else
16982         whole_archive_flag_spec_GCJ=
16983     fi
16984     supports_anon_versioning=no
16985     case `$LD -v 2>/dev/null` in
16986       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16987       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16988       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16989       *\ 2.11.*) ;; # other 2.11 versions
16990       *) supports_anon_versioning=yes ;;
16991     esac
16992
16993     # See if GNU ld supports shared libraries.
16994     case $host_os in
16995     aix3* | aix4* | aix5*)
16996       # On AIX/PPC, the GNU linker is very broken
16997       if test "$host_cpu" != ia64; then
16998         ld_shlibs_GCJ=no
16999         cat <<EOF 1>&2
17000
17001 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17002 *** to be unable to reliably create shared libraries on AIX.
17003 *** Therefore, libtool is disabling shared libraries support.  If you
17004 *** really care for shared libraries, you may want to modify your PATH
17005 *** so that a non-GNU linker is found, and then restart.
17006
17007 EOF
17008       fi
17009       ;;
17010
17011     amigaos*)
17012       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17013       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17014       hardcode_minus_L_GCJ=yes
17015
17016       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17017       # that the semantics of dynamic libraries on AmigaOS, at least up
17018       # to version 4, is to share data among multiple programs linked
17019       # with the same dynamic library.  Since this doesn't match the
17020       # behavior of shared libraries on other platforms, we can't use
17021       # them.
17022       ld_shlibs_GCJ=no
17023       ;;
17024
17025     beos*)
17026       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17027         allow_undefined_flag_GCJ=unsupported
17028         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17029         # support --undefined.  This deserves some investigation.  FIXME
17030         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17031       else
17032         ld_shlibs_GCJ=no
17033       fi
17034       ;;
17035
17036     cygwin* | mingw* | pw32*)
17037       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17038       # as there is no search path for DLLs.
17039       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17040       allow_undefined_flag_GCJ=unsupported
17041       always_export_symbols_GCJ=no
17042       enable_shared_with_static_runtimes_GCJ=yes
17043       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17044
17045       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17046         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17047         # If the export-symbols file already is a .def file (1st line
17048         # is EXPORTS), use it as is; otherwise, prepend...
17049         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17050           cp $export_symbols $output_objdir/$soname.def;
17051         else
17052           echo EXPORTS > $output_objdir/$soname.def;
17053           cat $export_symbols >> $output_objdir/$soname.def;
17054         fi~
17055         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17056       else
17057         ld_shlibs_GCJ=no
17058       fi
17059       ;;
17060
17061     interix3*)
17062       hardcode_direct_GCJ=no
17063       hardcode_shlibpath_var_GCJ=no
17064       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17065       export_dynamic_flag_spec_GCJ='${wl}-E'
17066       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17067       # Instead, shared libraries are loaded at an image base (0x10000000 by
17068       # default) and relocated if they conflict, which is a slow very memory
17069       # consuming and fragmenting process.  To avoid this, we pick a random,
17070       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17071       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17072       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17073       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17074       ;;
17075
17076     linux* | k*bsd*-gnu)
17077       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17078         tmp_addflag=
17079         case $cc_basename,$host_cpu in
17080         pgcc*)                          # Portland Group C compiler
17081           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17082           tmp_addflag=' $pic_flag'
17083           ;;
17084         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17085           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17086           tmp_addflag=' $pic_flag -Mnomain' ;;
17087         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17088           tmp_addflag=' -i_dynamic' ;;
17089         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17090           tmp_addflag=' -i_dynamic -nofor_main' ;;
17091         ifc* | ifort*)                  # Intel Fortran compiler
17092           tmp_addflag=' -nofor_main' ;;
17093         esac
17094         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17095
17096         if test $supports_anon_versioning = yes; then
17097           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17098   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17099   $echo "local: *; };" >> $output_objdir/$libname.ver~
17100           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17101         fi
17102         link_all_deplibs_GCJ=no
17103       else
17104         ld_shlibs_GCJ=no
17105       fi
17106       ;;
17107
17108     netbsd* | netbsdelf*-gnu)
17109       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17110         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17111         wlarc=
17112       else
17113         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17114         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17115       fi
17116       ;;
17117
17118     solaris*)
17119       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17120         ld_shlibs_GCJ=no
17121         cat <<EOF 1>&2
17122
17123 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17124 *** create shared libraries on Solaris systems.  Therefore, libtool
17125 *** is disabling shared libraries support.  We urge you to upgrade GNU
17126 *** binutils to release 2.9.1 or newer.  Another option is to modify
17127 *** your PATH or compiler configuration so that the native linker is
17128 *** used, and then restart.
17129
17130 EOF
17131       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17132         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17133         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17134       else
17135         ld_shlibs_GCJ=no
17136       fi
17137       ;;
17138
17139     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17140       case `$LD -v 2>&1` in
17141         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17142         ld_shlibs_GCJ=no
17143         cat <<_LT_EOF 1>&2
17144
17145 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17146 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17147 *** is disabling shared libraries support.  We urge you to upgrade GNU
17148 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17149 *** your PATH or compiler configuration so that the native linker is
17150 *** used, and then restart.
17151
17152 _LT_EOF
17153         ;;
17154         *)
17155           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17156             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17157             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17158             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17159           else
17160             ld_shlibs_GCJ=no
17161           fi
17162         ;;
17163       esac
17164       ;;
17165
17166     sunos4*)
17167       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17168       wlarc=
17169       hardcode_direct_GCJ=yes
17170       hardcode_shlibpath_var_GCJ=no
17171       ;;
17172
17173     *)
17174       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17175         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17176         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17177       else
17178         ld_shlibs_GCJ=no
17179       fi
17180       ;;
17181     esac
17182
17183     if test "$ld_shlibs_GCJ" = no; then
17184       runpath_var=
17185       hardcode_libdir_flag_spec_GCJ=
17186       export_dynamic_flag_spec_GCJ=
17187       whole_archive_flag_spec_GCJ=
17188     fi
17189   else
17190     # PORTME fill in a description of your system's linker (not GNU ld)
17191     case $host_os in
17192     aix3*)
17193       allow_undefined_flag_GCJ=unsupported
17194       always_export_symbols_GCJ=yes
17195       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17196       # Note: this linker hardcodes the directories in LIBPATH if there
17197       # are no directories specified by -L.
17198       hardcode_minus_L_GCJ=yes
17199       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17200         # Neither direct hardcoding nor static linking is supported with a
17201         # broken collect2.
17202         hardcode_direct_GCJ=unsupported
17203       fi
17204       ;;
17205
17206     aix4* | aix5*)
17207       if test "$host_cpu" = ia64; then
17208         # On IA64, the linker does run time linking by default, so we don't
17209         # have to do anything special.
17210         aix_use_runtimelinking=no
17211         exp_sym_flag='-Bexport'
17212         no_entry_flag=""
17213       else
17214         # If we're using GNU nm, then we don't want the "-C" option.
17215         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17216         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17217           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17218         else
17219           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17220         fi
17221         aix_use_runtimelinking=no
17222
17223         # Test if we are trying to use run time linking or normal
17224         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17225         # need to do runtime linking.
17226         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17227           for ld_flag in $LDFLAGS; do
17228           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17229             aix_use_runtimelinking=yes
17230             break
17231           fi
17232           done
17233           ;;
17234         esac
17235
17236         exp_sym_flag='-bexport'
17237         no_entry_flag='-bnoentry'
17238       fi
17239
17240       # When large executables or shared objects are built, AIX ld can
17241       # have problems creating the table of contents.  If linking a library
17242       # or program results in "error TOC overflow" add -mminimal-toc to
17243       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17244       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17245
17246       archive_cmds_GCJ=''
17247       hardcode_direct_GCJ=yes
17248       hardcode_libdir_separator_GCJ=':'
17249       link_all_deplibs_GCJ=yes
17250
17251       if test "$GCC" = yes; then
17252         case $host_os in aix4.[012]|aix4.[012].*)
17253         # We only want to do this on AIX 4.2 and lower, the check
17254         # below for broken collect2 doesn't work under 4.3+
17255           collect2name=`${CC} -print-prog-name=collect2`
17256           if test -f "$collect2name" && \
17257            strings "$collect2name" | grep resolve_lib_name >/dev/null
17258           then
17259           # We have reworked collect2
17260           hardcode_direct_GCJ=yes
17261           else
17262           # We have old collect2
17263           hardcode_direct_GCJ=unsupported
17264           # It fails to find uninstalled libraries when the uninstalled
17265           # path is not listed in the libpath.  Setting hardcode_minus_L
17266           # to unsupported forces relinking
17267           hardcode_minus_L_GCJ=yes
17268           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17269           hardcode_libdir_separator_GCJ=
17270           fi
17271           ;;
17272         esac
17273         shared_flag='-shared'
17274         if test "$aix_use_runtimelinking" = yes; then
17275           shared_flag="$shared_flag "'${wl}-G'
17276         fi
17277       else
17278         # not using gcc
17279         if test "$host_cpu" = ia64; then
17280         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17281         # chokes on -Wl,-G. The following line is correct:
17282           shared_flag='-G'
17283         else
17284           if test "$aix_use_runtimelinking" = yes; then
17285             shared_flag='${wl}-G'
17286           else
17287             shared_flag='${wl}-bM:SRE'
17288           fi
17289         fi
17290       fi
17291
17292       # It seems that -bexpall does not export symbols beginning with
17293       # underscore (_), so it is better to generate a list of symbols to export.
17294       always_export_symbols_GCJ=yes
17295       if test "$aix_use_runtimelinking" = yes; then
17296         # Warning - without using the other runtime loading flags (-brtl),
17297         # -berok will link without error, but may produce a broken library.
17298         allow_undefined_flag_GCJ='-berok'
17299        # Determine the default libpath from the value encoded in an empty executable.
17300        cat >conftest.$ac_ext <<_ACEOF
17301 /* confdefs.h.  */
17302 _ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h.  */
17306
17307 int
17308 main ()
17309 {
17310
17311   ;
17312   return 0;
17313 }
17314 _ACEOF
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (ac_try="$ac_link"
17317 case "(($ac_try" in
17318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319   *) ac_try_echo=$ac_try;;
17320 esac
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322   (eval "$ac_link") 2>conftest.er1
17323   ac_status=$?
17324   grep -v '^ *+' conftest.er1 >conftest.err
17325   rm -f conftest.er1
17326   cat conftest.err >&5
17327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328   (exit $ac_status); } && {
17329          test -z "$ac_c_werror_flag" ||
17330          test ! -s conftest.err
17331        } && test -s conftest$ac_exeext &&
17332        $as_test_x conftest$ac_exeext; then
17333
17334 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17335 }'`
17336 # Check for a 64-bit object if we didn't find anything.
17337 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17338 }'`; fi
17339 else
17340   echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17342
17343
17344 fi
17345
17346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17347       conftest$ac_exeext conftest.$ac_ext
17348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17349
17350        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17351         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17352        else
17353         if test "$host_cpu" = ia64; then
17354           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17355           allow_undefined_flag_GCJ="-z nodefs"
17356           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17357         else
17358          # Determine the default libpath from the value encoded in an empty executable.
17359          cat >conftest.$ac_ext <<_ACEOF
17360 /* confdefs.h.  */
17361 _ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h.  */
17365
17366 int
17367 main ()
17368 {
17369
17370   ;
17371   return 0;
17372 }
17373 _ACEOF
17374 rm -f conftest.$ac_objext conftest$ac_exeext
17375 if { (ac_try="$ac_link"
17376 case "(($ac_try" in
17377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378   *) ac_try_echo=$ac_try;;
17379 esac
17380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17381   (eval "$ac_link") 2>conftest.er1
17382   ac_status=$?
17383   grep -v '^ *+' conftest.er1 >conftest.err
17384   rm -f conftest.er1
17385   cat conftest.err >&5
17386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387   (exit $ac_status); } && {
17388          test -z "$ac_c_werror_flag" ||
17389          test ! -s conftest.err
17390        } && test -s conftest$ac_exeext &&
17391        $as_test_x conftest$ac_exeext; then
17392
17393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17394 }'`
17395 # Check for a 64-bit object if we didn't find anything.
17396 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17397 }'`; fi
17398 else
17399   echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17401
17402
17403 fi
17404
17405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17406       conftest$ac_exeext conftest.$ac_ext
17407 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17408
17409          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17410           # Warning - without using the other run time loading flags,
17411           # -berok will link without error, but may produce a broken library.
17412           no_undefined_flag_GCJ=' ${wl}-bernotok'
17413           allow_undefined_flag_GCJ=' ${wl}-berok'
17414           # Exported symbols can be pulled into shared objects from archives
17415           whole_archive_flag_spec_GCJ='$convenience'
17416           archive_cmds_need_lc_GCJ=yes
17417           # This is similar to how AIX traditionally builds its shared libraries.
17418           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17419         fi
17420       fi
17421       ;;
17422
17423     amigaos*)
17424       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17425       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17426       hardcode_minus_L_GCJ=yes
17427       # see comment about different semantics on the GNU ld section
17428       ld_shlibs_GCJ=no
17429       ;;
17430
17431     bsdi[45]*)
17432       export_dynamic_flag_spec_GCJ=-rdynamic
17433       ;;
17434
17435     cygwin* | mingw* | pw32*)
17436       # When not using gcc, we currently assume that we are using
17437       # Microsoft Visual C++.
17438       # hardcode_libdir_flag_spec is actually meaningless, as there is
17439       # no search path for DLLs.
17440       hardcode_libdir_flag_spec_GCJ=' '
17441       allow_undefined_flag_GCJ=unsupported
17442       # Tell ltmain to make .lib files, not .a files.
17443       libext=lib
17444       # Tell ltmain to make .dll files, not .so files.
17445       shrext_cmds=".dll"
17446       # FIXME: Setting linknames here is a bad hack.
17447       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17448       # The linker will automatically build a .lib file if we build a DLL.
17449       old_archive_From_new_cmds_GCJ='true'
17450       # FIXME: Should let the user specify the lib program.
17451       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17452       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17453       enable_shared_with_static_runtimes_GCJ=yes
17454       ;;
17455
17456     darwin* | rhapsody*)
17457       case $host_os in
17458         rhapsody* | darwin1.[012])
17459          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17460          ;;
17461        *) # Darwin 1.3 on
17462          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17463            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17464          else
17465            case ${MACOSX_DEPLOYMENT_TARGET} in
17466              10.[012])
17467                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17468                ;;
17469              10.*)
17470                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17471                ;;
17472            esac
17473          fi
17474          ;;
17475       esac
17476       archive_cmds_need_lc_GCJ=no
17477       hardcode_direct_GCJ=no
17478       hardcode_automatic_GCJ=yes
17479       hardcode_shlibpath_var_GCJ=unsupported
17480       whole_archive_flag_spec_GCJ=''
17481       link_all_deplibs_GCJ=yes
17482     if test "$GCC" = yes ; then
17483         output_verbose_link_cmd='echo'
17484         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17485       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17486       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17487       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17488       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17489     else
17490       case $cc_basename in
17491         xlc*)
17492          output_verbose_link_cmd='echo'
17493          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17494          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17495           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17496          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17497           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17498           ;;
17499        *)
17500          ld_shlibs_GCJ=no
17501           ;;
17502       esac
17503     fi
17504       ;;
17505
17506     dgux*)
17507       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17508       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17509       hardcode_shlibpath_var_GCJ=no
17510       ;;
17511
17512     freebsd1*)
17513       ld_shlibs_GCJ=no
17514       ;;
17515
17516     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17517     # support.  Future versions do this automatically, but an explicit c++rt0.o
17518     # does not break anything, and helps significantly (at the cost of a little
17519     # extra space).
17520     freebsd2.2*)
17521       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17522       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17523       hardcode_direct_GCJ=yes
17524       hardcode_shlibpath_var_GCJ=no
17525       ;;
17526
17527     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17528     freebsd2*)
17529       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17530       hardcode_direct_GCJ=yes
17531       hardcode_minus_L_GCJ=yes
17532       hardcode_shlibpath_var_GCJ=no
17533       ;;
17534
17535     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17536     freebsd* | dragonfly*)
17537       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17538       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17539       hardcode_direct_GCJ=yes
17540       hardcode_shlibpath_var_GCJ=no
17541       ;;
17542
17543     hpux9*)
17544       if test "$GCC" = yes; then
17545         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17546       else
17547         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17548       fi
17549       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17550       hardcode_libdir_separator_GCJ=:
17551       hardcode_direct_GCJ=yes
17552
17553       # hardcode_minus_L: Not really in the search PATH,
17554       # but as the default location of the library.
17555       hardcode_minus_L_GCJ=yes
17556       export_dynamic_flag_spec_GCJ='${wl}-E'
17557       ;;
17558
17559     hpux10*)
17560       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17561         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17562       else
17563         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17564       fi
17565       if test "$with_gnu_ld" = no; then
17566         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17567         hardcode_libdir_separator_GCJ=:
17568
17569         hardcode_direct_GCJ=yes
17570         export_dynamic_flag_spec_GCJ='${wl}-E'
17571
17572         # hardcode_minus_L: Not really in the search PATH,
17573         # but as the default location of the library.
17574         hardcode_minus_L_GCJ=yes
17575       fi
17576       ;;
17577
17578     hpux11*)
17579       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17580         case $host_cpu in
17581         hppa*64*)
17582           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17583           ;;
17584         ia64*)
17585           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17586           ;;
17587         *)
17588           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17589           ;;
17590         esac
17591       else
17592         case $host_cpu in
17593         hppa*64*)
17594           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17595           ;;
17596         ia64*)
17597           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17598           ;;
17599         *)
17600           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17601           ;;
17602         esac
17603       fi
17604       if test "$with_gnu_ld" = no; then
17605         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17606         hardcode_libdir_separator_GCJ=:
17607
17608         case $host_cpu in
17609         hppa*64*|ia64*)
17610           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17611           hardcode_direct_GCJ=no
17612           hardcode_shlibpath_var_GCJ=no
17613           ;;
17614         *)
17615           hardcode_direct_GCJ=yes
17616           export_dynamic_flag_spec_GCJ='${wl}-E'
17617
17618           # hardcode_minus_L: Not really in the search PATH,
17619           # but as the default location of the library.
17620           hardcode_minus_L_GCJ=yes
17621           ;;
17622         esac
17623       fi
17624       ;;
17625
17626     irix5* | irix6* | nonstopux*)
17627       if test "$GCC" = yes; then
17628         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17629       else
17630         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17631         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17632       fi
17633       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17634       hardcode_libdir_separator_GCJ=:
17635       link_all_deplibs_GCJ=yes
17636       ;;
17637
17638     netbsd* | netbsdelf*-gnu)
17639       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17640         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17641       else
17642         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17643       fi
17644       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17645       hardcode_direct_GCJ=yes
17646       hardcode_shlibpath_var_GCJ=no
17647       ;;
17648
17649     newsos6)
17650       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17651       hardcode_direct_GCJ=yes
17652       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17653       hardcode_libdir_separator_GCJ=:
17654       hardcode_shlibpath_var_GCJ=no
17655       ;;
17656
17657     openbsd*)
17658       hardcode_direct_GCJ=yes
17659       hardcode_shlibpath_var_GCJ=no
17660       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17661         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17662         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17663         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17664         export_dynamic_flag_spec_GCJ='${wl}-E'
17665       else
17666        case $host_os in
17667          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17668            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17669            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17670            ;;
17671          *)
17672            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17673            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17674            ;;
17675        esac
17676       fi
17677       ;;
17678
17679     os2*)
17680       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17681       hardcode_minus_L_GCJ=yes
17682       allow_undefined_flag_GCJ=unsupported
17683       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17684       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17685       ;;
17686
17687     osf3*)
17688       if test "$GCC" = yes; then
17689         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17690         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17691       else
17692         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17693         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17694       fi
17695       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17696       hardcode_libdir_separator_GCJ=:
17697       ;;
17698
17699     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17700       if test "$GCC" = yes; then
17701         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17702         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17703         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17704       else
17705         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17706         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17707         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17708         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17709
17710         # Both c and cxx compiler support -rpath directly
17711         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17712       fi
17713       hardcode_libdir_separator_GCJ=:
17714       ;;
17715
17716     solaris*)
17717       no_undefined_flag_GCJ=' -z text'
17718       if test "$GCC" = yes; then
17719         wlarc='${wl}'
17720         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17721         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17722           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17723       else
17724         wlarc=''
17725         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17726         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17727         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17728       fi
17729       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17730       hardcode_shlibpath_var_GCJ=no
17731       case $host_os in
17732       solaris2.[0-5] | solaris2.[0-5].*) ;;
17733       *)
17734         # The compiler driver will combine linker options so we
17735         # cannot just pass the convience library names through
17736         # without $wl, iff we do not link with $LD.
17737         # Luckily, gcc supports the same syntax we need for Sun Studio.
17738         # Supported since Solaris 2.6 (maybe 2.5.1?)
17739         case $wlarc in
17740         '')
17741           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17742         *)
17743           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17744         esac ;;
17745       esac
17746       link_all_deplibs_GCJ=yes
17747       ;;
17748
17749     sunos4*)
17750       if test "x$host_vendor" = xsequent; then
17751         # Use $CC to link under sequent, because it throws in some extra .o
17752         # files that make .init and .fini sections work.
17753         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17754       else
17755         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17756       fi
17757       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17758       hardcode_direct_GCJ=yes
17759       hardcode_minus_L_GCJ=yes
17760       hardcode_shlibpath_var_GCJ=no
17761       ;;
17762
17763     sysv4)
17764       case $host_vendor in
17765         sni)
17766           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17767           hardcode_direct_GCJ=yes # is this really true???
17768         ;;
17769         siemens)
17770           ## LD is ld it makes a PLAMLIB
17771           ## CC just makes a GrossModule.
17772           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17773           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17774           hardcode_direct_GCJ=no
17775         ;;
17776         motorola)
17777           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17778           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17779         ;;
17780       esac
17781       runpath_var='LD_RUN_PATH'
17782       hardcode_shlibpath_var_GCJ=no
17783       ;;
17784
17785     sysv4.3*)
17786       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17787       hardcode_shlibpath_var_GCJ=no
17788       export_dynamic_flag_spec_GCJ='-Bexport'
17789       ;;
17790
17791     sysv4*MP*)
17792       if test -d /usr/nec; then
17793         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17794         hardcode_shlibpath_var_GCJ=no
17795         runpath_var=LD_RUN_PATH
17796         hardcode_runpath_var=yes
17797         ld_shlibs_GCJ=yes
17798       fi
17799       ;;
17800
17801     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17802       no_undefined_flag_GCJ='${wl}-z,text'
17803       archive_cmds_need_lc_GCJ=no
17804       hardcode_shlibpath_var_GCJ=no
17805       runpath_var='LD_RUN_PATH'
17806
17807       if test "$GCC" = yes; then
17808         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17809         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17810       else
17811         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17812         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17813       fi
17814       ;;
17815
17816     sysv5* | sco3.2v5* | sco5v6*)
17817       # Note: We can NOT use -z defs as we might desire, because we do not
17818       # link with -lc, and that would cause any symbols used from libc to
17819       # always be unresolved, which means just about no library would
17820       # ever link correctly.  If we're not using GNU ld we use -z text
17821       # though, which does catch some bad symbols but isn't as heavy-handed
17822       # as -z defs.
17823       no_undefined_flag_GCJ='${wl}-z,text'
17824       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17825       archive_cmds_need_lc_GCJ=no
17826       hardcode_shlibpath_var_GCJ=no
17827       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17828       hardcode_libdir_separator_GCJ=':'
17829       link_all_deplibs_GCJ=yes
17830       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17831       runpath_var='LD_RUN_PATH'
17832
17833       if test "$GCC" = yes; then
17834         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17835         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17836       else
17837         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17838         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17839       fi
17840       ;;
17841
17842     uts4*)
17843       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17844       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17845       hardcode_shlibpath_var_GCJ=no
17846       ;;
17847
17848     *)
17849       ld_shlibs_GCJ=no
17850       ;;
17851     esac
17852   fi
17853
17854 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17855 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17856 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17857
17858 #
17859 # Do we need to explicitly link libc?
17860 #
17861 case "x$archive_cmds_need_lc_GCJ" in
17862 x|xyes)
17863   # Assume -lc should be added
17864   archive_cmds_need_lc_GCJ=yes
17865
17866   if test "$enable_shared" = yes && test "$GCC" = yes; then
17867     case $archive_cmds_GCJ in
17868     *'~'*)
17869       # FIXME: we may have to deal with multi-command sequences.
17870       ;;
17871     '$CC '*)
17872       # Test whether the compiler implicitly links with -lc since on some
17873       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17874       # to ld, don't add -lc before -lgcc.
17875       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17876 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17877       $rm conftest*
17878       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17879
17880       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17881   (eval $ac_compile) 2>&5
17882   ac_status=$?
17883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884   (exit $ac_status); } 2>conftest.err; then
17885         soname=conftest
17886         lib=conftest
17887         libobjs=conftest.$ac_objext
17888         deplibs=
17889         wl=$lt_prog_compiler_wl_GCJ
17890         pic_flag=$lt_prog_compiler_pic_GCJ
17891         compiler_flags=-v
17892         linker_flags=-v
17893         verstring=
17894         output_objdir=.
17895         libname=conftest
17896         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17897         allow_undefined_flag_GCJ=
17898         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17899   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17900   ac_status=$?
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); }
17903         then
17904           archive_cmds_need_lc_GCJ=no
17905         else
17906           archive_cmds_need_lc_GCJ=yes
17907         fi
17908         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17909       else
17910         cat conftest.err 1>&5
17911       fi
17912       $rm conftest*
17913       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17914 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17915       ;;
17916     esac
17917   fi
17918   ;;
17919 esac
17920
17921 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17922 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17923 library_names_spec=
17924 libname_spec='lib$name'
17925 soname_spec=
17926 shrext_cmds=".so"
17927 postinstall_cmds=
17928 postuninstall_cmds=
17929 finish_cmds=
17930 finish_eval=
17931 shlibpath_var=
17932 shlibpath_overrides_runpath=unknown
17933 version_type=none
17934 dynamic_linker="$host_os ld.so"
17935 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17936 if test "$GCC" = yes; then
17937   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17938   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17939     # if the path contains ";" then we assume it to be the separator
17940     # otherwise default to the standard path separator (i.e. ":") - it is
17941     # assumed that no part of a normal pathname contains ";" but that should
17942     # okay in the real world where ";" in dirpaths is itself problematic.
17943     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17944   else
17945     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17946   fi
17947 else
17948   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17949 fi
17950 need_lib_prefix=unknown
17951 hardcode_into_libs=no
17952
17953 # when you set need_version to no, make sure it does not cause -set_version
17954 # flags to be left without arguments
17955 need_version=unknown
17956
17957 case $host_os in
17958 aix3*)
17959   version_type=linux
17960   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17961   shlibpath_var=LIBPATH
17962
17963   # AIX 3 has no versioning support, so we append a major version to the name.
17964   soname_spec='${libname}${release}${shared_ext}$major'
17965   ;;
17966
17967 aix4* | aix5*)
17968   version_type=linux
17969   need_lib_prefix=no
17970   need_version=no
17971   hardcode_into_libs=yes
17972   if test "$host_cpu" = ia64; then
17973     # AIX 5 supports IA64
17974     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17975     shlibpath_var=LD_LIBRARY_PATH
17976   else
17977     # With GCC up to 2.95.x, collect2 would create an import file
17978     # for dependence libraries.  The import file would start with
17979     # the line `#! .'.  This would cause the generated library to
17980     # depend on `.', always an invalid library.  This was fixed in
17981     # development snapshots of GCC prior to 3.0.
17982     case $host_os in
17983       aix4 | aix4.[01] | aix4.[01].*)
17984       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17985            echo ' yes '
17986            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17987         :
17988       else
17989         can_build_shared=no
17990       fi
17991       ;;
17992     esac
17993     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17994     # soname into executable. Probably we can add versioning support to
17995     # collect2, so additional links can be useful in future.
17996     if test "$aix_use_runtimelinking" = yes; then
17997       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17998       # instead of lib<name>.a to let people know that these are not
17999       # typical AIX shared libraries.
18000       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18001     else
18002       # We preserve .a as extension for shared libraries through AIX4.2
18003       # and later when we are not doing run time linking.
18004       library_names_spec='${libname}${release}.a $libname.a'
18005       soname_spec='${libname}${release}${shared_ext}$major'
18006     fi
18007     shlibpath_var=LIBPATH
18008   fi
18009   ;;
18010
18011 amigaos*)
18012   library_names_spec='$libname.ixlibrary $libname.a'
18013   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18014   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18015   ;;
18016
18017 beos*)
18018   library_names_spec='${libname}${shared_ext}'
18019   dynamic_linker="$host_os ld.so"
18020   shlibpath_var=LIBRARY_PATH
18021   ;;
18022
18023 bsdi[45]*)
18024   version_type=linux
18025   need_version=no
18026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18027   soname_spec='${libname}${release}${shared_ext}$major'
18028   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18029   shlibpath_var=LD_LIBRARY_PATH
18030   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18031   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18032   # the default ld.so.conf also contains /usr/contrib/lib and
18033   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18034   # libtool to hard-code these into programs
18035   ;;
18036
18037 cygwin* | mingw* | pw32*)
18038   version_type=windows
18039   shrext_cmds=".dll"
18040   need_version=no
18041   need_lib_prefix=no
18042
18043   case $GCC,$host_os in
18044   yes,cygwin* | yes,mingw* | yes,pw32*)
18045     library_names_spec='$libname.dll.a'
18046     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18047     postinstall_cmds='base_file=`basename \${file}`~
18048       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18049       dldir=$destdir/`dirname \$dlpath`~
18050       test -d \$dldir || mkdir -p \$dldir~
18051       $install_prog $dir/$dlname \$dldir/$dlname~
18052       chmod a+x \$dldir/$dlname'
18053     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18054       dlpath=$dir/\$dldll~
18055        $rm \$dlpath'
18056     shlibpath_overrides_runpath=yes
18057
18058     case $host_os in
18059     cygwin*)
18060       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18061       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18062       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18063       ;;
18064     mingw*)
18065       # MinGW DLLs use traditional 'lib' prefix
18066       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18067       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18068       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18069         # It is most probably a Windows format PATH printed by
18070         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18071         # path with ; separators, and with drive letters. We can handle the
18072         # drive letters (cygwin fileutils understands them), so leave them,
18073         # especially as we might pass files found there to a mingw objdump,
18074         # which wouldn't understand a cygwinified path. Ahh.
18075         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18076       else
18077         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18078       fi
18079       ;;
18080     pw32*)
18081       # pw32 DLLs use 'pw' prefix rather than 'lib'
18082       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18083       ;;
18084     esac
18085     ;;
18086
18087   *)
18088     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18089     ;;
18090   esac
18091   dynamic_linker='Win32 ld.exe'
18092   # FIXME: first we should search . and the directory the executable is in
18093   shlibpath_var=PATH
18094   ;;
18095
18096 darwin* | rhapsody*)
18097   dynamic_linker="$host_os dyld"
18098   version_type=darwin
18099   need_lib_prefix=no
18100   need_version=no
18101   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18102   soname_spec='${libname}${release}${major}$shared_ext'
18103   shlibpath_overrides_runpath=yes
18104   shlibpath_var=DYLD_LIBRARY_PATH
18105   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18106   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18107   if test "$GCC" = yes; then
18108     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18109   else
18110     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18111   fi
18112   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18113   ;;
18114
18115 dgux*)
18116   version_type=linux
18117   need_lib_prefix=no
18118   need_version=no
18119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18120   soname_spec='${libname}${release}${shared_ext}$major'
18121   shlibpath_var=LD_LIBRARY_PATH
18122   ;;
18123
18124 freebsd1*)
18125   dynamic_linker=no
18126   ;;
18127
18128 freebsd* | dragonfly*)
18129   # DragonFly does not have aout.  When/if they implement a new
18130   # versioning mechanism, adjust this.
18131   if test -x /usr/bin/objformat; then
18132     objformat=`/usr/bin/objformat`
18133   else
18134     case $host_os in
18135     freebsd[123]*) objformat=aout ;;
18136     *) objformat=elf ;;
18137     esac
18138   fi
18139   version_type=freebsd-$objformat
18140   case $version_type in
18141     freebsd-elf*)
18142       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18143       need_version=no
18144       need_lib_prefix=no
18145       ;;
18146     freebsd-*)
18147       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18148       need_version=yes
18149       ;;
18150   esac
18151   shlibpath_var=LD_LIBRARY_PATH
18152   case $host_os in
18153   freebsd2*)
18154     shlibpath_overrides_runpath=yes
18155     ;;
18156   freebsd3.[01]* | freebsdelf3.[01]*)
18157     shlibpath_overrides_runpath=yes
18158     hardcode_into_libs=yes
18159     ;;
18160   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18161   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18162     shlibpath_overrides_runpath=no
18163     hardcode_into_libs=yes
18164     ;;
18165   freebsd*) # from 4.6 on
18166     shlibpath_overrides_runpath=yes
18167     hardcode_into_libs=yes
18168     ;;
18169   esac
18170   ;;
18171
18172 gnu*)
18173   version_type=linux
18174   need_lib_prefix=no
18175   need_version=no
18176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18177   soname_spec='${libname}${release}${shared_ext}$major'
18178   shlibpath_var=LD_LIBRARY_PATH
18179   hardcode_into_libs=yes
18180   ;;
18181
18182 hpux9* | hpux10* | hpux11*)
18183   # Give a soname corresponding to the major version so that dld.sl refuses to
18184   # link against other versions.
18185   version_type=sunos
18186   need_lib_prefix=no
18187   need_version=no
18188   case $host_cpu in
18189   ia64*)
18190     shrext_cmds='.so'
18191     hardcode_into_libs=yes
18192     dynamic_linker="$host_os dld.so"
18193     shlibpath_var=LD_LIBRARY_PATH
18194     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18196     soname_spec='${libname}${release}${shared_ext}$major'
18197     if test "X$HPUX_IA64_MODE" = X32; then
18198       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18199     else
18200       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18201     fi
18202     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18203     ;;
18204    hppa*64*)
18205      shrext_cmds='.sl'
18206      hardcode_into_libs=yes
18207      dynamic_linker="$host_os dld.sl"
18208      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18209      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18210      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18211      soname_spec='${libname}${release}${shared_ext}$major'
18212      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18213      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18214      ;;
18215    *)
18216     shrext_cmds='.sl'
18217     dynamic_linker="$host_os dld.sl"
18218     shlibpath_var=SHLIB_PATH
18219     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18221     soname_spec='${libname}${release}${shared_ext}$major'
18222     ;;
18223   esac
18224   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18225   postinstall_cmds='chmod 555 $lib'
18226   ;;
18227
18228 interix3*)
18229   version_type=linux
18230   need_lib_prefix=no
18231   need_version=no
18232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18233   soname_spec='${libname}${release}${shared_ext}$major'
18234   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18235   shlibpath_var=LD_LIBRARY_PATH
18236   shlibpath_overrides_runpath=no
18237   hardcode_into_libs=yes
18238   ;;
18239
18240 irix5* | irix6* | nonstopux*)
18241   case $host_os in
18242     nonstopux*) version_type=nonstopux ;;
18243     *)
18244         if test "$lt_cv_prog_gnu_ld" = yes; then
18245                 version_type=linux
18246         else
18247                 version_type=irix
18248         fi ;;
18249   esac
18250   need_lib_prefix=no
18251   need_version=no
18252   soname_spec='${libname}${release}${shared_ext}$major'
18253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18254   case $host_os in
18255   irix5* | nonstopux*)
18256     libsuff= shlibsuff=
18257     ;;
18258   *)
18259     case $LD in # libtool.m4 will add one of these switches to LD
18260     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18261       libsuff= shlibsuff= libmagic=32-bit;;
18262     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18263       libsuff=32 shlibsuff=N32 libmagic=N32;;
18264     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18265       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18266     *) libsuff= shlibsuff= libmagic=never-match;;
18267     esac
18268     ;;
18269   esac
18270   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18271   shlibpath_overrides_runpath=no
18272   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18273   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18274   hardcode_into_libs=yes
18275   ;;
18276
18277 # No shared lib support for Linux oldld, aout, or coff.
18278 linux*oldld* | linux*aout* | linux*coff*)
18279   dynamic_linker=no
18280   ;;
18281
18282 # This must be Linux ELF.
18283 linux* | k*bsd*-gnu)
18284   version_type=linux
18285   need_lib_prefix=no
18286   need_version=no
18287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18288   soname_spec='${libname}${release}${shared_ext}$major'
18289   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18290   shlibpath_var=LD_LIBRARY_PATH
18291   shlibpath_overrides_runpath=no
18292   # This implies no fast_install, which is unacceptable.
18293   # Some rework will be needed to allow for fast_install
18294   # before this can be enabled.
18295   hardcode_into_libs=yes
18296
18297   # Append ld.so.conf contents to the search path
18298   if test -f /etc/ld.so.conf; then
18299     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18300     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18301   fi
18302
18303   # We used to test for /lib/ld.so.1 and disable shared libraries on
18304   # powerpc, because MkLinux only supported shared libraries with the
18305   # GNU dynamic linker.  Since this was broken with cross compilers,
18306   # most powerpc-linux boxes support dynamic linking these days and
18307   # people can always --disable-shared, the test was removed, and we
18308   # assume the GNU/Linux dynamic linker is in use.
18309   dynamic_linker='GNU/Linux ld.so'
18310   ;;
18311
18312 netbsdelf*-gnu)
18313   version_type=linux
18314   need_lib_prefix=no
18315   need_version=no
18316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18317   soname_spec='${libname}${release}${shared_ext}$major'
18318   shlibpath_var=LD_LIBRARY_PATH
18319   shlibpath_overrides_runpath=no
18320   hardcode_into_libs=yes
18321   dynamic_linker='NetBSD ld.elf_so'
18322   ;;
18323
18324 netbsd*)
18325   version_type=sunos
18326   need_lib_prefix=no
18327   need_version=no
18328   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18330     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18331     dynamic_linker='NetBSD (a.out) ld.so'
18332   else
18333     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18334     soname_spec='${libname}${release}${shared_ext}$major'
18335     dynamic_linker='NetBSD ld.elf_so'
18336   fi
18337   shlibpath_var=LD_LIBRARY_PATH
18338   shlibpath_overrides_runpath=yes
18339   hardcode_into_libs=yes
18340   ;;
18341
18342 newsos6)
18343   version_type=linux
18344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18345   shlibpath_var=LD_LIBRARY_PATH
18346   shlibpath_overrides_runpath=yes
18347   ;;
18348
18349 nto-qnx*)
18350   version_type=linux
18351   need_lib_prefix=no
18352   need_version=no
18353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18354   soname_spec='${libname}${release}${shared_ext}$major'
18355   shlibpath_var=LD_LIBRARY_PATH
18356   shlibpath_overrides_runpath=yes
18357   ;;
18358
18359 openbsd*)
18360   version_type=sunos
18361   sys_lib_dlsearch_path_spec="/usr/lib"
18362   need_lib_prefix=no
18363   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18364   case $host_os in
18365     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18366     *)                         need_version=no  ;;
18367   esac
18368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18369   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18370   shlibpath_var=LD_LIBRARY_PATH
18371   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18372     case $host_os in
18373       openbsd2.[89] | openbsd2.[89].*)
18374         shlibpath_overrides_runpath=no
18375         ;;
18376       *)
18377         shlibpath_overrides_runpath=yes
18378         ;;
18379       esac
18380   else
18381     shlibpath_overrides_runpath=yes
18382   fi
18383   ;;
18384
18385 os2*)
18386   libname_spec='$name'
18387   shrext_cmds=".dll"
18388   need_lib_prefix=no
18389   library_names_spec='$libname${shared_ext} $libname.a'
18390   dynamic_linker='OS/2 ld.exe'
18391   shlibpath_var=LIBPATH
18392   ;;
18393
18394 osf3* | osf4* | osf5*)
18395   version_type=osf
18396   need_lib_prefix=no
18397   need_version=no
18398   soname_spec='${libname}${release}${shared_ext}$major'
18399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18400   shlibpath_var=LD_LIBRARY_PATH
18401   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18402   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18403   ;;
18404
18405 solaris*)
18406   version_type=linux
18407   need_lib_prefix=no
18408   need_version=no
18409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18410   soname_spec='${libname}${release}${shared_ext}$major'
18411   shlibpath_var=LD_LIBRARY_PATH
18412   shlibpath_overrides_runpath=yes
18413   hardcode_into_libs=yes
18414   # ldd complains unless libraries are executable
18415   postinstall_cmds='chmod +x $lib'
18416   ;;
18417
18418 sunos4*)
18419   version_type=sunos
18420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18421   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18422   shlibpath_var=LD_LIBRARY_PATH
18423   shlibpath_overrides_runpath=yes
18424   if test "$with_gnu_ld" = yes; then
18425     need_lib_prefix=no
18426   fi
18427   need_version=yes
18428   ;;
18429
18430 sysv4 | sysv4.3*)
18431   version_type=linux
18432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18433   soname_spec='${libname}${release}${shared_ext}$major'
18434   shlibpath_var=LD_LIBRARY_PATH
18435   case $host_vendor in
18436     sni)
18437       shlibpath_overrides_runpath=no
18438       need_lib_prefix=no
18439       export_dynamic_flag_spec='${wl}-Blargedynsym'
18440       runpath_var=LD_RUN_PATH
18441       ;;
18442     siemens)
18443       need_lib_prefix=no
18444       ;;
18445     motorola)
18446       need_lib_prefix=no
18447       need_version=no
18448       shlibpath_overrides_runpath=no
18449       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18450       ;;
18451   esac
18452   ;;
18453
18454 sysv4*MP*)
18455   if test -d /usr/nec ;then
18456     version_type=linux
18457     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18458     soname_spec='$libname${shared_ext}.$major'
18459     shlibpath_var=LD_LIBRARY_PATH
18460   fi
18461   ;;
18462
18463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18464   version_type=freebsd-elf
18465   need_lib_prefix=no
18466   need_version=no
18467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18468   soname_spec='${libname}${release}${shared_ext}$major'
18469   shlibpath_var=LD_LIBRARY_PATH
18470   hardcode_into_libs=yes
18471   if test "$with_gnu_ld" = yes; then
18472     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18473     shlibpath_overrides_runpath=no
18474   else
18475     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18476     shlibpath_overrides_runpath=yes
18477     case $host_os in
18478       sco3.2v5*)
18479         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18480         ;;
18481     esac
18482   fi
18483   sys_lib_dlsearch_path_spec='/usr/lib'
18484   ;;
18485
18486 uts4*)
18487   version_type=linux
18488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18489   soname_spec='${libname}${release}${shared_ext}$major'
18490   shlibpath_var=LD_LIBRARY_PATH
18491   ;;
18492
18493 *)
18494   dynamic_linker=no
18495   ;;
18496 esac
18497 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18498 echo "${ECHO_T}$dynamic_linker" >&6; }
18499 test "$dynamic_linker" = no && can_build_shared=no
18500
18501 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18502 if test "$GCC" = yes; then
18503   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18504 fi
18505
18506 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18507 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18508 hardcode_action_GCJ=
18509 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18510    test -n "$runpath_var_GCJ" || \
18511    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18512
18513   # We can hardcode non-existant directories.
18514   if test "$hardcode_direct_GCJ" != no &&
18515      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18516      # have to relink, otherwise we might link with an installed library
18517      # when we should be linking with a yet-to-be-installed one
18518      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18519      test "$hardcode_minus_L_GCJ" != no; then
18520     # Linking always hardcodes the temporary library directory.
18521     hardcode_action_GCJ=relink
18522   else
18523     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18524     hardcode_action_GCJ=immediate
18525   fi
18526 else
18527   # We cannot hardcode anything, or else we can only hardcode existing
18528   # directories.
18529   hardcode_action_GCJ=unsupported
18530 fi
18531 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18532 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18533
18534 if test "$hardcode_action_GCJ" = relink; then
18535   # Fast installation is not supported
18536   enable_fast_install=no
18537 elif test "$shlibpath_overrides_runpath" = yes ||
18538      test "$enable_shared" = no; then
18539   # Fast installation is not necessary
18540   enable_fast_install=needless
18541 fi
18542
18543
18544 # The else clause should only fire when bootstrapping the
18545 # libtool distribution, otherwise you forgot to ship ltmain.sh
18546 # with your package, and you will get complaints that there are
18547 # no rules to generate ltmain.sh.
18548 if test -f "$ltmain"; then
18549   # See if we are running on zsh, and set the options which allow our commands through
18550   # without removal of \ escapes.
18551   if test -n "${ZSH_VERSION+set}" ; then
18552     setopt NO_GLOB_SUBST
18553   fi
18554   # Now quote all the things that may contain metacharacters while being
18555   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18556   # variables and quote the copies for generation of the libtool script.
18557   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18558     SED SHELL STRIP \
18559     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18560     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18561     deplibs_check_method reload_flag reload_cmds need_locks \
18562     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18563     lt_cv_sys_global_symbol_to_c_name_address \
18564     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18565     old_postinstall_cmds old_postuninstall_cmds \
18566     compiler_GCJ \
18567     CC_GCJ \
18568     LD_GCJ \
18569     lt_prog_compiler_wl_GCJ \
18570     lt_prog_compiler_pic_GCJ \
18571     lt_prog_compiler_static_GCJ \
18572     lt_prog_compiler_no_builtin_flag_GCJ \
18573     export_dynamic_flag_spec_GCJ \
18574     thread_safe_flag_spec_GCJ \
18575     whole_archive_flag_spec_GCJ \
18576     enable_shared_with_static_runtimes_GCJ \
18577     old_archive_cmds_GCJ \
18578     old_archive_from_new_cmds_GCJ \
18579     predep_objects_GCJ \
18580     postdep_objects_GCJ \
18581     predeps_GCJ \
18582     postdeps_GCJ \
18583     compiler_lib_search_path_GCJ \
18584     archive_cmds_GCJ \
18585     archive_expsym_cmds_GCJ \
18586     postinstall_cmds_GCJ \
18587     postuninstall_cmds_GCJ \
18588     old_archive_from_expsyms_cmds_GCJ \
18589     allow_undefined_flag_GCJ \
18590     no_undefined_flag_GCJ \
18591     export_symbols_cmds_GCJ \
18592     hardcode_libdir_flag_spec_GCJ \
18593     hardcode_libdir_flag_spec_ld_GCJ \
18594     hardcode_libdir_separator_GCJ \
18595     hardcode_automatic_GCJ \
18596     module_cmds_GCJ \
18597     module_expsym_cmds_GCJ \
18598     lt_cv_prog_compiler_c_o_GCJ \
18599     exclude_expsyms_GCJ \
18600     include_expsyms_GCJ; do
18601
18602     case $var in
18603     old_archive_cmds_GCJ | \
18604     old_archive_from_new_cmds_GCJ | \
18605     archive_cmds_GCJ | \
18606     archive_expsym_cmds_GCJ | \
18607     module_cmds_GCJ | \
18608     module_expsym_cmds_GCJ | \
18609     old_archive_from_expsyms_cmds_GCJ | \
18610     export_symbols_cmds_GCJ | \
18611     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18612     postinstall_cmds | postuninstall_cmds | \
18613     old_postinstall_cmds | old_postuninstall_cmds | \
18614     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18615       # Double-quote double-evaled strings.
18616       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18617       ;;
18618     *)
18619       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18620       ;;
18621     esac
18622   done
18623
18624   case $lt_echo in
18625   *'\$0 --fallback-echo"')
18626     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18627     ;;
18628   esac
18629
18630 cfgfile="$ofile"
18631
18632   cat <<__EOF__ >> "$cfgfile"
18633 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18634
18635 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18636
18637 # Shell to use when invoking shell scripts.
18638 SHELL=$lt_SHELL
18639
18640 # Whether or not to build shared libraries.
18641 build_libtool_libs=$enable_shared
18642
18643 # Whether or not to build static libraries.
18644 build_old_libs=$enable_static
18645
18646 # Whether or not to add -lc for building shared libraries.
18647 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18648
18649 # Whether or not to disallow shared libs when runtime libs are static
18650 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18651
18652 # Whether or not to optimize for fast installation.
18653 fast_install=$enable_fast_install
18654
18655 # The host system.
18656 host_alias=$host_alias
18657 host=$host
18658 host_os=$host_os
18659
18660 # The build system.
18661 build_alias=$build_alias
18662 build=$build
18663 build_os=$build_os
18664
18665 # An echo program that does not interpret backslashes.
18666 echo=$lt_echo
18667
18668 # The archiver.
18669 AR=$lt_AR
18670 AR_FLAGS=$lt_AR_FLAGS
18671
18672 # A C compiler.
18673 LTCC=$lt_LTCC
18674
18675 # LTCC compiler flags.
18676 LTCFLAGS=$lt_LTCFLAGS
18677
18678 # A language-specific compiler.
18679 CC=$lt_compiler_GCJ
18680
18681 # Is the compiler the GNU C compiler?
18682 with_gcc=$GCC_GCJ
18683
18684 # An ERE matcher.
18685 EGREP=$lt_EGREP
18686
18687 # The linker used to build libraries.
18688 LD=$lt_LD_GCJ
18689
18690 # Whether we need hard or soft links.
18691 LN_S=$lt_LN_S
18692
18693 # A BSD-compatible nm program.
18694 NM=$lt_NM
18695
18696 # A symbol stripping program
18697 STRIP=$lt_STRIP
18698
18699 # Used to examine libraries when file_magic_cmd begins "file"
18700 MAGIC_CMD=$MAGIC_CMD
18701
18702 # Used on cygwin: DLL creation program.
18703 DLLTOOL="$DLLTOOL"
18704
18705 # Used on cygwin: object dumper.
18706 OBJDUMP="$OBJDUMP"
18707
18708 # Used on cygwin: assembler.
18709 AS="$AS"
18710
18711 # The name of the directory that contains temporary libtool files.
18712 objdir=$objdir
18713
18714 # How to create reloadable object files.
18715 reload_flag=$lt_reload_flag
18716 reload_cmds=$lt_reload_cmds
18717
18718 # How to pass a linker flag through the compiler.
18719 wl=$lt_lt_prog_compiler_wl_GCJ
18720
18721 # Object file suffix (normally "o").
18722 objext="$ac_objext"
18723
18724 # Old archive suffix (normally "a").
18725 libext="$libext"
18726
18727 # Shared library suffix (normally ".so").
18728 shrext_cmds='$shrext_cmds'
18729
18730 # Executable file suffix (normally "").
18731 exeext="$exeext"
18732
18733 # Additional compiler flags for building library objects.
18734 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18735 pic_mode=$pic_mode
18736
18737 # What is the maximum length of a command?
18738 max_cmd_len=$lt_cv_sys_max_cmd_len
18739
18740 # Does compiler simultaneously support -c and -o options?
18741 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18742
18743 # Must we lock files when doing compilation?
18744 need_locks=$lt_need_locks
18745
18746 # Do we need the lib prefix for modules?
18747 need_lib_prefix=$need_lib_prefix
18748
18749 # Do we need a version for libraries?
18750 need_version=$need_version
18751
18752 # Whether dlopen is supported.
18753 dlopen_support=$enable_dlopen
18754
18755 # Whether dlopen of programs is supported.
18756 dlopen_self=$enable_dlopen_self
18757
18758 # Whether dlopen of statically linked programs is supported.
18759 dlopen_self_static=$enable_dlopen_self_static
18760
18761 # Compiler flag to prevent dynamic linking.
18762 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18763
18764 # Compiler flag to turn off builtin functions.
18765 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18766
18767 # Compiler flag to allow reflexive dlopens.
18768 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18769
18770 # Compiler flag to generate shared objects directly from archives.
18771 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18772
18773 # Compiler flag to generate thread-safe objects.
18774 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18775
18776 # Library versioning type.
18777 version_type=$version_type
18778
18779 # Format of library name prefix.
18780 libname_spec=$lt_libname_spec
18781
18782 # List of archive names.  First name is the real one, the rest are links.
18783 # The last name is the one that the linker finds with -lNAME.
18784 library_names_spec=$lt_library_names_spec
18785
18786 # The coded name of the library, if different from the real name.
18787 soname_spec=$lt_soname_spec
18788
18789 # Commands used to build and install an old-style archive.
18790 RANLIB=$lt_RANLIB
18791 old_archive_cmds=$lt_old_archive_cmds_GCJ
18792 old_postinstall_cmds=$lt_old_postinstall_cmds
18793 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18794
18795 # Create an old-style archive from a shared archive.
18796 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18797
18798 # Create a temporary old-style archive to link instead of a shared archive.
18799 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18800
18801 # Commands used to build and install a shared archive.
18802 archive_cmds=$lt_archive_cmds_GCJ
18803 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18804 postinstall_cmds=$lt_postinstall_cmds
18805 postuninstall_cmds=$lt_postuninstall_cmds
18806
18807 # Commands used to build a loadable module (assumed same as above if empty)
18808 module_cmds=$lt_module_cmds_GCJ
18809 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18810
18811 # Commands to strip libraries.
18812 old_striplib=$lt_old_striplib
18813 striplib=$lt_striplib
18814
18815 # Dependencies to place before the objects being linked to create a
18816 # shared library.
18817 predep_objects=$lt_predep_objects_GCJ
18818
18819 # Dependencies to place after the objects being linked to create a
18820 # shared library.
18821 postdep_objects=$lt_postdep_objects_GCJ
18822
18823 # Dependencies to place before the objects being linked to create a
18824 # shared library.
18825 predeps=$lt_predeps_GCJ
18826
18827 # Dependencies to place after the objects being linked to create a
18828 # shared library.
18829 postdeps=$lt_postdeps_GCJ
18830
18831 # The library search path used internally by the compiler when linking
18832 # a shared library.
18833 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18834
18835 # Method to check whether dependent libraries are shared objects.
18836 deplibs_check_method=$lt_deplibs_check_method
18837
18838 # Command to use when deplibs_check_method == file_magic.
18839 file_magic_cmd=$lt_file_magic_cmd
18840
18841 # Flag that allows shared libraries with undefined symbols to be built.
18842 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18843
18844 # Flag that forces no undefined symbols.
18845 no_undefined_flag=$lt_no_undefined_flag_GCJ
18846
18847 # Commands used to finish a libtool library installation in a directory.
18848 finish_cmds=$lt_finish_cmds
18849
18850 # Same as above, but a single script fragment to be evaled but not shown.
18851 finish_eval=$lt_finish_eval
18852
18853 # Take the output of nm and produce a listing of raw symbols and C names.
18854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18855
18856 # Transform the output of nm in a proper C declaration
18857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18858
18859 # Transform the output of nm in a C name address pair
18860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18861
18862 # This is the shared library runtime path variable.
18863 runpath_var=$runpath_var
18864
18865 # This is the shared library path variable.
18866 shlibpath_var=$shlibpath_var
18867
18868 # Is shlibpath searched before the hard-coded library search path?
18869 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18870
18871 # How to hardcode a shared library path into an executable.
18872 hardcode_action=$hardcode_action_GCJ
18873
18874 # Whether we should hardcode library paths into libraries.
18875 hardcode_into_libs=$hardcode_into_libs
18876
18877 # Flag to hardcode \$libdir into a binary during linking.
18878 # This must work even if \$libdir does not exist.
18879 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18880
18881 # If ld is used when linking, flag to hardcode \$libdir into
18882 # a binary during linking. This must work even if \$libdir does
18883 # not exist.
18884 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18885
18886 # Whether we need a single -rpath flag with a separated argument.
18887 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18888
18889 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18890 # resulting binary.
18891 hardcode_direct=$hardcode_direct_GCJ
18892
18893 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18894 # resulting binary.
18895 hardcode_minus_L=$hardcode_minus_L_GCJ
18896
18897 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18898 # the resulting binary.
18899 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18900
18901 # Set to yes if building a shared library automatically hardcodes DIR into the library
18902 # and all subsequent libraries and executables linked against it.
18903 hardcode_automatic=$hardcode_automatic_GCJ
18904
18905 # Variables whose values should be saved in libtool wrapper scripts and
18906 # restored at relink time.
18907 variables_saved_for_relink="$variables_saved_for_relink"
18908
18909 # Whether libtool must link a program against all its dependency libraries.
18910 link_all_deplibs=$link_all_deplibs_GCJ
18911
18912 # Compile-time system search path for libraries
18913 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18914
18915 # Run-time system search path for libraries
18916 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18917
18918 # Fix the shell variable \$srcfile for the compiler.
18919 fix_srcfile_path="$fix_srcfile_path_GCJ"
18920
18921 # Set to yes if exported symbols are required.
18922 always_export_symbols=$always_export_symbols_GCJ
18923
18924 # The commands to list exported symbols.
18925 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18926
18927 # The commands to extract the exported symbol list from a shared archive.
18928 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18929
18930 # Symbols that should not be listed in the preloaded symbols.
18931 exclude_expsyms=$lt_exclude_expsyms_GCJ
18932
18933 # Symbols that must always be exported.
18934 include_expsyms=$lt_include_expsyms_GCJ
18935
18936 # ### END LIBTOOL TAG CONFIG: $tagname
18937
18938 __EOF__
18939
18940
18941 else
18942   # If there is no Makefile yet, we rely on a make rule to execute
18943   # `config.status --recheck' to rerun these tests and create the
18944   # libtool script then.
18945   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18946   if test -f "$ltmain_in"; then
18947     test -f Makefile && make "$ltmain"
18948   fi
18949 fi
18950
18951
18952 ac_ext=c
18953 ac_cpp='$CPP $CPPFLAGS'
18954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18957
18958 CC="$lt_save_CC"
18959
18960         else
18961           tagname=""
18962         fi
18963         ;;
18964
18965       RC)
18966
18967
18968 # Source file extension for RC test sources.
18969 ac_ext=rc
18970
18971 # Object file extension for compiled RC test sources.
18972 objext=o
18973 objext_RC=$objext
18974
18975 # Code to be used in simple compile tests
18976 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18977
18978 # Code to be used in simple link tests
18979 lt_simple_link_test_code="$lt_simple_compile_test_code"
18980
18981 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18982
18983 # If no C compiler was specified, use CC.
18984 LTCC=${LTCC-"$CC"}
18985
18986 # If no C compiler flags were specified, use CFLAGS.
18987 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18988
18989 # Allow CC to be a program name with arguments.
18990 compiler=$CC
18991
18992
18993 # save warnings/boilerplate of simple test code
18994 ac_outfile=conftest.$ac_objext
18995 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18996 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18997 _lt_compiler_boilerplate=`cat conftest.err`
18998 $rm conftest*
18999
19000 ac_outfile=conftest.$ac_objext
19001 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19002 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19003 _lt_linker_boilerplate=`cat conftest.err`
19004 $rm conftest*
19005
19006
19007 # Allow CC to be a program name with arguments.
19008 lt_save_CC="$CC"
19009 CC=${RC-"windres"}
19010 compiler=$CC
19011 compiler_RC=$CC
19012 for cc_temp in $compiler""; do
19013   case $cc_temp in
19014     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19015     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19016     \-*) ;;
19017     *) break;;
19018   esac
19019 done
19020 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19021
19022 lt_cv_prog_compiler_c_o_RC=yes
19023
19024 # The else clause should only fire when bootstrapping the
19025 # libtool distribution, otherwise you forgot to ship ltmain.sh
19026 # with your package, and you will get complaints that there are
19027 # no rules to generate ltmain.sh.
19028 if test -f "$ltmain"; then
19029   # See if we are running on zsh, and set the options which allow our commands through
19030   # without removal of \ escapes.
19031   if test -n "${ZSH_VERSION+set}" ; then
19032     setopt NO_GLOB_SUBST
19033   fi
19034   # Now quote all the things that may contain metacharacters while being
19035   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19036   # variables and quote the copies for generation of the libtool script.
19037   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19038     SED SHELL STRIP \
19039     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19040     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19041     deplibs_check_method reload_flag reload_cmds need_locks \
19042     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19043     lt_cv_sys_global_symbol_to_c_name_address \
19044     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19045     old_postinstall_cmds old_postuninstall_cmds \
19046     compiler_RC \
19047     CC_RC \
19048     LD_RC \
19049     lt_prog_compiler_wl_RC \
19050     lt_prog_compiler_pic_RC \
19051     lt_prog_compiler_static_RC \
19052     lt_prog_compiler_no_builtin_flag_RC \
19053     export_dynamic_flag_spec_RC \
19054     thread_safe_flag_spec_RC \
19055     whole_archive_flag_spec_RC \
19056     enable_shared_with_static_runtimes_RC \
19057     old_archive_cmds_RC \
19058     old_archive_from_new_cmds_RC \
19059     predep_objects_RC \
19060     postdep_objects_RC \
19061     predeps_RC \
19062     postdeps_RC \
19063     compiler_lib_search_path_RC \
19064     archive_cmds_RC \
19065     archive_expsym_cmds_RC \
19066     postinstall_cmds_RC \
19067     postuninstall_cmds_RC \
19068     old_archive_from_expsyms_cmds_RC \
19069     allow_undefined_flag_RC \
19070     no_undefined_flag_RC \
19071     export_symbols_cmds_RC \
19072     hardcode_libdir_flag_spec_RC \
19073     hardcode_libdir_flag_spec_ld_RC \
19074     hardcode_libdir_separator_RC \
19075     hardcode_automatic_RC \
19076     module_cmds_RC \
19077     module_expsym_cmds_RC \
19078     lt_cv_prog_compiler_c_o_RC \
19079     exclude_expsyms_RC \
19080     include_expsyms_RC; do
19081
19082     case $var in
19083     old_archive_cmds_RC | \
19084     old_archive_from_new_cmds_RC | \
19085     archive_cmds_RC | \
19086     archive_expsym_cmds_RC | \
19087     module_cmds_RC | \
19088     module_expsym_cmds_RC | \
19089     old_archive_from_expsyms_cmds_RC | \
19090     export_symbols_cmds_RC | \
19091     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19092     postinstall_cmds | postuninstall_cmds | \
19093     old_postinstall_cmds | old_postuninstall_cmds | \
19094     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19095       # Double-quote double-evaled strings.
19096       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19097       ;;
19098     *)
19099       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19100       ;;
19101     esac
19102   done
19103
19104   case $lt_echo in
19105   *'\$0 --fallback-echo"')
19106     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19107     ;;
19108   esac
19109
19110 cfgfile="$ofile"
19111
19112   cat <<__EOF__ >> "$cfgfile"
19113 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19114
19115 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19116
19117 # Shell to use when invoking shell scripts.
19118 SHELL=$lt_SHELL
19119
19120 # Whether or not to build shared libraries.
19121 build_libtool_libs=$enable_shared
19122
19123 # Whether or not to build static libraries.
19124 build_old_libs=$enable_static
19125
19126 # Whether or not to add -lc for building shared libraries.
19127 build_libtool_need_lc=$archive_cmds_need_lc_RC
19128
19129 # Whether or not to disallow shared libs when runtime libs are static
19130 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19131
19132 # Whether or not to optimize for fast installation.
19133 fast_install=$enable_fast_install
19134
19135 # The host system.
19136 host_alias=$host_alias
19137 host=$host
19138 host_os=$host_os
19139
19140 # The build system.
19141 build_alias=$build_alias
19142 build=$build
19143 build_os=$build_os
19144
19145 # An echo program that does not interpret backslashes.
19146 echo=$lt_echo
19147
19148 # The archiver.
19149 AR=$lt_AR
19150 AR_FLAGS=$lt_AR_FLAGS
19151
19152 # A C compiler.
19153 LTCC=$lt_LTCC
19154
19155 # LTCC compiler flags.
19156 LTCFLAGS=$lt_LTCFLAGS
19157
19158 # A language-specific compiler.
19159 CC=$lt_compiler_RC
19160
19161 # Is the compiler the GNU C compiler?
19162 with_gcc=$GCC_RC
19163
19164 # An ERE matcher.
19165 EGREP=$lt_EGREP
19166
19167 # The linker used to build libraries.
19168 LD=$lt_LD_RC
19169
19170 # Whether we need hard or soft links.
19171 LN_S=$lt_LN_S
19172
19173 # A BSD-compatible nm program.
19174 NM=$lt_NM
19175
19176 # A symbol stripping program
19177 STRIP=$lt_STRIP
19178
19179 # Used to examine libraries when file_magic_cmd begins "file"
19180 MAGIC_CMD=$MAGIC_CMD
19181
19182 # Used on cygwin: DLL creation program.
19183 DLLTOOL="$DLLTOOL"
19184
19185 # Used on cygwin: object dumper.
19186 OBJDUMP="$OBJDUMP"
19187
19188 # Used on cygwin: assembler.
19189 AS="$AS"
19190
19191 # The name of the directory that contains temporary libtool files.
19192 objdir=$objdir
19193
19194 # How to create reloadable object files.
19195 reload_flag=$lt_reload_flag
19196 reload_cmds=$lt_reload_cmds
19197
19198 # How to pass a linker flag through the compiler.
19199 wl=$lt_lt_prog_compiler_wl_RC
19200
19201 # Object file suffix (normally "o").
19202 objext="$ac_objext"
19203
19204 # Old archive suffix (normally "a").
19205 libext="$libext"
19206
19207 # Shared library suffix (normally ".so").
19208 shrext_cmds='$shrext_cmds'
19209
19210 # Executable file suffix (normally "").
19211 exeext="$exeext"
19212
19213 # Additional compiler flags for building library objects.
19214 pic_flag=$lt_lt_prog_compiler_pic_RC
19215 pic_mode=$pic_mode
19216
19217 # What is the maximum length of a command?
19218 max_cmd_len=$lt_cv_sys_max_cmd_len
19219
19220 # Does compiler simultaneously support -c and -o options?
19221 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19222
19223 # Must we lock files when doing compilation?
19224 need_locks=$lt_need_locks
19225
19226 # Do we need the lib prefix for modules?
19227 need_lib_prefix=$need_lib_prefix
19228
19229 # Do we need a version for libraries?
19230 need_version=$need_version
19231
19232 # Whether dlopen is supported.
19233 dlopen_support=$enable_dlopen
19234
19235 # Whether dlopen of programs is supported.
19236 dlopen_self=$enable_dlopen_self
19237
19238 # Whether dlopen of statically linked programs is supported.
19239 dlopen_self_static=$enable_dlopen_self_static
19240
19241 # Compiler flag to prevent dynamic linking.
19242 link_static_flag=$lt_lt_prog_compiler_static_RC
19243
19244 # Compiler flag to turn off builtin functions.
19245 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19246
19247 # Compiler flag to allow reflexive dlopens.
19248 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19249
19250 # Compiler flag to generate shared objects directly from archives.
19251 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19252
19253 # Compiler flag to generate thread-safe objects.
19254 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19255
19256 # Library versioning type.
19257 version_type=$version_type
19258
19259 # Format of library name prefix.
19260 libname_spec=$lt_libname_spec
19261
19262 # List of archive names.  First name is the real one, the rest are links.
19263 # The last name is the one that the linker finds with -lNAME.
19264 library_names_spec=$lt_library_names_spec
19265
19266 # The coded name of the library, if different from the real name.
19267 soname_spec=$lt_soname_spec
19268
19269 # Commands used to build and install an old-style archive.
19270 RANLIB=$lt_RANLIB
19271 old_archive_cmds=$lt_old_archive_cmds_RC
19272 old_postinstall_cmds=$lt_old_postinstall_cmds
19273 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19274
19275 # Create an old-style archive from a shared archive.
19276 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19277
19278 # Create a temporary old-style archive to link instead of a shared archive.
19279 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19280
19281 # Commands used to build and install a shared archive.
19282 archive_cmds=$lt_archive_cmds_RC
19283 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19284 postinstall_cmds=$lt_postinstall_cmds
19285 postuninstall_cmds=$lt_postuninstall_cmds
19286
19287 # Commands used to build a loadable module (assumed same as above if empty)
19288 module_cmds=$lt_module_cmds_RC
19289 module_expsym_cmds=$lt_module_expsym_cmds_RC
19290
19291 # Commands to strip libraries.
19292 old_striplib=$lt_old_striplib
19293 striplib=$lt_striplib
19294
19295 # Dependencies to place before the objects being linked to create a
19296 # shared library.
19297 predep_objects=$lt_predep_objects_RC
19298
19299 # Dependencies to place after the objects being linked to create a
19300 # shared library.
19301 postdep_objects=$lt_postdep_objects_RC
19302
19303 # Dependencies to place before the objects being linked to create a
19304 # shared library.
19305 predeps=$lt_predeps_RC
19306
19307 # Dependencies to place after the objects being linked to create a
19308 # shared library.
19309 postdeps=$lt_postdeps_RC
19310
19311 # The library search path used internally by the compiler when linking
19312 # a shared library.
19313 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19314
19315 # Method to check whether dependent libraries are shared objects.
19316 deplibs_check_method=$lt_deplibs_check_method
19317
19318 # Command to use when deplibs_check_method == file_magic.
19319 file_magic_cmd=$lt_file_magic_cmd
19320
19321 # Flag that allows shared libraries with undefined symbols to be built.
19322 allow_undefined_flag=$lt_allow_undefined_flag_RC
19323
19324 # Flag that forces no undefined symbols.
19325 no_undefined_flag=$lt_no_undefined_flag_RC
19326
19327 # Commands used to finish a libtool library installation in a directory.
19328 finish_cmds=$lt_finish_cmds
19329
19330 # Same as above, but a single script fragment to be evaled but not shown.
19331 finish_eval=$lt_finish_eval
19332
19333 # Take the output of nm and produce a listing of raw symbols and C names.
19334 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19335
19336 # Transform the output of nm in a proper C declaration
19337 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19338
19339 # Transform the output of nm in a C name address pair
19340 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19341
19342 # This is the shared library runtime path variable.
19343 runpath_var=$runpath_var
19344
19345 # This is the shared library path variable.
19346 shlibpath_var=$shlibpath_var
19347
19348 # Is shlibpath searched before the hard-coded library search path?
19349 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19350
19351 # How to hardcode a shared library path into an executable.
19352 hardcode_action=$hardcode_action_RC
19353
19354 # Whether we should hardcode library paths into libraries.
19355 hardcode_into_libs=$hardcode_into_libs
19356
19357 # Flag to hardcode \$libdir into a binary during linking.
19358 # This must work even if \$libdir does not exist.
19359 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19360
19361 # If ld is used when linking, flag to hardcode \$libdir into
19362 # a binary during linking. This must work even if \$libdir does
19363 # not exist.
19364 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19365
19366 # Whether we need a single -rpath flag with a separated argument.
19367 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19368
19369 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19370 # resulting binary.
19371 hardcode_direct=$hardcode_direct_RC
19372
19373 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19374 # resulting binary.
19375 hardcode_minus_L=$hardcode_minus_L_RC
19376
19377 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19378 # the resulting binary.
19379 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19380
19381 # Set to yes if building a shared library automatically hardcodes DIR into the library
19382 # and all subsequent libraries and executables linked against it.
19383 hardcode_automatic=$hardcode_automatic_RC
19384
19385 # Variables whose values should be saved in libtool wrapper scripts and
19386 # restored at relink time.
19387 variables_saved_for_relink="$variables_saved_for_relink"
19388
19389 # Whether libtool must link a program against all its dependency libraries.
19390 link_all_deplibs=$link_all_deplibs_RC
19391
19392 # Compile-time system search path for libraries
19393 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19394
19395 # Run-time system search path for libraries
19396 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19397
19398 # Fix the shell variable \$srcfile for the compiler.
19399 fix_srcfile_path="$fix_srcfile_path_RC"
19400
19401 # Set to yes if exported symbols are required.
19402 always_export_symbols=$always_export_symbols_RC
19403
19404 # The commands to list exported symbols.
19405 export_symbols_cmds=$lt_export_symbols_cmds_RC
19406
19407 # The commands to extract the exported symbol list from a shared archive.
19408 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19409
19410 # Symbols that should not be listed in the preloaded symbols.
19411 exclude_expsyms=$lt_exclude_expsyms_RC
19412
19413 # Symbols that must always be exported.
19414 include_expsyms=$lt_include_expsyms_RC
19415
19416 # ### END LIBTOOL TAG CONFIG: $tagname
19417
19418 __EOF__
19419
19420
19421 else
19422   # If there is no Makefile yet, we rely on a make rule to execute
19423   # `config.status --recheck' to rerun these tests and create the
19424   # libtool script then.
19425   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19426   if test -f "$ltmain_in"; then
19427     test -f Makefile && make "$ltmain"
19428   fi
19429 fi
19430
19431
19432 ac_ext=c
19433 ac_cpp='$CPP $CPPFLAGS'
19434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19437
19438 CC="$lt_save_CC"
19439
19440         ;;
19441
19442       *)
19443         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19444 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19445    { (exit 1); exit 1; }; }
19446         ;;
19447       esac
19448
19449       # Append the new tag name to the list of available tags.
19450       if test -n "$tagname" ; then
19451       available_tags="$available_tags $tagname"
19452     fi
19453     fi
19454   done
19455   IFS="$lt_save_ifs"
19456
19457   # Now substitute the updated list of available tags.
19458   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19459     mv "${ofile}T" "$ofile"
19460     chmod +x "$ofile"
19461   else
19462     rm -f "${ofile}T"
19463     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19464 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19465    { (exit 1); exit 1; }; }
19466   fi
19467 fi
19468
19469
19470
19471 # This can be used to rebuild libtool when needed
19472 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19473
19474 # Always use our own libtool.
19475 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19476
19477 # Prevent multiple expansion
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499 ###############
19500 ## System checks
19501 ##
19502
19503   { echo "$as_me:$LINENO: result: " >&5
19504 echo "${ECHO_T}" >&6; }
19505   { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19506 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19507
19508 ac_ext=c
19509 ac_cpp='$CPP $CPPFLAGS'
19510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19513 if test -n "$ac_tool_prefix"; then
19514   for ac_prog in xlC gcc cc
19515   do
19516     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19520 if test "${ac_cv_prog_CC+set}" = set; then
19521   echo $ECHO_N "(cached) $ECHO_C" >&6
19522 else
19523   if test -n "$CC"; then
19524   ac_cv_prog_CC="$CC" # Let the user override the test.
19525 else
19526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19527 for as_dir in $PATH
19528 do
19529   IFS=$as_save_IFS
19530   test -z "$as_dir" && as_dir=.
19531   for ac_exec_ext in '' $ac_executable_extensions; do
19532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19533     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19535     break 2
19536   fi
19537 done
19538 done
19539 IFS=$as_save_IFS
19540
19541 fi
19542 fi
19543 CC=$ac_cv_prog_CC
19544 if test -n "$CC"; then
19545   { echo "$as_me:$LINENO: result: $CC" >&5
19546 echo "${ECHO_T}$CC" >&6; }
19547 else
19548   { echo "$as_me:$LINENO: result: no" >&5
19549 echo "${ECHO_T}no" >&6; }
19550 fi
19551
19552
19553     test -n "$CC" && break
19554   done
19555 fi
19556 if test -z "$CC"; then
19557   ac_ct_CC=$CC
19558   for ac_prog in xlC gcc cc
19559 do
19560   # Extract the first word of "$ac_prog", so it can be a program name with args.
19561 set dummy $ac_prog; ac_word=$2
19562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19565   echo $ECHO_N "(cached) $ECHO_C" >&6
19566 else
19567   if test -n "$ac_ct_CC"; then
19568   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19569 else
19570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19571 for as_dir in $PATH
19572 do
19573   IFS=$as_save_IFS
19574   test -z "$as_dir" && as_dir=.
19575   for ac_exec_ext in '' $ac_executable_extensions; do
19576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19577     ac_cv_prog_ac_ct_CC="$ac_prog"
19578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19579     break 2
19580   fi
19581 done
19582 done
19583 IFS=$as_save_IFS
19584
19585 fi
19586 fi
19587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19588 if test -n "$ac_ct_CC"; then
19589   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19590 echo "${ECHO_T}$ac_ct_CC" >&6; }
19591 else
19592   { echo "$as_me:$LINENO: result: no" >&5
19593 echo "${ECHO_T}no" >&6; }
19594 fi
19595
19596
19597   test -n "$ac_ct_CC" && break
19598 done
19599
19600   if test "x$ac_ct_CC" = x; then
19601     CC=""
19602   else
19603     case $cross_compiling:$ac_tool_warned in
19604 yes:)
19605 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19606 whose name does not start with the host triplet.  If you think this
19607 configuration is useful to you, please write to autoconf@gnu.org." >&5
19608 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19609 whose name does not start with the host triplet.  If you think this
19610 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19611 ac_tool_warned=yes ;;
19612 esac
19613     CC=$ac_ct_CC
19614   fi
19615 fi
19616
19617
19618 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19619 See \`config.log' for more details." >&5
19620 echo "$as_me: error: no acceptable C compiler found in \$PATH
19621 See \`config.log' for more details." >&2;}
19622    { (exit 1); exit 1; }; }
19623
19624 # Provide some information about the compiler.
19625 echo "$as_me:$LINENO: checking for C compiler version" >&5
19626 ac_compiler=`set X $ac_compile; echo $2`
19627 { (ac_try="$ac_compiler --version >&5"
19628 case "(($ac_try" in
19629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630   *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633   (eval "$ac_compiler --version >&5") 2>&5
19634   ac_status=$?
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); }
19637 { (ac_try="$ac_compiler -v >&5"
19638 case "(($ac_try" in
19639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640   *) ac_try_echo=$ac_try;;
19641 esac
19642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19643   (eval "$ac_compiler -v >&5") 2>&5
19644   ac_status=$?
19645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646   (exit $ac_status); }
19647 { (ac_try="$ac_compiler -V >&5"
19648 case "(($ac_try" in
19649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650   *) ac_try_echo=$ac_try;;
19651 esac
19652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19653   (eval "$ac_compiler -V >&5") 2>&5
19654   ac_status=$?
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); }
19657
19658 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19659 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19660 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19661   echo $ECHO_N "(cached) $ECHO_C" >&6
19662 else
19663   cat >conftest.$ac_ext <<_ACEOF
19664 /* confdefs.h.  */
19665 _ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h.  */
19669
19670 int
19671 main ()
19672 {
19673 #ifndef __GNUC__
19674        choke me
19675 #endif
19676
19677   ;
19678   return 0;
19679 }
19680 _ACEOF
19681 rm -f conftest.$ac_objext
19682 if { (ac_try="$ac_compile"
19683 case "(($ac_try" in
19684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685   *) ac_try_echo=$ac_try;;
19686 esac
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688   (eval "$ac_compile") 2>conftest.er1
19689   ac_status=$?
19690   grep -v '^ *+' conftest.er1 >conftest.err
19691   rm -f conftest.er1
19692   cat conftest.err >&5
19693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694   (exit $ac_status); } && {
19695          test -z "$ac_c_werror_flag" ||
19696          test ! -s conftest.err
19697        } && test -s conftest.$ac_objext; then
19698   ac_compiler_gnu=yes
19699 else
19700   echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19702
19703         ac_compiler_gnu=no
19704 fi
19705
19706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19707 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19708
19709 fi
19710 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19711 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19712 GCC=`test $ac_compiler_gnu = yes && echo yes`
19713 ac_test_CFLAGS=${CFLAGS+set}
19714 ac_save_CFLAGS=$CFLAGS
19715 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19716 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19717 if test "${ac_cv_prog_cc_g+set}" = set; then
19718   echo $ECHO_N "(cached) $ECHO_C" >&6
19719 else
19720   ac_save_c_werror_flag=$ac_c_werror_flag
19721    ac_c_werror_flag=yes
19722    ac_cv_prog_cc_g=no
19723    CFLAGS="-g"
19724    cat >conftest.$ac_ext <<_ACEOF
19725 /* confdefs.h.  */
19726 _ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h.  */
19730
19731 int
19732 main ()
19733 {
19734
19735   ;
19736   return 0;
19737 }
19738 _ACEOF
19739 rm -f conftest.$ac_objext
19740 if { (ac_try="$ac_compile"
19741 case "(($ac_try" in
19742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743   *) ac_try_echo=$ac_try;;
19744 esac
19745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746   (eval "$ac_compile") 2>conftest.er1
19747   ac_status=$?
19748   grep -v '^ *+' conftest.er1 >conftest.err
19749   rm -f conftest.er1
19750   cat conftest.err >&5
19751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752   (exit $ac_status); } && {
19753          test -z "$ac_c_werror_flag" ||
19754          test ! -s conftest.err
19755        } && test -s conftest.$ac_objext; then
19756   ac_cv_prog_cc_g=yes
19757 else
19758   echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19760
19761         CFLAGS=""
19762       cat >conftest.$ac_ext <<_ACEOF
19763 /* confdefs.h.  */
19764 _ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h.  */
19768
19769 int
19770 main ()
19771 {
19772
19773   ;
19774   return 0;
19775 }
19776 _ACEOF
19777 rm -f conftest.$ac_objext
19778 if { (ac_try="$ac_compile"
19779 case "(($ac_try" in
19780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781   *) ac_try_echo=$ac_try;;
19782 esac
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784   (eval "$ac_compile") 2>conftest.er1
19785   ac_status=$?
19786   grep -v '^ *+' conftest.er1 >conftest.err
19787   rm -f conftest.er1
19788   cat conftest.err >&5
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); } && {
19791          test -z "$ac_c_werror_flag" ||
19792          test ! -s conftest.err
19793        } && test -s conftest.$ac_objext; then
19794   :
19795 else
19796   echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19798
19799         ac_c_werror_flag=$ac_save_c_werror_flag
19800          CFLAGS="-g"
19801          cat >conftest.$ac_ext <<_ACEOF
19802 /* confdefs.h.  */
19803 _ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h.  */
19807
19808 int
19809 main ()
19810 {
19811
19812   ;
19813   return 0;
19814 }
19815 _ACEOF
19816 rm -f conftest.$ac_objext
19817 if { (ac_try="$ac_compile"
19818 case "(($ac_try" in
19819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820   *) ac_try_echo=$ac_try;;
19821 esac
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823   (eval "$ac_compile") 2>conftest.er1
19824   ac_status=$?
19825   grep -v '^ *+' conftest.er1 >conftest.err
19826   rm -f conftest.er1
19827   cat conftest.err >&5
19828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829   (exit $ac_status); } && {
19830          test -z "$ac_c_werror_flag" ||
19831          test ! -s conftest.err
19832        } && test -s conftest.$ac_objext; then
19833   ac_cv_prog_cc_g=yes
19834 else
19835   echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19837
19838
19839 fi
19840
19841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 fi
19843
19844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19845 fi
19846
19847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19848    ac_c_werror_flag=$ac_save_c_werror_flag
19849 fi
19850 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19851 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19852 if test "$ac_test_CFLAGS" = set; then
19853   CFLAGS=$ac_save_CFLAGS
19854 elif test $ac_cv_prog_cc_g = yes; then
19855   if test "$GCC" = yes; then
19856     CFLAGS="-g -O2"
19857   else
19858     CFLAGS="-g"
19859   fi
19860 else
19861   if test "$GCC" = yes; then
19862     CFLAGS="-O2"
19863   else
19864     CFLAGS=
19865   fi
19866 fi
19867 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19868 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19869 if test "${ac_cv_prog_cc_c89+set}" = set; then
19870   echo $ECHO_N "(cached) $ECHO_C" >&6
19871 else
19872   ac_cv_prog_cc_c89=no
19873 ac_save_CC=$CC
19874 cat >conftest.$ac_ext <<_ACEOF
19875 /* confdefs.h.  */
19876 _ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h.  */
19880 #include <stdarg.h>
19881 #include <stdio.h>
19882 #include <sys/types.h>
19883 #include <sys/stat.h>
19884 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19885 struct buf { int x; };
19886 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19887 static char *e (p, i)
19888      char **p;
19889      int i;
19890 {
19891   return p[i];
19892 }
19893 static char *f (char * (*g) (char **, int), char **p, ...)
19894 {
19895   char *s;
19896   va_list v;
19897   va_start (v,p);
19898   s = g (p, va_arg (v,int));
19899   va_end (v);
19900   return s;
19901 }
19902
19903 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19904    function prototypes and stuff, but not '\xHH' hex character constants.
19905    These don't provoke an error unfortunately, instead are silently treated
19906    as 'x'.  The following induces an error, until -std is added to get
19907    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19908    array size at least.  It's necessary to write '\x00'==0 to get something
19909    that's true only with -std.  */
19910 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19911
19912 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19913    inside strings and character constants.  */
19914 #define FOO(x) 'x'
19915 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19916
19917 int test (int i, double x);
19918 struct s1 {int (*f) (int a);};
19919 struct s2 {int (*f) (double a);};
19920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19921 int argc;
19922 char **argv;
19923 int
19924 main ()
19925 {
19926 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19927   ;
19928   return 0;
19929 }
19930 _ACEOF
19931 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19932         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19933 do
19934   CC="$ac_save_CC $ac_arg"
19935   rm -f conftest.$ac_objext
19936 if { (ac_try="$ac_compile"
19937 case "(($ac_try" in
19938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939   *) ac_try_echo=$ac_try;;
19940 esac
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942   (eval "$ac_compile") 2>conftest.er1
19943   ac_status=$?
19944   grep -v '^ *+' conftest.er1 >conftest.err
19945   rm -f conftest.er1
19946   cat conftest.err >&5
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); } && {
19949          test -z "$ac_c_werror_flag" ||
19950          test ! -s conftest.err
19951        } && test -s conftest.$ac_objext; then
19952   ac_cv_prog_cc_c89=$ac_arg
19953 else
19954   echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19956
19957
19958 fi
19959
19960 rm -f core conftest.err conftest.$ac_objext
19961   test "x$ac_cv_prog_cc_c89" != "xno" && break
19962 done
19963 rm -f conftest.$ac_ext
19964 CC=$ac_save_CC
19965
19966 fi
19967 # AC_CACHE_VAL
19968 case "x$ac_cv_prog_cc_c89" in
19969   x)
19970     { echo "$as_me:$LINENO: result: none needed" >&5
19971 echo "${ECHO_T}none needed" >&6; } ;;
19972   xno)
19973     { echo "$as_me:$LINENO: result: unsupported" >&5
19974 echo "${ECHO_T}unsupported" >&6; } ;;
19975   *)
19976     CC="$CC $ac_cv_prog_cc_c89"
19977     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19978 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19979 esac
19980
19981
19982 ac_ext=c
19983 ac_cpp='$CPP $CPPFLAGS'
19984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19987
19988 depcc="$CC"   am_compiler_list=
19989
19990 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19991 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19992 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19993   echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19996   # We make a subdir and do the tests there.  Otherwise we can end up
19997   # making bogus files that we don't know about and never remove.  For
19998   # instance it was reported that on HP-UX the gcc test will end up
19999   # making a dummy file named `D' -- because `-MD' means `put the output
20000   # in D'.
20001   mkdir conftest.dir
20002   # Copy depcomp to subdir because otherwise we won't find it if we're
20003   # using a relative directory.
20004   cp "$am_depcomp" conftest.dir
20005   cd conftest.dir
20006   # We will build objects and dependencies in a subdirectory because
20007   # it helps to detect inapplicable dependency modes.  For instance
20008   # both Tru64's cc and ICC support -MD to output dependencies as a
20009   # side effect of compilation, but ICC will put the dependencies in
20010   # the current directory while Tru64 will put them in the object
20011   # directory.
20012   mkdir sub
20013
20014   am_cv_CC_dependencies_compiler_type=none
20015   if test "$am_compiler_list" = ""; then
20016      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20017   fi
20018   for depmode in $am_compiler_list; do
20019     # Setup a source with many dependencies, because some compilers
20020     # like to wrap large dependency lists on column 80 (with \), and
20021     # we should not choose a depcomp mode which is confused by this.
20022     #
20023     # We need to recreate these files for each test, as the compiler may
20024     # overwrite some of them when testing with obscure command lines.
20025     # This happens at least with the AIX C compiler.
20026     : > sub/conftest.c
20027     for i in 1 2 3 4 5 6; do
20028       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20029       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20030       # Solaris 8's {/usr,}/bin/sh.
20031       touch sub/conftst$i.h
20032     done
20033     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20034
20035     case $depmode in
20036     nosideeffect)
20037       # after this tag, mechanisms are not by side-effect, so they'll
20038       # only be used when explicitly requested
20039       if test "x$enable_dependency_tracking" = xyes; then
20040         continue
20041       else
20042         break
20043       fi
20044       ;;
20045     none) break ;;
20046     esac
20047     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20048     # mode.  It turns out that the SunPro C++ compiler does not properly
20049     # handle `-M -o', and we need to detect this.
20050     if depmode=$depmode \
20051        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20052        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20053        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20054          >/dev/null 2>conftest.err &&
20055        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20056        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20057        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20058       # icc doesn't choke on unknown options, it will just issue warnings
20059       # or remarks (even with -Werror).  So we grep stderr for any message
20060       # that says an option was ignored or not supported.
20061       # When given -MP, icc 7.0 and 7.1 complain thusly:
20062       #   icc: Command line warning: ignoring option '-M'; no argument required
20063       # The diagnosis changed in icc 8.0:
20064       #   icc: Command line remark: option '-MP' not supported
20065       if (grep 'ignoring option' conftest.err ||
20066           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20067         am_cv_CC_dependencies_compiler_type=$depmode
20068         break
20069       fi
20070     fi
20071   done
20072
20073   cd ..
20074   rm -rf conftest.dir
20075 else
20076   am_cv_CC_dependencies_compiler_type=none
20077 fi
20078
20079 fi
20080 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20081 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20082 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20083
20084
20085
20086 if
20087   test "x$enable_dependency_tracking" != xno \
20088   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20089   am__fastdepCC_TRUE=
20090   am__fastdepCC_FALSE='#'
20091 else
20092   am__fastdepCC_TRUE='#'
20093   am__fastdepCC_FALSE=
20094 fi
20095
20096
20097 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20098 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20099 # Just in case
20100 sleep 1
20101 echo timestamp > conftest.file
20102 # Do `set' in a subshell so we don't clobber the current shell's
20103 # arguments.  Must try -L first in case configure is actually a
20104 # symlink; some systems play weird games with the mod time of symlinks
20105 # (eg FreeBSD returns the mod time of the symlink's containing
20106 # directory).
20107 if (
20108    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20109    if test "$*" = "X"; then
20110       # -L didn't work.
20111       set X `ls -t $srcdir/configure conftest.file`
20112    fi
20113    rm -f conftest.file
20114    if test "$*" != "X $srcdir/configure conftest.file" \
20115       && test "$*" != "X conftest.file $srcdir/configure"; then
20116
20117       # If neither matched, then we have a broken ls.  This can happen
20118       # if, for instance, CONFIG_SHELL is bash and it inherits a
20119       # broken ls alias from the environment.  This has actually
20120       # happened.  Such a system could not be considered "sane".
20121       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20122 alias in your environment" >&5
20123 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20124 alias in your environment" >&2;}
20125    { (exit 1); exit 1; }; }
20126    fi
20127
20128    test "$2" = conftest.file
20129    )
20130 then
20131    # Ok.
20132    :
20133 else
20134    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20135 Check your system clock" >&5
20136 echo "$as_me: error: newly created file is older than distributed files!
20137 Check your system clock" >&2;}
20138    { (exit 1); exit 1; }; }
20139 fi
20140 { echo "$as_me:$LINENO: result: yes" >&5
20141 echo "${ECHO_T}yes" >&6; }
20142 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20143 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20144 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20145 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20146   echo $ECHO_N "(cached) $ECHO_C" >&6
20147 else
20148   cat >conftest.make <<\_ACEOF
20149 SHELL = /bin/sh
20150 all:
20151         @echo '@@@%%%=$(MAKE)=@@@%%%'
20152 _ACEOF
20153 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20154 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20155   *@@@%%%=?*=@@@%%%*)
20156     eval ac_cv_prog_make_${ac_make}_set=yes;;
20157   *)
20158     eval ac_cv_prog_make_${ac_make}_set=no;;
20159 esac
20160 rm -f conftest.make
20161 fi
20162 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20163   { echo "$as_me:$LINENO: result: yes" >&5
20164 echo "${ECHO_T}yes" >&6; }
20165   SET_MAKE=
20166 else
20167   { echo "$as_me:$LINENO: result: no" >&5
20168 echo "${ECHO_T}no" >&6; }
20169   SET_MAKE="MAKE=${MAKE-make}"
20170 fi
20171
20172
20173 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20174 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20175 if test "$cross_compiling" = yes; then
20176   { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20177 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20178 else
20179   cat >conftest.$ac_ext <<_ACEOF
20180 /* confdefs.h.  */
20181 _ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h.  */
20185 #include <stdio.h>
20186 int
20187 main ()
20188 {
20189 printf("%s",NULL);
20190   ;
20191   return 0;
20192 }
20193 _ACEOF
20194 rm -f conftest$ac_exeext
20195 if { (ac_try="$ac_link"
20196 case "(($ac_try" in
20197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198   *) ac_try_echo=$ac_try;;
20199 esac
20200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20201   (eval "$ac_link") 2>&5
20202   ac_status=$?
20203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20205   { (case "(($ac_try" in
20206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20207   *) ac_try_echo=$ac_try;;
20208 esac
20209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20210   (eval "$ac_try") 2>&5
20211   ac_status=$?
20212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213   (exit $ac_status); }; }; then
20214
20215 cat >>confdefs.h <<\_ACEOF
20216 #define PRINTF_NULL_WORKING 1
20217 _ACEOF
20218
20219               { echo "$as_me:$LINENO: result: yes" >&5
20220 echo "${ECHO_T}yes" >&6; }
20221 else
20222   echo "$as_me: program exited with status $ac_status" >&5
20223 echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20225
20226 ( exit $ac_status )
20227 { echo "$as_me:$LINENO: result: no" >&5
20228 echo "${ECHO_T}no" >&6; }
20229 fi
20230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20231 fi
20232
20233
20234
20235
20236     { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20237 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20238     if test "${ac_cv_va_copy+set}" = set; then
20239   echo $ECHO_N "(cached) $ECHO_C" >&6
20240 else
20241
20242     ac_cv_va_copy=""
20243
20244
20245
20246     if test ".$ac_cv_va_copy" = .; then
20247         if test "$cross_compiling" = yes; then
20248   ac_cv_va_copy="C99"
20249 else
20250   cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h.  */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h.  */
20256
20257 #include <stdlib.h>
20258 #include <stdarg.h>
20259 #include <string.h>
20260 #define DO_VA_COPY(d, s) va_copy((d), (s))
20261 void test(char *str, ...)
20262 {
20263     va_list ap, ap2;
20264     int i;
20265     va_start(ap, str);
20266     DO_VA_COPY(ap2, ap);
20267     for (i = 1; i <= 9; i++) {
20268         int k = (int)va_arg(ap, int);
20269         if (k != i)
20270             abort();
20271     }
20272     DO_VA_COPY(ap, ap2);
20273     for (i = 1; i <= 9; i++) {
20274         int k = (int)va_arg(ap, int);
20275         if (k != i)
20276             abort();
20277     }
20278     va_end(ap);
20279 }
20280 int main(int argc, char *argv[])
20281 {
20282     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20283     exit(0);
20284 }
20285
20286 _ACEOF
20287 rm -f conftest$ac_exeext
20288 if { (ac_try="$ac_link"
20289 case "(($ac_try" in
20290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291   *) ac_try_echo=$ac_try;;
20292 esac
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294   (eval "$ac_link") 2>&5
20295   ac_status=$?
20296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20298   { (case "(($ac_try" in
20299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300   *) ac_try_echo=$ac_try;;
20301 esac
20302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303   (eval "$ac_try") 2>&5
20304   ac_status=$?
20305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306   (exit $ac_status); }; }; then
20307   ac_cv_va_copy="C99"
20308 else
20309   echo "$as_me: program exited with status $ac_status" >&5
20310 echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20312
20313 fi
20314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20315 fi
20316
20317
20318             fi
20319
20320
20321
20322
20323     if test ".$ac_cv_va_copy" = .; then
20324         if test "$cross_compiling" = yes; then
20325   ac_cv_va_copy="GCM"
20326 else
20327   cat >conftest.$ac_ext <<_ACEOF
20328 /* confdefs.h.  */
20329 _ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h.  */
20333
20334 #include <stdlib.h>
20335 #include <stdarg.h>
20336 #include <string.h>
20337 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20338 void test(char *str, ...)
20339 {
20340     va_list ap, ap2;
20341     int i;
20342     va_start(ap, str);
20343     DO_VA_COPY(ap2, ap);
20344     for (i = 1; i <= 9; i++) {
20345         int k = (int)va_arg(ap, int);
20346         if (k != i)
20347             abort();
20348     }
20349     DO_VA_COPY(ap, ap2);
20350     for (i = 1; i <= 9; i++) {
20351         int k = (int)va_arg(ap, int);
20352         if (k != i)
20353             abort();
20354     }
20355     va_end(ap);
20356 }
20357 int main(int argc, char *argv[])
20358 {
20359     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20360     exit(0);
20361 }
20362
20363 _ACEOF
20364 rm -f conftest$ac_exeext
20365 if { (ac_try="$ac_link"
20366 case "(($ac_try" in
20367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20368   *) ac_try_echo=$ac_try;;
20369 esac
20370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20371   (eval "$ac_link") 2>&5
20372   ac_status=$?
20373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20375   { (case "(($ac_try" in
20376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377   *) ac_try_echo=$ac_try;;
20378 esac
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380   (eval "$ac_try") 2>&5
20381   ac_status=$?
20382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383   (exit $ac_status); }; }; then
20384   ac_cv_va_copy="GCM"
20385 else
20386   echo "$as_me: program exited with status $ac_status" >&5
20387 echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20389
20390 fi
20391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20392 fi
20393
20394
20395             fi
20396
20397
20398
20399
20400     if test ".$ac_cv_va_copy" = .; then
20401         if test "$cross_compiling" = yes; then
20402   ac_cv_va_copy="GCH"
20403 else
20404   cat >conftest.$ac_ext <<_ACEOF
20405 /* confdefs.h.  */
20406 _ACEOF
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h.  */
20410
20411 #include <stdlib.h>
20412 #include <stdarg.h>
20413 #include <string.h>
20414 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20415 void test(char *str, ...)
20416 {
20417     va_list ap, ap2;
20418     int i;
20419     va_start(ap, str);
20420     DO_VA_COPY(ap2, ap);
20421     for (i = 1; i <= 9; i++) {
20422         int k = (int)va_arg(ap, int);
20423         if (k != i)
20424             abort();
20425     }
20426     DO_VA_COPY(ap, ap2);
20427     for (i = 1; i <= 9; i++) {
20428         int k = (int)va_arg(ap, int);
20429         if (k != i)
20430             abort();
20431     }
20432     va_end(ap);
20433 }
20434 int main(int argc, char *argv[])
20435 {
20436     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20437     exit(0);
20438 }
20439
20440 _ACEOF
20441 rm -f conftest$ac_exeext
20442 if { (ac_try="$ac_link"
20443 case "(($ac_try" in
20444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445   *) ac_try_echo=$ac_try;;
20446 esac
20447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448   (eval "$ac_link") 2>&5
20449   ac_status=$?
20450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20452   { (case "(($ac_try" in
20453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454   *) ac_try_echo=$ac_try;;
20455 esac
20456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20457   (eval "$ac_try") 2>&5
20458   ac_status=$?
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); }; }; then
20461   ac_cv_va_copy="GCH"
20462 else
20463   echo "$as_me: program exited with status $ac_status" >&5
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20466
20467 fi
20468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20469 fi
20470
20471
20472             fi
20473
20474
20475
20476
20477     if test ".$ac_cv_va_copy" = .; then
20478         if test "$cross_compiling" = yes; then
20479   ac_cv_va_copy="GCB"
20480 else
20481   cat >conftest.$ac_ext <<_ACEOF
20482 /* confdefs.h.  */
20483 _ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h.  */
20487
20488 #include <stdlib.h>
20489 #include <stdarg.h>
20490 #include <string.h>
20491 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20492 void test(char *str, ...)
20493 {
20494     va_list ap, ap2;
20495     int i;
20496     va_start(ap, str);
20497     DO_VA_COPY(ap2, ap);
20498     for (i = 1; i <= 9; i++) {
20499         int k = (int)va_arg(ap, int);
20500         if (k != i)
20501             abort();
20502     }
20503     DO_VA_COPY(ap, ap2);
20504     for (i = 1; i <= 9; i++) {
20505         int k = (int)va_arg(ap, int);
20506         if (k != i)
20507             abort();
20508     }
20509     va_end(ap);
20510 }
20511 int main(int argc, char *argv[])
20512 {
20513     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20514     exit(0);
20515 }
20516
20517 _ACEOF
20518 rm -f conftest$ac_exeext
20519 if { (ac_try="$ac_link"
20520 case "(($ac_try" in
20521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522   *) ac_try_echo=$ac_try;;
20523 esac
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525   (eval "$ac_link") 2>&5
20526   ac_status=$?
20527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20529   { (case "(($ac_try" in
20530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531   *) ac_try_echo=$ac_try;;
20532 esac
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534   (eval "$ac_try") 2>&5
20535   ac_status=$?
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); }; }; then
20538   ac_cv_va_copy="GCB"
20539 else
20540   echo "$as_me: program exited with status $ac_status" >&5
20541 echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.$ac_ext >&5
20543
20544 fi
20545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20546 fi
20547
20548
20549             fi
20550
20551
20552
20553
20554     if test ".$ac_cv_va_copy" = .; then
20555         if test "$cross_compiling" = yes; then
20556   ac_cv_va_copy="ASS"
20557 else
20558   cat >conftest.$ac_ext <<_ACEOF
20559 /* confdefs.h.  */
20560 _ACEOF
20561 cat confdefs.h >>conftest.$ac_ext
20562 cat >>conftest.$ac_ext <<_ACEOF
20563 /* end confdefs.h.  */
20564
20565 #include <stdlib.h>
20566 #include <stdarg.h>
20567 #include <string.h>
20568 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20569 void test(char *str, ...)
20570 {
20571     va_list ap, ap2;
20572     int i;
20573     va_start(ap, str);
20574     DO_VA_COPY(ap2, ap);
20575     for (i = 1; i <= 9; i++) {
20576         int k = (int)va_arg(ap, int);
20577         if (k != i)
20578             abort();
20579     }
20580     DO_VA_COPY(ap, ap2);
20581     for (i = 1; i <= 9; i++) {
20582         int k = (int)va_arg(ap, int);
20583         if (k != i)
20584             abort();
20585     }
20586     va_end(ap);
20587 }
20588 int main(int argc, char *argv[])
20589 {
20590     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20591     exit(0);
20592 }
20593
20594 _ACEOF
20595 rm -f conftest$ac_exeext
20596 if { (ac_try="$ac_link"
20597 case "(($ac_try" in
20598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599   *) ac_try_echo=$ac_try;;
20600 esac
20601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20602   (eval "$ac_link") 2>&5
20603   ac_status=$?
20604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20606   { (case "(($ac_try" in
20607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608   *) ac_try_echo=$ac_try;;
20609 esac
20610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611   (eval "$ac_try") 2>&5
20612   ac_status=$?
20613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614   (exit $ac_status); }; }; then
20615   ac_cv_va_copy="ASS"
20616 else
20617   echo "$as_me: program exited with status $ac_status" >&5
20618 echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20620
20621 fi
20622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20623 fi
20624
20625
20626             fi
20627
20628
20629
20630
20631     if test ".$ac_cv_va_copy" = .; then
20632         if test "$cross_compiling" = yes; then
20633   ac_cv_va_copy="ASP"
20634 else
20635   cat >conftest.$ac_ext <<_ACEOF
20636 /* confdefs.h.  */
20637 _ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h.  */
20641
20642 #include <stdlib.h>
20643 #include <stdarg.h>
20644 #include <string.h>
20645 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20646 void test(char *str, ...)
20647 {
20648     va_list ap, ap2;
20649     int i;
20650     va_start(ap, str);
20651     DO_VA_COPY(ap2, ap);
20652     for (i = 1; i <= 9; i++) {
20653         int k = (int)va_arg(ap, int);
20654         if (k != i)
20655             abort();
20656     }
20657     DO_VA_COPY(ap, ap2);
20658     for (i = 1; i <= 9; i++) {
20659         int k = (int)va_arg(ap, int);
20660         if (k != i)
20661             abort();
20662     }
20663     va_end(ap);
20664 }
20665 int main(int argc, char *argv[])
20666 {
20667     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20668     exit(0);
20669 }
20670
20671 _ACEOF
20672 rm -f conftest$ac_exeext
20673 if { (ac_try="$ac_link"
20674 case "(($ac_try" in
20675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676   *) ac_try_echo=$ac_try;;
20677 esac
20678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679   (eval "$ac_link") 2>&5
20680   ac_status=$?
20681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20683   { (case "(($ac_try" in
20684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685   *) ac_try_echo=$ac_try;;
20686 esac
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688   (eval "$ac_try") 2>&5
20689   ac_status=$?
20690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691   (exit $ac_status); }; }; then
20692   ac_cv_va_copy="ASP"
20693 else
20694   echo "$as_me: program exited with status $ac_status" >&5
20695 echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20697
20698 fi
20699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20700 fi
20701
20702
20703             fi
20704
20705
20706
20707
20708     if test ".$ac_cv_va_copy" = .; then
20709         if test "$cross_compiling" = yes; then
20710   ac_cv_va_copy="CPS"
20711 else
20712   cat >conftest.$ac_ext <<_ACEOF
20713 /* confdefs.h.  */
20714 _ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h.  */
20718
20719 #include <stdlib.h>
20720 #include <stdarg.h>
20721 #include <string.h>
20722 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20723 void test(char *str, ...)
20724 {
20725     va_list ap, ap2;
20726     int i;
20727     va_start(ap, str);
20728     DO_VA_COPY(ap2, ap);
20729     for (i = 1; i <= 9; i++) {
20730         int k = (int)va_arg(ap, int);
20731         if (k != i)
20732             abort();
20733     }
20734     DO_VA_COPY(ap, ap2);
20735     for (i = 1; i <= 9; i++) {
20736         int k = (int)va_arg(ap, int);
20737         if (k != i)
20738             abort();
20739     }
20740     va_end(ap);
20741 }
20742 int main(int argc, char *argv[])
20743 {
20744     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20745     exit(0);
20746 }
20747
20748 _ACEOF
20749 rm -f conftest$ac_exeext
20750 if { (ac_try="$ac_link"
20751 case "(($ac_try" in
20752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753   *) ac_try_echo=$ac_try;;
20754 esac
20755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20756   (eval "$ac_link") 2>&5
20757   ac_status=$?
20758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20760   { (case "(($ac_try" in
20761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762   *) ac_try_echo=$ac_try;;
20763 esac
20764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765   (eval "$ac_try") 2>&5
20766   ac_status=$?
20767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768   (exit $ac_status); }; }; then
20769   ac_cv_va_copy="CPS"
20770 else
20771   echo "$as_me: program exited with status $ac_status" >&5
20772 echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20774
20775 fi
20776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20777 fi
20778
20779
20780             fi
20781
20782
20783
20784
20785     if test ".$ac_cv_va_copy" = .; then
20786         if test "$cross_compiling" = yes; then
20787   ac_cv_va_copy="CPP"
20788 else
20789   cat >conftest.$ac_ext <<_ACEOF
20790 /* confdefs.h.  */
20791 _ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h.  */
20795
20796 #include <stdlib.h>
20797 #include <stdarg.h>
20798 #include <string.h>
20799 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20800 void test(char *str, ...)
20801 {
20802     va_list ap, ap2;
20803     int i;
20804     va_start(ap, str);
20805     DO_VA_COPY(ap2, ap);
20806     for (i = 1; i <= 9; i++) {
20807         int k = (int)va_arg(ap, int);
20808         if (k != i)
20809             abort();
20810     }
20811     DO_VA_COPY(ap, ap2);
20812     for (i = 1; i <= 9; i++) {
20813         int k = (int)va_arg(ap, int);
20814         if (k != i)
20815             abort();
20816     }
20817     va_end(ap);
20818 }
20819 int main(int argc, char *argv[])
20820 {
20821     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20822     exit(0);
20823 }
20824
20825 _ACEOF
20826 rm -f conftest$ac_exeext
20827 if { (ac_try="$ac_link"
20828 case "(($ac_try" in
20829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830   *) ac_try_echo=$ac_try;;
20831 esac
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833   (eval "$ac_link") 2>&5
20834   ac_status=$?
20835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20837   { (case "(($ac_try" in
20838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839   *) ac_try_echo=$ac_try;;
20840 esac
20841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842   (eval "$ac_try") 2>&5
20843   ac_status=$?
20844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845   (exit $ac_status); }; }; then
20846   ac_cv_va_copy="CPP"
20847 else
20848   echo "$as_me: program exited with status $ac_status" >&5
20849 echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20851
20852 fi
20853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20854 fi
20855
20856
20857             fi
20858
20859     if test ".$ac_cv_va_copy" = .; then
20860         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20861 echo "$as_me: error: no working implementation found" >&2;}
20862    { (exit 1); exit 1; }; }
20863     fi
20864
20865 fi
20866
20867     if test ".$ac_cv_va_copy" = ".C99"; then
20868
20869 cat >>confdefs.h <<\_ACEOF
20870 #define HAVE_VA_COPY 1
20871 _ACEOF
20872
20873   fi
20874
20875 cat >>confdefs.h <<_ACEOF
20876 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20877 _ACEOF
20878
20879
20880
20881     if test ".$ac_cv_va_copy" = ".C99"; then
20882       { echo "$as_me:$LINENO: result: yes" >&5
20883 echo "${ECHO_T}yes" >&6; }
20884   else
20885       { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20886 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20887   fi
20888
20889
20890 # Checks for header files.
20891 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20892 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20893 if test "${ac_cv_header_stdc+set}" = set; then
20894   echo $ECHO_N "(cached) $ECHO_C" >&6
20895 else
20896   cat >conftest.$ac_ext <<_ACEOF
20897 /* confdefs.h.  */
20898 _ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h.  */
20902 #include <stdlib.h>
20903 #include <stdarg.h>
20904 #include <string.h>
20905 #include <float.h>
20906
20907 int
20908 main ()
20909 {
20910
20911   ;
20912   return 0;
20913 }
20914 _ACEOF
20915 rm -f conftest.$ac_objext
20916 if { (ac_try="$ac_compile"
20917 case "(($ac_try" in
20918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919   *) ac_try_echo=$ac_try;;
20920 esac
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922   (eval "$ac_compile") 2>conftest.er1
20923   ac_status=$?
20924   grep -v '^ *+' conftest.er1 >conftest.err
20925   rm -f conftest.er1
20926   cat conftest.err >&5
20927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928   (exit $ac_status); } && {
20929          test -z "$ac_c_werror_flag" ||
20930          test ! -s conftest.err
20931        } && test -s conftest.$ac_objext; then
20932   ac_cv_header_stdc=yes
20933 else
20934   echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20936
20937         ac_cv_header_stdc=no
20938 fi
20939
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20941
20942 if test $ac_cv_header_stdc = yes; then
20943   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20944   cat >conftest.$ac_ext <<_ACEOF
20945 /* confdefs.h.  */
20946 _ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h.  */
20950 #include <string.h>
20951
20952 _ACEOF
20953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20954   $EGREP "memchr" >/dev/null 2>&1; then
20955   :
20956 else
20957   ac_cv_header_stdc=no
20958 fi
20959 rm -f conftest*
20960
20961 fi
20962
20963 if test $ac_cv_header_stdc = yes; then
20964   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20965   cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h.  */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h.  */
20971 #include <stdlib.h>
20972
20973 _ACEOF
20974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20975   $EGREP "free" >/dev/null 2>&1; then
20976   :
20977 else
20978   ac_cv_header_stdc=no
20979 fi
20980 rm -f conftest*
20981
20982 fi
20983
20984 if test $ac_cv_header_stdc = yes; then
20985   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20986   if test "$cross_compiling" = yes; then
20987   :
20988 else
20989   cat >conftest.$ac_ext <<_ACEOF
20990 /* confdefs.h.  */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h.  */
20995 #include <ctype.h>
20996 #include <stdlib.h>
20997 #if ((' ' & 0x0FF) == 0x020)
20998 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20999 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21000 #else
21001 # define ISLOWER(c) \
21002                    (('a' <= (c) && (c) <= 'i') \
21003                      || ('j' <= (c) && (c) <= 'r') \
21004                      || ('s' <= (c) && (c) <= 'z'))
21005 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21006 #endif
21007
21008 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21009 int
21010 main ()
21011 {
21012   int i;
21013   for (i = 0; i < 256; i++)
21014     if (XOR (islower (i), ISLOWER (i))
21015         || toupper (i) != TOUPPER (i))
21016       return 2;
21017   return 0;
21018 }
21019 _ACEOF
21020 rm -f conftest$ac_exeext
21021 if { (ac_try="$ac_link"
21022 case "(($ac_try" in
21023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024   *) ac_try_echo=$ac_try;;
21025 esac
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027   (eval "$ac_link") 2>&5
21028   ac_status=$?
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21031   { (case "(($ac_try" in
21032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033   *) ac_try_echo=$ac_try;;
21034 esac
21035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21036   (eval "$ac_try") 2>&5
21037   ac_status=$?
21038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039   (exit $ac_status); }; }; then
21040   :
21041 else
21042   echo "$as_me: program exited with status $ac_status" >&5
21043 echo "$as_me: failed program was:" >&5
21044 sed 's/^/| /' conftest.$ac_ext >&5
21045
21046 ( exit $ac_status )
21047 ac_cv_header_stdc=no
21048 fi
21049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21050 fi
21051
21052
21053 fi
21054 fi
21055 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21056 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21057 if test $ac_cv_header_stdc = yes; then
21058
21059 cat >>confdefs.h <<\_ACEOF
21060 #define STDC_HEADERS 1
21061 _ACEOF
21062
21063 fi
21064
21065 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21066 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21067 if test "${ac_cv_header_time+set}" = set; then
21068   echo $ECHO_N "(cached) $ECHO_C" >&6
21069 else
21070   cat >conftest.$ac_ext <<_ACEOF
21071 /* confdefs.h.  */
21072 _ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h.  */
21076 #include <sys/types.h>
21077 #include <sys/time.h>
21078 #include <time.h>
21079
21080 int
21081 main ()
21082 {
21083 if ((struct tm *) 0)
21084 return 0;
21085   ;
21086   return 0;
21087 }
21088 _ACEOF
21089 rm -f conftest.$ac_objext
21090 if { (ac_try="$ac_compile"
21091 case "(($ac_try" in
21092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093   *) ac_try_echo=$ac_try;;
21094 esac
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096   (eval "$ac_compile") 2>conftest.er1
21097   ac_status=$?
21098   grep -v '^ *+' conftest.er1 >conftest.err
21099   rm -f conftest.er1
21100   cat conftest.err >&5
21101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102   (exit $ac_status); } && {
21103          test -z "$ac_c_werror_flag" ||
21104          test ! -s conftest.err
21105        } && test -s conftest.$ac_objext; then
21106   ac_cv_header_time=yes
21107 else
21108   echo "$as_me: failed program was:" >&5
21109 sed 's/^/| /' conftest.$ac_ext >&5
21110
21111         ac_cv_header_time=no
21112 fi
21113
21114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21115 fi
21116 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21117 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21118 if test $ac_cv_header_time = yes; then
21119
21120 cat >>confdefs.h <<\_ACEOF
21121 #define TIME_WITH_SYS_TIME 1
21122 _ACEOF
21123
21124 fi
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136 for ac_header in sys/socket.h \
21137                   sys/stat.h \
21138                   windows.h winsock.h winsock2.h \
21139                   sys/time.h \
21140                   errno.h unistd.h \
21141                   execinfo.h\
21142                   signal.h
21143 do
21144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21146   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21149   echo $ECHO_N "(cached) $ECHO_C" >&6
21150 fi
21151 ac_res=`eval echo '${'$as_ac_Header'}'`
21152                { echo "$as_me:$LINENO: result: $ac_res" >&5
21153 echo "${ECHO_T}$ac_res" >&6; }
21154 else
21155   # Is the header compilable?
21156 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21158 cat >conftest.$ac_ext <<_ACEOF
21159 /* confdefs.h.  */
21160 _ACEOF
21161 cat confdefs.h >>conftest.$ac_ext
21162 cat >>conftest.$ac_ext <<_ACEOF
21163 /* end confdefs.h.  */
21164 $ac_includes_default
21165 #include <$ac_header>
21166 _ACEOF
21167 rm -f conftest.$ac_objext
21168 if { (ac_try="$ac_compile"
21169 case "(($ac_try" in
21170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171   *) ac_try_echo=$ac_try;;
21172 esac
21173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21174   (eval "$ac_compile") 2>conftest.er1
21175   ac_status=$?
21176   grep -v '^ *+' conftest.er1 >conftest.err
21177   rm -f conftest.er1
21178   cat conftest.err >&5
21179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180   (exit $ac_status); } && {
21181          test -z "$ac_c_werror_flag" ||
21182          test ! -s conftest.err
21183        } && test -s conftest.$ac_objext; then
21184   ac_header_compiler=yes
21185 else
21186   echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21188
21189         ac_header_compiler=no
21190 fi
21191
21192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21194 echo "${ECHO_T}$ac_header_compiler" >&6; }
21195
21196 # Is the header present?
21197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21199 cat >conftest.$ac_ext <<_ACEOF
21200 /* confdefs.h.  */
21201 _ACEOF
21202 cat confdefs.h >>conftest.$ac_ext
21203 cat >>conftest.$ac_ext <<_ACEOF
21204 /* end confdefs.h.  */
21205 #include <$ac_header>
21206 _ACEOF
21207 if { (ac_try="$ac_cpp conftest.$ac_ext"
21208 case "(($ac_try" in
21209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210   *) ac_try_echo=$ac_try;;
21211 esac
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21214   ac_status=$?
21215   grep -v '^ *+' conftest.er1 >conftest.err
21216   rm -f conftest.er1
21217   cat conftest.err >&5
21218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219   (exit $ac_status); } >/dev/null && {
21220          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21221          test ! -s conftest.err
21222        }; then
21223   ac_header_preproc=yes
21224 else
21225   echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21227
21228   ac_header_preproc=no
21229 fi
21230
21231 rm -f conftest.err conftest.$ac_ext
21232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21233 echo "${ECHO_T}$ac_header_preproc" >&6; }
21234
21235 # So?  What about this header?
21236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21237   yes:no: )
21238     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21242     ac_header_preproc=yes
21243     ;;
21244   no:yes:* )
21245     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21247     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21248 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21249     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21251     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21252 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21255     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21257     ( cat <<\_ASBOX
21258 ## -------------------------------------------------- ##
21259 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21260 ## -------------------------------------------------- ##
21261 _ASBOX
21262      ) | sed "s/^/$as_me: WARNING:     /" >&2
21263     ;;
21264 esac
21265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21268   echo $ECHO_N "(cached) $ECHO_C" >&6
21269 else
21270   eval "$as_ac_Header=\$ac_header_preproc"
21271 fi
21272 ac_res=`eval echo '${'$as_ac_Header'}'`
21273                { echo "$as_me:$LINENO: result: $ac_res" >&5
21274 echo "${ECHO_T}$ac_res" >&6; }
21275
21276 fi
21277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21278   cat >>confdefs.h <<_ACEOF
21279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21280 _ACEOF
21281
21282 fi
21283
21284 done
21285
21286
21287
21288
21289
21290
21291
21292
21293 for ac_func in gettimeofday usleep \
21294                 getdtablesize \
21295                 sysconf\
21296                 readv\
21297                 popen\
21298                 signal
21299 do
21300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21304   echo $ECHO_N "(cached) $ECHO_C" >&6
21305 else
21306   cat >conftest.$ac_ext <<_ACEOF
21307 /* confdefs.h.  */
21308 _ACEOF
21309 cat confdefs.h >>conftest.$ac_ext
21310 cat >>conftest.$ac_ext <<_ACEOF
21311 /* end confdefs.h.  */
21312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21314 #define $ac_func innocuous_$ac_func
21315
21316 /* System header to define __stub macros and hopefully few prototypes,
21317     which can conflict with char $ac_func (); below.
21318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21319     <limits.h> exists even on freestanding compilers.  */
21320
21321 #ifdef __STDC__
21322 # include <limits.h>
21323 #else
21324 # include <assert.h>
21325 #endif
21326
21327 #undef $ac_func
21328
21329 /* Override any GCC internal prototype to avoid an error.
21330    Use char because int might match the return type of a GCC
21331    builtin and then its argument prototype would still apply.  */
21332 #ifdef __cplusplus
21333 extern "C"
21334 #endif
21335 char $ac_func ();
21336 /* The GNU C library defines this for functions which it implements
21337     to always fail with ENOSYS.  Some functions are actually named
21338     something starting with __ and the normal name is an alias.  */
21339 #if defined __stub_$ac_func || defined __stub___$ac_func
21340 choke me
21341 #endif
21342
21343 int
21344 main ()
21345 {
21346 return $ac_func ();
21347   ;
21348   return 0;
21349 }
21350 _ACEOF
21351 rm -f conftest.$ac_objext conftest$ac_exeext
21352 if { (ac_try="$ac_link"
21353 case "(($ac_try" in
21354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355   *) ac_try_echo=$ac_try;;
21356 esac
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358   (eval "$ac_link") 2>conftest.er1
21359   ac_status=$?
21360   grep -v '^ *+' conftest.er1 >conftest.err
21361   rm -f conftest.er1
21362   cat conftest.err >&5
21363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364   (exit $ac_status); } && {
21365          test -z "$ac_c_werror_flag" ||
21366          test ! -s conftest.err
21367        } && test -s conftest$ac_exeext &&
21368        $as_test_x conftest$ac_exeext; then
21369   eval "$as_ac_var=yes"
21370 else
21371   echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21373
21374         eval "$as_ac_var=no"
21375 fi
21376
21377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21378       conftest$ac_exeext conftest.$ac_ext
21379 fi
21380 ac_res=`eval echo '${'$as_ac_var'}'`
21381                { echo "$as_me:$LINENO: result: $ac_res" >&5
21382 echo "${ECHO_T}$ac_res" >&6; }
21383 if test `eval echo '${'$as_ac_var'}'` = yes; then
21384   cat >>confdefs.h <<_ACEOF
21385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21386 _ACEOF
21387
21388 fi
21389 done
21390
21391
21392 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21393
21394
21395 for ac_func in snprintf vsnprintf
21396 do
21397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21398 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21401   echo $ECHO_N "(cached) $ECHO_C" >&6
21402 else
21403   cat >conftest.$ac_ext <<_ACEOF
21404 /* confdefs.h.  */
21405 _ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h.  */
21409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21411 #define $ac_func innocuous_$ac_func
21412
21413 /* System header to define __stub macros and hopefully few prototypes,
21414     which can conflict with char $ac_func (); below.
21415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21416     <limits.h> exists even on freestanding compilers.  */
21417
21418 #ifdef __STDC__
21419 # include <limits.h>
21420 #else
21421 # include <assert.h>
21422 #endif
21423
21424 #undef $ac_func
21425
21426 /* Override any GCC internal prototype to avoid an error.
21427    Use char because int might match the return type of a GCC
21428    builtin and then its argument prototype would still apply.  */
21429 #ifdef __cplusplus
21430 extern "C"
21431 #endif
21432 char $ac_func ();
21433 /* The GNU C library defines this for functions which it implements
21434     to always fail with ENOSYS.  Some functions are actually named
21435     something starting with __ and the normal name is an alias.  */
21436 #if defined __stub_$ac_func || defined __stub___$ac_func
21437 choke me
21438 #endif
21439
21440 int
21441 main ()
21442 {
21443 return $ac_func ();
21444   ;
21445   return 0;
21446 }
21447 _ACEOF
21448 rm -f conftest.$ac_objext conftest$ac_exeext
21449 if { (ac_try="$ac_link"
21450 case "(($ac_try" in
21451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452   *) ac_try_echo=$ac_try;;
21453 esac
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455   (eval "$ac_link") 2>conftest.er1
21456   ac_status=$?
21457   grep -v '^ *+' conftest.er1 >conftest.err
21458   rm -f conftest.er1
21459   cat conftest.err >&5
21460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461   (exit $ac_status); } && {
21462          test -z "$ac_c_werror_flag" ||
21463          test ! -s conftest.err
21464        } && test -s conftest$ac_exeext &&
21465        $as_test_x conftest$ac_exeext; then
21466   eval "$as_ac_var=yes"
21467 else
21468   echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21470
21471         eval "$as_ac_var=no"
21472 fi
21473
21474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21475       conftest$ac_exeext conftest.$ac_ext
21476 fi
21477 ac_res=`eval echo '${'$as_ac_var'}'`
21478                { echo "$as_me:$LINENO: result: $ac_res" >&5
21479 echo "${ECHO_T}$ac_res" >&6; }
21480 if test `eval echo '${'$as_ac_var'}'` = yes; then
21481   cat >>confdefs.h <<_ACEOF
21482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21483 _ACEOF
21484
21485 fi
21486 done
21487
21488 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21489 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21490 if test "${ac_cv_have_working_snprintf+set}" = set; then
21491   echo $ECHO_N "(cached) $ECHO_C" >&6
21492 else
21493   if test "$cross_compiling" = yes; then
21494   ac_cv_have_working_snprintf=cross
21495 else
21496   cat >conftest.$ac_ext <<_ACEOF
21497 /* confdefs.h.  */
21498 _ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h.  */
21502 #include <stdio.h>
21503
21504 int main(void)
21505 {
21506     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21507     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21508     int i;
21509     i = snprintf (bufs, 2, "%s", "111");
21510     if (strcmp (bufs, "1")) exit (1);
21511     if (i != 3) exit (1);
21512     i = snprintf (bufd, 2, "%d", 111);
21513     if (strcmp (bufd, "1")) exit (1);
21514     if (i != 3) exit (1);
21515     exit(0);
21516 }
21517 _ACEOF
21518 rm -f conftest$ac_exeext
21519 if { (ac_try="$ac_link"
21520 case "(($ac_try" in
21521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522   *) ac_try_echo=$ac_try;;
21523 esac
21524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21525   (eval "$ac_link") 2>&5
21526   ac_status=$?
21527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21529   { (case "(($ac_try" in
21530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531   *) ac_try_echo=$ac_try;;
21532 esac
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534   (eval "$ac_try") 2>&5
21535   ac_status=$?
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); }; }; then
21538   ac_cv_have_working_snprintf=yes
21539 else
21540   echo "$as_me: program exited with status $ac_status" >&5
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21543
21544 ( exit $ac_status )
21545 ac_cv_have_working_snprintf=no
21546 fi
21547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21548 fi
21549
21550
21551 fi
21552
21553 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21554 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21555 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21556 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21557 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21558   echo $ECHO_N "(cached) $ECHO_C" >&6
21559 else
21560   if test "$cross_compiling" = yes; then
21561   ac_cv_have_working_vsnprintf=cross
21562 else
21563   cat >conftest.$ac_ext <<_ACEOF
21564 /* confdefs.h.  */
21565 _ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h.  */
21569 #include <stdio.h>
21570 #include <stdarg.h>
21571
21572 int my_vsnprintf (char *buf, const char *tmpl, ...)
21573 {
21574     int i;
21575     va_list args;
21576     va_start (args, tmpl);
21577     i = vsnprintf (buf, 2, tmpl, args);
21578     va_end (args);
21579     return i;
21580 }
21581
21582 int main(void)
21583 {
21584     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21585     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21586     int i;
21587     i = my_vsnprintf (bufs, "%s", "111");
21588     if (strcmp (bufs, "1")) exit (1);
21589     if (i != 3) exit (1);
21590     i = my_vsnprintf (bufd, "%d", 111);
21591     if (strcmp (bufd, "1")) exit (1);
21592     if (i != 3) exit (1);
21593     exit(0);
21594 }
21595 _ACEOF
21596 rm -f conftest$ac_exeext
21597 if { (ac_try="$ac_link"
21598 case "(($ac_try" in
21599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600   *) ac_try_echo=$ac_try;;
21601 esac
21602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603   (eval "$ac_link") 2>&5
21604   ac_status=$?
21605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21607   { (case "(($ac_try" in
21608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609   *) ac_try_echo=$ac_try;;
21610 esac
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612   (eval "$ac_try") 2>&5
21613   ac_status=$?
21614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615   (exit $ac_status); }; }; then
21616   ac_cv_have_working_vsnprintf=yes
21617 else
21618   echo "$as_me: program exited with status $ac_status" >&5
21619 echo "$as_me: failed program was:" >&5
21620 sed 's/^/| /' conftest.$ac_ext >&5
21621
21622 ( exit $ac_status )
21623 ac_cv_have_working_vsnprintf=no
21624 fi
21625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21626 fi
21627
21628
21629 fi
21630
21631 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21632 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21633 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21634   case " $LIBOBJS " in
21635   *" snprintf.$ac_objext "* ) ;;
21636   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21637  ;;
21638 esac
21639
21640   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21641 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21642
21643 cat >>confdefs.h <<\_ACEOF
21644 #define PREFER_PORTABLE_SNPRINTF 1
21645 _ACEOF
21646
21647 fi
21648 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21649 { echo "$as_me:$LINENO: checking for asprintf" >&5
21650 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21651 if test "${ac_cv_func_asprintf+set}" = set; then
21652   echo $ECHO_N "(cached) $ECHO_C" >&6
21653 else
21654   cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h.  */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h.  */
21660 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21662 #define asprintf innocuous_asprintf
21663
21664 /* System header to define __stub macros and hopefully few prototypes,
21665     which can conflict with char asprintf (); below.
21666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21667     <limits.h> exists even on freestanding compilers.  */
21668
21669 #ifdef __STDC__
21670 # include <limits.h>
21671 #else
21672 # include <assert.h>
21673 #endif
21674
21675 #undef asprintf
21676
21677 /* Override any GCC internal prototype to avoid an error.
21678    Use char because int might match the return type of a GCC
21679    builtin and then its argument prototype would still apply.  */
21680 #ifdef __cplusplus
21681 extern "C"
21682 #endif
21683 char asprintf ();
21684 /* The GNU C library defines this for functions which it implements
21685     to always fail with ENOSYS.  Some functions are actually named
21686     something starting with __ and the normal name is an alias.  */
21687 #if defined __stub_asprintf || defined __stub___asprintf
21688 choke me
21689 #endif
21690
21691 int
21692 main ()
21693 {
21694 return asprintf ();
21695   ;
21696   return 0;
21697 }
21698 _ACEOF
21699 rm -f conftest.$ac_objext conftest$ac_exeext
21700 if { (ac_try="$ac_link"
21701 case "(($ac_try" in
21702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703   *) ac_try_echo=$ac_try;;
21704 esac
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706   (eval "$ac_link") 2>conftest.er1
21707   ac_status=$?
21708   grep -v '^ *+' conftest.er1 >conftest.err
21709   rm -f conftest.er1
21710   cat conftest.err >&5
21711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712   (exit $ac_status); } && {
21713          test -z "$ac_c_werror_flag" ||
21714          test ! -s conftest.err
21715        } && test -s conftest$ac_exeext &&
21716        $as_test_x conftest$ac_exeext; then
21717   ac_cv_func_asprintf=yes
21718 else
21719   echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21721
21722         ac_cv_func_asprintf=no
21723 fi
21724
21725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21726       conftest$ac_exeext conftest.$ac_ext
21727 fi
21728 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21729 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21730 if test $ac_cv_func_asprintf = yes; then
21731   :
21732 else
21733
21734 cat >>confdefs.h <<\_ACEOF
21735 #define NEED_ASPRINTF 1
21736 _ACEOF
21737
21738 fi
21739
21740 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21741 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21742 if test "${ac_cv_func_vasprintf+set}" = set; then
21743   echo $ECHO_N "(cached) $ECHO_C" >&6
21744 else
21745   cat >conftest.$ac_ext <<_ACEOF
21746 /* confdefs.h.  */
21747 _ACEOF
21748 cat confdefs.h >>conftest.$ac_ext
21749 cat >>conftest.$ac_ext <<_ACEOF
21750 /* end confdefs.h.  */
21751 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21753 #define vasprintf innocuous_vasprintf
21754
21755 /* System header to define __stub macros and hopefully few prototypes,
21756     which can conflict with char vasprintf (); below.
21757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21758     <limits.h> exists even on freestanding compilers.  */
21759
21760 #ifdef __STDC__
21761 # include <limits.h>
21762 #else
21763 # include <assert.h>
21764 #endif
21765
21766 #undef vasprintf
21767
21768 /* Override any GCC internal prototype to avoid an error.
21769    Use char because int might match the return type of a GCC
21770    builtin and then its argument prototype would still apply.  */
21771 #ifdef __cplusplus
21772 extern "C"
21773 #endif
21774 char vasprintf ();
21775 /* The GNU C library defines this for functions which it implements
21776     to always fail with ENOSYS.  Some functions are actually named
21777     something starting with __ and the normal name is an alias.  */
21778 #if defined __stub_vasprintf || defined __stub___vasprintf
21779 choke me
21780 #endif
21781
21782 int
21783 main ()
21784 {
21785 return vasprintf ();
21786   ;
21787   return 0;
21788 }
21789 _ACEOF
21790 rm -f conftest.$ac_objext conftest$ac_exeext
21791 if { (ac_try="$ac_link"
21792 case "(($ac_try" in
21793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794   *) ac_try_echo=$ac_try;;
21795 esac
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797   (eval "$ac_link") 2>conftest.er1
21798   ac_status=$?
21799   grep -v '^ *+' conftest.er1 >conftest.err
21800   rm -f conftest.er1
21801   cat conftest.err >&5
21802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803   (exit $ac_status); } && {
21804          test -z "$ac_c_werror_flag" ||
21805          test ! -s conftest.err
21806        } && test -s conftest$ac_exeext &&
21807        $as_test_x conftest$ac_exeext; then
21808   ac_cv_func_vasprintf=yes
21809 else
21810   echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21812
21813         ac_cv_func_vasprintf=no
21814 fi
21815
21816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21817       conftest$ac_exeext conftest.$ac_ext
21818 fi
21819 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21820 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21821 if test $ac_cv_func_vasprintf = yes; then
21822   :
21823 else
21824
21825 cat >>confdefs.h <<\_ACEOF
21826 #define NEED_VASPRINTF 1
21827 _ACEOF
21828
21829 fi
21830
21831 # we don't use those:
21832 # A C_CHECK_FUNC( asnprintf, :,   A C_DEFINE(NEED_ASNPRINTF,  1, enable the asnprintf  replacement))
21833 # A C_CHECK_FUNC(vasnprintf, :,   A C_DEFINE(NEED_VASNPRINTF, 1, enable the vansprintf replacement))
21834
21835
21836 # Checks for typedefs, structures, and compiler characteristics.
21837 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21838 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21839 if test "${ac_cv_c_const+set}" = set; then
21840   echo $ECHO_N "(cached) $ECHO_C" >&6
21841 else
21842   cat >conftest.$ac_ext <<_ACEOF
21843 /* confdefs.h.  */
21844 _ACEOF
21845 cat confdefs.h >>conftest.$ac_ext
21846 cat >>conftest.$ac_ext <<_ACEOF
21847 /* end confdefs.h.  */
21848
21849 int
21850 main ()
21851 {
21852 /* FIXME: Include the comments suggested by Paul. */
21853 #ifndef __cplusplus
21854   /* Ultrix mips cc rejects this.  */
21855   typedef int charset[2];
21856   const charset cs;
21857   /* SunOS 4.1.1 cc rejects this.  */
21858   char const *const *pcpcc;
21859   char **ppc;
21860   /* NEC SVR4.0.2 mips cc rejects this.  */
21861   struct point {int x, y;};
21862   static struct point const zero = {0,0};
21863   /* AIX XL C 1.02.0.0 rejects this.
21864      It does not let you subtract one const X* pointer from another in
21865      an arm of an if-expression whose if-part is not a constant
21866      expression */
21867   const char *g = "string";
21868   pcpcc = &g + (g ? g-g : 0);
21869   /* HPUX 7.0 cc rejects these. */
21870   ++pcpcc;
21871   ppc = (char**) pcpcc;
21872   pcpcc = (char const *const *) ppc;
21873   { /* SCO 3.2v4 cc rejects this.  */
21874     char *t;
21875     char const *s = 0 ? (char *) 0 : (char const *) 0;
21876
21877     *t++ = 0;
21878     if (s) return 0;
21879   }
21880   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21881     int x[] = {25, 17};
21882     const int *foo = &x[0];
21883     ++foo;
21884   }
21885   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21886     typedef const int *iptr;
21887     iptr p = 0;
21888     ++p;
21889   }
21890   { /* AIX XL C 1.02.0.0 rejects this saying
21891        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21892     struct s { int j; const int *ap[3]; };
21893     struct s *b; b->j = 5;
21894   }
21895   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21896     const int foo = 10;
21897     if (!foo) return 0;
21898   }
21899   return !cs[0] && !zero.x;
21900 #endif
21901
21902   ;
21903   return 0;
21904 }
21905 _ACEOF
21906 rm -f conftest.$ac_objext
21907 if { (ac_try="$ac_compile"
21908 case "(($ac_try" in
21909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910   *) ac_try_echo=$ac_try;;
21911 esac
21912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913   (eval "$ac_compile") 2>conftest.er1
21914   ac_status=$?
21915   grep -v '^ *+' conftest.er1 >conftest.err
21916   rm -f conftest.er1
21917   cat conftest.err >&5
21918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919   (exit $ac_status); } && {
21920          test -z "$ac_c_werror_flag" ||
21921          test ! -s conftest.err
21922        } && test -s conftest.$ac_objext; then
21923   ac_cv_c_const=yes
21924 else
21925   echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21927
21928         ac_cv_c_const=no
21929 fi
21930
21931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21932 fi
21933 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21934 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21935 if test $ac_cv_c_const = no; then
21936
21937 cat >>confdefs.h <<\_ACEOF
21938 #define const
21939 _ACEOF
21940
21941 fi
21942
21943 { echo "$as_me:$LINENO: checking for inline" >&5
21944 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21945 if test "${ac_cv_c_inline+set}" = set; then
21946   echo $ECHO_N "(cached) $ECHO_C" >&6
21947 else
21948   ac_cv_c_inline=no
21949 for ac_kw in inline __inline__ __inline; do
21950   cat >conftest.$ac_ext <<_ACEOF
21951 /* confdefs.h.  */
21952 _ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h.  */
21956 #ifndef __cplusplus
21957 typedef int foo_t;
21958 static $ac_kw foo_t static_foo () {return 0; }
21959 $ac_kw foo_t foo () {return 0; }
21960 #endif
21961
21962 _ACEOF
21963 rm -f conftest.$ac_objext
21964 if { (ac_try="$ac_compile"
21965 case "(($ac_try" in
21966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967   *) ac_try_echo=$ac_try;;
21968 esac
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970   (eval "$ac_compile") 2>conftest.er1
21971   ac_status=$?
21972   grep -v '^ *+' conftest.er1 >conftest.err
21973   rm -f conftest.er1
21974   cat conftest.err >&5
21975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976   (exit $ac_status); } && {
21977          test -z "$ac_c_werror_flag" ||
21978          test ! -s conftest.err
21979        } && test -s conftest.$ac_objext; then
21980   ac_cv_c_inline=$ac_kw
21981 else
21982   echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21984
21985
21986 fi
21987
21988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21989   test "$ac_cv_c_inline" != no && break
21990 done
21991
21992 fi
21993 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21994 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21995
21996
21997 case $ac_cv_c_inline in
21998   inline | yes) ;;
21999   *)
22000     case $ac_cv_c_inline in
22001       no) ac_val=;;
22002       *) ac_val=$ac_cv_c_inline;;
22003     esac
22004     cat >>confdefs.h <<_ACEOF
22005 #ifndef __cplusplus
22006 #define inline $ac_val
22007 #endif
22008 _ACEOF
22009     ;;
22010 esac
22011
22012 { echo "$as_me:$LINENO: checking for size_t" >&5
22013 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22014 if test "${ac_cv_type_size_t+set}" = set; then
22015   echo $ECHO_N "(cached) $ECHO_C" >&6
22016 else
22017   cat >conftest.$ac_ext <<_ACEOF
22018 /* confdefs.h.  */
22019 _ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h.  */
22023 $ac_includes_default
22024 typedef size_t ac__type_new_;
22025 int
22026 main ()
22027 {
22028 if ((ac__type_new_ *) 0)
22029   return 0;
22030 if (sizeof (ac__type_new_))
22031   return 0;
22032   ;
22033   return 0;
22034 }
22035 _ACEOF
22036 rm -f conftest.$ac_objext
22037 if { (ac_try="$ac_compile"
22038 case "(($ac_try" in
22039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040   *) ac_try_echo=$ac_try;;
22041 esac
22042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22043   (eval "$ac_compile") 2>conftest.er1
22044   ac_status=$?
22045   grep -v '^ *+' conftest.er1 >conftest.err
22046   rm -f conftest.er1
22047   cat conftest.err >&5
22048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049   (exit $ac_status); } && {
22050          test -z "$ac_c_werror_flag" ||
22051          test ! -s conftest.err
22052        } && test -s conftest.$ac_objext; then
22053   ac_cv_type_size_t=yes
22054 else
22055   echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22057
22058         ac_cv_type_size_t=no
22059 fi
22060
22061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22062 fi
22063 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22064 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22065 if test $ac_cv_type_size_t = yes; then
22066   :
22067 else
22068
22069 cat >>confdefs.h <<_ACEOF
22070 #define size_t unsigned int
22071 _ACEOF
22072
22073 fi
22074
22075
22076 ###################################
22077 ## SimGrid and GRAS specific checks
22078 ##
22079
22080
22081   { echo "$as_me:$LINENO: result: " >&5
22082 echo "${ECHO_T}" >&6; }
22083   { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22084 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22085
22086 # Check architecture signature begin
22087
22088 # Check for the architecture
22089 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22090 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22091 if test "${ac_cv_c_bigendian+set}" = set; then
22092   echo $ECHO_N "(cached) $ECHO_C" >&6
22093 else
22094   # See if sys/param.h defines the BYTE_ORDER macro.
22095 cat >conftest.$ac_ext <<_ACEOF
22096 /* confdefs.h.  */
22097 _ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h.  */
22101 #include <sys/types.h>
22102 #include <sys/param.h>
22103
22104 int
22105 main ()
22106 {
22107 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22108         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22109  bogus endian macros
22110 #endif
22111
22112   ;
22113   return 0;
22114 }
22115 _ACEOF
22116 rm -f conftest.$ac_objext
22117 if { (ac_try="$ac_compile"
22118 case "(($ac_try" in
22119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120   *) ac_try_echo=$ac_try;;
22121 esac
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123   (eval "$ac_compile") 2>conftest.er1
22124   ac_status=$?
22125   grep -v '^ *+' conftest.er1 >conftest.err
22126   rm -f conftest.er1
22127   cat conftest.err >&5
22128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129   (exit $ac_status); } && {
22130          test -z "$ac_c_werror_flag" ||
22131          test ! -s conftest.err
22132        } && test -s conftest.$ac_objext; then
22133   # It does; now see whether it defined to BIG_ENDIAN or not.
22134 cat >conftest.$ac_ext <<_ACEOF
22135 /* confdefs.h.  */
22136 _ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h.  */
22140 #include <sys/types.h>
22141 #include <sys/param.h>
22142
22143 int
22144 main ()
22145 {
22146 #if BYTE_ORDER != BIG_ENDIAN
22147  not big endian
22148 #endif
22149
22150   ;
22151   return 0;
22152 }
22153 _ACEOF
22154 rm -f conftest.$ac_objext
22155 if { (ac_try="$ac_compile"
22156 case "(($ac_try" in
22157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22158   *) ac_try_echo=$ac_try;;
22159 esac
22160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22161   (eval "$ac_compile") 2>conftest.er1
22162   ac_status=$?
22163   grep -v '^ *+' conftest.er1 >conftest.err
22164   rm -f conftest.er1
22165   cat conftest.err >&5
22166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167   (exit $ac_status); } && {
22168          test -z "$ac_c_werror_flag" ||
22169          test ! -s conftest.err
22170        } && test -s conftest.$ac_objext; then
22171   ac_cv_c_bigendian=yes
22172 else
22173   echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22175
22176         ac_cv_c_bigendian=no
22177 fi
22178
22179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180 else
22181   echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22183
22184         # It does not; compile a test program.
22185 if test "$cross_compiling" = yes; then
22186   # try to guess the endianness by grepping values into an object file
22187   ac_cv_c_bigendian=unknown
22188   cat >conftest.$ac_ext <<_ACEOF
22189 /* confdefs.h.  */
22190 _ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h.  */
22194 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22195 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22196 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22197 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22198 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22199 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22200 int
22201 main ()
22202 {
22203  _ascii (); _ebcdic ();
22204   ;
22205   return 0;
22206 }
22207 _ACEOF
22208 rm -f conftest.$ac_objext
22209 if { (ac_try="$ac_compile"
22210 case "(($ac_try" in
22211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22212   *) ac_try_echo=$ac_try;;
22213 esac
22214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22215   (eval "$ac_compile") 2>conftest.er1
22216   ac_status=$?
22217   grep -v '^ *+' conftest.er1 >conftest.err
22218   rm -f conftest.er1
22219   cat conftest.err >&5
22220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); } && {
22222          test -z "$ac_c_werror_flag" ||
22223          test ! -s conftest.err
22224        } && test -s conftest.$ac_objext; then
22225   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22226   ac_cv_c_bigendian=yes
22227 fi
22228 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22229   if test "$ac_cv_c_bigendian" = unknown; then
22230     ac_cv_c_bigendian=no
22231   else
22232     # finding both strings is unlikely to happen, but who knows?
22233     ac_cv_c_bigendian=unknown
22234   fi
22235 fi
22236 else
22237   echo "$as_me: failed program was:" >&5
22238 sed 's/^/| /' conftest.$ac_ext >&5
22239
22240
22241 fi
22242
22243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22244 else
22245   cat >conftest.$ac_ext <<_ACEOF
22246 /* confdefs.h.  */
22247 _ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h.  */
22251 $ac_includes_default
22252 int
22253 main ()
22254 {
22255
22256   /* Are we little or big endian?  From Harbison&Steele.  */
22257   union
22258   {
22259     long int l;
22260     char c[sizeof (long int)];
22261   } u;
22262   u.l = 1;
22263   return u.c[sizeof (long int) - 1] == 1;
22264
22265   ;
22266   return 0;
22267 }
22268 _ACEOF
22269 rm -f conftest$ac_exeext
22270 if { (ac_try="$ac_link"
22271 case "(($ac_try" in
22272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273   *) ac_try_echo=$ac_try;;
22274 esac
22275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22276   (eval "$ac_link") 2>&5
22277   ac_status=$?
22278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22280   { (case "(($ac_try" in
22281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282   *) ac_try_echo=$ac_try;;
22283 esac
22284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22285   (eval "$ac_try") 2>&5
22286   ac_status=$?
22287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288   (exit $ac_status); }; }; then
22289   ac_cv_c_bigendian=no
22290 else
22291   echo "$as_me: program exited with status $ac_status" >&5
22292 echo "$as_me: failed program was:" >&5
22293 sed 's/^/| /' conftest.$ac_ext >&5
22294
22295 ( exit $ac_status )
22296 ac_cv_c_bigendian=yes
22297 fi
22298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22299 fi
22300
22301
22302 fi
22303
22304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22305 fi
22306 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22307 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22308 case $ac_cv_c_bigendian in
22309   yes)
22310     endian=1 ;;
22311   no)
22312     endian=0 ;;
22313   *)
22314     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22315 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22316    { (exit 1); exit 1; }; } ;;
22317 esac
22318
22319
22320 cat >>confdefs.h <<_ACEOF
22321 #define GRAS_BIGENDIAN $endian
22322 _ACEOF
22323
22324
22325 { echo "$as_me:$LINENO: checking size of char" >&5
22326 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22327     if test "${ac_cv_sizeof_char+set}" = set; then
22328   echo $ECHO_N "(cached) $ECHO_C" >&6
22329 else
22330   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22331    cat >conftest.$ac_ext <<_ACEOF
22332 /* confdefs.h.  */
22333 _ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h.  */
22337 #include "confdefs.h"
22338    #include <sys/types.h>
22339
22340
22341 int
22342 main ()
22343 {
22344 switch (0) case 0: case (sizeof (char) == $ac_size):;
22345   ;
22346   return 0;
22347 }
22348 _ACEOF
22349 rm -f conftest.$ac_objext
22350 if { (ac_try="$ac_compile"
22351 case "(($ac_try" in
22352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353   *) ac_try_echo=$ac_try;;
22354 esac
22355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356   (eval "$ac_compile") 2>conftest.er1
22357   ac_status=$?
22358   grep -v '^ *+' conftest.er1 >conftest.err
22359   rm -f conftest.er1
22360   cat conftest.err >&5
22361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362   (exit $ac_status); } && {
22363          test -z "$ac_c_werror_flag" ||
22364          test ! -s conftest.err
22365        } && test -s conftest.$ac_objext; then
22366   ac_cv_sizeof_char=$ac_size
22367 else
22368   echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22370
22371
22372 fi
22373
22374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22375    if test x$ac_cv_sizeof_char != x ; then break; fi
22376   done
22377
22378 fi
22379
22380
22381 unspecif=$ac_cv_sizeof_char
22382 if test x$unspecif = x ; then
22383   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22384 echo "$as_me: error: cannot determine a size for char" >&2;}
22385    { (exit 1); exit 1; }; }
22386 fi
22387
22388     if test "${ac_cv_sizeof_signed_char+set}" = set; then
22389   echo $ECHO_N "(cached) $ECHO_C" >&6
22390 else
22391   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22392    cat >conftest.$ac_ext <<_ACEOF
22393 /* confdefs.h.  */
22394 _ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h.  */
22398 #include "confdefs.h"
22399    #include <sys/types.h>
22400
22401
22402 int
22403 main ()
22404 {
22405 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22406   ;
22407   return 0;
22408 }
22409 _ACEOF
22410 rm -f conftest.$ac_objext
22411 if { (ac_try="$ac_compile"
22412 case "(($ac_try" in
22413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22414   *) ac_try_echo=$ac_try;;
22415 esac
22416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22417   (eval "$ac_compile") 2>conftest.er1
22418   ac_status=$?
22419   grep -v '^ *+' conftest.er1 >conftest.err
22420   rm -f conftest.er1
22421   cat conftest.err >&5
22422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423   (exit $ac_status); } && {
22424          test -z "$ac_c_werror_flag" ||
22425          test ! -s conftest.err
22426        } && test -s conftest.$ac_objext; then
22427   ac_cv_sizeof_signed_char=$ac_size
22428 else
22429   echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22431
22432
22433 fi
22434
22435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22436    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22437   done
22438
22439 fi
22440
22441
22442 signed=$ac_cv_sizeof_signed_char
22443 if test x$signed = x ; then
22444   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22445 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22446    { (exit 1); exit 1; }; }
22447 fi
22448 if test x$unspecif != x$signed ; then
22449   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22450 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22451    { (exit 1); exit 1; }; }
22452 fi
22453
22454     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22455   echo $ECHO_N "(cached) $ECHO_C" >&6
22456 else
22457   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22458    cat >conftest.$ac_ext <<_ACEOF
22459 /* confdefs.h.  */
22460 _ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h.  */
22464 #include "confdefs.h"
22465    #include <sys/types.h>
22466
22467
22468 int
22469 main ()
22470 {
22471 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22472   ;
22473   return 0;
22474 }
22475 _ACEOF
22476 rm -f conftest.$ac_objext
22477 if { (ac_try="$ac_compile"
22478 case "(($ac_try" in
22479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480   *) ac_try_echo=$ac_try;;
22481 esac
22482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22483   (eval "$ac_compile") 2>conftest.er1
22484   ac_status=$?
22485   grep -v '^ *+' conftest.er1 >conftest.err
22486   rm -f conftest.er1
22487   cat conftest.err >&5
22488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489   (exit $ac_status); } && {
22490          test -z "$ac_c_werror_flag" ||
22491          test ! -s conftest.err
22492        } && test -s conftest.$ac_objext; then
22493   ac_cv_sizeof_unsigned_char=$ac_size
22494 else
22495   echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22497
22498
22499 fi
22500
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22503   done
22504
22505 fi
22506
22507
22508 unsigned=$ac_cv_sizeof_unsigned_char
22509 if test x$unsigned = x ; then
22510   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22511 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22512    { (exit 1); exit 1; }; }
22513 fi
22514 if test x$unsigned != x$signed ; then
22515   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22516 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22517    { (exit 1); exit 1; }; }
22518 fi
22519
22520 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22521 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22522                   { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22523 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22524
22525  if test "${ac_cv_struct_boundary_char+set}" = set; then
22526   echo $ECHO_N "(cached) $ECHO_C" >&6
22527 else
22528   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22529    cat >conftest.$ac_ext <<_ACEOF
22530 /* confdefs.h.  */
22531 _ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h.  */
22535 #include "confdefs.h"
22536      #include <sys/types.h>
22537      struct s { char c; char i; };
22538
22539 int
22540 main ()
22541 {
22542 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22543   ;
22544   return 0;
22545 }
22546 _ACEOF
22547 rm -f conftest.$ac_objext
22548 if { (ac_try="$ac_compile"
22549 case "(($ac_try" in
22550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551   *) ac_try_echo=$ac_try;;
22552 esac
22553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22554   (eval "$ac_compile") 2>conftest.er1
22555   ac_status=$?
22556   grep -v '^ *+' conftest.er1 >conftest.err
22557   rm -f conftest.er1
22558   cat conftest.err >&5
22559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560   (exit $ac_status); } && {
22561          test -z "$ac_c_werror_flag" ||
22562          test ! -s conftest.err
22563        } && test -s conftest.$ac_objext; then
22564   ac_cv_struct_boundary_char=$ac_size
22565 else
22566   echo "$as_me: failed program was:" >&5
22567 sed 's/^/| /' conftest.$ac_ext >&5
22568
22569
22570 fi
22571
22572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22573    if test x$ac_cv_struct_boundary_char != x ; then break; fi
22574   done
22575
22576 fi
22577
22578  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22579 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22580  if test x$ac_cv_struct_boundary_char = x ; then
22581    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22582 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22583    { (exit 1); exit 1; }; }
22584  fi
22585
22586 { echo "$as_me:$LINENO: checking size of short int" >&5
22587 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22588     if test "${ac_cv_sizeof_short_int+set}" = set; then
22589   echo $ECHO_N "(cached) $ECHO_C" >&6
22590 else
22591   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22592    cat >conftest.$ac_ext <<_ACEOF
22593 /* confdefs.h.  */
22594 _ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h.  */
22598 #include "confdefs.h"
22599    #include <sys/types.h>
22600
22601
22602 int
22603 main ()
22604 {
22605 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22606   ;
22607   return 0;
22608 }
22609 _ACEOF
22610 rm -f conftest.$ac_objext
22611 if { (ac_try="$ac_compile"
22612 case "(($ac_try" in
22613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614   *) ac_try_echo=$ac_try;;
22615 esac
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617   (eval "$ac_compile") 2>conftest.er1
22618   ac_status=$?
22619   grep -v '^ *+' conftest.er1 >conftest.err
22620   rm -f conftest.er1
22621   cat conftest.err >&5
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); } && {
22624          test -z "$ac_c_werror_flag" ||
22625          test ! -s conftest.err
22626        } && test -s conftest.$ac_objext; then
22627   ac_cv_sizeof_short_int=$ac_size
22628 else
22629   echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632
22633 fi
22634
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636    if test x$ac_cv_sizeof_short_int != x ; then break; fi
22637   done
22638
22639 fi
22640
22641
22642 unspecif=$ac_cv_sizeof_short_int
22643 if test x$unspecif = x ; then
22644   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22645 echo "$as_me: error: cannot determine a size for short int" >&2;}
22646    { (exit 1); exit 1; }; }
22647 fi
22648
22649     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22650   echo $ECHO_N "(cached) $ECHO_C" >&6
22651 else
22652   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22653    cat >conftest.$ac_ext <<_ACEOF
22654 /* confdefs.h.  */
22655 _ACEOF
22656 cat confdefs.h >>conftest.$ac_ext
22657 cat >>conftest.$ac_ext <<_ACEOF
22658 /* end confdefs.h.  */
22659 #include "confdefs.h"
22660    #include <sys/types.h>
22661
22662
22663 int
22664 main ()
22665 {
22666 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22667   ;
22668   return 0;
22669 }
22670 _ACEOF
22671 rm -f conftest.$ac_objext
22672 if { (ac_try="$ac_compile"
22673 case "(($ac_try" in
22674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675   *) ac_try_echo=$ac_try;;
22676 esac
22677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22678   (eval "$ac_compile") 2>conftest.er1
22679   ac_status=$?
22680   grep -v '^ *+' conftest.er1 >conftest.err
22681   rm -f conftest.er1
22682   cat conftest.err >&5
22683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684   (exit $ac_status); } && {
22685          test -z "$ac_c_werror_flag" ||
22686          test ! -s conftest.err
22687        } && test -s conftest.$ac_objext; then
22688   ac_cv_sizeof_signed_short_int=$ac_size
22689 else
22690   echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.$ac_ext >&5
22692
22693
22694 fi
22695
22696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22697    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22698   done
22699
22700 fi
22701
22702
22703 signed=$ac_cv_sizeof_signed_short_int
22704 if test x$signed = x ; then
22705   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22706 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22707    { (exit 1); exit 1; }; }
22708 fi
22709 if test x$unspecif != x$signed ; then
22710   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22711 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22712    { (exit 1); exit 1; }; }
22713 fi
22714
22715     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22716   echo $ECHO_N "(cached) $ECHO_C" >&6
22717 else
22718   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22719    cat >conftest.$ac_ext <<_ACEOF
22720 /* confdefs.h.  */
22721 _ACEOF
22722 cat confdefs.h >>conftest.$ac_ext
22723 cat >>conftest.$ac_ext <<_ACEOF
22724 /* end confdefs.h.  */
22725 #include "confdefs.h"
22726    #include <sys/types.h>
22727
22728
22729 int
22730 main ()
22731 {
22732 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22733   ;
22734   return 0;
22735 }
22736 _ACEOF
22737 rm -f conftest.$ac_objext
22738 if { (ac_try="$ac_compile"
22739 case "(($ac_try" in
22740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741   *) ac_try_echo=$ac_try;;
22742 esac
22743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22744   (eval "$ac_compile") 2>conftest.er1
22745   ac_status=$?
22746   grep -v '^ *+' conftest.er1 >conftest.err
22747   rm -f conftest.er1
22748   cat conftest.err >&5
22749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750   (exit $ac_status); } && {
22751          test -z "$ac_c_werror_flag" ||
22752          test ! -s conftest.err
22753        } && test -s conftest.$ac_objext; then
22754   ac_cv_sizeof_unsigned_short_int=$ac_size
22755 else
22756   echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22758
22759
22760 fi
22761
22762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22763    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22764   done
22765
22766 fi
22767
22768
22769 unsigned=$ac_cv_sizeof_unsigned_short_int
22770 if test x$unsigned = x ; then
22771   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22772 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22773    { (exit 1); exit 1; }; }
22774 fi
22775 if test x$unsigned != x$signed ; then
22776   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22777 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22778    { (exit 1); exit 1; }; }
22779 fi
22780
22781 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22782 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22783              { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22784 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22785
22786  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22787   echo $ECHO_N "(cached) $ECHO_C" >&6
22788 else
22789   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22790    cat >conftest.$ac_ext <<_ACEOF
22791 /* confdefs.h.  */
22792 _ACEOF
22793 cat confdefs.h >>conftest.$ac_ext
22794 cat >>conftest.$ac_ext <<_ACEOF
22795 /* end confdefs.h.  */
22796 #include "confdefs.h"
22797      #include <sys/types.h>
22798      struct s { char c; short int i; };
22799
22800 int
22801 main ()
22802 {
22803 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22804   ;
22805   return 0;
22806 }
22807 _ACEOF
22808 rm -f conftest.$ac_objext
22809 if { (ac_try="$ac_compile"
22810 case "(($ac_try" in
22811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812   *) ac_try_echo=$ac_try;;
22813 esac
22814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22815   (eval "$ac_compile") 2>conftest.er1
22816   ac_status=$?
22817   grep -v '^ *+' conftest.er1 >conftest.err
22818   rm -f conftest.er1
22819   cat conftest.err >&5
22820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821   (exit $ac_status); } && {
22822          test -z "$ac_c_werror_flag" ||
22823          test ! -s conftest.err
22824        } && test -s conftest.$ac_objext; then
22825   ac_cv_struct_boundary_short_int=$ac_size
22826 else
22827   echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22829
22830
22831 fi
22832
22833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22834    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22835   done
22836
22837 fi
22838
22839  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22840 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22841  if test x$ac_cv_struct_boundary_short_int = x ; then
22842    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22843 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22844    { (exit 1); exit 1; }; }
22845  fi
22846
22847 { echo "$as_me:$LINENO: checking size of int" >&5
22848 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22849     if test "${ac_cv_sizeof_int+set}" = set; then
22850   echo $ECHO_N "(cached) $ECHO_C" >&6
22851 else
22852   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22853    cat >conftest.$ac_ext <<_ACEOF
22854 /* confdefs.h.  */
22855 _ACEOF
22856 cat confdefs.h >>conftest.$ac_ext
22857 cat >>conftest.$ac_ext <<_ACEOF
22858 /* end confdefs.h.  */
22859 #include "confdefs.h"
22860    #include <sys/types.h>
22861
22862
22863 int
22864 main ()
22865 {
22866 switch (0) case 0: case (sizeof (int) == $ac_size):;
22867   ;
22868   return 0;
22869 }
22870 _ACEOF
22871 rm -f conftest.$ac_objext
22872 if { (ac_try="$ac_compile"
22873 case "(($ac_try" in
22874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875   *) ac_try_echo=$ac_try;;
22876 esac
22877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878   (eval "$ac_compile") 2>conftest.er1
22879   ac_status=$?
22880   grep -v '^ *+' conftest.er1 >conftest.err
22881   rm -f conftest.er1
22882   cat conftest.err >&5
22883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884   (exit $ac_status); } && {
22885          test -z "$ac_c_werror_flag" ||
22886          test ! -s conftest.err
22887        } && test -s conftest.$ac_objext; then
22888   ac_cv_sizeof_int=$ac_size
22889 else
22890   echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22892
22893
22894 fi
22895
22896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22897    if test x$ac_cv_sizeof_int != x ; then break; fi
22898   done
22899
22900 fi
22901
22902
22903 unspecif=$ac_cv_sizeof_int
22904 if test x$unspecif = x ; then
22905   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22906 echo "$as_me: error: cannot determine a size for int" >&2;}
22907    { (exit 1); exit 1; }; }
22908 fi
22909
22910     if test "${ac_cv_sizeof_signed_int+set}" = set; then
22911   echo $ECHO_N "(cached) $ECHO_C" >&6
22912 else
22913   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22914    cat >conftest.$ac_ext <<_ACEOF
22915 /* confdefs.h.  */
22916 _ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h.  */
22920 #include "confdefs.h"
22921    #include <sys/types.h>
22922
22923
22924 int
22925 main ()
22926 {
22927 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22928   ;
22929   return 0;
22930 }
22931 _ACEOF
22932 rm -f conftest.$ac_objext
22933 if { (ac_try="$ac_compile"
22934 case "(($ac_try" in
22935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936   *) ac_try_echo=$ac_try;;
22937 esac
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939   (eval "$ac_compile") 2>conftest.er1
22940   ac_status=$?
22941   grep -v '^ *+' conftest.er1 >conftest.err
22942   rm -f conftest.er1
22943   cat conftest.err >&5
22944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945   (exit $ac_status); } && {
22946          test -z "$ac_c_werror_flag" ||
22947          test ! -s conftest.err
22948        } && test -s conftest.$ac_objext; then
22949   ac_cv_sizeof_signed_int=$ac_size
22950 else
22951   echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22953
22954
22955 fi
22956
22957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22958    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22959   done
22960
22961 fi
22962
22963
22964 signed=$ac_cv_sizeof_signed_int
22965 if test x$signed = x ; then
22966   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22967 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22968    { (exit 1); exit 1; }; }
22969 fi
22970 if test x$unspecif != x$signed ; then
22971   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22972 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22973    { (exit 1); exit 1; }; }
22974 fi
22975
22976     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22977   echo $ECHO_N "(cached) $ECHO_C" >&6
22978 else
22979   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22980    cat >conftest.$ac_ext <<_ACEOF
22981 /* confdefs.h.  */
22982 _ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h.  */
22986 #include "confdefs.h"
22987    #include <sys/types.h>
22988
22989
22990 int
22991 main ()
22992 {
22993 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22994   ;
22995   return 0;
22996 }
22997 _ACEOF
22998 rm -f conftest.$ac_objext
22999 if { (ac_try="$ac_compile"
23000 case "(($ac_try" in
23001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002   *) ac_try_echo=$ac_try;;
23003 esac
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005   (eval "$ac_compile") 2>conftest.er1
23006   ac_status=$?
23007   grep -v '^ *+' conftest.er1 >conftest.err
23008   rm -f conftest.er1
23009   cat conftest.err >&5
23010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011   (exit $ac_status); } && {
23012          test -z "$ac_c_werror_flag" ||
23013          test ! -s conftest.err
23014        } && test -s conftest.$ac_objext; then
23015   ac_cv_sizeof_unsigned_int=$ac_size
23016 else
23017   echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23019
23020
23021 fi
23022
23023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23024    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
23025   done
23026
23027 fi
23028
23029
23030 unsigned=$ac_cv_sizeof_unsigned_int
23031 if test x$unsigned = x ; then
23032   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
23033 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
23034    { (exit 1); exit 1; }; }
23035 fi
23036 if test x$unsigned != x$signed ; then
23037   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
23038 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
23039    { (exit 1); exit 1; }; }
23040 fi
23041
23042 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23043 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
23044                    { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
23045 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
23046
23047  if test "${ac_cv_struct_boundary_int+set}" = set; then
23048   echo $ECHO_N "(cached) $ECHO_C" >&6
23049 else
23050   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23051    cat >conftest.$ac_ext <<_ACEOF
23052 /* confdefs.h.  */
23053 _ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h.  */
23057 #include "confdefs.h"
23058      #include <sys/types.h>
23059      struct s { char c; int i; };
23060
23061 int
23062 main ()
23063 {
23064 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23065   ;
23066   return 0;
23067 }
23068 _ACEOF
23069 rm -f conftest.$ac_objext
23070 if { (ac_try="$ac_compile"
23071 case "(($ac_try" in
23072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23073   *) ac_try_echo=$ac_try;;
23074 esac
23075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23076   (eval "$ac_compile") 2>conftest.er1
23077   ac_status=$?
23078   grep -v '^ *+' conftest.er1 >conftest.err
23079   rm -f conftest.er1
23080   cat conftest.err >&5
23081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082   (exit $ac_status); } && {
23083          test -z "$ac_c_werror_flag" ||
23084          test ! -s conftest.err
23085        } && test -s conftest.$ac_objext; then
23086   ac_cv_struct_boundary_int=$ac_size
23087 else
23088   echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23090
23091
23092 fi
23093
23094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23095    if test x$ac_cv_struct_boundary_int != x ; then break; fi
23096   done
23097
23098 fi
23099
23100  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23101 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23102  if test x$ac_cv_struct_boundary_int = x ; then
23103    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23104 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23105    { (exit 1); exit 1; }; }
23106  fi
23107
23108 { echo "$as_me:$LINENO: checking size of long int" >&5
23109 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23110     if test "${ac_cv_sizeof_long_int+set}" = set; then
23111   echo $ECHO_N "(cached) $ECHO_C" >&6
23112 else
23113   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23114    cat >conftest.$ac_ext <<_ACEOF
23115 /* confdefs.h.  */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h.  */
23120 #include "confdefs.h"
23121    #include <sys/types.h>
23122
23123
23124 int
23125 main ()
23126 {
23127 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23128   ;
23129   return 0;
23130 }
23131 _ACEOF
23132 rm -f conftest.$ac_objext
23133 if { (ac_try="$ac_compile"
23134 case "(($ac_try" in
23135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136   *) ac_try_echo=$ac_try;;
23137 esac
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139   (eval "$ac_compile") 2>conftest.er1
23140   ac_status=$?
23141   grep -v '^ *+' conftest.er1 >conftest.err
23142   rm -f conftest.er1
23143   cat conftest.err >&5
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); } && {
23146          test -z "$ac_c_werror_flag" ||
23147          test ! -s conftest.err
23148        } && test -s conftest.$ac_objext; then
23149   ac_cv_sizeof_long_int=$ac_size
23150 else
23151   echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23153
23154
23155 fi
23156
23157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23158    if test x$ac_cv_sizeof_long_int != x ; then break; fi
23159   done
23160
23161 fi
23162
23163
23164 unspecif=$ac_cv_sizeof_long_int
23165 if test x$unspecif = x ; then
23166   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23167 echo "$as_me: error: cannot determine a size for long int" >&2;}
23168    { (exit 1); exit 1; }; }
23169 fi
23170
23171     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23172   echo $ECHO_N "(cached) $ECHO_C" >&6
23173 else
23174   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23175    cat >conftest.$ac_ext <<_ACEOF
23176 /* confdefs.h.  */
23177 _ACEOF
23178 cat confdefs.h >>conftest.$ac_ext
23179 cat >>conftest.$ac_ext <<_ACEOF
23180 /* end confdefs.h.  */
23181 #include "confdefs.h"
23182    #include <sys/types.h>
23183
23184
23185 int
23186 main ()
23187 {
23188 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23189   ;
23190   return 0;
23191 }
23192 _ACEOF
23193 rm -f conftest.$ac_objext
23194 if { (ac_try="$ac_compile"
23195 case "(($ac_try" in
23196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197   *) ac_try_echo=$ac_try;;
23198 esac
23199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23200   (eval "$ac_compile") 2>conftest.er1
23201   ac_status=$?
23202   grep -v '^ *+' conftest.er1 >conftest.err
23203   rm -f conftest.er1
23204   cat conftest.err >&5
23205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206   (exit $ac_status); } && {
23207          test -z "$ac_c_werror_flag" ||
23208          test ! -s conftest.err
23209        } && test -s conftest.$ac_objext; then
23210   ac_cv_sizeof_signed_long_int=$ac_size
23211 else
23212   echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23214
23215
23216 fi
23217
23218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23219    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23220   done
23221
23222 fi
23223
23224
23225 signed=$ac_cv_sizeof_signed_long_int
23226 if test x$signed = x ; then
23227   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23228 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23229    { (exit 1); exit 1; }; }
23230 fi
23231 if test x$unspecif != x$signed ; then
23232   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23233 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23234    { (exit 1); exit 1; }; }
23235 fi
23236
23237     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23238   echo $ECHO_N "(cached) $ECHO_C" >&6
23239 else
23240   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23241    cat >conftest.$ac_ext <<_ACEOF
23242 /* confdefs.h.  */
23243 _ACEOF
23244 cat confdefs.h >>conftest.$ac_ext
23245 cat >>conftest.$ac_ext <<_ACEOF
23246 /* end confdefs.h.  */
23247 #include "confdefs.h"
23248    #include <sys/types.h>
23249
23250
23251 int
23252 main ()
23253 {
23254 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23255   ;
23256   return 0;
23257 }
23258 _ACEOF
23259 rm -f conftest.$ac_objext
23260 if { (ac_try="$ac_compile"
23261 case "(($ac_try" in
23262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263   *) ac_try_echo=$ac_try;;
23264 esac
23265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23266   (eval "$ac_compile") 2>conftest.er1
23267   ac_status=$?
23268   grep -v '^ *+' conftest.er1 >conftest.err
23269   rm -f conftest.er1
23270   cat conftest.err >&5
23271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272   (exit $ac_status); } && {
23273          test -z "$ac_c_werror_flag" ||
23274          test ! -s conftest.err
23275        } && test -s conftest.$ac_objext; then
23276   ac_cv_sizeof_unsigned_long_int=$ac_size
23277 else
23278   echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23280
23281
23282 fi
23283
23284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23285    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23286   done
23287
23288 fi
23289
23290
23291 unsigned=$ac_cv_sizeof_unsigned_long_int
23292 if test x$unsigned = x ; then
23293   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23294 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23295    { (exit 1); exit 1; }; }
23296 fi
23297 if test x$unsigned != x$signed ; then
23298   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23299 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23300    { (exit 1); exit 1; }; }
23301 fi
23302
23303 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23304 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23305               { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23306 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23307
23308  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23309   echo $ECHO_N "(cached) $ECHO_C" >&6
23310 else
23311   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23312    cat >conftest.$ac_ext <<_ACEOF
23313 /* confdefs.h.  */
23314 _ACEOF
23315 cat confdefs.h >>conftest.$ac_ext
23316 cat >>conftest.$ac_ext <<_ACEOF
23317 /* end confdefs.h.  */
23318 #include "confdefs.h"
23319      #include <sys/types.h>
23320      struct s { char c; long int i; };
23321
23322 int
23323 main ()
23324 {
23325 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23326   ;
23327   return 0;
23328 }
23329 _ACEOF
23330 rm -f conftest.$ac_objext
23331 if { (ac_try="$ac_compile"
23332 case "(($ac_try" in
23333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23334   *) ac_try_echo=$ac_try;;
23335 esac
23336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23337   (eval "$ac_compile") 2>conftest.er1
23338   ac_status=$?
23339   grep -v '^ *+' conftest.er1 >conftest.err
23340   rm -f conftest.er1
23341   cat conftest.err >&5
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); } && {
23344          test -z "$ac_c_werror_flag" ||
23345          test ! -s conftest.err
23346        } && test -s conftest.$ac_objext; then
23347   ac_cv_struct_boundary_long_int=$ac_size
23348 else
23349   echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23351
23352
23353 fi
23354
23355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23356    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23357   done
23358
23359 fi
23360
23361  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23362 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23363  if test x$ac_cv_struct_boundary_long_int = x ; then
23364    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23365 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23366    { (exit 1); exit 1; }; }
23367  fi
23368
23369 { echo "$as_me:$LINENO: checking size of long long int" >&5
23370 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23371     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23372   echo $ECHO_N "(cached) $ECHO_C" >&6
23373 else
23374   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23375    cat >conftest.$ac_ext <<_ACEOF
23376 /* confdefs.h.  */
23377 _ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h.  */
23381 #include "confdefs.h"
23382    #include <sys/types.h>
23383
23384
23385 int
23386 main ()
23387 {
23388 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23389   ;
23390   return 0;
23391 }
23392 _ACEOF
23393 rm -f conftest.$ac_objext
23394 if { (ac_try="$ac_compile"
23395 case "(($ac_try" in
23396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397   *) ac_try_echo=$ac_try;;
23398 esac
23399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23400   (eval "$ac_compile") 2>conftest.er1
23401   ac_status=$?
23402   grep -v '^ *+' conftest.er1 >conftest.err
23403   rm -f conftest.er1
23404   cat conftest.err >&5
23405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406   (exit $ac_status); } && {
23407          test -z "$ac_c_werror_flag" ||
23408          test ! -s conftest.err
23409        } && test -s conftest.$ac_objext; then
23410   ac_cv_sizeof_long_long_int=$ac_size
23411 else
23412   echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23414
23415
23416 fi
23417
23418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23419    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23420   done
23421
23422 fi
23423
23424
23425 unspecif=$ac_cv_sizeof_long_long_int
23426 if test x$unspecif = x ; then
23427   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23428 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23429    { (exit 1); exit 1; }; }
23430 fi
23431
23432     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23433   echo $ECHO_N "(cached) $ECHO_C" >&6
23434 else
23435   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23436    cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h.  */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h.  */
23442 #include "confdefs.h"
23443    #include <sys/types.h>
23444
23445
23446 int
23447 main ()
23448 {
23449 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23450   ;
23451   return 0;
23452 }
23453 _ACEOF
23454 rm -f conftest.$ac_objext
23455 if { (ac_try="$ac_compile"
23456 case "(($ac_try" in
23457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458   *) ac_try_echo=$ac_try;;
23459 esac
23460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23461   (eval "$ac_compile") 2>conftest.er1
23462   ac_status=$?
23463   grep -v '^ *+' conftest.er1 >conftest.err
23464   rm -f conftest.er1
23465   cat conftest.err >&5
23466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467   (exit $ac_status); } && {
23468          test -z "$ac_c_werror_flag" ||
23469          test ! -s conftest.err
23470        } && test -s conftest.$ac_objext; then
23471   ac_cv_sizeof_signed_long_long_int=$ac_size
23472 else
23473   echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23475
23476
23477 fi
23478
23479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23480    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23481   done
23482
23483 fi
23484
23485
23486 signed=$ac_cv_sizeof_signed_long_long_int
23487 if test x$signed = x ; then
23488   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23489 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23490    { (exit 1); exit 1; }; }
23491 fi
23492 if test x$unspecif != x$signed ; then
23493   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23494 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23495    { (exit 1); exit 1; }; }
23496 fi
23497
23498     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23499   echo $ECHO_N "(cached) $ECHO_C" >&6
23500 else
23501   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23502    cat >conftest.$ac_ext <<_ACEOF
23503 /* confdefs.h.  */
23504 _ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h.  */
23508 #include "confdefs.h"
23509    #include <sys/types.h>
23510
23511
23512 int
23513 main ()
23514 {
23515 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23516   ;
23517   return 0;
23518 }
23519 _ACEOF
23520 rm -f conftest.$ac_objext
23521 if { (ac_try="$ac_compile"
23522 case "(($ac_try" in
23523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23524   *) ac_try_echo=$ac_try;;
23525 esac
23526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23527   (eval "$ac_compile") 2>conftest.er1
23528   ac_status=$?
23529   grep -v '^ *+' conftest.er1 >conftest.err
23530   rm -f conftest.er1
23531   cat conftest.err >&5
23532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533   (exit $ac_status); } && {
23534          test -z "$ac_c_werror_flag" ||
23535          test ! -s conftest.err
23536        } && test -s conftest.$ac_objext; then
23537   ac_cv_sizeof_unsigned_long_long_int=$ac_size
23538 else
23539   echo "$as_me: failed program was:" >&5
23540 sed 's/^/| /' conftest.$ac_ext >&5
23541
23542
23543 fi
23544
23545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23546    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23547   done
23548
23549 fi
23550
23551
23552 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23553 if test x$unsigned = x ; then
23554   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23555 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23556    { (exit 1); exit 1; }; }
23557 fi
23558 if test x$unsigned != x$signed ; then
23559   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23560 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23561    { (exit 1); exit 1; }; }
23562 fi
23563
23564 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23565 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23566          { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23567 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23568
23569  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23570   echo $ECHO_N "(cached) $ECHO_C" >&6
23571 else
23572   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23573    cat >conftest.$ac_ext <<_ACEOF
23574 /* confdefs.h.  */
23575 _ACEOF
23576 cat confdefs.h >>conftest.$ac_ext
23577 cat >>conftest.$ac_ext <<_ACEOF
23578 /* end confdefs.h.  */
23579 #include "confdefs.h"
23580      #include <sys/types.h>
23581      struct s { char c; long long int i; };
23582
23583 int
23584 main ()
23585 {
23586 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23587   ;
23588   return 0;
23589 }
23590 _ACEOF
23591 rm -f conftest.$ac_objext
23592 if { (ac_try="$ac_compile"
23593 case "(($ac_try" in
23594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23595   *) ac_try_echo=$ac_try;;
23596 esac
23597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23598   (eval "$ac_compile") 2>conftest.er1
23599   ac_status=$?
23600   grep -v '^ *+' conftest.er1 >conftest.err
23601   rm -f conftest.er1
23602   cat conftest.err >&5
23603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604   (exit $ac_status); } && {
23605          test -z "$ac_c_werror_flag" ||
23606          test ! -s conftest.err
23607        } && test -s conftest.$ac_objext; then
23608   ac_cv_struct_boundary_long_long_int=$ac_size
23609 else
23610   echo "$as_me: failed program was:" >&5
23611 sed 's/^/| /' conftest.$ac_ext >&5
23612
23613
23614 fi
23615
23616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23617    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23618   done
23619
23620 fi
23621
23622  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23623 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23624  if test x$ac_cv_struct_boundary_long_long_int = x ; then
23625    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23626 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23627    { (exit 1); exit 1; }; }
23628  fi
23629
23630
23631     { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23632 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23633
23634  if test "${ac_cv_struct_boundary_float+set}" = set; then
23635   echo $ECHO_N "(cached) $ECHO_C" >&6
23636 else
23637   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23638    cat >conftest.$ac_ext <<_ACEOF
23639 /* confdefs.h.  */
23640 _ACEOF
23641 cat confdefs.h >>conftest.$ac_ext
23642 cat >>conftest.$ac_ext <<_ACEOF
23643 /* end confdefs.h.  */
23644 #include "confdefs.h"
23645      #include <sys/types.h>
23646      struct s { char c; float i; };
23647
23648 int
23649 main ()
23650 {
23651 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23652   ;
23653   return 0;
23654 }
23655 _ACEOF
23656 rm -f conftest.$ac_objext
23657 if { (ac_try="$ac_compile"
23658 case "(($ac_try" in
23659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660   *) ac_try_echo=$ac_try;;
23661 esac
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663   (eval "$ac_compile") 2>conftest.er1
23664   ac_status=$?
23665   grep -v '^ *+' conftest.er1 >conftest.err
23666   rm -f conftest.er1
23667   cat conftest.err >&5
23668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669   (exit $ac_status); } && {
23670          test -z "$ac_c_werror_flag" ||
23671          test ! -s conftest.err
23672        } && test -s conftest.$ac_objext; then
23673   ac_cv_struct_boundary_float=$ac_size
23674 else
23675   echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23677
23678
23679 fi
23680
23681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23682    if test x$ac_cv_struct_boundary_float != x ; then break; fi
23683   done
23684
23685 fi
23686
23687  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23688 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23689  if test x$ac_cv_struct_boundary_float = x ; then
23690    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23691 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23692    { (exit 1); exit 1; }; }
23693  fi
23694                { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23695 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23696
23697  if test "${ac_cv_struct_boundary_double+set}" = set; then
23698   echo $ECHO_N "(cached) $ECHO_C" >&6
23699 else
23700   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23701    cat >conftest.$ac_ext <<_ACEOF
23702 /* confdefs.h.  */
23703 _ACEOF
23704 cat confdefs.h >>conftest.$ac_ext
23705 cat >>conftest.$ac_ext <<_ACEOF
23706 /* end confdefs.h.  */
23707 #include "confdefs.h"
23708      #include <sys/types.h>
23709      struct s { char c; double i; };
23710
23711 int
23712 main ()
23713 {
23714 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23715   ;
23716   return 0;
23717 }
23718 _ACEOF
23719 rm -f conftest.$ac_objext
23720 if { (ac_try="$ac_compile"
23721 case "(($ac_try" in
23722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23723   *) ac_try_echo=$ac_try;;
23724 esac
23725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23726   (eval "$ac_compile") 2>conftest.er1
23727   ac_status=$?
23728   grep -v '^ *+' conftest.er1 >conftest.err
23729   rm -f conftest.er1
23730   cat conftest.err >&5
23731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732   (exit $ac_status); } && {
23733          test -z "$ac_c_werror_flag" ||
23734          test ! -s conftest.err
23735        } && test -s conftest.$ac_objext; then
23736   ac_cv_struct_boundary_double=$ac_size
23737 else
23738   echo "$as_me: failed program was:" >&5
23739 sed 's/^/| /' conftest.$ac_ext >&5
23740
23741
23742 fi
23743
23744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23745    if test x$ac_cv_struct_boundary_double != x ; then break; fi
23746   done
23747
23748 fi
23749
23750  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23751 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23752  if test x$ac_cv_struct_boundary_double = x ; then
23753    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23754 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23755    { (exit 1); exit 1; }; }
23756  fi
23757
23758
23759 { echo "$as_me:$LINENO: checking size of void *" >&5
23760 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23761     if test "${ac_cv_sizeof_void_p+set}" = set; then
23762   echo $ECHO_N "(cached) $ECHO_C" >&6
23763 else
23764   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23765    cat >conftest.$ac_ext <<_ACEOF
23766 /* confdefs.h.  */
23767 _ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h.  */
23771 #include "confdefs.h"
23772    #include <sys/types.h>
23773
23774
23775 int
23776 main ()
23777 {
23778 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23779   ;
23780   return 0;
23781 }
23782 _ACEOF
23783 rm -f conftest.$ac_objext
23784 if { (ac_try="$ac_compile"
23785 case "(($ac_try" in
23786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23787   *) ac_try_echo=$ac_try;;
23788 esac
23789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23790   (eval "$ac_compile") 2>conftest.er1
23791   ac_status=$?
23792   grep -v '^ *+' conftest.er1 >conftest.err
23793   rm -f conftest.er1
23794   cat conftest.err >&5
23795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796   (exit $ac_status); } && {
23797          test -z "$ac_c_werror_flag" ||
23798          test ! -s conftest.err
23799        } && test -s conftest.$ac_objext; then
23800   ac_cv_sizeof_void_p=$ac_size
23801 else
23802   echo "$as_me: failed program was:" >&5
23803 sed 's/^/| /' conftest.$ac_ext >&5
23804
23805
23806 fi
23807
23808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23809    if test x$ac_cv_sizeof_void_p != x ; then break; fi
23810   done
23811
23812 fi
23813
23814
23815 if test x$ac_cv_sizeof_void_p = x ; then
23816   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23817 echo "$as_me: error: cannot determine a size for void *" >&2;}
23818    { (exit 1); exit 1; }; }
23819 fi
23820 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23821 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23822                  { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23823 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23824
23825  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23826   echo $ECHO_N "(cached) $ECHO_C" >&6
23827 else
23828   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23829    cat >conftest.$ac_ext <<_ACEOF
23830 /* confdefs.h.  */
23831 _ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h.  */
23835 #include "confdefs.h"
23836      #include <sys/types.h>
23837      struct s { char c; void * i; };
23838
23839 int
23840 main ()
23841 {
23842 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23843   ;
23844   return 0;
23845 }
23846 _ACEOF
23847 rm -f conftest.$ac_objext
23848 if { (ac_try="$ac_compile"
23849 case "(($ac_try" in
23850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23851   *) ac_try_echo=$ac_try;;
23852 esac
23853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23854   (eval "$ac_compile") 2>conftest.er1
23855   ac_status=$?
23856   grep -v '^ *+' conftest.er1 >conftest.err
23857   rm -f conftest.er1
23858   cat conftest.err >&5
23859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860   (exit $ac_status); } && {
23861          test -z "$ac_c_werror_flag" ||
23862          test ! -s conftest.err
23863        } && test -s conftest.$ac_objext; then
23864   ac_cv_struct_boundary_void_p=$ac_size
23865 else
23866   echo "$as_me: failed program was:" >&5
23867 sed 's/^/| /' conftest.$ac_ext >&5
23868
23869
23870 fi
23871
23872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23873    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23874   done
23875
23876 fi
23877
23878  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23879 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23880  if test x$ac_cv_struct_boundary_void_p = x ; then
23881    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23882 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23883    { (exit 1); exit 1; }; }
23884  fi
23885
23886 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23887 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23888     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23889   echo $ECHO_N "(cached) $ECHO_C" >&6
23890 else
23891   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23892    cat >conftest.$ac_ext <<_ACEOF
23893 /* confdefs.h.  */
23894 _ACEOF
23895 cat confdefs.h >>conftest.$ac_ext
23896 cat >>conftest.$ac_ext <<_ACEOF
23897 /* end confdefs.h.  */
23898 #include "confdefs.h"
23899    #include <sys/types.h>
23900
23901
23902 int
23903 main ()
23904 {
23905 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23906   ;
23907   return 0;
23908 }
23909 _ACEOF
23910 rm -f conftest.$ac_objext
23911 if { (ac_try="$ac_compile"
23912 case "(($ac_try" in
23913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23914   *) ac_try_echo=$ac_try;;
23915 esac
23916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23917   (eval "$ac_compile") 2>conftest.er1
23918   ac_status=$?
23919   grep -v '^ *+' conftest.er1 >conftest.err
23920   rm -f conftest.er1
23921   cat conftest.err >&5
23922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923   (exit $ac_status); } && {
23924          test -z "$ac_c_werror_flag" ||
23925          test ! -s conftest.err
23926        } && test -s conftest.$ac_objext; then
23927   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23928 else
23929   echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23931
23932
23933 fi
23934
23935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23936    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23937   done
23938
23939 fi
23940
23941
23942 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23943   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23944 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23945    { (exit 1); exit 1; }; }
23946 fi
23947 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23948 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23949
23950
23951
23952 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23953 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23954 if test x$endian = x1 ; then
23955   trace_endian=B
23956 else
23957   trace_endian=l
23958 fi
23959 gras_arch=unknown
23960 trace="$trace_endian"
23961
23962 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23963
23964 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23965 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23966 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23967 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23968
23969 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23970 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23971
23972 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23973
23974 # sizeof float/double are not tested since IEEE 754 is assumed.
23975 # Check README.IEEE for rational.
23976
23977 # The numbers after the _ in the arch name are the maximal packing boundary.
23978 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
23979 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23980 case $trace in
23981   l_C:1/1:_I:2/1:4/1:4/1:8/1:_P:4/1:4/1:_D:4/1:8/1:) gras_arch=0; gras_arch_name=little32_1;;
23982   l_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=1; gras_arch_name=little32_2;;
23983   l_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=2; gras_arch_name=little32_4;;
23984   l_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=3; gras_arch_name=little32_8;;
23985
23986   l_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=4; gras_arch_name=little64;;
23987
23988   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=5; gras_arch_name=big32;;
23989   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=6; gras_arch_name=big32_8_4;;
23990   B_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=7; gras_arch_name=big32_4;;
23991   B_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=8; gras_arch_name=big32_2;;
23992
23993   B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=9; gras_arch_name=big64;;
23994   B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/4:) gras_arch=10;gras_arch_name=big64_8_4;;
23995 esac
23996 if test x$gras_arch = xunknown ; then
23997   { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23998 echo "${ECHO_T}damnit ($trace)" >&6; }
23999   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
24000 Please report this architecture trace ($trace) and what it corresponds to." >&5
24001 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
24002 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
24003    { (exit 1); exit 1; }; }
24004 fi
24005 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
24006
24007 cat >>confdefs.h <<_ACEOF
24008 #define GRAS_THISARCH $gras_arch
24009 _ACEOF
24010
24011 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
24012 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
24013
24014 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
24015 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
24016 ac_cv_sizeof_max=0
24017 for s in $ac_cv_sizeof_char \
24018          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
24019          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
24020          4 8; do
24021
24022   if test $ac_cv_sizeof_max -lt $s ; then
24023     ac_cv_sizeof_max=$s
24024   fi
24025 done
24026 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
24027 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
24028
24029 cat >>confdefs.h <<_ACEOF
24030 #define SIZEOF_MAX $ac_cv_sizeof_max
24031 _ACEOF
24032
24033
24034
24035 # Check architecture signature end
24036   { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
24037 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
24038    cat >conftest.$ac_ext <<_ACEOF
24039 /* confdefs.h.  */
24040 _ACEOF
24041 cat confdefs.h >>conftest.$ac_ext
24042 cat >>conftest.$ac_ext <<_ACEOF
24043 /* end confdefs.h.  */
24044 #include "confdefs.h"
24045         #include <sys/types.h>
24046         #include <stddef.h> /* offsetof() */
24047         struct s {char c; double d;};
24048
24049 int
24050 main ()
24051 {
24052 switch (0)
24053         case 0:
24054         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24055
24056   ;
24057   return 0;
24058 }
24059 _ACEOF
24060 rm -f conftest.$ac_objext
24061 if { (ac_try="$ac_compile"
24062 case "(($ac_try" in
24063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24064   *) ac_try_echo=$ac_try;;
24065 esac
24066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24067   (eval "$ac_compile") 2>conftest.er1
24068   ac_status=$?
24069   grep -v '^ *+' conftest.er1 >conftest.err
24070   rm -f conftest.er1
24071   cat conftest.err >&5
24072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073   (exit $ac_status); } && {
24074          test -z "$ac_c_werror_flag" ||
24075          test ! -s conftest.err
24076        } && test -s conftest.$ac_objext; then
24077   gras_struct_packed=yes
24078 else
24079   echo "$as_me: failed program was:" >&5
24080 sed 's/^/| /' conftest.$ac_ext >&5
24081
24082         gras_struct_packed=no
24083 fi
24084
24085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24086
24087    { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24088 echo "${ECHO_T}$gras_struct_packed" >&6; }
24089    if test x$gras_struct_packed = "xyes" ; then
24090      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24091 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24092    { (exit 1); exit 1; }; }
24093    fi
24094
24095    { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24096 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24097    cat >conftest.$ac_ext <<_ACEOF
24098 /* confdefs.h.  */
24099 _ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h.  */
24103 #include "confdefs.h"
24104         #include <sys/types.h>
24105         #include <stddef.h> /* offsetof() */
24106         struct s {double d; int i; char c;};
24107
24108 int
24109 main ()
24110 {
24111 switch (0)
24112         case 0:
24113         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24114
24115   ;
24116   return 0;
24117 }
24118 _ACEOF
24119 rm -f conftest.$ac_objext
24120 if { (ac_try="$ac_compile"
24121 case "(($ac_try" in
24122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24123   *) ac_try_echo=$ac_try;;
24124 esac
24125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24126   (eval "$ac_compile") 2>conftest.er1
24127   ac_status=$?
24128   grep -v '^ *+' conftest.er1 >conftest.err
24129   rm -f conftest.er1
24130   cat conftest.err >&5
24131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132   (exit $ac_status); } && {
24133          test -z "$ac_c_werror_flag" ||
24134          test ! -s conftest.err
24135        } && test -s conftest.$ac_objext; then
24136   gras_struct_compact=yes
24137 else
24138   echo "$as_me: failed program was:" >&5
24139 sed 's/^/| /' conftest.$ac_ext >&5
24140
24141         gras_struct_compact=no
24142 fi
24143
24144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24145
24146    { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24147 echo "${ECHO_T}$gras_struct_compact" >&6; }
24148
24149    if test x$gras_struct_compact != xyes ; then
24150      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24151 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24152    { (exit 1); exit 1; }; }
24153    fi
24154
24155 cat >>confdefs.h <<_ACEOF
24156 #define GRAS_STRUCT_COMPACT 1
24157 _ACEOF
24158
24159    { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24160 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24161
24162    cat >conftest.$ac_ext <<_ACEOF
24163 /* confdefs.h.  */
24164 _ACEOF
24165 cat confdefs.h >>conftest.$ac_ext
24166 cat >>conftest.$ac_ext <<_ACEOF
24167 /* end confdefs.h.  */
24168 #include "confdefs.h"
24169       #include <sys/types.h>
24170         #include <stddef.h> /* offsetof() */
24171         struct s { double d; int i; char c[6]; };
24172
24173 int
24174 main ()
24175 {
24176 switch (0)
24177       case 0:
24178       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24179
24180   ;
24181   return 0;
24182 }
24183 _ACEOF
24184 rm -f conftest.$ac_objext
24185 if { (ac_try="$ac_compile"
24186 case "(($ac_try" in
24187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24188   *) ac_try_echo=$ac_try;;
24189 esac
24190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24191   (eval "$ac_compile") 2>conftest.er1
24192   ac_status=$?
24193   grep -v '^ *+' conftest.er1 >conftest.err
24194   rm -f conftest.er1
24195   cat conftest.err >&5
24196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197   (exit $ac_status); } && {
24198          test -z "$ac_c_werror_flag" ||
24199          test ! -s conftest.err
24200        } && test -s conftest.$ac_objext; then
24201   gras_array_straddle_struct=yes
24202 else
24203   echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24205
24206         gras_array_straddle_struct=no
24207 fi
24208
24209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24210
24211    { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24212 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24213
24214    if test x$gras_array_straddle_struct = xyes ; then
24215
24216 cat >>confdefs.h <<_ACEOF
24217 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24218 _ACEOF
24219
24220    else
24221      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24222 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24223    { (exit 1); exit 1; }; }
24224    fi
24225
24226
24227
24228
24229
24230   { echo "$as_me:$LINENO: result: " >&5
24231 echo "${ECHO_T}" >&6; }
24232   { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24233 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24234
24235
24236
24237
24238 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24239 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24240 if test "${ac_cv_check_mcsc+set}" = set; then
24241   echo $ECHO_N "(cached) $ECHO_C" >&6
24242 else
24243
24244 if test "$cross_compiling" = yes; then
24245   ac_cv_check_mcsc=no
24246
24247 else
24248   cat >conftest.$ac_ext <<_ACEOF
24249 /* confdefs.h.  */
24250 _ACEOF
24251 cat confdefs.h >>conftest.$ac_ext
24252 cat >>conftest.$ac_ext <<_ACEOF
24253 /* end confdefs.h.  */
24254
24255
24256 #include <stdio.h>
24257 #include <stdlib.h>
24258 #include <ucontext.h>
24259
24260 ucontext_t uc_child;
24261 ucontext_t uc_main;
24262
24263 void child(void *arg)
24264 {
24265     if (arg != (void *)2147483648)
24266         exit(1);
24267     if (swapcontext(&uc_child, &uc_main) != 0)
24268         exit(2);
24269 }
24270
24271 int main(int argc, char *argv[])
24272 {
24273     FILE *fp;
24274     void *stack;
24275
24276     /* the default is that it fails */
24277     if ((fp = fopen("conftestval", "w")) == NULL)
24278         exit(3);
24279     fprintf(fp, "no\n");
24280     fclose(fp);
24281
24282     /* configure a child user-space context */
24283     if ((stack = malloc(64*1024)) == NULL)
24284         exit(4);
24285     if (getcontext(&uc_child) != 0)
24286         exit(5);
24287     uc_child.uc_link = NULL;
24288     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24289     uc_child.uc_stack.ss_size = 32*1024;
24290     uc_child.uc_stack.ss_flags = 0;
24291     makecontext(&uc_child, child, 2, (void *)2147483648);
24292
24293     /* switch into the user context */
24294     if (swapcontext(&uc_main, &uc_child) != 0)
24295         exit(6);
24296
24297     /* Fine, child came home */
24298     if ((fp = fopen("conftestval", "w")) == NULL)
24299         exit(7);
24300     fprintf(fp, "yes\n");
24301     fclose(fp);
24302
24303     /* die successfully */
24304     exit(0);
24305 }
24306
24307 _ACEOF
24308 rm -f conftest$ac_exeext
24309 if { (ac_try="$ac_link"
24310 case "(($ac_try" in
24311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24312   *) ac_try_echo=$ac_try;;
24313 esac
24314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24315   (eval "$ac_link") 2>&5
24316   ac_status=$?
24317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24319   { (case "(($ac_try" in
24320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24321   *) ac_try_echo=$ac_try;;
24322 esac
24323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24324   (eval "$ac_try") 2>&5
24325   ac_status=$?
24326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327   (exit $ac_status); }; }; then
24328   ac_cv_check_mcsc=`cat conftestval`
24329 else
24330   echo "$as_me: program exited with status $ac_status" >&5
24331 echo "$as_me: failed program was:" >&5
24332 sed 's/^/| /' conftest.$ac_ext >&5
24333
24334 ( exit $ac_status )
24335 ac_cv_check_mcsc=no
24336 fi
24337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24338 fi
24339
24340
24341 fi
24342 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24343 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24344 if test ".$ac_cv_check_mcsc" = .yes; then
24345     mcsc=yes
24346 else
24347     mcsc=no
24348 fi
24349
24350
24351
24352 for ac_header in pthread.h
24353 do
24354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24356   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24359   echo $ECHO_N "(cached) $ECHO_C" >&6
24360 fi
24361 ac_res=`eval echo '${'$as_ac_Header'}'`
24362                { echo "$as_me:$LINENO: result: $ac_res" >&5
24363 echo "${ECHO_T}$ac_res" >&6; }
24364 else
24365   # Is the header compilable?
24366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24368 cat >conftest.$ac_ext <<_ACEOF
24369 /* confdefs.h.  */
24370 _ACEOF
24371 cat confdefs.h >>conftest.$ac_ext
24372 cat >>conftest.$ac_ext <<_ACEOF
24373 /* end confdefs.h.  */
24374 $ac_includes_default
24375 #include <$ac_header>
24376 _ACEOF
24377 rm -f conftest.$ac_objext
24378 if { (ac_try="$ac_compile"
24379 case "(($ac_try" in
24380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24381   *) ac_try_echo=$ac_try;;
24382 esac
24383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24384   (eval "$ac_compile") 2>conftest.er1
24385   ac_status=$?
24386   grep -v '^ *+' conftest.er1 >conftest.err
24387   rm -f conftest.er1
24388   cat conftest.err >&5
24389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390   (exit $ac_status); } && {
24391          test -z "$ac_c_werror_flag" ||
24392          test ! -s conftest.err
24393        } && test -s conftest.$ac_objext; then
24394   ac_header_compiler=yes
24395 else
24396   echo "$as_me: failed program was:" >&5
24397 sed 's/^/| /' conftest.$ac_ext >&5
24398
24399         ac_header_compiler=no
24400 fi
24401
24402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24404 echo "${ECHO_T}$ac_header_compiler" >&6; }
24405
24406 # Is the header present?
24407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24409 cat >conftest.$ac_ext <<_ACEOF
24410 /* confdefs.h.  */
24411 _ACEOF
24412 cat confdefs.h >>conftest.$ac_ext
24413 cat >>conftest.$ac_ext <<_ACEOF
24414 /* end confdefs.h.  */
24415 #include <$ac_header>
24416 _ACEOF
24417 if { (ac_try="$ac_cpp conftest.$ac_ext"
24418 case "(($ac_try" in
24419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24420   *) ac_try_echo=$ac_try;;
24421 esac
24422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24423   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24424   ac_status=$?
24425   grep -v '^ *+' conftest.er1 >conftest.err
24426   rm -f conftest.er1
24427   cat conftest.err >&5
24428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429   (exit $ac_status); } >/dev/null && {
24430          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24431          test ! -s conftest.err
24432        }; then
24433   ac_header_preproc=yes
24434 else
24435   echo "$as_me: failed program was:" >&5
24436 sed 's/^/| /' conftest.$ac_ext >&5
24437
24438   ac_header_preproc=no
24439 fi
24440
24441 rm -f conftest.err conftest.$ac_ext
24442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24443 echo "${ECHO_T}$ac_header_preproc" >&6; }
24444
24445 # So?  What about this header?
24446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24447   yes:no: )
24448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24452     ac_header_preproc=yes
24453     ;;
24454   no:yes:* )
24455     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24457     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24458 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24459     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24461     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24462 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24465     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24467     ( cat <<\_ASBOX
24468 ## -------------------------------------------------- ##
24469 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24470 ## -------------------------------------------------- ##
24471 _ASBOX
24472      ) | sed "s/^/$as_me: WARNING:     /" >&2
24473     ;;
24474 esac
24475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24478   echo $ECHO_N "(cached) $ECHO_C" >&6
24479 else
24480   eval "$as_ac_Header=\$ac_header_preproc"
24481 fi
24482 ac_res=`eval echo '${'$as_ac_Header'}'`
24483                { echo "$as_me:$LINENO: result: $ac_res" >&5
24484 echo "${ECHO_T}$ac_res" >&6; }
24485
24486 fi
24487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24488   cat >>confdefs.h <<_ACEOF
24489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24490 _ACEOF
24491
24492 fi
24493
24494 done
24495
24496 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24497 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24498 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24499   echo $ECHO_N "(cached) $ECHO_C" >&6
24500 else
24501   ac_check_lib_save_LIBS=$LIBS
24502 LIBS="-lpthread  $LIBS"
24503 cat >conftest.$ac_ext <<_ACEOF
24504 /* confdefs.h.  */
24505 _ACEOF
24506 cat confdefs.h >>conftest.$ac_ext
24507 cat >>conftest.$ac_ext <<_ACEOF
24508 /* end confdefs.h.  */
24509
24510 /* Override any GCC internal prototype to avoid an error.
24511    Use char because int might match the return type of a GCC
24512    builtin and then its argument prototype would still apply.  */
24513 #ifdef __cplusplus
24514 extern "C"
24515 #endif
24516 char pthread_create ();
24517 int
24518 main ()
24519 {
24520 return pthread_create ();
24521   ;
24522   return 0;
24523 }
24524 _ACEOF
24525 rm -f conftest.$ac_objext conftest$ac_exeext
24526 if { (ac_try="$ac_link"
24527 case "(($ac_try" in
24528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24529   *) ac_try_echo=$ac_try;;
24530 esac
24531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24532   (eval "$ac_link") 2>conftest.er1
24533   ac_status=$?
24534   grep -v '^ *+' conftest.er1 >conftest.err
24535   rm -f conftest.er1
24536   cat conftest.err >&5
24537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538   (exit $ac_status); } && {
24539          test -z "$ac_c_werror_flag" ||
24540          test ! -s conftest.err
24541        } && test -s conftest$ac_exeext &&
24542        $as_test_x conftest$ac_exeext; then
24543   ac_cv_lib_pthread_pthread_create=yes
24544 else
24545   echo "$as_me: failed program was:" >&5
24546 sed 's/^/| /' conftest.$ac_ext >&5
24547
24548         ac_cv_lib_pthread_pthread_create=no
24549 fi
24550
24551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24552       conftest$ac_exeext conftest.$ac_ext
24553 LIBS=$ac_check_lib_save_LIBS
24554 fi
24555 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24556 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24557 if test $ac_cv_lib_pthread_pthread_create = yes; then
24558   pthread=yes
24559 else
24560   pthread=no
24561 fi
24562
24563
24564
24565 if test ".$mcsc" = .yes; then
24566    mcsc=yes
24567 elif test ".$pthread" = .yes; then
24568    pthread=yes
24569 else
24570     ac_header=windows.h
24571     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24572     if test `eval echo '${'$as_ac_Header'}'` = yes; then
24573       windows_context=yes
24574     else
24575       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24576 echo "$as_me: error: no appropriate backend found" >&2;}
24577    { (exit 1); exit 1; }; }
24578     fi
24579 fi
24580
24581
24582 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24583 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24584
24585
24586 # Check whether --with-pthread was given.
24587 if test "${with_pthread+set}" = set; then
24588   withval=$with_pthread; with_context=pthread
24589 fi
24590
24591
24592
24593 # Check whether --with-context was given.
24594 if test "${with_context+set}" = set; then
24595   withval=$with_context;
24596 else
24597   with_context=auto
24598 fi
24599
24600
24601 if test "x$with_context$mcsc" = "xucontextno" ; then
24602   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24603 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24604    { (exit 77); exit 77; }; }
24605 fi
24606
24607 case $with_context in
24608  ucontext) ;;
24609  pthread) ;;
24610  windows) ;;
24611  auto) with_context=ucontext;;
24612  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24613 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24614    { (exit 1); exit 1; }; } ;;
24615 esac
24616
24617 if test "x$with_context" = "xucontext" ; then
24618   if test ".$mcsc" = .yes; then
24619     { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24620 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24621
24622 cat >>confdefs.h <<\_ACEOF
24623 #define USE_UCONTEXT 1
24624 _ACEOF
24625
24626   else
24627     if test ".$windows_context" = .yes ; then
24628       { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24629 echo "${ECHO_T}use windows context portability layer." >&6; }
24630       with_context=windows
24631     else
24632       { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24633 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24634       with_context=pthread
24635     fi
24636   fi
24637 fi
24638
24639 if test "x$with_context" = "xpthread"; then
24640
24641 for ac_header in pthread.h
24642 do
24643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24645   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24648   echo $ECHO_N "(cached) $ECHO_C" >&6
24649 fi
24650 ac_res=`eval echo '${'$as_ac_Header'}'`
24651                { echo "$as_me:$LINENO: result: $ac_res" >&5
24652 echo "${ECHO_T}$ac_res" >&6; }
24653 else
24654   # Is the header compilable?
24655 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24657 cat >conftest.$ac_ext <<_ACEOF
24658 /* confdefs.h.  */
24659 _ACEOF
24660 cat confdefs.h >>conftest.$ac_ext
24661 cat >>conftest.$ac_ext <<_ACEOF
24662 /* end confdefs.h.  */
24663 $ac_includes_default
24664 #include <$ac_header>
24665 _ACEOF
24666 rm -f conftest.$ac_objext
24667 if { (ac_try="$ac_compile"
24668 case "(($ac_try" in
24669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24670   *) ac_try_echo=$ac_try;;
24671 esac
24672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24673   (eval "$ac_compile") 2>conftest.er1
24674   ac_status=$?
24675   grep -v '^ *+' conftest.er1 >conftest.err
24676   rm -f conftest.er1
24677   cat conftest.err >&5
24678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679   (exit $ac_status); } && {
24680          test -z "$ac_c_werror_flag" ||
24681          test ! -s conftest.err
24682        } && test -s conftest.$ac_objext; then
24683   ac_header_compiler=yes
24684 else
24685   echo "$as_me: failed program was:" >&5
24686 sed 's/^/| /' conftest.$ac_ext >&5
24687
24688         ac_header_compiler=no
24689 fi
24690
24691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24693 echo "${ECHO_T}$ac_header_compiler" >&6; }
24694
24695 # Is the header present?
24696 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24698 cat >conftest.$ac_ext <<_ACEOF
24699 /* confdefs.h.  */
24700 _ACEOF
24701 cat confdefs.h >>conftest.$ac_ext
24702 cat >>conftest.$ac_ext <<_ACEOF
24703 /* end confdefs.h.  */
24704 #include <$ac_header>
24705 _ACEOF
24706 if { (ac_try="$ac_cpp conftest.$ac_ext"
24707 case "(($ac_try" in
24708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24709   *) ac_try_echo=$ac_try;;
24710 esac
24711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24712   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24713   ac_status=$?
24714   grep -v '^ *+' conftest.er1 >conftest.err
24715   rm -f conftest.er1
24716   cat conftest.err >&5
24717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718   (exit $ac_status); } >/dev/null && {
24719          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24720          test ! -s conftest.err
24721        }; then
24722   ac_header_preproc=yes
24723 else
24724   echo "$as_me: failed program was:" >&5
24725 sed 's/^/| /' conftest.$ac_ext >&5
24726
24727   ac_header_preproc=no
24728 fi
24729
24730 rm -f conftest.err conftest.$ac_ext
24731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24732 echo "${ECHO_T}$ac_header_preproc" >&6; }
24733
24734 # So?  What about this header?
24735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24736   yes:no: )
24737     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24741     ac_header_preproc=yes
24742     ;;
24743   no:yes:* )
24744     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24746     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24747 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24748     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24750     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24751 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24754     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24756     ( cat <<\_ASBOX
24757 ## -------------------------------------------------- ##
24758 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24759 ## -------------------------------------------------- ##
24760 _ASBOX
24761      ) | sed "s/^/$as_me: WARNING:     /" >&2
24762     ;;
24763 esac
24764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24767   echo $ECHO_N "(cached) $ECHO_C" >&6
24768 else
24769   eval "$as_ac_Header=\$ac_header_preproc"
24770 fi
24771 ac_res=`eval echo '${'$as_ac_Header'}'`
24772                { echo "$as_me:$LINENO: result: $ac_res" >&5
24773 echo "${ECHO_T}$ac_res" >&6; }
24774
24775 fi
24776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24777   cat >>confdefs.h <<_ACEOF
24778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24779 _ACEOF
24780
24781 fi
24782
24783 done
24784
24785
24786 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24787 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24788 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24789   echo $ECHO_N "(cached) $ECHO_C" >&6
24790 else
24791   ac_check_lib_save_LIBS=$LIBS
24792 LIBS="-lpthread  $LIBS"
24793 cat >conftest.$ac_ext <<_ACEOF
24794 /* confdefs.h.  */
24795 _ACEOF
24796 cat confdefs.h >>conftest.$ac_ext
24797 cat >>conftest.$ac_ext <<_ACEOF
24798 /* end confdefs.h.  */
24799
24800 /* Override any GCC internal prototype to avoid an error.
24801    Use char because int might match the return type of a GCC
24802    builtin and then its argument prototype would still apply.  */
24803 #ifdef __cplusplus
24804 extern "C"
24805 #endif
24806 char pthread_create ();
24807 int
24808 main ()
24809 {
24810 return pthread_create ();
24811   ;
24812   return 0;
24813 }
24814 _ACEOF
24815 rm -f conftest.$ac_objext conftest$ac_exeext
24816 if { (ac_try="$ac_link"
24817 case "(($ac_try" in
24818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24819   *) ac_try_echo=$ac_try;;
24820 esac
24821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24822   (eval "$ac_link") 2>conftest.er1
24823   ac_status=$?
24824   grep -v '^ *+' conftest.er1 >conftest.err
24825   rm -f conftest.er1
24826   cat conftest.err >&5
24827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828   (exit $ac_status); } && {
24829          test -z "$ac_c_werror_flag" ||
24830          test ! -s conftest.err
24831        } && test -s conftest$ac_exeext &&
24832        $as_test_x conftest$ac_exeext; then
24833   ac_cv_lib_pthread_pthread_create=yes
24834 else
24835   echo "$as_me: failed program was:" >&5
24836 sed 's/^/| /' conftest.$ac_ext >&5
24837
24838         ac_cv_lib_pthread_pthread_create=no
24839 fi
24840
24841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24842       conftest$ac_exeext conftest.$ac_ext
24843 LIBS=$ac_check_lib_save_LIBS
24844 fi
24845 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24846 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24847 if test $ac_cv_lib_pthread_pthread_create = yes; then
24848   cat >>confdefs.h <<_ACEOF
24849 #define HAVE_LIBPTHREAD 1
24850 _ACEOF
24851
24852   LIBS="-lpthread $LIBS"
24853
24854 else
24855   { { echo "$as_me:$LINENO: error: Cannot find pthreads, no way (try --with-context=ucontext if you haven't already tried)." >&5
24856 echo "$as_me: error: Cannot find pthreads, no way (try --with-context=ucontext if you haven't already tried)." >&2;}
24857    { (exit 1); exit 1; }; }
24858 fi
24859
24860
24861 cat >>confdefs.h <<\_ACEOF
24862 #define USE_PTHREADS 1
24863 _ACEOF
24864
24865   { echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24866 echo "${ECHO_T}You have pthreads. Let's use them." >&6; }
24867 fi
24868
24869
24870 if test "x$with_context" = "xucontext" ; then
24871   { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24872 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24873 if test "${ac_cv_check_stackgrowth+set}" = set; then
24874   echo $ECHO_N "(cached) $ECHO_C" >&6
24875 else
24876
24877 cross_compiling=no
24878 if test "$cross_compiling" = yes; then
24879   ac_cv_check_stackgrowth=down
24880
24881 else
24882   cat >conftest.$ac_ext <<_ACEOF
24883 /* confdefs.h.  */
24884 _ACEOF
24885 cat confdefs.h >>conftest.$ac_ext
24886 cat >>conftest.$ac_ext <<_ACEOF
24887 /* end confdefs.h.  */
24888
24889 #include <stdio.h>
24890 #include <stdlib.h>
24891 static int iterate = 10;
24892 static int growsdown(int *x)
24893 {
24894     auto int y;
24895     y = (x > &y);
24896     if (--iterate > 0)
24897         y = growsdown(&y);
24898     if (y != (x > &y))
24899         exit(1);
24900     return y;
24901 }
24902 int main(int argc, char *argv[])
24903 {
24904     FILE *f;
24905     auto int x;
24906     if ((f = fopen("conftestval", "w")) == NULL)
24907         exit(1);
24908     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24909     fclose(f);
24910     exit(0);
24911 }
24912
24913
24914 _ACEOF
24915 rm -f conftest$ac_exeext
24916 if { (ac_try="$ac_link"
24917 case "(($ac_try" in
24918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24919   *) ac_try_echo=$ac_try;;
24920 esac
24921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24922   (eval "$ac_link") 2>&5
24923   ac_status=$?
24924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24926   { (case "(($ac_try" in
24927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928   *) ac_try_echo=$ac_try;;
24929 esac
24930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931   (eval "$ac_try") 2>&5
24932   ac_status=$?
24933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934   (exit $ac_status); }; }; then
24935   ac_cv_check_stackgrowth=`cat conftestval`
24936 else
24937   echo "$as_me: program exited with status $ac_status" >&5
24938 echo "$as_me: failed program was:" >&5
24939 sed 's/^/| /' conftest.$ac_ext >&5
24940
24941 ( exit $ac_status )
24942 ac_cv_check_stackgrowth=down
24943 fi
24944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24945 fi
24946
24947
24948 fi
24949 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24950 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24951 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24952     val="-1"
24953 else
24954     val="+1"
24955 fi
24956
24957 cat >>confdefs.h <<_ACEOF
24958 #define PTH_STACKGROWTH $val
24959 _ACEOF
24960
24961
24962   if test ".$ac_cv_check_stackgrowth" = ".down"; then
24963       PTH_STACK_GROWTH="down"
24964   else
24965       PTH_STACK_GROWTH="up"
24966   fi
24967
24968
24969
24970
24971
24972
24973 for ac_func in makecontext
24974 do
24975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24979   echo $ECHO_N "(cached) $ECHO_C" >&6
24980 else
24981   cat >conftest.$ac_ext <<_ACEOF
24982 /* confdefs.h.  */
24983 _ACEOF
24984 cat confdefs.h >>conftest.$ac_ext
24985 cat >>conftest.$ac_ext <<_ACEOF
24986 /* end confdefs.h.  */
24987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24989 #define $ac_func innocuous_$ac_func
24990
24991 /* System header to define __stub macros and hopefully few prototypes,
24992     which can conflict with char $ac_func (); below.
24993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24994     <limits.h> exists even on freestanding compilers.  */
24995
24996 #ifdef __STDC__
24997 # include <limits.h>
24998 #else
24999 # include <assert.h>
25000 #endif
25001
25002 #undef $ac_func
25003
25004 /* Override any GCC internal prototype to avoid an error.
25005    Use char because int might match the return type of a GCC
25006    builtin and then its argument prototype would still apply.  */
25007 #ifdef __cplusplus
25008 extern "C"
25009 #endif
25010 char $ac_func ();
25011 /* The GNU C library defines this for functions which it implements
25012     to always fail with ENOSYS.  Some functions are actually named
25013     something starting with __ and the normal name is an alias.  */
25014 #if defined __stub_$ac_func || defined __stub___$ac_func
25015 choke me
25016 #endif
25017
25018 int
25019 main ()
25020 {
25021 return $ac_func ();
25022   ;
25023   return 0;
25024 }
25025 _ACEOF
25026 rm -f conftest.$ac_objext conftest$ac_exeext
25027 if { (ac_try="$ac_link"
25028 case "(($ac_try" in
25029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030   *) ac_try_echo=$ac_try;;
25031 esac
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033   (eval "$ac_link") 2>conftest.er1
25034   ac_status=$?
25035   grep -v '^ *+' conftest.er1 >conftest.err
25036   rm -f conftest.er1
25037   cat conftest.err >&5
25038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039   (exit $ac_status); } && {
25040          test -z "$ac_c_werror_flag" ||
25041          test ! -s conftest.err
25042        } && test -s conftest$ac_exeext &&
25043        $as_test_x conftest$ac_exeext; then
25044   eval "$as_ac_var=yes"
25045 else
25046   echo "$as_me: failed program was:" >&5
25047 sed 's/^/| /' conftest.$ac_ext >&5
25048
25049         eval "$as_ac_var=no"
25050 fi
25051
25052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25053       conftest$ac_exeext conftest.$ac_ext
25054 fi
25055 ac_res=`eval echo '${'$as_ac_var'}'`
25056                { echo "$as_me:$LINENO: result: $ac_res" >&5
25057 echo "${ECHO_T}$ac_res" >&6; }
25058 if test `eval echo '${'$as_ac_var'}'` = yes; then
25059   cat >>confdefs.h <<_ACEOF
25060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25061 _ACEOF
25062
25063 fi
25064 done
25065
25066
25067 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25068 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25069 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25070   echo $ECHO_N "(cached) $ECHO_C" >&6
25071 else
25072
25073 if test ".$ac_cv_func_makecontext" = .no; then
25074         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25075 else
25076         OCFLAGS="$CFLAGS"
25077     CFLAGS="$CFLAGS -DTEST_makecontext"
25078     cross_compiling=no
25079         if test "$cross_compiling" = yes; then
25080
25081 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25082
25083 else
25084   cat >conftest.$ac_ext <<_ACEOF
25085 /* confdefs.h.  */
25086 _ACEOF
25087 cat confdefs.h >>conftest.$ac_ext
25088 cat >>conftest.$ac_ext <<_ACEOF
25089 /* end confdefs.h.  */
25090
25091 #include <stdio.h>
25092 #include <stdlib.h>
25093 #include <string.h>
25094 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25095 #include <sys/types.h>
25096 #include <signal.h>
25097 #include <unistd.h>
25098 #endif
25099 #if defined(TEST_makecontext)
25100 #include <ucontext.h>
25101 #endif
25102 union alltypes {
25103     long   l;
25104     double d;
25105     void  *vp;
25106     void (*fp)(void);
25107     char  *cp;
25108 };
25109 static volatile char *handler_addr = (char *)0xDEAD;
25110 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25111 static volatile int handler_done = 0;
25112 void handler(int sig)
25113 {
25114     char garbage[1024];
25115     int i;
25116     auto int dummy;
25117     for (i = 0; i < 1024; i++)
25118         garbage[i] = 'X';
25119     handler_addr = (char *)&dummy;
25120     handler_done = 1;
25121     return;
25122 }
25123 #endif
25124 #if defined(TEST_makecontext)
25125 static ucontext_t uc_handler;
25126 static ucontext_t uc_main;
25127 void handler(void)
25128 {
25129     char garbage[1024];
25130     int i;
25131     auto int dummy;
25132     for (i = 0; i < 1024; i++)
25133         garbage[i] = 'X';
25134     handler_addr = (char *)&dummy;
25135     swapcontext(&uc_handler, &uc_main);
25136     return;
25137 }
25138 #endif
25139 int main(int argc, char *argv[])
25140 {
25141     FILE *f;
25142     char *skaddr;
25143     char *skbuf;
25144     int sksize;
25145     char result[1024];
25146     int i;
25147     sksize = 32768;
25148     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25149     if (skbuf == NULL)
25150         exit(1);
25151     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25152         skbuf[i] = 'A';
25153     skaddr = skbuf+sizeof(union alltypes);
25154 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25155     {
25156         struct sigaction sa;
25157 #if defined(TEST_sigstack)
25158         struct sigstack ss;
25159 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25160         stack_t ss;
25161 #else
25162         struct sigaltstack ss;
25163 #endif
25164 #if defined(TEST_sigstack)
25165         ss.ss_sp      = (void *)(skaddr + sksize);
25166         ss.ss_onstack = 0;
25167         if (sigstack(&ss, NULL) < 0)
25168             exit(1);
25169 #elif defined(TEST_sigaltstack)
25170         ss.ss_sp    = (void *)(skaddr + sksize);
25171         ss.ss_size  = sksize;
25172         ss.ss_flags = 0;
25173         if (sigaltstack(&ss, NULL) < 0)
25174             exit(1);
25175 #endif
25176         memset((void *)&sa, 0, sizeof(struct sigaction));
25177         sa.sa_handler = handler;
25178         sa.sa_flags = SA_ONSTACK;
25179         sigemptyset(&sa.sa_mask);
25180         sigaction(SIGUSR1, &sa, NULL);
25181         kill(getpid(), SIGUSR1);
25182         while (!handler_done)
25183             /*nop*/;
25184     }
25185 #endif
25186 #if defined(TEST_makecontext)
25187     {
25188         if (getcontext(&uc_handler) != 0)
25189             exit(1);
25190         uc_handler.uc_link = NULL;
25191         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
25192         uc_handler.uc_stack.ss_size  = sksize;
25193         uc_handler.uc_stack.ss_flags = 0;
25194         makecontext(&uc_handler, handler, 1);
25195         swapcontext(&uc_main, &uc_handler);
25196     }
25197 #endif
25198     if (handler_addr == (char *)0xDEAD)
25199         exit(1);
25200     if (handler_addr < skaddr+sksize) {
25201         /* stack was placed into lower area */
25202         if (*(skaddr+sksize) != 'A')
25203              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25204                      sizeof(union alltypes), sizeof(union alltypes));
25205         else
25206              strcpy(result, "(skaddr)+(sksize),(sksize)");
25207     }
25208     else {
25209         /* stack was placed into higher area */
25210         if (*(skaddr+sksize*2) != 'A')
25211             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25212         else
25213             strcpy(result, "(skaddr),(sksize)");
25214     }
25215     if ((f = fopen("conftestval", "w")) == NULL)
25216         exit(1);
25217     fprintf(f, "%s\n", result);
25218     fclose(f);
25219     exit(0);
25220 }
25221
25222 _ACEOF
25223 rm -f conftest$ac_exeext
25224 if { (ac_try="$ac_link"
25225 case "(($ac_try" in
25226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25227   *) ac_try_echo=$ac_try;;
25228 esac
25229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25230   (eval "$ac_link") 2>&5
25231   ac_status=$?
25232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25234   { (case "(($ac_try" in
25235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25236   *) ac_try_echo=$ac_try;;
25237 esac
25238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25239   (eval "$ac_try") 2>&5
25240   ac_status=$?
25241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242   (exit $ac_status); }; }; then
25243
25244 ac_cv_stacksetup_makecontext=`cat conftestval`
25245 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25246
25247 else
25248   echo "$as_me: program exited with status $ac_status" >&5
25249 echo "$as_me: failed program was:" >&5
25250 sed 's/^/| /' conftest.$ac_ext >&5
25251
25252 ( exit $ac_status )
25253
25254 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25255
25256 fi
25257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25258 fi
25259
25260
25261 CFLAGS="$OCFLAGS"
25262
25263 fi
25264 fi
25265 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25266 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25267 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25268 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25269 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25270 { echo "$as_me:$LINENO: result: $type" >&5
25271 echo "${ECHO_T}$type" >&6; }
25272 if test ".$verbose" = .yes; then
25273     { echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
25274 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6; }
25275 fi
25276
25277 if test ".$verbose" = .yes; then
25278     { echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
25279 echo "${ECHO_T}  $pth_sksize_makecontext" >&6; }
25280 fi
25281
25282
25283 fi
25284
25285 #########################################
25286 ## Check for libraries extra-dependencies
25287 ##
25288
25289
25290   { echo "$as_me:$LINENO: result: " >&5
25291 echo "${ECHO_T}" >&6; }
25292   { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25293 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25294
25295
25296 { echo "$as_me:$LINENO: checking for csdp" >&5
25297 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25298 SIMGRID_DEP=""
25299 sdp=no
25300 { echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
25301 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6; }
25302 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
25303   echo $ECHO_N "(cached) $ECHO_C" >&6
25304 else
25305   ac_check_lib_save_LIBS=$LIBS
25306 LIBS="-lsdp -llapack -lblas -lm $LIBS"
25307 cat >conftest.$ac_ext <<_ACEOF
25308 /* confdefs.h.  */
25309 _ACEOF
25310 cat confdefs.h >>conftest.$ac_ext
25311 cat >>conftest.$ac_ext <<_ACEOF
25312 /* end confdefs.h.  */
25313
25314 /* Override any GCC internal prototype to avoid an error.
25315    Use char because int might match the return type of a GCC
25316    builtin and then its argument prototype would still apply.  */
25317 #ifdef __cplusplus
25318 extern "C"
25319 #endif
25320 char sdp ();
25321 int
25322 main ()
25323 {
25324 return sdp ();
25325   ;
25326   return 0;
25327 }
25328 _ACEOF
25329 rm -f conftest.$ac_objext conftest$ac_exeext
25330 if { (ac_try="$ac_link"
25331 case "(($ac_try" in
25332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333   *) ac_try_echo=$ac_try;;
25334 esac
25335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25336   (eval "$ac_link") 2>conftest.er1
25337   ac_status=$?
25338   grep -v '^ *+' conftest.er1 >conftest.err
25339   rm -f conftest.er1
25340   cat conftest.err >&5
25341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342   (exit $ac_status); } && {
25343          test -z "$ac_c_werror_flag" ||
25344          test ! -s conftest.err
25345        } && test -s conftest$ac_exeext &&
25346        $as_test_x conftest$ac_exeext; then
25347   ac_cv_lib_sdp_sdp=yes
25348 else
25349   echo "$as_me: failed program was:" >&5
25350 sed 's/^/| /' conftest.$ac_ext >&5
25351
25352         ac_cv_lib_sdp_sdp=no
25353 fi
25354
25355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25356       conftest$ac_exeext conftest.$ac_ext
25357 LIBS=$ac_check_lib_save_LIBS
25358 fi
25359 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
25360 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6; }
25361 if test $ac_cv_lib_sdp_sdp = yes; then
25362   csdp=yes
25363 else
25364   csdp=no
25365 fi
25366
25367 if test "x$csdp" = xyes; then
25368   SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
25369   { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25370 echo "${ECHO_T}Found working sdp library." >&6; }
25371 else
25372   { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25373 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25374 fi;
25375
25376
25377 if test x$csdp != xno; then
25378   HAVE_SDP_TRUE=
25379   HAVE_SDP_FALSE='#'
25380 else
25381   HAVE_SDP_TRUE='#'
25382   HAVE_SDP_FALSE=
25383 fi
25384
25385
25386
25387
25388 GRAS_DEP=""
25389 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25390 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25391 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25392   echo $ECHO_N "(cached) $ECHO_C" >&6
25393 else
25394   ac_check_lib_save_LIBS=$LIBS
25395 LIBS="-lnsl  $LIBS"
25396 cat >conftest.$ac_ext <<_ACEOF
25397 /* confdefs.h.  */
25398 _ACEOF
25399 cat confdefs.h >>conftest.$ac_ext
25400 cat >>conftest.$ac_ext <<_ACEOF
25401 /* end confdefs.h.  */
25402
25403 /* Override any GCC internal prototype to avoid an error.
25404    Use char because int might match the return type of a GCC
25405    builtin and then its argument prototype would still apply.  */
25406 #ifdef __cplusplus
25407 extern "C"
25408 #endif
25409 char gethostbyname ();
25410 int
25411 main ()
25412 {
25413 return gethostbyname ();
25414   ;
25415   return 0;
25416 }
25417 _ACEOF
25418 rm -f conftest.$ac_objext conftest$ac_exeext
25419 if { (ac_try="$ac_link"
25420 case "(($ac_try" in
25421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25422   *) ac_try_echo=$ac_try;;
25423 esac
25424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25425   (eval "$ac_link") 2>conftest.er1
25426   ac_status=$?
25427   grep -v '^ *+' conftest.er1 >conftest.err
25428   rm -f conftest.er1
25429   cat conftest.err >&5
25430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431   (exit $ac_status); } && {
25432          test -z "$ac_c_werror_flag" ||
25433          test ! -s conftest.err
25434        } && test -s conftest$ac_exeext &&
25435        $as_test_x conftest$ac_exeext; then
25436   ac_cv_lib_nsl_gethostbyname=yes
25437 else
25438   echo "$as_me: failed program was:" >&5
25439 sed 's/^/| /' conftest.$ac_ext >&5
25440
25441         ac_cv_lib_nsl_gethostbyname=no
25442 fi
25443
25444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25445       conftest$ac_exeext conftest.$ac_ext
25446 LIBS=$ac_check_lib_save_LIBS
25447 fi
25448 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25449 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25450 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25451   GRAS_DEP="$GRAS_DEP -lnsl"
25452 fi
25453
25454 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25455 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25456 if test "${ac_cv_lib_socket_connect+set}" = set; then
25457   echo $ECHO_N "(cached) $ECHO_C" >&6
25458 else
25459   ac_check_lib_save_LIBS=$LIBS
25460 LIBS="-lsocket  $LIBS"
25461 cat >conftest.$ac_ext <<_ACEOF
25462 /* confdefs.h.  */
25463 _ACEOF
25464 cat confdefs.h >>conftest.$ac_ext
25465 cat >>conftest.$ac_ext <<_ACEOF
25466 /* end confdefs.h.  */
25467
25468 /* Override any GCC internal prototype to avoid an error.
25469    Use char because int might match the return type of a GCC
25470    builtin and then its argument prototype would still apply.  */
25471 #ifdef __cplusplus
25472 extern "C"
25473 #endif
25474 char connect ();
25475 int
25476 main ()
25477 {
25478 return connect ();
25479   ;
25480   return 0;
25481 }
25482 _ACEOF
25483 rm -f conftest.$ac_objext conftest$ac_exeext
25484 if { (ac_try="$ac_link"
25485 case "(($ac_try" in
25486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25487   *) ac_try_echo=$ac_try;;
25488 esac
25489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25490   (eval "$ac_link") 2>conftest.er1
25491   ac_status=$?
25492   grep -v '^ *+' conftest.er1 >conftest.err
25493   rm -f conftest.er1
25494   cat conftest.err >&5
25495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496   (exit $ac_status); } && {
25497          test -z "$ac_c_werror_flag" ||
25498          test ! -s conftest.err
25499        } && test -s conftest$ac_exeext &&
25500        $as_test_x conftest$ac_exeext; then
25501   ac_cv_lib_socket_connect=yes
25502 else
25503   echo "$as_me: failed program was:" >&5
25504 sed 's/^/| /' conftest.$ac_ext >&5
25505
25506         ac_cv_lib_socket_connect=no
25507 fi
25508
25509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25510       conftest$ac_exeext conftest.$ac_ext
25511 LIBS=$ac_check_lib_save_LIBS
25512 fi
25513 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25514 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25515 if test $ac_cv_lib_socket_connect = yes; then
25516   GRAS_DEP="$GRAS_DEP -lsocket"
25517 fi
25518
25519
25520 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25521 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25522 case $host_os in
25523   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32" ;;
25524 esac
25525
25526 if test "x$GRAS_DEP" = x; then
25527    { echo "$as_me:$LINENO: result: none" >&5
25528 echo "${ECHO_T}none" >&6; }
25529 else
25530    { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25531 echo "${ECHO_T}$GRAS_DEP" >&6; }
25532 fi
25533
25534
25535 ##############################################
25536 ## Enhance maintainer mode and SUBST variables
25537 ## (must be placed after any compilation tests since our overprotective flags
25538 ##  let some tests fail)
25539
25540 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25541 # Next line is modified by sed when building gramine source tree
25542 gramine_mode=no
25543 if test x$gramine_mode = xyes
25544 then
25545   USE_MAINTAINER_MODE=no
25546 fi
25547
25548
25549 if test x$gramine_mode != xno; then
25550   GRAMINE_MODE_TRUE=
25551   GRAMINE_MODE_FALSE='#'
25552 else
25553   GRAMINE_MODE_TRUE='#'
25554   GRAMINE_MODE_FALSE=
25555 fi
25556
25557
25558
25559 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25560 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25561     # Check whether --enable-maintainer-mode was given.
25562 if test "${enable_maintainer_mode+set}" = set; then
25563   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25564 else
25565   USE_MAINTAINER_MODE=no
25566 fi
25567
25568   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25569 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25570
25571
25572 if test $USE_MAINTAINER_MODE = yes; then
25573   MAINTAINER_MODE_TRUE=
25574   MAINTAINER_MODE_FALSE='#'
25575 else
25576   MAINTAINER_MODE_TRUE='#'
25577   MAINTAINER_MODE_FALSE=
25578 fi
25579
25580   MAINT=$MAINTAINER_MODE_TRUE
25581
25582
25583 if test x$USE_MAINTAINER_MODE = xyes
25584 then
25585    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25586    enable_compile_warnings=yes
25587 fi
25588
25589   # Check whether --enable-compile-warnings was given.
25590 if test "${enable_compile_warnings+set}" = set; then
25591   enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25592 else
25593   enable_compile_warnings=no
25594 fi
25595
25596
25597   # Check whether --enable-compile-optimizations was given.
25598 if test "${enable_compile_optimizations+set}" = set; then
25599   enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25600 else
25601   enable_compile_optimizations=auto
25602 fi
25603
25604
25605   if test "x$cflags_set" != "xyes" ; then
25606     # if user didn't specify CFLAGS explicitely
25607
25608     # AC PROG CC tests whether -g is accepted.
25609     # Cool, but it also tries to set -O2. I don't want it with gcc
25610     saveCFLAGS="$CFLAGS"
25611     CFLAGS=
25612     case " $saveCFLAGS " in
25613     *-g*) CFLAGS="-g" ;;
25614     esac
25615     case " $saveCFLAGS " in
25616     *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25617     esac
25618
25619     # damn AC PROG CC, why did you set -O??
25620     CFLAGS="-g"
25621   fi
25622
25623   if test "x$enable_compile_warnings" = "xyes" ; then
25624     { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25625 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25626     warnCFLAGS=
25627     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25628       case " $CFLAGS " in
25629       *-Wall*) ;;
25630       *) warnCFLAGS="-Wall -Wunused" ;;
25631       esac
25632
25633       ## -W is not all that useful.  And it cannot be controlled
25634       ## with individual -Wno-xxx flags, unlike -Wall
25635
25636       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25637       ## -Wshadow chokes on try{ try{} } constructs
25638       if test "x$enable_compile_warnings" = "xyes"; then
25639         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
25640         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25641         -Wno-unused-function  \
25642         -Werror \
25643         | sed 's/ +/ /g'`
25644         # -Wno-unused-variable  -Wno-unused-label
25645       fi
25646     fi
25647     { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25648 echo "${ECHO_T}$warnCFLAGS" >&6; }
25649     # placed before since gcc remembers the last one on conflict
25650     CFLAGS="$warnCFLAGS $CFLAGS"
25651   fi
25652
25653   if test "x$enable_compile_optimizations" = "xyes" ||
25654      test "x$enable_compile_optimizations" = "xauto" ; then
25655     { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25656 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25657     optCFLAGS=
25658     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25659         case " $CFLAGS " in
25660         *-O*) ;;
25661         *) optCFLAGS="$optCFLAGS -O3" ;;
25662         esac
25663         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25664
25665         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25666         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25667         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25668           # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25669           # isn't propagated enough to desserve an extra check
25670
25671           # Note that the flag didn't exist before gcc 3.0
25672           optCFLAGS="$optCFLAGS -fno-loop-optimize"
25673         fi
25674             fi
25675     { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25676 echo "${ECHO_T}$optCFLAGS" >&6; }
25677     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25678     if test "x$cflags_set" != "xyes" ; then
25679       CFLAGS="$optCFLAGS $CFLAGS"
25680     fi
25681   fi
25682
25683   if test x$lt_cv_prog_gnu_ld = xyes ; then
25684     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25685   else
25686     LD_DYNAMIC_FLAGS=
25687   fi
25688
25689
25690
25691
25692
25693
25694
25695
25696
25697
25698
25699
25700 #####################
25701 ## Check for programs
25702 ##
25703
25704
25705   { echo "$as_me:$LINENO: result: " >&5
25706 echo "${ECHO_T}" >&6; }
25707   { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
25708 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
25709
25710 # Extract the first word of "bash", so it can be a program name with args.
25711 set dummy bash; ac_word=$2
25712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25714 if test "${ac_cv_prog_BASH+set}" = set; then
25715   echo $ECHO_N "(cached) $ECHO_C" >&6
25716 else
25717   if test -n "$BASH"; then
25718   ac_cv_prog_BASH="$BASH" # Let the user override the test.
25719 else
25720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25721 for as_dir in $PATH
25722 do
25723   IFS=$as_save_IFS
25724   test -z "$as_dir" && as_dir=.
25725   for ac_exec_ext in '' $ac_executable_extensions; do
25726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25727     ac_cv_prog_BASH="`which bash`"
25728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25729     break 2
25730   fi
25731 done
25732 done
25733 IFS=$as_save_IFS
25734
25735   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25736 fi
25737 fi
25738 BASH=$ac_cv_prog_BASH
25739 if test -n "$BASH"; then
25740   { echo "$as_me:$LINENO: result: $BASH" >&5
25741 echo "${ECHO_T}$BASH" >&6; }
25742 else
25743   { echo "$as_me:$LINENO: result: no" >&5
25744 echo "${ECHO_T}no" >&6; }
25745 fi
25746
25747
25748 WARNING="This file is generated, do not edit"
25749
25750
25751
25752 # Can we rebuild the parsers?
25753 # We really want flex and refuse other lex. So, the parser is portable and
25754 # does not induce extra lib dependency
25755 for ac_prog in flex lex
25756 do
25757   # Extract the first word of "$ac_prog", so it can be a program name with args.
25758 set dummy $ac_prog; ac_word=$2
25759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25761 if test "${ac_cv_prog_LEX+set}" = set; then
25762   echo $ECHO_N "(cached) $ECHO_C" >&6
25763 else
25764   if test -n "$LEX"; then
25765   ac_cv_prog_LEX="$LEX" # Let the user override the test.
25766 else
25767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25768 for as_dir in $PATH
25769 do
25770   IFS=$as_save_IFS
25771   test -z "$as_dir" && as_dir=.
25772   for ac_exec_ext in '' $ac_executable_extensions; do
25773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25774     ac_cv_prog_LEX="$ac_prog"
25775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25776     break 2
25777   fi
25778 done
25779 done
25780 IFS=$as_save_IFS
25781
25782 fi
25783 fi
25784 LEX=$ac_cv_prog_LEX
25785 if test -n "$LEX"; then
25786   { echo "$as_me:$LINENO: result: $LEX" >&5
25787 echo "${ECHO_T}$LEX" >&6; }
25788 else
25789   { echo "$as_me:$LINENO: result: no" >&5
25790 echo "${ECHO_T}no" >&6; }
25791 fi
25792
25793
25794   test -n "$LEX" && break
25795 done
25796 test -n "$LEX" || LEX=":"
25797
25798 if test "x$LEX" != "x:"; then
25799   cat >conftest.l <<_ACEOF
25800 %%
25801 a { ECHO; }
25802 b { REJECT; }
25803 c { yymore (); }
25804 d { yyless (1); }
25805 e { yyless (input () != 0); }
25806 f { unput (yytext[0]); }
25807 . { BEGIN INITIAL; }
25808 %%
25809 #ifdef YYTEXT_POINTER
25810 extern char *yytext;
25811 #endif
25812 int
25813 main (void)
25814 {
25815   return ! yylex () + ! yywrap ();
25816 }
25817 _ACEOF
25818 { (ac_try="$LEX conftest.l"
25819 case "(($ac_try" in
25820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25821   *) ac_try_echo=$ac_try;;
25822 esac
25823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25824   (eval "$LEX conftest.l") 2>&5
25825   ac_status=$?
25826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25827   (exit $ac_status); }
25828 { echo "$as_me:$LINENO: checking lex output file root" >&5
25829 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
25830 if test "${ac_cv_prog_lex_root+set}" = set; then
25831   echo $ECHO_N "(cached) $ECHO_C" >&6
25832 else
25833
25834 if test -f lex.yy.c; then
25835   ac_cv_prog_lex_root=lex.yy
25836 elif test -f lexyy.c; then
25837   ac_cv_prog_lex_root=lexyy
25838 else
25839   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25840 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25841    { (exit 1); exit 1; }; }
25842 fi
25843 fi
25844 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25845 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
25846 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25847
25848 if test -z "${LEXLIB+set}"; then
25849   { echo "$as_me:$LINENO: checking lex library" >&5
25850 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
25851 if test "${ac_cv_lib_lex+set}" = set; then
25852   echo $ECHO_N "(cached) $ECHO_C" >&6
25853 else
25854
25855     ac_save_LIBS=$LIBS
25856     ac_cv_lib_lex='none needed'
25857     for ac_lib in '' -lfl -ll; do
25858       LIBS="$ac_lib $ac_save_LIBS"
25859       cat >conftest.$ac_ext <<_ACEOF
25860 `cat $LEX_OUTPUT_ROOT.c`
25861 _ACEOF
25862 rm -f conftest.$ac_objext conftest$ac_exeext
25863 if { (ac_try="$ac_link"
25864 case "(($ac_try" in
25865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866   *) ac_try_echo=$ac_try;;
25867 esac
25868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25869   (eval "$ac_link") 2>conftest.er1
25870   ac_status=$?
25871   grep -v '^ *+' conftest.er1 >conftest.err
25872   rm -f conftest.er1
25873   cat conftest.err >&5
25874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875   (exit $ac_status); } && {
25876          test -z "$ac_c_werror_flag" ||
25877          test ! -s conftest.err
25878        } && test -s conftest$ac_exeext &&
25879        $as_test_x conftest$ac_exeext; then
25880   ac_cv_lib_lex=$ac_lib
25881 else
25882   echo "$as_me: failed program was:" >&5
25883 sed 's/^/| /' conftest.$ac_ext >&5
25884
25885
25886 fi
25887
25888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25889       conftest$ac_exeext conftest.$ac_ext
25890       test "$ac_cv_lib_lex" != 'none needed' && break
25891     done
25892     LIBS=$ac_save_LIBS
25893
25894 fi
25895 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
25896 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
25897   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
25898 fi
25899
25900
25901 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
25902 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
25903 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
25904   echo $ECHO_N "(cached) $ECHO_C" >&6
25905 else
25906   # POSIX says lex can declare yytext either as a pointer or an array; the
25907 # default is implementation-dependent.  Figure out which it is, since
25908 # not all implementations provide the %pointer and %array declarations.
25909 ac_cv_prog_lex_yytext_pointer=no
25910 ac_save_LIBS=$LIBS
25911 LIBS="$LEXLIB $ac_save_LIBS"
25912 cat >conftest.$ac_ext <<_ACEOF
25913 #define YYTEXT_POINTER 1
25914 `cat $LEX_OUTPUT_ROOT.c`
25915 _ACEOF
25916 rm -f conftest.$ac_objext conftest$ac_exeext
25917 if { (ac_try="$ac_link"
25918 case "(($ac_try" in
25919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25920   *) ac_try_echo=$ac_try;;
25921 esac
25922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25923   (eval "$ac_link") 2>conftest.er1
25924   ac_status=$?
25925   grep -v '^ *+' conftest.er1 >conftest.err
25926   rm -f conftest.er1
25927   cat conftest.err >&5
25928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929   (exit $ac_status); } && {
25930          test -z "$ac_c_werror_flag" ||
25931          test ! -s conftest.err
25932        } && test -s conftest$ac_exeext &&
25933        $as_test_x conftest$ac_exeext; then
25934   ac_cv_prog_lex_yytext_pointer=yes
25935 else
25936   echo "$as_me: failed program was:" >&5
25937 sed 's/^/| /' conftest.$ac_ext >&5
25938
25939
25940 fi
25941
25942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25943       conftest$ac_exeext conftest.$ac_ext
25944 LIBS=$ac_save_LIBS
25945
25946 fi
25947 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
25948 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
25949 if test $ac_cv_prog_lex_yytext_pointer = yes; then
25950
25951 cat >>confdefs.h <<\_ACEOF
25952 #define YYTEXT_POINTER 1
25953 _ACEOF
25954
25955 fi
25956 rm -f conftest.l $LEX_OUTPUT_ROOT.c
25957
25958 fi
25959
25960   if test "$LEX" != flex; then
25961     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
25962 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
25963     LEX=${am_missing_run}flex
25964     LEXLIB=''
25965
25966   else
25967     if test "x2.5.30" != "x" ; then
25968                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
25969
25970       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25971       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25972       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25973
25974       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
25975       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
25976       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
25977
25978       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
25979          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
25980          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
25981       then
25982         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
25983 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
25984         LEX=${am_missing_run}flex
25985         LEXLIB=''
25986
25987       else
25988         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
25989 echo "$as_me: Flex found. Parsers will get updated" >&6;}
25990       fi
25991     fi
25992   fi
25993
25994
25995 # Can we rebuild the xml-lexers from the XML specification?
25996 # if not, simply touch the flex source files (which are distributed in
25997 #  tarballs even if generated by flexml) and hope for the best.
25998 # Extract the first word of "flexml", so it can be a program name with args.
25999 set dummy flexml; ac_word=$2
26000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26002 if test "${ac_cv_prog_FLEXML+set}" = set; then
26003   echo $ECHO_N "(cached) $ECHO_C" >&6
26004 else
26005   if test -n "$FLEXML"; then
26006   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26007 else
26008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26009 for as_dir in $PATH
26010 do
26011   IFS=$as_save_IFS
26012   test -z "$as_dir" && as_dir=.
26013   for ac_exec_ext in '' $ac_executable_extensions; do
26014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26015     ac_cv_prog_FLEXML="`which flexml`"
26016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26017     break 2
26018   fi
26019 done
26020 done
26021 IFS=$as_save_IFS
26022
26023   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26024 fi
26025 fi
26026 FLEXML=$ac_cv_prog_FLEXML
26027 if test -n "$FLEXML"; then
26028   { echo "$as_me:$LINENO: result: $FLEXML" >&5
26029 echo "${ECHO_T}$FLEXML" >&6; }
26030 else
26031   { echo "$as_me:$LINENO: result: no" >&5
26032 echo "${ECHO_T}no" >&6; }
26033 fi
26034
26035
26036
26037
26038 if test x$FLEXML != xNOTFOUND; then
26039   HAVE_FLEXML_TRUE=
26040   HAVE_FLEXML_FALSE='#'
26041 else
26042   HAVE_FLEXML_TRUE='#'
26043   HAVE_FLEXML_FALSE=
26044 fi
26045
26046
26047 if test x$USE_MAINTAINER_MODE = xyes
26048 then
26049    # Check for doxygen when in maintainer mode since dist* targets fail
26050    # without it
26051    # Extract the first word of "doxygen", so it can be a program name with args.
26052 set dummy doxygen; ac_word=$2
26053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26055 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26056   echo $ECHO_N "(cached) $ECHO_C" >&6
26057 else
26058   case $DOXYGEN in
26059   [\\/]* | ?:[\\/]*)
26060   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26061   ;;
26062   *)
26063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26064 for as_dir in $PATH
26065 do
26066   IFS=$as_save_IFS
26067   test -z "$as_dir" && as_dir=.
26068   for ac_exec_ext in '' $ac_executable_extensions; do
26069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26070     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26072     break 2
26073   fi
26074 done
26075 done
26076 IFS=$as_save_IFS
26077
26078   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26079   ;;
26080 esac
26081 fi
26082 DOXYGEN=$ac_cv_path_DOXYGEN
26083 if test -n "$DOXYGEN"; then
26084   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26085 echo "${ECHO_T}$DOXYGEN" >&6; }
26086 else
26087   { echo "$as_me:$LINENO: result: no" >&5
26088 echo "${ECHO_T}no" >&6; }
26089 fi
26090
26091
26092    if test x$DOXYGEN = x ; then
26093      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26094 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26095    { (exit 1); exit 1; }; }
26096    fi
26097 fi
26098
26099 # Can we extract really usable backtraces? (also need the popen function)
26100 # Extract the first word of "addr2line", so it can be a program name with args.
26101 set dummy addr2line; ac_word=$2
26102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26104 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26105   echo $ECHO_N "(cached) $ECHO_C" >&6
26106 else
26107   case $ADDR2LINE in
26108   [\\/]* | ?:[\\/]*)
26109   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26110   ;;
26111   *)
26112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26113 for as_dir in $PATH
26114 do
26115   IFS=$as_save_IFS
26116   test -z "$as_dir" && as_dir=.
26117   for ac_exec_ext in '' $ac_executable_extensions; do
26118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26119     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26121     break 2
26122   fi
26123 done
26124 done
26125 IFS=$as_save_IFS
26126
26127   ;;
26128 esac
26129 fi
26130 ADDR2LINE=$ac_cv_path_ADDR2LINE
26131 if test -n "$ADDR2LINE"; then
26132   { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26133 echo "${ECHO_T}$ADDR2LINE" >&6; }
26134 else
26135   { echo "$as_me:$LINENO: result: no" >&5
26136 echo "${ECHO_T}no" >&6; }
26137 fi
26138
26139
26140 if test x$ADDR2LINE != x ; then
26141
26142 cat >>confdefs.h <<_ACEOF
26143 #define ADDR2LINE "$ADDR2LINE"
26144 _ACEOF
26145
26146 fi
26147
26148
26149 # Can we make status line about the compilation result?
26150 # Extract the first word of "md5sum", so it can be a program name with args.
26151 set dummy md5sum; ac_word=$2
26152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26154 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26155   echo $ECHO_N "(cached) $ECHO_C" >&6
26156 else
26157   if test -n "$MD5SUM"; then
26158   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26159 else
26160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26161 for as_dir in $PATH
26162 do
26163   IFS=$as_save_IFS
26164   test -z "$as_dir" && as_dir=.
26165   for ac_exec_ext in '' $ac_executable_extensions; do
26166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26167     ac_cv_prog_MD5SUM="`which md5sum`"
26168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26169     break 2
26170   fi
26171 done
26172 done
26173 IFS=$as_save_IFS
26174
26175 fi
26176 fi
26177 MD5SUM=$ac_cv_prog_MD5SUM
26178 if test -n "$MD5SUM"; then
26179   { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26180 echo "${ECHO_T}$MD5SUM" >&6; }
26181 else
26182   { echo "$as_me:$LINENO: result: no" >&5
26183 echo "${ECHO_T}no" >&6; }
26184 fi
26185
26186
26187 if test x$MD5SUM != xno ; then
26188   build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26189                  xargs cat| $MD5SUM | sed 's/ .*$//'`
26190 else
26191   build_version="no_md5sum_binary"
26192 fi
26193 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26194
26195
26196 ###################
26197 ## Makes the output
26198 ##
26199
26200
26201 #
26202 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
26203 #  src/amok/Makefile
26204
26205
26206   { echo "$as_me:$LINENO: result: " >&5
26207 echo "${ECHO_T}" >&6; }
26208   { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26209 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26210
26211
26212 # Core of the libraries
26213
26214 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26215
26216
26217 # Tools being embeeded in gramine (stub generator)
26218 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile"
26219
26220
26221 # GRAMINE_CUT_BEGIN
26222
26223 # Tools NOT being embeeded in gramine
26224 ac_config_files="$ac_config_files tools/graspe-slave"
26225
26226
26227 # Testsuite
26228
26229 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26230
26231
26232 # Documentation
26233 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26234
26235
26236 # Examples
26237
26238 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/msg/run_msg_test examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/ping/test_sg examples/gras/ping/test_rl examples/gras/rpc/Makefile examples/gras/rpc/test_sg examples/gras/rpc/test_rl examples/gras/timer/Makefile examples/gras/timer/test_sg examples/gras/timer/test_rl examples/gras/chrono/Makefile examples/gras/chrono/test_sg examples/gras/chrono/test_rl examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl examples/gras/mmrpc/Makefile examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl examples/gras/pmm/Makefile examples/gras/pmm/test_sg examples/gras/pmm/test_rl examples/gras/all2all/Makefile examples/gras/all2all/test_sg examples/gras/all2all/test_rl examples/gras/p2p/Makefile examples/gras/p2p/chord/Makefile examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl examples/gras/p2p/can/Makefile examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl examples/amok/Makefile examples/amok/bandwidth/Makefile examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl examples/amok/saturate/Makefile examples/amok/saturate/test_sg examples/amok/saturate/test_rl"
26239
26240
26241 #     examples/gras/chord/test_sg  examples/gras/chord/test_rl   \
26242 #    examples/gras/pastry/test_sg
26243
26244
26245
26246 #    examples/gras/saturate/Makefile  examples/gras/saturate/test_sg
26247 #    examples/gras/alnem/Makefile     examples/gras/alnem/test_sg
26248
26249
26250 # GRAMINE_CUT_END
26251
26252 cat >confcache <<\_ACEOF
26253 # This file is a shell script that caches the results of configure
26254 # tests run on this system so they can be shared between configure
26255 # scripts and configure runs, see configure's option --config-cache.
26256 # It is not useful on other systems.  If it contains results you don't
26257 # want to keep, you may remove or edit it.
26258 #
26259 # config.status only pays attention to the cache file if you give it
26260 # the --recheck option to rerun configure.
26261 #
26262 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26263 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26264 # following values.
26265
26266 _ACEOF
26267
26268 # The following way of writing the cache mishandles newlines in values,
26269 # but we know of no workaround that is simple, portable, and efficient.
26270 # So, we kill variables containing newlines.
26271 # Ultrix sh set writes to stderr and can't be redirected directly,
26272 # and sets the high bit in the cache file unless we assign to the vars.
26273 (
26274   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26275     eval ac_val=\$$ac_var
26276     case $ac_val in #(
26277     *${as_nl}*)
26278       case $ac_var in #(
26279       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26280 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26281       esac
26282       case $ac_var in #(
26283       _ | IFS | as_nl) ;; #(
26284       *) $as_unset $ac_var ;;
26285       esac ;;
26286     esac
26287   done
26288
26289   (set) 2>&1 |
26290     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26291     *${as_nl}ac_space=\ *)
26292       # `set' does not quote correctly, so add quotes (double-quote
26293       # substitution turns \\\\ into \\, and sed turns \\ into \).
26294       sed -n \
26295         "s/'/'\\\\''/g;
26296           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26297       ;; #(
26298     *)
26299       # `set' quotes correctly as required by POSIX, so do not add quotes.
26300       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26301       ;;
26302     esac |
26303     sort
26304 ) |
26305   sed '
26306      /^ac_cv_env_/b end
26307      t clear
26308      :clear
26309      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26310      t end
26311      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26312      :end' >>confcache
26313 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26314   if test -w "$cache_file"; then
26315     test "x$cache_file" != "x/dev/null" &&
26316       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26317 echo "$as_me: updating cache $cache_file" >&6;}
26318     cat confcache >$cache_file
26319   else
26320     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26321 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26322   fi
26323 fi
26324 rm -f confcache
26325
26326 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26327 # Let make expand exec_prefix.
26328 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26329
26330 DEFS=-DHAVE_CONFIG_H
26331
26332 ac_libobjs=
26333 ac_ltlibobjs=
26334 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26335   # 1. Remove the extension, and $U if already installed.
26336   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26337   ac_i=`echo "$ac_i" | sed "$ac_script"`
26338   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26339   #    will be set to the directory where LIBOBJS objects are built.
26340   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26341   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26342 done
26343 LIBOBJS=$ac_libobjs
26344
26345 LTLIBOBJS=$ac_ltlibobjs
26346
26347
26348 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26349   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26350 Usually this means the macro was only invoked conditionally." >&5
26351 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26352 Usually this means the macro was only invoked conditionally." >&2;}
26353    { (exit 1); exit 1; }; }
26354 fi
26355 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26356   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26357 Usually this means the macro was only invoked conditionally." >&5
26358 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26359 Usually this means the macro was only invoked conditionally." >&2;}
26360    { (exit 1); exit 1; }; }
26361 fi
26362 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26363   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26364 Usually this means the macro was only invoked conditionally." >&5
26365 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26366 Usually this means the macro was only invoked conditionally." >&2;}
26367    { (exit 1); exit 1; }; }
26368 fi
26369 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26370   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26371 Usually this means the macro was only invoked conditionally." >&5
26372 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26373 Usually this means the macro was only invoked conditionally." >&2;}
26374    { (exit 1); exit 1; }; }
26375 fi
26376 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26377   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26378 Usually this means the macro was only invoked conditionally." >&5
26379 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26380 Usually this means the macro was only invoked conditionally." >&2;}
26381    { (exit 1); exit 1; }; }
26382 fi
26383 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26384   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26385 Usually this means the macro was only invoked conditionally." >&5
26386 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26387 Usually this means the macro was only invoked conditionally." >&2;}
26388    { (exit 1); exit 1; }; }
26389 fi
26390 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26391   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26392 Usually this means the macro was only invoked conditionally." >&5
26393 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26394 Usually this means the macro was only invoked conditionally." >&2;}
26395    { (exit 1); exit 1; }; }
26396 fi
26397 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
26398   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
26399 Usually this means the macro was only invoked conditionally." >&5
26400 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
26401 Usually this means the macro was only invoked conditionally." >&2;}
26402    { (exit 1); exit 1; }; }
26403 fi
26404
26405 : ${CONFIG_STATUS=./config.status}
26406 ac_clean_files_save=$ac_clean_files
26407 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26408 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26409 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26410 cat >$CONFIG_STATUS <<_ACEOF
26411 #! $SHELL
26412 # Generated by $as_me.
26413 # Run this file to recreate the current configuration.
26414 # Compiler output produced by configure, useful for debugging
26415 # configure, is in config.log if it exists.
26416
26417 debug=false
26418 ac_cs_recheck=false
26419 ac_cs_silent=false
26420 SHELL=\${CONFIG_SHELL-$SHELL}
26421 _ACEOF
26422
26423 cat >>$CONFIG_STATUS <<\_ACEOF
26424 ## --------------------- ##
26425 ## M4sh Initialization.  ##
26426 ## --------------------- ##
26427
26428 # Be more Bourne compatible
26429 DUALCASE=1; export DUALCASE # for MKS sh
26430 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26431   emulate sh
26432   NULLCMD=:
26433   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26434   # is contrary to our usage.  Disable this feature.
26435   alias -g '${1+"$@"}'='"$@"'
26436   setopt NO_GLOB_SUBST
26437 else
26438   case `(set -o) 2>/dev/null` in
26439   *posix*) set -o posix ;;
26440 esac
26441
26442 fi
26443
26444
26445
26446
26447 # PATH needs CR
26448 # Avoid depending upon Character Ranges.
26449 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26450 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26451 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26452 as_cr_digits='0123456789'
26453 as_cr_alnum=$as_cr_Letters$as_cr_digits
26454
26455 # The user is always right.
26456 if test "${PATH_SEPARATOR+set}" != set; then
26457   echo "#! /bin/sh" >conf$$.sh
26458   echo  "exit 0"   >>conf$$.sh
26459   chmod +x conf$$.sh
26460   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26461     PATH_SEPARATOR=';'
26462   else
26463     PATH_SEPARATOR=:
26464   fi
26465   rm -f conf$$.sh
26466 fi
26467
26468 # Support unset when possible.
26469 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26470   as_unset=unset
26471 else
26472   as_unset=false
26473 fi
26474
26475
26476 # IFS
26477 # We need space, tab and new line, in precisely that order.  Quoting is
26478 # there to prevent editors from complaining about space-tab.
26479 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26480 # splitting by setting IFS to empty value.)
26481 as_nl='
26482 '
26483 IFS=" ""        $as_nl"
26484
26485 # Find who we are.  Look in the path if we contain no directory separator.
26486 case $0 in
26487   *[\\/]* ) as_myself=$0 ;;
26488   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26489 for as_dir in $PATH
26490 do
26491   IFS=$as_save_IFS
26492   test -z "$as_dir" && as_dir=.
26493   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26494 done
26495 IFS=$as_save_IFS
26496
26497      ;;
26498 esac
26499 # We did not find ourselves, most probably we were run as `sh COMMAND'
26500 # in which case we are not to be found in the path.
26501 if test "x$as_myself" = x; then
26502   as_myself=$0
26503 fi
26504 if test ! -f "$as_myself"; then
26505   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26506   { (exit 1); exit 1; }
26507 fi
26508
26509 # Work around bugs in pre-3.0 UWIN ksh.
26510 for as_var in ENV MAIL MAILPATH
26511 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26512 done
26513 PS1='$ '
26514 PS2='> '
26515 PS4='+ '
26516
26517 # NLS nuisances.
26518 for as_var in \
26519   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26520   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26521   LC_TELEPHONE LC_TIME
26522 do
26523   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26524     eval $as_var=C; export $as_var
26525   else
26526     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26527   fi
26528 done
26529
26530 # Required to use basename.
26531 if expr a : '\(a\)' >/dev/null 2>&1 &&
26532    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26533   as_expr=expr
26534 else
26535   as_expr=false
26536 fi
26537
26538 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26539   as_basename=basename
26540 else
26541   as_basename=false
26542 fi
26543
26544
26545 # Name of the executable.
26546 as_me=`$as_basename -- "$0" ||
26547 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26548          X"$0" : 'X\(//\)$' \| \
26549          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26550 echo X/"$0" |
26551     sed '/^.*\/\([^/][^/]*\)\/*$/{
26552             s//\1/
26553             q
26554           }
26555           /^X\/\(\/\/\)$/{
26556             s//\1/
26557             q
26558           }
26559           /^X\/\(\/\).*/{
26560             s//\1/
26561             q
26562           }
26563           s/.*/./; q'`
26564
26565 # CDPATH.
26566 $as_unset CDPATH
26567
26568
26569
26570   as_lineno_1=$LINENO
26571   as_lineno_2=$LINENO
26572   test "x$as_lineno_1" != "x$as_lineno_2" &&
26573   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26574
26575   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26576   # uniformly replaced by the line number.  The first 'sed' inserts a
26577   # line-number line after each line using $LINENO; the second 'sed'
26578   # does the real work.  The second script uses 'N' to pair each
26579   # line-number line with the line containing $LINENO, and appends
26580   # trailing '-' during substitution so that $LINENO is not a special
26581   # case at line end.
26582   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26583   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26584   # E. McMahon (1931-1989) for sed's syntax.  :-)
26585   sed -n '
26586     p
26587     /[$]LINENO/=
26588   ' <$as_myself |
26589     sed '
26590       s/[$]LINENO.*/&-/
26591       t lineno
26592       b
26593       :lineno
26594       N
26595       :loop
26596       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26597       t loop
26598       s/-\n.*//
26599     ' >$as_me.lineno &&
26600   chmod +x "$as_me.lineno" ||
26601     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26602    { (exit 1); exit 1; }; }
26603
26604   # Don't try to exec as it changes $[0], causing all sort of problems
26605   # (the dirname of $[0] is not the place where we might find the
26606   # original and so on.  Autoconf is especially sensitive to this).
26607   . "./$as_me.lineno"
26608   # Exit status is that of the last command.
26609   exit
26610 }
26611
26612
26613 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26614   as_dirname=dirname
26615 else
26616   as_dirname=false
26617 fi
26618
26619 ECHO_C= ECHO_N= ECHO_T=
26620 case `echo -n x` in
26621 -n*)
26622   case `echo 'x\c'` in
26623   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26624   *)   ECHO_C='\c';;
26625   esac;;
26626 *)
26627   ECHO_N='-n';;
26628 esac
26629
26630 if expr a : '\(a\)' >/dev/null 2>&1 &&
26631    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26632   as_expr=expr
26633 else
26634   as_expr=false
26635 fi
26636
26637 rm -f conf$$ conf$$.exe conf$$.file
26638 if test -d conf$$.dir; then
26639   rm -f conf$$.dir/conf$$.file
26640 else
26641   rm -f conf$$.dir
26642   mkdir conf$$.dir
26643 fi
26644 echo >conf$$.file
26645 if ln -s conf$$.file conf$$ 2>/dev/null; then
26646   as_ln_s='ln -s'
26647   # ... but there are two gotchas:
26648   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26649   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26650   # In both cases, we have to default to `cp -p'.
26651   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26652     as_ln_s='cp -p'
26653 elif ln conf$$.file conf$$ 2>/dev/null; then
26654   as_ln_s=ln
26655 else
26656   as_ln_s='cp -p'
26657 fi
26658 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26659 rmdir conf$$.dir 2>/dev/null
26660
26661 if mkdir -p . 2>/dev/null; then
26662   as_mkdir_p=:
26663 else
26664   test -d ./-p && rmdir ./-p
26665   as_mkdir_p=false
26666 fi
26667
26668 if test -x / >/dev/null 2>&1; then
26669   as_test_x='test -x'
26670 else
26671   if ls -dL / >/dev/null 2>&1; then
26672     as_ls_L_option=L
26673   else
26674     as_ls_L_option=
26675   fi
26676   as_test_x='
26677     eval sh -c '\''
26678       if test -d "$1"; then
26679         test -d "$1/.";
26680       else
26681         case $1 in
26682         -*)set "./$1";;
26683         esac;
26684         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26685         ???[sx]*):;;*)false;;esac;fi
26686     '\'' sh
26687   '
26688 fi
26689 as_executable_p=$as_test_x
26690
26691 # Sed expression to map a string onto a valid CPP name.
26692 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26693
26694 # Sed expression to map a string onto a valid variable name.
26695 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26696
26697
26698 exec 6>&1
26699
26700 # Save the log message, to keep $[0] and so on meaningful, and to
26701 # report actual input values of CONFIG_FILES etc. instead of their
26702 # values after options handling.
26703 ac_log="
26704 This file was extended by simgrid $as_me 3.1.1-cvs, which was
26705 generated by GNU Autoconf 2.61.  Invocation command line was
26706
26707   CONFIG_FILES    = $CONFIG_FILES
26708   CONFIG_HEADERS  = $CONFIG_HEADERS
26709   CONFIG_LINKS    = $CONFIG_LINKS
26710   CONFIG_COMMANDS = $CONFIG_COMMANDS
26711   $ $0 $@
26712
26713 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26714 "
26715
26716 _ACEOF
26717
26718 cat >>$CONFIG_STATUS <<_ACEOF
26719 # Files that config.status was made for.
26720 config_files="$ac_config_files"
26721 config_headers="$ac_config_headers"
26722 config_commands="$ac_config_commands"
26723
26724 _ACEOF
26725
26726 cat >>$CONFIG_STATUS <<\_ACEOF
26727 ac_cs_usage="\
26728 \`$as_me' instantiates files from templates according to the
26729 current configuration.
26730
26731 Usage: $0 [OPTIONS] [FILE]...
26732
26733   -h, --help       print this help, then exit
26734   -V, --version    print version number and configuration settings, then exit
26735   -q, --quiet      do not print progress messages
26736   -d, --debug      don't remove temporary files
26737       --recheck    update $as_me by reconfiguring in the same conditions
26738   --file=FILE[:TEMPLATE]
26739                    instantiate the configuration file FILE
26740   --header=FILE[:TEMPLATE]
26741                    instantiate the configuration header FILE
26742
26743 Configuration files:
26744 $config_files
26745
26746 Configuration headers:
26747 $config_headers
26748
26749 Configuration commands:
26750 $config_commands
26751
26752 Report bugs to <bug-autoconf@gnu.org>."
26753
26754 _ACEOF
26755 cat >>$CONFIG_STATUS <<_ACEOF
26756 ac_cs_version="\\
26757 simgrid config.status 3.1.1-cvs
26758 configured by $0, generated by GNU Autoconf 2.61,
26759   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26760
26761 Copyright (C) 2006 Free Software Foundation, Inc.
26762 This config.status script is free software; the Free Software Foundation
26763 gives unlimited permission to copy, distribute and modify it."
26764
26765 ac_pwd='$ac_pwd'
26766 srcdir='$srcdir'
26767 INSTALL='$INSTALL'
26768 _ACEOF
26769
26770 cat >>$CONFIG_STATUS <<\_ACEOF
26771 # If no file are specified by the user, then we need to provide default
26772 # value.  By we need to know if files were specified by the user.
26773 ac_need_defaults=:
26774 while test $# != 0
26775 do
26776   case $1 in
26777   --*=*)
26778     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26779     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26780     ac_shift=:
26781     ;;
26782   *)
26783     ac_option=$1
26784     ac_optarg=$2
26785     ac_shift=shift
26786     ;;
26787   esac
26788
26789   case $ac_option in
26790   # Handling of the options.
26791   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26792     ac_cs_recheck=: ;;
26793   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26794     echo "$ac_cs_version"; exit ;;
26795   --debug | --debu | --deb | --de | --d | -d )
26796     debug=: ;;
26797   --file | --fil | --fi | --f )
26798     $ac_shift
26799     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26800     ac_need_defaults=false;;
26801   --header | --heade | --head | --hea )
26802     $ac_shift
26803     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26804     ac_need_defaults=false;;
26805   --he | --h)
26806     # Conflict between --help and --header
26807     { echo "$as_me: error: ambiguous option: $1
26808 Try \`$0 --help' for more information." >&2
26809    { (exit 1); exit 1; }; };;
26810   --help | --hel | -h )
26811     echo "$ac_cs_usage"; exit ;;
26812   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26813   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26814     ac_cs_silent=: ;;
26815
26816   # This is an error.
26817   -*) { echo "$as_me: error: unrecognized option: $1
26818 Try \`$0 --help' for more information." >&2
26819    { (exit 1); exit 1; }; } ;;
26820
26821   *) ac_config_targets="$ac_config_targets $1"
26822      ac_need_defaults=false ;;
26823
26824   esac
26825   shift
26826 done
26827
26828 ac_configure_extra_args=
26829
26830 if $ac_cs_silent; then
26831   exec 6>/dev/null
26832   ac_configure_extra_args="$ac_configure_extra_args --silent"
26833 fi
26834
26835 _ACEOF
26836 cat >>$CONFIG_STATUS <<_ACEOF
26837 if \$ac_cs_recheck; then
26838   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26839   CONFIG_SHELL=$SHELL
26840   export CONFIG_SHELL
26841   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26842 fi
26843
26844 _ACEOF
26845 cat >>$CONFIG_STATUS <<\_ACEOF
26846 exec 5>>config.log
26847 {
26848   echo
26849   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26850 ## Running $as_me. ##
26851 _ASBOX
26852   echo "$ac_log"
26853 } >&5
26854
26855 _ACEOF
26856 cat >>$CONFIG_STATUS <<_ACEOF
26857 #
26858 # INIT-COMMANDS
26859 #
26860 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26861
26862 _ACEOF
26863
26864 cat >>$CONFIG_STATUS <<\_ACEOF
26865
26866 # Handling of arguments.
26867 for ac_config_target in $ac_config_targets
26868 do
26869   case $ac_config_target in
26870     "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
26871     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26872     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26873     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26874     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26875     "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
26876     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
26877     "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
26878     "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
26879     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26880     "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
26881     "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
26882     "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
26883     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26884     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
26885     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26886     "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
26887     "examples/msg/run_msg_test") CONFIG_FILES="$CONFIG_FILES examples/msg/run_msg_test" ;;
26888     "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
26889     "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
26890     "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
26891     "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
26892     "examples/gras/ping/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_sg" ;;
26893     "examples/gras/ping/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_rl" ;;
26894     "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
26895     "examples/gras/rpc/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_sg" ;;
26896     "examples/gras/rpc/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_rl" ;;
26897     "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
26898     "examples/gras/timer/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_sg" ;;
26899     "examples/gras/timer/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_rl" ;;
26900     "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
26901     "examples/gras/chrono/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_sg" ;;
26902     "examples/gras/chrono/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_rl" ;;
26903     "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
26904     "examples/gras/mutual_exclusion/simple_token/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_sg" ;;
26905     "examples/gras/mutual_exclusion/simple_token/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_rl" ;;
26906     "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
26907     "examples/gras/mmrpc/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_sg" ;;
26908     "examples/gras/mmrpc/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_rl" ;;
26909     "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
26910     "examples/gras/pmm/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_sg" ;;
26911     "examples/gras/pmm/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_rl" ;;
26912     "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
26913     "examples/gras/all2all/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_sg" ;;
26914     "examples/gras/all2all/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_rl" ;;
26915     "examples/gras/p2p/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/Makefile" ;;
26916     "examples/gras/p2p/chord/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/Makefile" ;;
26917     "examples/gras/p2p/chord/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_sg" ;;
26918     "examples/gras/p2p/chord/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_rl" ;;
26919     "examples/gras/p2p/can/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/Makefile" ;;
26920     "examples/gras/p2p/can/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_sg" ;;
26921     "examples/gras/p2p/can/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_rl" ;;
26922     "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
26923     "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
26924     "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
26925     "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
26926     "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
26927     "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
26928     "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
26929
26930   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26931 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26932    { (exit 1); exit 1; }; };;
26933   esac
26934 done
26935
26936
26937 # If the user did not use the arguments to specify the items to instantiate,
26938 # then the envvar interface is used.  Set only those that are not.
26939 # We use the long form for the default assignment because of an extremely
26940 # bizarre bug on SunOS 4.1.3.
26941 if $ac_need_defaults; then
26942   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26943   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26944   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26945 fi
26946
26947 # Have a temporary directory for convenience.  Make it in the build tree
26948 # simply because there is no reason against having it here, and in addition,
26949 # creating and moving files from /tmp can sometimes cause problems.
26950 # Hook for its removal unless debugging.
26951 # Note that there is a small window in which the directory will not be cleaned:
26952 # after its creation but before its name has been assigned to `$tmp'.
26953 $debug ||
26954 {
26955   tmp=
26956   trap 'exit_status=$?
26957   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26958 ' 0
26959   trap '{ (exit 1); exit 1; }' 1 2 13 15
26960 }
26961 # Create a (secure) tmp directory for tmp files.
26962
26963 {
26964   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26965   test -n "$tmp" && test -d "$tmp"
26966 }  ||
26967 {
26968   tmp=./conf$$-$RANDOM
26969   (umask 077 && mkdir "$tmp")
26970 } ||
26971 {
26972    echo "$me: cannot create a temporary directory in ." >&2
26973    { (exit 1); exit 1; }
26974 }
26975
26976 #
26977 # Set up the sed scripts for CONFIG_FILES section.
26978 #
26979
26980 # No need to generate the scripts if there are no CONFIG_FILES.
26981 # This happens for instance when ./config.status config.h
26982 if test -n "$CONFIG_FILES"; then
26983
26984 _ACEOF
26985
26986
26987
26988 ac_delim='%!_!# '
26989 for ac_last_try in false false false false false :; do
26990   cat >conf$$subs.sed <<_ACEOF
26991 SHELL!$SHELL$ac_delim
26992 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26993 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26994 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26995 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26996 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26997 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26998 exec_prefix!$exec_prefix$ac_delim
26999 prefix!$prefix$ac_delim
27000 program_transform_name!$program_transform_name$ac_delim
27001 bindir!$bindir$ac_delim
27002 sbindir!$sbindir$ac_delim
27003 libexecdir!$libexecdir$ac_delim
27004 datarootdir!$datarootdir$ac_delim
27005 datadir!$datadir$ac_delim
27006 sysconfdir!$sysconfdir$ac_delim
27007 sharedstatedir!$sharedstatedir$ac_delim
27008 localstatedir!$localstatedir$ac_delim
27009 includedir!$includedir$ac_delim
27010 oldincludedir!$oldincludedir$ac_delim
27011 docdir!$docdir$ac_delim
27012 infodir!$infodir$ac_delim
27013 htmldir!$htmldir$ac_delim
27014 dvidir!$dvidir$ac_delim
27015 pdfdir!$pdfdir$ac_delim
27016 psdir!$psdir$ac_delim
27017 libdir!$libdir$ac_delim
27018 localedir!$localedir$ac_delim
27019 mandir!$mandir$ac_delim
27020 DEFS!$DEFS$ac_delim
27021 ECHO_C!$ECHO_C$ac_delim
27022 ECHO_N!$ECHO_N$ac_delim
27023 ECHO_T!$ECHO_T$ac_delim
27024 LIBS!$LIBS$ac_delim
27025 build_alias!$build_alias$ac_delim
27026 host_alias!$host_alias$ac_delim
27027 target_alias!$target_alias$ac_delim
27028 build!$build$ac_delim
27029 build_cpu!$build_cpu$ac_delim
27030 build_vendor!$build_vendor$ac_delim
27031 build_os!$build_os$ac_delim
27032 host!$host$ac_delim
27033 host_cpu!$host_cpu$ac_delim
27034 host_vendor!$host_vendor$ac_delim
27035 host_os!$host_os$ac_delim
27036 target!$target$ac_delim
27037 target_cpu!$target_cpu$ac_delim
27038 target_vendor!$target_vendor$ac_delim
27039 target_os!$target_os$ac_delim
27040 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27041 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27042 INSTALL_DATA!$INSTALL_DATA$ac_delim
27043 CYGPATH_W!$CYGPATH_W$ac_delim
27044 PACKAGE!$PACKAGE$ac_delim
27045 VERSION!$VERSION$ac_delim
27046 ACLOCAL!$ACLOCAL$ac_delim
27047 AUTOCONF!$AUTOCONF$ac_delim
27048 AUTOMAKE!$AUTOMAKE$ac_delim
27049 AUTOHEADER!$AUTOHEADER$ac_delim
27050 MAKEINFO!$MAKEINFO$ac_delim
27051 install_sh!$install_sh$ac_delim
27052 STRIP!$STRIP$ac_delim
27053 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27054 mkdir_p!$mkdir_p$ac_delim
27055 AWK!$AWK$ac_delim
27056 SET_MAKE!$SET_MAKE$ac_delim
27057 am__leading_dot!$am__leading_dot$ac_delim
27058 AMTAR!$AMTAR$ac_delim
27059 am__tar!$am__tar$ac_delim
27060 am__untar!$am__untar$ac_delim
27061 CC!$CC$ac_delim
27062 CFLAGS!$CFLAGS$ac_delim
27063 LDFLAGS!$LDFLAGS$ac_delim
27064 CPPFLAGS!$CPPFLAGS$ac_delim
27065 ac_ct_CC!$ac_ct_CC$ac_delim
27066 EXEEXT!$EXEEXT$ac_delim
27067 OBJEXT!$OBJEXT$ac_delim
27068 DEPDIR!$DEPDIR$ac_delim
27069 am__include!$am__include$ac_delim
27070 am__quote!$am__quote$ac_delim
27071 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27072 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27073 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27074 CCDEPMODE!$CCDEPMODE$ac_delim
27075 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27076 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27077 GREP!$GREP$ac_delim
27078 EGREP!$EGREP$ac_delim
27079 LN_S!$LN_S$ac_delim
27080 ECHO!$ECHO$ac_delim
27081 AR!$AR$ac_delim
27082 RANLIB!$RANLIB$ac_delim
27083 DLLTOOL!$DLLTOOL$ac_delim
27084 AS!$AS$ac_delim
27085 OBJDUMP!$OBJDUMP$ac_delim
27086 CPP!$CPP$ac_delim
27087 CXX!$CXX$ac_delim
27088 _ACEOF
27089
27090   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27091     break
27092   elif $ac_last_try; then
27093     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27094 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27095    { (exit 1); exit 1; }; }
27096   else
27097     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27098   fi
27099 done
27100
27101 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27102 if test -n "$ac_eof"; then
27103   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27104   ac_eof=`expr $ac_eof + 1`
27105 fi
27106
27107 cat >>$CONFIG_STATUS <<_ACEOF
27108 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27110 _ACEOF
27111 sed '
27112 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27113 s/^/s,@/; s/!/@,|#_!!_#|/
27114 :n
27115 t n
27116 s/'"$ac_delim"'$/,g/; t
27117 s/$/\\/; p
27118 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27119 ' >>$CONFIG_STATUS <conf$$subs.sed
27120 rm -f conf$$subs.sed
27121 cat >>$CONFIG_STATUS <<_ACEOF
27122 CEOF$ac_eof
27123 _ACEOF
27124
27125
27126 ac_delim='%!_!# '
27127 for ac_last_try in false false false false false :; do
27128   cat >conf$$subs.sed <<_ACEOF
27129 CXXFLAGS!$CXXFLAGS$ac_delim
27130 ac_ct_CXX!$ac_ct_CXX$ac_delim
27131 CXXDEPMODE!$CXXDEPMODE$ac_delim
27132 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27133 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27134 CXXCPP!$CXXCPP$ac_delim
27135 F77!$F77$ac_delim
27136 FFLAGS!$FFLAGS$ac_delim
27137 ac_ct_F77!$ac_ct_F77$ac_delim
27138 LIBTOOL!$LIBTOOL$ac_delim
27139 LIBOBJS!$LIBOBJS$ac_delim
27140 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27141 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27142 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27143 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27144 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27145 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27146 GRAS_DEP!$GRAS_DEP$ac_delim
27147 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27148 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27149 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27150 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27151 MAINT!$MAINT$ac_delim
27152 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27153 abs_builddir!$abs_builddir$ac_delim
27154 abs_srcdir!$abs_srcdir$ac_delim
27155 abs_top_builddir!$abs_top_builddir$ac_delim
27156 abs_top_srcdir!$abs_top_srcdir$ac_delim
27157 BASH!$BASH$ac_delim
27158 WARNING!$WARNING$ac_delim
27159 LEX!$LEX$ac_delim
27160 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27161 LEXLIB!$LEXLIB$ac_delim
27162 FLEXML!$FLEXML$ac_delim
27163 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27164 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27165 DOXYGEN!$DOXYGEN$ac_delim
27166 ADDR2LINE!$ADDR2LINE$ac_delim
27167 ac_configure_args!$ac_configure_args$ac_delim
27168 MD5SUM!$MD5SUM$ac_delim
27169 build_id!$build_id$ac_delim
27170 LTLIBOBJS!$LTLIBOBJS$ac_delim
27171 _ACEOF
27172
27173   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 42; then
27174     break
27175   elif $ac_last_try; then
27176     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27177 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27178    { (exit 1); exit 1; }; }
27179   else
27180     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27181   fi
27182 done
27183
27184 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27185 if test -n "$ac_eof"; then
27186   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27187   ac_eof=`expr $ac_eof + 1`
27188 fi
27189
27190 cat >>$CONFIG_STATUS <<_ACEOF
27191 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27193 _ACEOF
27194 sed '
27195 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27196 s/^/s,@/; s/!/@,|#_!!_#|/
27197 :n
27198 t n
27199 s/'"$ac_delim"'$/,g/; t
27200 s/$/\\/; p
27201 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27202 ' >>$CONFIG_STATUS <conf$$subs.sed
27203 rm -f conf$$subs.sed
27204 cat >>$CONFIG_STATUS <<_ACEOF
27205 :end
27206 s/|#_!!_#|//g
27207 CEOF$ac_eof
27208 _ACEOF
27209
27210
27211 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27212 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27213 # trailing colons and then remove the whole line if VPATH becomes empty
27214 # (actually we leave an empty line to preserve line numbers).
27215 if test "x$srcdir" = x.; then
27216   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27217 s/:*\$(srcdir):*/:/
27218 s/:*\${srcdir}:*/:/
27219 s/:*@srcdir@:*/:/
27220 s/^\([^=]*=[     ]*\):*/\1/
27221 s/:*$//
27222 s/^[^=]*=[       ]*$//
27223 }'
27224 fi
27225
27226 cat >>$CONFIG_STATUS <<\_ACEOF
27227 fi # test -n "$CONFIG_FILES"
27228
27229
27230 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27231 do
27232   case $ac_tag in
27233   :[FHLC]) ac_mode=$ac_tag; continue;;
27234   esac
27235   case $ac_mode$ac_tag in
27236   :[FHL]*:*);;
27237   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27238 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27239    { (exit 1); exit 1; }; };;
27240   :[FH]-) ac_tag=-:-;;
27241   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27242   esac
27243   ac_save_IFS=$IFS
27244   IFS=:
27245   set x $ac_tag
27246   IFS=$ac_save_IFS
27247   shift
27248   ac_file=$1
27249   shift
27250
27251   case $ac_mode in
27252   :L) ac_source=$1;;
27253   :[FH])
27254     ac_file_inputs=
27255     for ac_f
27256     do
27257       case $ac_f in
27258       -) ac_f="$tmp/stdin";;
27259       *) # Look for the file first in the build tree, then in the source tree
27260          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27261          # because $ac_f cannot contain `:'.
27262          test -f "$ac_f" ||
27263            case $ac_f in
27264            [\\/$]*) false;;
27265            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27266            esac ||
27267            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27268 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27269    { (exit 1); exit 1; }; };;
27270       esac
27271       ac_file_inputs="$ac_file_inputs $ac_f"
27272     done
27273
27274     # Let's still pretend it is `configure' which instantiates (i.e., don't
27275     # use $as_me), people would be surprised to read:
27276     #    /* config.h.  Generated by config.status.  */
27277     configure_input="Generated from "`IFS=:
27278           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27279     if test x"$ac_file" != x-; then
27280       configure_input="$ac_file.  $configure_input"
27281       { echo "$as_me:$LINENO: creating $ac_file" >&5
27282 echo "$as_me: creating $ac_file" >&6;}
27283     fi
27284
27285     case $ac_tag in
27286     *:-:* | *:-) cat >"$tmp/stdin";;
27287     esac
27288     ;;
27289   esac
27290
27291   ac_dir=`$as_dirname -- "$ac_file" ||
27292 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27293          X"$ac_file" : 'X\(//\)[^/]' \| \
27294          X"$ac_file" : 'X\(//\)$' \| \
27295          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27296 echo X"$ac_file" |
27297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27298             s//\1/
27299             q
27300           }
27301           /^X\(\/\/\)[^/].*/{
27302             s//\1/
27303             q
27304           }
27305           /^X\(\/\/\)$/{
27306             s//\1/
27307             q
27308           }
27309           /^X\(\/\).*/{
27310             s//\1/
27311             q
27312           }
27313           s/.*/./; q'`
27314   { as_dir="$ac_dir"
27315   case $as_dir in #(
27316   -*) as_dir=./$as_dir;;
27317   esac
27318   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27319     as_dirs=
27320     while :; do
27321       case $as_dir in #(
27322       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27323       *) as_qdir=$as_dir;;
27324       esac
27325       as_dirs="'$as_qdir' $as_dirs"
27326       as_dir=`$as_dirname -- "$as_dir" ||
27327 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27328          X"$as_dir" : 'X\(//\)[^/]' \| \
27329          X"$as_dir" : 'X\(//\)$' \| \
27330          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27331 echo X"$as_dir" |
27332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27333             s//\1/
27334             q
27335           }
27336           /^X\(\/\/\)[^/].*/{
27337             s//\1/
27338             q
27339           }
27340           /^X\(\/\/\)$/{
27341             s//\1/
27342             q
27343           }
27344           /^X\(\/\).*/{
27345             s//\1/
27346             q
27347           }
27348           s/.*/./; q'`
27349       test -d "$as_dir" && break
27350     done
27351     test -z "$as_dirs" || eval "mkdir $as_dirs"
27352   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27353 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27354    { (exit 1); exit 1; }; }; }
27355   ac_builddir=.
27356
27357 case "$ac_dir" in
27358 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27359 *)
27360   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27361   # A ".." for each directory in $ac_dir_suffix.
27362   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27363   case $ac_top_builddir_sub in
27364   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27365   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27366   esac ;;
27367 esac
27368 ac_abs_top_builddir=$ac_pwd
27369 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27370 # for backward compatibility:
27371 ac_top_builddir=$ac_top_build_prefix
27372
27373 case $srcdir in
27374   .)  # We are building in place.
27375     ac_srcdir=.
27376     ac_top_srcdir=$ac_top_builddir_sub
27377     ac_abs_top_srcdir=$ac_pwd ;;
27378   [\\/]* | ?:[\\/]* )  # Absolute name.
27379     ac_srcdir=$srcdir$ac_dir_suffix;
27380     ac_top_srcdir=$srcdir
27381     ac_abs_top_srcdir=$srcdir ;;
27382   *) # Relative name.
27383     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27384     ac_top_srcdir=$ac_top_build_prefix$srcdir
27385     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27386 esac
27387 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27388
27389
27390   case $ac_mode in
27391   :F)
27392   #
27393   # CONFIG_FILE
27394   #
27395
27396   case $INSTALL in
27397   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27398   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27399   esac
27400 _ACEOF
27401
27402 cat >>$CONFIG_STATUS <<\_ACEOF
27403 # If the template does not know about datarootdir, expand it.
27404 # FIXME: This hack should be removed a few years after 2.60.
27405 ac_datarootdir_hack=; ac_datarootdir_seen=
27406
27407 case `sed -n '/datarootdir/ {
27408   p
27409   q
27410 }
27411 /@datadir@/p
27412 /@docdir@/p
27413 /@infodir@/p
27414 /@localedir@/p
27415 /@mandir@/p
27416 ' $ac_file_inputs` in
27417 *datarootdir*) ac_datarootdir_seen=yes;;
27418 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27419   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27420 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27421 _ACEOF
27422 cat >>$CONFIG_STATUS <<_ACEOF
27423   ac_datarootdir_hack='
27424   s&@datadir@&$datadir&g
27425   s&@docdir@&$docdir&g
27426   s&@infodir@&$infodir&g
27427   s&@localedir@&$localedir&g
27428   s&@mandir@&$mandir&g
27429     s&\\\${datarootdir}&$datarootdir&g' ;;
27430 esac
27431 _ACEOF
27432
27433 # Neutralize VPATH when `$srcdir' = `.'.
27434 # Shell code in configure.ac might set extrasub.
27435 # FIXME: do we really want to maintain this feature?
27436 cat >>$CONFIG_STATUS <<_ACEOF
27437   sed "$ac_vpsub
27438 $extrasub
27439 _ACEOF
27440 cat >>$CONFIG_STATUS <<\_ACEOF
27441 :t
27442 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27443 s&@configure_input@&$configure_input&;t t
27444 s&@top_builddir@&$ac_top_builddir_sub&;t t
27445 s&@srcdir@&$ac_srcdir&;t t
27446 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27447 s&@top_srcdir@&$ac_top_srcdir&;t t
27448 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27449 s&@builddir@&$ac_builddir&;t t
27450 s&@abs_builddir@&$ac_abs_builddir&;t t
27451 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27452 s&@INSTALL@&$ac_INSTALL&;t t
27453 $ac_datarootdir_hack
27454 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27455
27456 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27457   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27458   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27459   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27460 which seems to be undefined.  Please make sure it is defined." >&5
27461 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27462 which seems to be undefined.  Please make sure it is defined." >&2;}
27463
27464   rm -f "$tmp/stdin"
27465   case $ac_file in
27466   -) cat "$tmp/out"; rm -f "$tmp/out";;
27467   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27468   esac
27469  ;;
27470   :H)
27471   #
27472   # CONFIG_HEADER
27473   #
27474 _ACEOF
27475
27476 # Transform confdefs.h into a sed script `conftest.defines', that
27477 # substitutes the proper values into config.h.in to produce config.h.
27478 rm -f conftest.defines conftest.tail
27479 # First, append a space to every undef/define line, to ease matching.
27480 echo 's/$/ /' >conftest.defines
27481 # Then, protect against being on the right side of a sed subst, or in
27482 # an unquoted here document, in config.status.  If some macros were
27483 # called several times there might be several #defines for the same
27484 # symbol, which is useless.  But do not sort them, since the last
27485 # AC_DEFINE must be honored.
27486 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27487 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27488 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27489 # PARAMS is the parameter list in the macro definition--in most cases, it's
27490 # just an empty string.
27491 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27492 ac_dB='\\)[      (].*,\\1define\\2'
27493 ac_dC=' '
27494 ac_dD=' ,'
27495
27496 uniq confdefs.h |
27497   sed -n '
27498         t rset
27499         :rset
27500         s/^[     ]*#[    ]*define[       ][      ]*//
27501         t ok
27502         d
27503         :ok
27504         s/[\\&,]/\\&/g
27505         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27506         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27507   ' >>conftest.defines
27508
27509 # Remove the space that was appended to ease matching.
27510 # Then replace #undef with comments.  This is necessary, for
27511 # example, in the case of _POSIX_SOURCE, which is predefined and required
27512 # on some systems where configure will not decide to define it.
27513 # (The regexp can be short, since the line contains either #define or #undef.)
27514 echo 's/ $//
27515 s,^[     #]*u.*,/* & */,' >>conftest.defines
27516
27517 # Break up conftest.defines:
27518 ac_max_sed_lines=50
27519
27520 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27521 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27522 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27523 # et cetera.
27524 ac_in='$ac_file_inputs'
27525 ac_out='"$tmp/out1"'
27526 ac_nxt='"$tmp/out2"'
27527
27528 while :
27529 do
27530   # Write a here document:
27531     cat >>$CONFIG_STATUS <<_ACEOF
27532     # First, check the format of the line:
27533     cat >"\$tmp/defines.sed" <<\\CEOF
27534 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27535 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27536 b
27537 :def
27538 _ACEOF
27539   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27540   echo 'CEOF
27541     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27542   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27543   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27544   grep . conftest.tail >/dev/null || break
27545   rm -f conftest.defines
27546   mv conftest.tail conftest.defines
27547 done
27548 rm -f conftest.defines conftest.tail
27549
27550 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27551 cat >>$CONFIG_STATUS <<\_ACEOF
27552   if test x"$ac_file" != x-; then
27553     echo "/* $configure_input  */" >"$tmp/config.h"
27554     cat "$ac_result" >>"$tmp/config.h"
27555     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27556       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27557 echo "$as_me: $ac_file is unchanged" >&6;}
27558     else
27559       rm -f $ac_file
27560       mv "$tmp/config.h" $ac_file
27561     fi
27562   else
27563     echo "/* $configure_input  */"
27564     cat "$ac_result"
27565   fi
27566   rm -f "$tmp/out12"
27567 # Compute $ac_file's index in $config_headers.
27568 _am_stamp_count=1
27569 for _am_header in $config_headers :; do
27570   case $_am_header in
27571     $ac_file | $ac_file:* )
27572       break ;;
27573     * )
27574       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27575   esac
27576 done
27577 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27578 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27579          X$ac_file : 'X\(//\)[^/]' \| \
27580          X$ac_file : 'X\(//\)$' \| \
27581          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27582 echo X$ac_file |
27583     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27584             s//\1/
27585             q
27586           }
27587           /^X\(\/\/\)[^/].*/{
27588             s//\1/
27589             q
27590           }
27591           /^X\(\/\/\)$/{
27592             s//\1/
27593             q
27594           }
27595           /^X\(\/\).*/{
27596             s//\1/
27597             q
27598           }
27599           s/.*/./; q'`/stamp-h$_am_stamp_count
27600  ;;
27601
27602   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27603 echo "$as_me: executing $ac_file commands" >&6;}
27604  ;;
27605   esac
27606
27607
27608   case $ac_file$ac_mode in
27609     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27610   # Strip MF so we end up with the name of the file.
27611   mf=`echo "$mf" | sed -e 's/:.*$//'`
27612   # Check whether this is an Automake generated Makefile or not.
27613   # We used to match only the files named `Makefile.in', but
27614   # some people rename them; so instead we look at the file content.
27615   # Grep'ing the first line is not enough: some people post-process
27616   # each Makefile.in and add a new line on top of each file to say so.
27617   # So let's grep whole file.
27618   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27619     dirpart=`$as_dirname -- "$mf" ||
27620 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27621          X"$mf" : 'X\(//\)[^/]' \| \
27622          X"$mf" : 'X\(//\)$' \| \
27623          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27624 echo X"$mf" |
27625     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27626             s//\1/
27627             q
27628           }
27629           /^X\(\/\/\)[^/].*/{
27630             s//\1/
27631             q
27632           }
27633           /^X\(\/\/\)$/{
27634             s//\1/
27635             q
27636           }
27637           /^X\(\/\).*/{
27638             s//\1/
27639             q
27640           }
27641           s/.*/./; q'`
27642   else
27643     continue
27644   fi
27645   # Extract the definition of DEPDIR, am__include, and am__quote
27646   # from the Makefile without running `make'.
27647   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27648   test -z "$DEPDIR" && continue
27649   am__include=`sed -n 's/^am__include = //p' < "$mf"`
27650   test -z "am__include" && continue
27651   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27652   # When using ansi2knr, U may be empty or an underscore; expand it
27653   U=`sed -n 's/^U = //p' < "$mf"`
27654   # Find all dependency output files, they are included files with
27655   # $(DEPDIR) in their names.  We invoke sed twice because it is the
27656   # simplest approach to changing $(DEPDIR) to its actual value in the
27657   # expansion.
27658   for file in `sed -n "
27659     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27660        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27661     # Make sure the directory exists.
27662     test -f "$dirpart/$file" && continue
27663     fdir=`$as_dirname -- "$file" ||
27664 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27665          X"$file" : 'X\(//\)[^/]' \| \
27666          X"$file" : 'X\(//\)$' \| \
27667          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27668 echo X"$file" |
27669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27670             s//\1/
27671             q
27672           }
27673           /^X\(\/\/\)[^/].*/{
27674             s//\1/
27675             q
27676           }
27677           /^X\(\/\/\)$/{
27678             s//\1/
27679             q
27680           }
27681           /^X\(\/\).*/{
27682             s//\1/
27683             q
27684           }
27685           s/.*/./; q'`
27686     { as_dir=$dirpart/$fdir
27687   case $as_dir in #(
27688   -*) as_dir=./$as_dir;;
27689   esac
27690   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27691     as_dirs=
27692     while :; do
27693       case $as_dir in #(
27694       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27695       *) as_qdir=$as_dir;;
27696       esac
27697       as_dirs="'$as_qdir' $as_dirs"
27698       as_dir=`$as_dirname -- "$as_dir" ||
27699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27700          X"$as_dir" : 'X\(//\)[^/]' \| \
27701          X"$as_dir" : 'X\(//\)$' \| \
27702          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27703 echo X"$as_dir" |
27704     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27705             s//\1/
27706             q
27707           }
27708           /^X\(\/\/\)[^/].*/{
27709             s//\1/
27710             q
27711           }
27712           /^X\(\/\/\)$/{
27713             s//\1/
27714             q
27715           }
27716           /^X\(\/\).*/{
27717             s//\1/
27718             q
27719           }
27720           s/.*/./; q'`
27721       test -d "$as_dir" && break
27722     done
27723     test -z "$as_dirs" || eval "mkdir $as_dirs"
27724   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27725 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27726    { (exit 1); exit 1; }; }; }
27727     # echo "creating $dirpart/$file"
27728     echo '# dummy' > "$dirpart/$file"
27729   done
27730 done
27731  ;;
27732     "tools/graspe-slave":F)
27733     for file in                                                 \
27734      tools/graspe-slave           tools/graspe-master           \
27735     ; do                                                        \
27736       test -e $file && chmod +x $file;                          \
27737     done
27738  ;;
27739     "testsuite/Makefile":F)
27740     for file in                                                 \
27741      testsuite/run_tests                                        \
27742      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27743     ; do                                                        \
27744       test -e $file && chmod +x $file;                          \
27745     done
27746  ;;
27747     "testsuite/run_tests":F)
27748     for file in                                                 \
27749      testsuite/run_tests                                        \
27750      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27751     ; do                                                        \
27752       test -e $file && chmod +x $file;                          \
27753     done
27754  ;;
27755     "testsuite/gras/trp_tcp_usage":F)
27756     for file in                                                 \
27757      testsuite/run_tests                                        \
27758      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27759     ; do                                                        \
27760       test -e $file && chmod +x $file;                          \
27761     done
27762  ;;
27763     "testsuite/gras/trp_file_usage":F)
27764     for file in                                                 \
27765      testsuite/run_tests                                        \
27766      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27767     ; do                                                        \
27768       test -e $file && chmod +x $file;                          \
27769     done
27770  ;;
27771     "examples/Makefile":F)
27772     for file in                                                 \
27773      \
27774      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27775      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27776      \
27777      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27778      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27779      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27780      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27781      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27782      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27783      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27784      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27785      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27786      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27787      examples/msg/run_msg_test                                  \
27788      examples/simdag/test_simdag                                \
27789     ; do                                                        \
27790       test -e $file && chmod +x $file;                          \
27791     done
27792  ;;
27793     "examples/msg/Makefile":F)
27794     for file in                                                 \
27795      \
27796      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27797      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27798      \
27799      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27800      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27801      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27802      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27803      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27804      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27805      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27806      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27807      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27808      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27809      examples/msg/run_msg_test                                  \
27810      examples/simdag/test_simdag                                \
27811     ; do                                                        \
27812       test -e $file && chmod +x $file;                          \
27813     done
27814  ;;
27815     "examples/msg/run_msg_test":F)
27816     for file in                                                 \
27817      \
27818      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27819      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27820      \
27821      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27822      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27823      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27824      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27825      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27826      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27827      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27828      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27829      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27830      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27831      examples/msg/run_msg_test                                  \
27832      examples/simdag/test_simdag                                \
27833     ; do                                                        \
27834       test -e $file && chmod +x $file;                          \
27835     done
27836  ;;
27837     "examples/simdag/Makefile":F)
27838     for file in                                                 \
27839      \
27840      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27841      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27842      \
27843      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27844      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27845      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27846      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27847      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27848      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27849      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27850      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27851      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27852      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27853      examples/msg/run_msg_test                                  \
27854      examples/simdag/test_simdag                                \
27855     ; do                                                        \
27856       test -e $file && chmod +x $file;                          \
27857     done
27858  ;;
27859     "examples/simdag/test_simdag":F)
27860     for file in                                                 \
27861      \
27862      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27863      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27864      \
27865      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27866      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27867      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27868      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27869      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27870      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27871      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27872      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27873      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27874      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27875      examples/msg/run_msg_test                                  \
27876      examples/simdag/test_simdag                                \
27877     ; do                                                        \
27878       test -e $file && chmod +x $file;                          \
27879     done
27880  ;;
27881     "examples/gras/Makefile":F)
27882     for file in                                                 \
27883      \
27884      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27885      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27886      \
27887      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27888      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27889      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27890      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27891      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27892      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27893      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27894      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27895      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27896      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27897      examples/msg/run_msg_test                                  \
27898      examples/simdag/test_simdag                                \
27899     ; do                                                        \
27900       test -e $file && chmod +x $file;                          \
27901     done
27902  ;;
27903     "examples/gras/ping/Makefile":F)
27904     for file in                                                 \
27905      \
27906      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27907      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27908      \
27909      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27910      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27911      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27912      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27913      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27914      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27915      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27916      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27917      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27918      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27919      examples/msg/run_msg_test                                  \
27920      examples/simdag/test_simdag                                \
27921     ; do                                                        \
27922       test -e $file && chmod +x $file;                          \
27923     done
27924  ;;
27925     "examples/gras/ping/test_sg":F)
27926     for file in                                                 \
27927      \
27928      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27929      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27930      \
27931      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27932      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27933      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27934      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27935      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27936      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27937      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27938      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27939      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27940      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27941      examples/msg/run_msg_test                                  \
27942      examples/simdag/test_simdag                                \
27943     ; do                                                        \
27944       test -e $file && chmod +x $file;                          \
27945     done
27946  ;;
27947     "examples/gras/ping/test_rl":F)
27948     for file in                                                 \
27949      \
27950      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27951      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27952      \
27953      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27954      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27955      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27956      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27957      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27958      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27959      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27960      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27961      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27962      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27963      examples/msg/run_msg_test                                  \
27964      examples/simdag/test_simdag                                \
27965     ; do                                                        \
27966       test -e $file && chmod +x $file;                          \
27967     done
27968  ;;
27969     "examples/gras/rpc/Makefile":F)
27970     for file in                                                 \
27971      \
27972      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27973      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27974      \
27975      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27976      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27977      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27978      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27979      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27980      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27981      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27982      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27983      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27984      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27985      examples/msg/run_msg_test                                  \
27986      examples/simdag/test_simdag                                \
27987     ; do                                                        \
27988       test -e $file && chmod +x $file;                          \
27989     done
27990  ;;
27991     "examples/gras/rpc/test_sg":F)
27992     for file in                                                 \
27993      \
27994      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27995      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27996      \
27997      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27998      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27999      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28000      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28001      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28002      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28003      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28004      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28005      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28006      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28007      examples/msg/run_msg_test                                  \
28008      examples/simdag/test_simdag                                \
28009     ; do                                                        \
28010       test -e $file && chmod +x $file;                          \
28011     done
28012  ;;
28013     "examples/gras/rpc/test_rl":F)
28014     for file in                                                 \
28015      \
28016      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28017      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28018      \
28019      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28020      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28021      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28022      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28023      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28024      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28025      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28026      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28027      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28028      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28029      examples/msg/run_msg_test                                  \
28030      examples/simdag/test_simdag                                \
28031     ; do                                                        \
28032       test -e $file && chmod +x $file;                          \
28033     done
28034  ;;
28035     "examples/gras/timer/Makefile":F)
28036     for file in                                                 \
28037      \
28038      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28039      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28040      \
28041      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28042      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28043      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28044      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28045      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28046      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28047      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28048      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28049      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28050      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28051      examples/msg/run_msg_test                                  \
28052      examples/simdag/test_simdag                                \
28053     ; do                                                        \
28054       test -e $file && chmod +x $file;                          \
28055     done
28056  ;;
28057     "examples/gras/timer/test_sg":F)
28058     for file in                                                 \
28059      \
28060      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28061      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28062      \
28063      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28064      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28065      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28066      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28067      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28068      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28069      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28070      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28071      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28072      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28073      examples/msg/run_msg_test                                  \
28074      examples/simdag/test_simdag                                \
28075     ; do                                                        \
28076       test -e $file && chmod +x $file;                          \
28077     done
28078  ;;
28079     "examples/gras/timer/test_rl":F)
28080     for file in                                                 \
28081      \
28082      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28083      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28084      \
28085      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28086      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28087      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28088      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28089      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28090      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28091      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28092      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28093      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28094      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28095      examples/msg/run_msg_test                                  \
28096      examples/simdag/test_simdag                                \
28097     ; do                                                        \
28098       test -e $file && chmod +x $file;                          \
28099     done
28100  ;;
28101     "examples/gras/chrono/Makefile":F)
28102     for file in                                                 \
28103      \
28104      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28105      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28106      \
28107      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28108      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28109      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28110      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28111      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28112      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28113      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28114      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28115      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28116      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28117      examples/msg/run_msg_test                                  \
28118      examples/simdag/test_simdag                                \
28119     ; do                                                        \
28120       test -e $file && chmod +x $file;                          \
28121     done
28122  ;;
28123     "examples/gras/chrono/test_sg":F)
28124     for file in                                                 \
28125      \
28126      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28127      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28128      \
28129      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28130      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28131      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28132      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28133      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28134      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28135      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28136      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28137      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28138      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28139      examples/msg/run_msg_test                                  \
28140      examples/simdag/test_simdag                                \
28141     ; do                                                        \
28142       test -e $file && chmod +x $file;                          \
28143     done
28144  ;;
28145     "examples/gras/chrono/test_rl":F)
28146     for file in                                                 \
28147      \
28148      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28149      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28150      \
28151      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28152      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28153      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28154      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28155      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28156      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28157      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28158      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28159      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28160      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28161      examples/msg/run_msg_test                                  \
28162      examples/simdag/test_simdag                                \
28163     ; do                                                        \
28164       test -e $file && chmod +x $file;                          \
28165     done
28166  ;;
28167     "examples/gras/mutual_exclusion/simple_token/Makefile":F)
28168     for file in                                                 \
28169      \
28170      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28171      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28172      \
28173      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28174      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28175      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28176      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28177      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28178      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28179      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28180      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28181      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28182      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28183      examples/msg/run_msg_test                                  \
28184      examples/simdag/test_simdag                                \
28185     ; do                                                        \
28186       test -e $file && chmod +x $file;                          \
28187     done
28188  ;;
28189     "examples/gras/mutual_exclusion/simple_token/test_sg":F)
28190     for file in                                                 \
28191      \
28192      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28193      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28194      \
28195      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28196      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28197      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28198      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28199      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28200      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28201      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28202      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28203      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28204      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28205      examples/msg/run_msg_test                                  \
28206      examples/simdag/test_simdag                                \
28207     ; do                                                        \
28208       test -e $file && chmod +x $file;                          \
28209     done
28210  ;;
28211     "examples/gras/mutual_exclusion/simple_token/test_rl":F)
28212     for file in                                                 \
28213      \
28214      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28215      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28216      \
28217      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28218      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28219      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28220      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28221      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28222      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28223      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28224      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28225      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28226      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28227      examples/msg/run_msg_test                                  \
28228      examples/simdag/test_simdag                                \
28229     ; do                                                        \
28230       test -e $file && chmod +x $file;                          \
28231     done
28232  ;;
28233     "examples/gras/mmrpc/Makefile":F)
28234     for file in                                                 \
28235      \
28236      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28237      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28238      \
28239      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28240      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28241      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28242      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28243      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28244      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28245      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28246      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28247      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28248      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28249      examples/msg/run_msg_test                                  \
28250      examples/simdag/test_simdag                                \
28251     ; do                                                        \
28252       test -e $file && chmod +x $file;                          \
28253     done
28254  ;;
28255     "examples/gras/mmrpc/test_sg":F)
28256     for file in                                                 \
28257      \
28258      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28259      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28260      \
28261      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28262      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28263      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28264      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28265      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28266      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28267      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28268      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28269      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28270      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28271      examples/msg/run_msg_test                                  \
28272      examples/simdag/test_simdag                                \
28273     ; do                                                        \
28274       test -e $file && chmod +x $file;                          \
28275     done
28276  ;;
28277     "examples/gras/mmrpc/test_rl":F)
28278     for file in                                                 \
28279      \
28280      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28281      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28282      \
28283      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28284      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28285      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28286      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28287      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28288      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28289      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28290      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28291      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28292      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28293      examples/msg/run_msg_test                                  \
28294      examples/simdag/test_simdag                                \
28295     ; do                                                        \
28296       test -e $file && chmod +x $file;                          \
28297     done
28298  ;;
28299     "examples/gras/pmm/Makefile":F)
28300     for file in                                                 \
28301      \
28302      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28303      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28304      \
28305      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28306      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28307      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28308      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28309      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28310      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28311      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28312      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28313      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28314      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28315      examples/msg/run_msg_test                                  \
28316      examples/simdag/test_simdag                                \
28317     ; do                                                        \
28318       test -e $file && chmod +x $file;                          \
28319     done
28320  ;;
28321     "examples/gras/pmm/test_sg":F)
28322     for file in                                                 \
28323      \
28324      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28325      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28326      \
28327      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28328      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28329      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28330      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28331      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28332      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28333      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28334      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28335      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28336      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28337      examples/msg/run_msg_test                                  \
28338      examples/simdag/test_simdag                                \
28339     ; do                                                        \
28340       test -e $file && chmod +x $file;                          \
28341     done
28342  ;;
28343     "examples/gras/pmm/test_rl":F)
28344     for file in                                                 \
28345      \
28346      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28347      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28348      \
28349      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28350      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28351      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28352      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28353      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28354      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28355      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28356      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28357      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28358      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28359      examples/msg/run_msg_test                                  \
28360      examples/simdag/test_simdag                                \
28361     ; do                                                        \
28362       test -e $file && chmod +x $file;                          \
28363     done
28364  ;;
28365     "examples/gras/all2all/Makefile":F)
28366     for file in                                                 \
28367      \
28368      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28369      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28370      \
28371      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28372      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28373      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28374      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28375      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28376      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28377      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28378      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28379      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28380      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28381      examples/msg/run_msg_test                                  \
28382      examples/simdag/test_simdag                                \
28383     ; do                                                        \
28384       test -e $file && chmod +x $file;                          \
28385     done
28386  ;;
28387     "examples/gras/all2all/test_sg":F)
28388     for file in                                                 \
28389      \
28390      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28391      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28392      \
28393      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28394      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28395      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28396      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28397      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28398      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28399      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28400      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28401      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28402      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28403      examples/msg/run_msg_test                                  \
28404      examples/simdag/test_simdag                                \
28405     ; do                                                        \
28406       test -e $file && chmod +x $file;                          \
28407     done
28408  ;;
28409     "examples/gras/all2all/test_rl":F)
28410     for file in                                                 \
28411      \
28412      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28413      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28414      \
28415      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28416      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28417      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28418      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28419      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28420      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28421      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28422      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28423      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28424      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28425      examples/msg/run_msg_test                                  \
28426      examples/simdag/test_simdag                                \
28427     ; do                                                        \
28428       test -e $file && chmod +x $file;                          \
28429     done
28430  ;;
28431     "examples/gras/p2p/Makefile":F)
28432     for file in                                                 \
28433      \
28434      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28435      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28436      \
28437      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28438      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28439      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28440      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28441      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28442      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28443      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28444      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28445      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28446      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28447      examples/msg/run_msg_test                                  \
28448      examples/simdag/test_simdag                                \
28449     ; do                                                        \
28450       test -e $file && chmod +x $file;                          \
28451     done
28452  ;;
28453     "examples/gras/p2p/chord/Makefile":F)
28454     for file in                                                 \
28455      \
28456      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28457      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28458      \
28459      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28460      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28461      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28462      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28463      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28464      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28465      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28466      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28467      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28468      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28469      examples/msg/run_msg_test                                  \
28470      examples/simdag/test_simdag                                \
28471     ; do                                                        \
28472       test -e $file && chmod +x $file;                          \
28473     done
28474  ;;
28475     "examples/gras/p2p/chord/test_sg":F)
28476     for file in                                                 \
28477      \
28478      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28479      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28480      \
28481      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28482      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28483      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28484      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28485      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28486      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28487      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28488      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28489      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28490      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28491      examples/msg/run_msg_test                                  \
28492      examples/simdag/test_simdag                                \
28493     ; do                                                        \
28494       test -e $file && chmod +x $file;                          \
28495     done
28496  ;;
28497     "examples/gras/p2p/chord/test_rl":F)
28498     for file in                                                 \
28499      \
28500      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28501      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28502      \
28503      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28504      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28505      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28506      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28507      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28508      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28509      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28510      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28511      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28512      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28513      examples/msg/run_msg_test                                  \
28514      examples/simdag/test_simdag                                \
28515     ; do                                                        \
28516       test -e $file && chmod +x $file;                          \
28517     done
28518  ;;
28519     "examples/gras/p2p/can/Makefile":F)
28520     for file in                                                 \
28521      \
28522      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28523      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28524      \
28525      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28526      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28527      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28528      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28529      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28530      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28531      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28532      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28533      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28534      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28535      examples/msg/run_msg_test                                  \
28536      examples/simdag/test_simdag                                \
28537     ; do                                                        \
28538       test -e $file && chmod +x $file;                          \
28539     done
28540  ;;
28541     "examples/gras/p2p/can/test_sg":F)
28542     for file in                                                 \
28543      \
28544      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28545      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28546      \
28547      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28548      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28549      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28550      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28551      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28552      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28553      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28554      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28555      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28556      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28557      examples/msg/run_msg_test                                  \
28558      examples/simdag/test_simdag                                \
28559     ; do                                                        \
28560       test -e $file && chmod +x $file;                          \
28561     done
28562  ;;
28563     "examples/gras/p2p/can/test_rl":F)
28564     for file in                                                 \
28565      \
28566      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28567      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28568      \
28569      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28570      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28571      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28572      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28573      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28574      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28575      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28576      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28577      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28578      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28579      examples/msg/run_msg_test                                  \
28580      examples/simdag/test_simdag                                \
28581     ; do                                                        \
28582       test -e $file && chmod +x $file;                          \
28583     done
28584  ;;
28585     "examples/amok/Makefile":F)
28586     for file in                                                 \
28587      \
28588      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28589      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28590      \
28591      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28592      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28593      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28594      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28595      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28596      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28597      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28598      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28599      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28600      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28601      examples/msg/run_msg_test                                  \
28602      examples/simdag/test_simdag                                \
28603     ; do                                                        \
28604       test -e $file && chmod +x $file;                          \
28605     done
28606  ;;
28607     "examples/amok/bandwidth/Makefile":F)
28608     for file in                                                 \
28609      \
28610      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28611      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28612      \
28613      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28614      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28615      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28616      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28617      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28618      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28619      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28620      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28621      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28622      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28623      examples/msg/run_msg_test                                  \
28624      examples/simdag/test_simdag                                \
28625     ; do                                                        \
28626       test -e $file && chmod +x $file;                          \
28627     done
28628  ;;
28629     "examples/amok/bandwidth/test_sg":F)
28630     for file in                                                 \
28631      \
28632      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28633      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28634      \
28635      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28636      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28637      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28638      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28639      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28640      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28641      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28642      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28643      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28644      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28645      examples/msg/run_msg_test                                  \
28646      examples/simdag/test_simdag                                \
28647     ; do                                                        \
28648       test -e $file && chmod +x $file;                          \
28649     done
28650  ;;
28651     "examples/amok/bandwidth/test_rl":F)
28652     for file in                                                 \
28653      \
28654      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28655      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28656      \
28657      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28658      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28659      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28660      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28661      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28662      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28663      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28664      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28665      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28666      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28667      examples/msg/run_msg_test                                  \
28668      examples/simdag/test_simdag                                \
28669     ; do                                                        \
28670       test -e $file && chmod +x $file;                          \
28671     done
28672  ;;
28673     "examples/amok/saturate/Makefile":F)
28674     for file in                                                 \
28675      \
28676      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28677      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28678      \
28679      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28680      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28681      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28682      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28683      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28684      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28685      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28686      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28687      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28688      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28689      examples/msg/run_msg_test                                  \
28690      examples/simdag/test_simdag                                \
28691     ; do                                                        \
28692       test -e $file && chmod +x $file;                          \
28693     done
28694  ;;
28695     "examples/amok/saturate/test_sg":F)
28696     for file in                                                 \
28697      \
28698      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28699      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28700      \
28701      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28702      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28703      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28704      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28705      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28706      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28707      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28708      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28709      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28710      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28711      examples/msg/run_msg_test                                  \
28712      examples/simdag/test_simdag                                \
28713     ; do                                                        \
28714       test -e $file && chmod +x $file;                          \
28715     done
28716  ;;
28717     "examples/amok/saturate/test_rl":F)
28718     for file in                                                 \
28719      \
28720      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28721      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28722      \
28723      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28724      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28725      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28726      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28727      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28728      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28729      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28730      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28731      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28732      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28733      examples/msg/run_msg_test                                  \
28734      examples/simdag/test_simdag                                \
28735     ; do                                                        \
28736       test -e $file && chmod +x $file;                          \
28737     done
28738  ;;
28739
28740   esac
28741 done # for ac_tag
28742
28743
28744 { (exit 0); exit 0; }
28745 _ACEOF
28746 chmod +x $CONFIG_STATUS
28747 ac_clean_files=$ac_clean_files_save
28748
28749
28750 # configure is writing to config.log, and then calls config.status.
28751 # config.status does its own redirection, appending to config.log.
28752 # Unfortunately, on DOS this fails, as config.log is still kept open
28753 # by configure, so config.status won't be able to write to it; its
28754 # output is simply discarded.  So we exec the FD to /dev/null,
28755 # effectively closing config.log, so it can be properly (re)opened and
28756 # appended to by config.status.  When coming back to configure, we
28757 # need to make the FD available again.
28758 if test "$no_create" != yes; then
28759   ac_cs_success=:
28760   ac_config_status_args=
28761   test "$silent" = yes &&
28762     ac_config_status_args="$ac_config_status_args --quiet"
28763   exec 5>/dev/null
28764   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28765   exec 5>>config.log
28766   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28767   # would make configure fail if this is the last instruction.
28768   $ac_cs_success || { (exit 1); exit 1; }
28769 fi
28770
28771
28772 echo "
28773
28774 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28775
28776         Compiler:        ${CC} (version: ${GCC_VERSION})
28777
28778         CFlags:          ${CFLAGS}
28779         CPPFlags:        ${CPPFLAGS}
28780         LDFlags:         ${LDFLAGS}
28781
28782         Context backend: ${with_context}
28783 "
28784
28785 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28786   echo "WARNING:"
28787   echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28788   echo "WARNING: You may want to enable this by specifying:"
28789   echo "WARNING:"
28790   echo "WARNING: ./configure --enable-maintainer-mode  $ac_configure_args"
28791   echo "WARNING:"
28792 fi
28793 echo $build_id > stamp.configure
28794
28795 exit 0;