Mac binaries
[jabaws.git] / website / archive / binaries / mac / src / clustalo / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for Clustal Omega 1.0.2.
4 #
5 # Report bugs to <clustalw@ucd.ie>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582   # Remove one level of quotation (which was required for Make).
583   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584   ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589   # Discard the --no-reexec flag, and continue.
590   shift
591 elif test "X$1" = X--fallback-echo; then
592   # Avoid inline document here, it may be left over
593   :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595   # Yippee, $ECHO works!
596   :
597 else
598   # Restart under the correct shell.
599   exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603   # used as fallback echo
604   shift
605   cat <<_LT_EOF
606 $*
607 _LT_EOF
608   exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616   if test "X${echo_test_string+set}" != Xset; then
617     # find a string as large as possible, as long as the shell can cope with it
618     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622       then
623         break
624       fi
625     done
626   fi
627
628   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630      test "X$echo_testing_string" = "X$echo_test_string"; then
631     :
632   else
633     # The Solaris, AIX, and Digital Unix default echo programs unquote
634     # backslashes.  This makes it impossible to quote backslashes using
635     #   echo "$something" | sed 's/\\/\\\\/g'
636     #
637     # So, first we look for a working echo in the user's PATH.
638
639     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640     for dir in $PATH /usr/ucb; do
641       IFS="$lt_save_ifs"
642       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645          test "X$echo_testing_string" = "X$echo_test_string"; then
646         ECHO="$dir/echo"
647         break
648       fi
649     done
650     IFS="$lt_save_ifs"
651
652     if test "X$ECHO" = Xecho; then
653       # We didn't find a better echo, so look for alternatives.
654       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656          test "X$echo_testing_string" = "X$echo_test_string"; then
657         # This shell has a builtin print -r that does the trick.
658         ECHO='print -r'
659       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660            test "X$CONFIG_SHELL" != X/bin/ksh; then
661         # If we have ksh, try running configure again with it.
662         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663         export ORIGINAL_CONFIG_SHELL
664         CONFIG_SHELL=/bin/ksh
665         export CONFIG_SHELL
666         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667       else
668         # Try using printf.
669         ECHO='printf %s\n'
670         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672            test "X$echo_testing_string" = "X$echo_test_string"; then
673           # Cool, printf works
674           :
675         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676              test "X$echo_testing_string" = 'X\t' &&
677              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678              test "X$echo_testing_string" = "X$echo_test_string"; then
679           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680           export CONFIG_SHELL
681           SHELL="$CONFIG_SHELL"
682           export SHELL
683           ECHO="$CONFIG_SHELL $0 --fallback-echo"
684         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685              test "X$echo_testing_string" = 'X\t' &&
686              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687              test "X$echo_testing_string" = "X$echo_test_string"; then
688           ECHO="$CONFIG_SHELL $0 --fallback-echo"
689         else
690           # maybe with a smaller string...
691           prev=:
692
693           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695             then
696               break
697             fi
698             prev="$cmd"
699           done
700
701           if test "$prev" != 'sed 50q "$0"'; then
702             echo_test_string=`eval $prev`
703             export echo_test_string
704             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705           else
706             # Oops.  We lost completely, so just stick with echo.
707             ECHO=echo
708           fi
709         fi
710       fi
711     fi
712   fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='Clustal Omega'
747 PACKAGE_TARNAME='clustal-omega'
748 PACKAGE_VERSION='1.0.2'
749 PACKAGE_STRING='Clustal Omega 1.0.2'
750 PACKAGE_BUGREPORT='clustalw@ucd.ie'
751
752 # Factoring default headers for most tests.
753 ac_includes_default="\
754 #include <stdio.h>
755 #ifdef HAVE_SYS_TYPES_H
756 # include <sys/types.h>
757 #endif
758 #ifdef HAVE_SYS_STAT_H
759 # include <sys/stat.h>
760 #endif
761 #ifdef STDC_HEADERS
762 # include <stdlib.h>
763 # include <stddef.h>
764 #else
765 # ifdef HAVE_STDLIB_H
766 #  include <stdlib.h>
767 # endif
768 #endif
769 #ifdef HAVE_STRING_H
770 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771 #  include <memory.h>
772 # endif
773 # include <string.h>
774 #endif
775 #ifdef HAVE_STRINGS_H
776 # include <strings.h>
777 #endif
778 #ifdef HAVE_INTTYPES_H
779 # include <inttypes.h>
780 #endif
781 #ifdef HAVE_STDINT_H
782 # include <stdint.h>
783 #endif
784 #ifdef HAVE_UNISTD_H
785 # include <unistd.h>
786 #endif"
787
788 ac_subst_vars='LTLIBOBJS
789 LIBOBJS
790 AM_LDFLAGS
791 AM_CFLAGS
792 AM_CXXFLAGS
793 OPENMP_CXXFLAGS
794 OPENMP_CFLAGS
795 CXXCPP
796 am__fastdepCXX_FALSE
797 am__fastdepCXX_TRUE
798 CXXDEPMODE
799 ac_ct_CXX
800 CXXFLAGS
801 CXX
802 OTOOL64
803 OTOOL
804 LIPO
805 NMEDIT
806 DSYMUTIL
807 lt_ECHO
808 RANLIB
809 AR
810 OBJDUMP
811 LN_S
812 NM
813 ac_ct_DUMPBIN
814 DUMPBIN
815 LD
816 FGREP
817 SED
818 LIBTOOL
819 host_os
820 host_vendor
821 host_cpu
822 host
823 build_os
824 build_vendor
825 build_cpu
826 build
827 EGREP
828 GREP
829 CPP
830 am__fastdepCC_FALSE
831 am__fastdepCC_TRUE
832 CCDEPMODE
833 AMDEPBACKSLASH
834 AMDEP_FALSE
835 AMDEP_TRUE
836 am__quote
837 am__include
838 DEPDIR
839 OBJEXT
840 EXEEXT
841 ac_ct_CC
842 CPPFLAGS
843 LDFLAGS
844 CFLAGS
845 CC
846 am__untar
847 am__tar
848 AMTAR
849 am__leading_dot
850 SET_MAKE
851 AWK
852 mkdir_p
853 MKDIR_P
854 INSTALL_STRIP_PROGRAM
855 STRIP
856 install_sh
857 MAKEINFO
858 AUTOHEADER
859 AUTOMAKE
860 AUTOCONF
861 ACLOCAL
862 VERSION
863 PACKAGE
864 CYGPATH_W
865 am__isrc
866 INSTALL_DATA
867 INSTALL_SCRIPT
868 INSTALL_PROGRAM
869 PACKAGE_CODENAME
870 target_alias
871 host_alias
872 build_alias
873 LIBS
874 ECHO_T
875 ECHO_N
876 ECHO_C
877 DEFS
878 mandir
879 localedir
880 libdir
881 psdir
882 pdfdir
883 dvidir
884 htmldir
885 infodir
886 docdir
887 oldincludedir
888 includedir
889 localstatedir
890 sharedstatedir
891 sysconfdir
892 datadir
893 datarootdir
894 libexecdir
895 sbindir
896 bindir
897 program_transform_name
898 prefix
899 exec_prefix
900 PACKAGE_BUGREPORT
901 PACKAGE_STRING
902 PACKAGE_VERSION
903 PACKAGE_TARNAME
904 PACKAGE_NAME
905 PATH_SEPARATOR
906 SHELL'
907 ac_subst_files=''
908 ac_user_opts='
909 enable_option_checking
910 enable_dependency_tracking
911 enable_shared
912 enable_static
913 with_pic
914 enable_fast_install
915 with_gnu_ld
916 enable_libtool_lock
917 with_openmp
918 with_dmalloc
919 enable_debug
920 '
921       ac_precious_vars='build_alias
922 host_alias
923 target_alias
924 CC
925 CFLAGS
926 LDFLAGS
927 LIBS
928 CPPFLAGS
929 CPP
930 CXX
931 CXXFLAGS
932 CCC
933 CXXCPP'
934
935
936 # Initialize some variables set by options.
937 ac_init_help=
938 ac_init_version=false
939 ac_unrecognized_opts=
940 ac_unrecognized_sep=
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
943 cache_file=/dev/null
944 exec_prefix=NONE
945 no_create=
946 no_recursion=
947 prefix=NONE
948 program_prefix=NONE
949 program_suffix=NONE
950 program_transform_name=s,x,x,
951 silent=
952 site=
953 srcdir=
954 verbose=
955 x_includes=NONE
956 x_libraries=NONE
957
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir='${exec_prefix}/bin'
965 sbindir='${exec_prefix}/sbin'
966 libexecdir='${exec_prefix}/libexec'
967 datarootdir='${prefix}/share'
968 datadir='${datarootdir}'
969 sysconfdir='${prefix}/etc'
970 sharedstatedir='${prefix}/com'
971 localstatedir='${prefix}/var'
972 includedir='${prefix}/include'
973 oldincludedir='/usr/include'
974 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
975 infodir='${datarootdir}/info'
976 htmldir='${docdir}'
977 dvidir='${docdir}'
978 pdfdir='${docdir}'
979 psdir='${docdir}'
980 libdir='${exec_prefix}/lib'
981 localedir='${datarootdir}/locale'
982 mandir='${datarootdir}/man'
983
984 ac_prev=
985 ac_dashdash=
986 for ac_option
987 do
988   # If the previous option needs an argument, assign it.
989   if test -n "$ac_prev"; then
990     eval $ac_prev=\$ac_option
991     ac_prev=
992     continue
993   fi
994
995   case $ac_option in
996   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997   *)    ac_optarg=yes ;;
998   esac
999
1000   # Accept the important Cygnus configure options, so we can diagnose typos.
1001
1002   case $ac_dashdash$ac_option in
1003   --)
1004     ac_dashdash=yes ;;
1005
1006   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007     ac_prev=bindir ;;
1008   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1009     bindir=$ac_optarg ;;
1010
1011   -build | --build | --buil | --bui | --bu)
1012     ac_prev=build_alias ;;
1013   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1014     build_alias=$ac_optarg ;;
1015
1016   -cache-file | --cache-file | --cache-fil | --cache-fi \
1017   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1018     ac_prev=cache_file ;;
1019   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1020   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1021     cache_file=$ac_optarg ;;
1022
1023   --config-cache | -C)
1024     cache_file=config.cache ;;
1025
1026   -datadir | --datadir | --datadi | --datad)
1027     ac_prev=datadir ;;
1028   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1029     datadir=$ac_optarg ;;
1030
1031   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1032   | --dataroo | --dataro | --datar)
1033     ac_prev=datarootdir ;;
1034   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1035   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1036     datarootdir=$ac_optarg ;;
1037
1038   -disable-* | --disable-*)
1039     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1040     # Reject names that are not valid shell variable names.
1041     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1043    { (exit 1); exit 1; }; }
1044     ac_useropt_orig=$ac_useropt
1045     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046     case $ac_user_opts in
1047       *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051          ac_unrecognized_sep=', ';;
1052     esac
1053     eval enable_$ac_useropt=no ;;
1054
1055   -docdir | --docdir | --docdi | --doc | --do)
1056     ac_prev=docdir ;;
1057   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058     docdir=$ac_optarg ;;
1059
1060   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061     ac_prev=dvidir ;;
1062   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063     dvidir=$ac_optarg ;;
1064
1065   -enable-* | --enable-*)
1066     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1070    { (exit 1); exit 1; }; }
1071     ac_useropt_orig=$ac_useropt
1072     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073     case $ac_user_opts in
1074       *"
1075 "enable_$ac_useropt"
1076 "*) ;;
1077       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078          ac_unrecognized_sep=', ';;
1079     esac
1080     eval enable_$ac_useropt=\$ac_optarg ;;
1081
1082   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084   | --exec | --exe | --ex)
1085     ac_prev=exec_prefix ;;
1086   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088   | --exec=* | --exe=* | --ex=*)
1089     exec_prefix=$ac_optarg ;;
1090
1091   -gas | --gas | --ga | --g)
1092     # Obsolete; use --with-gas.
1093     with_gas=yes ;;
1094
1095   -help | --help | --hel | --he | -h)
1096     ac_init_help=long ;;
1097   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098     ac_init_help=recursive ;;
1099   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100     ac_init_help=short ;;
1101
1102   -host | --host | --hos | --ho)
1103     ac_prev=host_alias ;;
1104   -host=* | --host=* | --hos=* | --ho=*)
1105     host_alias=$ac_optarg ;;
1106
1107   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108     ac_prev=htmldir ;;
1109   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110   | --ht=*)
1111     htmldir=$ac_optarg ;;
1112
1113   -includedir | --includedir | --includedi | --included | --include \
1114   | --includ | --inclu | --incl | --inc)
1115     ac_prev=includedir ;;
1116   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117   | --includ=* | --inclu=* | --incl=* | --inc=*)
1118     includedir=$ac_optarg ;;
1119
1120   -infodir | --infodir | --infodi | --infod | --info | --inf)
1121     ac_prev=infodir ;;
1122   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123     infodir=$ac_optarg ;;
1124
1125   -libdir | --libdir | --libdi | --libd)
1126     ac_prev=libdir ;;
1127   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128     libdir=$ac_optarg ;;
1129
1130   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131   | --libexe | --libex | --libe)
1132     ac_prev=libexecdir ;;
1133   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134   | --libexe=* | --libex=* | --libe=*)
1135     libexecdir=$ac_optarg ;;
1136
1137   -localedir | --localedir | --localedi | --localed | --locale)
1138     ac_prev=localedir ;;
1139   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140     localedir=$ac_optarg ;;
1141
1142   -localstatedir | --localstatedir | --localstatedi | --localstated \
1143   | --localstate | --localstat | --localsta | --localst | --locals)
1144     ac_prev=localstatedir ;;
1145   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147     localstatedir=$ac_optarg ;;
1148
1149   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150     ac_prev=mandir ;;
1151   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152     mandir=$ac_optarg ;;
1153
1154   -nfp | --nfp | --nf)
1155     # Obsolete; use --without-fp.
1156     with_fp=no ;;
1157
1158   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159   | --no-cr | --no-c | -n)
1160     no_create=yes ;;
1161
1162   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164     no_recursion=yes ;;
1165
1166   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168   | --oldin | --oldi | --old | --ol | --o)
1169     ac_prev=oldincludedir ;;
1170   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173     oldincludedir=$ac_optarg ;;
1174
1175   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176     ac_prev=prefix ;;
1177   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178     prefix=$ac_optarg ;;
1179
1180   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181   | --program-pre | --program-pr | --program-p)
1182     ac_prev=program_prefix ;;
1183   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185     program_prefix=$ac_optarg ;;
1186
1187   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188   | --program-suf | --program-su | --program-s)
1189     ac_prev=program_suffix ;;
1190   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192     program_suffix=$ac_optarg ;;
1193
1194   -program-transform-name | --program-transform-name \
1195   | --program-transform-nam | --program-transform-na \
1196   | --program-transform-n | --program-transform- \
1197   | --program-transform | --program-transfor \
1198   | --program-transfo | --program-transf \
1199   | --program-trans | --program-tran \
1200   | --progr-tra | --program-tr | --program-t)
1201     ac_prev=program_transform_name ;;
1202   -program-transform-name=* | --program-transform-name=* \
1203   | --program-transform-nam=* | --program-transform-na=* \
1204   | --program-transform-n=* | --program-transform-=* \
1205   | --program-transform=* | --program-transfor=* \
1206   | --program-transfo=* | --program-transf=* \
1207   | --program-trans=* | --program-tran=* \
1208   | --progr-tra=* | --program-tr=* | --program-t=*)
1209     program_transform_name=$ac_optarg ;;
1210
1211   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212     ac_prev=pdfdir ;;
1213   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214     pdfdir=$ac_optarg ;;
1215
1216   -psdir | --psdir | --psdi | --psd | --ps)
1217     ac_prev=psdir ;;
1218   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219     psdir=$ac_optarg ;;
1220
1221   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222   | -silent | --silent | --silen | --sile | --sil)
1223     silent=yes ;;
1224
1225   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226     ac_prev=sbindir ;;
1227   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228   | --sbi=* | --sb=*)
1229     sbindir=$ac_optarg ;;
1230
1231   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233   | --sharedst | --shareds | --shared | --share | --shar \
1234   | --sha | --sh)
1235     ac_prev=sharedstatedir ;;
1236   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239   | --sha=* | --sh=*)
1240     sharedstatedir=$ac_optarg ;;
1241
1242   -site | --site | --sit)
1243     ac_prev=site ;;
1244   -site=* | --site=* | --sit=*)
1245     site=$ac_optarg ;;
1246
1247   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248     ac_prev=srcdir ;;
1249   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250     srcdir=$ac_optarg ;;
1251
1252   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253   | --syscon | --sysco | --sysc | --sys | --sy)
1254     ac_prev=sysconfdir ;;
1255   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257     sysconfdir=$ac_optarg ;;
1258
1259   -target | --target | --targe | --targ | --tar | --ta | --t)
1260     ac_prev=target_alias ;;
1261   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262     target_alias=$ac_optarg ;;
1263
1264   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265     verbose=yes ;;
1266
1267   -version | --version | --versio | --versi | --vers | -V)
1268     ac_init_version=: ;;
1269
1270   -with-* | --with-*)
1271     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1272     # Reject names that are not valid shell variable names.
1273     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1275    { (exit 1); exit 1; }; }
1276     ac_useropt_orig=$ac_useropt
1277     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278     case $ac_user_opts in
1279       *"
1280 "with_$ac_useropt"
1281 "*) ;;
1282       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283          ac_unrecognized_sep=', ';;
1284     esac
1285     eval with_$ac_useropt=\$ac_optarg ;;
1286
1287   -without-* | --without-*)
1288     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1292    { (exit 1); exit 1; }; }
1293     ac_useropt_orig=$ac_useropt
1294     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295     case $ac_user_opts in
1296       *"
1297 "with_$ac_useropt"
1298 "*) ;;
1299       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300          ac_unrecognized_sep=', ';;
1301     esac
1302     eval with_$ac_useropt=no ;;
1303
1304   --x)
1305     # Obsolete; use --with-x.
1306     with_x=yes ;;
1307
1308   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309   | --x-incl | --x-inc | --x-in | --x-i)
1310     ac_prev=x_includes ;;
1311   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313     x_includes=$ac_optarg ;;
1314
1315   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317     ac_prev=x_libraries ;;
1318   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320     x_libraries=$ac_optarg ;;
1321
1322   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1323 Try \`$0 --help' for more information." >&2
1324    { (exit 1); exit 1; }; }
1325     ;;
1326
1327   *=*)
1328     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329     # Reject names that are not valid shell variable names.
1330     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1331       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1332    { (exit 1); exit 1; }; }
1333     eval $ac_envvar=\$ac_optarg
1334     export $ac_envvar ;;
1335
1336   *)
1337     # FIXME: should be removed in autoconf 3.0.
1338     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342     ;;
1343
1344   esac
1345 done
1346
1347 if test -n "$ac_prev"; then
1348   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1350    { (exit 1); exit 1; }; }
1351 fi
1352
1353 if test -n "$ac_unrecognized_opts"; then
1354   case $enable_option_checking in
1355     no) ;;
1356     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1357    { (exit 1); exit 1; }; } ;;
1358     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359   esac
1360 fi
1361
1362 # Check all directory arguments for consistency.
1363 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364                 datadir sysconfdir sharedstatedir localstatedir includedir \
1365                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366                 libdir localedir mandir
1367 do
1368   eval ac_val=\$$ac_var
1369   # Remove trailing slashes.
1370   case $ac_val in
1371     */ )
1372       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373       eval $ac_var=\$ac_val;;
1374   esac
1375   # Be sure to have absolute directory names.
1376   case $ac_val in
1377     [\\/$]* | ?:[\\/]* )  continue;;
1378     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379   esac
1380   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1381    { (exit 1); exit 1; }; }
1382 done
1383
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1390
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393   if test "x$build_alias" = x; then
1394     cross_compiling=maybe
1395     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396     If a cross compiler is detected then cross compile mode will be used." >&2
1397   elif test "x$build_alias" != "x$host_alias"; then
1398     cross_compiling=yes
1399   fi
1400 fi
1401
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405 test "$silent" = yes && exec 6>/dev/null
1406
1407
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1412    { (exit 1); exit 1; }; }
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1415    { (exit 1); exit 1; }; }
1416
1417
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420   ac_srcdir_defaulted=yes
1421   # Try the directory containing this script, then the parent directory.
1422   ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424          X"$as_myself" : 'X\(//\)[^/]' \| \
1425          X"$as_myself" : 'X\(//\)$' \| \
1426          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429             s//\1/
1430             q
1431           }
1432           /^X\(\/\/\)[^/].*/{
1433             s//\1/
1434             q
1435           }
1436           /^X\(\/\/\)$/{
1437             s//\1/
1438             q
1439           }
1440           /^X\(\/\).*/{
1441             s//\1/
1442             q
1443           }
1444           s/.*/./; q'`
1445   srcdir=$ac_confdir
1446   if test ! -r "$srcdir/$ac_unique_file"; then
1447     srcdir=..
1448   fi
1449 else
1450   ac_srcdir_defaulted=no
1451 fi
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1455    { (exit 1); exit 1; }; }
1456 fi
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 ac_abs_confdir=`(
1459         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1460    { (exit 1); exit 1; }; }
1461         pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464   srcdir=.
1465 fi
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474   eval ac_env_${ac_var}_value=\$${ac_var}
1475   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1478
1479 #
1480 # Report the --help message.
1481 #
1482 if test "$ac_init_help" = "long"; then
1483   # Omit some internal or obsolete options to make the list less imposing.
1484   # This message is too long to be a string in the A/UX 3.1 sh.
1485   cat <<_ACEOF
1486 \`configure' configures Clustal Omega 1.0.2 to adapt to many kinds of systems.
1487
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE.  See below for descriptions of some of the useful variables.
1492
1493 Defaults for the options are specified in brackets.
1494
1495 Configuration:
1496   -h, --help              display this help and exit
1497       --help=short        display options specific to this package
1498       --help=recursive    display the short help of all the included packages
1499   -V, --version           display version information and exit
1500   -q, --quiet, --silent   do not print \`checking...' messages
1501       --cache-file=FILE   cache test results in FILE [disabled]
1502   -C, --config-cache      alias for \`--cache-file=config.cache'
1503   -n, --no-create         do not create output files
1504       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1505
1506 Installation directories:
1507   --prefix=PREFIX         install architecture-independent files in PREFIX
1508                           [$ac_default_prefix]
1509   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1510                           [PREFIX]
1511
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1516
1517 For better control, use the options below.
1518
1519 Fine tuning of the installation directories:
1520   --bindir=DIR            user executables [EPREFIX/bin]
1521   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1522   --libexecdir=DIR        program executables [EPREFIX/libexec]
1523   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1524   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1525   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1526   --libdir=DIR            object code libraries [EPREFIX/lib]
1527   --includedir=DIR        C header files [PREFIX/include]
1528   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1529   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1530   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1531   --infodir=DIR           info documentation [DATAROOTDIR/info]
1532   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1533   --mandir=DIR            man documentation [DATAROOTDIR/man]
1534   --docdir=DIR            documentation root [DATAROOTDIR/doc/clustal-omega]
1535   --htmldir=DIR           html documentation [DOCDIR]
1536   --dvidir=DIR            dvi documentation [DOCDIR]
1537   --pdfdir=DIR            pdf documentation [DOCDIR]
1538   --psdir=DIR             ps documentation [DOCDIR]
1539 _ACEOF
1540
1541   cat <<\_ACEOF
1542
1543 Program names:
1544   --program-prefix=PREFIX            prepend PREFIX to installed program names
1545   --program-suffix=SUFFIX            append SUFFIX to installed program names
1546   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1547
1548 System types:
1549   --build=BUILD     configure for building on BUILD [guessed]
1550   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1551 _ACEOF
1552 fi
1553
1554 if test -n "$ac_init_help"; then
1555   case $ac_init_help in
1556      short | recursive ) echo "Configuration of Clustal Omega 1.0.2:";;
1557    esac
1558   cat <<\_ACEOF
1559
1560 Optional Features:
1561   --disable-option-checking  ignore unrecognized --enable/--with options
1562   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1563   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1564   --disable-dependency-tracking  speeds up one-time build
1565   --enable-dependency-tracking   do not reject slow dependency extractors
1566   --enable-shared[=PKGS]  build shared libraries [default=yes]
1567   --enable-static[=PKGS]  build static libraries [default=yes]
1568   --enable-fast-install[=PKGS]
1569                           optimize for fast installation [default=yes]
1570   --disable-libtool-lock  avoid locking (might break parallel builds)
1571   --enable-debug          Enable debugging (default=no)
1572
1573 Optional Packages:
1574   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1575   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1576   --with-pic              try to use only PIC/non-PIC objects [default=use
1577                           both]
1578   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1579   --without-openmp        Do not use OpenMP
1580   --with-dmalloc          use dmalloc, as in
1581                           http://www.dmalloc.com/dmalloc.tar.gz
1582
1583 Some influential environment variables:
1584   CC          C compiler command
1585   CFLAGS      C compiler flags
1586   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1587               nonstandard directory <lib dir>
1588   LIBS        libraries to pass to the linker, e.g. -l<library>
1589   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590               you have headers in a nonstandard directory <include dir>
1591   CPP         C preprocessor
1592   CXX         C++ compiler command
1593   CXXFLAGS    C++ compiler flags
1594   CXXCPP      C++ preprocessor
1595
1596 Use these variables to override the choices made by `configure' or to help
1597 it to find libraries and programs with nonstandard names/locations.
1598
1599 Report bugs to <clustalw@ucd.ie>.
1600 _ACEOF
1601 ac_status=$?
1602 fi
1603
1604 if test "$ac_init_help" = "recursive"; then
1605   # If there are subdirs, report their specific --help.
1606   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1607     test -d "$ac_dir" ||
1608       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1609       continue
1610     ac_builddir=.
1611
1612 case "$ac_dir" in
1613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 *)
1615   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1616   # A ".." for each directory in $ac_dir_suffix.
1617   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1618   case $ac_top_builddir_sub in
1619   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621   esac ;;
1622 esac
1623 ac_abs_top_builddir=$ac_pwd
1624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625 # for backward compatibility:
1626 ac_top_builddir=$ac_top_build_prefix
1627
1628 case $srcdir in
1629   .)  # We are building in place.
1630     ac_srcdir=.
1631     ac_top_srcdir=$ac_top_builddir_sub
1632     ac_abs_top_srcdir=$ac_pwd ;;
1633   [\\/]* | ?:[\\/]* )  # Absolute name.
1634     ac_srcdir=$srcdir$ac_dir_suffix;
1635     ac_top_srcdir=$srcdir
1636     ac_abs_top_srcdir=$srcdir ;;
1637   *) # Relative name.
1638     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639     ac_top_srcdir=$ac_top_build_prefix$srcdir
1640     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641 esac
1642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643
1644     cd "$ac_dir" || { ac_status=$?; continue; }
1645     # Check for guested configure.
1646     if test -f "$ac_srcdir/configure.gnu"; then
1647       echo &&
1648       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649     elif test -f "$ac_srcdir/configure"; then
1650       echo &&
1651       $SHELL "$ac_srcdir/configure" --help=recursive
1652     else
1653       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654     fi || ac_status=$?
1655     cd "$ac_pwd" || { ac_status=$?; break; }
1656   done
1657 fi
1658
1659 test -n "$ac_init_help" && exit $ac_status
1660 if $ac_init_version; then
1661   cat <<\_ACEOF
1662 Clustal Omega configure 1.0.2
1663 generated by GNU Autoconf 2.63
1664
1665 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1666 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1667 This configure script is free software; the Free Software Foundation
1668 gives unlimited permission to copy, distribute and modify it.
1669 _ACEOF
1670   exit
1671 fi
1672 cat >config.log <<_ACEOF
1673 This file contains any messages produced by compilers while
1674 running configure, to aid debugging if configure makes a mistake.
1675
1676 It was created by Clustal Omega $as_me 1.0.2, which was
1677 generated by GNU Autoconf 2.63.  Invocation command line was
1678
1679   $ $0 $@
1680
1681 _ACEOF
1682 exec 5>>config.log
1683 {
1684 cat <<_ASUNAME
1685 ## --------- ##
1686 ## Platform. ##
1687 ## --------- ##
1688
1689 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1690 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1691 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1692 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1693 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1694
1695 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1696 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1697
1698 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1699 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1700 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1701 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1702 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1703 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1704 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1705
1706 _ASUNAME
1707
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 for as_dir in $PATH
1710 do
1711   IFS=$as_save_IFS
1712   test -z "$as_dir" && as_dir=.
1713   $as_echo "PATH: $as_dir"
1714 done
1715 IFS=$as_save_IFS
1716
1717 } >&5
1718
1719 cat >&5 <<_ACEOF
1720
1721
1722 ## ----------- ##
1723 ## Core tests. ##
1724 ## ----------- ##
1725
1726 _ACEOF
1727
1728
1729 # Keep a trace of the command line.
1730 # Strip out --no-create and --no-recursion so they do not pile up.
1731 # Strip out --silent because we don't want to record it for future runs.
1732 # Also quote any args containing shell meta-characters.
1733 # Make two passes to allow for proper duplicate-argument suppression.
1734 ac_configure_args=
1735 ac_configure_args0=
1736 ac_configure_args1=
1737 ac_must_keep_next=false
1738 for ac_pass in 1 2
1739 do
1740   for ac_arg
1741   do
1742     case $ac_arg in
1743     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1744     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1745     | -silent | --silent | --silen | --sile | --sil)
1746       continue ;;
1747     *\'*)
1748       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1749     esac
1750     case $ac_pass in
1751     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1752     2)
1753       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1754       if test $ac_must_keep_next = true; then
1755         ac_must_keep_next=false # Got value, back to normal.
1756       else
1757         case $ac_arg in
1758           *=* | --config-cache | -C | -disable-* | --disable-* \
1759           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1760           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1761           | -with-* | --with-* | -without-* | --without-* | --x)
1762             case "$ac_configure_args0 " in
1763               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1764             esac
1765             ;;
1766           -* ) ac_must_keep_next=true ;;
1767         esac
1768       fi
1769       ac_configure_args="$ac_configure_args '$ac_arg'"
1770       ;;
1771     esac
1772   done
1773 done
1774 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1775 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1776
1777 # When interrupted or exit'd, cleanup temporary files, and complete
1778 # config.log.  We remove comments because anyway the quotes in there
1779 # would cause problems or look ugly.
1780 # WARNING: Use '\'' to represent an apostrophe within the trap.
1781 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1782 trap 'exit_status=$?
1783   # Save into config.log some information that might help in debugging.
1784   {
1785     echo
1786
1787     cat <<\_ASBOX
1788 ## ---------------- ##
1789 ## Cache variables. ##
1790 ## ---------------- ##
1791 _ASBOX
1792     echo
1793     # The following way of writing the cache mishandles newlines in values,
1794 (
1795   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1796     eval ac_val=\$$ac_var
1797     case $ac_val in #(
1798     *${as_nl}*)
1799       case $ac_var in #(
1800       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1801 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1802       esac
1803       case $ac_var in #(
1804       _ | IFS | as_nl) ;; #(
1805       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1806       *) $as_unset $ac_var ;;
1807       esac ;;
1808     esac
1809   done
1810   (set) 2>&1 |
1811     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1812     *${as_nl}ac_space=\ *)
1813       sed -n \
1814         "s/'\''/'\''\\\\'\'''\''/g;
1815           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1816       ;; #(
1817     *)
1818       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1819       ;;
1820     esac |
1821     sort
1822 )
1823     echo
1824
1825     cat <<\_ASBOX
1826 ## ----------------- ##
1827 ## Output variables. ##
1828 ## ----------------- ##
1829 _ASBOX
1830     echo
1831     for ac_var in $ac_subst_vars
1832     do
1833       eval ac_val=\$$ac_var
1834       case $ac_val in
1835       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836       esac
1837       $as_echo "$ac_var='\''$ac_val'\''"
1838     done | sort
1839     echo
1840
1841     if test -n "$ac_subst_files"; then
1842       cat <<\_ASBOX
1843 ## ------------------- ##
1844 ## File substitutions. ##
1845 ## ------------------- ##
1846 _ASBOX
1847       echo
1848       for ac_var in $ac_subst_files
1849       do
1850         eval ac_val=\$$ac_var
1851         case $ac_val in
1852         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1853         esac
1854         $as_echo "$ac_var='\''$ac_val'\''"
1855       done | sort
1856       echo
1857     fi
1858
1859     if test -s confdefs.h; then
1860       cat <<\_ASBOX
1861 ## ----------- ##
1862 ## confdefs.h. ##
1863 ## ----------- ##
1864 _ASBOX
1865       echo
1866       cat confdefs.h
1867       echo
1868     fi
1869     test "$ac_signal" != 0 &&
1870       $as_echo "$as_me: caught signal $ac_signal"
1871     $as_echo "$as_me: exit $exit_status"
1872   } >&5
1873   rm -f core *.core core.conftest.* &&
1874     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1875     exit $exit_status
1876 ' 0
1877 for ac_signal in 1 2 13 15; do
1878   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1879 done
1880 ac_signal=0
1881
1882 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1883 rm -f -r conftest* confdefs.h
1884
1885 # Predefined preprocessor variables.
1886
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_NAME "$PACKAGE_NAME"
1889 _ACEOF
1890
1891
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1894 _ACEOF
1895
1896
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1899 _ACEOF
1900
1901
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_STRING "$PACKAGE_STRING"
1904 _ACEOF
1905
1906
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1909 _ACEOF
1910
1911
1912 # Let the site file select an alternate cache file if it wants to.
1913 # Prefer an explicitly selected file to automatically selected ones.
1914 ac_site_file1=NONE
1915 ac_site_file2=NONE
1916 if test -n "$CONFIG_SITE"; then
1917   ac_site_file1=$CONFIG_SITE
1918 elif test "x$prefix" != xNONE; then
1919   ac_site_file1=$prefix/share/config.site
1920   ac_site_file2=$prefix/etc/config.site
1921 else
1922   ac_site_file1=$ac_default_prefix/share/config.site
1923   ac_site_file2=$ac_default_prefix/etc/config.site
1924 fi
1925 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1926 do
1927   test "x$ac_site_file" = xNONE && continue
1928   if test -r "$ac_site_file"; then
1929     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1930 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1931     sed 's/^/| /' "$ac_site_file" >&5
1932     . "$ac_site_file"
1933   fi
1934 done
1935
1936 if test -r "$cache_file"; then
1937   # Some versions of bash will fail to source /dev/null (special
1938   # files actually), so we avoid doing that.
1939   if test -f "$cache_file"; then
1940     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1941 $as_echo "$as_me: loading cache $cache_file" >&6;}
1942     case $cache_file in
1943       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1944       *)                      . "./$cache_file";;
1945     esac
1946   fi
1947 else
1948   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1949 $as_echo "$as_me: creating cache $cache_file" >&6;}
1950   >$cache_file
1951 fi
1952
1953 # Check that the precious variables saved in the cache have kept the same
1954 # value.
1955 ac_cache_corrupted=false
1956 for ac_var in $ac_precious_vars; do
1957   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1958   eval ac_new_set=\$ac_env_${ac_var}_set
1959   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1960   eval ac_new_val=\$ac_env_${ac_var}_value
1961   case $ac_old_set,$ac_new_set in
1962     set,)
1963       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965       ac_cache_corrupted=: ;;
1966     ,set)
1967       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969       ac_cache_corrupted=: ;;
1970     ,);;
1971     *)
1972       if test "x$ac_old_val" != "x$ac_new_val"; then
1973         # differences in whitespace do not lead to failure.
1974         ac_old_val_w=`echo x $ac_old_val`
1975         ac_new_val_w=`echo x $ac_new_val`
1976         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1977           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1978 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1979           ac_cache_corrupted=:
1980         else
1981           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1982 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1983           eval $ac_var=\$ac_old_val
1984         fi
1985         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1986 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1987         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1988 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1989       fi;;
1990   esac
1991   # Pass precious variables to config.status.
1992   if test "$ac_new_set" = set; then
1993     case $ac_new_val in
1994     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1995     *) ac_arg=$ac_var=$ac_new_val ;;
1996     esac
1997     case " $ac_configure_args " in
1998       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1999       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2000     esac
2001   fi
2002 done
2003 if $ac_cache_corrupted; then
2004   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2006   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2007 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2008   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2009 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2010    { (exit 1); exit 1; }; }
2011 fi
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037 ac_ext=c
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042
2043
2044 PACKAGE_CODENAME="DeshilHollesEamus"
2045
2046 # The AC_INIT macro can take any source file as an argument. It just
2047 # checks that the file is there, which should, in turn, mean that the
2048 # source directory is there. AC_INIT generates the following m4
2049 # macros, output variables and preprocessor symbols:
2050
2051
2052
2053
2054
2055
2056
2057 { $as_echo "$as_me:$LINENO:
2058
2059     Welcome to $PACKAGE_NAME - version $PACKAGE_VERSION ($PACKAGE_CODENAME)
2060
2061                        +NMMMMMMMMMS=
2062                     MMMMM?      :MMMMM8
2063                   IMMMMS           MMMMM,
2064                 ~MMMMN              ,MMMMM
2065                =MMMMM                 MMMMM
2066               ?MMMMM                  +MMMMM
2067               MMMMMS                   MMMMM
2068               MMMMM                    MMMMM:
2069               MMMMM                    MMMMM+
2070               MMMMM                    MMMMM~
2071               MMMMM                    MMMMM
2072               MMMMMZ                   MMMMM
2073                MMMMM                  ,MMMMZ
2074                 MMMM8                 MMMM+
2075                  MMMMS               MMMM,
2076                    MMMMO           MMMM
2077             ,N       SMMM        MMM8       +8
2078             ,M7         M+       M+        :M8
2079             ,MMMMMMMMMMMMI       MMMMMMMMMMMM8
2080             ,MMMMMMMMMMMM8       MMMMMMMMMMMM8
2081             ,MMMMMMMMMMMMN       MMMMMMMMMMMM8
2082
2083               " >&5
2084 $as_echo "$as_me:
2085
2086     Welcome to $PACKAGE_NAME - version $PACKAGE_VERSION ($PACKAGE_CODENAME)
2087
2088                        +NMMMMMMMMMS=
2089                     MMMMM?      :MMMMM8
2090                   IMMMMS           MMMMM,
2091                 ~MMMMN              ,MMMMM
2092                =MMMMM                 MMMMM
2093               ?MMMMM                  +MMMMM
2094               MMMMMS                   MMMMM
2095               MMMMM                    MMMMM:
2096               MMMMM                    MMMMM+
2097               MMMMM                    MMMMM~
2098               MMMMM                    MMMMM
2099               MMMMMZ                   MMMMM
2100                MMMMM                  ,MMMMZ
2101                 MMMM8                 MMMM+
2102                  MMMMS               MMMM,
2103                    MMMMO           MMMM
2104             ,N       SMMM        MMM8       +8
2105             ,M7         M+       M+        :M8
2106             ,MMMMMMMMMMMMI       MMMMMMMMMMMM8
2107             ,MMMMMMMMMMMM8       MMMMMMMMMMMM8
2108             ,MMMMMMMMMMMMN       MMMMMMMMMMMM8
2109
2110               " >&6;}
2111 #
2112 # Created with http://www.glassgiant.com/ascii/ and Wikipedia's Omega
2113 # Replaced all dollars with S's.
2114 #
2115 #
2116 #                 ,MMMMMMMMMD:        MMMMM
2117 #               NMMMMMMMMMMMMMM+      SMMMM
2118 #             DMMMMMMMMMMMMMMMMMM,    +MMMM
2119 #            MMMMMMMMM8ZSO8MMMMMMMM   +MMMM
2120 #           MMMMM7             SMMMM  +MMMM
2121 #          MMMO                   MM? +MMMM
2122 #         ?MMI                     NMIIMMMM
2123 #         MMM                       MMMMMMM
2124 #         MM
2125 #         MN
2126 #         MD
2127 #         MM
2128 #         MM?                       ,~+ISON
2129 #         =MMI                     MMSOMMMM
2130 #          MMMZ                   MMS +MMMM
2131 #           MMMM8:             :NMMM  +MMMM
2132 #            MMMMMMMMMDOODMMMMMMMMM   +MMMM
2133 #             MMMMMMMMMMMMMMMMMMMM    +MMMM
2134 #               OMMMMMMMMMMMMMMZ      SMMMM
2135 #                  MMMMMMMMMM+        MMMMM
2136 #
2137
2138
2139 # AC_MSG_NOTICE([Configuring for your system...])
2140
2141  # 2.60 needed for AC_USE_SYSTEM_EXTENSIONS
2142 # consider 2.64 which allows to define a URL as well
2143
2144 # The AM_INIT_AUTOMAKE line adds several standard checks.
2145 # This macro is always needed for automake
2146 # Obsolete: It takes the program name and version number as arguments.
2147 am__api_version='1.10'
2148
2149 ac_aux_dir=
2150 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2151   if test -f "$ac_dir/install-sh"; then
2152     ac_aux_dir=$ac_dir
2153     ac_install_sh="$ac_aux_dir/install-sh -c"
2154     break
2155   elif test -f "$ac_dir/install.sh"; then
2156     ac_aux_dir=$ac_dir
2157     ac_install_sh="$ac_aux_dir/install.sh -c"
2158     break
2159   elif test -f "$ac_dir/shtool"; then
2160     ac_aux_dir=$ac_dir
2161     ac_install_sh="$ac_aux_dir/shtool install -c"
2162     break
2163   fi
2164 done
2165 if test -z "$ac_aux_dir"; then
2166   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2167 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2168    { (exit 1); exit 1; }; }
2169 fi
2170
2171 # These three variables are undocumented and unsupported,
2172 # and are intended to be withdrawn in a future Autoconf release.
2173 # They can cause serious problems if a builder's source tree is in a directory
2174 # whose full name contains unusual characters.
2175 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2176 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2177 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2178
2179
2180 # Find a good install program.  We prefer a C program (faster),
2181 # so one script is as good as another.  But avoid the broken or
2182 # incompatible versions:
2183 # SysV /etc/install, /usr/sbin/install
2184 # SunOS /usr/etc/install
2185 # IRIX /sbin/install
2186 # AIX /bin/install
2187 # AmigaOS /C/install, which installs bootblocks on floppy discs
2188 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2189 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2190 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2191 # OS/2's system install, which has a completely different semantic
2192 # ./install, which can be erroneously created by make from ./install.sh.
2193 # Reject install programs that cannot install multiple files.
2194 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2195 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2196 if test -z "$INSTALL"; then
2197 if test "${ac_cv_path_install+set}" = set; then
2198   $as_echo_n "(cached) " >&6
2199 else
2200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 for as_dir in $PATH
2202 do
2203   IFS=$as_save_IFS
2204   test -z "$as_dir" && as_dir=.
2205   # Account for people who put trailing slashes in PATH elements.
2206 case $as_dir/ in
2207   ./ | .// | /cC/* | \
2208   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2209   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2210   /usr/ucb/* ) ;;
2211   *)
2212     # OSF1 and SCO ODT 3.0 have their own names for install.
2213     # Don't use installbsd from OSF since it installs stuff as root
2214     # by default.
2215     for ac_prog in ginstall scoinst install; do
2216       for ac_exec_ext in '' $ac_executable_extensions; do
2217         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2218           if test $ac_prog = install &&
2219             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2220             # AIX install.  It has an incompatible calling convention.
2221             :
2222           elif test $ac_prog = install &&
2223             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2224             # program-specific install script used by HP pwplus--don't use.
2225             :
2226           else
2227             rm -rf conftest.one conftest.two conftest.dir
2228             echo one > conftest.one
2229             echo two > conftest.two
2230             mkdir conftest.dir
2231             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2232               test -s conftest.one && test -s conftest.two &&
2233               test -s conftest.dir/conftest.one &&
2234               test -s conftest.dir/conftest.two
2235             then
2236               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2237               break 3
2238             fi
2239           fi
2240         fi
2241       done
2242     done
2243     ;;
2244 esac
2245
2246 done
2247 IFS=$as_save_IFS
2248
2249 rm -rf conftest.one conftest.two conftest.dir
2250
2251 fi
2252   if test "${ac_cv_path_install+set}" = set; then
2253     INSTALL=$ac_cv_path_install
2254   else
2255     # As a last resort, use the slow shell script.  Don't cache a
2256     # value for INSTALL within a source directory, because that will
2257     # break other packages using the cache if that directory is
2258     # removed, or if the value is a relative name.
2259     INSTALL=$ac_install_sh
2260   fi
2261 fi
2262 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2263 $as_echo "$INSTALL" >&6; }
2264
2265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2266 # It thinks the first close brace ends the variable substitution.
2267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2268
2269 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2270
2271 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2272
2273 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2274 $as_echo_n "checking whether build environment is sane... " >&6; }
2275 # Just in case
2276 sleep 1
2277 echo timestamp > conftest.file
2278 # Do `set' in a subshell so we don't clobber the current shell's
2279 # arguments.  Must try -L first in case configure is actually a
2280 # symlink; some systems play weird games with the mod time of symlinks
2281 # (eg FreeBSD returns the mod time of the symlink's containing
2282 # directory).
2283 if (
2284    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2285    if test "$*" = "X"; then
2286       # -L didn't work.
2287       set X `ls -t $srcdir/configure conftest.file`
2288    fi
2289    rm -f conftest.file
2290    if test "$*" != "X $srcdir/configure conftest.file" \
2291       && test "$*" != "X conftest.file $srcdir/configure"; then
2292
2293       # If neither matched, then we have a broken ls.  This can happen
2294       # if, for instance, CONFIG_SHELL is bash and it inherits a
2295       # broken ls alias from the environment.  This has actually
2296       # happened.  Such a system could not be considered "sane".
2297       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2298 alias in your environment" >&5
2299 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2300 alias in your environment" >&2;}
2301    { (exit 1); exit 1; }; }
2302    fi
2303
2304    test "$2" = conftest.file
2305    )
2306 then
2307    # Ok.
2308    :
2309 else
2310    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2311 Check your system clock" >&5
2312 $as_echo "$as_me: error: newly created file is older than distributed files!
2313 Check your system clock" >&2;}
2314    { (exit 1); exit 1; }; }
2315 fi
2316 { $as_echo "$as_me:$LINENO: result: yes" >&5
2317 $as_echo "yes" >&6; }
2318 test "$program_prefix" != NONE &&
2319   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2320 # Use a double $ so make ignores it.
2321 test "$program_suffix" != NONE &&
2322   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2323 # Double any \ or $.
2324 # By default was `s,x,x', remove it if useless.
2325 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2326 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2327
2328 # expand $ac_aux_dir to an absolute path
2329 am_aux_dir=`cd $ac_aux_dir && pwd`
2330
2331 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2332 # Use eval to expand $SHELL
2333 if eval "$MISSING --run true"; then
2334   am_missing_run="$MISSING --run "
2335 else
2336   am_missing_run=
2337   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2338 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2339 fi
2340
2341 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2342 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2343 if test -z "$MKDIR_P"; then
2344   if test "${ac_cv_path_mkdir+set}" = set; then
2345   $as_echo_n "(cached) " >&6
2346 else
2347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2349 do
2350   IFS=$as_save_IFS
2351   test -z "$as_dir" && as_dir=.
2352   for ac_prog in mkdir gmkdir; do
2353          for ac_exec_ext in '' $ac_executable_extensions; do
2354            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2355            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2356              'mkdir (GNU coreutils) '* | \
2357              'mkdir (coreutils) '* | \
2358              'mkdir (fileutils) '4.1*)
2359                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2360                break 3;;
2361            esac
2362          done
2363        done
2364 done
2365 IFS=$as_save_IFS
2366
2367 fi
2368
2369   if test "${ac_cv_path_mkdir+set}" = set; then
2370     MKDIR_P="$ac_cv_path_mkdir -p"
2371   else
2372     # As a last resort, use the slow shell script.  Don't cache a
2373     # value for MKDIR_P within a source directory, because that will
2374     # break other packages using the cache if that directory is
2375     # removed, or if the value is a relative name.
2376     test -d ./--version && rmdir ./--version
2377     MKDIR_P="$ac_install_sh -d"
2378   fi
2379 fi
2380 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2381 $as_echo "$MKDIR_P" >&6; }
2382
2383 mkdir_p="$MKDIR_P"
2384 case $mkdir_p in
2385   [\\/$]* | ?:[\\/]*) ;;
2386   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2387 esac
2388
2389 for ac_prog in gawk mawk nawk awk
2390 do
2391   # Extract the first word of "$ac_prog", so it can be a program name with args.
2392 set dummy $ac_prog; ac_word=$2
2393 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2394 $as_echo_n "checking for $ac_word... " >&6; }
2395 if test "${ac_cv_prog_AWK+set}" = set; then
2396   $as_echo_n "(cached) " >&6
2397 else
2398   if test -n "$AWK"; then
2399   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2400 else
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 for as_dir in $PATH
2403 do
2404   IFS=$as_save_IFS
2405   test -z "$as_dir" && as_dir=.
2406   for ac_exec_ext in '' $ac_executable_extensions; do
2407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2408     ac_cv_prog_AWK="$ac_prog"
2409     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410     break 2
2411   fi
2412 done
2413 done
2414 IFS=$as_save_IFS
2415
2416 fi
2417 fi
2418 AWK=$ac_cv_prog_AWK
2419 if test -n "$AWK"; then
2420   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2421 $as_echo "$AWK" >&6; }
2422 else
2423   { $as_echo "$as_me:$LINENO: result: no" >&5
2424 $as_echo "no" >&6; }
2425 fi
2426
2427
2428   test -n "$AWK" && break
2429 done
2430
2431 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2432 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2433 set x ${MAKE-make}
2434 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2435 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2436   $as_echo_n "(cached) " >&6
2437 else
2438   cat >conftest.make <<\_ACEOF
2439 SHELL = /bin/sh
2440 all:
2441         @echo '@@@%%%=$(MAKE)=@@@%%%'
2442 _ACEOF
2443 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2444 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2445   *@@@%%%=?*=@@@%%%*)
2446     eval ac_cv_prog_make_${ac_make}_set=yes;;
2447   *)
2448     eval ac_cv_prog_make_${ac_make}_set=no;;
2449 esac
2450 rm -f conftest.make
2451 fi
2452 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2453   { $as_echo "$as_me:$LINENO: result: yes" >&5
2454 $as_echo "yes" >&6; }
2455   SET_MAKE=
2456 else
2457   { $as_echo "$as_me:$LINENO: result: no" >&5
2458 $as_echo "no" >&6; }
2459   SET_MAKE="MAKE=${MAKE-make}"
2460 fi
2461
2462 rm -rf .tst 2>/dev/null
2463 mkdir .tst 2>/dev/null
2464 if test -d .tst; then
2465   am__leading_dot=.
2466 else
2467   am__leading_dot=_
2468 fi
2469 rmdir .tst 2>/dev/null
2470
2471 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2472   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2473   # is not polluted with repeated "-I."
2474   am__isrc=' -I$(srcdir)'
2475   # test to see if srcdir already configured
2476   if test -f $srcdir/config.status; then
2477     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2478 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2479    { (exit 1); exit 1; }; }
2480   fi
2481 fi
2482
2483 # test whether we have cygpath
2484 if test -z "$CYGPATH_W"; then
2485   if (cygpath --version) >/dev/null 2>/dev/null; then
2486     CYGPATH_W='cygpath -w'
2487   else
2488     CYGPATH_W=echo
2489   fi
2490 fi
2491
2492
2493 # Define the identity of the package.
2494  PACKAGE='clustal-omega'
2495  VERSION='1.0.2'
2496
2497
2498 cat >>confdefs.h <<_ACEOF
2499 #define PACKAGE "$PACKAGE"
2500 _ACEOF
2501
2502
2503 cat >>confdefs.h <<_ACEOF
2504 #define VERSION "$VERSION"
2505 _ACEOF
2506
2507 # Some tools Automake needs.
2508
2509 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2510
2511
2512 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2513
2514
2515 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2516
2517
2518 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2519
2520
2521 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2522
2523 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2524
2525 # Installed binaries are usually stripped using `strip' when the user
2526 # run `make install-strip'.  However `strip' might not be the right
2527 # tool to use in cross-compilation environments, therefore Automake
2528 # will honor the `STRIP' environment variable to overrule this program.
2529 if test "$cross_compiling" != no; then
2530   if test -n "$ac_tool_prefix"; then
2531   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2532 set dummy ${ac_tool_prefix}strip; ac_word=$2
2533 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2534 $as_echo_n "checking for $ac_word... " >&6; }
2535 if test "${ac_cv_prog_STRIP+set}" = set; then
2536   $as_echo_n "(cached) " >&6
2537 else
2538   if test -n "$STRIP"; then
2539   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2540 else
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2543 do
2544   IFS=$as_save_IFS
2545   test -z "$as_dir" && as_dir=.
2546   for ac_exec_ext in '' $ac_executable_extensions; do
2547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2548     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2549     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550     break 2
2551   fi
2552 done
2553 done
2554 IFS=$as_save_IFS
2555
2556 fi
2557 fi
2558 STRIP=$ac_cv_prog_STRIP
2559 if test -n "$STRIP"; then
2560   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2561 $as_echo "$STRIP" >&6; }
2562 else
2563   { $as_echo "$as_me:$LINENO: result: no" >&5
2564 $as_echo "no" >&6; }
2565 fi
2566
2567
2568 fi
2569 if test -z "$ac_cv_prog_STRIP"; then
2570   ac_ct_STRIP=$STRIP
2571   # Extract the first word of "strip", so it can be a program name with args.
2572 set dummy strip; ac_word=$2
2573 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 $as_echo_n "checking for $ac_word... " >&6; }
2575 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2576   $as_echo_n "(cached) " >&6
2577 else
2578   if test -n "$ac_ct_STRIP"; then
2579   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584   IFS=$as_save_IFS
2585   test -z "$as_dir" && as_dir=.
2586   for ac_exec_ext in '' $ac_executable_extensions; do
2587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588     ac_cv_prog_ac_ct_STRIP="strip"
2589     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590     break 2
2591   fi
2592 done
2593 done
2594 IFS=$as_save_IFS
2595
2596 fi
2597 fi
2598 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2599 if test -n "$ac_ct_STRIP"; then
2600   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2601 $as_echo "$ac_ct_STRIP" >&6; }
2602 else
2603   { $as_echo "$as_me:$LINENO: result: no" >&5
2604 $as_echo "no" >&6; }
2605 fi
2606
2607   if test "x$ac_ct_STRIP" = x; then
2608     STRIP=":"
2609   else
2610     case $cross_compiling:$ac_tool_warned in
2611 yes:)
2612 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2614 ac_tool_warned=yes ;;
2615 esac
2616     STRIP=$ac_ct_STRIP
2617   fi
2618 else
2619   STRIP="$ac_cv_prog_STRIP"
2620 fi
2621
2622 fi
2623 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2624
2625 # We need awk for the "check" target.  The system "awk" is bad on
2626 # some platforms.
2627 # Always define AMTAR for backward compatibility.
2628
2629 AMTAR=${AMTAR-"${am_missing_run}tar"}
2630
2631 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2632
2633
2634
2635
2636
2637
2638 # config header: provides a way for people to customise the
2639 # configuration for their platform, via #defines. config.h.in can be
2640 # generated automatically with the autoheader tool. However, you need
2641 # a stamp-h file in your project to ensure that automake regenerates
2642 # config.h from config.h.in. Type 'touch stamp-h' to add this file to
2643 # your project.
2644 #
2645 ac_config_headers="$ac_config_headers src/config.h"
2646
2647
2648 # the following allows to install a copy config.h for libclustalo in a
2649 # namespace like way, i.e. no name clash with your own config.h
2650
2651 ac_config_commands="$ac_config_commands src/clustal-omega-config.h"
2652
2653
2654 # This macro was introduced in Autoconf 2.60. If possible, enable
2655 # extensions to C or Posix on hosts that normally disable the
2656 # extensions.
2657 DEPDIR="${am__leading_dot}deps"
2658
2659 ac_config_commands="$ac_config_commands depfiles"
2660
2661
2662 am_make=${MAKE-make}
2663 cat > confinc << 'END'
2664 am__doit:
2665         @echo done
2666 .PHONY: am__doit
2667 END
2668 # If we don't find an include directive, just comment out the code.
2669 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2670 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2671 am__include="#"
2672 am__quote=
2673 _am_result=none
2674 # First try GNU make style include.
2675 echo "include confinc" > confmf
2676 # We grep out `Entering directory' and `Leaving directory'
2677 # messages which can occur if `w' ends up in MAKEFLAGS.
2678 # In particular we don't look at `^make:' because GNU make might
2679 # be invoked under some other name (usually "gmake"), in which
2680 # case it prints its new name instead of `make'.
2681 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2682    am__include=include
2683    am__quote=
2684    _am_result=GNU
2685 fi
2686 # Now try BSD make style include.
2687 if test "$am__include" = "#"; then
2688    echo '.include "confinc"' > confmf
2689    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2690       am__include=.include
2691       am__quote="\""
2692       _am_result=BSD
2693    fi
2694 fi
2695
2696
2697 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2698 $as_echo "$_am_result" >&6; }
2699 rm -f confinc confmf
2700
2701 # Check whether --enable-dependency-tracking was given.
2702 if test "${enable_dependency_tracking+set}" = set; then
2703   enableval=$enable_dependency_tracking;
2704 fi
2705
2706 if test "x$enable_dependency_tracking" != xno; then
2707   am_depcomp="$ac_aux_dir/depcomp"
2708   AMDEPBACKSLASH='\'
2709 fi
2710  if test "x$enable_dependency_tracking" != xno; then
2711   AMDEP_TRUE=
2712   AMDEP_FALSE='#'
2713 else
2714   AMDEP_TRUE='#'
2715   AMDEP_FALSE=
2716 fi
2717
2718
2719 ac_ext=c
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724 if test -n "$ac_tool_prefix"; then
2725   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if test "${ac_cv_prog_CC+set}" = set; then
2730   $as_echo_n "(cached) " >&6
2731 else
2732   if test -n "$CC"; then
2733   ac_cv_prog_CC="$CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738   IFS=$as_save_IFS
2739   test -z "$as_dir" && as_dir=.
2740   for ac_exec_ext in '' $ac_executable_extensions; do
2741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2743     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744     break 2
2745   fi
2746 done
2747 done
2748 IFS=$as_save_IFS
2749
2750 fi
2751 fi
2752 CC=$ac_cv_prog_CC
2753 if test -n "$CC"; then
2754   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2755 $as_echo "$CC" >&6; }
2756 else
2757   { $as_echo "$as_me:$LINENO: result: no" >&5
2758 $as_echo "no" >&6; }
2759 fi
2760
2761
2762 fi
2763 if test -z "$ac_cv_prog_CC"; then
2764   ac_ct_CC=$CC
2765   # Extract the first word of "gcc", so it can be a program name with args.
2766 set dummy gcc; ac_word=$2
2767 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2770   $as_echo_n "(cached) " >&6
2771 else
2772   if test -n "$ac_ct_CC"; then
2773   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2777 do
2778   IFS=$as_save_IFS
2779   test -z "$as_dir" && as_dir=.
2780   for ac_exec_ext in '' $ac_executable_extensions; do
2781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782     ac_cv_prog_ac_ct_CC="gcc"
2783     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784     break 2
2785   fi
2786 done
2787 done
2788 IFS=$as_save_IFS
2789
2790 fi
2791 fi
2792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2793 if test -n "$ac_ct_CC"; then
2794   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2795 $as_echo "$ac_ct_CC" >&6; }
2796 else
2797   { $as_echo "$as_me:$LINENO: result: no" >&5
2798 $as_echo "no" >&6; }
2799 fi
2800
2801   if test "x$ac_ct_CC" = x; then
2802     CC=""
2803   else
2804     case $cross_compiling:$ac_tool_warned in
2805 yes:)
2806 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2808 ac_tool_warned=yes ;;
2809 esac
2810     CC=$ac_ct_CC
2811   fi
2812 else
2813   CC="$ac_cv_prog_CC"
2814 fi
2815
2816 if test -z "$CC"; then
2817           if test -n "$ac_tool_prefix"; then
2818     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2819 set dummy ${ac_tool_prefix}cc; ac_word=$2
2820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_CC+set}" = set; then
2823   $as_echo_n "(cached) " >&6
2824 else
2825   if test -n "$CC"; then
2826   ac_cv_prog_CC="$CC" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831   IFS=$as_save_IFS
2832   test -z "$as_dir" && as_dir=.
2833   for ac_exec_ext in '' $ac_executable_extensions; do
2834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835     ac_cv_prog_CC="${ac_tool_prefix}cc"
2836     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837     break 2
2838   fi
2839 done
2840 done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 CC=$ac_cv_prog_CC
2846 if test -n "$CC"; then
2847   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2848 $as_echo "$CC" >&6; }
2849 else
2850   { $as_echo "$as_me:$LINENO: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854
2855   fi
2856 fi
2857 if test -z "$CC"; then
2858   # Extract the first word of "cc", so it can be a program name with args.
2859 set dummy cc; ac_word=$2
2860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if test "${ac_cv_prog_CC+set}" = set; then
2863   $as_echo_n "(cached) " >&6
2864 else
2865   if test -n "$CC"; then
2866   ac_cv_prog_CC="$CC" # Let the user override the test.
2867 else
2868   ac_prog_rejected=no
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872   IFS=$as_save_IFS
2873   test -z "$as_dir" && as_dir=.
2874   for ac_exec_ext in '' $ac_executable_extensions; do
2875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2877        ac_prog_rejected=yes
2878        continue
2879      fi
2880     ac_cv_prog_CC="cc"
2881     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882     break 2
2883   fi
2884 done
2885 done
2886 IFS=$as_save_IFS
2887
2888 if test $ac_prog_rejected = yes; then
2889   # We found a bogon in the path, so make sure we never use it.
2890   set dummy $ac_cv_prog_CC
2891   shift
2892   if test $# != 0; then
2893     # We chose a different compiler from the bogus one.
2894     # However, it has the same basename, so the bogon will be chosen
2895     # first if we set CC to just the basename; use the full file name.
2896     shift
2897     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2898   fi
2899 fi
2900 fi
2901 fi
2902 CC=$ac_cv_prog_CC
2903 if test -n "$CC"; then
2904   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2906 else
2907   { $as_echo "$as_me:$LINENO: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911
2912 fi
2913 if test -z "$CC"; then
2914   if test -n "$ac_tool_prefix"; then
2915   for ac_prog in cl.exe
2916   do
2917     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2918 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if test "${ac_cv_prog_CC+set}" = set; then
2922   $as_echo_n "(cached) " >&6
2923 else
2924   if test -n "$CC"; then
2925   ac_cv_prog_CC="$CC" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2929 do
2930   IFS=$as_save_IFS
2931   test -z "$as_dir" && as_dir=.
2932   for ac_exec_ext in '' $ac_executable_extensions; do
2933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2935     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936     break 2
2937   fi
2938 done
2939 done
2940 IFS=$as_save_IFS
2941
2942 fi
2943 fi
2944 CC=$ac_cv_prog_CC
2945 if test -n "$CC"; then
2946   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2947 $as_echo "$CC" >&6; }
2948 else
2949   { $as_echo "$as_me:$LINENO: result: no" >&5
2950 $as_echo "no" >&6; }
2951 fi
2952
2953
2954     test -n "$CC" && break
2955   done
2956 fi
2957 if test -z "$CC"; then
2958   ac_ct_CC=$CC
2959   for ac_prog in cl.exe
2960 do
2961   # Extract the first word of "$ac_prog", so it can be a program name with args.
2962 set dummy $ac_prog; ac_word=$2
2963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2966   $as_echo_n "(cached) " >&6
2967 else
2968   if test -n "$ac_ct_CC"; then
2969   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2973 do
2974   IFS=$as_save_IFS
2975   test -z "$as_dir" && as_dir=.
2976   for ac_exec_ext in '' $ac_executable_extensions; do
2977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978     ac_cv_prog_ac_ct_CC="$ac_prog"
2979     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2980     break 2
2981   fi
2982 done
2983 done
2984 IFS=$as_save_IFS
2985
2986 fi
2987 fi
2988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2989 if test -n "$ac_ct_CC"; then
2990   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2991 $as_echo "$ac_ct_CC" >&6; }
2992 else
2993   { $as_echo "$as_me:$LINENO: result: no" >&5
2994 $as_echo "no" >&6; }
2995 fi
2996
2997
2998   test -n "$ac_ct_CC" && break
2999 done
3000
3001   if test "x$ac_ct_CC" = x; then
3002     CC=""
3003   else
3004     case $cross_compiling:$ac_tool_warned in
3005 yes:)
3006 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008 ac_tool_warned=yes ;;
3009 esac
3010     CC=$ac_ct_CC
3011   fi
3012 fi
3013
3014 fi
3015
3016
3017 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3020 See \`config.log' for more details." >&5
3021 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3022 See \`config.log' for more details." >&2;}
3023    { (exit 1); exit 1; }; }; }
3024
3025 # Provide some information about the compiler.
3026 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3027 set X $ac_compile
3028 ac_compiler=$2
3029 { (ac_try="$ac_compiler --version >&5"
3030 case "(($ac_try" in
3031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032   *) ac_try_echo=$ac_try;;
3033 esac
3034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3035 $as_echo "$ac_try_echo") >&5
3036   (eval "$ac_compiler --version >&5") 2>&5
3037   ac_status=$?
3038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); }
3040 { (ac_try="$ac_compiler -v >&5"
3041 case "(($ac_try" in
3042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043   *) ac_try_echo=$ac_try;;
3044 esac
3045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3046 $as_echo "$ac_try_echo") >&5
3047   (eval "$ac_compiler -v >&5") 2>&5
3048   ac_status=$?
3049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }
3051 { (ac_try="$ac_compiler -V >&5"
3052 case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3057 $as_echo "$ac_try_echo") >&5
3058   (eval "$ac_compiler -V >&5") 2>&5
3059   ac_status=$?
3060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); }
3062
3063 cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h.  */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h.  */
3069
3070 int
3071 main ()
3072 {
3073
3074   ;
3075   return 0;
3076 }
3077 _ACEOF
3078 ac_clean_files_save=$ac_clean_files
3079 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3080 # Try to create an executable without -o first, disregard a.out.
3081 # It will help us diagnose broken compilers, and finding out an intuition
3082 # of exeext.
3083 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3084 $as_echo_n "checking for C compiler default output file name... " >&6; }
3085 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3086
3087 # The possible output files:
3088 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3089
3090 ac_rmfiles=
3091 for ac_file in $ac_files
3092 do
3093   case $ac_file in
3094     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3095     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3096   esac
3097 done
3098 rm -f $ac_rmfiles
3099
3100 if { (ac_try="$ac_link_default"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3106 $as_echo "$ac_try_echo") >&5
3107   (eval "$ac_link_default") 2>&5
3108   ac_status=$?
3109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); }; then
3111   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3112 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3113 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3114 # so that the user can short-circuit this test for compilers unknown to
3115 # Autoconf.
3116 for ac_file in $ac_files ''
3117 do
3118   test -f "$ac_file" || continue
3119   case $ac_file in
3120     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3121         ;;
3122     [ab].out )
3123         # We found the default executable, but exeext='' is most
3124         # certainly right.
3125         break;;
3126     *.* )
3127         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3128         then :; else
3129            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3130         fi
3131         # We set ac_cv_exeext here because the later test for it is not
3132         # safe: cross compilers may not add the suffix if given an `-o'
3133         # argument, so we may need to know it at that point already.
3134         # Even if this section looks crufty: it has the advantage of
3135         # actually working.
3136         break;;
3137     * )
3138         break;;
3139   esac
3140 done
3141 test "$ac_cv_exeext" = no && ac_cv_exeext=
3142
3143 else
3144   ac_file=''
3145 fi
3146
3147 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3148 $as_echo "$ac_file" >&6; }
3149 if test -z "$ac_file"; then
3150   $as_echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3152
3153 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3156 See \`config.log' for more details." >&5
3157 $as_echo "$as_me: error: C compiler cannot create executables
3158 See \`config.log' for more details." >&2;}
3159    { (exit 77); exit 77; }; }; }
3160 fi
3161
3162 ac_exeext=$ac_cv_exeext
3163
3164 # Check that the compiler produces executables we can run.  If not, either
3165 # the compiler is broken, or we cross compile.
3166 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3167 $as_echo_n "checking whether the C compiler works... " >&6; }
3168 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3169 # If not cross compiling, check that we can run a simple program.
3170 if test "$cross_compiling" != yes; then
3171   if { ac_try='./$ac_file'
3172   { (case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3177 $as_echo "$ac_try_echo") >&5
3178   (eval "$ac_try") 2>&5
3179   ac_status=$?
3180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); }; }; then
3182     cross_compiling=no
3183   else
3184     if test "$cross_compiling" = maybe; then
3185         cross_compiling=yes
3186     else
3187         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3190 If you meant to cross compile, use \`--host'.
3191 See \`config.log' for more details." >&5
3192 $as_echo "$as_me: error: cannot run C compiled programs.
3193 If you meant to cross compile, use \`--host'.
3194 See \`config.log' for more details." >&2;}
3195    { (exit 1); exit 1; }; }; }
3196     fi
3197   fi
3198 fi
3199 { $as_echo "$as_me:$LINENO: result: yes" >&5
3200 $as_echo "yes" >&6; }
3201
3202 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3203 ac_clean_files=$ac_clean_files_save
3204 # Check that the compiler produces executables we can run.  If not, either
3205 # the compiler is broken, or we cross compile.
3206 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3207 $as_echo_n "checking whether we are cross compiling... " >&6; }
3208 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3209 $as_echo "$cross_compiling" >&6; }
3210
3211 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3212 $as_echo_n "checking for suffix of executables... " >&6; }
3213 if { (ac_try="$ac_link"
3214 case "(($ac_try" in
3215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216   *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3219 $as_echo "$ac_try_echo") >&5
3220   (eval "$ac_link") 2>&5
3221   ac_status=$?
3222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); }; then
3224   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3225 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3226 # work properly (i.e., refer to `conftest.exe'), while it won't with
3227 # `rm'.
3228 for ac_file in conftest.exe conftest conftest.*; do
3229   test -f "$ac_file" || continue
3230   case $ac_file in
3231     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3232     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233           break;;
3234     * ) break;;
3235   esac
3236 done
3237 else
3238   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3241 See \`config.log' for more details." >&5
3242 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3243 See \`config.log' for more details." >&2;}
3244    { (exit 1); exit 1; }; }; }
3245 fi
3246
3247 rm -f conftest$ac_cv_exeext
3248 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3249 $as_echo "$ac_cv_exeext" >&6; }
3250
3251 rm -f conftest.$ac_ext
3252 EXEEXT=$ac_cv_exeext
3253 ac_exeext=$EXEEXT
3254 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3255 $as_echo_n "checking for suffix of object files... " >&6; }
3256 if test "${ac_cv_objext+set}" = set; then
3257   $as_echo_n "(cached) " >&6
3258 else
3259   cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h.  */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h.  */
3265
3266 int
3267 main ()
3268 {
3269
3270   ;
3271   return 0;
3272 }
3273 _ACEOF
3274 rm -f conftest.o conftest.obj
3275 if { (ac_try="$ac_compile"
3276 case "(($ac_try" in
3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278   *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3281 $as_echo "$ac_try_echo") >&5
3282   (eval "$ac_compile") 2>&5
3283   ac_status=$?
3284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); }; then
3286   for ac_file in conftest.o conftest.obj conftest.*; do
3287   test -f "$ac_file" || continue;
3288   case $ac_file in
3289     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3290     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3291        break;;
3292   esac
3293 done
3294 else
3295   $as_echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3301 See \`config.log' for more details." >&5
3302 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3303 See \`config.log' for more details." >&2;}
3304    { (exit 1); exit 1; }; }; }
3305 fi
3306
3307 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3308 fi
3309 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3310 $as_echo "$ac_cv_objext" >&6; }
3311 OBJEXT=$ac_cv_objext
3312 ac_objext=$OBJEXT
3313 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3314 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3315 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3316   $as_echo_n "(cached) " >&6
3317 else
3318   cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h.  */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h.  */
3324
3325 int
3326 main ()
3327 {
3328 #ifndef __GNUC__
3329        choke me
3330 #endif
3331
3332   ;
3333   return 0;
3334 }
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (ac_try="$ac_compile"
3338 case "(($ac_try" in
3339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340   *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3343 $as_echo "$ac_try_echo") >&5
3344   (eval "$ac_compile") 2>conftest.er1
3345   ac_status=$?
3346   grep -v '^ *+' conftest.er1 >conftest.err
3347   rm -f conftest.er1
3348   cat conftest.err >&5
3349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); } && {
3351          test -z "$ac_c_werror_flag" ||
3352          test ! -s conftest.err
3353        } && test -s conftest.$ac_objext; then
3354   ac_compiler_gnu=yes
3355 else
3356   $as_echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3358
3359         ac_compiler_gnu=no
3360 fi
3361
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3364
3365 fi
3366 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3367 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3368 if test $ac_compiler_gnu = yes; then
3369   GCC=yes
3370 else
3371   GCC=
3372 fi
3373 ac_test_CFLAGS=${CFLAGS+set}
3374 ac_save_CFLAGS=$CFLAGS
3375 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3376 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3377 if test "${ac_cv_prog_cc_g+set}" = set; then
3378   $as_echo_n "(cached) " >&6
3379 else
3380   ac_save_c_werror_flag=$ac_c_werror_flag
3381    ac_c_werror_flag=yes
3382    ac_cv_prog_cc_g=no
3383    CFLAGS="-g"
3384    cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h.  */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h.  */
3390
3391 int
3392 main ()
3393 {
3394
3395   ;
3396   return 0;
3397 }
3398 _ACEOF
3399 rm -f conftest.$ac_objext
3400 if { (ac_try="$ac_compile"
3401 case "(($ac_try" in
3402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403   *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3406 $as_echo "$ac_try_echo") >&5
3407   (eval "$ac_compile") 2>conftest.er1
3408   ac_status=$?
3409   grep -v '^ *+' conftest.er1 >conftest.err
3410   rm -f conftest.er1
3411   cat conftest.err >&5
3412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } && {
3414          test -z "$ac_c_werror_flag" ||
3415          test ! -s conftest.err
3416        } && test -s conftest.$ac_objext; then
3417   ac_cv_prog_cc_g=yes
3418 else
3419   $as_echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422         CFLAGS=""
3423       cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429
3430 int
3431 main ()
3432 {
3433
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3445 $as_echo "$ac_try_echo") >&5
3446   (eval "$ac_compile") 2>conftest.er1
3447   ac_status=$?
3448   grep -v '^ *+' conftest.er1 >conftest.err
3449   rm -f conftest.er1
3450   cat conftest.err >&5
3451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); } && {
3453          test -z "$ac_c_werror_flag" ||
3454          test ! -s conftest.err
3455        } && test -s conftest.$ac_objext; then
3456   :
3457 else
3458   $as_echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461         ac_c_werror_flag=$ac_save_c_werror_flag
3462          CFLAGS="-g"
3463          cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h.  */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h.  */
3469
3470 int
3471 main ()
3472 {
3473
3474   ;
3475   return 0;
3476 }
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (ac_try="$ac_compile"
3480 case "(($ac_try" in
3481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482   *) ac_try_echo=$ac_try;;
3483 esac
3484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3485 $as_echo "$ac_try_echo") >&5
3486   (eval "$ac_compile") 2>conftest.er1
3487   ac_status=$?
3488   grep -v '^ *+' conftest.er1 >conftest.err
3489   rm -f conftest.er1
3490   cat conftest.err >&5
3491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); } && {
3493          test -z "$ac_c_werror_flag" ||
3494          test ! -s conftest.err
3495        } && test -s conftest.$ac_objext; then
3496   ac_cv_prog_cc_g=yes
3497 else
3498   $as_echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501
3502 fi
3503
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 fi
3506
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 fi
3509
3510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511    ac_c_werror_flag=$ac_save_c_werror_flag
3512 fi
3513 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3514 $as_echo "$ac_cv_prog_cc_g" >&6; }
3515 if test "$ac_test_CFLAGS" = set; then
3516   CFLAGS=$ac_save_CFLAGS
3517 elif test $ac_cv_prog_cc_g = yes; then
3518   if test "$GCC" = yes; then
3519     CFLAGS="-g -O2"
3520   else
3521     CFLAGS="-g"
3522   fi
3523 else
3524   if test "$GCC" = yes; then
3525     CFLAGS="-O2"
3526   else
3527     CFLAGS=
3528   fi
3529 fi
3530 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3531 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3532 if test "${ac_cv_prog_cc_c89+set}" = set; then
3533   $as_echo_n "(cached) " >&6
3534 else
3535   ac_cv_prog_cc_c89=no
3536 ac_save_CC=$CC
3537 cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h.  */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h.  */
3543 #include <stdarg.h>
3544 #include <stdio.h>
3545 #include <sys/types.h>
3546 #include <sys/stat.h>
3547 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3548 struct buf { int x; };
3549 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3550 static char *e (p, i)
3551      char **p;
3552      int i;
3553 {
3554   return p[i];
3555 }
3556 static char *f (char * (*g) (char **, int), char **p, ...)
3557 {
3558   char *s;
3559   va_list v;
3560   va_start (v,p);
3561   s = g (p, va_arg (v,int));
3562   va_end (v);
3563   return s;
3564 }
3565
3566 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3567    function prototypes and stuff, but not '\xHH' hex character constants.
3568    These don't provoke an error unfortunately, instead are silently treated
3569    as 'x'.  The following induces an error, until -std is added to get
3570    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3571    array size at least.  It's necessary to write '\x00'==0 to get something
3572    that's true only with -std.  */
3573 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3574
3575 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3576    inside strings and character constants.  */
3577 #define FOO(x) 'x'
3578 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3579
3580 int test (int i, double x);
3581 struct s1 {int (*f) (int a);};
3582 struct s2 {int (*f) (double a);};
3583 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3584 int argc;
3585 char **argv;
3586 int
3587 main ()
3588 {
3589 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3590   ;
3591   return 0;
3592 }
3593 _ACEOF
3594 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3595         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3596 do
3597   CC="$ac_save_CC $ac_arg"
3598   rm -f conftest.$ac_objext
3599 if { (ac_try="$ac_compile"
3600 case "(($ac_try" in
3601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602   *) ac_try_echo=$ac_try;;
3603 esac
3604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3605 $as_echo "$ac_try_echo") >&5
3606   (eval "$ac_compile") 2>conftest.er1
3607   ac_status=$?
3608   grep -v '^ *+' conftest.er1 >conftest.err
3609   rm -f conftest.er1
3610   cat conftest.err >&5
3611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); } && {
3613          test -z "$ac_c_werror_flag" ||
3614          test ! -s conftest.err
3615        } && test -s conftest.$ac_objext; then
3616   ac_cv_prog_cc_c89=$ac_arg
3617 else
3618   $as_echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3620
3621
3622 fi
3623
3624 rm -f core conftest.err conftest.$ac_objext
3625   test "x$ac_cv_prog_cc_c89" != "xno" && break
3626 done
3627 rm -f conftest.$ac_ext
3628 CC=$ac_save_CC
3629
3630 fi
3631 # AC_CACHE_VAL
3632 case "x$ac_cv_prog_cc_c89" in
3633   x)
3634     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3635 $as_echo "none needed" >&6; } ;;
3636   xno)
3637     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3638 $as_echo "unsupported" >&6; } ;;
3639   *)
3640     CC="$CC $ac_cv_prog_cc_c89"
3641     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3642 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3643 esac
3644
3645
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652 depcc="$CC"   am_compiler_list=
3653
3654 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3655 $as_echo_n "checking dependency style of $depcc... " >&6; }
3656 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3657   $as_echo_n "(cached) " >&6
3658 else
3659   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3660   # We make a subdir and do the tests there.  Otherwise we can end up
3661   # making bogus files that we don't know about and never remove.  For
3662   # instance it was reported that on HP-UX the gcc test will end up
3663   # making a dummy file named `D' -- because `-MD' means `put the output
3664   # in D'.
3665   mkdir conftest.dir
3666   # Copy depcomp to subdir because otherwise we won't find it if we're
3667   # using a relative directory.
3668   cp "$am_depcomp" conftest.dir
3669   cd conftest.dir
3670   # We will build objects and dependencies in a subdirectory because
3671   # it helps to detect inapplicable dependency modes.  For instance
3672   # both Tru64's cc and ICC support -MD to output dependencies as a
3673   # side effect of compilation, but ICC will put the dependencies in
3674   # the current directory while Tru64 will put them in the object
3675   # directory.
3676   mkdir sub
3677
3678   am_cv_CC_dependencies_compiler_type=none
3679   if test "$am_compiler_list" = ""; then
3680      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3681   fi
3682   for depmode in $am_compiler_list; do
3683     # Setup a source with many dependencies, because some compilers
3684     # like to wrap large dependency lists on column 80 (with \), and
3685     # we should not choose a depcomp mode which is confused by this.
3686     #
3687     # We need to recreate these files for each test, as the compiler may
3688     # overwrite some of them when testing with obscure command lines.
3689     # This happens at least with the AIX C compiler.
3690     : > sub/conftest.c
3691     for i in 1 2 3 4 5 6; do
3692       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3693       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3694       # Solaris 8's {/usr,}/bin/sh.
3695       touch sub/conftst$i.h
3696     done
3697     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3698
3699     case $depmode in
3700     nosideeffect)
3701       # after this tag, mechanisms are not by side-effect, so they'll
3702       # only be used when explicitly requested
3703       if test "x$enable_dependency_tracking" = xyes; then
3704         continue
3705       else
3706         break
3707       fi
3708       ;;
3709     none) break ;;
3710     esac
3711     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3712     # mode.  It turns out that the SunPro C++ compiler does not properly
3713     # handle `-M -o', and we need to detect this.
3714     if depmode=$depmode \
3715        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3716        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3717        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3718          >/dev/null 2>conftest.err &&
3719        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3720        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3721        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3722        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3723       # icc doesn't choke on unknown options, it will just issue warnings
3724       # or remarks (even with -Werror).  So we grep stderr for any message
3725       # that says an option was ignored or not supported.
3726       # When given -MP, icc 7.0 and 7.1 complain thusly:
3727       #   icc: Command line warning: ignoring option '-M'; no argument required
3728       # The diagnosis changed in icc 8.0:
3729       #   icc: Command line remark: option '-MP' not supported
3730       if (grep 'ignoring option' conftest.err ||
3731           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3732         am_cv_CC_dependencies_compiler_type=$depmode
3733         break
3734       fi
3735     fi
3736   done
3737
3738   cd ..
3739   rm -rf conftest.dir
3740 else
3741   am_cv_CC_dependencies_compiler_type=none
3742 fi
3743
3744 fi
3745 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3746 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3747 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3748
3749  if
3750   test "x$enable_dependency_tracking" != xno \
3751   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3752   am__fastdepCC_TRUE=
3753   am__fastdepCC_FALSE='#'
3754 else
3755   am__fastdepCC_TRUE='#'
3756   am__fastdepCC_FALSE=
3757 fi
3758
3759
3760
3761 ac_ext=c
3762 ac_cpp='$CPP $CPPFLAGS'
3763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3767 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3768 # On Suns, sometimes $CPP names a directory.
3769 if test -n "$CPP" && test -d "$CPP"; then
3770   CPP=
3771 fi
3772 if test -z "$CPP"; then
3773   if test "${ac_cv_prog_CPP+set}" = set; then
3774   $as_echo_n "(cached) " >&6
3775 else
3776       # Double quotes because CPP needs to be expanded
3777     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3778     do
3779       ac_preproc_ok=false
3780 for ac_c_preproc_warn_flag in '' yes
3781 do
3782   # Use a header file that comes with gcc, so configuring glibc
3783   # with a fresh cross-compiler works.
3784   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3785   # <limits.h> exists even on freestanding compilers.
3786   # On the NeXT, cc -E runs the code through the compiler's parser,
3787   # not just through cpp. "Syntax error" is here to catch this case.
3788   cat >conftest.$ac_ext <<_ACEOF
3789 /* confdefs.h.  */
3790 _ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h.  */
3794 #ifdef __STDC__
3795 # include <limits.h>
3796 #else
3797 # include <assert.h>
3798 #endif
3799                      Syntax error
3800 _ACEOF
3801 if { (ac_try="$ac_cpp conftest.$ac_ext"
3802 case "(($ac_try" in
3803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804   *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3807 $as_echo "$ac_try_echo") >&5
3808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3809   ac_status=$?
3810   grep -v '^ *+' conftest.er1 >conftest.err
3811   rm -f conftest.er1
3812   cat conftest.err >&5
3813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); } >/dev/null && {
3815          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3816          test ! -s conftest.err
3817        }; then
3818   :
3819 else
3820   $as_echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3822
3823   # Broken: fails on valid input.
3824 continue
3825 fi
3826
3827 rm -f conftest.err conftest.$ac_ext
3828
3829   # OK, works on sane cases.  Now check whether nonexistent headers
3830   # can be detected and how.
3831   cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h.  */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h.  */
3837 #include <ac_nonexistent.h>
3838 _ACEOF
3839 if { (ac_try="$ac_cpp conftest.$ac_ext"
3840 case "(($ac_try" in
3841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842   *) ac_try_echo=$ac_try;;
3843 esac
3844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3845 $as_echo "$ac_try_echo") >&5
3846   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3847   ac_status=$?
3848   grep -v '^ *+' conftest.er1 >conftest.err
3849   rm -f conftest.er1
3850   cat conftest.err >&5
3851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); } >/dev/null && {
3853          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3854          test ! -s conftest.err
3855        }; then
3856   # Broken: success on invalid input.
3857 continue
3858 else
3859   $as_echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3861
3862   # Passes both tests.
3863 ac_preproc_ok=:
3864 break
3865 fi
3866
3867 rm -f conftest.err conftest.$ac_ext
3868
3869 done
3870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3871 rm -f conftest.err conftest.$ac_ext
3872 if $ac_preproc_ok; then
3873   break
3874 fi
3875
3876     done
3877     ac_cv_prog_CPP=$CPP
3878
3879 fi
3880   CPP=$ac_cv_prog_CPP
3881 else
3882   ac_cv_prog_CPP=$CPP
3883 fi
3884 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3885 $as_echo "$CPP" >&6; }
3886 ac_preproc_ok=false
3887 for ac_c_preproc_warn_flag in '' yes
3888 do
3889   # Use a header file that comes with gcc, so configuring glibc
3890   # with a fresh cross-compiler works.
3891   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3892   # <limits.h> exists even on freestanding compilers.
3893   # On the NeXT, cc -E runs the code through the compiler's parser,
3894   # not just through cpp. "Syntax error" is here to catch this case.
3895   cat >conftest.$ac_ext <<_ACEOF
3896 /* confdefs.h.  */
3897 _ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h.  */
3901 #ifdef __STDC__
3902 # include <limits.h>
3903 #else
3904 # include <assert.h>
3905 #endif
3906                      Syntax error
3907 _ACEOF
3908 if { (ac_try="$ac_cpp conftest.$ac_ext"
3909 case "(($ac_try" in
3910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911   *) ac_try_echo=$ac_try;;
3912 esac
3913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3914 $as_echo "$ac_try_echo") >&5
3915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3916   ac_status=$?
3917   grep -v '^ *+' conftest.er1 >conftest.err
3918   rm -f conftest.er1
3919   cat conftest.err >&5
3920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921   (exit $ac_status); } >/dev/null && {
3922          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3923          test ! -s conftest.err
3924        }; then
3925   :
3926 else
3927   $as_echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3929
3930   # Broken: fails on valid input.
3931 continue
3932 fi
3933
3934 rm -f conftest.err conftest.$ac_ext
3935
3936   # OK, works on sane cases.  Now check whether nonexistent headers
3937   # can be detected and how.
3938   cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h.  */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h.  */
3944 #include <ac_nonexistent.h>
3945 _ACEOF
3946 if { (ac_try="$ac_cpp conftest.$ac_ext"
3947 case "(($ac_try" in
3948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949   *) ac_try_echo=$ac_try;;
3950 esac
3951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3952 $as_echo "$ac_try_echo") >&5
3953   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3954   ac_status=$?
3955   grep -v '^ *+' conftest.er1 >conftest.err
3956   rm -f conftest.er1
3957   cat conftest.err >&5
3958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959   (exit $ac_status); } >/dev/null && {
3960          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3961          test ! -s conftest.err
3962        }; then
3963   # Broken: success on invalid input.
3964 continue
3965 else
3966   $as_echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3968
3969   # Passes both tests.
3970 ac_preproc_ok=:
3971 break
3972 fi
3973
3974 rm -f conftest.err conftest.$ac_ext
3975
3976 done
3977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978 rm -f conftest.err conftest.$ac_ext
3979 if $ac_preproc_ok; then
3980   :
3981 else
3982   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3985 See \`config.log' for more details." >&5
3986 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3987 See \`config.log' for more details." >&2;}
3988    { (exit 1); exit 1; }; }; }
3989 fi
3990
3991 ac_ext=c
3992 ac_cpp='$CPP $CPPFLAGS'
3993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996
3997
3998 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3999 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4000 if test "${ac_cv_path_GREP+set}" = set; then
4001   $as_echo_n "(cached) " >&6
4002 else
4003   if test -z "$GREP"; then
4004   ac_path_GREP_found=false
4005   # Loop through the user's path and test for each of PROGNAME-LIST
4006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4008 do
4009   IFS=$as_save_IFS
4010   test -z "$as_dir" && as_dir=.
4011   for ac_prog in grep ggrep; do
4012     for ac_exec_ext in '' $ac_executable_extensions; do
4013       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4014       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4015 # Check for GNU ac_path_GREP and select it if it is found.
4016   # Check for GNU $ac_path_GREP
4017 case `"$ac_path_GREP" --version 2>&1` in
4018 *GNU*)
4019   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4020 *)
4021   ac_count=0
4022   $as_echo_n 0123456789 >"conftest.in"
4023   while :
4024   do
4025     cat "conftest.in" "conftest.in" >"conftest.tmp"
4026     mv "conftest.tmp" "conftest.in"
4027     cp "conftest.in" "conftest.nl"
4028     $as_echo 'GREP' >> "conftest.nl"
4029     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4030     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4031     ac_count=`expr $ac_count + 1`
4032     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4033       # Best one so far, save it but keep looking for a better one
4034       ac_cv_path_GREP="$ac_path_GREP"
4035       ac_path_GREP_max=$ac_count
4036     fi
4037     # 10*(2^10) chars as input seems more than enough
4038     test $ac_count -gt 10 && break
4039   done
4040   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041 esac
4042
4043       $ac_path_GREP_found && break 3
4044     done
4045   done
4046 done
4047 IFS=$as_save_IFS
4048   if test -z "$ac_cv_path_GREP"; then
4049     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4050 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4051    { (exit 1); exit 1; }; }
4052   fi
4053 else
4054   ac_cv_path_GREP=$GREP
4055 fi
4056
4057 fi
4058 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4059 $as_echo "$ac_cv_path_GREP" >&6; }
4060  GREP="$ac_cv_path_GREP"
4061
4062
4063 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4064 $as_echo_n "checking for egrep... " >&6; }
4065 if test "${ac_cv_path_EGREP+set}" = set; then
4066   $as_echo_n "(cached) " >&6
4067 else
4068   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4069    then ac_cv_path_EGREP="$GREP -E"
4070    else
4071      if test -z "$EGREP"; then
4072   ac_path_EGREP_found=false
4073   # Loop through the user's path and test for each of PROGNAME-LIST
4074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4076 do
4077   IFS=$as_save_IFS
4078   test -z "$as_dir" && as_dir=.
4079   for ac_prog in egrep; do
4080     for ac_exec_ext in '' $ac_executable_extensions; do
4081       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4082       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4083 # Check for GNU ac_path_EGREP and select it if it is found.
4084   # Check for GNU $ac_path_EGREP
4085 case `"$ac_path_EGREP" --version 2>&1` in
4086 *GNU*)
4087   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4088 *)
4089   ac_count=0
4090   $as_echo_n 0123456789 >"conftest.in"
4091   while :
4092   do
4093     cat "conftest.in" "conftest.in" >"conftest.tmp"
4094     mv "conftest.tmp" "conftest.in"
4095     cp "conftest.in" "conftest.nl"
4096     $as_echo 'EGREP' >> "conftest.nl"
4097     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4099     ac_count=`expr $ac_count + 1`
4100     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4101       # Best one so far, save it but keep looking for a better one
4102       ac_cv_path_EGREP="$ac_path_EGREP"
4103       ac_path_EGREP_max=$ac_count
4104     fi
4105     # 10*(2^10) chars as input seems more than enough
4106     test $ac_count -gt 10 && break
4107   done
4108   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109 esac
4110
4111       $ac_path_EGREP_found && break 3
4112     done
4113   done
4114 done
4115 IFS=$as_save_IFS
4116   if test -z "$ac_cv_path_EGREP"; then
4117     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4118 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4119    { (exit 1); exit 1; }; }
4120   fi
4121 else
4122   ac_cv_path_EGREP=$EGREP
4123 fi
4124
4125    fi
4126 fi
4127 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4128 $as_echo "$ac_cv_path_EGREP" >&6; }
4129  EGREP="$ac_cv_path_EGREP"
4130
4131
4132 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4133 $as_echo_n "checking for ANSI C header files... " >&6; }
4134 if test "${ac_cv_header_stdc+set}" = set; then
4135   $as_echo_n "(cached) " >&6
4136 else
4137   cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143 #include <stdlib.h>
4144 #include <stdarg.h>
4145 #include <string.h>
4146 #include <float.h>
4147
4148 int
4149 main ()
4150 {
4151
4152   ;
4153   return 0;
4154 }
4155 _ACEOF
4156 rm -f conftest.$ac_objext
4157 if { (ac_try="$ac_compile"
4158 case "(($ac_try" in
4159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160   *) ac_try_echo=$ac_try;;
4161 esac
4162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4163 $as_echo "$ac_try_echo") >&5
4164   (eval "$ac_compile") 2>conftest.er1
4165   ac_status=$?
4166   grep -v '^ *+' conftest.er1 >conftest.err
4167   rm -f conftest.er1
4168   cat conftest.err >&5
4169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); } && {
4171          test -z "$ac_c_werror_flag" ||
4172          test ! -s conftest.err
4173        } && test -s conftest.$ac_objext; then
4174   ac_cv_header_stdc=yes
4175 else
4176   $as_echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179         ac_cv_header_stdc=no
4180 fi
4181
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183
4184 if test $ac_cv_header_stdc = yes; then
4185   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4186   cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192 #include <string.h>
4193
4194 _ACEOF
4195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4196   $EGREP "memchr" >/dev/null 2>&1; then
4197   :
4198 else
4199   ac_cv_header_stdc=no
4200 fi
4201 rm -f conftest*
4202
4203 fi
4204
4205 if test $ac_cv_header_stdc = yes; then
4206   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4207   cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h.  */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h.  */
4213 #include <stdlib.h>
4214
4215 _ACEOF
4216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4217   $EGREP "free" >/dev/null 2>&1; then
4218   :
4219 else
4220   ac_cv_header_stdc=no
4221 fi
4222 rm -f conftest*
4223
4224 fi
4225
4226 if test $ac_cv_header_stdc = yes; then
4227   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4228   if test "$cross_compiling" = yes; then
4229   :
4230 else
4231   cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237 #include <ctype.h>
4238 #include <stdlib.h>
4239 #if ((' ' & 0x0FF) == 0x020)
4240 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4241 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4242 #else
4243 # define ISLOWER(c) \
4244                    (('a' <= (c) && (c) <= 'i') \
4245                      || ('j' <= (c) && (c) <= 'r') \
4246                      || ('s' <= (c) && (c) <= 'z'))
4247 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4248 #endif
4249
4250 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4251 int
4252 main ()
4253 {
4254   int i;
4255   for (i = 0; i < 256; i++)
4256     if (XOR (islower (i), ISLOWER (i))
4257         || toupper (i) != TOUPPER (i))
4258       return 2;
4259   return 0;
4260 }
4261 _ACEOF
4262 rm -f conftest$ac_exeext
4263 if { (ac_try="$ac_link"
4264 case "(($ac_try" in
4265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266   *) ac_try_echo=$ac_try;;
4267 esac
4268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4269 $as_echo "$ac_try_echo") >&5
4270   (eval "$ac_link") 2>&5
4271   ac_status=$?
4272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4274   { (case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4279 $as_echo "$ac_try_echo") >&5
4280   (eval "$ac_try") 2>&5
4281   ac_status=$?
4282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); }; }; then
4284   :
4285 else
4286   $as_echo "$as_me: program exited with status $ac_status" >&5
4287 $as_echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4289
4290 ( exit $ac_status )
4291 ac_cv_header_stdc=no
4292 fi
4293 rm -rf conftest.dSYM
4294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4295 fi
4296
4297
4298 fi
4299 fi
4300 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4301 $as_echo "$ac_cv_header_stdc" >&6; }
4302 if test $ac_cv_header_stdc = yes; then
4303
4304 cat >>confdefs.h <<\_ACEOF
4305 #define STDC_HEADERS 1
4306 _ACEOF
4307
4308 fi
4309
4310 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4321                   inttypes.h stdint.h unistd.h
4322 do
4323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4324 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4325 $as_echo_n "checking for $ac_header... " >&6; }
4326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4327   $as_echo_n "(cached) " >&6
4328 else
4329   cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h.  */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h.  */
4335 $ac_includes_default
4336
4337 #include <$ac_header>
4338 _ACEOF
4339 rm -f conftest.$ac_objext
4340 if { (ac_try="$ac_compile"
4341 case "(($ac_try" in
4342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343   *) ac_try_echo=$ac_try;;
4344 esac
4345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4346 $as_echo "$ac_try_echo") >&5
4347   (eval "$ac_compile") 2>conftest.er1
4348   ac_status=$?
4349   grep -v '^ *+' conftest.er1 >conftest.err
4350   rm -f conftest.er1
4351   cat conftest.err >&5
4352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); } && {
4354          test -z "$ac_c_werror_flag" ||
4355          test ! -s conftest.err
4356        } && test -s conftest.$ac_objext; then
4357   eval "$as_ac_Header=yes"
4358 else
4359   $as_echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4361
4362         eval "$as_ac_Header=no"
4363 fi
4364
4365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366 fi
4367 ac_res=`eval 'as_val=${'$as_ac_Header'}
4368                  $as_echo "$as_val"'`
4369                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4370 $as_echo "$ac_res" >&6; }
4371 as_val=`eval 'as_val=${'$as_ac_Header'}
4372                  $as_echo "$as_val"'`
4373    if test "x$as_val" = x""yes; then
4374   cat >>confdefs.h <<_ACEOF
4375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4376 _ACEOF
4377
4378 fi
4379
4380 done
4381
4382
4383
4384   if test "${ac_cv_header_minix_config_h+set}" = set; then
4385   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4386 $as_echo_n "checking for minix/config.h... " >&6; }
4387 if test "${ac_cv_header_minix_config_h+set}" = set; then
4388   $as_echo_n "(cached) " >&6
4389 fi
4390 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4391 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4392 else
4393   # Is the header compilable?
4394 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4395 $as_echo_n "checking minix/config.h usability... " >&6; }
4396 cat >conftest.$ac_ext <<_ACEOF
4397 /* confdefs.h.  */
4398 _ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h.  */
4402 $ac_includes_default
4403 #include <minix/config.h>
4404 _ACEOF
4405 rm -f conftest.$ac_objext
4406 if { (ac_try="$ac_compile"
4407 case "(($ac_try" in
4408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409   *) ac_try_echo=$ac_try;;
4410 esac
4411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4412 $as_echo "$ac_try_echo") >&5
4413   (eval "$ac_compile") 2>conftest.er1
4414   ac_status=$?
4415   grep -v '^ *+' conftest.er1 >conftest.err
4416   rm -f conftest.er1
4417   cat conftest.err >&5
4418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); } && {
4420          test -z "$ac_c_werror_flag" ||
4421          test ! -s conftest.err
4422        } && test -s conftest.$ac_objext; then
4423   ac_header_compiler=yes
4424 else
4425   $as_echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4427
4428         ac_header_compiler=no
4429 fi
4430
4431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4433 $as_echo "$ac_header_compiler" >&6; }
4434
4435 # Is the header present?
4436 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4437 $as_echo_n "checking minix/config.h presence... " >&6; }
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h.  */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h.  */
4444 #include <minix/config.h>
4445 _ACEOF
4446 if { (ac_try="$ac_cpp conftest.$ac_ext"
4447 case "(($ac_try" in
4448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449   *) ac_try_echo=$ac_try;;
4450 esac
4451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4452 $as_echo "$ac_try_echo") >&5
4453   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4454   ac_status=$?
4455   grep -v '^ *+' conftest.er1 >conftest.err
4456   rm -f conftest.er1
4457   cat conftest.err >&5
4458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); } >/dev/null && {
4460          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4461          test ! -s conftest.err
4462        }; then
4463   ac_header_preproc=yes
4464 else
4465   $as_echo "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.$ac_ext >&5
4467
4468   ac_header_preproc=no
4469 fi
4470
4471 rm -f conftest.err conftest.$ac_ext
4472 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4473 $as_echo "$ac_header_preproc" >&6; }
4474
4475 # So?  What about this header?
4476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4477   yes:no: )
4478     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4479 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4480     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4481 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4482     ac_header_preproc=yes
4483     ;;
4484   no:yes:* )
4485     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4486 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4487     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4488 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4489     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4490 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4491     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4492 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4493     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4494 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4495     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4496 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4497     ( cat <<\_ASBOX
4498 ## ------------------------------ ##
4499 ## Report this to clustalw@ucd.ie ##
4500 ## ------------------------------ ##
4501 _ASBOX
4502      ) | sed "s/^/$as_me: WARNING:     /" >&2
4503     ;;
4504 esac
4505 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4506 $as_echo_n "checking for minix/config.h... " >&6; }
4507 if test "${ac_cv_header_minix_config_h+set}" = set; then
4508   $as_echo_n "(cached) " >&6
4509 else
4510   ac_cv_header_minix_config_h=$ac_header_preproc
4511 fi
4512 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4513 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4514
4515 fi
4516 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4517   MINIX=yes
4518 else
4519   MINIX=
4520 fi
4521
4522
4523   if test "$MINIX" = yes; then
4524
4525 cat >>confdefs.h <<\_ACEOF
4526 #define _POSIX_SOURCE 1
4527 _ACEOF
4528
4529
4530 cat >>confdefs.h <<\_ACEOF
4531 #define _POSIX_1_SOURCE 2
4532 _ACEOF
4533
4534
4535 cat >>confdefs.h <<\_ACEOF
4536 #define _MINIX 1
4537 _ACEOF
4538
4539   fi
4540
4541
4542
4543   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4544 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4545 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4546   $as_echo_n "(cached) " >&6
4547 else
4548   cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h.  */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h.  */
4554
4555 #         define __EXTENSIONS__ 1
4556           $ac_includes_default
4557 int
4558 main ()
4559 {
4560
4561   ;
4562   return 0;
4563 }
4564 _ACEOF
4565 rm -f conftest.$ac_objext
4566 if { (ac_try="$ac_compile"
4567 case "(($ac_try" in
4568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569   *) ac_try_echo=$ac_try;;
4570 esac
4571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4572 $as_echo "$ac_try_echo") >&5
4573   (eval "$ac_compile") 2>conftest.er1
4574   ac_status=$?
4575   grep -v '^ *+' conftest.er1 >conftest.err
4576   rm -f conftest.er1
4577   cat conftest.err >&5
4578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); } && {
4580          test -z "$ac_c_werror_flag" ||
4581          test ! -s conftest.err
4582        } && test -s conftest.$ac_objext; then
4583   ac_cv_safe_to_define___extensions__=yes
4584 else
4585   $as_echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588         ac_cv_safe_to_define___extensions__=no
4589 fi
4590
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 fi
4593 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4594 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4595   test $ac_cv_safe_to_define___extensions__ = yes &&
4596     cat >>confdefs.h <<\_ACEOF
4597 #define __EXTENSIONS__ 1
4598 _ACEOF
4599
4600   cat >>confdefs.h <<\_ACEOF
4601 #define _ALL_SOURCE 1
4602 _ACEOF
4603
4604   cat >>confdefs.h <<\_ACEOF
4605 #define _GNU_SOURCE 1
4606 _ACEOF
4607
4608   cat >>confdefs.h <<\_ACEOF
4609 #define _POSIX_PTHREAD_SEMANTICS 1
4610 _ACEOF
4611
4612   cat >>confdefs.h <<\_ACEOF
4613 #define _TANDEM_SOURCE 1
4614 _ACEOF
4615
4616
4617
4618
4619 # for cross compilation
4620 #
4621 # Make sure we can run config.sub.
4622 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4623   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4624 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4625    { (exit 1); exit 1; }; }
4626
4627 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4628 $as_echo_n "checking build system type... " >&6; }
4629 if test "${ac_cv_build+set}" = set; then
4630   $as_echo_n "(cached) " >&6
4631 else
4632   ac_build_alias=$build_alias
4633 test "x$ac_build_alias" = x &&
4634   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4635 test "x$ac_build_alias" = x &&
4636   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4637 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4638    { (exit 1); exit 1; }; }
4639 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4640   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4641 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4642    { (exit 1); exit 1; }; }
4643
4644 fi
4645 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4646 $as_echo "$ac_cv_build" >&6; }
4647 case $ac_cv_build in
4648 *-*-*) ;;
4649 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4650 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4651    { (exit 1); exit 1; }; };;
4652 esac
4653 build=$ac_cv_build
4654 ac_save_IFS=$IFS; IFS='-'
4655 set x $ac_cv_build
4656 shift
4657 build_cpu=$1
4658 build_vendor=$2
4659 shift; shift
4660 # Remember, the first character of IFS is used to create $*,
4661 # except with old shells:
4662 build_os=$*
4663 IFS=$ac_save_IFS
4664 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4665
4666
4667 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4668 $as_echo_n "checking host system type... " >&6; }
4669 if test "${ac_cv_host+set}" = set; then
4670   $as_echo_n "(cached) " >&6
4671 else
4672   if test "x$host_alias" = x; then
4673   ac_cv_host=$ac_cv_build
4674 else
4675   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4676     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4677 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4678    { (exit 1); exit 1; }; }
4679 fi
4680
4681 fi
4682 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4683 $as_echo "$ac_cv_host" >&6; }
4684 case $ac_cv_host in
4685 *-*-*) ;;
4686 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4687 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4688    { (exit 1); exit 1; }; };;
4689 esac
4690 host=$ac_cv_host
4691 ac_save_IFS=$IFS; IFS='-'
4692 set x $ac_cv_host
4693 shift
4694 host_cpu=$1
4695 host_vendor=$2
4696 shift; shift
4697 # Remember, the first character of IFS is used to create $*,
4698 # except with old shells:
4699 host_os=$*
4700 IFS=$ac_save_IFS
4701 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4702
4703
4704 ## AC_CANONICAL_BUILD
4705 ## AC_CANONICAL_TARGET
4706
4707 # Set the @SET_MAKE@ variable=make if $(MAKE) not set
4708 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4709 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4710 set x ${MAKE-make}
4711 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4712 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4713   $as_echo_n "(cached) " >&6
4714 else
4715   cat >conftest.make <<\_ACEOF
4716 SHELL = /bin/sh
4717 all:
4718         @echo '@@@%%%=$(MAKE)=@@@%%%'
4719 _ACEOF
4720 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4721 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4722   *@@@%%%=?*=@@@%%%*)
4723     eval ac_cv_prog_make_${ac_make}_set=yes;;
4724   *)
4725     eval ac_cv_prog_make_${ac_make}_set=no;;
4726 esac
4727 rm -f conftest.make
4728 fi
4729 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4730   { $as_echo "$as_me:$LINENO: result: yes" >&5
4731 $as_echo "yes" >&6; }
4732   SET_MAKE=
4733 else
4734   { $as_echo "$as_me:$LINENO: result: no" >&5
4735 $as_echo "no" >&6; }
4736   SET_MAKE="MAKE=${MAKE-make}"
4737 fi
4738
4739
4740 # AC_PROG_RANLIB will allow you to build code in sub-directories into
4741 # temporary libraries, which make will then link in with the rest of
4742 # the code.
4743 # Rendered obsolte by LT_INIT: AC_PROG_RANLIB
4744 #AC_PROG_LIBTOOL
4745 case `pwd` in
4746   *\ * | *\     *)
4747     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4748 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4749 esac
4750
4751
4752
4753 macro_version='2.2.6'
4754 macro_revision='1.3012'
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768 ltmain="$ac_aux_dir/ltmain.sh"
4769
4770 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4771 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4772 if test "${ac_cv_path_SED+set}" = set; then
4773   $as_echo_n "(cached) " >&6
4774 else
4775             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4776      for ac_i in 1 2 3 4 5 6 7; do
4777        ac_script="$ac_script$as_nl$ac_script"
4778      done
4779      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4780      $as_unset ac_script || ac_script=
4781      if test -z "$SED"; then
4782   ac_path_SED_found=false
4783   # Loop through the user's path and test for each of PROGNAME-LIST
4784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787   IFS=$as_save_IFS
4788   test -z "$as_dir" && as_dir=.
4789   for ac_prog in sed gsed; do
4790     for ac_exec_ext in '' $ac_executable_extensions; do
4791       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4792       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4793 # Check for GNU ac_path_SED and select it if it is found.
4794   # Check for GNU $ac_path_SED
4795 case `"$ac_path_SED" --version 2>&1` in
4796 *GNU*)
4797   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4798 *)
4799   ac_count=0
4800   $as_echo_n 0123456789 >"conftest.in"
4801   while :
4802   do
4803     cat "conftest.in" "conftest.in" >"conftest.tmp"
4804     mv "conftest.tmp" "conftest.in"
4805     cp "conftest.in" "conftest.nl"
4806     $as_echo '' >> "conftest.nl"
4807     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4808     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4809     ac_count=`expr $ac_count + 1`
4810     if test $ac_count -gt ${ac_path_SED_max-0}; then
4811       # Best one so far, save it but keep looking for a better one
4812       ac_cv_path_SED="$ac_path_SED"
4813       ac_path_SED_max=$ac_count
4814     fi
4815     # 10*(2^10) chars as input seems more than enough
4816     test $ac_count -gt 10 && break
4817   done
4818   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4819 esac
4820
4821       $ac_path_SED_found && break 3
4822     done
4823   done
4824 done
4825 IFS=$as_save_IFS
4826   if test -z "$ac_cv_path_SED"; then
4827     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4828 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4829    { (exit 1); exit 1; }; }
4830   fi
4831 else
4832   ac_cv_path_SED=$SED
4833 fi
4834
4835 fi
4836 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4837 $as_echo "$ac_cv_path_SED" >&6; }
4838  SED="$ac_cv_path_SED"
4839   rm -f conftest.sed
4840
4841 test -z "$SED" && SED=sed
4842 Xsed="$SED -e 1s/^X//"
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4855 $as_echo_n "checking for fgrep... " >&6; }
4856 if test "${ac_cv_path_FGREP+set}" = set; then
4857   $as_echo_n "(cached) " >&6
4858 else
4859   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4860    then ac_cv_path_FGREP="$GREP -F"
4861    else
4862      if test -z "$FGREP"; then
4863   ac_path_FGREP_found=false
4864   # Loop through the user's path and test for each of PROGNAME-LIST
4865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4867 do
4868   IFS=$as_save_IFS
4869   test -z "$as_dir" && as_dir=.
4870   for ac_prog in fgrep; do
4871     for ac_exec_ext in '' $ac_executable_extensions; do
4872       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4873       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4874 # Check for GNU ac_path_FGREP and select it if it is found.
4875   # Check for GNU $ac_path_FGREP
4876 case `"$ac_path_FGREP" --version 2>&1` in
4877 *GNU*)
4878   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4879 *)
4880   ac_count=0
4881   $as_echo_n 0123456789 >"conftest.in"
4882   while :
4883   do
4884     cat "conftest.in" "conftest.in" >"conftest.tmp"
4885     mv "conftest.tmp" "conftest.in"
4886     cp "conftest.in" "conftest.nl"
4887     $as_echo 'FGREP' >> "conftest.nl"
4888     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4889     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4890     ac_count=`expr $ac_count + 1`
4891     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4892       # Best one so far, save it but keep looking for a better one
4893       ac_cv_path_FGREP="$ac_path_FGREP"
4894       ac_path_FGREP_max=$ac_count
4895     fi
4896     # 10*(2^10) chars as input seems more than enough
4897     test $ac_count -gt 10 && break
4898   done
4899   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4900 esac
4901
4902       $ac_path_FGREP_found && break 3
4903     done
4904   done
4905 done
4906 IFS=$as_save_IFS
4907   if test -z "$ac_cv_path_FGREP"; then
4908     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4909 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4910    { (exit 1); exit 1; }; }
4911   fi
4912 else
4913   ac_cv_path_FGREP=$FGREP
4914 fi
4915
4916    fi
4917 fi
4918 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4919 $as_echo "$ac_cv_path_FGREP" >&6; }
4920  FGREP="$ac_cv_path_FGREP"
4921
4922
4923 test -z "$GREP" && GREP=grep
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943 # Check whether --with-gnu-ld was given.
4944 if test "${with_gnu_ld+set}" = set; then
4945   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4946 else
4947   with_gnu_ld=no
4948 fi
4949
4950 ac_prog=ld
4951 if test "$GCC" = yes; then
4952   # Check if gcc -print-prog-name=ld gives a path.
4953   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4954 $as_echo_n "checking for ld used by $CC... " >&6; }
4955   case $host in
4956   *-*-mingw*)
4957     # gcc leaves a trailing carriage return which upsets mingw
4958     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4959   *)
4960     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4961   esac
4962   case $ac_prog in
4963     # Accept absolute paths.
4964     [\\/]* | ?:[\\/]*)
4965       re_direlt='/[^/][^/]*/\.\./'
4966       # Canonicalize the pathname of ld
4967       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4968       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4969         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4970       done
4971       test -z "$LD" && LD="$ac_prog"
4972       ;;
4973   "")
4974     # If it fails, then pretend we aren't using GCC.
4975     ac_prog=ld
4976     ;;
4977   *)
4978     # If it is relative, then search for the first ld in PATH.
4979     with_gnu_ld=unknown
4980     ;;
4981   esac
4982 elif test "$with_gnu_ld" = yes; then
4983   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4984 $as_echo_n "checking for GNU ld... " >&6; }
4985 else
4986   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4987 $as_echo_n "checking for non-GNU ld... " >&6; }
4988 fi
4989 if test "${lt_cv_path_LD+set}" = set; then
4990   $as_echo_n "(cached) " >&6
4991 else
4992   if test -z "$LD"; then
4993   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4994   for ac_dir in $PATH; do
4995     IFS="$lt_save_ifs"
4996     test -z "$ac_dir" && ac_dir=.
4997     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4998       lt_cv_path_LD="$ac_dir/$ac_prog"
4999       # Check to see if the program is GNU ld.  I'd rather use --version,
5000       # but apparently some variants of GNU ld only accept -v.
5001       # Break only if it was the GNU/non-GNU ld that we prefer.
5002       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5003       *GNU* | *'with BFD'*)
5004         test "$with_gnu_ld" != no && break
5005         ;;
5006       *)
5007         test "$with_gnu_ld" != yes && break
5008         ;;
5009       esac
5010     fi
5011   done
5012   IFS="$lt_save_ifs"
5013 else
5014   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5015 fi
5016 fi
5017
5018 LD="$lt_cv_path_LD"
5019 if test -n "$LD"; then
5020   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5021 $as_echo "$LD" >&6; }
5022 else
5023   { $as_echo "$as_me:$LINENO: result: no" >&5
5024 $as_echo "no" >&6; }
5025 fi
5026 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5027 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5028    { (exit 1); exit 1; }; }
5029 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5030 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5031 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5032   $as_echo_n "(cached) " >&6
5033 else
5034   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5035 case `$LD -v 2>&1 </dev/null` in
5036 *GNU* | *'with BFD'*)
5037   lt_cv_prog_gnu_ld=yes
5038   ;;
5039 *)
5040   lt_cv_prog_gnu_ld=no
5041   ;;
5042 esac
5043 fi
5044 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5045 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5046 with_gnu_ld=$lt_cv_prog_gnu_ld
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5057 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5058 if test "${lt_cv_path_NM+set}" = set; then
5059   $as_echo_n "(cached) " >&6
5060 else
5061   if test -n "$NM"; then
5062   # Let the user override the test.
5063   lt_cv_path_NM="$NM"
5064 else
5065   lt_nm_to_check="${ac_tool_prefix}nm"
5066   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5067     lt_nm_to_check="$lt_nm_to_check nm"
5068   fi
5069   for lt_tmp_nm in $lt_nm_to_check; do
5070     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5071     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5072       IFS="$lt_save_ifs"
5073       test -z "$ac_dir" && ac_dir=.
5074       tmp_nm="$ac_dir/$lt_tmp_nm"
5075       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5076         # Check to see if the nm accepts a BSD-compat flag.
5077         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5078         #   nm: unknown option "B" ignored
5079         # Tru64's nm complains that /dev/null is an invalid object file
5080         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5081         */dev/null* | *'Invalid file or object type'*)
5082           lt_cv_path_NM="$tmp_nm -B"
5083           break
5084           ;;
5085         *)
5086           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5087           */dev/null*)
5088             lt_cv_path_NM="$tmp_nm -p"
5089             break
5090             ;;
5091           *)
5092             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5093             continue # so that we can try to find one that supports BSD flags
5094             ;;
5095           esac
5096           ;;
5097         esac
5098       fi
5099     done
5100     IFS="$lt_save_ifs"
5101   done
5102   : ${lt_cv_path_NM=no}
5103 fi
5104 fi
5105 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5106 $as_echo "$lt_cv_path_NM" >&6; }
5107 if test "$lt_cv_path_NM" != "no"; then
5108   NM="$lt_cv_path_NM"
5109 else
5110   # Didn't find any BSD compatible name lister, look for dumpbin.
5111   if test -n "$ac_tool_prefix"; then
5112   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5113   do
5114     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5116 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5119   $as_echo_n "(cached) " >&6
5120 else
5121   if test -n "$DUMPBIN"; then
5122   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5126 do
5127   IFS=$as_save_IFS
5128   test -z "$as_dir" && as_dir=.
5129   for ac_exec_ext in '' $ac_executable_extensions; do
5130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5132     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5133     break 2
5134   fi
5135 done
5136 done
5137 IFS=$as_save_IFS
5138
5139 fi
5140 fi
5141 DUMPBIN=$ac_cv_prog_DUMPBIN
5142 if test -n "$DUMPBIN"; then
5143   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5144 $as_echo "$DUMPBIN" >&6; }
5145 else
5146   { $as_echo "$as_me:$LINENO: result: no" >&5
5147 $as_echo "no" >&6; }
5148 fi
5149
5150
5151     test -n "$DUMPBIN" && break
5152   done
5153 fi
5154 if test -z "$DUMPBIN"; then
5155   ac_ct_DUMPBIN=$DUMPBIN
5156   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5157 do
5158   # Extract the first word of "$ac_prog", so it can be a program name with args.
5159 set dummy $ac_prog; ac_word=$2
5160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5163   $as_echo_n "(cached) " >&6
5164 else
5165   if test -n "$ac_ct_DUMPBIN"; then
5166   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171   IFS=$as_save_IFS
5172   test -z "$as_dir" && as_dir=.
5173   for ac_exec_ext in '' $ac_executable_extensions; do
5174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5176     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177     break 2
5178   fi
5179 done
5180 done
5181 IFS=$as_save_IFS
5182
5183 fi
5184 fi
5185 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5186 if test -n "$ac_ct_DUMPBIN"; then
5187   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5188 $as_echo "$ac_ct_DUMPBIN" >&6; }
5189 else
5190   { $as_echo "$as_me:$LINENO: result: no" >&5
5191 $as_echo "no" >&6; }
5192 fi
5193
5194
5195   test -n "$ac_ct_DUMPBIN" && break
5196 done
5197
5198   if test "x$ac_ct_DUMPBIN" = x; then
5199     DUMPBIN=":"
5200   else
5201     case $cross_compiling:$ac_tool_warned in
5202 yes:)
5203 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5205 ac_tool_warned=yes ;;
5206 esac
5207     DUMPBIN=$ac_ct_DUMPBIN
5208   fi
5209 fi
5210
5211
5212   if test "$DUMPBIN" != ":"; then
5213     NM="$DUMPBIN"
5214   fi
5215 fi
5216 test -z "$NM" && NM=nm
5217
5218
5219
5220
5221
5222
5223 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5224 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5225 if test "${lt_cv_nm_interface+set}" = set; then
5226   $as_echo_n "(cached) " >&6
5227 else
5228   lt_cv_nm_interface="BSD nm"
5229   echo "int some_variable = 0;" > conftest.$ac_ext
5230   (eval echo "\"\$as_me:5230: $ac_compile\"" >&5)
5231   (eval "$ac_compile" 2>conftest.err)
5232   cat conftest.err >&5
5233   (eval echo "\"\$as_me:5233: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5234   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5235   cat conftest.err >&5
5236   (eval echo "\"\$as_me:5236: output\"" >&5)
5237   cat conftest.out >&5
5238   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5239     lt_cv_nm_interface="MS dumpbin"
5240   fi
5241   rm -f conftest*
5242 fi
5243 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5244 $as_echo "$lt_cv_nm_interface" >&6; }
5245
5246 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5247 $as_echo_n "checking whether ln -s works... " >&6; }
5248 LN_S=$as_ln_s
5249 if test "$LN_S" = "ln -s"; then
5250   { $as_echo "$as_me:$LINENO: result: yes" >&5
5251 $as_echo "yes" >&6; }
5252 else
5253   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5254 $as_echo "no, using $LN_S" >&6; }
5255 fi
5256
5257 # find the maximum length of command line arguments
5258 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5259 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5260 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5261   $as_echo_n "(cached) " >&6
5262 else
5263     i=0
5264   teststring="ABCD"
5265
5266   case $build_os in
5267   msdosdjgpp*)
5268     # On DJGPP, this test can blow up pretty badly due to problems in libc
5269     # (any single argument exceeding 2000 bytes causes a buffer overrun
5270     # during glob expansion).  Even if it were fixed, the result of this
5271     # check would be larger than it should be.
5272     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5273     ;;
5274
5275   gnu*)
5276     # Under GNU Hurd, this test is not required because there is
5277     # no limit to the length of command line arguments.
5278     # Libtool will interpret -1 as no limit whatsoever
5279     lt_cv_sys_max_cmd_len=-1;
5280     ;;
5281
5282   cygwin* | mingw* | cegcc*)
5283     # On Win9x/ME, this test blows up -- it succeeds, but takes
5284     # about 5 minutes as the teststring grows exponentially.
5285     # Worse, since 9x/ME are not pre-emptively multitasking,
5286     # you end up with a "frozen" computer, even though with patience
5287     # the test eventually succeeds (with a max line length of 256k).
5288     # Instead, let's just punt: use the minimum linelength reported by
5289     # all of the supported platforms: 8192 (on NT/2K/XP).
5290     lt_cv_sys_max_cmd_len=8192;
5291     ;;
5292
5293   amigaos*)
5294     # On AmigaOS with pdksh, this test takes hours, literally.
5295     # So we just punt and use a minimum line length of 8192.
5296     lt_cv_sys_max_cmd_len=8192;
5297     ;;
5298
5299   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5300     # This has been around since 386BSD, at least.  Likely further.
5301     if test -x /sbin/sysctl; then
5302       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5303     elif test -x /usr/sbin/sysctl; then
5304       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5305     else
5306       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5307     fi
5308     # And add a safety zone
5309     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5310     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5311     ;;
5312
5313   interix*)
5314     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5315     lt_cv_sys_max_cmd_len=196608
5316     ;;
5317
5318   osf*)
5319     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5320     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5321     # nice to cause kernel panics so lets avoid the loop below.
5322     # First set a reasonable default.
5323     lt_cv_sys_max_cmd_len=16384
5324     #
5325     if test -x /sbin/sysconfig; then
5326       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5327         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5328       esac
5329     fi
5330     ;;
5331   sco3.2v5*)
5332     lt_cv_sys_max_cmd_len=102400
5333     ;;
5334   sysv5* | sco5v6* | sysv4.2uw2*)
5335     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5336     if test -n "$kargmax"; then
5337       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5338     else
5339       lt_cv_sys_max_cmd_len=32768
5340     fi
5341     ;;
5342   *)
5343     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5344     if test -n "$lt_cv_sys_max_cmd_len"; then
5345       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5346       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5347     else
5348       # Make teststring a little bigger before we do anything with it.
5349       # a 1K string should be a reasonable start.
5350       for i in 1 2 3 4 5 6 7 8 ; do
5351         teststring=$teststring$teststring
5352       done
5353       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5354       # If test is not a shell built-in, we'll probably end up computing a
5355       # maximum length that is only half of the actual maximum length, but
5356       # we can't tell.
5357       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5358                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5359               test $i != 17 # 1/2 MB should be enough
5360       do
5361         i=`expr $i + 1`
5362         teststring=$teststring$teststring
5363       done
5364       # Only check the string length outside the loop.
5365       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5366       teststring=
5367       # Add a significant safety factor because C++ compilers can tack on
5368       # massive amounts of additional arguments before passing them to the
5369       # linker.  It appears as though 1/2 is a usable value.
5370       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5371     fi
5372     ;;
5373   esac
5374
5375 fi
5376
5377 if test -n $lt_cv_sys_max_cmd_len ; then
5378   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5379 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5380 else
5381   { $as_echo "$as_me:$LINENO: result: none" >&5
5382 $as_echo "none" >&6; }
5383 fi
5384 max_cmd_len=$lt_cv_sys_max_cmd_len
5385
5386
5387
5388
5389
5390
5391 : ${CP="cp -f"}
5392 : ${MV="mv -f"}
5393 : ${RM="rm -f"}
5394
5395 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5396 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5397 # Try some XSI features
5398 xsi_shell=no
5399 ( _lt_dummy="a/b/c"
5400   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5401       = c,a/b,, \
5402     && eval 'test $(( 1 + 1 )) -eq 2 \
5403     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5404   && xsi_shell=yes
5405 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5406 $as_echo "$xsi_shell" >&6; }
5407
5408
5409 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5410 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5411 lt_shell_append=no
5412 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5413     >/dev/null 2>&1 \
5414   && lt_shell_append=yes
5415 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5416 $as_echo "$lt_shell_append" >&6; }
5417
5418
5419 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5420   lt_unset=unset
5421 else
5422   lt_unset=false
5423 fi
5424
5425
5426
5427
5428
5429 # test EBCDIC or ASCII
5430 case `echo X|tr X '\101'` in
5431  A) # ASCII based system
5432     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5433   lt_SP2NL='tr \040 \012'
5434   lt_NL2SP='tr \015\012 \040\040'
5435   ;;
5436  *) # EBCDIC based system
5437   lt_SP2NL='tr \100 \n'
5438   lt_NL2SP='tr \r\n \100\100'
5439   ;;
5440 esac
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5451 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5452 if test "${lt_cv_ld_reload_flag+set}" = set; then
5453   $as_echo_n "(cached) " >&6
5454 else
5455   lt_cv_ld_reload_flag='-r'
5456 fi
5457 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5458 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5459 reload_flag=$lt_cv_ld_reload_flag
5460 case $reload_flag in
5461 "" | " "*) ;;
5462 *) reload_flag=" $reload_flag" ;;
5463 esac
5464 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5465 case $host_os in
5466   darwin*)
5467     if test "$GCC" = yes; then
5468       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5469     else
5470       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5471     fi
5472     ;;
5473 esac
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483 if test -n "$ac_tool_prefix"; then
5484   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5485 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5486 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5489   $as_echo_n "(cached) " >&6
5490 else
5491   if test -n "$OBJDUMP"; then
5492   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5493 else
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5496 do
5497   IFS=$as_save_IFS
5498   test -z "$as_dir" && as_dir=.
5499   for ac_exec_ext in '' $ac_executable_extensions; do
5500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5501     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5502     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503     break 2
5504   fi
5505 done
5506 done
5507 IFS=$as_save_IFS
5508
5509 fi
5510 fi
5511 OBJDUMP=$ac_cv_prog_OBJDUMP
5512 if test -n "$OBJDUMP"; then
5513   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5514 $as_echo "$OBJDUMP" >&6; }
5515 else
5516   { $as_echo "$as_me:$LINENO: result: no" >&5
5517 $as_echo "no" >&6; }
5518 fi
5519
5520
5521 fi
5522 if test -z "$ac_cv_prog_OBJDUMP"; then
5523   ac_ct_OBJDUMP=$OBJDUMP
5524   # Extract the first word of "objdump", so it can be a program name with args.
5525 set dummy objdump; ac_word=$2
5526 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5529   $as_echo_n "(cached) " >&6
5530 else
5531   if test -n "$ac_ct_OBJDUMP"; then
5532   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5533 else
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5536 do
5537   IFS=$as_save_IFS
5538   test -z "$as_dir" && as_dir=.
5539   for ac_exec_ext in '' $ac_executable_extensions; do
5540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5541     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5542     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5543     break 2
5544   fi
5545 done
5546 done
5547 IFS=$as_save_IFS
5548
5549 fi
5550 fi
5551 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5552 if test -n "$ac_ct_OBJDUMP"; then
5553   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5554 $as_echo "$ac_ct_OBJDUMP" >&6; }
5555 else
5556   { $as_echo "$as_me:$LINENO: result: no" >&5
5557 $as_echo "no" >&6; }
5558 fi
5559
5560   if test "x$ac_ct_OBJDUMP" = x; then
5561     OBJDUMP="false"
5562   else
5563     case $cross_compiling:$ac_tool_warned in
5564 yes:)
5565 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5567 ac_tool_warned=yes ;;
5568 esac
5569     OBJDUMP=$ac_ct_OBJDUMP
5570   fi
5571 else
5572   OBJDUMP="$ac_cv_prog_OBJDUMP"
5573 fi
5574
5575 test -z "$OBJDUMP" && OBJDUMP=objdump
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5586 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5587 if test "${lt_cv_deplibs_check_method+set}" = set; then
5588   $as_echo_n "(cached) " >&6
5589 else
5590   lt_cv_file_magic_cmd='$MAGIC_CMD'
5591 lt_cv_file_magic_test_file=
5592 lt_cv_deplibs_check_method='unknown'
5593 # Need to set the preceding variable on all platforms that support
5594 # interlibrary dependencies.
5595 # 'none' -- dependencies not supported.
5596 # `unknown' -- same as none, but documents that we really don't know.
5597 # 'pass_all' -- all dependencies passed with no checks.
5598 # 'test_compile' -- check by making test program.
5599 # 'file_magic [[regex]]' -- check by looking for files in library path
5600 # which responds to the $file_magic_cmd with a given extended regex.
5601 # If you have `file' or equivalent on your system and you're not sure
5602 # whether `pass_all' will *always* work, you probably want this one.
5603
5604 case $host_os in
5605 aix[4-9]*)
5606   lt_cv_deplibs_check_method=pass_all
5607   ;;
5608
5609 beos*)
5610   lt_cv_deplibs_check_method=pass_all
5611   ;;
5612
5613 bsdi[45]*)
5614   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5615   lt_cv_file_magic_cmd='/usr/bin/file -L'
5616   lt_cv_file_magic_test_file=/shlib/libc.so
5617   ;;
5618
5619 cygwin*)
5620   # func_win32_libid is a shell function defined in ltmain.sh
5621   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5622   lt_cv_file_magic_cmd='func_win32_libid'
5623   ;;
5624
5625 mingw* | pw32*)
5626   # Base MSYS/MinGW do not provide the 'file' command needed by
5627   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5628   # unless we find 'file', for example because we are cross-compiling.
5629   if ( file / ) >/dev/null 2>&1; then
5630     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5631     lt_cv_file_magic_cmd='func_win32_libid'
5632   else
5633     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5634     lt_cv_file_magic_cmd='$OBJDUMP -f'
5635   fi
5636   ;;
5637
5638 cegcc)
5639   # use the weaker test based on 'objdump'. See mingw*.
5640   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5641   lt_cv_file_magic_cmd='$OBJDUMP -f'
5642   ;;
5643
5644 darwin* | rhapsody*)
5645   lt_cv_deplibs_check_method=pass_all
5646   ;;
5647
5648 freebsd* | dragonfly*)
5649   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5650     case $host_cpu in
5651     i*86 )
5652       # Not sure whether the presence of OpenBSD here was a mistake.
5653       # Let's accept both of them until this is cleared up.
5654       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5655       lt_cv_file_magic_cmd=/usr/bin/file
5656       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5657       ;;
5658     esac
5659   else
5660     lt_cv_deplibs_check_method=pass_all
5661   fi
5662   ;;
5663
5664 gnu*)
5665   lt_cv_deplibs_check_method=pass_all
5666   ;;
5667
5668 hpux10.20* | hpux11*)
5669   lt_cv_file_magic_cmd=/usr/bin/file
5670   case $host_cpu in
5671   ia64*)
5672     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5673     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5674     ;;
5675   hppa*64*)
5676     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]'
5677     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5678     ;;
5679   *)
5680     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5681     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5682     ;;
5683   esac
5684   ;;
5685
5686 interix[3-9]*)
5687   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5688   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5689   ;;
5690
5691 irix5* | irix6* | nonstopux*)
5692   case $LD in
5693   *-32|*"-32 ") libmagic=32-bit;;
5694   *-n32|*"-n32 ") libmagic=N32;;
5695   *-64|*"-64 ") libmagic=64-bit;;
5696   *) libmagic=never-match;;
5697   esac
5698   lt_cv_deplibs_check_method=pass_all
5699   ;;
5700
5701 # This must be Linux ELF.
5702 linux* | k*bsd*-gnu)
5703   lt_cv_deplibs_check_method=pass_all
5704   ;;
5705
5706 netbsd* | netbsdelf*-gnu)
5707   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5708     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5709   else
5710     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5711   fi
5712   ;;
5713
5714 newos6*)
5715   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5716   lt_cv_file_magic_cmd=/usr/bin/file
5717   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5718   ;;
5719
5720 *nto* | *qnx*)
5721   lt_cv_deplibs_check_method=pass_all
5722   ;;
5723
5724 openbsd*)
5725   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5726     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5727   else
5728     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5729   fi
5730   ;;
5731
5732 osf3* | osf4* | osf5*)
5733   lt_cv_deplibs_check_method=pass_all
5734   ;;
5735
5736 rdos*)
5737   lt_cv_deplibs_check_method=pass_all
5738   ;;
5739
5740 solaris*)
5741   lt_cv_deplibs_check_method=pass_all
5742   ;;
5743
5744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5745   lt_cv_deplibs_check_method=pass_all
5746   ;;
5747
5748 sysv4 | sysv4.3*)
5749   case $host_vendor in
5750   motorola)
5751     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]'
5752     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5753     ;;
5754   ncr)
5755     lt_cv_deplibs_check_method=pass_all
5756     ;;
5757   sequent)
5758     lt_cv_file_magic_cmd='/bin/file'
5759     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5760     ;;
5761   sni)
5762     lt_cv_file_magic_cmd='/bin/file'
5763     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5764     lt_cv_file_magic_test_file=/lib/libc.so
5765     ;;
5766   siemens)
5767     lt_cv_deplibs_check_method=pass_all
5768     ;;
5769   pc)
5770     lt_cv_deplibs_check_method=pass_all
5771     ;;
5772   esac
5773   ;;
5774
5775 tpf*)
5776   lt_cv_deplibs_check_method=pass_all
5777   ;;
5778 esac
5779
5780 fi
5781 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5782 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5783 file_magic_cmd=$lt_cv_file_magic_cmd
5784 deplibs_check_method=$lt_cv_deplibs_check_method
5785 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798 if test -n "$ac_tool_prefix"; then
5799   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5800 set dummy ${ac_tool_prefix}ar; ac_word=$2
5801 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if test "${ac_cv_prog_AR+set}" = set; then
5804   $as_echo_n "(cached) " >&6
5805 else
5806   if test -n "$AR"; then
5807   ac_cv_prog_AR="$AR" # Let the user override the test.
5808 else
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812   IFS=$as_save_IFS
5813   test -z "$as_dir" && as_dir=.
5814   for ac_exec_ext in '' $ac_executable_extensions; do
5815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816     ac_cv_prog_AR="${ac_tool_prefix}ar"
5817     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818     break 2
5819   fi
5820 done
5821 done
5822 IFS=$as_save_IFS
5823
5824 fi
5825 fi
5826 AR=$ac_cv_prog_AR
5827 if test -n "$AR"; then
5828   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5829 $as_echo "$AR" >&6; }
5830 else
5831   { $as_echo "$as_me:$LINENO: result: no" >&5
5832 $as_echo "no" >&6; }
5833 fi
5834
5835
5836 fi
5837 if test -z "$ac_cv_prog_AR"; then
5838   ac_ct_AR=$AR
5839   # Extract the first word of "ar", so it can be a program name with args.
5840 set dummy ar; ac_word=$2
5841 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5844   $as_echo_n "(cached) " >&6
5845 else
5846   if test -n "$ac_ct_AR"; then
5847   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5848 else
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5851 do
5852   IFS=$as_save_IFS
5853   test -z "$as_dir" && as_dir=.
5854   for ac_exec_ext in '' $ac_executable_extensions; do
5855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5856     ac_cv_prog_ac_ct_AR="ar"
5857     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5858     break 2
5859   fi
5860 done
5861 done
5862 IFS=$as_save_IFS
5863
5864 fi
5865 fi
5866 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5867 if test -n "$ac_ct_AR"; then
5868   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5869 $as_echo "$ac_ct_AR" >&6; }
5870 else
5871   { $as_echo "$as_me:$LINENO: result: no" >&5
5872 $as_echo "no" >&6; }
5873 fi
5874
5875   if test "x$ac_ct_AR" = x; then
5876     AR="false"
5877   else
5878     case $cross_compiling:$ac_tool_warned in
5879 yes:)
5880 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5882 ac_tool_warned=yes ;;
5883 esac
5884     AR=$ac_ct_AR
5885   fi
5886 else
5887   AR="$ac_cv_prog_AR"
5888 fi
5889
5890 test -z "$AR" && AR=ar
5891 test -z "$AR_FLAGS" && AR_FLAGS=cru
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903 if test -n "$ac_tool_prefix"; then
5904   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5905 set dummy ${ac_tool_prefix}strip; ac_word=$2
5906 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if test "${ac_cv_prog_STRIP+set}" = set; then
5909   $as_echo_n "(cached) " >&6
5910 else
5911   if test -n "$STRIP"; then
5912   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917   IFS=$as_save_IFS
5918   test -z "$as_dir" && as_dir=.
5919   for ac_exec_ext in '' $ac_executable_extensions; do
5920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5922     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923     break 2
5924   fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929 fi
5930 fi
5931 STRIP=$ac_cv_prog_STRIP
5932 if test -n "$STRIP"; then
5933   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5934 $as_echo "$STRIP" >&6; }
5935 else
5936   { $as_echo "$as_me:$LINENO: result: no" >&5
5937 $as_echo "no" >&6; }
5938 fi
5939
5940
5941 fi
5942 if test -z "$ac_cv_prog_STRIP"; then
5943   ac_ct_STRIP=$STRIP
5944   # Extract the first word of "strip", so it can be a program name with args.
5945 set dummy strip; ac_word=$2
5946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 $as_echo_n "checking for $ac_word... " >&6; }
5948 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5949   $as_echo_n "(cached) " >&6
5950 else
5951   if test -n "$ac_ct_STRIP"; then
5952   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957   IFS=$as_save_IFS
5958   test -z "$as_dir" && as_dir=.
5959   for ac_exec_ext in '' $ac_executable_extensions; do
5960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5961     ac_cv_prog_ac_ct_STRIP="strip"
5962     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963     break 2
5964   fi
5965 done
5966 done
5967 IFS=$as_save_IFS
5968
5969 fi
5970 fi
5971 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5972 if test -n "$ac_ct_STRIP"; then
5973   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5974 $as_echo "$ac_ct_STRIP" >&6; }
5975 else
5976   { $as_echo "$as_me:$LINENO: result: no" >&5
5977 $as_echo "no" >&6; }
5978 fi
5979
5980   if test "x$ac_ct_STRIP" = x; then
5981     STRIP=":"
5982   else
5983     case $cross_compiling:$ac_tool_warned in
5984 yes:)
5985 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5987 ac_tool_warned=yes ;;
5988 esac
5989     STRIP=$ac_ct_STRIP
5990   fi
5991 else
5992   STRIP="$ac_cv_prog_STRIP"
5993 fi
5994
5995 test -z "$STRIP" && STRIP=:
5996
5997
5998
5999
6000
6001
6002 if test -n "$ac_tool_prefix"; then
6003   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6004 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6005 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if test "${ac_cv_prog_RANLIB+set}" = set; then
6008   $as_echo_n "(cached) " >&6
6009 else
6010   if test -n "$RANLIB"; then
6011   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016   IFS=$as_save_IFS
6017   test -z "$as_dir" && as_dir=.
6018   for ac_exec_ext in '' $ac_executable_extensions; do
6019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6021     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6022     break 2
6023   fi
6024 done
6025 done
6026 IFS=$as_save_IFS
6027
6028 fi
6029 fi
6030 RANLIB=$ac_cv_prog_RANLIB
6031 if test -n "$RANLIB"; then
6032   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6033 $as_echo "$RANLIB" >&6; }
6034 else
6035   { $as_echo "$as_me:$LINENO: result: no" >&5
6036 $as_echo "no" >&6; }
6037 fi
6038
6039
6040 fi
6041 if test -z "$ac_cv_prog_RANLIB"; then
6042   ac_ct_RANLIB=$RANLIB
6043   # Extract the first word of "ranlib", so it can be a program name with args.
6044 set dummy ranlib; ac_word=$2
6045 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6048   $as_echo_n "(cached) " >&6
6049 else
6050   if test -n "$ac_ct_RANLIB"; then
6051   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056   IFS=$as_save_IFS
6057   test -z "$as_dir" && as_dir=.
6058   for ac_exec_ext in '' $ac_executable_extensions; do
6059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060     ac_cv_prog_ac_ct_RANLIB="ranlib"
6061     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6062     break 2
6063   fi
6064 done
6065 done
6066 IFS=$as_save_IFS
6067
6068 fi
6069 fi
6070 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6071 if test -n "$ac_ct_RANLIB"; then
6072   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6073 $as_echo "$ac_ct_RANLIB" >&6; }
6074 else
6075   { $as_echo "$as_me:$LINENO: result: no" >&5
6076 $as_echo "no" >&6; }
6077 fi
6078
6079   if test "x$ac_ct_RANLIB" = x; then
6080     RANLIB=":"
6081   else
6082     case $cross_compiling:$ac_tool_warned in
6083 yes:)
6084 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6086 ac_tool_warned=yes ;;
6087 esac
6088     RANLIB=$ac_ct_RANLIB
6089   fi
6090 else
6091   RANLIB="$ac_cv_prog_RANLIB"
6092 fi
6093
6094 test -z "$RANLIB" && RANLIB=:
6095
6096
6097
6098
6099
6100
6101 # Determine commands to create old-style static archives.
6102 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6103 old_postinstall_cmds='chmod 644 $oldlib'
6104 old_postuninstall_cmds=
6105
6106 if test -n "$RANLIB"; then
6107   case $host_os in
6108   openbsd*)
6109     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6110     ;;
6111   *)
6112     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6113     ;;
6114   esac
6115   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6116 fi
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151 # If no C compiler was specified, use CC.
6152 LTCC=${LTCC-"$CC"}
6153
6154 # If no C compiler flags were specified, use CFLAGS.
6155 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6156
6157 # Allow CC to be a program name with arguments.
6158 compiler=$CC
6159
6160
6161 # Check for command to grab the raw symbol name followed by C symbol from nm.
6162 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6163 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6164 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6165   $as_echo_n "(cached) " >&6
6166 else
6167
6168 # These are sane defaults that work on at least a few old systems.
6169 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6170
6171 # Character class describing NM global symbol codes.
6172 symcode='[BCDEGRST]'
6173
6174 # Regexp to match symbols that can be accessed directly from C.
6175 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6176
6177 # Define system-specific variables.
6178 case $host_os in
6179 aix*)
6180   symcode='[BCDT]'
6181   ;;
6182 cygwin* | mingw* | pw32* | cegcc*)
6183   symcode='[ABCDGISTW]'
6184   ;;
6185 hpux*)
6186   if test "$host_cpu" = ia64; then
6187     symcode='[ABCDEGRST]'
6188   fi
6189   ;;
6190 irix* | nonstopux*)
6191   symcode='[BCDEGRST]'
6192   ;;
6193 osf*)
6194   symcode='[BCDEGQRST]'
6195   ;;
6196 solaris*)
6197   symcode='[BDRT]'
6198   ;;
6199 sco3.2v5*)
6200   symcode='[DT]'
6201   ;;
6202 sysv4.2uw2*)
6203   symcode='[DT]'
6204   ;;
6205 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6206   symcode='[ABDT]'
6207   ;;
6208 sysv4)
6209   symcode='[DFNSTU]'
6210   ;;
6211 esac
6212
6213 # If we're using GNU nm, then use its standard symbol codes.
6214 case `$NM -V 2>&1` in
6215 *GNU* | *'with BFD'*)
6216   symcode='[ABCDGIRSTW]' ;;
6217 esac
6218
6219 # Transform an extracted symbol line into a proper C declaration.
6220 # Some systems (esp. on ia64) link data and code symbols differently,
6221 # so use this general approach.
6222 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6223
6224 # Transform an extracted symbol line into symbol name and symbol address
6225 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6226 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6227
6228 # Handle CRLF in mingw tool chain
6229 opt_cr=
6230 case $build_os in
6231 mingw*)
6232   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6233   ;;
6234 esac
6235
6236 # Try without a prefix underscore, then with it.
6237 for ac_symprfx in "" "_"; do
6238
6239   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6240   symxfrm="\\1 $ac_symprfx\\2 \\2"
6241
6242   # Write the raw and C identifiers.
6243   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6244     # Fake it for dumpbin and say T for any non-static function
6245     # and D for any global variable.
6246     # Also find C++ and __fastcall symbols from MSVC++,
6247     # which start with @ or ?.
6248     lt_cv_sys_global_symbol_pipe="$AWK '"\
6249 "     {last_section=section; section=\$ 3};"\
6250 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6251 "     \$ 0!~/External *\|/{next};"\
6252 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6253 "     {if(hide[section]) next};"\
6254 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6255 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6256 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6257 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6258 "     ' prfx=^$ac_symprfx"
6259   else
6260     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6261   fi
6262
6263   # Check to see that the pipe works correctly.
6264   pipe_works=no
6265
6266   rm -f conftest*
6267   cat > conftest.$ac_ext <<_LT_EOF
6268 #ifdef __cplusplus
6269 extern "C" {
6270 #endif
6271 char nm_test_var;
6272 void nm_test_func(void);
6273 void nm_test_func(void){}
6274 #ifdef __cplusplus
6275 }
6276 #endif
6277 int main(){nm_test_var='a';nm_test_func();return(0);}
6278 _LT_EOF
6279
6280   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281   (eval $ac_compile) 2>&5
6282   ac_status=$?
6283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); }; then
6285     # Now try to grab the symbols.
6286     nlist=conftest.nm
6287     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6288   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6289   ac_status=$?
6290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291   (exit $ac_status); } && test -s "$nlist"; then
6292       # Try sorting and uniquifying the output.
6293       if sort "$nlist" | uniq > "$nlist"T; then
6294         mv -f "$nlist"T "$nlist"
6295       else
6296         rm -f "$nlist"T
6297       fi
6298
6299       # Make sure that we snagged all the symbols we need.
6300       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6301         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6302           cat <<_LT_EOF > conftest.$ac_ext
6303 #ifdef __cplusplus
6304 extern "C" {
6305 #endif
6306
6307 _LT_EOF
6308           # Now generate the symbol file.
6309           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6310
6311           cat <<_LT_EOF >> conftest.$ac_ext
6312
6313 /* The mapping between symbol names and symbols.  */
6314 const struct {
6315   const char *name;
6316   void       *address;
6317 }
6318 lt__PROGRAM__LTX_preloaded_symbols[] =
6319 {
6320   { "@PROGRAM@", (void *) 0 },
6321 _LT_EOF
6322           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6323           cat <<\_LT_EOF >> conftest.$ac_ext
6324   {0, (void *) 0}
6325 };
6326
6327 /* This works around a problem in FreeBSD linker */
6328 #ifdef FREEBSD_WORKAROUND
6329 static const void *lt_preloaded_setup() {
6330   return lt__PROGRAM__LTX_preloaded_symbols;
6331 }
6332 #endif
6333
6334 #ifdef __cplusplus
6335 }
6336 #endif
6337 _LT_EOF
6338           # Now try linking the two files.
6339           mv conftest.$ac_objext conftstm.$ac_objext
6340           lt_save_LIBS="$LIBS"
6341           lt_save_CFLAGS="$CFLAGS"
6342           LIBS="conftstm.$ac_objext"
6343           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6344           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6345   (eval $ac_link) 2>&5
6346   ac_status=$?
6347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6349             pipe_works=yes
6350           fi
6351           LIBS="$lt_save_LIBS"
6352           CFLAGS="$lt_save_CFLAGS"
6353         else
6354           echo "cannot find nm_test_func in $nlist" >&5
6355         fi
6356       else
6357         echo "cannot find nm_test_var in $nlist" >&5
6358       fi
6359     else
6360       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6361     fi
6362   else
6363     echo "$progname: failed program was:" >&5
6364     cat conftest.$ac_ext >&5
6365   fi
6366   rm -rf conftest* conftst*
6367
6368   # Do not use the global_symbol_pipe unless it works.
6369   if test "$pipe_works" = yes; then
6370     break
6371   else
6372     lt_cv_sys_global_symbol_pipe=
6373   fi
6374 done
6375
6376 fi
6377
6378 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6379   lt_cv_sys_global_symbol_to_cdecl=
6380 fi
6381 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6382   { $as_echo "$as_me:$LINENO: result: failed" >&5
6383 $as_echo "failed" >&6; }
6384 else
6385   { $as_echo "$as_me:$LINENO: result: ok" >&5
6386 $as_echo "ok" >&6; }
6387 fi
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410 # Check whether --enable-libtool-lock was given.
6411 if test "${enable_libtool_lock+set}" = set; then
6412   enableval=$enable_libtool_lock;
6413 fi
6414
6415 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6416
6417 # Some flags need to be propagated to the compiler or linker for good
6418 # libtool support.
6419 case $host in
6420 ia64-*-hpux*)
6421   # Find out which ABI we are using.
6422   echo 'int i;' > conftest.$ac_ext
6423   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424   (eval $ac_compile) 2>&5
6425   ac_status=$?
6426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); }; then
6428     case `/usr/bin/file conftest.$ac_objext` in
6429       *ELF-32*)
6430         HPUX_IA64_MODE="32"
6431         ;;
6432       *ELF-64*)
6433         HPUX_IA64_MODE="64"
6434         ;;
6435     esac
6436   fi
6437   rm -rf conftest*
6438   ;;
6439 *-*-irix6*)
6440   # Find out which ABI we are using.
6441   echo '#line 6441 "configure"' > conftest.$ac_ext
6442   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443   (eval $ac_compile) 2>&5
6444   ac_status=$?
6445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); }; then
6447     if test "$lt_cv_prog_gnu_ld" = yes; then
6448       case `/usr/bin/file conftest.$ac_objext` in
6449         *32-bit*)
6450           LD="${LD-ld} -melf32bsmip"
6451           ;;
6452         *N32*)
6453           LD="${LD-ld} -melf32bmipn32"
6454           ;;
6455         *64-bit*)
6456           LD="${LD-ld} -melf64bmip"
6457         ;;
6458       esac
6459     else
6460       case `/usr/bin/file conftest.$ac_objext` in
6461         *32-bit*)
6462           LD="${LD-ld} -32"
6463           ;;
6464         *N32*)
6465           LD="${LD-ld} -n32"
6466           ;;
6467         *64-bit*)
6468           LD="${LD-ld} -64"
6469           ;;
6470       esac
6471     fi
6472   fi
6473   rm -rf conftest*
6474   ;;
6475
6476 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6477 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6478   # Find out which ABI we are using.
6479   echo 'int i;' > conftest.$ac_ext
6480   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481   (eval $ac_compile) 2>&5
6482   ac_status=$?
6483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484   (exit $ac_status); }; then
6485     case `/usr/bin/file conftest.o` in
6486       *32-bit*)
6487         case $host in
6488           x86_64-*kfreebsd*-gnu)
6489             LD="${LD-ld} -m elf_i386_fbsd"
6490             ;;
6491           x86_64-*linux*)
6492             LD="${LD-ld} -m elf_i386"
6493             ;;
6494           ppc64-*linux*|powerpc64-*linux*)
6495             LD="${LD-ld} -m elf32ppclinux"
6496             ;;
6497           s390x-*linux*)
6498             LD="${LD-ld} -m elf_s390"
6499             ;;
6500           sparc64-*linux*)
6501             LD="${LD-ld} -m elf32_sparc"
6502             ;;
6503         esac
6504         ;;
6505       *64-bit*)
6506         case $host in
6507           x86_64-*kfreebsd*-gnu)
6508             LD="${LD-ld} -m elf_x86_64_fbsd"
6509             ;;
6510           x86_64-*linux*)
6511             LD="${LD-ld} -m elf_x86_64"
6512             ;;
6513           ppc*-*linux*|powerpc*-*linux*)
6514             LD="${LD-ld} -m elf64ppc"
6515             ;;
6516           s390*-*linux*|s390*-*tpf*)
6517             LD="${LD-ld} -m elf64_s390"
6518             ;;
6519           sparc*-*linux*)
6520             LD="${LD-ld} -m elf64_sparc"
6521             ;;
6522         esac
6523         ;;
6524     esac
6525   fi
6526   rm -rf conftest*
6527   ;;
6528
6529 *-*-sco3.2v5*)
6530   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6531   SAVE_CFLAGS="$CFLAGS"
6532   CFLAGS="$CFLAGS -belf"
6533   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6534 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6535 if test "${lt_cv_cc_needs_belf+set}" = set; then
6536   $as_echo_n "(cached) " >&6
6537 else
6538   ac_ext=c
6539 ac_cpp='$CPP $CPPFLAGS'
6540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6543
6544      cat >conftest.$ac_ext <<_ACEOF
6545 /* confdefs.h.  */
6546 _ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h.  */
6550
6551 int
6552 main ()
6553 {
6554
6555   ;
6556   return 0;
6557 }
6558 _ACEOF
6559 rm -f conftest.$ac_objext conftest$ac_exeext
6560 if { (ac_try="$ac_link"
6561 case "(($ac_try" in
6562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6563   *) ac_try_echo=$ac_try;;
6564 esac
6565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6566 $as_echo "$ac_try_echo") >&5
6567   (eval "$ac_link") 2>conftest.er1
6568   ac_status=$?
6569   grep -v '^ *+' conftest.er1 >conftest.err
6570   rm -f conftest.er1
6571   cat conftest.err >&5
6572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573   (exit $ac_status); } && {
6574          test -z "$ac_c_werror_flag" ||
6575          test ! -s conftest.err
6576        } && test -s conftest$ac_exeext && {
6577          test "$cross_compiling" = yes ||
6578          $as_test_x conftest$ac_exeext
6579        }; then
6580   lt_cv_cc_needs_belf=yes
6581 else
6582   $as_echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.$ac_ext >&5
6584
6585         lt_cv_cc_needs_belf=no
6586 fi
6587
6588 rm -rf conftest.dSYM
6589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6590       conftest$ac_exeext conftest.$ac_ext
6591      ac_ext=c
6592 ac_cpp='$CPP $CPPFLAGS'
6593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6596
6597 fi
6598 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6599 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6600   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6601     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6602     CFLAGS="$SAVE_CFLAGS"
6603   fi
6604   ;;
6605 sparc*-*solaris*)
6606   # Find out which ABI we are using.
6607   echo 'int i;' > conftest.$ac_ext
6608   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6609   (eval $ac_compile) 2>&5
6610   ac_status=$?
6611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); }; then
6613     case `/usr/bin/file conftest.o` in
6614     *64-bit*)
6615       case $lt_cv_prog_gnu_ld in
6616       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6617       *)
6618         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6619           LD="${LD-ld} -64"
6620         fi
6621         ;;
6622       esac
6623       ;;
6624     esac
6625   fi
6626   rm -rf conftest*
6627   ;;
6628 esac
6629
6630 need_locks="$enable_libtool_lock"
6631
6632
6633   case $host_os in
6634     rhapsody* | darwin*)
6635     if test -n "$ac_tool_prefix"; then
6636   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6637 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6641   $as_echo_n "(cached) " >&6
6642 else
6643   if test -n "$DSYMUTIL"; then
6644   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649   IFS=$as_save_IFS
6650   test -z "$as_dir" && as_dir=.
6651   for ac_exec_ext in '' $ac_executable_extensions; do
6652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6654     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655     break 2
6656   fi
6657 done
6658 done
6659 IFS=$as_save_IFS
6660
6661 fi
6662 fi
6663 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6664 if test -n "$DSYMUTIL"; then
6665   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6666 $as_echo "$DSYMUTIL" >&6; }
6667 else
6668   { $as_echo "$as_me:$LINENO: result: no" >&5
6669 $as_echo "no" >&6; }
6670 fi
6671
6672
6673 fi
6674 if test -z "$ac_cv_prog_DSYMUTIL"; then
6675   ac_ct_DSYMUTIL=$DSYMUTIL
6676   # Extract the first word of "dsymutil", so it can be a program name with args.
6677 set dummy dsymutil; ac_word=$2
6678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6681   $as_echo_n "(cached) " >&6
6682 else
6683   if test -n "$ac_ct_DSYMUTIL"; then
6684   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689   IFS=$as_save_IFS
6690   test -z "$as_dir" && as_dir=.
6691   for ac_exec_ext in '' $ac_executable_extensions; do
6692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6694     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695     break 2
6696   fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701 fi
6702 fi
6703 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6704 if test -n "$ac_ct_DSYMUTIL"; then
6705   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6706 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6707 else
6708   { $as_echo "$as_me:$LINENO: result: no" >&5
6709 $as_echo "no" >&6; }
6710 fi
6711
6712   if test "x$ac_ct_DSYMUTIL" = x; then
6713     DSYMUTIL=":"
6714   else
6715     case $cross_compiling:$ac_tool_warned in
6716 yes:)
6717 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6719 ac_tool_warned=yes ;;
6720 esac
6721     DSYMUTIL=$ac_ct_DSYMUTIL
6722   fi
6723 else
6724   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6725 fi
6726
6727     if test -n "$ac_tool_prefix"; then
6728   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6729 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6733   $as_echo_n "(cached) " >&6
6734 else
6735   if test -n "$NMEDIT"; then
6736   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741   IFS=$as_save_IFS
6742   test -z "$as_dir" && as_dir=.
6743   for ac_exec_ext in '' $ac_executable_extensions; do
6744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6746     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747     break 2
6748   fi
6749 done
6750 done
6751 IFS=$as_save_IFS
6752
6753 fi
6754 fi
6755 NMEDIT=$ac_cv_prog_NMEDIT
6756 if test -n "$NMEDIT"; then
6757   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6758 $as_echo "$NMEDIT" >&6; }
6759 else
6760   { $as_echo "$as_me:$LINENO: result: no" >&5
6761 $as_echo "no" >&6; }
6762 fi
6763
6764
6765 fi
6766 if test -z "$ac_cv_prog_NMEDIT"; then
6767   ac_ct_NMEDIT=$NMEDIT
6768   # Extract the first word of "nmedit", so it can be a program name with args.
6769 set dummy nmedit; ac_word=$2
6770 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6773   $as_echo_n "(cached) " >&6
6774 else
6775   if test -n "$ac_ct_NMEDIT"; then
6776   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6780 do
6781   IFS=$as_save_IFS
6782   test -z "$as_dir" && as_dir=.
6783   for ac_exec_ext in '' $ac_executable_extensions; do
6784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6786     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787     break 2
6788   fi
6789 done
6790 done
6791 IFS=$as_save_IFS
6792
6793 fi
6794 fi
6795 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6796 if test -n "$ac_ct_NMEDIT"; then
6797   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6798 $as_echo "$ac_ct_NMEDIT" >&6; }
6799 else
6800   { $as_echo "$as_me:$LINENO: result: no" >&5
6801 $as_echo "no" >&6; }
6802 fi
6803
6804   if test "x$ac_ct_NMEDIT" = x; then
6805     NMEDIT=":"
6806   else
6807     case $cross_compiling:$ac_tool_warned in
6808 yes:)
6809 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6811 ac_tool_warned=yes ;;
6812 esac
6813     NMEDIT=$ac_ct_NMEDIT
6814   fi
6815 else
6816   NMEDIT="$ac_cv_prog_NMEDIT"
6817 fi
6818
6819     if test -n "$ac_tool_prefix"; then
6820   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6821 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6822 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if test "${ac_cv_prog_LIPO+set}" = set; then
6825   $as_echo_n "(cached) " >&6
6826 else
6827   if test -n "$LIPO"; then
6828   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833   IFS=$as_save_IFS
6834   test -z "$as_dir" && as_dir=.
6835   for ac_exec_ext in '' $ac_executable_extensions; do
6836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6838     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839     break 2
6840   fi
6841 done
6842 done
6843 IFS=$as_save_IFS
6844
6845 fi
6846 fi
6847 LIPO=$ac_cv_prog_LIPO
6848 if test -n "$LIPO"; then
6849   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6850 $as_echo "$LIPO" >&6; }
6851 else
6852   { $as_echo "$as_me:$LINENO: result: no" >&5
6853 $as_echo "no" >&6; }
6854 fi
6855
6856
6857 fi
6858 if test -z "$ac_cv_prog_LIPO"; then
6859   ac_ct_LIPO=$LIPO
6860   # Extract the first word of "lipo", so it can be a program name with args.
6861 set dummy lipo; ac_word=$2
6862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 $as_echo_n "checking for $ac_word... " >&6; }
6864 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6865   $as_echo_n "(cached) " >&6
6866 else
6867   if test -n "$ac_ct_LIPO"; then
6868   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6869 else
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6872 do
6873   IFS=$as_save_IFS
6874   test -z "$as_dir" && as_dir=.
6875   for ac_exec_ext in '' $ac_executable_extensions; do
6876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6877     ac_cv_prog_ac_ct_LIPO="lipo"
6878     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879     break 2
6880   fi
6881 done
6882 done
6883 IFS=$as_save_IFS
6884
6885 fi
6886 fi
6887 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6888 if test -n "$ac_ct_LIPO"; then
6889   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6890 $as_echo "$ac_ct_LIPO" >&6; }
6891 else
6892   { $as_echo "$as_me:$LINENO: result: no" >&5
6893 $as_echo "no" >&6; }
6894 fi
6895
6896   if test "x$ac_ct_LIPO" = x; then
6897     LIPO=":"
6898   else
6899     case $cross_compiling:$ac_tool_warned in
6900 yes:)
6901 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6903 ac_tool_warned=yes ;;
6904 esac
6905     LIPO=$ac_ct_LIPO
6906   fi
6907 else
6908   LIPO="$ac_cv_prog_LIPO"
6909 fi
6910
6911     if test -n "$ac_tool_prefix"; then
6912   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6913 set dummy ${ac_tool_prefix}otool; ac_word=$2
6914 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6915 $as_echo_n "checking for $ac_word... " >&6; }
6916 if test "${ac_cv_prog_OTOOL+set}" = set; then
6917   $as_echo_n "(cached) " >&6
6918 else
6919   if test -n "$OTOOL"; then
6920   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925   IFS=$as_save_IFS
6926   test -z "$as_dir" && as_dir=.
6927   for ac_exec_ext in '' $ac_executable_extensions; do
6928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6930     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931     break 2
6932   fi
6933 done
6934 done
6935 IFS=$as_save_IFS
6936
6937 fi
6938 fi
6939 OTOOL=$ac_cv_prog_OTOOL
6940 if test -n "$OTOOL"; then
6941   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6942 $as_echo "$OTOOL" >&6; }
6943 else
6944   { $as_echo "$as_me:$LINENO: result: no" >&5
6945 $as_echo "no" >&6; }
6946 fi
6947
6948
6949 fi
6950 if test -z "$ac_cv_prog_OTOOL"; then
6951   ac_ct_OTOOL=$OTOOL
6952   # Extract the first word of "otool", so it can be a program name with args.
6953 set dummy otool; ac_word=$2
6954 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6955 $as_echo_n "checking for $ac_word... " >&6; }
6956 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6957   $as_echo_n "(cached) " >&6
6958 else
6959   if test -n "$ac_ct_OTOOL"; then
6960   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6961 else
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6964 do
6965   IFS=$as_save_IFS
6966   test -z "$as_dir" && as_dir=.
6967   for ac_exec_ext in '' $ac_executable_extensions; do
6968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6969     ac_cv_prog_ac_ct_OTOOL="otool"
6970     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971     break 2
6972   fi
6973 done
6974 done
6975 IFS=$as_save_IFS
6976
6977 fi
6978 fi
6979 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6980 if test -n "$ac_ct_OTOOL"; then
6981   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6982 $as_echo "$ac_ct_OTOOL" >&6; }
6983 else
6984   { $as_echo "$as_me:$LINENO: result: no" >&5
6985 $as_echo "no" >&6; }
6986 fi
6987
6988   if test "x$ac_ct_OTOOL" = x; then
6989     OTOOL=":"
6990   else
6991     case $cross_compiling:$ac_tool_warned in
6992 yes:)
6993 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6995 ac_tool_warned=yes ;;
6996 esac
6997     OTOOL=$ac_ct_OTOOL
6998   fi
6999 else
7000   OTOOL="$ac_cv_prog_OTOOL"
7001 fi
7002
7003     if test -n "$ac_tool_prefix"; then
7004   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7005 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7006 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7009   $as_echo_n "(cached) " >&6
7010 else
7011   if test -n "$OTOOL64"; then
7012   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017   IFS=$as_save_IFS
7018   test -z "$as_dir" && as_dir=.
7019   for ac_exec_ext in '' $ac_executable_extensions; do
7020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7022     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023     break 2
7024   fi
7025 done
7026 done
7027 IFS=$as_save_IFS
7028
7029 fi
7030 fi
7031 OTOOL64=$ac_cv_prog_OTOOL64
7032 if test -n "$OTOOL64"; then
7033   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7034 $as_echo "$OTOOL64" >&6; }
7035 else
7036   { $as_echo "$as_me:$LINENO: result: no" >&5
7037 $as_echo "no" >&6; }
7038 fi
7039
7040
7041 fi
7042 if test -z "$ac_cv_prog_OTOOL64"; then
7043   ac_ct_OTOOL64=$OTOOL64
7044   # Extract the first word of "otool64", so it can be a program name with args.
7045 set dummy otool64; ac_word=$2
7046 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7047 $as_echo_n "checking for $ac_word... " >&6; }
7048 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7049   $as_echo_n "(cached) " >&6
7050 else
7051   if test -n "$ac_ct_OTOOL64"; then
7052   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7053 else
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7056 do
7057   IFS=$as_save_IFS
7058   test -z "$as_dir" && as_dir=.
7059   for ac_exec_ext in '' $ac_executable_extensions; do
7060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061     ac_cv_prog_ac_ct_OTOOL64="otool64"
7062     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063     break 2
7064   fi
7065 done
7066 done
7067 IFS=$as_save_IFS
7068
7069 fi
7070 fi
7071 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7072 if test -n "$ac_ct_OTOOL64"; then
7073   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7074 $as_echo "$ac_ct_OTOOL64" >&6; }
7075 else
7076   { $as_echo "$as_me:$LINENO: result: no" >&5
7077 $as_echo "no" >&6; }
7078 fi
7079
7080   if test "x$ac_ct_OTOOL64" = x; then
7081     OTOOL64=":"
7082   else
7083     case $cross_compiling:$ac_tool_warned in
7084 yes:)
7085 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7087 ac_tool_warned=yes ;;
7088 esac
7089     OTOOL64=$ac_ct_OTOOL64
7090   fi
7091 else
7092   OTOOL64="$ac_cv_prog_OTOOL64"
7093 fi
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7122 $as_echo_n "checking for -single_module linker flag... " >&6; }
7123 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7124   $as_echo_n "(cached) " >&6
7125 else
7126   lt_cv_apple_cc_single_mod=no
7127       if test -z "${LT_MULTI_MODULE}"; then
7128         # By default we will add the -single_module flag. You can override
7129         # by either setting the environment variable LT_MULTI_MODULE
7130         # non-empty at configure time, or by adding -multi_module to the
7131         # link flags.
7132         rm -rf libconftest.dylib*
7133         echo "int foo(void){return 1;}" > conftest.c
7134         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7135 -dynamiclib -Wl,-single_module conftest.c" >&5
7136         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7137           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7138         _lt_result=$?
7139         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7140           lt_cv_apple_cc_single_mod=yes
7141         else
7142           cat conftest.err >&5
7143         fi
7144         rm -rf libconftest.dylib*
7145         rm -f conftest.*
7146       fi
7147 fi
7148 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7149 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7150     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7151 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7152 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7153   $as_echo_n "(cached) " >&6
7154 else
7155   lt_cv_ld_exported_symbols_list=no
7156       save_LDFLAGS=$LDFLAGS
7157       echo "_main" > conftest.sym
7158       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7159       cat >conftest.$ac_ext <<_ACEOF
7160 /* confdefs.h.  */
7161 _ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h.  */
7165
7166 int
7167 main ()
7168 {
7169
7170   ;
7171   return 0;
7172 }
7173 _ACEOF
7174 rm -f conftest.$ac_objext conftest$ac_exeext
7175 if { (ac_try="$ac_link"
7176 case "(($ac_try" in
7177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7178   *) ac_try_echo=$ac_try;;
7179 esac
7180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7181 $as_echo "$ac_try_echo") >&5
7182   (eval "$ac_link") 2>conftest.er1
7183   ac_status=$?
7184   grep -v '^ *+' conftest.er1 >conftest.err
7185   rm -f conftest.er1
7186   cat conftest.err >&5
7187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188   (exit $ac_status); } && {
7189          test -z "$ac_c_werror_flag" ||
7190          test ! -s conftest.err
7191        } && test -s conftest$ac_exeext && {
7192          test "$cross_compiling" = yes ||
7193          $as_test_x conftest$ac_exeext
7194        }; then
7195   lt_cv_ld_exported_symbols_list=yes
7196 else
7197   $as_echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.$ac_ext >&5
7199
7200         lt_cv_ld_exported_symbols_list=no
7201 fi
7202
7203 rm -rf conftest.dSYM
7204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7205       conftest$ac_exeext conftest.$ac_ext
7206         LDFLAGS="$save_LDFLAGS"
7207
7208 fi
7209 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7210 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7211     case $host_os in
7212     rhapsody* | darwin1.[012])
7213       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7214     darwin1.*)
7215       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7216     darwin*) # darwin 5.x on
7217       # if running on 10.5 or later, the deployment target defaults
7218       # to the OS version, if on x86, and 10.4, the deployment
7219       # target defaults to 10.4. Don't you love it?
7220       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7221         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7222           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7223         10.[012]*)
7224           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7225         10.*)
7226           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7227       esac
7228     ;;
7229   esac
7230     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7231       _lt_dar_single_mod='$single_module'
7232     fi
7233     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7234       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7235     else
7236       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7237     fi
7238     if test "$DSYMUTIL" != ":"; then
7239       _lt_dsymutil='~$DSYMUTIL $lib || :'
7240     else
7241       _lt_dsymutil=
7242     fi
7243     ;;
7244   esac
7245
7246
7247 for ac_header in dlfcn.h
7248 do
7249 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7251 $as_echo_n "checking for $ac_header... " >&6; }
7252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7253   $as_echo_n "(cached) " >&6
7254 else
7255   cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h.  */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h.  */
7261 $ac_includes_default
7262
7263 #include <$ac_header>
7264 _ACEOF
7265 rm -f conftest.$ac_objext
7266 if { (ac_try="$ac_compile"
7267 case "(($ac_try" in
7268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269   *) ac_try_echo=$ac_try;;
7270 esac
7271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7272 $as_echo "$ac_try_echo") >&5
7273   (eval "$ac_compile") 2>conftest.er1
7274   ac_status=$?
7275   grep -v '^ *+' conftest.er1 >conftest.err
7276   rm -f conftest.er1
7277   cat conftest.err >&5
7278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279   (exit $ac_status); } && {
7280          test -z "$ac_c_werror_flag" ||
7281          test ! -s conftest.err
7282        } && test -s conftest.$ac_objext; then
7283   eval "$as_ac_Header=yes"
7284 else
7285   $as_echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7287
7288         eval "$as_ac_Header=no"
7289 fi
7290
7291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7292 fi
7293 ac_res=`eval 'as_val=${'$as_ac_Header'}
7294                  $as_echo "$as_val"'`
7295                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7296 $as_echo "$ac_res" >&6; }
7297 as_val=`eval 'as_val=${'$as_ac_Header'}
7298                  $as_echo "$as_val"'`
7299    if test "x$as_val" = x""yes; then
7300   cat >>confdefs.h <<_ACEOF
7301 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7302 _ACEOF
7303
7304 fi
7305
7306 done
7307
7308
7309
7310 # Set options
7311
7312
7313
7314         enable_dlopen=no
7315
7316
7317   enable_win32_dll=no
7318
7319
7320             # Check whether --enable-shared was given.
7321 if test "${enable_shared+set}" = set; then
7322   enableval=$enable_shared; p=${PACKAGE-default}
7323     case $enableval in
7324     yes) enable_shared=yes ;;
7325     no) enable_shared=no ;;
7326     *)
7327       enable_shared=no
7328       # Look at the argument we got.  We use all the common list separators.
7329       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7330       for pkg in $enableval; do
7331         IFS="$lt_save_ifs"
7332         if test "X$pkg" = "X$p"; then
7333           enable_shared=yes
7334         fi
7335       done
7336       IFS="$lt_save_ifs"
7337       ;;
7338     esac
7339 else
7340   enable_shared=yes
7341 fi
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351   # Check whether --enable-static was given.
7352 if test "${enable_static+set}" = set; then
7353   enableval=$enable_static; p=${PACKAGE-default}
7354     case $enableval in
7355     yes) enable_static=yes ;;
7356     no) enable_static=no ;;
7357     *)
7358      enable_static=no
7359       # Look at the argument we got.  We use all the common list separators.
7360       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7361       for pkg in $enableval; do
7362         IFS="$lt_save_ifs"
7363         if test "X$pkg" = "X$p"; then
7364           enable_static=yes
7365         fi
7366       done
7367       IFS="$lt_save_ifs"
7368       ;;
7369     esac
7370 else
7371   enable_static=yes
7372 fi
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383 # Check whether --with-pic was given.
7384 if test "${with_pic+set}" = set; then
7385   withval=$with_pic; pic_mode="$withval"
7386 else
7387   pic_mode=default
7388 fi
7389
7390
7391 test -z "$pic_mode" && pic_mode=default
7392
7393
7394
7395
7396
7397
7398
7399   # Check whether --enable-fast-install was given.
7400 if test "${enable_fast_install+set}" = set; then
7401   enableval=$enable_fast_install; p=${PACKAGE-default}
7402     case $enableval in
7403     yes) enable_fast_install=yes ;;
7404     no) enable_fast_install=no ;;
7405     *)
7406       enable_fast_install=no
7407       # Look at the argument we got.  We use all the common list separators.
7408       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7409       for pkg in $enableval; do
7410         IFS="$lt_save_ifs"
7411         if test "X$pkg" = "X$p"; then
7412           enable_fast_install=yes
7413         fi
7414       done
7415       IFS="$lt_save_ifs"
7416       ;;
7417     esac
7418 else
7419   enable_fast_install=yes
7420 fi
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432 # This can be used to rebuild libtool when needed
7433 LIBTOOL_DEPS="$ltmain"
7434
7435 # Always use our own libtool.
7436 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462 test -z "$LN_S" && LN_S="ln -s"
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477 if test -n "${ZSH_VERSION+set}" ; then
7478    setopt NO_GLOB_SUBST
7479 fi
7480
7481 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7482 $as_echo_n "checking for objdir... " >&6; }
7483 if test "${lt_cv_objdir+set}" = set; then
7484   $as_echo_n "(cached) " >&6
7485 else
7486   rm -f .libs 2>/dev/null
7487 mkdir .libs 2>/dev/null
7488 if test -d .libs; then
7489   lt_cv_objdir=.libs
7490 else
7491   # MS-DOS does not allow filenames that begin with a dot.
7492   lt_cv_objdir=_libs
7493 fi
7494 rmdir .libs 2>/dev/null
7495 fi
7496 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7497 $as_echo "$lt_cv_objdir" >&6; }
7498 objdir=$lt_cv_objdir
7499
7500
7501
7502
7503
7504 cat >>confdefs.h <<_ACEOF
7505 #define LT_OBJDIR "$lt_cv_objdir/"
7506 _ACEOF
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524 case $host_os in
7525 aix3*)
7526   # AIX sometimes has problems with the GCC collect2 program.  For some
7527   # reason, if we set the COLLECT_NAMES environment variable, the problems
7528   # vanish in a puff of smoke.
7529   if test "X${COLLECT_NAMES+set}" != Xset; then
7530     COLLECT_NAMES=
7531     export COLLECT_NAMES
7532   fi
7533   ;;
7534 esac
7535
7536 # Sed substitution that helps us do robust quoting.  It backslashifies
7537 # metacharacters that are still active within double-quoted strings.
7538 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7539
7540 # Same as above, but do not quote variable references.
7541 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7542
7543 # Sed substitution to delay expansion of an escaped shell variable in a
7544 # double_quote_subst'ed string.
7545 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7546
7547 # Sed substitution to delay expansion of an escaped single quote.
7548 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7549
7550 # Sed substitution to avoid accidental globbing in evaled expressions
7551 no_glob_subst='s/\*/\\\*/g'
7552
7553 # Global variables:
7554 ofile=libtool
7555 can_build_shared=yes
7556
7557 # All known linkers require a `.a' archive for static linking (except MSVC,
7558 # which needs '.lib').
7559 libext=a
7560
7561 with_gnu_ld="$lt_cv_prog_gnu_ld"
7562
7563 old_CC="$CC"
7564 old_CFLAGS="$CFLAGS"
7565
7566 # Set sane defaults for various variables
7567 test -z "$CC" && CC=cc
7568 test -z "$LTCC" && LTCC=$CC
7569 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7570 test -z "$LD" && LD=ld
7571 test -z "$ac_objext" && ac_objext=o
7572
7573 for cc_temp in $compiler""; do
7574   case $cc_temp in
7575     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7576     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7577     \-*) ;;
7578     *) break;;
7579   esac
7580 done
7581 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7582
7583
7584 # Only perform the check for file, if the check method requires it
7585 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7586 case $deplibs_check_method in
7587 file_magic*)
7588   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7589     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7590 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7591 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7592   $as_echo_n "(cached) " >&6
7593 else
7594   case $MAGIC_CMD in
7595 [\\/*] |  ?:[\\/]*)
7596   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7597   ;;
7598 *)
7599   lt_save_MAGIC_CMD="$MAGIC_CMD"
7600   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7601   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7602   for ac_dir in $ac_dummy; do
7603     IFS="$lt_save_ifs"
7604     test -z "$ac_dir" && ac_dir=.
7605     if test -f $ac_dir/${ac_tool_prefix}file; then
7606       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7607       if test -n "$file_magic_test_file"; then
7608         case $deplibs_check_method in
7609         "file_magic "*)
7610           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7611           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7612           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7613             $EGREP "$file_magic_regex" > /dev/null; then
7614             :
7615           else
7616             cat <<_LT_EOF 1>&2
7617
7618 *** Warning: the command libtool uses to detect shared libraries,
7619 *** $file_magic_cmd, produces output that libtool cannot recognize.
7620 *** The result is that libtool may fail to recognize shared libraries
7621 *** as such.  This will affect the creation of libtool libraries that
7622 *** depend on shared libraries, but programs linked with such libtool
7623 *** libraries will work regardless of this problem.  Nevertheless, you
7624 *** may want to report the problem to your system manager and/or to
7625 *** bug-libtool@gnu.org
7626
7627 _LT_EOF
7628           fi ;;
7629         esac
7630       fi
7631       break
7632     fi
7633   done
7634   IFS="$lt_save_ifs"
7635   MAGIC_CMD="$lt_save_MAGIC_CMD"
7636   ;;
7637 esac
7638 fi
7639
7640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7641 if test -n "$MAGIC_CMD"; then
7642   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7643 $as_echo "$MAGIC_CMD" >&6; }
7644 else
7645   { $as_echo "$as_me:$LINENO: result: no" >&5
7646 $as_echo "no" >&6; }
7647 fi
7648
7649
7650
7651
7652
7653 if test -z "$lt_cv_path_MAGIC_CMD"; then
7654   if test -n "$ac_tool_prefix"; then
7655     { $as_echo "$as_me:$LINENO: checking for file" >&5
7656 $as_echo_n "checking for file... " >&6; }
7657 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7658   $as_echo_n "(cached) " >&6
7659 else
7660   case $MAGIC_CMD in
7661 [\\/*] |  ?:[\\/]*)
7662   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7663   ;;
7664 *)
7665   lt_save_MAGIC_CMD="$MAGIC_CMD"
7666   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7667   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7668   for ac_dir in $ac_dummy; do
7669     IFS="$lt_save_ifs"
7670     test -z "$ac_dir" && ac_dir=.
7671     if test -f $ac_dir/file; then
7672       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7673       if test -n "$file_magic_test_file"; then
7674         case $deplibs_check_method in
7675         "file_magic "*)
7676           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7677           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7678           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7679             $EGREP "$file_magic_regex" > /dev/null; then
7680             :
7681           else
7682             cat <<_LT_EOF 1>&2
7683
7684 *** Warning: the command libtool uses to detect shared libraries,
7685 *** $file_magic_cmd, produces output that libtool cannot recognize.
7686 *** The result is that libtool may fail to recognize shared libraries
7687 *** as such.  This will affect the creation of libtool libraries that
7688 *** depend on shared libraries, but programs linked with such libtool
7689 *** libraries will work regardless of this problem.  Nevertheless, you
7690 *** may want to report the problem to your system manager and/or to
7691 *** bug-libtool@gnu.org
7692
7693 _LT_EOF
7694           fi ;;
7695         esac
7696       fi
7697       break
7698     fi
7699   done
7700   IFS="$lt_save_ifs"
7701   MAGIC_CMD="$lt_save_MAGIC_CMD"
7702   ;;
7703 esac
7704 fi
7705
7706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7707 if test -n "$MAGIC_CMD"; then
7708   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7709 $as_echo "$MAGIC_CMD" >&6; }
7710 else
7711   { $as_echo "$as_me:$LINENO: result: no" >&5
7712 $as_echo "no" >&6; }
7713 fi
7714
7715
7716   else
7717     MAGIC_CMD=:
7718   fi
7719 fi
7720
7721   fi
7722   ;;
7723 esac
7724
7725 # Use C for the default configuration in the libtool script
7726
7727 lt_save_CC="$CC"
7728 ac_ext=c
7729 ac_cpp='$CPP $CPPFLAGS'
7730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7733
7734
7735 # Source file extension for C test sources.
7736 ac_ext=c
7737
7738 # Object file extension for compiled C test sources.
7739 objext=o
7740 objext=$objext
7741
7742 # Code to be used in simple compile tests
7743 lt_simple_compile_test_code="int some_variable = 0;"
7744
7745 # Code to be used in simple link tests
7746 lt_simple_link_test_code='int main(){return(0);}'
7747
7748
7749
7750
7751
7752
7753
7754 # If no C compiler was specified, use CC.
7755 LTCC=${LTCC-"$CC"}
7756
7757 # If no C compiler flags were specified, use CFLAGS.
7758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7759
7760 # Allow CC to be a program name with arguments.
7761 compiler=$CC
7762
7763 # Save the default compiler, since it gets overwritten when the other
7764 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7765 compiler_DEFAULT=$CC
7766
7767 # save warnings/boilerplate of simple test code
7768 ac_outfile=conftest.$ac_objext
7769 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7770 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7771 _lt_compiler_boilerplate=`cat conftest.err`
7772 $RM conftest*
7773
7774 ac_outfile=conftest.$ac_objext
7775 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7776 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7777 _lt_linker_boilerplate=`cat conftest.err`
7778 $RM -r conftest*
7779
7780
7781 ## CAVEAT EMPTOR:
7782 ## There is no encapsulation within the following macros, do not change
7783 ## the running order or otherwise move them around unless you know exactly
7784 ## what you are doing...
7785 if test -n "$compiler"; then
7786
7787 lt_prog_compiler_no_builtin_flag=
7788
7789 if test "$GCC" = yes; then
7790   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7791
7792   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7793 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7794 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7795   $as_echo_n "(cached) " >&6
7796 else
7797   lt_cv_prog_compiler_rtti_exceptions=no
7798    ac_outfile=conftest.$ac_objext
7799    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7800    lt_compiler_flag="-fno-rtti -fno-exceptions"
7801    # Insert the option either (1) after the last *FLAGS variable, or
7802    # (2) before a word containing "conftest.", or (3) at the end.
7803    # Note that $ac_compile itself does not contain backslashes and begins
7804    # with a dollar sign (not a hyphen), so the echo should work correctly.
7805    # The option is referenced via a variable to avoid confusing sed.
7806    lt_compile=`echo "$ac_compile" | $SED \
7807    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7808    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7809    -e 's:$: $lt_compiler_flag:'`
7810    (eval echo "\"\$as_me:7810: $lt_compile\"" >&5)
7811    (eval "$lt_compile" 2>conftest.err)
7812    ac_status=$?
7813    cat conftest.err >&5
7814    echo "$as_me:7814: \$? = $ac_status" >&5
7815    if (exit $ac_status) && test -s "$ac_outfile"; then
7816      # The compiler can only warn and ignore the option if not recognized
7817      # So say no if there are warnings other than the usual output.
7818      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7819      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7820      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7821        lt_cv_prog_compiler_rtti_exceptions=yes
7822      fi
7823    fi
7824    $RM conftest*
7825
7826 fi
7827 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7828 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7829
7830 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7831     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7832 else
7833     :
7834 fi
7835
7836 fi
7837
7838
7839
7840
7841
7842
7843   lt_prog_compiler_wl=
7844 lt_prog_compiler_pic=
7845 lt_prog_compiler_static=
7846
7847 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7848 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7849
7850   if test "$GCC" = yes; then
7851     lt_prog_compiler_wl='-Wl,'
7852     lt_prog_compiler_static='-static'
7853
7854     case $host_os in
7855       aix*)
7856       # All AIX code is PIC.
7857       if test "$host_cpu" = ia64; then
7858         # AIX 5 now supports IA64 processor
7859         lt_prog_compiler_static='-Bstatic'
7860       fi
7861       ;;
7862
7863     amigaos*)
7864       case $host_cpu in
7865       powerpc)
7866             # see comment about AmigaOS4 .so support
7867             lt_prog_compiler_pic='-fPIC'
7868         ;;
7869       m68k)
7870             # FIXME: we need at least 68020 code to build shared libraries, but
7871             # adding the `-m68020' flag to GCC prevents building anything better,
7872             # like `-m68040'.
7873             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7874         ;;
7875       esac
7876       ;;
7877
7878     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7879       # PIC is the default for these OSes.
7880       ;;
7881
7882     mingw* | cygwin* | pw32* | os2* | cegcc*)
7883       # This hack is so that the source file can tell whether it is being
7884       # built for inclusion in a dll (and should export symbols for example).
7885       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7886       # (--disable-auto-import) libraries
7887       lt_prog_compiler_pic='-DDLL_EXPORT'
7888       ;;
7889
7890     darwin* | rhapsody*)
7891       # PIC is the default on this platform
7892       # Common symbols not allowed in MH_DYLIB files
7893       lt_prog_compiler_pic='-fno-common'
7894       ;;
7895
7896     hpux*)
7897       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7898       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7899       # sets the default TLS model and affects inlining.
7900       case $host_cpu in
7901       hppa*64*)
7902         # +Z the default
7903         ;;
7904       *)
7905         lt_prog_compiler_pic='-fPIC'
7906         ;;
7907       esac
7908       ;;
7909
7910     interix[3-9]*)
7911       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7912       # Instead, we relocate shared libraries at runtime.
7913       ;;
7914
7915     msdosdjgpp*)
7916       # Just because we use GCC doesn't mean we suddenly get shared libraries
7917       # on systems that don't support them.
7918       lt_prog_compiler_can_build_shared=no
7919       enable_shared=no
7920       ;;
7921
7922     *nto* | *qnx*)
7923       # QNX uses GNU C++, but need to define -shared option too, otherwise
7924       # it will coredump.
7925       lt_prog_compiler_pic='-fPIC -shared'
7926       ;;
7927
7928     sysv4*MP*)
7929       if test -d /usr/nec; then
7930         lt_prog_compiler_pic=-Kconform_pic
7931       fi
7932       ;;
7933
7934     *)
7935       lt_prog_compiler_pic='-fPIC'
7936       ;;
7937     esac
7938   else
7939     # PORTME Check for flag to pass linker flags through the system compiler.
7940     case $host_os in
7941     aix*)
7942       lt_prog_compiler_wl='-Wl,'
7943       if test "$host_cpu" = ia64; then
7944         # AIX 5 now supports IA64 processor
7945         lt_prog_compiler_static='-Bstatic'
7946       else
7947         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7948       fi
7949       ;;
7950
7951     mingw* | cygwin* | pw32* | os2* | cegcc*)
7952       # This hack is so that the source file can tell whether it is being
7953       # built for inclusion in a dll (and should export symbols for example).
7954       lt_prog_compiler_pic='-DDLL_EXPORT'
7955       ;;
7956
7957     hpux9* | hpux10* | hpux11*)
7958       lt_prog_compiler_wl='-Wl,'
7959       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7960       # not for PA HP-UX.
7961       case $host_cpu in
7962       hppa*64*|ia64*)
7963         # +Z the default
7964         ;;
7965       *)
7966         lt_prog_compiler_pic='+Z'
7967         ;;
7968       esac
7969       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7970       lt_prog_compiler_static='${wl}-a ${wl}archive'
7971       ;;
7972
7973     irix5* | irix6* | nonstopux*)
7974       lt_prog_compiler_wl='-Wl,'
7975       # PIC (with -KPIC) is the default.
7976       lt_prog_compiler_static='-non_shared'
7977       ;;
7978
7979     linux* | k*bsd*-gnu)
7980       case $cc_basename in
7981       # old Intel for x86_64 which still supported -KPIC.
7982       ecc*)
7983         lt_prog_compiler_wl='-Wl,'
7984         lt_prog_compiler_pic='-KPIC'
7985         lt_prog_compiler_static='-static'
7986         ;;
7987       # icc used to be incompatible with GCC.
7988       # ICC 10 doesn't accept -KPIC any more.
7989       icc* | ifort*)
7990         lt_prog_compiler_wl='-Wl,'
7991         lt_prog_compiler_pic='-fPIC'
7992         lt_prog_compiler_static='-static'
7993         ;;
7994       # Lahey Fortran 8.1.
7995       lf95*)
7996         lt_prog_compiler_wl='-Wl,'
7997         lt_prog_compiler_pic='--shared'
7998         lt_prog_compiler_static='--static'
7999         ;;
8000       pgcc* | pgf77* | pgf90* | pgf95*)
8001         # Portland Group compilers (*not* the Pentium gcc compiler,
8002         # which looks to be a dead project)
8003         lt_prog_compiler_wl='-Wl,'
8004         lt_prog_compiler_pic='-fpic'
8005         lt_prog_compiler_static='-Bstatic'
8006         ;;
8007       ccc*)
8008         lt_prog_compiler_wl='-Wl,'
8009         # All Alpha code is PIC.
8010         lt_prog_compiler_static='-non_shared'
8011         ;;
8012       xl*)
8013         # IBM XL C 8.0/Fortran 10.1 on PPC
8014         lt_prog_compiler_wl='-Wl,'
8015         lt_prog_compiler_pic='-qpic'
8016         lt_prog_compiler_static='-qstaticlink'
8017         ;;
8018       *)
8019         case `$CC -V 2>&1 | sed 5q` in
8020         *Sun\ C*)
8021           # Sun C 5.9
8022           lt_prog_compiler_pic='-KPIC'
8023           lt_prog_compiler_static='-Bstatic'
8024           lt_prog_compiler_wl='-Wl,'
8025           ;;
8026         *Sun\ F*)
8027           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8028           lt_prog_compiler_pic='-KPIC'
8029           lt_prog_compiler_static='-Bstatic'
8030           lt_prog_compiler_wl=''
8031           ;;
8032         esac
8033         ;;
8034       esac
8035       ;;
8036
8037     newsos6)
8038       lt_prog_compiler_pic='-KPIC'
8039       lt_prog_compiler_static='-Bstatic'
8040       ;;
8041
8042     *nto* | *qnx*)
8043       # QNX uses GNU C++, but need to define -shared option too, otherwise
8044       # it will coredump.
8045       lt_prog_compiler_pic='-fPIC -shared'
8046       ;;
8047
8048     osf3* | osf4* | osf5*)
8049       lt_prog_compiler_wl='-Wl,'
8050       # All OSF/1 code is PIC.
8051       lt_prog_compiler_static='-non_shared'
8052       ;;
8053
8054     rdos*)
8055       lt_prog_compiler_static='-non_shared'
8056       ;;
8057
8058     solaris*)
8059       lt_prog_compiler_pic='-KPIC'
8060       lt_prog_compiler_static='-Bstatic'
8061       case $cc_basename in
8062       f77* | f90* | f95*)
8063         lt_prog_compiler_wl='-Qoption ld ';;
8064       *)
8065         lt_prog_compiler_wl='-Wl,';;
8066       esac
8067       ;;
8068
8069     sunos4*)
8070       lt_prog_compiler_wl='-Qoption ld '
8071       lt_prog_compiler_pic='-PIC'
8072       lt_prog_compiler_static='-Bstatic'
8073       ;;
8074
8075     sysv4 | sysv4.2uw2* | sysv4.3*)
8076       lt_prog_compiler_wl='-Wl,'
8077       lt_prog_compiler_pic='-KPIC'
8078       lt_prog_compiler_static='-Bstatic'
8079       ;;
8080
8081     sysv4*MP*)
8082       if test -d /usr/nec ;then
8083         lt_prog_compiler_pic='-Kconform_pic'
8084         lt_prog_compiler_static='-Bstatic'
8085       fi
8086       ;;
8087
8088     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8089       lt_prog_compiler_wl='-Wl,'
8090       lt_prog_compiler_pic='-KPIC'
8091       lt_prog_compiler_static='-Bstatic'
8092       ;;
8093
8094     unicos*)
8095       lt_prog_compiler_wl='-Wl,'
8096       lt_prog_compiler_can_build_shared=no
8097       ;;
8098
8099     uts4*)
8100       lt_prog_compiler_pic='-pic'
8101       lt_prog_compiler_static='-Bstatic'
8102       ;;
8103
8104     *)
8105       lt_prog_compiler_can_build_shared=no
8106       ;;
8107     esac
8108   fi
8109
8110 case $host_os in
8111   # For platforms which do not support PIC, -DPIC is meaningless:
8112   *djgpp*)
8113     lt_prog_compiler_pic=
8114     ;;
8115   *)
8116     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8117     ;;
8118 esac
8119 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8120 $as_echo "$lt_prog_compiler_pic" >&6; }
8121
8122
8123
8124
8125
8126
8127 #
8128 # Check to make sure the PIC flag actually works.
8129 #
8130 if test -n "$lt_prog_compiler_pic"; then
8131   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8132 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8133 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8134   $as_echo_n "(cached) " >&6
8135 else
8136   lt_cv_prog_compiler_pic_works=no
8137    ac_outfile=conftest.$ac_objext
8138    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8139    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8140    # Insert the option either (1) after the last *FLAGS variable, or
8141    # (2) before a word containing "conftest.", or (3) at the end.
8142    # Note that $ac_compile itself does not contain backslashes and begins
8143    # with a dollar sign (not a hyphen), so the echo should work correctly.
8144    # The option is referenced via a variable to avoid confusing sed.
8145    lt_compile=`echo "$ac_compile" | $SED \
8146    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8147    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8148    -e 's:$: $lt_compiler_flag:'`
8149    (eval echo "\"\$as_me:8149: $lt_compile\"" >&5)
8150    (eval "$lt_compile" 2>conftest.err)
8151    ac_status=$?
8152    cat conftest.err >&5
8153    echo "$as_me:8153: \$? = $ac_status" >&5
8154    if (exit $ac_status) && test -s "$ac_outfile"; then
8155      # The compiler can only warn and ignore the option if not recognized
8156      # So say no if there are warnings other than the usual output.
8157      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8158      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8159      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8160        lt_cv_prog_compiler_pic_works=yes
8161      fi
8162    fi
8163    $RM conftest*
8164
8165 fi
8166 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8167 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8168
8169 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8170     case $lt_prog_compiler_pic in
8171      "" | " "*) ;;
8172      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8173      esac
8174 else
8175     lt_prog_compiler_pic=
8176      lt_prog_compiler_can_build_shared=no
8177 fi
8178
8179 fi
8180
8181
8182
8183
8184
8185
8186 #
8187 # Check to make sure the static flag actually works.
8188 #
8189 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8190 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8191 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8192 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8193   $as_echo_n "(cached) " >&6
8194 else
8195   lt_cv_prog_compiler_static_works=no
8196    save_LDFLAGS="$LDFLAGS"
8197    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8198    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8199    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8200      # The linker can only warn and ignore the option if not recognized
8201      # So say no if there are warnings
8202      if test -s conftest.err; then
8203        # Append any errors to the config.log.
8204        cat conftest.err 1>&5
8205        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8206        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8207        if diff conftest.exp conftest.er2 >/dev/null; then
8208          lt_cv_prog_compiler_static_works=yes
8209        fi
8210      else
8211        lt_cv_prog_compiler_static_works=yes
8212      fi
8213    fi
8214    $RM -r conftest*
8215    LDFLAGS="$save_LDFLAGS"
8216
8217 fi
8218 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8219 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8220
8221 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8222     :
8223 else
8224     lt_prog_compiler_static=
8225 fi
8226
8227
8228
8229
8230
8231
8232
8233   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8234 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8235 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8236   $as_echo_n "(cached) " >&6
8237 else
8238   lt_cv_prog_compiler_c_o=no
8239    $RM -r conftest 2>/dev/null
8240    mkdir conftest
8241    cd conftest
8242    mkdir out
8243    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8244
8245    lt_compiler_flag="-o out/conftest2.$ac_objext"
8246    # Insert the option either (1) after the last *FLAGS variable, or
8247    # (2) before a word containing "conftest.", or (3) at the end.
8248    # Note that $ac_compile itself does not contain backslashes and begins
8249    # with a dollar sign (not a hyphen), so the echo should work correctly.
8250    lt_compile=`echo "$ac_compile" | $SED \
8251    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8252    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8253    -e 's:$: $lt_compiler_flag:'`
8254    (eval echo "\"\$as_me:8254: $lt_compile\"" >&5)
8255    (eval "$lt_compile" 2>out/conftest.err)
8256    ac_status=$?
8257    cat out/conftest.err >&5
8258    echo "$as_me:8258: \$? = $ac_status" >&5
8259    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8260    then
8261      # The compiler can only warn and ignore the option if not recognized
8262      # So say no if there are warnings
8263      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8264      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8265      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8266        lt_cv_prog_compiler_c_o=yes
8267      fi
8268    fi
8269    chmod u+w . 2>&5
8270    $RM conftest*
8271    # SGI C++ compiler will create directory out/ii_files/ for
8272    # template instantiation
8273    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8274    $RM out/* && rmdir out
8275    cd ..
8276    $RM -r conftest
8277    $RM conftest*
8278
8279 fi
8280 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8281 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8282
8283
8284
8285
8286
8287
8288   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8289 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8290 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8291   $as_echo_n "(cached) " >&6
8292 else
8293   lt_cv_prog_compiler_c_o=no
8294    $RM -r conftest 2>/dev/null
8295    mkdir conftest
8296    cd conftest
8297    mkdir out
8298    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8299
8300    lt_compiler_flag="-o out/conftest2.$ac_objext"
8301    # Insert the option either (1) after the last *FLAGS variable, or
8302    # (2) before a word containing "conftest.", or (3) at the end.
8303    # Note that $ac_compile itself does not contain backslashes and begins
8304    # with a dollar sign (not a hyphen), so the echo should work correctly.
8305    lt_compile=`echo "$ac_compile" | $SED \
8306    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8307    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8308    -e 's:$: $lt_compiler_flag:'`
8309    (eval echo "\"\$as_me:8309: $lt_compile\"" >&5)
8310    (eval "$lt_compile" 2>out/conftest.err)
8311    ac_status=$?
8312    cat out/conftest.err >&5
8313    echo "$as_me:8313: \$? = $ac_status" >&5
8314    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8315    then
8316      # The compiler can only warn and ignore the option if not recognized
8317      # So say no if there are warnings
8318      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8319      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8320      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8321        lt_cv_prog_compiler_c_o=yes
8322      fi
8323    fi
8324    chmod u+w . 2>&5
8325    $RM conftest*
8326    # SGI C++ compiler will create directory out/ii_files/ for
8327    # template instantiation
8328    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8329    $RM out/* && rmdir out
8330    cd ..
8331    $RM -r conftest
8332    $RM conftest*
8333
8334 fi
8335 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8336 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8337
8338
8339
8340
8341 hard_links="nottested"
8342 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8343   # do not overwrite the value of need_locks provided by the user
8344   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8345 $as_echo_n "checking if we can lock with hard links... " >&6; }
8346   hard_links=yes
8347   $RM conftest*
8348   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8349   touch conftest.a
8350   ln conftest.a conftest.b 2>&5 || hard_links=no
8351   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8352   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8353 $as_echo "$hard_links" >&6; }
8354   if test "$hard_links" = no; then
8355     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8356 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8357     need_locks=warn
8358   fi
8359 else
8360   need_locks=no
8361 fi
8362
8363
8364
8365
8366
8367
8368   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8369 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8370
8371   runpath_var=
8372   allow_undefined_flag=
8373   always_export_symbols=no
8374   archive_cmds=
8375   archive_expsym_cmds=
8376   compiler_needs_object=no
8377   enable_shared_with_static_runtimes=no
8378   export_dynamic_flag_spec=
8379   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8380   hardcode_automatic=no
8381   hardcode_direct=no
8382   hardcode_direct_absolute=no
8383   hardcode_libdir_flag_spec=
8384   hardcode_libdir_flag_spec_ld=
8385   hardcode_libdir_separator=
8386   hardcode_minus_L=no
8387   hardcode_shlibpath_var=unsupported
8388   inherit_rpath=no
8389   link_all_deplibs=unknown
8390   module_cmds=
8391   module_expsym_cmds=
8392   old_archive_from_new_cmds=
8393   old_archive_from_expsyms_cmds=
8394   thread_safe_flag_spec=
8395   whole_archive_flag_spec=
8396   # include_expsyms should be a list of space-separated symbols to be *always*
8397   # included in the symbol list
8398   include_expsyms=
8399   # exclude_expsyms can be an extended regexp of symbols to exclude
8400   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8401   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8402   # as well as any symbol that contains `d'.
8403   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8404   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8405   # platforms (ab)use it in PIC code, but their linkers get confused if
8406   # the symbol is explicitly referenced.  Since portable code cannot
8407   # rely on this symbol name, it's probably fine to never include it in
8408   # preloaded symbol tables.
8409   # Exclude shared library initialization/finalization symbols.
8410   extract_expsyms_cmds=
8411
8412   case $host_os in
8413   cygwin* | mingw* | pw32* | cegcc*)
8414     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8415     # When not using gcc, we currently assume that we are using
8416     # Microsoft Visual C++.
8417     if test "$GCC" != yes; then
8418       with_gnu_ld=no
8419     fi
8420     ;;
8421   interix*)
8422     # we just hope/assume this is gcc and not c89 (= MSVC++)
8423     with_gnu_ld=yes
8424     ;;
8425   openbsd*)
8426     with_gnu_ld=no
8427     ;;
8428   esac
8429
8430   ld_shlibs=yes
8431   if test "$with_gnu_ld" = yes; then
8432     # If archive_cmds runs LD, not CC, wlarc should be empty
8433     wlarc='${wl}'
8434
8435     # Set some defaults for GNU ld with shared library support. These
8436     # are reset later if shared libraries are not supported. Putting them
8437     # here allows them to be overridden if necessary.
8438     runpath_var=LD_RUN_PATH
8439     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8440     export_dynamic_flag_spec='${wl}--export-dynamic'
8441     # ancient GNU ld didn't support --whole-archive et. al.
8442     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8443       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8444     else
8445       whole_archive_flag_spec=
8446     fi
8447     supports_anon_versioning=no
8448     case `$LD -v 2>&1` in
8449       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8450       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8451       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8452       *\ 2.11.*) ;; # other 2.11 versions
8453       *) supports_anon_versioning=yes ;;
8454     esac
8455
8456     # See if GNU ld supports shared libraries.
8457     case $host_os in
8458     aix[3-9]*)
8459       # On AIX/PPC, the GNU linker is very broken
8460       if test "$host_cpu" != ia64; then
8461         ld_shlibs=no
8462         cat <<_LT_EOF 1>&2
8463
8464 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8465 *** to be unable to reliably create shared libraries on AIX.
8466 *** Therefore, libtool is disabling shared libraries support.  If you
8467 *** really care for shared libraries, you may want to modify your PATH
8468 *** so that a non-GNU linker is found, and then restart.
8469
8470 _LT_EOF
8471       fi
8472       ;;
8473
8474     amigaos*)
8475       case $host_cpu in
8476       powerpc)
8477             # see comment about AmigaOS4 .so support
8478             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8479             archive_expsym_cmds=''
8480         ;;
8481       m68k)
8482             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)'
8483             hardcode_libdir_flag_spec='-L$libdir'
8484             hardcode_minus_L=yes
8485         ;;
8486       esac
8487       ;;
8488
8489     beos*)
8490       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8491         allow_undefined_flag=unsupported
8492         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8493         # support --undefined.  This deserves some investigation.  FIXME
8494         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8495       else
8496         ld_shlibs=no
8497       fi
8498       ;;
8499
8500     cygwin* | mingw* | pw32* | cegcc*)
8501       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8502       # as there is no search path for DLLs.
8503       hardcode_libdir_flag_spec='-L$libdir'
8504       allow_undefined_flag=unsupported
8505       always_export_symbols=no
8506       enable_shared_with_static_runtimes=yes
8507       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8508
8509       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8510         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8511         # If the export-symbols file already is a .def file (1st line
8512         # is EXPORTS), use it as is; otherwise, prepend...
8513         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8514           cp $export_symbols $output_objdir/$soname.def;
8515         else
8516           echo EXPORTS > $output_objdir/$soname.def;
8517           cat $export_symbols >> $output_objdir/$soname.def;
8518         fi~
8519         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8520       else
8521         ld_shlibs=no
8522       fi
8523       ;;
8524
8525     interix[3-9]*)
8526       hardcode_direct=no
8527       hardcode_shlibpath_var=no
8528       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8529       export_dynamic_flag_spec='${wl}-E'
8530       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8531       # Instead, shared libraries are loaded at an image base (0x10000000 by
8532       # default) and relocated if they conflict, which is a slow very memory
8533       # consuming and fragmenting process.  To avoid this, we pick a random,
8534       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8535       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8536       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8537       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'
8538       ;;
8539
8540     gnu* | linux* | tpf* | k*bsd*-gnu)
8541       tmp_diet=no
8542       if test "$host_os" = linux-dietlibc; then
8543         case $cc_basename in
8544           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8545         esac
8546       fi
8547       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8548          && test "$tmp_diet" = no
8549       then
8550         tmp_addflag=
8551         tmp_sharedflag='-shared'
8552         case $cc_basename,$host_cpu in
8553         pgcc*)                          # Portland Group C compiler
8554           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'
8555           tmp_addflag=' $pic_flag'
8556           ;;
8557         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8558           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'
8559           tmp_addflag=' $pic_flag -Mnomain' ;;
8560         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8561           tmp_addflag=' -i_dynamic' ;;
8562         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8563           tmp_addflag=' -i_dynamic -nofor_main' ;;
8564         ifc* | ifort*)                  # Intel Fortran compiler
8565           tmp_addflag=' -nofor_main' ;;
8566         lf95*)                          # Lahey Fortran 8.1
8567           whole_archive_flag_spec=
8568           tmp_sharedflag='--shared' ;;
8569         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8570           tmp_sharedflag='-qmkshrobj'
8571           tmp_addflag= ;;
8572         esac
8573         case `$CC -V 2>&1 | sed 5q` in
8574         *Sun\ C*)                       # Sun C 5.9
8575           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8576           compiler_needs_object=yes
8577           tmp_sharedflag='-G' ;;
8578         *Sun\ F*)                       # Sun Fortran 8.3
8579           tmp_sharedflag='-G' ;;
8580         esac
8581         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8582
8583         if test "x$supports_anon_versioning" = xyes; then
8584           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8585             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8586             echo "local: *; };" >> $output_objdir/$libname.ver~
8587             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8588         fi
8589
8590         case $cc_basename in
8591         xlf*)
8592           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8593           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8594           hardcode_libdir_flag_spec=
8595           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8596           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8597           if test "x$supports_anon_versioning" = xyes; then
8598             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8599               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8600               echo "local: *; };" >> $output_objdir/$libname.ver~
8601               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8602           fi
8603           ;;
8604         esac
8605       else
8606         ld_shlibs=no
8607       fi
8608       ;;
8609
8610     netbsd* | netbsdelf*-gnu)
8611       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8612         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8613         wlarc=
8614       else
8615         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8617       fi
8618       ;;
8619
8620     solaris*)
8621       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8622         ld_shlibs=no
8623         cat <<_LT_EOF 1>&2
8624
8625 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8626 *** create shared libraries on Solaris systems.  Therefore, libtool
8627 *** is disabling shared libraries support.  We urge you to upgrade GNU
8628 *** binutils to release 2.9.1 or newer.  Another option is to modify
8629 *** your PATH or compiler configuration so that the native linker is
8630 *** used, and then restart.
8631
8632 _LT_EOF
8633       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8634         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8635         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8636       else
8637         ld_shlibs=no
8638       fi
8639       ;;
8640
8641     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8642       case `$LD -v 2>&1` in
8643         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8644         ld_shlibs=no
8645         cat <<_LT_EOF 1>&2
8646
8647 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8648 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8649 *** is disabling shared libraries support.  We urge you to upgrade GNU
8650 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8651 *** your PATH or compiler configuration so that the native linker is
8652 *** used, and then restart.
8653
8654 _LT_EOF
8655         ;;
8656         *)
8657           # For security reasons, it is highly recommended that you always
8658           # use absolute paths for naming shared libraries, and exclude the
8659           # DT_RUNPATH tag from executables and libraries.  But doing so
8660           # requires that you compile everything twice, which is a pain.
8661           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8662             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8663             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8664             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8665           else
8666             ld_shlibs=no
8667           fi
8668         ;;
8669       esac
8670       ;;
8671
8672     sunos4*)
8673       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8674       wlarc=
8675       hardcode_direct=yes
8676       hardcode_shlibpath_var=no
8677       ;;
8678
8679     *)
8680       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8681         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8682         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8683       else
8684         ld_shlibs=no
8685       fi
8686       ;;
8687     esac
8688
8689     if test "$ld_shlibs" = no; then
8690       runpath_var=
8691       hardcode_libdir_flag_spec=
8692       export_dynamic_flag_spec=
8693       whole_archive_flag_spec=
8694     fi
8695   else
8696     # PORTME fill in a description of your system's linker (not GNU ld)
8697     case $host_os in
8698     aix3*)
8699       allow_undefined_flag=unsupported
8700       always_export_symbols=yes
8701       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'
8702       # Note: this linker hardcodes the directories in LIBPATH if there
8703       # are no directories specified by -L.
8704       hardcode_minus_L=yes
8705       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8706         # Neither direct hardcoding nor static linking is supported with a
8707         # broken collect2.
8708         hardcode_direct=unsupported
8709       fi
8710       ;;
8711
8712     aix[4-9]*)
8713       if test "$host_cpu" = ia64; then
8714         # On IA64, the linker does run time linking by default, so we don't
8715         # have to do anything special.
8716         aix_use_runtimelinking=no
8717         exp_sym_flag='-Bexport'
8718         no_entry_flag=""
8719       else
8720         # If we're using GNU nm, then we don't want the "-C" option.
8721         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8722         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8723           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'
8724         else
8725           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'
8726         fi
8727         aix_use_runtimelinking=no
8728
8729         # Test if we are trying to use run time linking or normal
8730         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8731         # need to do runtime linking.
8732         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8733           for ld_flag in $LDFLAGS; do
8734           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8735             aix_use_runtimelinking=yes
8736             break
8737           fi
8738           done
8739           ;;
8740         esac
8741
8742         exp_sym_flag='-bexport'
8743         no_entry_flag='-bnoentry'
8744       fi
8745
8746       # When large executables or shared objects are built, AIX ld can
8747       # have problems creating the table of contents.  If linking a library
8748       # or program results in "error TOC overflow" add -mminimal-toc to
8749       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8750       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8751
8752       archive_cmds=''
8753       hardcode_direct=yes
8754       hardcode_direct_absolute=yes
8755       hardcode_libdir_separator=':'
8756       link_all_deplibs=yes
8757       file_list_spec='${wl}-f,'
8758
8759       if test "$GCC" = yes; then
8760         case $host_os in aix4.[012]|aix4.[012].*)
8761         # We only want to do this on AIX 4.2 and lower, the check
8762         # below for broken collect2 doesn't work under 4.3+
8763           collect2name=`${CC} -print-prog-name=collect2`
8764           if test -f "$collect2name" &&
8765            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8766           then
8767           # We have reworked collect2
8768           :
8769           else
8770           # We have old collect2
8771           hardcode_direct=unsupported
8772           # It fails to find uninstalled libraries when the uninstalled
8773           # path is not listed in the libpath.  Setting hardcode_minus_L
8774           # to unsupported forces relinking
8775           hardcode_minus_L=yes
8776           hardcode_libdir_flag_spec='-L$libdir'
8777           hardcode_libdir_separator=
8778           fi
8779           ;;
8780         esac
8781         shared_flag='-shared'
8782         if test "$aix_use_runtimelinking" = yes; then
8783           shared_flag="$shared_flag "'${wl}-G'
8784         fi
8785         link_all_deplibs=no
8786       else
8787         # not using gcc
8788         if test "$host_cpu" = ia64; then
8789         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8790         # chokes on -Wl,-G. The following line is correct:
8791           shared_flag='-G'
8792         else
8793           if test "$aix_use_runtimelinking" = yes; then
8794             shared_flag='${wl}-G'
8795           else
8796             shared_flag='${wl}-bM:SRE'
8797           fi
8798         fi
8799       fi
8800
8801       export_dynamic_flag_spec='${wl}-bexpall'
8802       # It seems that -bexpall does not export symbols beginning with
8803       # underscore (_), so it is better to generate a list of symbols to export.
8804       always_export_symbols=yes
8805       if test "$aix_use_runtimelinking" = yes; then
8806         # Warning - without using the other runtime loading flags (-brtl),
8807         # -berok will link without error, but may produce a broken library.
8808         allow_undefined_flag='-berok'
8809         # Determine the default libpath from the value encoded in an
8810         # empty executable.
8811         cat >conftest.$ac_ext <<_ACEOF
8812 /* confdefs.h.  */
8813 _ACEOF
8814 cat confdefs.h >>conftest.$ac_ext
8815 cat >>conftest.$ac_ext <<_ACEOF
8816 /* end confdefs.h.  */
8817
8818 int
8819 main ()
8820 {
8821
8822   ;
8823   return 0;
8824 }
8825 _ACEOF
8826 rm -f conftest.$ac_objext conftest$ac_exeext
8827 if { (ac_try="$ac_link"
8828 case "(($ac_try" in
8829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8830   *) ac_try_echo=$ac_try;;
8831 esac
8832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8833 $as_echo "$ac_try_echo") >&5
8834   (eval "$ac_link") 2>conftest.er1
8835   ac_status=$?
8836   grep -v '^ *+' conftest.er1 >conftest.err
8837   rm -f conftest.er1
8838   cat conftest.err >&5
8839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); } && {
8841          test -z "$ac_c_werror_flag" ||
8842          test ! -s conftest.err
8843        } && test -s conftest$ac_exeext && {
8844          test "$cross_compiling" = yes ||
8845          $as_test_x conftest$ac_exeext
8846        }; then
8847
8848 lt_aix_libpath_sed='
8849     /Import File Strings/,/^$/ {
8850         /^0/ {
8851             s/^0  *\(.*\)$/\1/
8852             p
8853         }
8854     }'
8855 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8856 # Check for a 64-bit object if we didn't find anything.
8857 if test -z "$aix_libpath"; then
8858   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8859 fi
8860 else
8861   $as_echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8863
8864
8865 fi
8866
8867 rm -rf conftest.dSYM
8868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8869       conftest$ac_exeext conftest.$ac_ext
8870 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8871
8872         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8873         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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8874       else
8875         if test "$host_cpu" = ia64; then
8876           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8877           allow_undefined_flag="-z nodefs"
8878           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"
8879         else
8880          # Determine the default libpath from the value encoded in an
8881          # empty executable.
8882          cat >conftest.$ac_ext <<_ACEOF
8883 /* confdefs.h.  */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h.  */
8888
8889 int
8890 main ()
8891 {
8892
8893   ;
8894   return 0;
8895 }
8896 _ACEOF
8897 rm -f conftest.$ac_objext conftest$ac_exeext
8898 if { (ac_try="$ac_link"
8899 case "(($ac_try" in
8900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901   *) ac_try_echo=$ac_try;;
8902 esac
8903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8904 $as_echo "$ac_try_echo") >&5
8905   (eval "$ac_link") 2>conftest.er1
8906   ac_status=$?
8907   grep -v '^ *+' conftest.er1 >conftest.err
8908   rm -f conftest.er1
8909   cat conftest.err >&5
8910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911   (exit $ac_status); } && {
8912          test -z "$ac_c_werror_flag" ||
8913          test ! -s conftest.err
8914        } && test -s conftest$ac_exeext && {
8915          test "$cross_compiling" = yes ||
8916          $as_test_x conftest$ac_exeext
8917        }; then
8918
8919 lt_aix_libpath_sed='
8920     /Import File Strings/,/^$/ {
8921         /^0/ {
8922             s/^0  *\(.*\)$/\1/
8923             p
8924         }
8925     }'
8926 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8927 # Check for a 64-bit object if we didn't find anything.
8928 if test -z "$aix_libpath"; then
8929   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8930 fi
8931 else
8932   $as_echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8934
8935
8936 fi
8937
8938 rm -rf conftest.dSYM
8939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8940       conftest$ac_exeext conftest.$ac_ext
8941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8942
8943          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8944           # Warning - without using the other run time loading flags,
8945           # -berok will link without error, but may produce a broken library.
8946           no_undefined_flag=' ${wl}-bernotok'
8947           allow_undefined_flag=' ${wl}-berok'
8948           # Exported symbols can be pulled into shared objects from archives
8949           whole_archive_flag_spec='$convenience'
8950           archive_cmds_need_lc=yes
8951           # This is similar to how AIX traditionally builds its shared libraries.
8952           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'
8953         fi
8954       fi
8955       ;;
8956
8957     amigaos*)
8958       case $host_cpu in
8959       powerpc)
8960             # see comment about AmigaOS4 .so support
8961             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8962             archive_expsym_cmds=''
8963         ;;
8964       m68k)
8965             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)'
8966             hardcode_libdir_flag_spec='-L$libdir'
8967             hardcode_minus_L=yes
8968         ;;
8969       esac
8970       ;;
8971
8972     bsdi[45]*)
8973       export_dynamic_flag_spec=-rdynamic
8974       ;;
8975
8976     cygwin* | mingw* | pw32* | cegcc*)
8977       # When not using gcc, we currently assume that we are using
8978       # Microsoft Visual C++.
8979       # hardcode_libdir_flag_spec is actually meaningless, as there is
8980       # no search path for DLLs.
8981       hardcode_libdir_flag_spec=' '
8982       allow_undefined_flag=unsupported
8983       # Tell ltmain to make .lib files, not .a files.
8984       libext=lib
8985       # Tell ltmain to make .dll files, not .so files.
8986       shrext_cmds=".dll"
8987       # FIXME: Setting linknames here is a bad hack.
8988       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8989       # The linker will automatically build a .lib file if we build a DLL.
8990       old_archive_from_new_cmds='true'
8991       # FIXME: Should let the user specify the lib program.
8992       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8993       fix_srcfile_path='`cygpath -w "$srcfile"`'
8994       enable_shared_with_static_runtimes=yes
8995       ;;
8996
8997     darwin* | rhapsody*)
8998
8999
9000   archive_cmds_need_lc=no
9001   hardcode_direct=no
9002   hardcode_automatic=yes
9003   hardcode_shlibpath_var=unsupported
9004   whole_archive_flag_spec=''
9005   link_all_deplibs=yes
9006   allow_undefined_flag="$_lt_dar_allow_undefined"
9007   case $cc_basename in
9008      ifort*) _lt_dar_can_shared=yes ;;
9009      *) _lt_dar_can_shared=$GCC ;;
9010   esac
9011   if test "$_lt_dar_can_shared" = "yes"; then
9012     output_verbose_link_cmd=echo
9013     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9014     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9015     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9016     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9017
9018   else
9019   ld_shlibs=no
9020   fi
9021
9022       ;;
9023
9024     dgux*)
9025       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9026       hardcode_libdir_flag_spec='-L$libdir'
9027       hardcode_shlibpath_var=no
9028       ;;
9029
9030     freebsd1*)
9031       ld_shlibs=no
9032       ;;
9033
9034     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9035     # support.  Future versions do this automatically, but an explicit c++rt0.o
9036     # does not break anything, and helps significantly (at the cost of a little
9037     # extra space).
9038     freebsd2.2*)
9039       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9040       hardcode_libdir_flag_spec='-R$libdir'
9041       hardcode_direct=yes
9042       hardcode_shlibpath_var=no
9043       ;;
9044
9045     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9046     freebsd2*)
9047       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9048       hardcode_direct=yes
9049       hardcode_minus_L=yes
9050       hardcode_shlibpath_var=no
9051       ;;
9052
9053     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9054     freebsd* | dragonfly*)
9055       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9056       hardcode_libdir_flag_spec='-R$libdir'
9057       hardcode_direct=yes
9058       hardcode_shlibpath_var=no
9059       ;;
9060
9061     hpux9*)
9062       if test "$GCC" = yes; then
9063         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'
9064       else
9065         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'
9066       fi
9067       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9068       hardcode_libdir_separator=:
9069       hardcode_direct=yes
9070
9071       # hardcode_minus_L: Not really in the search PATH,
9072       # but as the default location of the library.
9073       hardcode_minus_L=yes
9074       export_dynamic_flag_spec='${wl}-E'
9075       ;;
9076
9077     hpux10*)
9078       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9079         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9080       else
9081         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9082       fi
9083       if test "$with_gnu_ld" = no; then
9084         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9085         hardcode_libdir_flag_spec_ld='+b $libdir'
9086         hardcode_libdir_separator=:
9087         hardcode_direct=yes
9088         hardcode_direct_absolute=yes
9089         export_dynamic_flag_spec='${wl}-E'
9090         # hardcode_minus_L: Not really in the search PATH,
9091         # but as the default location of the library.
9092         hardcode_minus_L=yes
9093       fi
9094       ;;
9095
9096     hpux11*)
9097       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9098         case $host_cpu in
9099         hppa*64*)
9100           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9101           ;;
9102         ia64*)
9103           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9104           ;;
9105         *)
9106           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9107           ;;
9108         esac
9109       else
9110         case $host_cpu in
9111         hppa*64*)
9112           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9113           ;;
9114         ia64*)
9115           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9116           ;;
9117         *)
9118           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9119           ;;
9120         esac
9121       fi
9122       if test "$with_gnu_ld" = no; then
9123         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9124         hardcode_libdir_separator=:
9125
9126         case $host_cpu in
9127         hppa*64*|ia64*)
9128           hardcode_direct=no
9129           hardcode_shlibpath_var=no
9130           ;;
9131         *)
9132           hardcode_direct=yes
9133           hardcode_direct_absolute=yes
9134           export_dynamic_flag_spec='${wl}-E'
9135
9136           # hardcode_minus_L: Not really in the search PATH,
9137           # but as the default location of the library.
9138           hardcode_minus_L=yes
9139           ;;
9140         esac
9141       fi
9142       ;;
9143
9144     irix5* | irix6* | nonstopux*)
9145       if test "$GCC" = yes; then
9146         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9147         # Try to use the -exported_symbol ld option, if it does not
9148         # work, assume that -exports_file does not work either and
9149         # implicitly export all symbols.
9150         save_LDFLAGS="$LDFLAGS"
9151         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9152         cat >conftest.$ac_ext <<_ACEOF
9153 int foo(void) {}
9154 _ACEOF
9155 rm -f conftest.$ac_objext conftest$ac_exeext
9156 if { (ac_try="$ac_link"
9157 case "(($ac_try" in
9158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159   *) ac_try_echo=$ac_try;;
9160 esac
9161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9162 $as_echo "$ac_try_echo") >&5
9163   (eval "$ac_link") 2>conftest.er1
9164   ac_status=$?
9165   grep -v '^ *+' conftest.er1 >conftest.err
9166   rm -f conftest.er1
9167   cat conftest.err >&5
9168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); } && {
9170          test -z "$ac_c_werror_flag" ||
9171          test ! -s conftest.err
9172        } && test -s conftest$ac_exeext && {
9173          test "$cross_compiling" = yes ||
9174          $as_test_x conftest$ac_exeext
9175        }; then
9176   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9177
9178 else
9179   $as_echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9181
9182
9183 fi
9184
9185 rm -rf conftest.dSYM
9186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9187       conftest$ac_exeext conftest.$ac_ext
9188         LDFLAGS="$save_LDFLAGS"
9189       else
9190         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9191         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9192       fi
9193       archive_cmds_need_lc='no'
9194       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9195       hardcode_libdir_separator=:
9196       inherit_rpath=yes
9197       link_all_deplibs=yes
9198       ;;
9199
9200     netbsd* | netbsdelf*-gnu)
9201       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9202         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9203       else
9204         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9205       fi
9206       hardcode_libdir_flag_spec='-R$libdir'
9207       hardcode_direct=yes
9208       hardcode_shlibpath_var=no
9209       ;;
9210
9211     newsos6)
9212       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9213       hardcode_direct=yes
9214       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9215       hardcode_libdir_separator=:
9216       hardcode_shlibpath_var=no
9217       ;;
9218
9219     *nto* | *qnx*)
9220       ;;
9221
9222     openbsd*)
9223       if test -f /usr/libexec/ld.so; then
9224         hardcode_direct=yes
9225         hardcode_shlibpath_var=no
9226         hardcode_direct_absolute=yes
9227         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9228           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9229           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9230           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9231           export_dynamic_flag_spec='${wl}-E'
9232         else
9233           case $host_os in
9234            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9235              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9236              hardcode_libdir_flag_spec='-R$libdir'
9237              ;;
9238            *)
9239              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9240              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9241              ;;
9242           esac
9243         fi
9244       else
9245         ld_shlibs=no
9246       fi
9247       ;;
9248
9249     os2*)
9250       hardcode_libdir_flag_spec='-L$libdir'
9251       hardcode_minus_L=yes
9252       allow_undefined_flag=unsupported
9253       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'
9254       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9255       ;;
9256
9257     osf3*)
9258       if test "$GCC" = yes; then
9259         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9260         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9261       else
9262         allow_undefined_flag=' -expect_unresolved \*'
9263         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9264       fi
9265       archive_cmds_need_lc='no'
9266       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9267       hardcode_libdir_separator=:
9268       ;;
9269
9270     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9271       if test "$GCC" = yes; then
9272         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9273         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9274         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9275       else
9276         allow_undefined_flag=' -expect_unresolved \*'
9277         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9278         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9279         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9280
9281         # Both c and cxx compiler support -rpath directly
9282         hardcode_libdir_flag_spec='-rpath $libdir'
9283       fi
9284       archive_cmds_need_lc='no'
9285       hardcode_libdir_separator=:
9286       ;;
9287
9288     solaris*)
9289       no_undefined_flag=' -z defs'
9290       if test "$GCC" = yes; then
9291         wlarc='${wl}'
9292         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9293         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9294           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9295       else
9296         case `$CC -V 2>&1` in
9297         *"Compilers 5.0"*)
9298           wlarc=''
9299           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9300           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9301           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9302           ;;
9303         *)
9304           wlarc='${wl}'
9305           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9306           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9307           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9308           ;;
9309         esac
9310       fi
9311       hardcode_libdir_flag_spec='-R$libdir'
9312       hardcode_shlibpath_var=no
9313       case $host_os in
9314       solaris2.[0-5] | solaris2.[0-5].*) ;;
9315       *)
9316         # The compiler driver will combine and reorder linker options,
9317         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9318         # but is careful enough not to reorder.
9319         # Supported since Solaris 2.6 (maybe 2.5.1?)
9320         if test "$GCC" = yes; then
9321           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9322         else
9323           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9324         fi
9325         ;;
9326       esac
9327       link_all_deplibs=yes
9328       ;;
9329
9330     sunos4*)
9331       if test "x$host_vendor" = xsequent; then
9332         # Use $CC to link under sequent, because it throws in some extra .o
9333         # files that make .init and .fini sections work.
9334         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9335       else
9336         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9337       fi
9338       hardcode_libdir_flag_spec='-L$libdir'
9339       hardcode_direct=yes
9340       hardcode_minus_L=yes
9341       hardcode_shlibpath_var=no
9342       ;;
9343
9344     sysv4)
9345       case $host_vendor in
9346         sni)
9347           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348           hardcode_direct=yes # is this really true???
9349         ;;
9350         siemens)
9351           ## LD is ld it makes a PLAMLIB
9352           ## CC just makes a GrossModule.
9353           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9354           reload_cmds='$CC -r -o $output$reload_objs'
9355           hardcode_direct=no
9356         ;;
9357         motorola)
9358           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9359           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9360         ;;
9361       esac
9362       runpath_var='LD_RUN_PATH'
9363       hardcode_shlibpath_var=no
9364       ;;
9365
9366     sysv4.3*)
9367       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9368       hardcode_shlibpath_var=no
9369       export_dynamic_flag_spec='-Bexport'
9370       ;;
9371
9372     sysv4*MP*)
9373       if test -d /usr/nec; then
9374         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9375         hardcode_shlibpath_var=no
9376         runpath_var=LD_RUN_PATH
9377         hardcode_runpath_var=yes
9378         ld_shlibs=yes
9379       fi
9380       ;;
9381
9382     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9383       no_undefined_flag='${wl}-z,text'
9384       archive_cmds_need_lc=no
9385       hardcode_shlibpath_var=no
9386       runpath_var='LD_RUN_PATH'
9387
9388       if test "$GCC" = yes; then
9389         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9391       else
9392         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9394       fi
9395       ;;
9396
9397     sysv5* | sco3.2v5* | sco5v6*)
9398       # Note: We can NOT use -z defs as we might desire, because we do not
9399       # link with -lc, and that would cause any symbols used from libc to
9400       # always be unresolved, which means just about no library would
9401       # ever link correctly.  If we're not using GNU ld we use -z text
9402       # though, which does catch some bad symbols but isn't as heavy-handed
9403       # as -z defs.
9404       no_undefined_flag='${wl}-z,text'
9405       allow_undefined_flag='${wl}-z,nodefs'
9406       archive_cmds_need_lc=no
9407       hardcode_shlibpath_var=no
9408       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9409       hardcode_libdir_separator=':'
9410       link_all_deplibs=yes
9411       export_dynamic_flag_spec='${wl}-Bexport'
9412       runpath_var='LD_RUN_PATH'
9413
9414       if test "$GCC" = yes; then
9415         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9416         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9417       else
9418         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9419         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9420       fi
9421       ;;
9422
9423     uts4*)
9424       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9425       hardcode_libdir_flag_spec='-L$libdir'
9426       hardcode_shlibpath_var=no
9427       ;;
9428
9429     *)
9430       ld_shlibs=no
9431       ;;
9432     esac
9433
9434     if test x$host_vendor = xsni; then
9435       case $host in
9436       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9437         export_dynamic_flag_spec='${wl}-Blargedynsym'
9438         ;;
9439       esac
9440     fi
9441   fi
9442
9443 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9444 $as_echo "$ld_shlibs" >&6; }
9445 test "$ld_shlibs" = no && can_build_shared=no
9446
9447 with_gnu_ld=$with_gnu_ld
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463 #
9464 # Do we need to explicitly link libc?
9465 #
9466 case "x$archive_cmds_need_lc" in
9467 x|xyes)
9468   # Assume -lc should be added
9469   archive_cmds_need_lc=yes
9470
9471   if test "$enable_shared" = yes && test "$GCC" = yes; then
9472     case $archive_cmds in
9473     *'~'*)
9474       # FIXME: we may have to deal with multi-command sequences.
9475       ;;
9476     '$CC '*)
9477       # Test whether the compiler implicitly links with -lc since on some
9478       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9479       # to ld, don't add -lc before -lgcc.
9480       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9481 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9482       $RM conftest*
9483       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9484
9485       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9486   (eval $ac_compile) 2>&5
9487   ac_status=$?
9488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489   (exit $ac_status); } 2>conftest.err; then
9490         soname=conftest
9491         lib=conftest
9492         libobjs=conftest.$ac_objext
9493         deplibs=
9494         wl=$lt_prog_compiler_wl
9495         pic_flag=$lt_prog_compiler_pic
9496         compiler_flags=-v
9497         linker_flags=-v
9498         verstring=
9499         output_objdir=.
9500         libname=conftest
9501         lt_save_allow_undefined_flag=$allow_undefined_flag
9502         allow_undefined_flag=
9503         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9504   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9505   ac_status=$?
9506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); }
9508         then
9509           archive_cmds_need_lc=no
9510         else
9511           archive_cmds_need_lc=yes
9512         fi
9513         allow_undefined_flag=$lt_save_allow_undefined_flag
9514       else
9515         cat conftest.err 1>&5
9516       fi
9517       $RM conftest*
9518       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9519 $as_echo "$archive_cmds_need_lc" >&6; }
9520       ;;
9521     esac
9522   fi
9523   ;;
9524 esac
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9683 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9684
9685 if test "$GCC" = yes; then
9686   case $host_os in
9687     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9688     *) lt_awk_arg="/^libraries:/" ;;
9689   esac
9690   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9691   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9692     # if the path contains ";" then we assume it to be the separator
9693     # otherwise default to the standard path separator (i.e. ":") - it is
9694     # assumed that no part of a normal pathname contains ";" but that should
9695     # okay in the real world where ";" in dirpaths is itself problematic.
9696     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9697   else
9698     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9699   fi
9700   # Ok, now we have the path, separated by spaces, we can step through it
9701   # and add multilib dir if necessary.
9702   lt_tmp_lt_search_path_spec=
9703   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9704   for lt_sys_path in $lt_search_path_spec; do
9705     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9706       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9707     else
9708       test -d "$lt_sys_path" && \
9709         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9710     fi
9711   done
9712   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9713 BEGIN {RS=" "; FS="/|\n";} {
9714   lt_foo="";
9715   lt_count=0;
9716   for (lt_i = NF; lt_i > 0; lt_i--) {
9717     if ($lt_i != "" && $lt_i != ".") {
9718       if ($lt_i == "..") {
9719         lt_count++;
9720       } else {
9721         if (lt_count == 0) {
9722           lt_foo="/" $lt_i lt_foo;
9723         } else {
9724           lt_count--;
9725         }
9726       }
9727     }
9728   }
9729   if (lt_foo != "") { lt_freq[lt_foo]++; }
9730   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9731 }'`
9732   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9733 else
9734   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9735 fi
9736 library_names_spec=
9737 libname_spec='lib$name'
9738 soname_spec=
9739 shrext_cmds=".so"
9740 postinstall_cmds=
9741 postuninstall_cmds=
9742 finish_cmds=
9743 finish_eval=
9744 shlibpath_var=
9745 shlibpath_overrides_runpath=unknown
9746 version_type=none
9747 dynamic_linker="$host_os ld.so"
9748 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9749 need_lib_prefix=unknown
9750 hardcode_into_libs=no
9751
9752 # when you set need_version to no, make sure it does not cause -set_version
9753 # flags to be left without arguments
9754 need_version=unknown
9755
9756 case $host_os in
9757 aix3*)
9758   version_type=linux
9759   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9760   shlibpath_var=LIBPATH
9761
9762   # AIX 3 has no versioning support, so we append a major version to the name.
9763   soname_spec='${libname}${release}${shared_ext}$major'
9764   ;;
9765
9766 aix[4-9]*)
9767   version_type=linux
9768   need_lib_prefix=no
9769   need_version=no
9770   hardcode_into_libs=yes
9771   if test "$host_cpu" = ia64; then
9772     # AIX 5 supports IA64
9773     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9774     shlibpath_var=LD_LIBRARY_PATH
9775   else
9776     # With GCC up to 2.95.x, collect2 would create an import file
9777     # for dependence libraries.  The import file would start with
9778     # the line `#! .'.  This would cause the generated library to
9779     # depend on `.', always an invalid library.  This was fixed in
9780     # development snapshots of GCC prior to 3.0.
9781     case $host_os in
9782       aix4 | aix4.[01] | aix4.[01].*)
9783       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9784            echo ' yes '
9785            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9786         :
9787       else
9788         can_build_shared=no
9789       fi
9790       ;;
9791     esac
9792     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9793     # soname into executable. Probably we can add versioning support to
9794     # collect2, so additional links can be useful in future.
9795     if test "$aix_use_runtimelinking" = yes; then
9796       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9797       # instead of lib<name>.a to let people know that these are not
9798       # typical AIX shared libraries.
9799       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800     else
9801       # We preserve .a as extension for shared libraries through AIX4.2
9802       # and later when we are not doing run time linking.
9803       library_names_spec='${libname}${release}.a $libname.a'
9804       soname_spec='${libname}${release}${shared_ext}$major'
9805     fi
9806     shlibpath_var=LIBPATH
9807   fi
9808   ;;
9809
9810 amigaos*)
9811   case $host_cpu in
9812   powerpc)
9813     # Since July 2007 AmigaOS4 officially supports .so libraries.
9814     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9816     ;;
9817   m68k)
9818     library_names_spec='$libname.ixlibrary $libname.a'
9819     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9820     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'
9821     ;;
9822   esac
9823   ;;
9824
9825 beos*)
9826   library_names_spec='${libname}${shared_ext}'
9827   dynamic_linker="$host_os ld.so"
9828   shlibpath_var=LIBRARY_PATH
9829   ;;
9830
9831 bsdi[45]*)
9832   version_type=linux
9833   need_version=no
9834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9835   soname_spec='${libname}${release}${shared_ext}$major'
9836   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9837   shlibpath_var=LD_LIBRARY_PATH
9838   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9839   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9840   # the default ld.so.conf also contains /usr/contrib/lib and
9841   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9842   # libtool to hard-code these into programs
9843   ;;
9844
9845 cygwin* | mingw* | pw32* | cegcc*)
9846   version_type=windows
9847   shrext_cmds=".dll"
9848   need_version=no
9849   need_lib_prefix=no
9850
9851   case $GCC,$host_os in
9852   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9853     library_names_spec='$libname.dll.a'
9854     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9855     postinstall_cmds='base_file=`basename \${file}`~
9856       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9857       dldir=$destdir/`dirname \$dlpath`~
9858       test -d \$dldir || mkdir -p \$dldir~
9859       $install_prog $dir/$dlname \$dldir/$dlname~
9860       chmod a+x \$dldir/$dlname~
9861       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9862         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9863       fi'
9864     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9865       dlpath=$dir/\$dldll~
9866        $RM \$dlpath'
9867     shlibpath_overrides_runpath=yes
9868
9869     case $host_os in
9870     cygwin*)
9871       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9872       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9873       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9874       ;;
9875     mingw* | cegcc*)
9876       # MinGW DLLs use traditional 'lib' prefix
9877       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9878       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9879       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9880         # It is most probably a Windows format PATH printed by
9881         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9882         # path with ; separators, and with drive letters. We can handle the
9883         # drive letters (cygwin fileutils understands them), so leave them,
9884         # especially as we might pass files found there to a mingw objdump,
9885         # which wouldn't understand a cygwinified path. Ahh.
9886         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9887       else
9888         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9889       fi
9890       ;;
9891     pw32*)
9892       # pw32 DLLs use 'pw' prefix rather than 'lib'
9893       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9894       ;;
9895     esac
9896     ;;
9897
9898   *)
9899     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9900     ;;
9901   esac
9902   dynamic_linker='Win32 ld.exe'
9903   # FIXME: first we should search . and the directory the executable is in
9904   shlibpath_var=PATH
9905   ;;
9906
9907 darwin* | rhapsody*)
9908   dynamic_linker="$host_os dyld"
9909   version_type=darwin
9910   need_lib_prefix=no
9911   need_version=no
9912   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9913   soname_spec='${libname}${release}${major}$shared_ext'
9914   shlibpath_overrides_runpath=yes
9915   shlibpath_var=DYLD_LIBRARY_PATH
9916   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9917
9918   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9919   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9920   ;;
9921
9922 dgux*)
9923   version_type=linux
9924   need_lib_prefix=no
9925   need_version=no
9926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9927   soname_spec='${libname}${release}${shared_ext}$major'
9928   shlibpath_var=LD_LIBRARY_PATH
9929   ;;
9930
9931 freebsd1*)
9932   dynamic_linker=no
9933   ;;
9934
9935 freebsd* | dragonfly*)
9936   # DragonFly does not have aout.  When/if they implement a new
9937   # versioning mechanism, adjust this.
9938   if test -x /usr/bin/objformat; then
9939     objformat=`/usr/bin/objformat`
9940   else
9941     case $host_os in
9942     freebsd[123]*) objformat=aout ;;
9943     *) objformat=elf ;;
9944     esac
9945   fi
9946   version_type=freebsd-$objformat
9947   case $version_type in
9948     freebsd-elf*)
9949       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9950       need_version=no
9951       need_lib_prefix=no
9952       ;;
9953     freebsd-*)
9954       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9955       need_version=yes
9956       ;;
9957   esac
9958   shlibpath_var=LD_LIBRARY_PATH
9959   case $host_os in
9960   freebsd2*)
9961     shlibpath_overrides_runpath=yes
9962     ;;
9963   freebsd3.[01]* | freebsdelf3.[01]*)
9964     shlibpath_overrides_runpath=yes
9965     hardcode_into_libs=yes
9966     ;;
9967   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9968   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9969     shlibpath_overrides_runpath=no
9970     hardcode_into_libs=yes
9971     ;;
9972   *) # from 4.6 on, and DragonFly
9973     shlibpath_overrides_runpath=yes
9974     hardcode_into_libs=yes
9975     ;;
9976   esac
9977   ;;
9978
9979 gnu*)
9980   version_type=linux
9981   need_lib_prefix=no
9982   need_version=no
9983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9984   soname_spec='${libname}${release}${shared_ext}$major'
9985   shlibpath_var=LD_LIBRARY_PATH
9986   hardcode_into_libs=yes
9987   ;;
9988
9989 hpux9* | hpux10* | hpux11*)
9990   # Give a soname corresponding to the major version so that dld.sl refuses to
9991   # link against other versions.
9992   version_type=sunos
9993   need_lib_prefix=no
9994   need_version=no
9995   case $host_cpu in
9996   ia64*)
9997     shrext_cmds='.so'
9998     hardcode_into_libs=yes
9999     dynamic_linker="$host_os dld.so"
10000     shlibpath_var=LD_LIBRARY_PATH
10001     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10002     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003     soname_spec='${libname}${release}${shared_ext}$major'
10004     if test "X$HPUX_IA64_MODE" = X32; then
10005       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10006     else
10007       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10008     fi
10009     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10010     ;;
10011   hppa*64*)
10012     shrext_cmds='.sl'
10013     hardcode_into_libs=yes
10014     dynamic_linker="$host_os dld.sl"
10015     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10016     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018     soname_spec='${libname}${release}${shared_ext}$major'
10019     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10020     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10021     ;;
10022   *)
10023     shrext_cmds='.sl'
10024     dynamic_linker="$host_os dld.sl"
10025     shlibpath_var=SHLIB_PATH
10026     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028     soname_spec='${libname}${release}${shared_ext}$major'
10029     ;;
10030   esac
10031   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10032   postinstall_cmds='chmod 555 $lib'
10033   ;;
10034
10035 interix[3-9]*)
10036   version_type=linux
10037   need_lib_prefix=no
10038   need_version=no
10039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10040   soname_spec='${libname}${release}${shared_ext}$major'
10041   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10042   shlibpath_var=LD_LIBRARY_PATH
10043   shlibpath_overrides_runpath=no
10044   hardcode_into_libs=yes
10045   ;;
10046
10047 irix5* | irix6* | nonstopux*)
10048   case $host_os in
10049     nonstopux*) version_type=nonstopux ;;
10050     *)
10051         if test "$lt_cv_prog_gnu_ld" = yes; then
10052                 version_type=linux
10053         else
10054                 version_type=irix
10055         fi ;;
10056   esac
10057   need_lib_prefix=no
10058   need_version=no
10059   soname_spec='${libname}${release}${shared_ext}$major'
10060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10061   case $host_os in
10062   irix5* | nonstopux*)
10063     libsuff= shlibsuff=
10064     ;;
10065   *)
10066     case $LD in # libtool.m4 will add one of these switches to LD
10067     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10068       libsuff= shlibsuff= libmagic=32-bit;;
10069     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10070       libsuff=32 shlibsuff=N32 libmagic=N32;;
10071     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10072       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10073     *) libsuff= shlibsuff= libmagic=never-match;;
10074     esac
10075     ;;
10076   esac
10077   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10078   shlibpath_overrides_runpath=no
10079   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10080   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10081   hardcode_into_libs=yes
10082   ;;
10083
10084 # No shared lib support for Linux oldld, aout, or coff.
10085 linux*oldld* | linux*aout* | linux*coff*)
10086   dynamic_linker=no
10087   ;;
10088
10089 # This must be Linux ELF.
10090 linux* | k*bsd*-gnu)
10091   version_type=linux
10092   need_lib_prefix=no
10093   need_version=no
10094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095   soname_spec='${libname}${release}${shared_ext}$major'
10096   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10097   shlibpath_var=LD_LIBRARY_PATH
10098   shlibpath_overrides_runpath=no
10099   # Some binutils ld are patched to set DT_RUNPATH
10100   save_LDFLAGS=$LDFLAGS
10101   save_libdir=$libdir
10102   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10103        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10104   cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h.  */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h.  */
10110
10111 int
10112 main ()
10113 {
10114
10115   ;
10116   return 0;
10117 }
10118 _ACEOF
10119 rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (ac_try="$ac_link"
10121 case "(($ac_try" in
10122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123   *) ac_try_echo=$ac_try;;
10124 esac
10125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10126 $as_echo "$ac_try_echo") >&5
10127   (eval "$ac_link") 2>conftest.er1
10128   ac_status=$?
10129   grep -v '^ *+' conftest.er1 >conftest.err
10130   rm -f conftest.er1
10131   cat conftest.err >&5
10132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); } && {
10134          test -z "$ac_c_werror_flag" ||
10135          test ! -s conftest.err
10136        } && test -s conftest$ac_exeext && {
10137          test "$cross_compiling" = yes ||
10138          $as_test_x conftest$ac_exeext
10139        }; then
10140   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10141   shlibpath_overrides_runpath=yes
10142 fi
10143
10144 else
10145   $as_echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10147
10148
10149 fi
10150
10151 rm -rf conftest.dSYM
10152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10153       conftest$ac_exeext conftest.$ac_ext
10154   LDFLAGS=$save_LDFLAGS
10155   libdir=$save_libdir
10156
10157   # This implies no fast_install, which is unacceptable.
10158   # Some rework will be needed to allow for fast_install
10159   # before this can be enabled.
10160   hardcode_into_libs=yes
10161
10162   # Append ld.so.conf contents to the search path
10163   if test -f /etc/ld.so.conf; then
10164     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10165     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10166   fi
10167
10168   # We used to test for /lib/ld.so.1 and disable shared libraries on
10169   # powerpc, because MkLinux only supported shared libraries with the
10170   # GNU dynamic linker.  Since this was broken with cross compilers,
10171   # most powerpc-linux boxes support dynamic linking these days and
10172   # people can always --disable-shared, the test was removed, and we
10173   # assume the GNU/Linux dynamic linker is in use.
10174   dynamic_linker='GNU/Linux ld.so'
10175   ;;
10176
10177 netbsdelf*-gnu)
10178   version_type=linux
10179   need_lib_prefix=no
10180   need_version=no
10181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10182   soname_spec='${libname}${release}${shared_ext}$major'
10183   shlibpath_var=LD_LIBRARY_PATH
10184   shlibpath_overrides_runpath=no
10185   hardcode_into_libs=yes
10186   dynamic_linker='NetBSD ld.elf_so'
10187   ;;
10188
10189 netbsd*)
10190   version_type=sunos
10191   need_lib_prefix=no
10192   need_version=no
10193   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10195     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10196     dynamic_linker='NetBSD (a.out) ld.so'
10197   else
10198     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10199     soname_spec='${libname}${release}${shared_ext}$major'
10200     dynamic_linker='NetBSD ld.elf_so'
10201   fi
10202   shlibpath_var=LD_LIBRARY_PATH
10203   shlibpath_overrides_runpath=yes
10204   hardcode_into_libs=yes
10205   ;;
10206
10207 newsos6)
10208   version_type=linux
10209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210   shlibpath_var=LD_LIBRARY_PATH
10211   shlibpath_overrides_runpath=yes
10212   ;;
10213
10214 *nto* | *qnx*)
10215   version_type=qnx
10216   need_lib_prefix=no
10217   need_version=no
10218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219   soname_spec='${libname}${release}${shared_ext}$major'
10220   shlibpath_var=LD_LIBRARY_PATH
10221   shlibpath_overrides_runpath=no
10222   hardcode_into_libs=yes
10223   dynamic_linker='ldqnx.so'
10224   ;;
10225
10226 openbsd*)
10227   version_type=sunos
10228   sys_lib_dlsearch_path_spec="/usr/lib"
10229   need_lib_prefix=no
10230   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10231   case $host_os in
10232     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10233     *)                          need_version=no  ;;
10234   esac
10235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10236   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10237   shlibpath_var=LD_LIBRARY_PATH
10238   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10239     case $host_os in
10240       openbsd2.[89] | openbsd2.[89].*)
10241         shlibpath_overrides_runpath=no
10242         ;;
10243       *)
10244         shlibpath_overrides_runpath=yes
10245         ;;
10246       esac
10247   else
10248     shlibpath_overrides_runpath=yes
10249   fi
10250   ;;
10251
10252 os2*)
10253   libname_spec='$name'
10254   shrext_cmds=".dll"
10255   need_lib_prefix=no
10256   library_names_spec='$libname${shared_ext} $libname.a'
10257   dynamic_linker='OS/2 ld.exe'
10258   shlibpath_var=LIBPATH
10259   ;;
10260
10261 osf3* | osf4* | osf5*)
10262   version_type=osf
10263   need_lib_prefix=no
10264   need_version=no
10265   soname_spec='${libname}${release}${shared_ext}$major'
10266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267   shlibpath_var=LD_LIBRARY_PATH
10268   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10269   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10270   ;;
10271
10272 rdos*)
10273   dynamic_linker=no
10274   ;;
10275
10276 solaris*)
10277   version_type=linux
10278   need_lib_prefix=no
10279   need_version=no
10280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281   soname_spec='${libname}${release}${shared_ext}$major'
10282   shlibpath_var=LD_LIBRARY_PATH
10283   shlibpath_overrides_runpath=yes
10284   hardcode_into_libs=yes
10285   # ldd complains unless libraries are executable
10286   postinstall_cmds='chmod +x $lib'
10287   ;;
10288
10289 sunos4*)
10290   version_type=sunos
10291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10292   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10293   shlibpath_var=LD_LIBRARY_PATH
10294   shlibpath_overrides_runpath=yes
10295   if test "$with_gnu_ld" = yes; then
10296     need_lib_prefix=no
10297   fi
10298   need_version=yes
10299   ;;
10300
10301 sysv4 | sysv4.3*)
10302   version_type=linux
10303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304   soname_spec='${libname}${release}${shared_ext}$major'
10305   shlibpath_var=LD_LIBRARY_PATH
10306   case $host_vendor in
10307     sni)
10308       shlibpath_overrides_runpath=no
10309       need_lib_prefix=no
10310       runpath_var=LD_RUN_PATH
10311       ;;
10312     siemens)
10313       need_lib_prefix=no
10314       ;;
10315     motorola)
10316       need_lib_prefix=no
10317       need_version=no
10318       shlibpath_overrides_runpath=no
10319       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10320       ;;
10321   esac
10322   ;;
10323
10324 sysv4*MP*)
10325   if test -d /usr/nec ;then
10326     version_type=linux
10327     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10328     soname_spec='$libname${shared_ext}.$major'
10329     shlibpath_var=LD_LIBRARY_PATH
10330   fi
10331   ;;
10332
10333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10334   version_type=freebsd-elf
10335   need_lib_prefix=no
10336   need_version=no
10337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10338   soname_spec='${libname}${release}${shared_ext}$major'
10339   shlibpath_var=LD_LIBRARY_PATH
10340   shlibpath_overrides_runpath=yes
10341   hardcode_into_libs=yes
10342   if test "$with_gnu_ld" = yes; then
10343     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10344   else
10345     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10346     case $host_os in
10347       sco3.2v5*)
10348         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10349         ;;
10350     esac
10351   fi
10352   sys_lib_dlsearch_path_spec='/usr/lib'
10353   ;;
10354
10355 tpf*)
10356   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10357   version_type=linux
10358   need_lib_prefix=no
10359   need_version=no
10360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361   shlibpath_var=LD_LIBRARY_PATH
10362   shlibpath_overrides_runpath=no
10363   hardcode_into_libs=yes
10364   ;;
10365
10366 uts4*)
10367   version_type=linux
10368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369   soname_spec='${libname}${release}${shared_ext}$major'
10370   shlibpath_var=LD_LIBRARY_PATH
10371   ;;
10372
10373 *)
10374   dynamic_linker=no
10375   ;;
10376 esac
10377 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10378 $as_echo "$dynamic_linker" >&6; }
10379 test "$dynamic_linker" = no && can_build_shared=no
10380
10381 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10382 if test "$GCC" = yes; then
10383   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10384 fi
10385
10386 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10387   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10388 fi
10389 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10390   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10391 fi
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10480 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10481 hardcode_action=
10482 if test -n "$hardcode_libdir_flag_spec" ||
10483    test -n "$runpath_var" ||
10484    test "X$hardcode_automatic" = "Xyes" ; then
10485
10486   # We can hardcode non-existent directories.
10487   if test "$hardcode_direct" != no &&
10488      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10489      # have to relink, otherwise we might link with an installed library
10490      # when we should be linking with a yet-to-be-installed one
10491      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10492      test "$hardcode_minus_L" != no; then
10493     # Linking always hardcodes the temporary library directory.
10494     hardcode_action=relink
10495   else
10496     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10497     hardcode_action=immediate
10498   fi
10499 else
10500   # We cannot hardcode anything, or else we can only hardcode existing
10501   # directories.
10502   hardcode_action=unsupported
10503 fi
10504 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10505 $as_echo "$hardcode_action" >&6; }
10506
10507 if test "$hardcode_action" = relink ||
10508    test "$inherit_rpath" = yes; then
10509   # Fast installation is not supported
10510   enable_fast_install=no
10511 elif test "$shlibpath_overrides_runpath" = yes ||
10512      test "$enable_shared" = no; then
10513   # Fast installation is not necessary
10514   enable_fast_install=needless
10515 fi
10516
10517
10518
10519
10520
10521
10522   if test "x$enable_dlopen" != xyes; then
10523   enable_dlopen=unknown
10524   enable_dlopen_self=unknown
10525   enable_dlopen_self_static=unknown
10526 else
10527   lt_cv_dlopen=no
10528   lt_cv_dlopen_libs=
10529
10530   case $host_os in
10531   beos*)
10532     lt_cv_dlopen="load_add_on"
10533     lt_cv_dlopen_libs=
10534     lt_cv_dlopen_self=yes
10535     ;;
10536
10537   mingw* | pw32* | cegcc*)
10538     lt_cv_dlopen="LoadLibrary"
10539     lt_cv_dlopen_libs=
10540     ;;
10541
10542   cygwin*)
10543     lt_cv_dlopen="dlopen"
10544     lt_cv_dlopen_libs=
10545     ;;
10546
10547   darwin*)
10548   # if libdl is installed we need to link against it
10549     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10550 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10551 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10552   $as_echo_n "(cached) " >&6
10553 else
10554   ac_check_lib_save_LIBS=$LIBS
10555 LIBS="-ldl  $LIBS"
10556 cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h.  */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h.  */
10562
10563 /* Override any GCC internal prototype to avoid an error.
10564    Use char because int might match the return type of a GCC
10565    builtin and then its argument prototype would still apply.  */
10566 #ifdef __cplusplus
10567 extern "C"
10568 #endif
10569 char dlopen ();
10570 int
10571 main ()
10572 {
10573 return dlopen ();
10574   ;
10575   return 0;
10576 }
10577 _ACEOF
10578 rm -f conftest.$ac_objext conftest$ac_exeext
10579 if { (ac_try="$ac_link"
10580 case "(($ac_try" in
10581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582   *) ac_try_echo=$ac_try;;
10583 esac
10584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10585 $as_echo "$ac_try_echo") >&5
10586   (eval "$ac_link") 2>conftest.er1
10587   ac_status=$?
10588   grep -v '^ *+' conftest.er1 >conftest.err
10589   rm -f conftest.er1
10590   cat conftest.err >&5
10591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592   (exit $ac_status); } && {
10593          test -z "$ac_c_werror_flag" ||
10594          test ! -s conftest.err
10595        } && test -s conftest$ac_exeext && {
10596          test "$cross_compiling" = yes ||
10597          $as_test_x conftest$ac_exeext
10598        }; then
10599   ac_cv_lib_dl_dlopen=yes
10600 else
10601   $as_echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10603
10604         ac_cv_lib_dl_dlopen=no
10605 fi
10606
10607 rm -rf conftest.dSYM
10608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10609       conftest$ac_exeext conftest.$ac_ext
10610 LIBS=$ac_check_lib_save_LIBS
10611 fi
10612 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10613 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10614 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10615   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10616 else
10617
10618     lt_cv_dlopen="dyld"
10619     lt_cv_dlopen_libs=
10620     lt_cv_dlopen_self=yes
10621
10622 fi
10623
10624     ;;
10625
10626   *)
10627     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10628 $as_echo_n "checking for shl_load... " >&6; }
10629 if test "${ac_cv_func_shl_load+set}" = set; then
10630   $as_echo_n "(cached) " >&6
10631 else
10632   cat >conftest.$ac_ext <<_ACEOF
10633 /* confdefs.h.  */
10634 _ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h.  */
10638 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10640 #define shl_load innocuous_shl_load
10641
10642 /* System header to define __stub macros and hopefully few prototypes,
10643     which can conflict with char shl_load (); below.
10644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10645     <limits.h> exists even on freestanding compilers.  */
10646
10647 #ifdef __STDC__
10648 # include <limits.h>
10649 #else
10650 # include <assert.h>
10651 #endif
10652
10653 #undef shl_load
10654
10655 /* Override any GCC internal prototype to avoid an error.
10656    Use char because int might match the return type of a GCC
10657    builtin and then its argument prototype would still apply.  */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 char shl_load ();
10662 /* The GNU C library defines this for functions which it implements
10663     to always fail with ENOSYS.  Some functions are actually named
10664     something starting with __ and the normal name is an alias.  */
10665 #if defined __stub_shl_load || defined __stub___shl_load
10666 choke me
10667 #endif
10668
10669 int
10670 main ()
10671 {
10672 return shl_load ();
10673   ;
10674   return 0;
10675 }
10676 _ACEOF
10677 rm -f conftest.$ac_objext conftest$ac_exeext
10678 if { (ac_try="$ac_link"
10679 case "(($ac_try" in
10680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681   *) ac_try_echo=$ac_try;;
10682 esac
10683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10684 $as_echo "$ac_try_echo") >&5
10685   (eval "$ac_link") 2>conftest.er1
10686   ac_status=$?
10687   grep -v '^ *+' conftest.er1 >conftest.err
10688   rm -f conftest.er1
10689   cat conftest.err >&5
10690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); } && {
10692          test -z "$ac_c_werror_flag" ||
10693          test ! -s conftest.err
10694        } && test -s conftest$ac_exeext && {
10695          test "$cross_compiling" = yes ||
10696          $as_test_x conftest$ac_exeext
10697        }; then
10698   ac_cv_func_shl_load=yes
10699 else
10700   $as_echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10702
10703         ac_cv_func_shl_load=no
10704 fi
10705
10706 rm -rf conftest.dSYM
10707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10708       conftest$ac_exeext conftest.$ac_ext
10709 fi
10710 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10711 $as_echo "$ac_cv_func_shl_load" >&6; }
10712 if test "x$ac_cv_func_shl_load" = x""yes; then
10713   lt_cv_dlopen="shl_load"
10714 else
10715   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10716 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10717 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10718   $as_echo_n "(cached) " >&6
10719 else
10720   ac_check_lib_save_LIBS=$LIBS
10721 LIBS="-ldld  $LIBS"
10722 cat >conftest.$ac_ext <<_ACEOF
10723 /* confdefs.h.  */
10724 _ACEOF
10725 cat confdefs.h >>conftest.$ac_ext
10726 cat >>conftest.$ac_ext <<_ACEOF
10727 /* end confdefs.h.  */
10728
10729 /* Override any GCC internal prototype to avoid an error.
10730    Use char because int might match the return type of a GCC
10731    builtin and then its argument prototype would still apply.  */
10732 #ifdef __cplusplus
10733 extern "C"
10734 #endif
10735 char shl_load ();
10736 int
10737 main ()
10738 {
10739 return shl_load ();
10740   ;
10741   return 0;
10742 }
10743 _ACEOF
10744 rm -f conftest.$ac_objext conftest$ac_exeext
10745 if { (ac_try="$ac_link"
10746 case "(($ac_try" in
10747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748   *) ac_try_echo=$ac_try;;
10749 esac
10750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10751 $as_echo "$ac_try_echo") >&5
10752   (eval "$ac_link") 2>conftest.er1
10753   ac_status=$?
10754   grep -v '^ *+' conftest.er1 >conftest.err
10755   rm -f conftest.er1
10756   cat conftest.err >&5
10757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); } && {
10759          test -z "$ac_c_werror_flag" ||
10760          test ! -s conftest.err
10761        } && test -s conftest$ac_exeext && {
10762          test "$cross_compiling" = yes ||
10763          $as_test_x conftest$ac_exeext
10764        }; then
10765   ac_cv_lib_dld_shl_load=yes
10766 else
10767   $as_echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10769
10770         ac_cv_lib_dld_shl_load=no
10771 fi
10772
10773 rm -rf conftest.dSYM
10774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10775       conftest$ac_exeext conftest.$ac_ext
10776 LIBS=$ac_check_lib_save_LIBS
10777 fi
10778 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10779 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10780 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10781   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10782 else
10783   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10784 $as_echo_n "checking for dlopen... " >&6; }
10785 if test "${ac_cv_func_dlopen+set}" = set; then
10786   $as_echo_n "(cached) " >&6
10787 else
10788   cat >conftest.$ac_ext <<_ACEOF
10789 /* confdefs.h.  */
10790 _ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h.  */
10794 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10796 #define dlopen innocuous_dlopen
10797
10798 /* System header to define __stub macros and hopefully few prototypes,
10799     which can conflict with char dlopen (); below.
10800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10801     <limits.h> exists even on freestanding compilers.  */
10802
10803 #ifdef __STDC__
10804 # include <limits.h>
10805 #else
10806 # include <assert.h>
10807 #endif
10808
10809 #undef dlopen
10810
10811 /* Override any GCC internal prototype to avoid an error.
10812    Use char because int might match the return type of a GCC
10813    builtin and then its argument prototype would still apply.  */
10814 #ifdef __cplusplus
10815 extern "C"
10816 #endif
10817 char dlopen ();
10818 /* The GNU C library defines this for functions which it implements
10819     to always fail with ENOSYS.  Some functions are actually named
10820     something starting with __ and the normal name is an alias.  */
10821 #if defined __stub_dlopen || defined __stub___dlopen
10822 choke me
10823 #endif
10824
10825 int
10826 main ()
10827 {
10828 return dlopen ();
10829   ;
10830   return 0;
10831 }
10832 _ACEOF
10833 rm -f conftest.$ac_objext conftest$ac_exeext
10834 if { (ac_try="$ac_link"
10835 case "(($ac_try" in
10836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837   *) ac_try_echo=$ac_try;;
10838 esac
10839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10840 $as_echo "$ac_try_echo") >&5
10841   (eval "$ac_link") 2>conftest.er1
10842   ac_status=$?
10843   grep -v '^ *+' conftest.er1 >conftest.err
10844   rm -f conftest.er1
10845   cat conftest.err >&5
10846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); } && {
10848          test -z "$ac_c_werror_flag" ||
10849          test ! -s conftest.err
10850        } && test -s conftest$ac_exeext && {
10851          test "$cross_compiling" = yes ||
10852          $as_test_x conftest$ac_exeext
10853        }; then
10854   ac_cv_func_dlopen=yes
10855 else
10856   $as_echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10858
10859         ac_cv_func_dlopen=no
10860 fi
10861
10862 rm -rf conftest.dSYM
10863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10864       conftest$ac_exeext conftest.$ac_ext
10865 fi
10866 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10867 $as_echo "$ac_cv_func_dlopen" >&6; }
10868 if test "x$ac_cv_func_dlopen" = x""yes; then
10869   lt_cv_dlopen="dlopen"
10870 else
10871   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10872 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10873 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10874   $as_echo_n "(cached) " >&6
10875 else
10876   ac_check_lib_save_LIBS=$LIBS
10877 LIBS="-ldl  $LIBS"
10878 cat >conftest.$ac_ext <<_ACEOF
10879 /* confdefs.h.  */
10880 _ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h.  */
10884
10885 /* Override any GCC internal prototype to avoid an error.
10886    Use char because int might match the return type of a GCC
10887    builtin and then its argument prototype would still apply.  */
10888 #ifdef __cplusplus
10889 extern "C"
10890 #endif
10891 char dlopen ();
10892 int
10893 main ()
10894 {
10895 return dlopen ();
10896   ;
10897   return 0;
10898 }
10899 _ACEOF
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (ac_try="$ac_link"
10902 case "(($ac_try" in
10903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904   *) ac_try_echo=$ac_try;;
10905 esac
10906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10907 $as_echo "$ac_try_echo") >&5
10908   (eval "$ac_link") 2>conftest.er1
10909   ac_status=$?
10910   grep -v '^ *+' conftest.er1 >conftest.err
10911   rm -f conftest.er1
10912   cat conftest.err >&5
10913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914   (exit $ac_status); } && {
10915          test -z "$ac_c_werror_flag" ||
10916          test ! -s conftest.err
10917        } && test -s conftest$ac_exeext && {
10918          test "$cross_compiling" = yes ||
10919          $as_test_x conftest$ac_exeext
10920        }; then
10921   ac_cv_lib_dl_dlopen=yes
10922 else
10923   $as_echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10925
10926         ac_cv_lib_dl_dlopen=no
10927 fi
10928
10929 rm -rf conftest.dSYM
10930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10931       conftest$ac_exeext conftest.$ac_ext
10932 LIBS=$ac_check_lib_save_LIBS
10933 fi
10934 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10935 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10936 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10937   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10938 else
10939   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10940 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10941 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10942   $as_echo_n "(cached) " >&6
10943 else
10944   ac_check_lib_save_LIBS=$LIBS
10945 LIBS="-lsvld  $LIBS"
10946 cat >conftest.$ac_ext <<_ACEOF
10947 /* confdefs.h.  */
10948 _ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h.  */
10952
10953 /* Override any GCC internal prototype to avoid an error.
10954    Use char because int might match the return type of a GCC
10955    builtin and then its argument prototype would still apply.  */
10956 #ifdef __cplusplus
10957 extern "C"
10958 #endif
10959 char dlopen ();
10960 int
10961 main ()
10962 {
10963 return dlopen ();
10964   ;
10965   return 0;
10966 }
10967 _ACEOF
10968 rm -f conftest.$ac_objext conftest$ac_exeext
10969 if { (ac_try="$ac_link"
10970 case "(($ac_try" in
10971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972   *) ac_try_echo=$ac_try;;
10973 esac
10974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10975 $as_echo "$ac_try_echo") >&5
10976   (eval "$ac_link") 2>conftest.er1
10977   ac_status=$?
10978   grep -v '^ *+' conftest.er1 >conftest.err
10979   rm -f conftest.er1
10980   cat conftest.err >&5
10981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); } && {
10983          test -z "$ac_c_werror_flag" ||
10984          test ! -s conftest.err
10985        } && test -s conftest$ac_exeext && {
10986          test "$cross_compiling" = yes ||
10987          $as_test_x conftest$ac_exeext
10988        }; then
10989   ac_cv_lib_svld_dlopen=yes
10990 else
10991   $as_echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10993
10994         ac_cv_lib_svld_dlopen=no
10995 fi
10996
10997 rm -rf conftest.dSYM
10998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10999       conftest$ac_exeext conftest.$ac_ext
11000 LIBS=$ac_check_lib_save_LIBS
11001 fi
11002 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11003 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11004 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11005   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11006 else
11007   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11008 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11009 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11010   $as_echo_n "(cached) " >&6
11011 else
11012   ac_check_lib_save_LIBS=$LIBS
11013 LIBS="-ldld  $LIBS"
11014 cat >conftest.$ac_ext <<_ACEOF
11015 /* confdefs.h.  */
11016 _ACEOF
11017 cat confdefs.h >>conftest.$ac_ext
11018 cat >>conftest.$ac_ext <<_ACEOF
11019 /* end confdefs.h.  */
11020
11021 /* Override any GCC internal prototype to avoid an error.
11022    Use char because int might match the return type of a GCC
11023    builtin and then its argument prototype would still apply.  */
11024 #ifdef __cplusplus
11025 extern "C"
11026 #endif
11027 char dld_link ();
11028 int
11029 main ()
11030 {
11031 return dld_link ();
11032   ;
11033   return 0;
11034 }
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040   *) ac_try_echo=$ac_try;;
11041 esac
11042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043 $as_echo "$ac_try_echo") >&5
11044   (eval "$ac_link") 2>conftest.er1
11045   ac_status=$?
11046   grep -v '^ *+' conftest.er1 >conftest.err
11047   rm -f conftest.er1
11048   cat conftest.err >&5
11049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); } && {
11051          test -z "$ac_c_werror_flag" ||
11052          test ! -s conftest.err
11053        } && test -s conftest$ac_exeext && {
11054          test "$cross_compiling" = yes ||
11055          $as_test_x conftest$ac_exeext
11056        }; then
11057   ac_cv_lib_dld_dld_link=yes
11058 else
11059   $as_echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11061
11062         ac_cv_lib_dld_dld_link=no
11063 fi
11064
11065 rm -rf conftest.dSYM
11066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11067       conftest$ac_exeext conftest.$ac_ext
11068 LIBS=$ac_check_lib_save_LIBS
11069 fi
11070 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11071 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11072 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11073   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11074 fi
11075
11076
11077 fi
11078
11079
11080 fi
11081
11082
11083 fi
11084
11085
11086 fi
11087
11088
11089 fi
11090
11091     ;;
11092   esac
11093
11094   if test "x$lt_cv_dlopen" != xno; then
11095     enable_dlopen=yes
11096   else
11097     enable_dlopen=no
11098   fi
11099
11100   case $lt_cv_dlopen in
11101   dlopen)
11102     save_CPPFLAGS="$CPPFLAGS"
11103     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11104
11105     save_LDFLAGS="$LDFLAGS"
11106     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11107
11108     save_LIBS="$LIBS"
11109     LIBS="$lt_cv_dlopen_libs $LIBS"
11110
11111     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11112 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11113 if test "${lt_cv_dlopen_self+set}" = set; then
11114   $as_echo_n "(cached) " >&6
11115 else
11116           if test "$cross_compiling" = yes; then :
11117   lt_cv_dlopen_self=cross
11118 else
11119   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11120   lt_status=$lt_dlunknown
11121   cat > conftest.$ac_ext <<_LT_EOF
11122 #line 11122 "configure"
11123 #include "confdefs.h"
11124
11125 #if HAVE_DLFCN_H
11126 #include <dlfcn.h>
11127 #endif
11128
11129 #include <stdio.h>
11130
11131 #ifdef RTLD_GLOBAL
11132 #  define LT_DLGLOBAL           RTLD_GLOBAL
11133 #else
11134 #  ifdef DL_GLOBAL
11135 #    define LT_DLGLOBAL         DL_GLOBAL
11136 #  else
11137 #    define LT_DLGLOBAL         0
11138 #  endif
11139 #endif
11140
11141 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11142    find out it does not work in some platform. */
11143 #ifndef LT_DLLAZY_OR_NOW
11144 #  ifdef RTLD_LAZY
11145 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11146 #  else
11147 #    ifdef DL_LAZY
11148 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11149 #    else
11150 #      ifdef RTLD_NOW
11151 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11152 #      else
11153 #        ifdef DL_NOW
11154 #          define LT_DLLAZY_OR_NOW      DL_NOW
11155 #        else
11156 #          define LT_DLLAZY_OR_NOW      0
11157 #        endif
11158 #      endif
11159 #    endif
11160 #  endif
11161 #endif
11162
11163 void fnord() { int i=42;}
11164 int main ()
11165 {
11166   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11167   int status = $lt_dlunknown;
11168
11169   if (self)
11170     {
11171       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11172       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11173       /* dlclose (self); */
11174     }
11175   else
11176     puts (dlerror ());
11177
11178   return status;
11179 }
11180 _LT_EOF
11181   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11182   (eval $ac_link) 2>&5
11183   ac_status=$?
11184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11186     (./conftest; exit; ) >&5 2>/dev/null
11187     lt_status=$?
11188     case x$lt_status in
11189       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11190       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11191       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11192     esac
11193   else :
11194     # compilation failed
11195     lt_cv_dlopen_self=no
11196   fi
11197 fi
11198 rm -fr conftest*
11199
11200
11201 fi
11202 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11203 $as_echo "$lt_cv_dlopen_self" >&6; }
11204
11205     if test "x$lt_cv_dlopen_self" = xyes; then
11206       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11207       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11208 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11209 if test "${lt_cv_dlopen_self_static+set}" = set; then
11210   $as_echo_n "(cached) " >&6
11211 else
11212           if test "$cross_compiling" = yes; then :
11213   lt_cv_dlopen_self_static=cross
11214 else
11215   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11216   lt_status=$lt_dlunknown
11217   cat > conftest.$ac_ext <<_LT_EOF
11218 #line 11218 "configure"
11219 #include "confdefs.h"
11220
11221 #if HAVE_DLFCN_H
11222 #include <dlfcn.h>
11223 #endif
11224
11225 #include <stdio.h>
11226
11227 #ifdef RTLD_GLOBAL
11228 #  define LT_DLGLOBAL           RTLD_GLOBAL
11229 #else
11230 #  ifdef DL_GLOBAL
11231 #    define LT_DLGLOBAL         DL_GLOBAL
11232 #  else
11233 #    define LT_DLGLOBAL         0
11234 #  endif
11235 #endif
11236
11237 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11238    find out it does not work in some platform. */
11239 #ifndef LT_DLLAZY_OR_NOW
11240 #  ifdef RTLD_LAZY
11241 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11242 #  else
11243 #    ifdef DL_LAZY
11244 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11245 #    else
11246 #      ifdef RTLD_NOW
11247 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11248 #      else
11249 #        ifdef DL_NOW
11250 #          define LT_DLLAZY_OR_NOW      DL_NOW
11251 #        else
11252 #          define LT_DLLAZY_OR_NOW      0
11253 #        endif
11254 #      endif
11255 #    endif
11256 #  endif
11257 #endif
11258
11259 void fnord() { int i=42;}
11260 int main ()
11261 {
11262   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11263   int status = $lt_dlunknown;
11264
11265   if (self)
11266     {
11267       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11268       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11269       /* dlclose (self); */
11270     }
11271   else
11272     puts (dlerror ());
11273
11274   return status;
11275 }
11276 _LT_EOF
11277   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11278   (eval $ac_link) 2>&5
11279   ac_status=$?
11280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11282     (./conftest; exit; ) >&5 2>/dev/null
11283     lt_status=$?
11284     case x$lt_status in
11285       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11286       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11287       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11288     esac
11289   else :
11290     # compilation failed
11291     lt_cv_dlopen_self_static=no
11292   fi
11293 fi
11294 rm -fr conftest*
11295
11296
11297 fi
11298 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11299 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11300     fi
11301
11302     CPPFLAGS="$save_CPPFLAGS"
11303     LDFLAGS="$save_LDFLAGS"
11304     LIBS="$save_LIBS"
11305     ;;
11306   esac
11307
11308   case $lt_cv_dlopen_self in
11309   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11310   *) enable_dlopen_self=unknown ;;
11311   esac
11312
11313   case $lt_cv_dlopen_self_static in
11314   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11315   *) enable_dlopen_self_static=unknown ;;
11316   esac
11317 fi
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335 striplib=
11336 old_striplib=
11337 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11338 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11339 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11340   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11341   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11342   { $as_echo "$as_me:$LINENO: result: yes" >&5
11343 $as_echo "yes" >&6; }
11344 else
11345 # FIXME - insert some real tests, host_os isn't really good enough
11346   case $host_os in
11347   darwin*)
11348     if test -n "$STRIP" ; then
11349       striplib="$STRIP -x"
11350       old_striplib="$STRIP -S"
11351       { $as_echo "$as_me:$LINENO: result: yes" >&5
11352 $as_echo "yes" >&6; }
11353     else
11354       { $as_echo "$as_me:$LINENO: result: no" >&5
11355 $as_echo "no" >&6; }
11356     fi
11357     ;;
11358   *)
11359     { $as_echo "$as_me:$LINENO: result: no" >&5
11360 $as_echo "no" >&6; }
11361     ;;
11362   esac
11363 fi
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376   # Report which library types will actually be built
11377   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11378 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11379   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11380 $as_echo "$can_build_shared" >&6; }
11381
11382   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11383 $as_echo_n "checking whether to build shared libraries... " >&6; }
11384   test "$can_build_shared" = "no" && enable_shared=no
11385
11386   # On AIX, shared libraries and static libraries use the same namespace, and
11387   # are all built from PIC.
11388   case $host_os in
11389   aix3*)
11390     test "$enable_shared" = yes && enable_static=no
11391     if test -n "$RANLIB"; then
11392       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11393       postinstall_cmds='$RANLIB $lib'
11394     fi
11395     ;;
11396
11397   aix[4-9]*)
11398     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11399       test "$enable_shared" = yes && enable_static=no
11400     fi
11401     ;;
11402   esac
11403   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11404 $as_echo "$enable_shared" >&6; }
11405
11406   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11407 $as_echo_n "checking whether to build static libraries... " >&6; }
11408   # Make sure either enable_shared or enable_static is yes.
11409   test "$enable_shared" = yes || enable_static=yes
11410   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11411 $as_echo "$enable_static" >&6; }
11412
11413
11414
11415
11416 fi
11417 ac_ext=c
11418 ac_cpp='$CPP $CPPFLAGS'
11419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11422
11423 CC="$lt_save_CC"
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437         ac_config_commands="$ac_config_commands libtool"
11438
11439
11440
11441
11442 # Only expand once:
11443
11444
11445
11446 # AC_PROG_INSTALL will generate an install target so that users may
11447 # just type 'make install' to install the software.
11448 # Find a good install program.  We prefer a C program (faster),
11449 # so one script is as good as another.  But avoid the broken or
11450 # incompatible versions:
11451 # SysV /etc/install, /usr/sbin/install
11452 # SunOS /usr/etc/install
11453 # IRIX /sbin/install
11454 # AIX /bin/install
11455 # AmigaOS /C/install, which installs bootblocks on floppy discs
11456 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11457 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11458 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11459 # OS/2's system install, which has a completely different semantic
11460 # ./install, which can be erroneously created by make from ./install.sh.
11461 # Reject install programs that cannot install multiple files.
11462 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11463 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11464 if test -z "$INSTALL"; then
11465 if test "${ac_cv_path_install+set}" = set; then
11466   $as_echo_n "(cached) " >&6
11467 else
11468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11469 for as_dir in $PATH
11470 do
11471   IFS=$as_save_IFS
11472   test -z "$as_dir" && as_dir=.
11473   # Account for people who put trailing slashes in PATH elements.
11474 case $as_dir/ in
11475   ./ | .// | /cC/* | \
11476   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11477   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11478   /usr/ucb/* ) ;;
11479   *)
11480     # OSF1 and SCO ODT 3.0 have their own names for install.
11481     # Don't use installbsd from OSF since it installs stuff as root
11482     # by default.
11483     for ac_prog in ginstall scoinst install; do
11484       for ac_exec_ext in '' $ac_executable_extensions; do
11485         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11486           if test $ac_prog = install &&
11487             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11488             # AIX install.  It has an incompatible calling convention.
11489             :
11490           elif test $ac_prog = install &&
11491             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11492             # program-specific install script used by HP pwplus--don't use.
11493             :
11494           else
11495             rm -rf conftest.one conftest.two conftest.dir
11496             echo one > conftest.one
11497             echo two > conftest.two
11498             mkdir conftest.dir
11499             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11500               test -s conftest.one && test -s conftest.two &&
11501               test -s conftest.dir/conftest.one &&
11502               test -s conftest.dir/conftest.two
11503             then
11504               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11505               break 3
11506             fi
11507           fi
11508         fi
11509       done
11510     done
11511     ;;
11512 esac
11513
11514 done
11515 IFS=$as_save_IFS
11516
11517 rm -rf conftest.one conftest.two conftest.dir
11518
11519 fi
11520   if test "${ac_cv_path_install+set}" = set; then
11521     INSTALL=$ac_cv_path_install
11522   else
11523     # As a last resort, use the slow shell script.  Don't cache a
11524     # value for INSTALL within a source directory, because that will
11525     # break other packages using the cache if that directory is
11526     # removed, or if the value is a relative name.
11527     INSTALL=$ac_install_sh
11528   fi
11529 fi
11530 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
11531 $as_echo "$INSTALL" >&6; }
11532
11533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11534 # It thinks the first close brace ends the variable substitution.
11535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11536
11537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11538
11539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11540
11541
11542 # check for C++ preprocessor and compiler and the library compiler
11543 # (might change the compiler flags)
11544 #
11545 # Determine a C compiler to use. If using the GNU C compiler, set
11546 # shell variable GCC to `yes'. If output variable CFLAGS was not
11547 # already set, set it to `-g -O2' for the GNU C compiler (`-O2' on
11548 # systems where GCC does not accept `-g'), or `-g' for other
11549 # compilers.
11550 ac_ext=c
11551 ac_cpp='$CPP $CPPFLAGS'
11552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11555 if test -n "$ac_tool_prefix"; then
11556   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11557 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11558 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11559 $as_echo_n "checking for $ac_word... " >&6; }
11560 if test "${ac_cv_prog_CC+set}" = set; then
11561   $as_echo_n "(cached) " >&6
11562 else
11563   if test -n "$CC"; then
11564   ac_cv_prog_CC="$CC" # Let the user override the test.
11565 else
11566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567 for as_dir in $PATH
11568 do
11569   IFS=$as_save_IFS
11570   test -z "$as_dir" && as_dir=.
11571   for ac_exec_ext in '' $ac_executable_extensions; do
11572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11573     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11574     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11575     break 2
11576   fi
11577 done
11578 done
11579 IFS=$as_save_IFS
11580
11581 fi
11582 fi
11583 CC=$ac_cv_prog_CC
11584 if test -n "$CC"; then
11585   { $as_echo "$as_me:$LINENO: result: $CC" >&5
11586 $as_echo "$CC" >&6; }
11587 else
11588   { $as_echo "$as_me:$LINENO: result: no" >&5
11589 $as_echo "no" >&6; }
11590 fi
11591
11592
11593 fi
11594 if test -z "$ac_cv_prog_CC"; then
11595   ac_ct_CC=$CC
11596   # Extract the first word of "gcc", so it can be a program name with args.
11597 set dummy gcc; ac_word=$2
11598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11599 $as_echo_n "checking for $ac_word... " >&6; }
11600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11601   $as_echo_n "(cached) " >&6
11602 else
11603   if test -n "$ac_ct_CC"; then
11604   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11605 else
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11608 do
11609   IFS=$as_save_IFS
11610   test -z "$as_dir" && as_dir=.
11611   for ac_exec_ext in '' $ac_executable_extensions; do
11612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11613     ac_cv_prog_ac_ct_CC="gcc"
11614     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11615     break 2
11616   fi
11617 done
11618 done
11619 IFS=$as_save_IFS
11620
11621 fi
11622 fi
11623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11624 if test -n "$ac_ct_CC"; then
11625   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11626 $as_echo "$ac_ct_CC" >&6; }
11627 else
11628   { $as_echo "$as_me:$LINENO: result: no" >&5
11629 $as_echo "no" >&6; }
11630 fi
11631
11632   if test "x$ac_ct_CC" = x; then
11633     CC=""
11634   else
11635     case $cross_compiling:$ac_tool_warned in
11636 yes:)
11637 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11639 ac_tool_warned=yes ;;
11640 esac
11641     CC=$ac_ct_CC
11642   fi
11643 else
11644   CC="$ac_cv_prog_CC"
11645 fi
11646
11647 if test -z "$CC"; then
11648           if test -n "$ac_tool_prefix"; then
11649     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11650 set dummy ${ac_tool_prefix}cc; ac_word=$2
11651 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11652 $as_echo_n "checking for $ac_word... " >&6; }
11653 if test "${ac_cv_prog_CC+set}" = set; then
11654   $as_echo_n "(cached) " >&6
11655 else
11656   if test -n "$CC"; then
11657   ac_cv_prog_CC="$CC" # Let the user override the test.
11658 else
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11661 do
11662   IFS=$as_save_IFS
11663   test -z "$as_dir" && as_dir=.
11664   for ac_exec_ext in '' $ac_executable_extensions; do
11665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11666     ac_cv_prog_CC="${ac_tool_prefix}cc"
11667     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11668     break 2
11669   fi
11670 done
11671 done
11672 IFS=$as_save_IFS
11673
11674 fi
11675 fi
11676 CC=$ac_cv_prog_CC
11677 if test -n "$CC"; then
11678   { $as_echo "$as_me:$LINENO: result: $CC" >&5
11679 $as_echo "$CC" >&6; }
11680 else
11681   { $as_echo "$as_me:$LINENO: result: no" >&5
11682 $as_echo "no" >&6; }
11683 fi
11684
11685
11686   fi
11687 fi
11688 if test -z "$CC"; then
11689   # Extract the first word of "cc", so it can be a program name with args.
11690 set dummy cc; ac_word=$2
11691 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11692 $as_echo_n "checking for $ac_word... " >&6; }
11693 if test "${ac_cv_prog_CC+set}" = set; then
11694   $as_echo_n "(cached) " >&6
11695 else
11696   if test -n "$CC"; then
11697   ac_cv_prog_CC="$CC" # Let the user override the test.
11698 else
11699   ac_prog_rejected=no
11700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701 for as_dir in $PATH
11702 do
11703   IFS=$as_save_IFS
11704   test -z "$as_dir" && as_dir=.
11705   for ac_exec_ext in '' $ac_executable_extensions; do
11706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11707     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11708        ac_prog_rejected=yes
11709        continue
11710      fi
11711     ac_cv_prog_CC="cc"
11712     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11713     break 2
11714   fi
11715 done
11716 done
11717 IFS=$as_save_IFS
11718
11719 if test $ac_prog_rejected = yes; then
11720   # We found a bogon in the path, so make sure we never use it.
11721   set dummy $ac_cv_prog_CC
11722   shift
11723   if test $# != 0; then
11724     # We chose a different compiler from the bogus one.
11725     # However, it has the same basename, so the bogon will be chosen
11726     # first if we set CC to just the basename; use the full file name.
11727     shift
11728     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11729   fi
11730 fi
11731 fi
11732 fi
11733 CC=$ac_cv_prog_CC
11734 if test -n "$CC"; then
11735   { $as_echo "$as_me:$LINENO: result: $CC" >&5
11736 $as_echo "$CC" >&6; }
11737 else
11738   { $as_echo "$as_me:$LINENO: result: no" >&5
11739 $as_echo "no" >&6; }
11740 fi
11741
11742
11743 fi
11744 if test -z "$CC"; then
11745   if test -n "$ac_tool_prefix"; then
11746   for ac_prog in cl.exe
11747   do
11748     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11750 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11751 $as_echo_n "checking for $ac_word... " >&6; }
11752 if test "${ac_cv_prog_CC+set}" = set; then
11753   $as_echo_n "(cached) " >&6
11754 else
11755   if test -n "$CC"; then
11756   ac_cv_prog_CC="$CC" # Let the user override the test.
11757 else
11758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11759 for as_dir in $PATH
11760 do
11761   IFS=$as_save_IFS
11762   test -z "$as_dir" && as_dir=.
11763   for ac_exec_ext in '' $ac_executable_extensions; do
11764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11765     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11766     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11767     break 2
11768   fi
11769 done
11770 done
11771 IFS=$as_save_IFS
11772
11773 fi
11774 fi
11775 CC=$ac_cv_prog_CC
11776 if test -n "$CC"; then
11777   { $as_echo "$as_me:$LINENO: result: $CC" >&5
11778 $as_echo "$CC" >&6; }
11779 else
11780   { $as_echo "$as_me:$LINENO: result: no" >&5
11781 $as_echo "no" >&6; }
11782 fi
11783
11784
11785     test -n "$CC" && break
11786   done
11787 fi
11788 if test -z "$CC"; then
11789   ac_ct_CC=$CC
11790   for ac_prog in cl.exe
11791 do
11792   # Extract the first word of "$ac_prog", so it can be a program name with args.
11793 set dummy $ac_prog; ac_word=$2
11794 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11795 $as_echo_n "checking for $ac_word... " >&6; }
11796 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11797   $as_echo_n "(cached) " >&6
11798 else
11799   if test -n "$ac_ct_CC"; then
11800   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11801 else
11802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11803 for as_dir in $PATH
11804 do
11805   IFS=$as_save_IFS
11806   test -z "$as_dir" && as_dir=.
11807   for ac_exec_ext in '' $ac_executable_extensions; do
11808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11809     ac_cv_prog_ac_ct_CC="$ac_prog"
11810     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11811     break 2
11812   fi
11813 done
11814 done
11815 IFS=$as_save_IFS
11816
11817 fi
11818 fi
11819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11820 if test -n "$ac_ct_CC"; then
11821   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11822 $as_echo "$ac_ct_CC" >&6; }
11823 else
11824   { $as_echo "$as_me:$LINENO: result: no" >&5
11825 $as_echo "no" >&6; }
11826 fi
11827
11828
11829   test -n "$ac_ct_CC" && break
11830 done
11831
11832   if test "x$ac_ct_CC" = x; then
11833     CC=""
11834   else
11835     case $cross_compiling:$ac_tool_warned in
11836 yes:)
11837 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11839 ac_tool_warned=yes ;;
11840 esac
11841     CC=$ac_ct_CC
11842   fi
11843 fi
11844
11845 fi
11846
11847
11848 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11850 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11851 See \`config.log' for more details." >&5
11852 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11853 See \`config.log' for more details." >&2;}
11854    { (exit 1); exit 1; }; }; }
11855
11856 # Provide some information about the compiler.
11857 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11858 set X $ac_compile
11859 ac_compiler=$2
11860 { (ac_try="$ac_compiler --version >&5"
11861 case "(($ac_try" in
11862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863   *) ac_try_echo=$ac_try;;
11864 esac
11865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11866 $as_echo "$ac_try_echo") >&5
11867   (eval "$ac_compiler --version >&5") 2>&5
11868   ac_status=$?
11869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); }
11871 { (ac_try="$ac_compiler -v >&5"
11872 case "(($ac_try" in
11873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874   *) ac_try_echo=$ac_try;;
11875 esac
11876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11877 $as_echo "$ac_try_echo") >&5
11878   (eval "$ac_compiler -v >&5") 2>&5
11879   ac_status=$?
11880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); }
11882 { (ac_try="$ac_compiler -V >&5"
11883 case "(($ac_try" in
11884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885   *) ac_try_echo=$ac_try;;
11886 esac
11887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11888 $as_echo "$ac_try_echo") >&5
11889   (eval "$ac_compiler -V >&5") 2>&5
11890   ac_status=$?
11891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); }
11893
11894 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11895 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11896 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11897   $as_echo_n "(cached) " >&6
11898 else
11899   cat >conftest.$ac_ext <<_ACEOF
11900 /* confdefs.h.  */
11901 _ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h.  */
11905
11906 int
11907 main ()
11908 {
11909 #ifndef __GNUC__
11910        choke me
11911 #endif
11912
11913   ;
11914   return 0;
11915 }
11916 _ACEOF
11917 rm -f conftest.$ac_objext
11918 if { (ac_try="$ac_compile"
11919 case "(($ac_try" in
11920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921   *) ac_try_echo=$ac_try;;
11922 esac
11923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11924 $as_echo "$ac_try_echo") >&5
11925   (eval "$ac_compile") 2>conftest.er1
11926   ac_status=$?
11927   grep -v '^ *+' conftest.er1 >conftest.err
11928   rm -f conftest.er1
11929   cat conftest.err >&5
11930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); } && {
11932          test -z "$ac_c_werror_flag" ||
11933          test ! -s conftest.err
11934        } && test -s conftest.$ac_objext; then
11935   ac_compiler_gnu=yes
11936 else
11937   $as_echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11939
11940         ac_compiler_gnu=no
11941 fi
11942
11943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11945
11946 fi
11947 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11948 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11949 if test $ac_compiler_gnu = yes; then
11950   GCC=yes
11951 else
11952   GCC=
11953 fi
11954 ac_test_CFLAGS=${CFLAGS+set}
11955 ac_save_CFLAGS=$CFLAGS
11956 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11957 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11958 if test "${ac_cv_prog_cc_g+set}" = set; then
11959   $as_echo_n "(cached) " >&6
11960 else
11961   ac_save_c_werror_flag=$ac_c_werror_flag
11962    ac_c_werror_flag=yes
11963    ac_cv_prog_cc_g=no
11964    CFLAGS="-g"
11965    cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h.  */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h.  */
11971
11972 int
11973 main ()
11974 {
11975
11976   ;
11977   return 0;
11978 }
11979 _ACEOF
11980 rm -f conftest.$ac_objext
11981 if { (ac_try="$ac_compile"
11982 case "(($ac_try" in
11983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984   *) ac_try_echo=$ac_try;;
11985 esac
11986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11987 $as_echo "$ac_try_echo") >&5
11988   (eval "$ac_compile") 2>conftest.er1
11989   ac_status=$?
11990   grep -v '^ *+' conftest.er1 >conftest.err
11991   rm -f conftest.er1
11992   cat conftest.err >&5
11993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); } && {
11995          test -z "$ac_c_werror_flag" ||
11996          test ! -s conftest.err
11997        } && test -s conftest.$ac_objext; then
11998   ac_cv_prog_cc_g=yes
11999 else
12000   $as_echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12002
12003         CFLAGS=""
12004       cat >conftest.$ac_ext <<_ACEOF
12005 /* confdefs.h.  */
12006 _ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h.  */
12010
12011 int
12012 main ()
12013 {
12014
12015   ;
12016   return 0;
12017 }
12018 _ACEOF
12019 rm -f conftest.$ac_objext
12020 if { (ac_try="$ac_compile"
12021 case "(($ac_try" in
12022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023   *) ac_try_echo=$ac_try;;
12024 esac
12025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12026 $as_echo "$ac_try_echo") >&5
12027   (eval "$ac_compile") 2>conftest.er1
12028   ac_status=$?
12029   grep -v '^ *+' conftest.er1 >conftest.err
12030   rm -f conftest.er1
12031   cat conftest.err >&5
12032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033   (exit $ac_status); } && {
12034          test -z "$ac_c_werror_flag" ||
12035          test ! -s conftest.err
12036        } && test -s conftest.$ac_objext; then
12037   :
12038 else
12039   $as_echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12041
12042         ac_c_werror_flag=$ac_save_c_werror_flag
12043          CFLAGS="-g"
12044          cat >conftest.$ac_ext <<_ACEOF
12045 /* confdefs.h.  */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h.  */
12050
12051 int
12052 main ()
12053 {
12054
12055   ;
12056   return 0;
12057 }
12058 _ACEOF
12059 rm -f conftest.$ac_objext
12060 if { (ac_try="$ac_compile"
12061 case "(($ac_try" in
12062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063   *) ac_try_echo=$ac_try;;
12064 esac
12065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12066 $as_echo "$ac_try_echo") >&5
12067   (eval "$ac_compile") 2>conftest.er1
12068   ac_status=$?
12069   grep -v '^ *+' conftest.er1 >conftest.err
12070   rm -f conftest.er1
12071   cat conftest.err >&5
12072   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073   (exit $ac_status); } && {
12074          test -z "$ac_c_werror_flag" ||
12075          test ! -s conftest.err
12076        } && test -s conftest.$ac_objext; then
12077   ac_cv_prog_cc_g=yes
12078 else
12079   $as_echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12081
12082
12083 fi
12084
12085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12086 fi
12087
12088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12089 fi
12090
12091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092    ac_c_werror_flag=$ac_save_c_werror_flag
12093 fi
12094 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12095 $as_echo "$ac_cv_prog_cc_g" >&6; }
12096 if test "$ac_test_CFLAGS" = set; then
12097   CFLAGS=$ac_save_CFLAGS
12098 elif test $ac_cv_prog_cc_g = yes; then
12099   if test "$GCC" = yes; then
12100     CFLAGS="-g -O2"
12101   else
12102     CFLAGS="-g"
12103   fi
12104 else
12105   if test "$GCC" = yes; then
12106     CFLAGS="-O2"
12107   else
12108     CFLAGS=
12109   fi
12110 fi
12111 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12112 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12113 if test "${ac_cv_prog_cc_c89+set}" = set; then
12114   $as_echo_n "(cached) " >&6
12115 else
12116   ac_cv_prog_cc_c89=no
12117 ac_save_CC=$CC
12118 cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h.  */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h.  */
12124 #include <stdarg.h>
12125 #include <stdio.h>
12126 #include <sys/types.h>
12127 #include <sys/stat.h>
12128 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12129 struct buf { int x; };
12130 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12131 static char *e (p, i)
12132      char **p;
12133      int i;
12134 {
12135   return p[i];
12136 }
12137 static char *f (char * (*g) (char **, int), char **p, ...)
12138 {
12139   char *s;
12140   va_list v;
12141   va_start (v,p);
12142   s = g (p, va_arg (v,int));
12143   va_end (v);
12144   return s;
12145 }
12146
12147 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12148    function prototypes and stuff, but not '\xHH' hex character constants.
12149    These don't provoke an error unfortunately, instead are silently treated
12150    as 'x'.  The following induces an error, until -std is added to get
12151    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12152    array size at least.  It's necessary to write '\x00'==0 to get something
12153    that's true only with -std.  */
12154 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12155
12156 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12157    inside strings and character constants.  */
12158 #define FOO(x) 'x'
12159 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12160
12161 int test (int i, double x);
12162 struct s1 {int (*f) (int a);};
12163 struct s2 {int (*f) (double a);};
12164 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12165 int argc;
12166 char **argv;
12167 int
12168 main ()
12169 {
12170 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12171   ;
12172   return 0;
12173 }
12174 _ACEOF
12175 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12176         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12177 do
12178   CC="$ac_save_CC $ac_arg"
12179   rm -f conftest.$ac_objext
12180 if { (ac_try="$ac_compile"
12181 case "(($ac_try" in
12182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183   *) ac_try_echo=$ac_try;;
12184 esac
12185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12186 $as_echo "$ac_try_echo") >&5
12187   (eval "$ac_compile") 2>conftest.er1
12188   ac_status=$?
12189   grep -v '^ *+' conftest.er1 >conftest.err
12190   rm -f conftest.er1
12191   cat conftest.err >&5
12192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); } && {
12194          test -z "$ac_c_werror_flag" ||
12195          test ! -s conftest.err
12196        } && test -s conftest.$ac_objext; then
12197   ac_cv_prog_cc_c89=$ac_arg
12198 else
12199   $as_echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12201
12202
12203 fi
12204
12205 rm -f core conftest.err conftest.$ac_objext
12206   test "x$ac_cv_prog_cc_c89" != "xno" && break
12207 done
12208 rm -f conftest.$ac_ext
12209 CC=$ac_save_CC
12210
12211 fi
12212 # AC_CACHE_VAL
12213 case "x$ac_cv_prog_cc_c89" in
12214   x)
12215     { $as_echo "$as_me:$LINENO: result: none needed" >&5
12216 $as_echo "none needed" >&6; } ;;
12217   xno)
12218     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12219 $as_echo "unsupported" >&6; } ;;
12220   *)
12221     CC="$CC $ac_cv_prog_cc_c89"
12222     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12223 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12224 esac
12225
12226
12227 ac_ext=c
12228 ac_cpp='$CPP $CPPFLAGS'
12229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12232
12233 depcc="$CC"   am_compiler_list=
12234
12235 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12236 $as_echo_n "checking dependency style of $depcc... " >&6; }
12237 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12238   $as_echo_n "(cached) " >&6
12239 else
12240   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12241   # We make a subdir and do the tests there.  Otherwise we can end up
12242   # making bogus files that we don't know about and never remove.  For
12243   # instance it was reported that on HP-UX the gcc test will end up
12244   # making a dummy file named `D' -- because `-MD' means `put the output
12245   # in D'.
12246   mkdir conftest.dir
12247   # Copy depcomp to subdir because otherwise we won't find it if we're
12248   # using a relative directory.
12249   cp "$am_depcomp" conftest.dir
12250   cd conftest.dir
12251   # We will build objects and dependencies in a subdirectory because
12252   # it helps to detect inapplicable dependency modes.  For instance
12253   # both Tru64's cc and ICC support -MD to output dependencies as a
12254   # side effect of compilation, but ICC will put the dependencies in
12255   # the current directory while Tru64 will put them in the object
12256   # directory.
12257   mkdir sub
12258
12259   am_cv_CC_dependencies_compiler_type=none
12260   if test "$am_compiler_list" = ""; then
12261      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12262   fi
12263   for depmode in $am_compiler_list; do
12264     # Setup a source with many dependencies, because some compilers
12265     # like to wrap large dependency lists on column 80 (with \), and
12266     # we should not choose a depcomp mode which is confused by this.
12267     #
12268     # We need to recreate these files for each test, as the compiler may
12269     # overwrite some of them when testing with obscure command lines.
12270     # This happens at least with the AIX C compiler.
12271     : > sub/conftest.c
12272     for i in 1 2 3 4 5 6; do
12273       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12274       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12275       # Solaris 8's {/usr,}/bin/sh.
12276       touch sub/conftst$i.h
12277     done
12278     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12279
12280     case $depmode in
12281     nosideeffect)
12282       # after this tag, mechanisms are not by side-effect, so they'll
12283       # only be used when explicitly requested
12284       if test "x$enable_dependency_tracking" = xyes; then
12285         continue
12286       else
12287         break
12288       fi
12289       ;;
12290     none) break ;;
12291     esac
12292     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12293     # mode.  It turns out that the SunPro C++ compiler does not properly
12294     # handle `-M -o', and we need to detect this.
12295     if depmode=$depmode \
12296        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12297        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12298        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12299          >/dev/null 2>conftest.err &&
12300        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12301        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12302        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12303        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12304       # icc doesn't choke on unknown options, it will just issue warnings
12305       # or remarks (even with -Werror).  So we grep stderr for any message
12306       # that says an option was ignored or not supported.
12307       # When given -MP, icc 7.0 and 7.1 complain thusly:
12308       #   icc: Command line warning: ignoring option '-M'; no argument required
12309       # The diagnosis changed in icc 8.0:
12310       #   icc: Command line remark: option '-MP' not supported
12311       if (grep 'ignoring option' conftest.err ||
12312           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12313         am_cv_CC_dependencies_compiler_type=$depmode
12314         break
12315       fi
12316     fi
12317   done
12318
12319   cd ..
12320   rm -rf conftest.dir
12321 else
12322   am_cv_CC_dependencies_compiler_type=none
12323 fi
12324
12325 fi
12326 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12327 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12328 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12329
12330  if
12331   test "x$enable_dependency_tracking" != xno \
12332   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12333   am__fastdepCC_TRUE=
12334   am__fastdepCC_FALSE='#'
12335 else
12336   am__fastdepCC_TRUE='#'
12337   am__fastdepCC_FALSE=
12338 fi
12339
12340
12341 # Set output variable CPP to a command that runs the C preprocessor.
12342 ac_ext=c
12343 ac_cpp='$CPP $CPPFLAGS'
12344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12347 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12348 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12349 # On Suns, sometimes $CPP names a directory.
12350 if test -n "$CPP" && test -d "$CPP"; then
12351   CPP=
12352 fi
12353 if test -z "$CPP"; then
12354   if test "${ac_cv_prog_CPP+set}" = set; then
12355   $as_echo_n "(cached) " >&6
12356 else
12357       # Double quotes because CPP needs to be expanded
12358     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12359     do
12360       ac_preproc_ok=false
12361 for ac_c_preproc_warn_flag in '' yes
12362 do
12363   # Use a header file that comes with gcc, so configuring glibc
12364   # with a fresh cross-compiler works.
12365   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12366   # <limits.h> exists even on freestanding compilers.
12367   # On the NeXT, cc -E runs the code through the compiler's parser,
12368   # not just through cpp. "Syntax error" is here to catch this case.
12369   cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h.  */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h.  */
12375 #ifdef __STDC__
12376 # include <limits.h>
12377 #else
12378 # include <assert.h>
12379 #endif
12380                      Syntax error
12381 _ACEOF
12382 if { (ac_try="$ac_cpp conftest.$ac_ext"
12383 case "(($ac_try" in
12384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385   *) ac_try_echo=$ac_try;;
12386 esac
12387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12388 $as_echo "$ac_try_echo") >&5
12389   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12390   ac_status=$?
12391   grep -v '^ *+' conftest.er1 >conftest.err
12392   rm -f conftest.er1
12393   cat conftest.err >&5
12394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395   (exit $ac_status); } >/dev/null && {
12396          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12397          test ! -s conftest.err
12398        }; then
12399   :
12400 else
12401   $as_echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12403
12404   # Broken: fails on valid input.
12405 continue
12406 fi
12407
12408 rm -f conftest.err conftest.$ac_ext
12409
12410   # OK, works on sane cases.  Now check whether nonexistent headers
12411   # can be detected and how.
12412   cat >conftest.$ac_ext <<_ACEOF
12413 /* confdefs.h.  */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h.  */
12418 #include <ac_nonexistent.h>
12419 _ACEOF
12420 if { (ac_try="$ac_cpp conftest.$ac_ext"
12421 case "(($ac_try" in
12422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423   *) ac_try_echo=$ac_try;;
12424 esac
12425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12426 $as_echo "$ac_try_echo") >&5
12427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12428   ac_status=$?
12429   grep -v '^ *+' conftest.er1 >conftest.err
12430   rm -f conftest.er1
12431   cat conftest.err >&5
12432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); } >/dev/null && {
12434          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12435          test ! -s conftest.err
12436        }; then
12437   # Broken: success on invalid input.
12438 continue
12439 else
12440   $as_echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12442
12443   # Passes both tests.
12444 ac_preproc_ok=:
12445 break
12446 fi
12447
12448 rm -f conftest.err conftest.$ac_ext
12449
12450 done
12451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12452 rm -f conftest.err conftest.$ac_ext
12453 if $ac_preproc_ok; then
12454   break
12455 fi
12456
12457     done
12458     ac_cv_prog_CPP=$CPP
12459
12460 fi
12461   CPP=$ac_cv_prog_CPP
12462 else
12463   ac_cv_prog_CPP=$CPP
12464 fi
12465 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
12466 $as_echo "$CPP" >&6; }
12467 ac_preproc_ok=false
12468 for ac_c_preproc_warn_flag in '' yes
12469 do
12470   # Use a header file that comes with gcc, so configuring glibc
12471   # with a fresh cross-compiler works.
12472   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12473   # <limits.h> exists even on freestanding compilers.
12474   # On the NeXT, cc -E runs the code through the compiler's parser,
12475   # not just through cpp. "Syntax error" is here to catch this case.
12476   cat >conftest.$ac_ext <<_ACEOF
12477 /* confdefs.h.  */
12478 _ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h.  */
12482 #ifdef __STDC__
12483 # include <limits.h>
12484 #else
12485 # include <assert.h>
12486 #endif
12487                      Syntax error
12488 _ACEOF
12489 if { (ac_try="$ac_cpp conftest.$ac_ext"
12490 case "(($ac_try" in
12491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492   *) ac_try_echo=$ac_try;;
12493 esac
12494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12495 $as_echo "$ac_try_echo") >&5
12496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12497   ac_status=$?
12498   grep -v '^ *+' conftest.er1 >conftest.err
12499   rm -f conftest.er1
12500   cat conftest.err >&5
12501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); } >/dev/null && {
12503          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12504          test ! -s conftest.err
12505        }; then
12506   :
12507 else
12508   $as_echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12510
12511   # Broken: fails on valid input.
12512 continue
12513 fi
12514
12515 rm -f conftest.err conftest.$ac_ext
12516
12517   # OK, works on sane cases.  Now check whether nonexistent headers
12518   # can be detected and how.
12519   cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h.  */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h.  */
12525 #include <ac_nonexistent.h>
12526 _ACEOF
12527 if { (ac_try="$ac_cpp conftest.$ac_ext"
12528 case "(($ac_try" in
12529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530   *) ac_try_echo=$ac_try;;
12531 esac
12532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12533 $as_echo "$ac_try_echo") >&5
12534   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12535   ac_status=$?
12536   grep -v '^ *+' conftest.er1 >conftest.err
12537   rm -f conftest.er1
12538   cat conftest.err >&5
12539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); } >/dev/null && {
12541          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12542          test ! -s conftest.err
12543        }; then
12544   # Broken: success on invalid input.
12545 continue
12546 else
12547   $as_echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12549
12550   # Passes both tests.
12551 ac_preproc_ok=:
12552 break
12553 fi
12554
12555 rm -f conftest.err conftest.$ac_ext
12556
12557 done
12558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12559 rm -f conftest.err conftest.$ac_ext
12560 if $ac_preproc_ok; then
12561   :
12562 else
12563   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12565 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12566 See \`config.log' for more details." >&5
12567 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12568 See \`config.log' for more details." >&2;}
12569    { (exit 1); exit 1; }; }; }
12570 fi
12571
12572 ac_ext=c
12573 ac_cpp='$CPP $CPPFLAGS'
12574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12577
12578 #
12579 # Determine a C++ compiler to use. If output variable CXXFLAGS was not
12580 # already set, set it to `-g -O2' for the GNU C++ compiler (`-O2' on
12581 # systems where G++ does not accept `-g'), or `-g' for other
12582 # compilers.
12583 ac_ext=cpp
12584 ac_cpp='$CXXCPP $CPPFLAGS'
12585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12588 if test -z "$CXX"; then
12589   if test -n "$CCC"; then
12590     CXX=$CCC
12591   else
12592     if test -n "$ac_tool_prefix"; then
12593   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12594   do
12595     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12598 $as_echo_n "checking for $ac_word... " >&6; }
12599 if test "${ac_cv_prog_CXX+set}" = set; then
12600   $as_echo_n "(cached) " >&6
12601 else
12602   if test -n "$CXX"; then
12603   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12604 else
12605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12606 for as_dir in $PATH
12607 do
12608   IFS=$as_save_IFS
12609   test -z "$as_dir" && as_dir=.
12610   for ac_exec_ext in '' $ac_executable_extensions; do
12611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12612     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12613     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12614     break 2
12615   fi
12616 done
12617 done
12618 IFS=$as_save_IFS
12619
12620 fi
12621 fi
12622 CXX=$ac_cv_prog_CXX
12623 if test -n "$CXX"; then
12624   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
12625 $as_echo "$CXX" >&6; }
12626 else
12627   { $as_echo "$as_me:$LINENO: result: no" >&5
12628 $as_echo "no" >&6; }
12629 fi
12630
12631
12632     test -n "$CXX" && break
12633   done
12634 fi
12635 if test -z "$CXX"; then
12636   ac_ct_CXX=$CXX
12637   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12638 do
12639   # Extract the first word of "$ac_prog", so it can be a program name with args.
12640 set dummy $ac_prog; ac_word=$2
12641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12642 $as_echo_n "checking for $ac_word... " >&6; }
12643 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12644   $as_echo_n "(cached) " >&6
12645 else
12646   if test -n "$ac_ct_CXX"; then
12647   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12648 else
12649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12650 for as_dir in $PATH
12651 do
12652   IFS=$as_save_IFS
12653   test -z "$as_dir" && as_dir=.
12654   for ac_exec_ext in '' $ac_executable_extensions; do
12655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12656     ac_cv_prog_ac_ct_CXX="$ac_prog"
12657     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12658     break 2
12659   fi
12660 done
12661 done
12662 IFS=$as_save_IFS
12663
12664 fi
12665 fi
12666 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12667 if test -n "$ac_ct_CXX"; then
12668   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12669 $as_echo "$ac_ct_CXX" >&6; }
12670 else
12671   { $as_echo "$as_me:$LINENO: result: no" >&5
12672 $as_echo "no" >&6; }
12673 fi
12674
12675
12676   test -n "$ac_ct_CXX" && break
12677 done
12678
12679   if test "x$ac_ct_CXX" = x; then
12680     CXX="g++"
12681   else
12682     case $cross_compiling:$ac_tool_warned in
12683 yes:)
12684 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12686 ac_tool_warned=yes ;;
12687 esac
12688     CXX=$ac_ct_CXX
12689   fi
12690 fi
12691
12692   fi
12693 fi
12694 # Provide some information about the compiler.
12695 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12696 set X $ac_compile
12697 ac_compiler=$2
12698 { (ac_try="$ac_compiler --version >&5"
12699 case "(($ac_try" in
12700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701   *) ac_try_echo=$ac_try;;
12702 esac
12703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12704 $as_echo "$ac_try_echo") >&5
12705   (eval "$ac_compiler --version >&5") 2>&5
12706   ac_status=$?
12707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); }
12709 { (ac_try="$ac_compiler -v >&5"
12710 case "(($ac_try" in
12711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712   *) ac_try_echo=$ac_try;;
12713 esac
12714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12715 $as_echo "$ac_try_echo") >&5
12716   (eval "$ac_compiler -v >&5") 2>&5
12717   ac_status=$?
12718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); }
12720 { (ac_try="$ac_compiler -V >&5"
12721 case "(($ac_try" in
12722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723   *) ac_try_echo=$ac_try;;
12724 esac
12725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12726 $as_echo "$ac_try_echo") >&5
12727   (eval "$ac_compiler -V >&5") 2>&5
12728   ac_status=$?
12729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730   (exit $ac_status); }
12731
12732 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12733 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12734 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12735   $as_echo_n "(cached) " >&6
12736 else
12737   cat >conftest.$ac_ext <<_ACEOF
12738 /* confdefs.h.  */
12739 _ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h.  */
12743
12744 int
12745 main ()
12746 {
12747 #ifndef __GNUC__
12748        choke me
12749 #endif
12750
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 rm -f conftest.$ac_objext
12756 if { (ac_try="$ac_compile"
12757 case "(($ac_try" in
12758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759   *) ac_try_echo=$ac_try;;
12760 esac
12761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12762 $as_echo "$ac_try_echo") >&5
12763   (eval "$ac_compile") 2>conftest.er1
12764   ac_status=$?
12765   grep -v '^ *+' conftest.er1 >conftest.err
12766   rm -f conftest.er1
12767   cat conftest.err >&5
12768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); } && {
12770          test -z "$ac_cxx_werror_flag" ||
12771          test ! -s conftest.err
12772        } && test -s conftest.$ac_objext; then
12773   ac_compiler_gnu=yes
12774 else
12775   $as_echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12777
12778         ac_compiler_gnu=no
12779 fi
12780
12781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12782 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12783
12784 fi
12785 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12786 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12787 if test $ac_compiler_gnu = yes; then
12788   GXX=yes
12789 else
12790   GXX=
12791 fi
12792 ac_test_CXXFLAGS=${CXXFLAGS+set}
12793 ac_save_CXXFLAGS=$CXXFLAGS
12794 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12795 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12796 if test "${ac_cv_prog_cxx_g+set}" = set; then
12797   $as_echo_n "(cached) " >&6
12798 else
12799   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12800    ac_cxx_werror_flag=yes
12801    ac_cv_prog_cxx_g=no
12802    CXXFLAGS="-g"
12803    cat >conftest.$ac_ext <<_ACEOF
12804 /* confdefs.h.  */
12805 _ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h.  */
12809
12810 int
12811 main ()
12812 {
12813
12814   ;
12815   return 0;
12816 }
12817 _ACEOF
12818 rm -f conftest.$ac_objext
12819 if { (ac_try="$ac_compile"
12820 case "(($ac_try" in
12821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822   *) ac_try_echo=$ac_try;;
12823 esac
12824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12825 $as_echo "$ac_try_echo") >&5
12826   (eval "$ac_compile") 2>conftest.er1
12827   ac_status=$?
12828   grep -v '^ *+' conftest.er1 >conftest.err
12829   rm -f conftest.er1
12830   cat conftest.err >&5
12831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832   (exit $ac_status); } && {
12833          test -z "$ac_cxx_werror_flag" ||
12834          test ! -s conftest.err
12835        } && test -s conftest.$ac_objext; then
12836   ac_cv_prog_cxx_g=yes
12837 else
12838   $as_echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12840
12841         CXXFLAGS=""
12842       cat >conftest.$ac_ext <<_ACEOF
12843 /* confdefs.h.  */
12844 _ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h.  */
12848
12849 int
12850 main ()
12851 {
12852
12853   ;
12854   return 0;
12855 }
12856 _ACEOF
12857 rm -f conftest.$ac_objext
12858 if { (ac_try="$ac_compile"
12859 case "(($ac_try" in
12860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861   *) ac_try_echo=$ac_try;;
12862 esac
12863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12864 $as_echo "$ac_try_echo") >&5
12865   (eval "$ac_compile") 2>conftest.er1
12866   ac_status=$?
12867   grep -v '^ *+' conftest.er1 >conftest.err
12868   rm -f conftest.er1
12869   cat conftest.err >&5
12870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871   (exit $ac_status); } && {
12872          test -z "$ac_cxx_werror_flag" ||
12873          test ! -s conftest.err
12874        } && test -s conftest.$ac_objext; then
12875   :
12876 else
12877   $as_echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12879
12880         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12881          CXXFLAGS="-g"
12882          cat >conftest.$ac_ext <<_ACEOF
12883 /* confdefs.h.  */
12884 _ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h.  */
12888
12889 int
12890 main ()
12891 {
12892
12893   ;
12894   return 0;
12895 }
12896 _ACEOF
12897 rm -f conftest.$ac_objext
12898 if { (ac_try="$ac_compile"
12899 case "(($ac_try" in
12900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901   *) ac_try_echo=$ac_try;;
12902 esac
12903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12904 $as_echo "$ac_try_echo") >&5
12905   (eval "$ac_compile") 2>conftest.er1
12906   ac_status=$?
12907   grep -v '^ *+' conftest.er1 >conftest.err
12908   rm -f conftest.er1
12909   cat conftest.err >&5
12910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); } && {
12912          test -z "$ac_cxx_werror_flag" ||
12913          test ! -s conftest.err
12914        } && test -s conftest.$ac_objext; then
12915   ac_cv_prog_cxx_g=yes
12916 else
12917   $as_echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12919
12920
12921 fi
12922
12923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12924 fi
12925
12926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12927 fi
12928
12929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12930    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12931 fi
12932 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12933 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12934 if test "$ac_test_CXXFLAGS" = set; then
12935   CXXFLAGS=$ac_save_CXXFLAGS
12936 elif test $ac_cv_prog_cxx_g = yes; then
12937   if test "$GXX" = yes; then
12938     CXXFLAGS="-g -O2"
12939   else
12940     CXXFLAGS="-g"
12941   fi
12942 else
12943   if test "$GXX" = yes; then
12944     CXXFLAGS="-O2"
12945   else
12946     CXXFLAGS=
12947   fi
12948 fi
12949 ac_ext=c
12950 ac_cpp='$CPP $CPPFLAGS'
12951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12954
12955 depcc="$CXX"  am_compiler_list=
12956
12957 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12958 $as_echo_n "checking dependency style of $depcc... " >&6; }
12959 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12960   $as_echo_n "(cached) " >&6
12961 else
12962   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12963   # We make a subdir and do the tests there.  Otherwise we can end up
12964   # making bogus files that we don't know about and never remove.  For
12965   # instance it was reported that on HP-UX the gcc test will end up
12966   # making a dummy file named `D' -- because `-MD' means `put the output
12967   # in D'.
12968   mkdir conftest.dir
12969   # Copy depcomp to subdir because otherwise we won't find it if we're
12970   # using a relative directory.
12971   cp "$am_depcomp" conftest.dir
12972   cd conftest.dir
12973   # We will build objects and dependencies in a subdirectory because
12974   # it helps to detect inapplicable dependency modes.  For instance
12975   # both Tru64's cc and ICC support -MD to output dependencies as a
12976   # side effect of compilation, but ICC will put the dependencies in
12977   # the current directory while Tru64 will put them in the object
12978   # directory.
12979   mkdir sub
12980
12981   am_cv_CXX_dependencies_compiler_type=none
12982   if test "$am_compiler_list" = ""; then
12983      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12984   fi
12985   for depmode in $am_compiler_list; do
12986     # Setup a source with many dependencies, because some compilers
12987     # like to wrap large dependency lists on column 80 (with \), and
12988     # we should not choose a depcomp mode which is confused by this.
12989     #
12990     # We need to recreate these files for each test, as the compiler may
12991     # overwrite some of them when testing with obscure command lines.
12992     # This happens at least with the AIX C compiler.
12993     : > sub/conftest.c
12994     for i in 1 2 3 4 5 6; do
12995       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12996       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12997       # Solaris 8's {/usr,}/bin/sh.
12998       touch sub/conftst$i.h
12999     done
13000     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13001
13002     case $depmode in
13003     nosideeffect)
13004       # after this tag, mechanisms are not by side-effect, so they'll
13005       # only be used when explicitly requested
13006       if test "x$enable_dependency_tracking" = xyes; then
13007         continue
13008       else
13009         break
13010       fi
13011       ;;
13012     none) break ;;
13013     esac
13014     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13015     # mode.  It turns out that the SunPro C++ compiler does not properly
13016     # handle `-M -o', and we need to detect this.
13017     if depmode=$depmode \
13018        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13019        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13020        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13021          >/dev/null 2>conftest.err &&
13022        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13023        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13024        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13025        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13026       # icc doesn't choke on unknown options, it will just issue warnings
13027       # or remarks (even with -Werror).  So we grep stderr for any message
13028       # that says an option was ignored or not supported.
13029       # When given -MP, icc 7.0 and 7.1 complain thusly:
13030       #   icc: Command line warning: ignoring option '-M'; no argument required
13031       # The diagnosis changed in icc 8.0:
13032       #   icc: Command line remark: option '-MP' not supported
13033       if (grep 'ignoring option' conftest.err ||
13034           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13035         am_cv_CXX_dependencies_compiler_type=$depmode
13036         break
13037       fi
13038     fi
13039   done
13040
13041   cd ..
13042   rm -rf conftest.dir
13043 else
13044   am_cv_CXX_dependencies_compiler_type=none
13045 fi
13046
13047 fi
13048 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13049 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13050 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13051
13052  if
13053   test "x$enable_dependency_tracking" != xno \
13054   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13055   am__fastdepCXX_TRUE=
13056   am__fastdepCXX_FALSE='#'
13057 else
13058   am__fastdepCXX_TRUE='#'
13059   am__fastdepCXX_FALSE=
13060 fi
13061
13062
13063
13064 ac_ext=cpp
13065 ac_cpp='$CXXCPP $CPPFLAGS'
13066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13069 if test -z "$CXX"; then
13070   if test -n "$CCC"; then
13071     CXX=$CCC
13072   else
13073     if test -n "$ac_tool_prefix"; then
13074   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13075   do
13076     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13078 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13079 $as_echo_n "checking for $ac_word... " >&6; }
13080 if test "${ac_cv_prog_CXX+set}" = set; then
13081   $as_echo_n "(cached) " >&6
13082 else
13083   if test -n "$CXX"; then
13084   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13085 else
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13088 do
13089   IFS=$as_save_IFS
13090   test -z "$as_dir" && as_dir=.
13091   for ac_exec_ext in '' $ac_executable_extensions; do
13092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13093     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13094     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13095     break 2
13096   fi
13097 done
13098 done
13099 IFS=$as_save_IFS
13100
13101 fi
13102 fi
13103 CXX=$ac_cv_prog_CXX
13104 if test -n "$CXX"; then
13105   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
13106 $as_echo "$CXX" >&6; }
13107 else
13108   { $as_echo "$as_me:$LINENO: result: no" >&5
13109 $as_echo "no" >&6; }
13110 fi
13111
13112
13113     test -n "$CXX" && break
13114   done
13115 fi
13116 if test -z "$CXX"; then
13117   ac_ct_CXX=$CXX
13118   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13119 do
13120   # Extract the first word of "$ac_prog", so it can be a program name with args.
13121 set dummy $ac_prog; ac_word=$2
13122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13123 $as_echo_n "checking for $ac_word... " >&6; }
13124 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13125   $as_echo_n "(cached) " >&6
13126 else
13127   if test -n "$ac_ct_CXX"; then
13128   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13129 else
13130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131 for as_dir in $PATH
13132 do
13133   IFS=$as_save_IFS
13134   test -z "$as_dir" && as_dir=.
13135   for ac_exec_ext in '' $ac_executable_extensions; do
13136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13137     ac_cv_prog_ac_ct_CXX="$ac_prog"
13138     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13139     break 2
13140   fi
13141 done
13142 done
13143 IFS=$as_save_IFS
13144
13145 fi
13146 fi
13147 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13148 if test -n "$ac_ct_CXX"; then
13149   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13150 $as_echo "$ac_ct_CXX" >&6; }
13151 else
13152   { $as_echo "$as_me:$LINENO: result: no" >&5
13153 $as_echo "no" >&6; }
13154 fi
13155
13156
13157   test -n "$ac_ct_CXX" && break
13158 done
13159
13160   if test "x$ac_ct_CXX" = x; then
13161     CXX="g++"
13162   else
13163     case $cross_compiling:$ac_tool_warned in
13164 yes:)
13165 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13167 ac_tool_warned=yes ;;
13168 esac
13169     CXX=$ac_ct_CXX
13170   fi
13171 fi
13172
13173   fi
13174 fi
13175 # Provide some information about the compiler.
13176 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
13177 set X $ac_compile
13178 ac_compiler=$2
13179 { (ac_try="$ac_compiler --version >&5"
13180 case "(($ac_try" in
13181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182   *) ac_try_echo=$ac_try;;
13183 esac
13184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13185 $as_echo "$ac_try_echo") >&5
13186   (eval "$ac_compiler --version >&5") 2>&5
13187   ac_status=$?
13188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189   (exit $ac_status); }
13190 { (ac_try="$ac_compiler -v >&5"
13191 case "(($ac_try" in
13192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193   *) ac_try_echo=$ac_try;;
13194 esac
13195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13196 $as_echo "$ac_try_echo") >&5
13197   (eval "$ac_compiler -v >&5") 2>&5
13198   ac_status=$?
13199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); }
13201 { (ac_try="$ac_compiler -V >&5"
13202 case "(($ac_try" in
13203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204   *) ac_try_echo=$ac_try;;
13205 esac
13206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13207 $as_echo "$ac_try_echo") >&5
13208   (eval "$ac_compiler -V >&5") 2>&5
13209   ac_status=$?
13210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); }
13212
13213 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13214 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13215 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13216   $as_echo_n "(cached) " >&6
13217 else
13218   cat >conftest.$ac_ext <<_ACEOF
13219 /* confdefs.h.  */
13220 _ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h.  */
13224
13225 int
13226 main ()
13227 {
13228 #ifndef __GNUC__
13229        choke me
13230 #endif
13231
13232   ;
13233   return 0;
13234 }
13235 _ACEOF
13236 rm -f conftest.$ac_objext
13237 if { (ac_try="$ac_compile"
13238 case "(($ac_try" in
13239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240   *) ac_try_echo=$ac_try;;
13241 esac
13242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13243 $as_echo "$ac_try_echo") >&5
13244   (eval "$ac_compile") 2>conftest.er1
13245   ac_status=$?
13246   grep -v '^ *+' conftest.er1 >conftest.err
13247   rm -f conftest.er1
13248   cat conftest.err >&5
13249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); } && {
13251          test -z "$ac_cxx_werror_flag" ||
13252          test ! -s conftest.err
13253        } && test -s conftest.$ac_objext; then
13254   ac_compiler_gnu=yes
13255 else
13256   $as_echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13258
13259         ac_compiler_gnu=no
13260 fi
13261
13262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13263 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13264
13265 fi
13266 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13267 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13268 if test $ac_compiler_gnu = yes; then
13269   GXX=yes
13270 else
13271   GXX=
13272 fi
13273 ac_test_CXXFLAGS=${CXXFLAGS+set}
13274 ac_save_CXXFLAGS=$CXXFLAGS
13275 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13276 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13277 if test "${ac_cv_prog_cxx_g+set}" = set; then
13278   $as_echo_n "(cached) " >&6
13279 else
13280   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13281    ac_cxx_werror_flag=yes
13282    ac_cv_prog_cxx_g=no
13283    CXXFLAGS="-g"
13284    cat >conftest.$ac_ext <<_ACEOF
13285 /* confdefs.h.  */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h.  */
13290
13291 int
13292 main ()
13293 {
13294
13295   ;
13296   return 0;
13297 }
13298 _ACEOF
13299 rm -f conftest.$ac_objext
13300 if { (ac_try="$ac_compile"
13301 case "(($ac_try" in
13302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303   *) ac_try_echo=$ac_try;;
13304 esac
13305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13306 $as_echo "$ac_try_echo") >&5
13307   (eval "$ac_compile") 2>conftest.er1
13308   ac_status=$?
13309   grep -v '^ *+' conftest.er1 >conftest.err
13310   rm -f conftest.er1
13311   cat conftest.err >&5
13312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); } && {
13314          test -z "$ac_cxx_werror_flag" ||
13315          test ! -s conftest.err
13316        } && test -s conftest.$ac_objext; then
13317   ac_cv_prog_cxx_g=yes
13318 else
13319   $as_echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13321
13322         CXXFLAGS=""
13323       cat >conftest.$ac_ext <<_ACEOF
13324 /* confdefs.h.  */
13325 _ACEOF
13326 cat confdefs.h >>conftest.$ac_ext
13327 cat >>conftest.$ac_ext <<_ACEOF
13328 /* end confdefs.h.  */
13329
13330 int
13331 main ()
13332 {
13333
13334   ;
13335   return 0;
13336 }
13337 _ACEOF
13338 rm -f conftest.$ac_objext
13339 if { (ac_try="$ac_compile"
13340 case "(($ac_try" in
13341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342   *) ac_try_echo=$ac_try;;
13343 esac
13344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13345 $as_echo "$ac_try_echo") >&5
13346   (eval "$ac_compile") 2>conftest.er1
13347   ac_status=$?
13348   grep -v '^ *+' conftest.er1 >conftest.err
13349   rm -f conftest.er1
13350   cat conftest.err >&5
13351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352   (exit $ac_status); } && {
13353          test -z "$ac_cxx_werror_flag" ||
13354          test ! -s conftest.err
13355        } && test -s conftest.$ac_objext; then
13356   :
13357 else
13358   $as_echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13360
13361         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13362          CXXFLAGS="-g"
13363          cat >conftest.$ac_ext <<_ACEOF
13364 /* confdefs.h.  */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h.  */
13369
13370 int
13371 main ()
13372 {
13373
13374   ;
13375   return 0;
13376 }
13377 _ACEOF
13378 rm -f conftest.$ac_objext
13379 if { (ac_try="$ac_compile"
13380 case "(($ac_try" in
13381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382   *) ac_try_echo=$ac_try;;
13383 esac
13384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13385 $as_echo "$ac_try_echo") >&5
13386   (eval "$ac_compile") 2>conftest.er1
13387   ac_status=$?
13388   grep -v '^ *+' conftest.er1 >conftest.err
13389   rm -f conftest.er1
13390   cat conftest.err >&5
13391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392   (exit $ac_status); } && {
13393          test -z "$ac_cxx_werror_flag" ||
13394          test ! -s conftest.err
13395        } && test -s conftest.$ac_objext; then
13396   ac_cv_prog_cxx_g=yes
13397 else
13398   $as_echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13400
13401
13402 fi
13403
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405 fi
13406
13407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408 fi
13409
13410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13411    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13412 fi
13413 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13414 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13415 if test "$ac_test_CXXFLAGS" = set; then
13416   CXXFLAGS=$ac_save_CXXFLAGS
13417 elif test $ac_cv_prog_cxx_g = yes; then
13418   if test "$GXX" = yes; then
13419     CXXFLAGS="-g -O2"
13420   else
13421     CXXFLAGS="-g"
13422   fi
13423 else
13424   if test "$GXX" = yes; then
13425     CXXFLAGS="-O2"
13426   else
13427     CXXFLAGS=
13428   fi
13429 fi
13430 ac_ext=c
13431 ac_cpp='$CPP $CPPFLAGS'
13432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13435
13436 depcc="$CXX"  am_compiler_list=
13437
13438 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13439 $as_echo_n "checking dependency style of $depcc... " >&6; }
13440 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13441   $as_echo_n "(cached) " >&6
13442 else
13443   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13444   # We make a subdir and do the tests there.  Otherwise we can end up
13445   # making bogus files that we don't know about and never remove.  For
13446   # instance it was reported that on HP-UX the gcc test will end up
13447   # making a dummy file named `D' -- because `-MD' means `put the output
13448   # in D'.
13449   mkdir conftest.dir
13450   # Copy depcomp to subdir because otherwise we won't find it if we're
13451   # using a relative directory.
13452   cp "$am_depcomp" conftest.dir
13453   cd conftest.dir
13454   # We will build objects and dependencies in a subdirectory because
13455   # it helps to detect inapplicable dependency modes.  For instance
13456   # both Tru64's cc and ICC support -MD to output dependencies as a
13457   # side effect of compilation, but ICC will put the dependencies in
13458   # the current directory while Tru64 will put them in the object
13459   # directory.
13460   mkdir sub
13461
13462   am_cv_CXX_dependencies_compiler_type=none
13463   if test "$am_compiler_list" = ""; then
13464      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13465   fi
13466   for depmode in $am_compiler_list; do
13467     # Setup a source with many dependencies, because some compilers
13468     # like to wrap large dependency lists on column 80 (with \), and
13469     # we should not choose a depcomp mode which is confused by this.
13470     #
13471     # We need to recreate these files for each test, as the compiler may
13472     # overwrite some of them when testing with obscure command lines.
13473     # This happens at least with the AIX C compiler.
13474     : > sub/conftest.c
13475     for i in 1 2 3 4 5 6; do
13476       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13477       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13478       # Solaris 8's {/usr,}/bin/sh.
13479       touch sub/conftst$i.h
13480     done
13481     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13482
13483     case $depmode in
13484     nosideeffect)
13485       # after this tag, mechanisms are not by side-effect, so they'll
13486       # only be used when explicitly requested
13487       if test "x$enable_dependency_tracking" = xyes; then
13488         continue
13489       else
13490         break
13491       fi
13492       ;;
13493     none) break ;;
13494     esac
13495     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13496     # mode.  It turns out that the SunPro C++ compiler does not properly
13497     # handle `-M -o', and we need to detect this.
13498     if depmode=$depmode \
13499        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13500        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13501        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13502          >/dev/null 2>conftest.err &&
13503        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13504        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13505        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13506        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13507       # icc doesn't choke on unknown options, it will just issue warnings
13508       # or remarks (even with -Werror).  So we grep stderr for any message
13509       # that says an option was ignored or not supported.
13510       # When given -MP, icc 7.0 and 7.1 complain thusly:
13511       #   icc: Command line warning: ignoring option '-M'; no argument required
13512       # The diagnosis changed in icc 8.0:
13513       #   icc: Command line remark: option '-MP' not supported
13514       if (grep 'ignoring option' conftest.err ||
13515           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13516         am_cv_CXX_dependencies_compiler_type=$depmode
13517         break
13518       fi
13519     fi
13520   done
13521
13522   cd ..
13523   rm -rf conftest.dir
13524 else
13525   am_cv_CXX_dependencies_compiler_type=none
13526 fi
13527
13528 fi
13529 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13530 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13531 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13532
13533  if
13534   test "x$enable_dependency_tracking" != xno \
13535   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13536   am__fastdepCXX_TRUE=
13537   am__fastdepCXX_FALSE='#'
13538 else
13539   am__fastdepCXX_TRUE='#'
13540   am__fastdepCXX_FALSE=
13541 fi
13542
13543
13544 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13545     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13546     (test "X$CXX" != "Xg++"))) ; then
13547   ac_ext=cpp
13548 ac_cpp='$CXXCPP $CPPFLAGS'
13549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13552 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13553 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13554 if test -z "$CXXCPP"; then
13555   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13556   $as_echo_n "(cached) " >&6
13557 else
13558       # Double quotes because CXXCPP needs to be expanded
13559     for CXXCPP in "$CXX -E" "/lib/cpp"
13560     do
13561       ac_preproc_ok=false
13562 for ac_cxx_preproc_warn_flag in '' yes
13563 do
13564   # Use a header file that comes with gcc, so configuring glibc
13565   # with a fresh cross-compiler works.
13566   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13567   # <limits.h> exists even on freestanding compilers.
13568   # On the NeXT, cc -E runs the code through the compiler's parser,
13569   # not just through cpp. "Syntax error" is here to catch this case.
13570   cat >conftest.$ac_ext <<_ACEOF
13571 /* confdefs.h.  */
13572 _ACEOF
13573 cat confdefs.h >>conftest.$ac_ext
13574 cat >>conftest.$ac_ext <<_ACEOF
13575 /* end confdefs.h.  */
13576 #ifdef __STDC__
13577 # include <limits.h>
13578 #else
13579 # include <assert.h>
13580 #endif
13581                      Syntax error
13582 _ACEOF
13583 if { (ac_try="$ac_cpp conftest.$ac_ext"
13584 case "(($ac_try" in
13585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586   *) ac_try_echo=$ac_try;;
13587 esac
13588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13589 $as_echo "$ac_try_echo") >&5
13590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13591   ac_status=$?
13592   grep -v '^ *+' conftest.er1 >conftest.err
13593   rm -f conftest.er1
13594   cat conftest.err >&5
13595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); } >/dev/null && {
13597          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13598          test ! -s conftest.err
13599        }; then
13600   :
13601 else
13602   $as_echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13604
13605   # Broken: fails on valid input.
13606 continue
13607 fi
13608
13609 rm -f conftest.err conftest.$ac_ext
13610
13611   # OK, works on sane cases.  Now check whether nonexistent headers
13612   # can be detected and how.
13613   cat >conftest.$ac_ext <<_ACEOF
13614 /* confdefs.h.  */
13615 _ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h.  */
13619 #include <ac_nonexistent.h>
13620 _ACEOF
13621 if { (ac_try="$ac_cpp conftest.$ac_ext"
13622 case "(($ac_try" in
13623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624   *) ac_try_echo=$ac_try;;
13625 esac
13626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13627 $as_echo "$ac_try_echo") >&5
13628   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13629   ac_status=$?
13630   grep -v '^ *+' conftest.er1 >conftest.err
13631   rm -f conftest.er1
13632   cat conftest.err >&5
13633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634   (exit $ac_status); } >/dev/null && {
13635          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13636          test ! -s conftest.err
13637        }; then
13638   # Broken: success on invalid input.
13639 continue
13640 else
13641   $as_echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13643
13644   # Passes both tests.
13645 ac_preproc_ok=:
13646 break
13647 fi
13648
13649 rm -f conftest.err conftest.$ac_ext
13650
13651 done
13652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13653 rm -f conftest.err conftest.$ac_ext
13654 if $ac_preproc_ok; then
13655   break
13656 fi
13657
13658     done
13659     ac_cv_prog_CXXCPP=$CXXCPP
13660
13661 fi
13662   CXXCPP=$ac_cv_prog_CXXCPP
13663 else
13664   ac_cv_prog_CXXCPP=$CXXCPP
13665 fi
13666 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
13667 $as_echo "$CXXCPP" >&6; }
13668 ac_preproc_ok=false
13669 for ac_cxx_preproc_warn_flag in '' yes
13670 do
13671   # Use a header file that comes with gcc, so configuring glibc
13672   # with a fresh cross-compiler works.
13673   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13674   # <limits.h> exists even on freestanding compilers.
13675   # On the NeXT, cc -E runs the code through the compiler's parser,
13676   # not just through cpp. "Syntax error" is here to catch this case.
13677   cat >conftest.$ac_ext <<_ACEOF
13678 /* confdefs.h.  */
13679 _ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h.  */
13683 #ifdef __STDC__
13684 # include <limits.h>
13685 #else
13686 # include <assert.h>
13687 #endif
13688                      Syntax error
13689 _ACEOF
13690 if { (ac_try="$ac_cpp conftest.$ac_ext"
13691 case "(($ac_try" in
13692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693   *) ac_try_echo=$ac_try;;
13694 esac
13695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13696 $as_echo "$ac_try_echo") >&5
13697   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13698   ac_status=$?
13699   grep -v '^ *+' conftest.er1 >conftest.err
13700   rm -f conftest.er1
13701   cat conftest.err >&5
13702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703   (exit $ac_status); } >/dev/null && {
13704          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13705          test ! -s conftest.err
13706        }; then
13707   :
13708 else
13709   $as_echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13711
13712   # Broken: fails on valid input.
13713 continue
13714 fi
13715
13716 rm -f conftest.err conftest.$ac_ext
13717
13718   # OK, works on sane cases.  Now check whether nonexistent headers
13719   # can be detected and how.
13720   cat >conftest.$ac_ext <<_ACEOF
13721 /* confdefs.h.  */
13722 _ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h.  */
13726 #include <ac_nonexistent.h>
13727 _ACEOF
13728 if { (ac_try="$ac_cpp conftest.$ac_ext"
13729 case "(($ac_try" in
13730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13731   *) ac_try_echo=$ac_try;;
13732 esac
13733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13734 $as_echo "$ac_try_echo") >&5
13735   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13736   ac_status=$?
13737   grep -v '^ *+' conftest.er1 >conftest.err
13738   rm -f conftest.er1
13739   cat conftest.err >&5
13740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); } >/dev/null && {
13742          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13743          test ! -s conftest.err
13744        }; then
13745   # Broken: success on invalid input.
13746 continue
13747 else
13748   $as_echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13750
13751   # Passes both tests.
13752 ac_preproc_ok=:
13753 break
13754 fi
13755
13756 rm -f conftest.err conftest.$ac_ext
13757
13758 done
13759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13760 rm -f conftest.err conftest.$ac_ext
13761 if $ac_preproc_ok; then
13762   :
13763 else
13764   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13766 _lt_caught_CXX_error=yes; }
13767 fi
13768
13769 ac_ext=c
13770 ac_cpp='$CPP $CPPFLAGS'
13771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13774
13775 else
13776   _lt_caught_CXX_error=yes
13777 fi
13778
13779
13780
13781
13782 ac_ext=cpp
13783 ac_cpp='$CXXCPP $CPPFLAGS'
13784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13787
13788 archive_cmds_need_lc_CXX=no
13789 allow_undefined_flag_CXX=
13790 always_export_symbols_CXX=no
13791 archive_expsym_cmds_CXX=
13792 compiler_needs_object_CXX=no
13793 export_dynamic_flag_spec_CXX=
13794 hardcode_direct_CXX=no
13795 hardcode_direct_absolute_CXX=no
13796 hardcode_libdir_flag_spec_CXX=
13797 hardcode_libdir_flag_spec_ld_CXX=
13798 hardcode_libdir_separator_CXX=
13799 hardcode_minus_L_CXX=no
13800 hardcode_shlibpath_var_CXX=unsupported
13801 hardcode_automatic_CXX=no
13802 inherit_rpath_CXX=no
13803 module_cmds_CXX=
13804 module_expsym_cmds_CXX=
13805 link_all_deplibs_CXX=unknown
13806 old_archive_cmds_CXX=$old_archive_cmds
13807 no_undefined_flag_CXX=
13808 whole_archive_flag_spec_CXX=
13809 enable_shared_with_static_runtimes_CXX=no
13810
13811 # Source file extension for C++ test sources.
13812 ac_ext=cpp
13813
13814 # Object file extension for compiled C++ test sources.
13815 objext=o
13816 objext_CXX=$objext
13817
13818 # No sense in running all these tests if we already determined that
13819 # the CXX compiler isn't working.  Some variables (like enable_shared)
13820 # are currently assumed to apply to all compilers on this platform,
13821 # and will be corrupted by setting them based on a non-working compiler.
13822 if test "$_lt_caught_CXX_error" != yes; then
13823   # Code to be used in simple compile tests
13824   lt_simple_compile_test_code="int some_variable = 0;"
13825
13826   # Code to be used in simple link tests
13827   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13828
13829   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13830
13831
13832
13833
13834
13835
13836 # If no C compiler was specified, use CC.
13837 LTCC=${LTCC-"$CC"}
13838
13839 # If no C compiler flags were specified, use CFLAGS.
13840 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13841
13842 # Allow CC to be a program name with arguments.
13843 compiler=$CC
13844
13845
13846   # save warnings/boilerplate of simple test code
13847   ac_outfile=conftest.$ac_objext
13848 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13849 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13850 _lt_compiler_boilerplate=`cat conftest.err`
13851 $RM conftest*
13852
13853   ac_outfile=conftest.$ac_objext
13854 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13855 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13856 _lt_linker_boilerplate=`cat conftest.err`
13857 $RM -r conftest*
13858
13859
13860   # Allow CC to be a program name with arguments.
13861   lt_save_CC=$CC
13862   lt_save_LD=$LD
13863   lt_save_GCC=$GCC
13864   GCC=$GXX
13865   lt_save_with_gnu_ld=$with_gnu_ld
13866   lt_save_path_LD=$lt_cv_path_LD
13867   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13868     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13869   else
13870     $as_unset lt_cv_prog_gnu_ld
13871   fi
13872   if test -n "${lt_cv_path_LDCXX+set}"; then
13873     lt_cv_path_LD=$lt_cv_path_LDCXX
13874   else
13875     $as_unset lt_cv_path_LD
13876   fi
13877   test -z "${LDCXX+set}" || LD=$LDCXX
13878   CC=${CXX-"c++"}
13879   compiler=$CC
13880   compiler_CXX=$CC
13881   for cc_temp in $compiler""; do
13882   case $cc_temp in
13883     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13884     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13885     \-*) ;;
13886     *) break;;
13887   esac
13888 done
13889 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13890
13891
13892   if test -n "$compiler"; then
13893     # We don't want -fno-exception when compiling C++ code, so set the
13894     # no_builtin_flag separately
13895     if test "$GXX" = yes; then
13896       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13897     else
13898       lt_prog_compiler_no_builtin_flag_CXX=
13899     fi
13900
13901     if test "$GXX" = yes; then
13902       # Set up default GNU C++ configuration
13903
13904
13905
13906 # Check whether --with-gnu-ld was given.
13907 if test "${with_gnu_ld+set}" = set; then
13908   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13909 else
13910   with_gnu_ld=no
13911 fi
13912
13913 ac_prog=ld
13914 if test "$GCC" = yes; then
13915   # Check if gcc -print-prog-name=ld gives a path.
13916   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13917 $as_echo_n "checking for ld used by $CC... " >&6; }
13918   case $host in
13919   *-*-mingw*)
13920     # gcc leaves a trailing carriage return which upsets mingw
13921     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13922   *)
13923     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13924   esac
13925   case $ac_prog in
13926     # Accept absolute paths.
13927     [\\/]* | ?:[\\/]*)
13928       re_direlt='/[^/][^/]*/\.\./'
13929       # Canonicalize the pathname of ld
13930       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13931       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13932         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13933       done
13934       test -z "$LD" && LD="$ac_prog"
13935       ;;
13936   "")
13937     # If it fails, then pretend we aren't using GCC.
13938     ac_prog=ld
13939     ;;
13940   *)
13941     # If it is relative, then search for the first ld in PATH.
13942     with_gnu_ld=unknown
13943     ;;
13944   esac
13945 elif test "$with_gnu_ld" = yes; then
13946   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13947 $as_echo_n "checking for GNU ld... " >&6; }
13948 else
13949   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13950 $as_echo_n "checking for non-GNU ld... " >&6; }
13951 fi
13952 if test "${lt_cv_path_LD+set}" = set; then
13953   $as_echo_n "(cached) " >&6
13954 else
13955   if test -z "$LD"; then
13956   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13957   for ac_dir in $PATH; do
13958     IFS="$lt_save_ifs"
13959     test -z "$ac_dir" && ac_dir=.
13960     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13961       lt_cv_path_LD="$ac_dir/$ac_prog"
13962       # Check to see if the program is GNU ld.  I'd rather use --version,
13963       # but apparently some variants of GNU ld only accept -v.
13964       # Break only if it was the GNU/non-GNU ld that we prefer.
13965       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13966       *GNU* | *'with BFD'*)
13967         test "$with_gnu_ld" != no && break
13968         ;;
13969       *)
13970         test "$with_gnu_ld" != yes && break
13971         ;;
13972       esac
13973     fi
13974   done
13975   IFS="$lt_save_ifs"
13976 else
13977   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13978 fi
13979 fi
13980
13981 LD="$lt_cv_path_LD"
13982 if test -n "$LD"; then
13983   { $as_echo "$as_me:$LINENO: result: $LD" >&5
13984 $as_echo "$LD" >&6; }
13985 else
13986   { $as_echo "$as_me:$LINENO: result: no" >&5
13987 $as_echo "no" >&6; }
13988 fi
13989 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13990 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13991    { (exit 1); exit 1; }; }
13992 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13993 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13994 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13995   $as_echo_n "(cached) " >&6
13996 else
13997   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13998 case `$LD -v 2>&1 </dev/null` in
13999 *GNU* | *'with BFD'*)
14000   lt_cv_prog_gnu_ld=yes
14001   ;;
14002 *)
14003   lt_cv_prog_gnu_ld=no
14004   ;;
14005 esac
14006 fi
14007 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14008 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14009 with_gnu_ld=$lt_cv_prog_gnu_ld
14010
14011
14012
14013
14014
14015
14016
14017       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14018       # archiving commands below assume that GNU ld is being used.
14019       if test "$with_gnu_ld" = yes; then
14020         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14021         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'
14022
14023         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14024         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14025
14026         # If archive_cmds runs LD, not CC, wlarc should be empty
14027         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14028         #     investigate it a little bit more. (MM)
14029         wlarc='${wl}'
14030
14031         # ancient GNU ld didn't support --whole-archive et. al.
14032         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14033           $GREP 'no-whole-archive' > /dev/null; then
14034           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14035         else
14036           whole_archive_flag_spec_CXX=
14037         fi
14038       else
14039         with_gnu_ld=no
14040         wlarc=
14041
14042         # A generic and very simple default shared library creation
14043         # command for GNU C++ for the case where it uses the native
14044         # linker, instead of GNU ld.  If possible, this setting should
14045         # overridden to take advantage of the native linker features on
14046         # the platform it is being used on.
14047         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14048       fi
14049
14050       # Commands to make compiler produce verbose output that lists
14051       # what "hidden" libraries, object files and flags are used when
14052       # linking a shared library.
14053       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14054
14055     else
14056       GXX=no
14057       with_gnu_ld=no
14058       wlarc=
14059     fi
14060
14061     # PORTME: fill in a description of your system's C++ link characteristics
14062     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14063 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14064     ld_shlibs_CXX=yes
14065     case $host_os in
14066       aix3*)
14067         # FIXME: insert proper C++ library support
14068         ld_shlibs_CXX=no
14069         ;;
14070       aix[4-9]*)
14071         if test "$host_cpu" = ia64; then
14072           # On IA64, the linker does run time linking by default, so we don't
14073           # have to do anything special.
14074           aix_use_runtimelinking=no
14075           exp_sym_flag='-Bexport'
14076           no_entry_flag=""
14077         else
14078           aix_use_runtimelinking=no
14079
14080           # Test if we are trying to use run time linking or normal
14081           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14082           # need to do runtime linking.
14083           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14084             for ld_flag in $LDFLAGS; do
14085               case $ld_flag in
14086               *-brtl*)
14087                 aix_use_runtimelinking=yes
14088                 break
14089                 ;;
14090               esac
14091             done
14092             ;;
14093           esac
14094
14095           exp_sym_flag='-bexport'
14096           no_entry_flag='-bnoentry'
14097         fi
14098
14099         # When large executables or shared objects are built, AIX ld can
14100         # have problems creating the table of contents.  If linking a library
14101         # or program results in "error TOC overflow" add -mminimal-toc to
14102         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14103         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14104
14105         archive_cmds_CXX=''
14106         hardcode_direct_CXX=yes
14107         hardcode_direct_absolute_CXX=yes
14108         hardcode_libdir_separator_CXX=':'
14109         link_all_deplibs_CXX=yes
14110         file_list_spec_CXX='${wl}-f,'
14111
14112         if test "$GXX" = yes; then
14113           case $host_os in aix4.[012]|aix4.[012].*)
14114           # We only want to do this on AIX 4.2 and lower, the check
14115           # below for broken collect2 doesn't work under 4.3+
14116           collect2name=`${CC} -print-prog-name=collect2`
14117           if test -f "$collect2name" &&
14118              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14119           then
14120             # We have reworked collect2
14121             :
14122           else
14123             # We have old collect2
14124             hardcode_direct_CXX=unsupported
14125             # It fails to find uninstalled libraries when the uninstalled
14126             # path is not listed in the libpath.  Setting hardcode_minus_L
14127             # to unsupported forces relinking
14128             hardcode_minus_L_CXX=yes
14129             hardcode_libdir_flag_spec_CXX='-L$libdir'
14130             hardcode_libdir_separator_CXX=
14131           fi
14132           esac
14133           shared_flag='-shared'
14134           if test "$aix_use_runtimelinking" = yes; then
14135             shared_flag="$shared_flag "'${wl}-G'
14136           fi
14137         else
14138           # not using gcc
14139           if test "$host_cpu" = ia64; then
14140           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14141           # chokes on -Wl,-G. The following line is correct:
14142           shared_flag='-G'
14143           else
14144             if test "$aix_use_runtimelinking" = yes; then
14145               shared_flag='${wl}-G'
14146             else
14147               shared_flag='${wl}-bM:SRE'
14148             fi
14149           fi
14150         fi
14151
14152         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14153         # It seems that -bexpall does not export symbols beginning with
14154         # underscore (_), so it is better to generate a list of symbols to
14155         # export.
14156         always_export_symbols_CXX=yes
14157         if test "$aix_use_runtimelinking" = yes; then
14158           # Warning - without using the other runtime loading flags (-brtl),
14159           # -berok will link without error, but may produce a broken library.
14160           allow_undefined_flag_CXX='-berok'
14161           # Determine the default libpath from the value encoded in an empty
14162           # executable.
14163           cat >conftest.$ac_ext <<_ACEOF
14164 /* confdefs.h.  */
14165 _ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h.  */
14169
14170 int
14171 main ()
14172 {
14173
14174   ;
14175   return 0;
14176 }
14177 _ACEOF
14178 rm -f conftest.$ac_objext conftest$ac_exeext
14179 if { (ac_try="$ac_link"
14180 case "(($ac_try" in
14181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182   *) ac_try_echo=$ac_try;;
14183 esac
14184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14185 $as_echo "$ac_try_echo") >&5
14186   (eval "$ac_link") 2>conftest.er1
14187   ac_status=$?
14188   grep -v '^ *+' conftest.er1 >conftest.err
14189   rm -f conftest.er1
14190   cat conftest.err >&5
14191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); } && {
14193          test -z "$ac_cxx_werror_flag" ||
14194          test ! -s conftest.err
14195        } && test -s conftest$ac_exeext && {
14196          test "$cross_compiling" = yes ||
14197          $as_test_x conftest$ac_exeext
14198        }; then
14199
14200 lt_aix_libpath_sed='
14201     /Import File Strings/,/^$/ {
14202         /^0/ {
14203             s/^0  *\(.*\)$/\1/
14204             p
14205         }
14206     }'
14207 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14208 # Check for a 64-bit object if we didn't find anything.
14209 if test -z "$aix_libpath"; then
14210   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14211 fi
14212 else
14213   $as_echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14215
14216
14217 fi
14218
14219 rm -rf conftest.dSYM
14220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14221       conftest$ac_exeext conftest.$ac_ext
14222 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14223
14224           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14225
14226           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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14227         else
14228           if test "$host_cpu" = ia64; then
14229             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14230             allow_undefined_flag_CXX="-z nodefs"
14231             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"
14232           else
14233             # Determine the default libpath from the value encoded in an
14234             # empty executable.
14235             cat >conftest.$ac_ext <<_ACEOF
14236 /* confdefs.h.  */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h.  */
14241
14242 int
14243 main ()
14244 {
14245
14246   ;
14247   return 0;
14248 }
14249 _ACEOF
14250 rm -f conftest.$ac_objext conftest$ac_exeext
14251 if { (ac_try="$ac_link"
14252 case "(($ac_try" in
14253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254   *) ac_try_echo=$ac_try;;
14255 esac
14256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14257 $as_echo "$ac_try_echo") >&5
14258   (eval "$ac_link") 2>conftest.er1
14259   ac_status=$?
14260   grep -v '^ *+' conftest.er1 >conftest.err
14261   rm -f conftest.er1
14262   cat conftest.err >&5
14263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); } && {
14265          test -z "$ac_cxx_werror_flag" ||
14266          test ! -s conftest.err
14267        } && test -s conftest$ac_exeext && {
14268          test "$cross_compiling" = yes ||
14269          $as_test_x conftest$ac_exeext
14270        }; then
14271
14272 lt_aix_libpath_sed='
14273     /Import File Strings/,/^$/ {
14274         /^0/ {
14275             s/^0  *\(.*\)$/\1/
14276             p
14277         }
14278     }'
14279 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14280 # Check for a 64-bit object if we didn't find anything.
14281 if test -z "$aix_libpath"; then
14282   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14283 fi
14284 else
14285   $as_echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14287
14288
14289 fi
14290
14291 rm -rf conftest.dSYM
14292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14293       conftest$ac_exeext conftest.$ac_ext
14294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14295
14296             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14297             # Warning - without using the other run time loading flags,
14298             # -berok will link without error, but may produce a broken library.
14299             no_undefined_flag_CXX=' ${wl}-bernotok'
14300             allow_undefined_flag_CXX=' ${wl}-berok'
14301             # Exported symbols can be pulled into shared objects from archives
14302             whole_archive_flag_spec_CXX='$convenience'
14303             archive_cmds_need_lc_CXX=yes
14304             # This is similar to how AIX traditionally builds its shared
14305             # libraries.
14306             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'
14307           fi
14308         fi
14309         ;;
14310
14311       beos*)
14312         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14313           allow_undefined_flag_CXX=unsupported
14314           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14315           # support --undefined.  This deserves some investigation.  FIXME
14316           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14317         else
14318           ld_shlibs_CXX=no
14319         fi
14320         ;;
14321
14322       chorus*)
14323         case $cc_basename in
14324           *)
14325           # FIXME: insert proper C++ library support
14326           ld_shlibs_CXX=no
14327           ;;
14328         esac
14329         ;;
14330
14331       cygwin* | mingw* | pw32* | cegcc*)
14332         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14333         # as there is no search path for DLLs.
14334         hardcode_libdir_flag_spec_CXX='-L$libdir'
14335         allow_undefined_flag_CXX=unsupported
14336         always_export_symbols_CXX=no
14337         enable_shared_with_static_runtimes_CXX=yes
14338
14339         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14340           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'
14341           # If the export-symbols file already is a .def file (1st line
14342           # is EXPORTS), use it as is; otherwise, prepend...
14343           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14344             cp $export_symbols $output_objdir/$soname.def;
14345           else
14346             echo EXPORTS > $output_objdir/$soname.def;
14347             cat $export_symbols >> $output_objdir/$soname.def;
14348           fi~
14349           $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'
14350         else
14351           ld_shlibs_CXX=no
14352         fi
14353         ;;
14354       darwin* | rhapsody*)
14355
14356
14357   archive_cmds_need_lc_CXX=no
14358   hardcode_direct_CXX=no
14359   hardcode_automatic_CXX=yes
14360   hardcode_shlibpath_var_CXX=unsupported
14361   whole_archive_flag_spec_CXX=''
14362   link_all_deplibs_CXX=yes
14363   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14364   case $cc_basename in
14365      ifort*) _lt_dar_can_shared=yes ;;
14366      *) _lt_dar_can_shared=$GCC ;;
14367   esac
14368   if test "$_lt_dar_can_shared" = "yes"; then
14369     output_verbose_link_cmd=echo
14370     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14371     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14372     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14373     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14374        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14375       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${_lt_dsymutil}"
14376       archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
14377     fi
14378
14379   else
14380   ld_shlibs_CXX=no
14381   fi
14382
14383         ;;
14384
14385       dgux*)
14386         case $cc_basename in
14387           ec++*)
14388             # FIXME: insert proper C++ library support
14389             ld_shlibs_CXX=no
14390             ;;
14391           ghcx*)
14392             # Green Hills C++ Compiler
14393             # FIXME: insert proper C++ library support
14394             ld_shlibs_CXX=no
14395             ;;
14396           *)
14397             # FIXME: insert proper C++ library support
14398             ld_shlibs_CXX=no
14399             ;;
14400         esac
14401         ;;
14402
14403       freebsd[12]*)
14404         # C++ shared libraries reported to be fairly broken before
14405         # switch to ELF
14406         ld_shlibs_CXX=no
14407         ;;
14408
14409       freebsd-elf*)
14410         archive_cmds_need_lc_CXX=no
14411         ;;
14412
14413       freebsd* | dragonfly*)
14414         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14415         # conventions
14416         ld_shlibs_CXX=yes
14417         ;;
14418
14419       gnu*)
14420         ;;
14421
14422       hpux9*)
14423         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14424         hardcode_libdir_separator_CXX=:
14425         export_dynamic_flag_spec_CXX='${wl}-E'
14426         hardcode_direct_CXX=yes
14427         hardcode_minus_L_CXX=yes # Not in the search PATH,
14428                                              # but as the default
14429                                              # location of the library.
14430
14431         case $cc_basename in
14432           CC*)
14433             # FIXME: insert proper C++ library support
14434             ld_shlibs_CXX=no
14435             ;;
14436           aCC*)
14437             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'
14438             # Commands to make compiler produce verbose output that lists
14439             # what "hidden" libraries, object files and flags are used when
14440             # linking a shared library.
14441             #
14442             # There doesn't appear to be a way to prevent this compiler from
14443             # explicitly linking system object files so we need to strip them
14444             # from the output so that they don't get included in the library
14445             # dependencies.
14446             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14447             ;;
14448           *)
14449             if test "$GXX" = yes; then
14450               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'
14451             else
14452               # FIXME: insert proper C++ library support
14453               ld_shlibs_CXX=no
14454             fi
14455             ;;
14456         esac
14457         ;;
14458
14459       hpux10*|hpux11*)
14460         if test $with_gnu_ld = no; then
14461           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14462           hardcode_libdir_separator_CXX=:
14463
14464           case $host_cpu in
14465             hppa*64*|ia64*)
14466               ;;
14467             *)
14468               export_dynamic_flag_spec_CXX='${wl}-E'
14469               ;;
14470           esac
14471         fi
14472         case $host_cpu in
14473           hppa*64*|ia64*)
14474             hardcode_direct_CXX=no
14475             hardcode_shlibpath_var_CXX=no
14476             ;;
14477           *)
14478             hardcode_direct_CXX=yes
14479             hardcode_direct_absolute_CXX=yes
14480             hardcode_minus_L_CXX=yes # Not in the search PATH,
14481                                                  # but as the default
14482                                                  # location of the library.
14483             ;;
14484         esac
14485
14486         case $cc_basename in
14487           CC*)
14488             # FIXME: insert proper C++ library support
14489             ld_shlibs_CXX=no
14490             ;;
14491           aCC*)
14492             case $host_cpu in
14493               hppa*64*)
14494                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14495                 ;;
14496               ia64*)
14497                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14498                 ;;
14499               *)
14500                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14501                 ;;
14502             esac
14503             # Commands to make compiler produce verbose output that lists
14504             # what "hidden" libraries, object files and flags are used when
14505             # linking a shared library.
14506             #
14507             # There doesn't appear to be a way to prevent this compiler from
14508             # explicitly linking system object files so we need to strip them
14509             # from the output so that they don't get included in the library
14510             # dependencies.
14511             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 "X$list" | $Xsed'
14512             ;;
14513           *)
14514             if test "$GXX" = yes; then
14515               if test $with_gnu_ld = no; then
14516                 case $host_cpu in
14517                   hppa*64*)
14518                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14519                     ;;
14520                   ia64*)
14521                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14522                     ;;
14523                   *)
14524                     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'
14525                     ;;
14526                 esac
14527               fi
14528             else
14529               # FIXME: insert proper C++ library support
14530               ld_shlibs_CXX=no
14531             fi
14532             ;;
14533         esac
14534         ;;
14535
14536       interix[3-9]*)
14537         hardcode_direct_CXX=no
14538         hardcode_shlibpath_var_CXX=no
14539         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14540         export_dynamic_flag_spec_CXX='${wl}-E'
14541         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14542         # Instead, shared libraries are loaded at an image base (0x10000000 by
14543         # default) and relocated if they conflict, which is a slow very memory
14544         # consuming and fragmenting process.  To avoid this, we pick a random,
14545         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14546         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14547         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'
14548         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'
14549         ;;
14550       irix5* | irix6*)
14551         case $cc_basename in
14552           CC*)
14553             # SGI C++
14554             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14555
14556             # Archives containing C++ object files must be created using
14557             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14558             # necessary to make sure instantiated templates are included
14559             # in the archive.
14560             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14561             ;;
14562           *)
14563             if test "$GXX" = yes; then
14564               if test "$with_gnu_ld" = no; then
14565                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14566               else
14567                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14568               fi
14569             fi
14570             link_all_deplibs_CXX=yes
14571             ;;
14572         esac
14573         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14574         hardcode_libdir_separator_CXX=:
14575         inherit_rpath_CXX=yes
14576         ;;
14577
14578       linux* | k*bsd*-gnu)
14579         case $cc_basename in
14580           KCC*)
14581             # Kuck and Associates, Inc. (KAI) C++ Compiler
14582
14583             # KCC will only create a shared library if the output file
14584             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14585             # to its proper name (with version) after linking.
14586             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'
14587             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'
14588             # Commands to make compiler produce verbose output that lists
14589             # what "hidden" libraries, object files and flags are used when
14590             # linking a shared library.
14591             #
14592             # There doesn't appear to be a way to prevent this compiler from
14593             # explicitly linking system object files so we need to strip them
14594             # from the output so that they don't get included in the library
14595             # dependencies.
14596             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 "X$list" | $Xsed'
14597
14598             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14599             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14600
14601             # Archives containing C++ object files must be created using
14602             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14603             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14604             ;;
14605           icpc* | ecpc* )
14606             # Intel C++
14607             with_gnu_ld=yes
14608             # version 8.0 and above of icpc choke on multiply defined symbols
14609             # if we add $predep_objects and $postdep_objects, however 7.1 and
14610             # earlier do not add the objects themselves.
14611             case `$CC -V 2>&1` in
14612               *"Version 7."*)
14613                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14614                 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'
14615                 ;;
14616               *)  # Version 8.0 or newer
14617                 tmp_idyn=
14618                 case $host_cpu in
14619                   ia64*) tmp_idyn=' -i_dynamic';;
14620                 esac
14621                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14622                 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'
14623                 ;;
14624             esac
14625             archive_cmds_need_lc_CXX=no
14626             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14627             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14628             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14629             ;;
14630           pgCC* | pgcpp*)
14631             # Portland Group C++ compiler
14632             case `$CC -V` in
14633             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14634               prelink_cmds_CXX='tpldir=Template.dir~
14635                 rm -rf $tpldir~
14636                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14637                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14638               old_archive_cmds_CXX='tpldir=Template.dir~
14639                 rm -rf $tpldir~
14640                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14641                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14642                 $RANLIB $oldlib'
14643               archive_cmds_CXX='tpldir=Template.dir~
14644                 rm -rf $tpldir~
14645                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14646                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14647               archive_expsym_cmds_CXX='tpldir=Template.dir~
14648                 rm -rf $tpldir~
14649                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14650                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14651               ;;
14652             *) # Version 6 will use weak symbols
14653               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14654               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'
14655               ;;
14656             esac
14657
14658             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14659             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14660             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'
14661             ;;
14662           cxx*)
14663             # Compaq C++
14664             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14665             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'
14666
14667             runpath_var=LD_RUN_PATH
14668             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14669             hardcode_libdir_separator_CXX=:
14670
14671             # Commands to make compiler produce verbose output that lists
14672             # what "hidden" libraries, object files and flags are used when
14673             # linking a shared library.
14674             #
14675             # There doesn't appear to be a way to prevent this compiler from
14676             # explicitly linking system object files so we need to strip them
14677             # from the output so that they don't get included in the library
14678             # dependencies.
14679             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
14680             ;;
14681           xl*)
14682             # IBM XL 8.0 on PPC, with GNU ld
14683             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14684             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14685             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14686             if test "x$supports_anon_versioning" = xyes; then
14687               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14688                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14689                 echo "local: *; };" >> $output_objdir/$libname.ver~
14690                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14691             fi
14692             ;;
14693           *)
14694             case `$CC -V 2>&1 | sed 5q` in
14695             *Sun\ C*)
14696               # Sun C++ 5.9
14697               no_undefined_flag_CXX=' -zdefs'
14698               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14699               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14700               hardcode_libdir_flag_spec_CXX='-R$libdir'
14701               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14702               compiler_needs_object_CXX=yes
14703
14704               # Not sure whether something based on
14705               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14706               # would be better.
14707               output_verbose_link_cmd='echo'
14708
14709               # Archives containing C++ object files must be created using
14710               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14711               # necessary to make sure instantiated templates are included
14712               # in the archive.
14713               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14714               ;;
14715             esac
14716             ;;
14717         esac
14718         ;;
14719
14720       lynxos*)
14721         # FIXME: insert proper C++ library support
14722         ld_shlibs_CXX=no
14723         ;;
14724
14725       m88k*)
14726         # FIXME: insert proper C++ library support
14727         ld_shlibs_CXX=no
14728         ;;
14729
14730       mvs*)
14731         case $cc_basename in
14732           cxx*)
14733             # FIXME: insert proper C++ library support
14734             ld_shlibs_CXX=no
14735             ;;
14736           *)
14737             # FIXME: insert proper C++ library support
14738             ld_shlibs_CXX=no
14739             ;;
14740         esac
14741         ;;
14742
14743       netbsd*)
14744         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14745           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14746           wlarc=
14747           hardcode_libdir_flag_spec_CXX='-R$libdir'
14748           hardcode_direct_CXX=yes
14749           hardcode_shlibpath_var_CXX=no
14750         fi
14751         # Workaround some broken pre-1.5 toolchains
14752         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14753         ;;
14754
14755       *nto* | *qnx*)
14756         ld_shlibs_CXX=yes
14757         ;;
14758
14759       openbsd2*)
14760         # C++ shared libraries are fairly broken
14761         ld_shlibs_CXX=no
14762         ;;
14763
14764       openbsd*)
14765         if test -f /usr/libexec/ld.so; then
14766           hardcode_direct_CXX=yes
14767           hardcode_shlibpath_var_CXX=no
14768           hardcode_direct_absolute_CXX=yes
14769           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14770           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14771           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14772             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14773             export_dynamic_flag_spec_CXX='${wl}-E'
14774             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14775           fi
14776           output_verbose_link_cmd=echo
14777         else
14778           ld_shlibs_CXX=no
14779         fi
14780         ;;
14781
14782       osf3* | osf4* | osf5*)
14783         case $cc_basename in
14784           KCC*)
14785             # Kuck and Associates, Inc. (KAI) C++ Compiler
14786
14787             # KCC will only create a shared library if the output file
14788             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14789             # to its proper name (with version) after linking.
14790             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'
14791
14792             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14793             hardcode_libdir_separator_CXX=:
14794
14795             # Archives containing C++ object files must be created using
14796             # the KAI C++ compiler.
14797             case $host in
14798               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14799               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14800             esac
14801             ;;
14802           RCC*)
14803             # Rational C++ 2.4.1
14804             # FIXME: insert proper C++ library support
14805             ld_shlibs_CXX=no
14806             ;;
14807           cxx*)
14808             case $host in
14809               osf3*)
14810                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14811                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14812                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14813                 ;;
14814               *)
14815                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14816                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14817                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14818                   echo "-hidden">> $lib.exp~
14819                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14820                   $RM $lib.exp'
14821                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14822                 ;;
14823             esac
14824
14825             hardcode_libdir_separator_CXX=:
14826
14827             # Commands to make compiler produce verbose output that lists
14828             # what "hidden" libraries, object files and flags are used when
14829             # linking a shared library.
14830             #
14831             # There doesn't appear to be a way to prevent this compiler from
14832             # explicitly linking system object files so we need to strip them
14833             # from the output so that they don't get included in the library
14834             # dependencies.
14835             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
14836             ;;
14837           *)
14838             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14839               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14840               case $host in
14841                 osf3*)
14842                   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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14843                   ;;
14844                 *)
14845                   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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14846                   ;;
14847               esac
14848
14849               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14850               hardcode_libdir_separator_CXX=:
14851
14852               # Commands to make compiler produce verbose output that lists
14853               # what "hidden" libraries, object files and flags are used when
14854               # linking a shared library.
14855               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14856
14857             else
14858               # FIXME: insert proper C++ library support
14859               ld_shlibs_CXX=no
14860             fi
14861             ;;
14862         esac
14863         ;;
14864
14865       psos*)
14866         # FIXME: insert proper C++ library support
14867         ld_shlibs_CXX=no
14868         ;;
14869
14870       sunos4*)
14871         case $cc_basename in
14872           CC*)
14873             # Sun C++ 4.x
14874             # FIXME: insert proper C++ library support
14875             ld_shlibs_CXX=no
14876             ;;
14877           lcc*)
14878             # Lucid
14879             # FIXME: insert proper C++ library support
14880             ld_shlibs_CXX=no
14881             ;;
14882           *)
14883             # FIXME: insert proper C++ library support
14884             ld_shlibs_CXX=no
14885             ;;
14886         esac
14887         ;;
14888
14889       solaris*)
14890         case $cc_basename in
14891           CC*)
14892             # Sun C++ 4.2, 5.x and Centerline C++
14893             archive_cmds_need_lc_CXX=yes
14894             no_undefined_flag_CXX=' -zdefs'
14895             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14896             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14897               $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'
14898
14899             hardcode_libdir_flag_spec_CXX='-R$libdir'
14900             hardcode_shlibpath_var_CXX=no
14901             case $host_os in
14902               solaris2.[0-5] | solaris2.[0-5].*) ;;
14903               *)
14904                 # The compiler driver will combine and reorder linker options,
14905                 # but understands `-z linker_flag'.
14906                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14907                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14908                 ;;
14909             esac
14910             link_all_deplibs_CXX=yes
14911
14912             output_verbose_link_cmd='echo'
14913
14914             # Archives containing C++ object files must be created using
14915             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14916             # necessary to make sure instantiated templates are included
14917             # in the archive.
14918             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14919             ;;
14920           gcx*)
14921             # Green Hills C++ Compiler
14922             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14923
14924             # The C++ compiler must be used to create the archive.
14925             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14926             ;;
14927           *)
14928             # GNU C++ compiler with Solaris linker
14929             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14930               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14931               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14932                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14933                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14934                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14935
14936                 # Commands to make compiler produce verbose output that lists
14937                 # what "hidden" libraries, object files and flags are used when
14938                 # linking a shared library.
14939                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14940               else
14941                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14942                 # platform.
14943                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14944                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14945                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14946
14947                 # Commands to make compiler produce verbose output that lists
14948                 # what "hidden" libraries, object files and flags are used when
14949                 # linking a shared library.
14950                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14951               fi
14952
14953               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14954               case $host_os in
14955                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14956                 *)
14957                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14958                   ;;
14959               esac
14960             fi
14961             ;;
14962         esac
14963         ;;
14964
14965     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14966       no_undefined_flag_CXX='${wl}-z,text'
14967       archive_cmds_need_lc_CXX=no
14968       hardcode_shlibpath_var_CXX=no
14969       runpath_var='LD_RUN_PATH'
14970
14971       case $cc_basename in
14972         CC*)
14973           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14974           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14975           ;;
14976         *)
14977           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14978           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14979           ;;
14980       esac
14981       ;;
14982
14983       sysv5* | sco3.2v5* | sco5v6*)
14984         # Note: We can NOT use -z defs as we might desire, because we do not
14985         # link with -lc, and that would cause any symbols used from libc to
14986         # always be unresolved, which means just about no library would
14987         # ever link correctly.  If we're not using GNU ld we use -z text
14988         # though, which does catch some bad symbols but isn't as heavy-handed
14989         # as -z defs.
14990         no_undefined_flag_CXX='${wl}-z,text'
14991         allow_undefined_flag_CXX='${wl}-z,nodefs'
14992         archive_cmds_need_lc_CXX=no
14993         hardcode_shlibpath_var_CXX=no
14994         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14995         hardcode_libdir_separator_CXX=':'
14996         link_all_deplibs_CXX=yes
14997         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14998         runpath_var='LD_RUN_PATH'
14999
15000         case $cc_basename in
15001           CC*)
15002             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15003             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15004             ;;
15005           *)
15006             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15007             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15008             ;;
15009         esac
15010       ;;
15011
15012       tandem*)
15013         case $cc_basename in
15014           NCC*)
15015             # NonStop-UX NCC 3.20
15016             # FIXME: insert proper C++ library support
15017             ld_shlibs_CXX=no
15018             ;;
15019           *)
15020             # FIXME: insert proper C++ library support
15021             ld_shlibs_CXX=no
15022             ;;
15023         esac
15024         ;;
15025
15026       vxworks*)
15027         # FIXME: insert proper C++ library support
15028         ld_shlibs_CXX=no
15029         ;;
15030
15031       *)
15032         # FIXME: insert proper C++ library support
15033         ld_shlibs_CXX=no
15034         ;;
15035     esac
15036
15037     { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15038 $as_echo "$ld_shlibs_CXX" >&6; }
15039     test "$ld_shlibs_CXX" = no && can_build_shared=no
15040
15041     GCC_CXX="$GXX"
15042     LD_CXX="$LD"
15043
15044     ## CAVEAT EMPTOR:
15045     ## There is no encapsulation within the following macros, do not change
15046     ## the running order or otherwise move them around unless you know exactly
15047     ## what you are doing...
15048     # Dependencies to place before and after the object being linked:
15049 predep_objects_CXX=
15050 postdep_objects_CXX=
15051 predeps_CXX=
15052 postdeps_CXX=
15053 compiler_lib_search_path_CXX=
15054
15055 cat > conftest.$ac_ext <<_LT_EOF
15056 class Foo
15057 {
15058 public:
15059   Foo (void) { a = 0; }
15060 private:
15061   int a;
15062 };
15063 _LT_EOF
15064
15065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15066   (eval $ac_compile) 2>&5
15067   ac_status=$?
15068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069   (exit $ac_status); }; then
15070   # Parse the compiler output and extract the necessary
15071   # objects, libraries and library flags.
15072
15073   # Sentinel used to keep track of whether or not we are before
15074   # the conftest object file.
15075   pre_test_object_deps_done=no
15076
15077   for p in `eval "$output_verbose_link_cmd"`; do
15078     case $p in
15079
15080     -L* | -R* | -l*)
15081        # Some compilers place space between "-{L,R}" and the path.
15082        # Remove the space.
15083        if test $p = "-L" ||
15084           test $p = "-R"; then
15085          prev=$p
15086          continue
15087        else
15088          prev=
15089        fi
15090
15091        if test "$pre_test_object_deps_done" = no; then
15092          case $p in
15093          -L* | -R*)
15094            # Internal compiler library paths should come after those
15095            # provided the user.  The postdeps already come after the
15096            # user supplied libs so there is no need to process them.
15097            if test -z "$compiler_lib_search_path_CXX"; then
15098              compiler_lib_search_path_CXX="${prev}${p}"
15099            else
15100              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15101            fi
15102            ;;
15103          # The "-l" case would never come before the object being
15104          # linked, so don't bother handling this case.
15105          esac
15106        else
15107          if test -z "$postdeps_CXX"; then
15108            postdeps_CXX="${prev}${p}"
15109          else
15110            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15111          fi
15112        fi
15113        ;;
15114
15115     *.$objext)
15116        # This assumes that the test object file only shows up
15117        # once in the compiler output.
15118        if test "$p" = "conftest.$objext"; then
15119          pre_test_object_deps_done=yes
15120          continue
15121        fi
15122
15123        if test "$pre_test_object_deps_done" = no; then
15124          if test -z "$predep_objects_CXX"; then
15125            predep_objects_CXX="$p"
15126          else
15127            predep_objects_CXX="$predep_objects_CXX $p"
15128          fi
15129        else
15130          if test -z "$postdep_objects_CXX"; then
15131            postdep_objects_CXX="$p"
15132          else
15133            postdep_objects_CXX="$postdep_objects_CXX $p"
15134          fi
15135        fi
15136        ;;
15137
15138     *) ;; # Ignore the rest.
15139
15140     esac
15141   done
15142
15143   # Clean up.
15144   rm -f a.out a.exe
15145 else
15146   echo "libtool.m4: error: problem compiling CXX test program"
15147 fi
15148
15149 $RM -f confest.$objext
15150
15151 # PORTME: override above test on systems where it is broken
15152 case $host_os in
15153 interix[3-9]*)
15154   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15155   # hack all around it, let's just trust "g++" to DTRT.
15156   predep_objects_CXX=
15157   postdep_objects_CXX=
15158   postdeps_CXX=
15159   ;;
15160
15161 linux*)
15162   case `$CC -V 2>&1 | sed 5q` in
15163   *Sun\ C*)
15164     # Sun C++ 5.9
15165
15166     # The more standards-conforming stlport4 library is
15167     # incompatible with the Cstd library. Avoid specifying
15168     # it if it's in CXXFLAGS. Ignore libCrun as
15169     # -library=stlport4 depends on it.
15170     case " $CXX $CXXFLAGS " in
15171     *" -library=stlport4 "*)
15172       solaris_use_stlport4=yes
15173       ;;
15174     esac
15175
15176     if test "$solaris_use_stlport4" != yes; then
15177       postdeps_CXX='-library=Cstd -library=Crun'
15178     fi
15179     ;;
15180   esac
15181   ;;
15182
15183 solaris*)
15184   case $cc_basename in
15185   CC*)
15186     # The more standards-conforming stlport4 library is
15187     # incompatible with the Cstd library. Avoid specifying
15188     # it if it's in CXXFLAGS. Ignore libCrun as
15189     # -library=stlport4 depends on it.
15190     case " $CXX $CXXFLAGS " in
15191     *" -library=stlport4 "*)
15192       solaris_use_stlport4=yes
15193       ;;
15194     esac
15195
15196     # Adding this requires a known-good setup of shared libraries for
15197     # Sun compiler versions before 5.6, else PIC objects from an old
15198     # archive will be linked into the output, leading to subtle bugs.
15199     if test "$solaris_use_stlport4" != yes; then
15200       postdeps_CXX='-library=Cstd -library=Crun'
15201     fi
15202     ;;
15203   esac
15204   ;;
15205 esac
15206
15207
15208 case " $postdeps_CXX " in
15209 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15210 esac
15211  compiler_lib_search_dirs_CXX=
15212 if test -n "${compiler_lib_search_path_CXX}"; then
15213  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15214 fi
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246     lt_prog_compiler_wl_CXX=
15247 lt_prog_compiler_pic_CXX=
15248 lt_prog_compiler_static_CXX=
15249
15250 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15251 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15252
15253   # C++ specific cases for pic, static, wl, etc.
15254   if test "$GXX" = yes; then
15255     lt_prog_compiler_wl_CXX='-Wl,'
15256     lt_prog_compiler_static_CXX='-static'
15257
15258     case $host_os in
15259     aix*)
15260       # All AIX code is PIC.
15261       if test "$host_cpu" = ia64; then
15262         # AIX 5 now supports IA64 processor
15263         lt_prog_compiler_static_CXX='-Bstatic'
15264       fi
15265       ;;
15266
15267     amigaos*)
15268       case $host_cpu in
15269       powerpc)
15270             # see comment about AmigaOS4 .so support
15271             lt_prog_compiler_pic_CXX='-fPIC'
15272         ;;
15273       m68k)
15274             # FIXME: we need at least 68020 code to build shared libraries, but
15275             # adding the `-m68020' flag to GCC prevents building anything better,
15276             # like `-m68040'.
15277             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15278         ;;
15279       esac
15280       ;;
15281
15282     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15283       # PIC is the default for these OSes.
15284       ;;
15285     mingw* | cygwin* | os2* | pw32* | cegcc*)
15286       # This hack is so that the source file can tell whether it is being
15287       # built for inclusion in a dll (and should export symbols for example).
15288       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15289       # (--disable-auto-import) libraries
15290       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15291       ;;
15292     darwin* | rhapsody*)
15293       # PIC is the default on this platform
15294       # Common symbols not allowed in MH_DYLIB files
15295       lt_prog_compiler_pic_CXX='-fno-common'
15296       ;;
15297     *djgpp*)
15298       # DJGPP does not support shared libraries at all
15299       lt_prog_compiler_pic_CXX=
15300       ;;
15301     interix[3-9]*)
15302       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15303       # Instead, we relocate shared libraries at runtime.
15304       ;;
15305     sysv4*MP*)
15306       if test -d /usr/nec; then
15307         lt_prog_compiler_pic_CXX=-Kconform_pic
15308       fi
15309       ;;
15310     hpux*)
15311       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15312       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15313       # sets the default TLS model and affects inlining.
15314       case $host_cpu in
15315       hppa*64*)
15316         ;;
15317       *)
15318         lt_prog_compiler_pic_CXX='-fPIC'
15319         ;;
15320       esac
15321       ;;
15322     *qnx* | *nto*)
15323       # QNX uses GNU C++, but need to define -shared option too, otherwise
15324       # it will coredump.
15325       lt_prog_compiler_pic_CXX='-fPIC -shared'
15326       ;;
15327     *)
15328       lt_prog_compiler_pic_CXX='-fPIC'
15329       ;;
15330     esac
15331   else
15332     case $host_os in
15333       aix[4-9]*)
15334         # All AIX code is PIC.
15335         if test "$host_cpu" = ia64; then
15336           # AIX 5 now supports IA64 processor
15337           lt_prog_compiler_static_CXX='-Bstatic'
15338         else
15339           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15340         fi
15341         ;;
15342       chorus*)
15343         case $cc_basename in
15344         cxch68*)
15345           # Green Hills C++ Compiler
15346           # _LT_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"
15347           ;;
15348         esac
15349         ;;
15350       dgux*)
15351         case $cc_basename in
15352           ec++*)
15353             lt_prog_compiler_pic_CXX='-KPIC'
15354             ;;
15355           ghcx*)
15356             # Green Hills C++ Compiler
15357             lt_prog_compiler_pic_CXX='-pic'
15358             ;;
15359           *)
15360             ;;
15361         esac
15362         ;;
15363       freebsd* | dragonfly*)
15364         # FreeBSD uses GNU C++
15365         ;;
15366       hpux9* | hpux10* | hpux11*)
15367         case $cc_basename in
15368           CC*)
15369             lt_prog_compiler_wl_CXX='-Wl,'
15370             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15371             if test "$host_cpu" != ia64; then
15372               lt_prog_compiler_pic_CXX='+Z'
15373             fi
15374             ;;
15375           aCC*)
15376             lt_prog_compiler_wl_CXX='-Wl,'
15377             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15378             case $host_cpu in
15379             hppa*64*|ia64*)
15380               # +Z the default
15381               ;;
15382             *)
15383               lt_prog_compiler_pic_CXX='+Z'
15384               ;;
15385             esac
15386             ;;
15387           *)
15388             ;;
15389         esac
15390         ;;
15391       interix*)
15392         # This is c89, which is MS Visual C++ (no shared libs)
15393         # Anyone wants to do a port?
15394         ;;
15395       irix5* | irix6* | nonstopux*)
15396         case $cc_basename in
15397           CC*)
15398             lt_prog_compiler_wl_CXX='-Wl,'
15399             lt_prog_compiler_static_CXX='-non_shared'
15400             # CC pic flag -KPIC is the default.
15401             ;;
15402           *)
15403             ;;
15404         esac
15405         ;;
15406       linux* | k*bsd*-gnu)
15407         case $cc_basename in
15408           KCC*)
15409             # KAI C++ Compiler
15410             lt_prog_compiler_wl_CXX='--backend -Wl,'
15411             lt_prog_compiler_pic_CXX='-fPIC'
15412             ;;
15413           ecpc* )
15414             # old Intel C++ for x86_64 which still supported -KPIC.
15415             lt_prog_compiler_wl_CXX='-Wl,'
15416             lt_prog_compiler_pic_CXX='-KPIC'
15417             lt_prog_compiler_static_CXX='-static'
15418             ;;
15419           icpc* )
15420             # Intel C++, used to be incompatible with GCC.
15421             # ICC 10 doesn't accept -KPIC any more.
15422             lt_prog_compiler_wl_CXX='-Wl,'
15423             lt_prog_compiler_pic_CXX='-fPIC'
15424             lt_prog_compiler_static_CXX='-static'
15425             ;;
15426           pgCC* | pgcpp*)
15427             # Portland Group C++ compiler
15428             lt_prog_compiler_wl_CXX='-Wl,'
15429             lt_prog_compiler_pic_CXX='-fpic'
15430             lt_prog_compiler_static_CXX='-Bstatic'
15431             ;;
15432           cxx*)
15433             # Compaq C++
15434             # Make sure the PIC flag is empty.  It appears that all Alpha
15435             # Linux and Compaq Tru64 Unix objects are PIC.
15436             lt_prog_compiler_pic_CXX=
15437             lt_prog_compiler_static_CXX='-non_shared'
15438             ;;
15439           xlc* | xlC*)
15440             # IBM XL 8.0 on PPC
15441             lt_prog_compiler_wl_CXX='-Wl,'
15442             lt_prog_compiler_pic_CXX='-qpic'
15443             lt_prog_compiler_static_CXX='-qstaticlink'
15444             ;;
15445           *)
15446             case `$CC -V 2>&1 | sed 5q` in
15447             *Sun\ C*)
15448               # Sun C++ 5.9
15449               lt_prog_compiler_pic_CXX='-KPIC'
15450               lt_prog_compiler_static_CXX='-Bstatic'
15451               lt_prog_compiler_wl_CXX='-Qoption ld '
15452               ;;
15453             esac
15454             ;;
15455         esac
15456         ;;
15457       lynxos*)
15458         ;;
15459       m88k*)
15460         ;;
15461       mvs*)
15462         case $cc_basename in
15463           cxx*)
15464             lt_prog_compiler_pic_CXX='-W c,exportall'
15465             ;;
15466           *)
15467             ;;
15468         esac
15469         ;;
15470       netbsd* | netbsdelf*-gnu)
15471         ;;
15472       *qnx* | *nto*)
15473         # QNX uses GNU C++, but need to define -shared option too, otherwise
15474         # it will coredump.
15475         lt_prog_compiler_pic_CXX='-fPIC -shared'
15476         ;;
15477       osf3* | osf4* | osf5*)
15478         case $cc_basename in
15479           KCC*)
15480             lt_prog_compiler_wl_CXX='--backend -Wl,'
15481             ;;
15482           RCC*)
15483             # Rational C++ 2.4.1
15484             lt_prog_compiler_pic_CXX='-pic'
15485             ;;
15486           cxx*)
15487             # Digital/Compaq C++
15488             lt_prog_compiler_wl_CXX='-Wl,'
15489             # Make sure the PIC flag is empty.  It appears that all Alpha
15490             # Linux and Compaq Tru64 Unix objects are PIC.
15491             lt_prog_compiler_pic_CXX=
15492             lt_prog_compiler_static_CXX='-non_shared'
15493             ;;
15494           *)
15495             ;;
15496         esac
15497         ;;
15498       psos*)
15499         ;;
15500       solaris*)
15501         case $cc_basename in
15502           CC*)
15503             # Sun C++ 4.2, 5.x and Centerline C++
15504             lt_prog_compiler_pic_CXX='-KPIC'
15505             lt_prog_compiler_static_CXX='-Bstatic'
15506             lt_prog_compiler_wl_CXX='-Qoption ld '
15507             ;;
15508           gcx*)
15509             # Green Hills C++ Compiler
15510             lt_prog_compiler_pic_CXX='-PIC'
15511             ;;
15512           *)
15513             ;;
15514         esac
15515         ;;
15516       sunos4*)
15517         case $cc_basename in
15518           CC*)
15519             # Sun C++ 4.x
15520             lt_prog_compiler_pic_CXX='-pic'
15521             lt_prog_compiler_static_CXX='-Bstatic'
15522             ;;
15523           lcc*)
15524             # Lucid
15525             lt_prog_compiler_pic_CXX='-pic'
15526             ;;
15527           *)
15528             ;;
15529         esac
15530         ;;
15531       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15532         case $cc_basename in
15533           CC*)
15534             lt_prog_compiler_wl_CXX='-Wl,'
15535             lt_prog_compiler_pic_CXX='-KPIC'
15536             lt_prog_compiler_static_CXX='-Bstatic'
15537             ;;
15538         esac
15539         ;;
15540       tandem*)
15541         case $cc_basename in
15542           NCC*)
15543             # NonStop-UX NCC 3.20
15544             lt_prog_compiler_pic_CXX='-KPIC'
15545             ;;
15546           *)
15547             ;;
15548         esac
15549         ;;
15550       vxworks*)
15551         ;;
15552       *)
15553         lt_prog_compiler_can_build_shared_CXX=no
15554         ;;
15555     esac
15556   fi
15557
15558 case $host_os in
15559   # For platforms which do not support PIC, -DPIC is meaningless:
15560   *djgpp*)
15561     lt_prog_compiler_pic_CXX=
15562     ;;
15563   *)
15564     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15565     ;;
15566 esac
15567 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15568 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15569
15570
15571
15572 #
15573 # Check to make sure the PIC flag actually works.
15574 #
15575 if test -n "$lt_prog_compiler_pic_CXX"; then
15576   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15577 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15578 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15579   $as_echo_n "(cached) " >&6
15580 else
15581   lt_cv_prog_compiler_pic_works_CXX=no
15582    ac_outfile=conftest.$ac_objext
15583    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15584    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15585    # Insert the option either (1) after the last *FLAGS variable, or
15586    # (2) before a word containing "conftest.", or (3) at the end.
15587    # Note that $ac_compile itself does not contain backslashes and begins
15588    # with a dollar sign (not a hyphen), so the echo should work correctly.
15589    # The option is referenced via a variable to avoid confusing sed.
15590    lt_compile=`echo "$ac_compile" | $SED \
15591    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15592    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15593    -e 's:$: $lt_compiler_flag:'`
15594    (eval echo "\"\$as_me:15594: $lt_compile\"" >&5)
15595    (eval "$lt_compile" 2>conftest.err)
15596    ac_status=$?
15597    cat conftest.err >&5
15598    echo "$as_me:15598: \$? = $ac_status" >&5
15599    if (exit $ac_status) && test -s "$ac_outfile"; then
15600      # The compiler can only warn and ignore the option if not recognized
15601      # So say no if there are warnings other than the usual output.
15602      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15603      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15604      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15605        lt_cv_prog_compiler_pic_works_CXX=yes
15606      fi
15607    fi
15608    $RM conftest*
15609
15610 fi
15611 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15612 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15613
15614 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15615     case $lt_prog_compiler_pic_CXX in
15616      "" | " "*) ;;
15617      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15618      esac
15619 else
15620     lt_prog_compiler_pic_CXX=
15621      lt_prog_compiler_can_build_shared_CXX=no
15622 fi
15623
15624 fi
15625
15626
15627
15628 #
15629 # Check to make sure the static flag actually works.
15630 #
15631 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15632 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15633 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15634 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15635   $as_echo_n "(cached) " >&6
15636 else
15637   lt_cv_prog_compiler_static_works_CXX=no
15638    save_LDFLAGS="$LDFLAGS"
15639    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15640    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15641    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15642      # The linker can only warn and ignore the option if not recognized
15643      # So say no if there are warnings
15644      if test -s conftest.err; then
15645        # Append any errors to the config.log.
15646        cat conftest.err 1>&5
15647        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15648        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15649        if diff conftest.exp conftest.er2 >/dev/null; then
15650          lt_cv_prog_compiler_static_works_CXX=yes
15651        fi
15652      else
15653        lt_cv_prog_compiler_static_works_CXX=yes
15654      fi
15655    fi
15656    $RM -r conftest*
15657    LDFLAGS="$save_LDFLAGS"
15658
15659 fi
15660 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15661 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15662
15663 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15664     :
15665 else
15666     lt_prog_compiler_static_CXX=
15667 fi
15668
15669
15670
15671
15672     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15673 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15674 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15675   $as_echo_n "(cached) " >&6
15676 else
15677   lt_cv_prog_compiler_c_o_CXX=no
15678    $RM -r conftest 2>/dev/null
15679    mkdir conftest
15680    cd conftest
15681    mkdir out
15682    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15683
15684    lt_compiler_flag="-o out/conftest2.$ac_objext"
15685    # Insert the option either (1) after the last *FLAGS variable, or
15686    # (2) before a word containing "conftest.", or (3) at the end.
15687    # Note that $ac_compile itself does not contain backslashes and begins
15688    # with a dollar sign (not a hyphen), so the echo should work correctly.
15689    lt_compile=`echo "$ac_compile" | $SED \
15690    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15691    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15692    -e 's:$: $lt_compiler_flag:'`
15693    (eval echo "\"\$as_me:15693: $lt_compile\"" >&5)
15694    (eval "$lt_compile" 2>out/conftest.err)
15695    ac_status=$?
15696    cat out/conftest.err >&5
15697    echo "$as_me:15697: \$? = $ac_status" >&5
15698    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15699    then
15700      # The compiler can only warn and ignore the option if not recognized
15701      # So say no if there are warnings
15702      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15703      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15704      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15705        lt_cv_prog_compiler_c_o_CXX=yes
15706      fi
15707    fi
15708    chmod u+w . 2>&5
15709    $RM conftest*
15710    # SGI C++ compiler will create directory out/ii_files/ for
15711    # template instantiation
15712    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15713    $RM out/* && rmdir out
15714    cd ..
15715    $RM -r conftest
15716    $RM conftest*
15717
15718 fi
15719 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15720 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15721
15722
15723
15724     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15725 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15726 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15727   $as_echo_n "(cached) " >&6
15728 else
15729   lt_cv_prog_compiler_c_o_CXX=no
15730    $RM -r conftest 2>/dev/null
15731    mkdir conftest
15732    cd conftest
15733    mkdir out
15734    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15735
15736    lt_compiler_flag="-o out/conftest2.$ac_objext"
15737    # Insert the option either (1) after the last *FLAGS variable, or
15738    # (2) before a word containing "conftest.", or (3) at the end.
15739    # Note that $ac_compile itself does not contain backslashes and begins
15740    # with a dollar sign (not a hyphen), so the echo should work correctly.
15741    lt_compile=`echo "$ac_compile" | $SED \
15742    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15743    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15744    -e 's:$: $lt_compiler_flag:'`
15745    (eval echo "\"\$as_me:15745: $lt_compile\"" >&5)
15746    (eval "$lt_compile" 2>out/conftest.err)
15747    ac_status=$?
15748    cat out/conftest.err >&5
15749    echo "$as_me:15749: \$? = $ac_status" >&5
15750    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15751    then
15752      # The compiler can only warn and ignore the option if not recognized
15753      # So say no if there are warnings
15754      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15755      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15756      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15757        lt_cv_prog_compiler_c_o_CXX=yes
15758      fi
15759    fi
15760    chmod u+w . 2>&5
15761    $RM conftest*
15762    # SGI C++ compiler will create directory out/ii_files/ for
15763    # template instantiation
15764    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15765    $RM out/* && rmdir out
15766    cd ..
15767    $RM -r conftest
15768    $RM conftest*
15769
15770 fi
15771 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15772 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15773
15774
15775
15776
15777 hard_links="nottested"
15778 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15779   # do not overwrite the value of need_locks provided by the user
15780   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15781 $as_echo_n "checking if we can lock with hard links... " >&6; }
15782   hard_links=yes
15783   $RM conftest*
15784   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15785   touch conftest.a
15786   ln conftest.a conftest.b 2>&5 || hard_links=no
15787   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15788   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15789 $as_echo "$hard_links" >&6; }
15790   if test "$hard_links" = no; then
15791     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15792 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15793     need_locks=warn
15794   fi
15795 else
15796   need_locks=no
15797 fi
15798
15799
15800
15801     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15802 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15803
15804   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15805   case $host_os in
15806   aix[4-9]*)
15807     # If we're using GNU nm, then we don't want the "-C" option.
15808     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15809     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15810       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'
15811     else
15812       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'
15813     fi
15814     ;;
15815   pw32*)
15816     export_symbols_cmds_CXX="$ltdll_cmds"
15817   ;;
15818   cygwin* | mingw* | cegcc*)
15819     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'
15820   ;;
15821   linux* | k*bsd*-gnu)
15822     link_all_deplibs_CXX=no
15823   ;;
15824   *)
15825     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15826   ;;
15827   esac
15828   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15829
15830 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15831 $as_echo "$ld_shlibs_CXX" >&6; }
15832 test "$ld_shlibs_CXX" = no && can_build_shared=no
15833
15834 with_gnu_ld_CXX=$with_gnu_ld
15835
15836
15837
15838
15839
15840
15841 #
15842 # Do we need to explicitly link libc?
15843 #
15844 case "x$archive_cmds_need_lc_CXX" in
15845 x|xyes)
15846   # Assume -lc should be added
15847   archive_cmds_need_lc_CXX=yes
15848
15849   if test "$enable_shared" = yes && test "$GCC" = yes; then
15850     case $archive_cmds_CXX in
15851     *'~'*)
15852       # FIXME: we may have to deal with multi-command sequences.
15853       ;;
15854     '$CC '*)
15855       # Test whether the compiler implicitly links with -lc since on some
15856       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15857       # to ld, don't add -lc before -lgcc.
15858       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15859 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15860       $RM conftest*
15861       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15862
15863       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15864   (eval $ac_compile) 2>&5
15865   ac_status=$?
15866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); } 2>conftest.err; then
15868         soname=conftest
15869         lib=conftest
15870         libobjs=conftest.$ac_objext
15871         deplibs=
15872         wl=$lt_prog_compiler_wl_CXX
15873         pic_flag=$lt_prog_compiler_pic_CXX
15874         compiler_flags=-v
15875         linker_flags=-v
15876         verstring=
15877         output_objdir=.
15878         libname=conftest
15879         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15880         allow_undefined_flag_CXX=
15881         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15882   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15883   ac_status=$?
15884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); }
15886         then
15887           archive_cmds_need_lc_CXX=no
15888         else
15889           archive_cmds_need_lc_CXX=yes
15890         fi
15891         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15892       else
15893         cat conftest.err 1>&5
15894       fi
15895       $RM conftest*
15896       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15897 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15898       ;;
15899     esac
15900   fi
15901   ;;
15902 esac
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967     { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15968 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15969
15970 library_names_spec=
15971 libname_spec='lib$name'
15972 soname_spec=
15973 shrext_cmds=".so"
15974 postinstall_cmds=
15975 postuninstall_cmds=
15976 finish_cmds=
15977 finish_eval=
15978 shlibpath_var=
15979 shlibpath_overrides_runpath=unknown
15980 version_type=none
15981 dynamic_linker="$host_os ld.so"
15982 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15983 need_lib_prefix=unknown
15984 hardcode_into_libs=no
15985
15986 # when you set need_version to no, make sure it does not cause -set_version
15987 # flags to be left without arguments
15988 need_version=unknown
15989
15990 case $host_os in
15991 aix3*)
15992   version_type=linux
15993   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15994   shlibpath_var=LIBPATH
15995
15996   # AIX 3 has no versioning support, so we append a major version to the name.
15997   soname_spec='${libname}${release}${shared_ext}$major'
15998   ;;
15999
16000 aix[4-9]*)
16001   version_type=linux
16002   need_lib_prefix=no
16003   need_version=no
16004   hardcode_into_libs=yes
16005   if test "$host_cpu" = ia64; then
16006     # AIX 5 supports IA64
16007     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16008     shlibpath_var=LD_LIBRARY_PATH
16009   else
16010     # With GCC up to 2.95.x, collect2 would create an import file
16011     # for dependence libraries.  The import file would start with
16012     # the line `#! .'.  This would cause the generated library to
16013     # depend on `.', always an invalid library.  This was fixed in
16014     # development snapshots of GCC prior to 3.0.
16015     case $host_os in
16016       aix4 | aix4.[01] | aix4.[01].*)
16017       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16018            echo ' yes '
16019            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16020         :
16021       else
16022         can_build_shared=no
16023       fi
16024       ;;
16025     esac
16026     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16027     # soname into executable. Probably we can add versioning support to
16028     # collect2, so additional links can be useful in future.
16029     if test "$aix_use_runtimelinking" = yes; then
16030       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16031       # instead of lib<name>.a to let people know that these are not
16032       # typical AIX shared libraries.
16033       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16034     else
16035       # We preserve .a as extension for shared libraries through AIX4.2
16036       # and later when we are not doing run time linking.
16037       library_names_spec='${libname}${release}.a $libname.a'
16038       soname_spec='${libname}${release}${shared_ext}$major'
16039     fi
16040     shlibpath_var=LIBPATH
16041   fi
16042   ;;
16043
16044 amigaos*)
16045   case $host_cpu in
16046   powerpc)
16047     # Since July 2007 AmigaOS4 officially supports .so libraries.
16048     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050     ;;
16051   m68k)
16052     library_names_spec='$libname.ixlibrary $libname.a'
16053     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16054     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'
16055     ;;
16056   esac
16057   ;;
16058
16059 beos*)
16060   library_names_spec='${libname}${shared_ext}'
16061   dynamic_linker="$host_os ld.so"
16062   shlibpath_var=LIBRARY_PATH
16063   ;;
16064
16065 bsdi[45]*)
16066   version_type=linux
16067   need_version=no
16068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16069   soname_spec='${libname}${release}${shared_ext}$major'
16070   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16071   shlibpath_var=LD_LIBRARY_PATH
16072   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16073   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16074   # the default ld.so.conf also contains /usr/contrib/lib and
16075   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16076   # libtool to hard-code these into programs
16077   ;;
16078
16079 cygwin* | mingw* | pw32* | cegcc*)
16080   version_type=windows
16081   shrext_cmds=".dll"
16082   need_version=no
16083   need_lib_prefix=no
16084
16085   case $GCC,$host_os in
16086   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16087     library_names_spec='$libname.dll.a'
16088     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16089     postinstall_cmds='base_file=`basename \${file}`~
16090       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16091       dldir=$destdir/`dirname \$dlpath`~
16092       test -d \$dldir || mkdir -p \$dldir~
16093       $install_prog $dir/$dlname \$dldir/$dlname~
16094       chmod a+x \$dldir/$dlname~
16095       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16096         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16097       fi'
16098     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16099       dlpath=$dir/\$dldll~
16100        $RM \$dlpath'
16101     shlibpath_overrides_runpath=yes
16102
16103     case $host_os in
16104     cygwin*)
16105       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16106       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16107       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16108       ;;
16109     mingw* | cegcc*)
16110       # MinGW DLLs use traditional 'lib' prefix
16111       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16112       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16113       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16114         # It is most probably a Windows format PATH printed by
16115         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16116         # path with ; separators, and with drive letters. We can handle the
16117         # drive letters (cygwin fileutils understands them), so leave them,
16118         # especially as we might pass files found there to a mingw objdump,
16119         # which wouldn't understand a cygwinified path. Ahh.
16120         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16121       else
16122         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16123       fi
16124       ;;
16125     pw32*)
16126       # pw32 DLLs use 'pw' prefix rather than 'lib'
16127       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16128       ;;
16129     esac
16130     ;;
16131
16132   *)
16133     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16134     ;;
16135   esac
16136   dynamic_linker='Win32 ld.exe'
16137   # FIXME: first we should search . and the directory the executable is in
16138   shlibpath_var=PATH
16139   ;;
16140
16141 darwin* | rhapsody*)
16142   dynamic_linker="$host_os dyld"
16143   version_type=darwin
16144   need_lib_prefix=no
16145   need_version=no
16146   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16147   soname_spec='${libname}${release}${major}$shared_ext'
16148   shlibpath_overrides_runpath=yes
16149   shlibpath_var=DYLD_LIBRARY_PATH
16150   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16151
16152   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16153   ;;
16154
16155 dgux*)
16156   version_type=linux
16157   need_lib_prefix=no
16158   need_version=no
16159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16160   soname_spec='${libname}${release}${shared_ext}$major'
16161   shlibpath_var=LD_LIBRARY_PATH
16162   ;;
16163
16164 freebsd1*)
16165   dynamic_linker=no
16166   ;;
16167
16168 freebsd* | dragonfly*)
16169   # DragonFly does not have aout.  When/if they implement a new
16170   # versioning mechanism, adjust this.
16171   if test -x /usr/bin/objformat; then
16172     objformat=`/usr/bin/objformat`
16173   else
16174     case $host_os in
16175     freebsd[123]*) objformat=aout ;;
16176     *) objformat=elf ;;
16177     esac
16178   fi
16179   version_type=freebsd-$objformat
16180   case $version_type in
16181     freebsd-elf*)
16182       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16183       need_version=no
16184       need_lib_prefix=no
16185       ;;
16186     freebsd-*)
16187       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16188       need_version=yes
16189       ;;
16190   esac
16191   shlibpath_var=LD_LIBRARY_PATH
16192   case $host_os in
16193   freebsd2*)
16194     shlibpath_overrides_runpath=yes
16195     ;;
16196   freebsd3.[01]* | freebsdelf3.[01]*)
16197     shlibpath_overrides_runpath=yes
16198     hardcode_into_libs=yes
16199     ;;
16200   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16201   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16202     shlibpath_overrides_runpath=no
16203     hardcode_into_libs=yes
16204     ;;
16205   *) # from 4.6 on, and DragonFly
16206     shlibpath_overrides_runpath=yes
16207     hardcode_into_libs=yes
16208     ;;
16209   esac
16210   ;;
16211
16212 gnu*)
16213   version_type=linux
16214   need_lib_prefix=no
16215   need_version=no
16216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16217   soname_spec='${libname}${release}${shared_ext}$major'
16218   shlibpath_var=LD_LIBRARY_PATH
16219   hardcode_into_libs=yes
16220   ;;
16221
16222 hpux9* | hpux10* | hpux11*)
16223   # Give a soname corresponding to the major version so that dld.sl refuses to
16224   # link against other versions.
16225   version_type=sunos
16226   need_lib_prefix=no
16227   need_version=no
16228   case $host_cpu in
16229   ia64*)
16230     shrext_cmds='.so'
16231     hardcode_into_libs=yes
16232     dynamic_linker="$host_os dld.so"
16233     shlibpath_var=LD_LIBRARY_PATH
16234     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16235     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16236     soname_spec='${libname}${release}${shared_ext}$major'
16237     if test "X$HPUX_IA64_MODE" = X32; then
16238       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16239     else
16240       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16241     fi
16242     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16243     ;;
16244   hppa*64*)
16245     shrext_cmds='.sl'
16246     hardcode_into_libs=yes
16247     dynamic_linker="$host_os dld.sl"
16248     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16249     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16250     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251     soname_spec='${libname}${release}${shared_ext}$major'
16252     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16253     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16254     ;;
16255   *)
16256     shrext_cmds='.sl'
16257     dynamic_linker="$host_os dld.sl"
16258     shlibpath_var=SHLIB_PATH
16259     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16260     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16261     soname_spec='${libname}${release}${shared_ext}$major'
16262     ;;
16263   esac
16264   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16265   postinstall_cmds='chmod 555 $lib'
16266   ;;
16267
16268 interix[3-9]*)
16269   version_type=linux
16270   need_lib_prefix=no
16271   need_version=no
16272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16273   soname_spec='${libname}${release}${shared_ext}$major'
16274   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16275   shlibpath_var=LD_LIBRARY_PATH
16276   shlibpath_overrides_runpath=no
16277   hardcode_into_libs=yes
16278   ;;
16279
16280 irix5* | irix6* | nonstopux*)
16281   case $host_os in
16282     nonstopux*) version_type=nonstopux ;;
16283     *)
16284         if test "$lt_cv_prog_gnu_ld" = yes; then
16285                 version_type=linux
16286         else
16287                 version_type=irix
16288         fi ;;
16289   esac
16290   need_lib_prefix=no
16291   need_version=no
16292   soname_spec='${libname}${release}${shared_ext}$major'
16293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16294   case $host_os in
16295   irix5* | nonstopux*)
16296     libsuff= shlibsuff=
16297     ;;
16298   *)
16299     case $LD in # libtool.m4 will add one of these switches to LD
16300     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16301       libsuff= shlibsuff= libmagic=32-bit;;
16302     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16303       libsuff=32 shlibsuff=N32 libmagic=N32;;
16304     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16305       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16306     *) libsuff= shlibsuff= libmagic=never-match;;
16307     esac
16308     ;;
16309   esac
16310   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16311   shlibpath_overrides_runpath=no
16312   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16313   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16314   hardcode_into_libs=yes
16315   ;;
16316
16317 # No shared lib support for Linux oldld, aout, or coff.
16318 linux*oldld* | linux*aout* | linux*coff*)
16319   dynamic_linker=no
16320   ;;
16321
16322 # This must be Linux ELF.
16323 linux* | k*bsd*-gnu)
16324   version_type=linux
16325   need_lib_prefix=no
16326   need_version=no
16327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16328   soname_spec='${libname}${release}${shared_ext}$major'
16329   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16330   shlibpath_var=LD_LIBRARY_PATH
16331   shlibpath_overrides_runpath=no
16332   # Some binutils ld are patched to set DT_RUNPATH
16333   save_LDFLAGS=$LDFLAGS
16334   save_libdir=$libdir
16335   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16336        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16337   cat >conftest.$ac_ext <<_ACEOF
16338 /* confdefs.h.  */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h.  */
16343
16344 int
16345 main ()
16346 {
16347
16348   ;
16349   return 0;
16350 }
16351 _ACEOF
16352 rm -f conftest.$ac_objext conftest$ac_exeext
16353 if { (ac_try="$ac_link"
16354 case "(($ac_try" in
16355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356   *) ac_try_echo=$ac_try;;
16357 esac
16358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16359 $as_echo "$ac_try_echo") >&5
16360   (eval "$ac_link") 2>conftest.er1
16361   ac_status=$?
16362   grep -v '^ *+' conftest.er1 >conftest.err
16363   rm -f conftest.er1
16364   cat conftest.err >&5
16365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366   (exit $ac_status); } && {
16367          test -z "$ac_cxx_werror_flag" ||
16368          test ! -s conftest.err
16369        } && test -s conftest$ac_exeext && {
16370          test "$cross_compiling" = yes ||
16371          $as_test_x conftest$ac_exeext
16372        }; then
16373   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
16374   shlibpath_overrides_runpath=yes
16375 fi
16376
16377 else
16378   $as_echo "$as_me: failed program was:" >&5
16379 sed 's/^/| /' conftest.$ac_ext >&5
16380
16381
16382 fi
16383
16384 rm -rf conftest.dSYM
16385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16386       conftest$ac_exeext conftest.$ac_ext
16387   LDFLAGS=$save_LDFLAGS
16388   libdir=$save_libdir
16389
16390   # This implies no fast_install, which is unacceptable.
16391   # Some rework will be needed to allow for fast_install
16392   # before this can be enabled.
16393   hardcode_into_libs=yes
16394
16395   # Append ld.so.conf contents to the search path
16396   if test -f /etc/ld.so.conf; then
16397     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16398     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16399   fi
16400
16401   # We used to test for /lib/ld.so.1 and disable shared libraries on
16402   # powerpc, because MkLinux only supported shared libraries with the
16403   # GNU dynamic linker.  Since this was broken with cross compilers,
16404   # most powerpc-linux boxes support dynamic linking these days and
16405   # people can always --disable-shared, the test was removed, and we
16406   # assume the GNU/Linux dynamic linker is in use.
16407   dynamic_linker='GNU/Linux ld.so'
16408   ;;
16409
16410 netbsdelf*-gnu)
16411   version_type=linux
16412   need_lib_prefix=no
16413   need_version=no
16414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16415   soname_spec='${libname}${release}${shared_ext}$major'
16416   shlibpath_var=LD_LIBRARY_PATH
16417   shlibpath_overrides_runpath=no
16418   hardcode_into_libs=yes
16419   dynamic_linker='NetBSD ld.elf_so'
16420   ;;
16421
16422 netbsd*)
16423   version_type=sunos
16424   need_lib_prefix=no
16425   need_version=no
16426   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16427     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16428     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16429     dynamic_linker='NetBSD (a.out) ld.so'
16430   else
16431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16432     soname_spec='${libname}${release}${shared_ext}$major'
16433     dynamic_linker='NetBSD ld.elf_so'
16434   fi
16435   shlibpath_var=LD_LIBRARY_PATH
16436   shlibpath_overrides_runpath=yes
16437   hardcode_into_libs=yes
16438   ;;
16439
16440 newsos6)
16441   version_type=linux
16442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16443   shlibpath_var=LD_LIBRARY_PATH
16444   shlibpath_overrides_runpath=yes
16445   ;;
16446
16447 *nto* | *qnx*)
16448   version_type=qnx
16449   need_lib_prefix=no
16450   need_version=no
16451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16452   soname_spec='${libname}${release}${shared_ext}$major'
16453   shlibpath_var=LD_LIBRARY_PATH
16454   shlibpath_overrides_runpath=no
16455   hardcode_into_libs=yes
16456   dynamic_linker='ldqnx.so'
16457   ;;
16458
16459 openbsd*)
16460   version_type=sunos
16461   sys_lib_dlsearch_path_spec="/usr/lib"
16462   need_lib_prefix=no
16463   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16464   case $host_os in
16465     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16466     *)                          need_version=no  ;;
16467   esac
16468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16469   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16470   shlibpath_var=LD_LIBRARY_PATH
16471   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16472     case $host_os in
16473       openbsd2.[89] | openbsd2.[89].*)
16474         shlibpath_overrides_runpath=no
16475         ;;
16476       *)
16477         shlibpath_overrides_runpath=yes
16478         ;;
16479       esac
16480   else
16481     shlibpath_overrides_runpath=yes
16482   fi
16483   ;;
16484
16485 os2*)
16486   libname_spec='$name'
16487   shrext_cmds=".dll"
16488   need_lib_prefix=no
16489   library_names_spec='$libname${shared_ext} $libname.a'
16490   dynamic_linker='OS/2 ld.exe'
16491   shlibpath_var=LIBPATH
16492   ;;
16493
16494 osf3* | osf4* | osf5*)
16495   version_type=osf
16496   need_lib_prefix=no
16497   need_version=no
16498   soname_spec='${libname}${release}${shared_ext}$major'
16499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500   shlibpath_var=LD_LIBRARY_PATH
16501   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16502   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16503   ;;
16504
16505 rdos*)
16506   dynamic_linker=no
16507   ;;
16508
16509 solaris*)
16510   version_type=linux
16511   need_lib_prefix=no
16512   need_version=no
16513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16514   soname_spec='${libname}${release}${shared_ext}$major'
16515   shlibpath_var=LD_LIBRARY_PATH
16516   shlibpath_overrides_runpath=yes
16517   hardcode_into_libs=yes
16518   # ldd complains unless libraries are executable
16519   postinstall_cmds='chmod +x $lib'
16520   ;;
16521
16522 sunos4*)
16523   version_type=sunos
16524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16525   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16526   shlibpath_var=LD_LIBRARY_PATH
16527   shlibpath_overrides_runpath=yes
16528   if test "$with_gnu_ld" = yes; then
16529     need_lib_prefix=no
16530   fi
16531   need_version=yes
16532   ;;
16533
16534 sysv4 | sysv4.3*)
16535   version_type=linux
16536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16537   soname_spec='${libname}${release}${shared_ext}$major'
16538   shlibpath_var=LD_LIBRARY_PATH
16539   case $host_vendor in
16540     sni)
16541       shlibpath_overrides_runpath=no
16542       need_lib_prefix=no
16543       runpath_var=LD_RUN_PATH
16544       ;;
16545     siemens)
16546       need_lib_prefix=no
16547       ;;
16548     motorola)
16549       need_lib_prefix=no
16550       need_version=no
16551       shlibpath_overrides_runpath=no
16552       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16553       ;;
16554   esac
16555   ;;
16556
16557 sysv4*MP*)
16558   if test -d /usr/nec ;then
16559     version_type=linux
16560     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16561     soname_spec='$libname${shared_ext}.$major'
16562     shlibpath_var=LD_LIBRARY_PATH
16563   fi
16564   ;;
16565
16566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16567   version_type=freebsd-elf
16568   need_lib_prefix=no
16569   need_version=no
16570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16571   soname_spec='${libname}${release}${shared_ext}$major'
16572   shlibpath_var=LD_LIBRARY_PATH
16573   shlibpath_overrides_runpath=yes
16574   hardcode_into_libs=yes
16575   if test "$with_gnu_ld" = yes; then
16576     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16577   else
16578     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16579     case $host_os in
16580       sco3.2v5*)
16581         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16582         ;;
16583     esac
16584   fi
16585   sys_lib_dlsearch_path_spec='/usr/lib'
16586   ;;
16587
16588 tpf*)
16589   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16590   version_type=linux
16591   need_lib_prefix=no
16592   need_version=no
16593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16594   shlibpath_var=LD_LIBRARY_PATH
16595   shlibpath_overrides_runpath=no
16596   hardcode_into_libs=yes
16597   ;;
16598
16599 uts4*)
16600   version_type=linux
16601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16602   soname_spec='${libname}${release}${shared_ext}$major'
16603   shlibpath_var=LD_LIBRARY_PATH
16604   ;;
16605
16606 *)
16607   dynamic_linker=no
16608   ;;
16609 esac
16610 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16611 $as_echo "$dynamic_linker" >&6; }
16612 test "$dynamic_linker" = no && can_build_shared=no
16613
16614 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16615 if test "$GCC" = yes; then
16616   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16617 fi
16618
16619 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16620   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16621 fi
16622 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16623   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16624 fi
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661     { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16662 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16663 hardcode_action_CXX=
16664 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16665    test -n "$runpath_var_CXX" ||
16666    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16667
16668   # We can hardcode non-existent directories.
16669   if test "$hardcode_direct_CXX" != no &&
16670      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16671      # have to relink, otherwise we might link with an installed library
16672      # when we should be linking with a yet-to-be-installed one
16673      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16674      test "$hardcode_minus_L_CXX" != no; then
16675     # Linking always hardcodes the temporary library directory.
16676     hardcode_action_CXX=relink
16677   else
16678     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16679     hardcode_action_CXX=immediate
16680   fi
16681 else
16682   # We cannot hardcode anything, or else we can only hardcode existing
16683   # directories.
16684   hardcode_action_CXX=unsupported
16685 fi
16686 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16687 $as_echo "$hardcode_action_CXX" >&6; }
16688
16689 if test "$hardcode_action_CXX" = relink ||
16690    test "$inherit_rpath_CXX" = yes; then
16691   # Fast installation is not supported
16692   enable_fast_install=no
16693 elif test "$shlibpath_overrides_runpath" = yes ||
16694      test "$enable_shared" = no; then
16695   # Fast installation is not necessary
16696   enable_fast_install=needless
16697 fi
16698
16699
16700
16701
16702
16703
16704
16705   fi # test -n "$compiler"
16706
16707   CC=$lt_save_CC
16708   LDCXX=$LD
16709   LD=$lt_save_LD
16710   GCC=$lt_save_GCC
16711   with_gnu_ld=$lt_save_with_gnu_ld
16712   lt_cv_path_LDCXX=$lt_cv_path_LD
16713   lt_cv_path_LD=$lt_save_path_LD
16714   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16715   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16716 fi # test "$_lt_caught_CXX_error" != yes
16717
16718 ac_ext=c
16719 ac_cpp='$CPP $CPPFLAGS'
16720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16723
16724
16725 # Set CXXCPP to a command that runs the C++ preprocessor
16726 ac_ext=cpp
16727 ac_cpp='$CXXCPP $CPPFLAGS'
16728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16731 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16732 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16733 if test -z "$CXXCPP"; then
16734   if test "${ac_cv_prog_CXXCPP+set}" = set; then
16735   $as_echo_n "(cached) " >&6
16736 else
16737       # Double quotes because CXXCPP needs to be expanded
16738     for CXXCPP in "$CXX -E" "/lib/cpp"
16739     do
16740       ac_preproc_ok=false
16741 for ac_cxx_preproc_warn_flag in '' yes
16742 do
16743   # Use a header file that comes with gcc, so configuring glibc
16744   # with a fresh cross-compiler works.
16745   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16746   # <limits.h> exists even on freestanding compilers.
16747   # On the NeXT, cc -E runs the code through the compiler's parser,
16748   # not just through cpp. "Syntax error" is here to catch this case.
16749   cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h.  */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h.  */
16755 #ifdef __STDC__
16756 # include <limits.h>
16757 #else
16758 # include <assert.h>
16759 #endif
16760                      Syntax error
16761 _ACEOF
16762 if { (ac_try="$ac_cpp conftest.$ac_ext"
16763 case "(($ac_try" in
16764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765   *) ac_try_echo=$ac_try;;
16766 esac
16767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16768 $as_echo "$ac_try_echo") >&5
16769   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16770   ac_status=$?
16771   grep -v '^ *+' conftest.er1 >conftest.err
16772   rm -f conftest.er1
16773   cat conftest.err >&5
16774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); } >/dev/null && {
16776          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16777          test ! -s conftest.err
16778        }; then
16779   :
16780 else
16781   $as_echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16783
16784   # Broken: fails on valid input.
16785 continue
16786 fi
16787
16788 rm -f conftest.err conftest.$ac_ext
16789
16790   # OK, works on sane cases.  Now check whether nonexistent headers
16791   # can be detected and how.
16792   cat >conftest.$ac_ext <<_ACEOF
16793 /* confdefs.h.  */
16794 _ACEOF
16795 cat confdefs.h >>conftest.$ac_ext
16796 cat >>conftest.$ac_ext <<_ACEOF
16797 /* end confdefs.h.  */
16798 #include <ac_nonexistent.h>
16799 _ACEOF
16800 if { (ac_try="$ac_cpp conftest.$ac_ext"
16801 case "(($ac_try" in
16802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16803   *) ac_try_echo=$ac_try;;
16804 esac
16805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16806 $as_echo "$ac_try_echo") >&5
16807   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16808   ac_status=$?
16809   grep -v '^ *+' conftest.er1 >conftest.err
16810   rm -f conftest.er1
16811   cat conftest.err >&5
16812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); } >/dev/null && {
16814          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16815          test ! -s conftest.err
16816        }; then
16817   # Broken: success on invalid input.
16818 continue
16819 else
16820   $as_echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16822
16823   # Passes both tests.
16824 ac_preproc_ok=:
16825 break
16826 fi
16827
16828 rm -f conftest.err conftest.$ac_ext
16829
16830 done
16831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16832 rm -f conftest.err conftest.$ac_ext
16833 if $ac_preproc_ok; then
16834   break
16835 fi
16836
16837     done
16838     ac_cv_prog_CXXCPP=$CXXCPP
16839
16840 fi
16841   CXXCPP=$ac_cv_prog_CXXCPP
16842 else
16843   ac_cv_prog_CXXCPP=$CXXCPP
16844 fi
16845 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
16846 $as_echo "$CXXCPP" >&6; }
16847 ac_preproc_ok=false
16848 for ac_cxx_preproc_warn_flag in '' yes
16849 do
16850   # Use a header file that comes with gcc, so configuring glibc
16851   # with a fresh cross-compiler works.
16852   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16853   # <limits.h> exists even on freestanding compilers.
16854   # On the NeXT, cc -E runs the code through the compiler's parser,
16855   # not just through cpp. "Syntax error" is here to catch this case.
16856   cat >conftest.$ac_ext <<_ACEOF
16857 /* confdefs.h.  */
16858 _ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h.  */
16862 #ifdef __STDC__
16863 # include <limits.h>
16864 #else
16865 # include <assert.h>
16866 #endif
16867                      Syntax error
16868 _ACEOF
16869 if { (ac_try="$ac_cpp conftest.$ac_ext"
16870 case "(($ac_try" in
16871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16872   *) ac_try_echo=$ac_try;;
16873 esac
16874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16875 $as_echo "$ac_try_echo") >&5
16876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16877   ac_status=$?
16878   grep -v '^ *+' conftest.er1 >conftest.err
16879   rm -f conftest.er1
16880   cat conftest.err >&5
16881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882   (exit $ac_status); } >/dev/null && {
16883          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16884          test ! -s conftest.err
16885        }; then
16886   :
16887 else
16888   $as_echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16890
16891   # Broken: fails on valid input.
16892 continue
16893 fi
16894
16895 rm -f conftest.err conftest.$ac_ext
16896
16897   # OK, works on sane cases.  Now check whether nonexistent headers
16898   # can be detected and how.
16899   cat >conftest.$ac_ext <<_ACEOF
16900 /* confdefs.h.  */
16901 _ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h.  */
16905 #include <ac_nonexistent.h>
16906 _ACEOF
16907 if { (ac_try="$ac_cpp conftest.$ac_ext"
16908 case "(($ac_try" in
16909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910   *) ac_try_echo=$ac_try;;
16911 esac
16912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16913 $as_echo "$ac_try_echo") >&5
16914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16915   ac_status=$?
16916   grep -v '^ *+' conftest.er1 >conftest.err
16917   rm -f conftest.er1
16918   cat conftest.err >&5
16919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); } >/dev/null && {
16921          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16922          test ! -s conftest.err
16923        }; then
16924   # Broken: success on invalid input.
16925 continue
16926 else
16927   $as_echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16929
16930   # Passes both tests.
16931 ac_preproc_ok=:
16932 break
16933 fi
16934
16935 rm -f conftest.err conftest.$ac_ext
16936
16937 done
16938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16939 rm -f conftest.err conftest.$ac_ext
16940 if $ac_preproc_ok; then
16941   :
16942 else
16943   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16945 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16946 See \`config.log' for more details." >&5
16947 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16948 See \`config.log' for more details." >&2;}
16949    { (exit 1); exit 1; }; }; }
16950 fi
16951
16952 ac_ext=c
16953 ac_cpp='$CPP $CPPFLAGS'
16954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16957
16958 #
16959 # reset compiler flags to initial flags
16960 #CXXFLAGS=$OLD_CXXFLAGS
16961
16962
16963
16964
16965 # safety check: AC_CONFIG_SRCDIR([src/clustal.h])
16966
16967 # Let source files know in which context they are being used
16968
16969 cat >>confdefs.h <<\_ACEOF
16970 #define CLUSTALO 1
16971 _ACEOF
16972
16973
16974
16975 cat >>confdefs.h <<_ACEOF
16976 #define PACKAGE_CODENAME "$PACKAGE_CODENAME"
16977 _ACEOF
16978
16979
16980
16981 # Get svn revision
16982 #AC_PATH_PROG(svnversioncommand, svnversion)
16983 #if test "X$svnversioncommand" = "X" || test `$svnversioncommand -n '.'` = "exported"; then
16984 #AC_DEFINE_UNQUOTED(SVN_VERSION, ["`cat saved_svn_version.txt`"], [repository svn version])
16985 #else
16986 #AC_DEFINE_UNQUOTED(SVN_VERSION, ["`svnversion -n`"], [repository svn version])
16987 #`svnversion -n > saved_svn_version.txt`
16988 #fi
16989
16990
16991
16992
16993 # AW: we might need this in the future
16994 #
16995 case "$host_os" in
16996 linux*)
16997 #      AC_DEFINE(LINUX,1,[This is a Linux system])
16998
16999 cat >>confdefs.h <<_ACEOF
17000 #define LINUX 1
17001 _ACEOF
17002
17003 #     AM_CONDITIONAL(HAVE_GNU_LD, true)
17004 #     AM_CONDITIONAL(SOMEBSD, false)
17005 #     XTRA_CPPLIBS=-lstdc++
17006 #     LIBEXT=.so
17007      ;;
17008 freebsd*)
17009
17010 cat >>confdefs.h <<_ACEOF
17011 #define SOMEBSD 1
17012 _ACEOF
17013
17014 #     AC_CHECK_LIB(c_r, pthread_create)
17015 #     AM_CONDITIONAL(HAVE_GNU_LD, true)
17016 #     AM_CONDITIONAL(SOMEBSD, true)
17017 #     XTRA_CPPLIBS=-lstdc++
17018 #     LIBEXT=.so
17019      ;;
17020 openbsd*)
17021
17022 cat >>confdefs.h <<_ACEOF
17023 #define SOMEBSD 1
17024 _ACEOF
17025
17026 #     AC_CHECK_LIB(c_r, pthread_create)
17027 #     AM_CONDITIONAL(HAVE_GNU_LD, true)
17028 #     AM_CONDITIONAL(SOMEBSD, true)
17029 #     XTRA_CPPLIBS=-lstdc++
17030 #     LIBEXT=.so
17031      ;;
17032 netbsd*)
17033
17034 cat >>confdefs.h <<_ACEOF
17035 #define SOMEBSD 1
17036 _ACEOF
17037
17038 #     AC_CHECK_LIB(c_r, pthread_create)
17039 #     AM_CONDITIONAL(HAVE_GNU_LD, true)
17040 #     AM_CONDITIONAL(SOMEBSD, true)
17041 #     XTRA_CPPLIBS=-lstdc++
17042 #     LIBEXT=.so
17043      ;;
17044 *solaris*)
17045
17046 cat >>confdefs.h <<_ACEOF
17047 #define SOLARIS 1
17048 _ACEOF
17049
17050 #     AC_CHECK_LIB(resolv, res_init)
17051 #     XTRA_CPPLIBS=-lstdc++
17052 #     AM_CONDITIONAL(HAVE_GNU_LD, false)
17053 #     AM_CONDITIONAL(SOMEBSD, false)
17054 #     CFLAGS="-D_POSIX_PTHREAD_SEMANTICS $CFLAGS"
17055 #     LIBEXT=.so
17056      ;;
17057 darwin*)
17058
17059 cat >>confdefs.h <<_ACEOF
17060 #define DARWIN 1
17061 _ACEOF
17062
17063 #     AM_CONDITIONAL(HAVE_GNU_LD, false)
17064 #     AM_CONDITIONAL(SOMEBSD, false)
17065 #     CFLAGS="-fno-common $CFLAGS"
17066 #     LIBEXT=.so
17067      ;;
17068 cygwin*)
17069
17070 cat >>confdefs.h <<_ACEOF
17071 #define CYGWIN 1
17072 _ACEOF
17073
17074 #     LDFLAGS="$LDFLAGS -no-undefined"
17075 #     AM_CONDITIONAL(SOMEBSD, false)
17076 #     AM_CONDITIONAL(HAVE_GNU_LD, false)
17077 #     LIBEXT=.dll
17078      ;;
17079 mingw*)
17080
17081 cat >>confdefs.h <<_ACEOF
17082 #define MINGW 1
17083 _ACEOF
17084
17085 #     AC_DEFINE_UNQUOTED(WINDOWS,1,[This is a Windows system])
17086 #     AC_CHECK_LIB(intl, gettext)
17087 #     AC_CHECK_LIB(ws2_32, _head_libws2_32_a,,[AC_MSG_ERROR([libextractor requires Winsock2])])
17088 #     AC_CHECK_LIB(plibc, plibc_init,,[AC_MSG_ERROR([libextractor requires PlibC])])
17089 #     LDFLAGS="$LDFLAGS -no-undefined -Wl,--export-all-symbols"
17090 #                LIBSOLD=$LIBS
17091 #     AM_CONDITIONAL(HAVE_GNU_LD, true)
17092 #     AM_CONDITIONAL(SOMEBSD, false)
17093 #     LIBEXT=.dll
17094      ;;
17095 *)
17096 #     AC_MSG_RESULT(Unrecognised OS $host_os)
17097
17098 cat >>confdefs.h <<_ACEOF
17099 #define OTHEROS 1
17100 _ACEOF
17101
17102 #     AC_MSG_RESULT(otheros)
17103 #     AM_CONDITIONAL(HAVE_GNU_LD, false)
17104 #     AM_CONDITIONAL(SOMEBSD, false)
17105 #     LIBEXT=.so
17106      ;;
17107 esac
17108
17109
17110
17111 # Checks for standard header files.
17112 # obsolescent according to http://www.gnu.org/software/hello/manual/autoconf/Particular-Headers.html
17113 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
17114 $as_echo_n "checking for ANSI C header files... " >&6; }
17115 if test "${ac_cv_header_stdc+set}" = set; then
17116   $as_echo_n "(cached) " >&6
17117 else
17118   cat >conftest.$ac_ext <<_ACEOF
17119 /* confdefs.h.  */
17120 _ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h.  */
17124 #include <stdlib.h>
17125 #include <stdarg.h>
17126 #include <string.h>
17127 #include <float.h>
17128
17129 int
17130 main ()
17131 {
17132
17133   ;
17134   return 0;
17135 }
17136 _ACEOF
17137 rm -f conftest.$ac_objext
17138 if { (ac_try="$ac_compile"
17139 case "(($ac_try" in
17140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141   *) ac_try_echo=$ac_try;;
17142 esac
17143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17144 $as_echo "$ac_try_echo") >&5
17145   (eval "$ac_compile") 2>conftest.er1
17146   ac_status=$?
17147   grep -v '^ *+' conftest.er1 >conftest.err
17148   rm -f conftest.er1
17149   cat conftest.err >&5
17150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151   (exit $ac_status); } && {
17152          test -z "$ac_c_werror_flag" ||
17153          test ! -s conftest.err
17154        } && test -s conftest.$ac_objext; then
17155   ac_cv_header_stdc=yes
17156 else
17157   $as_echo "$as_me: failed program was:" >&5
17158 sed 's/^/| /' conftest.$ac_ext >&5
17159
17160         ac_cv_header_stdc=no
17161 fi
17162
17163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17164
17165 if test $ac_cv_header_stdc = yes; then
17166   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17167   cat >conftest.$ac_ext <<_ACEOF
17168 /* confdefs.h.  */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h.  */
17173 #include <string.h>
17174
17175 _ACEOF
17176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17177   $EGREP "memchr" >/dev/null 2>&1; then
17178   :
17179 else
17180   ac_cv_header_stdc=no
17181 fi
17182 rm -f conftest*
17183
17184 fi
17185
17186 if test $ac_cv_header_stdc = yes; then
17187   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17188   cat >conftest.$ac_ext <<_ACEOF
17189 /* confdefs.h.  */
17190 _ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h.  */
17194 #include <stdlib.h>
17195
17196 _ACEOF
17197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17198   $EGREP "free" >/dev/null 2>&1; then
17199   :
17200 else
17201   ac_cv_header_stdc=no
17202 fi
17203 rm -f conftest*
17204
17205 fi
17206
17207 if test $ac_cv_header_stdc = yes; then
17208   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17209   if test "$cross_compiling" = yes; then
17210   :
17211 else
17212   cat >conftest.$ac_ext <<_ACEOF
17213 /* confdefs.h.  */
17214 _ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h.  */
17218 #include <ctype.h>
17219 #include <stdlib.h>
17220 #if ((' ' & 0x0FF) == 0x020)
17221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17223 #else
17224 # define ISLOWER(c) \
17225                    (('a' <= (c) && (c) <= 'i') \
17226                      || ('j' <= (c) && (c) <= 'r') \
17227                      || ('s' <= (c) && (c) <= 'z'))
17228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17229 #endif
17230
17231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17232 int
17233 main ()
17234 {
17235   int i;
17236   for (i = 0; i < 256; i++)
17237     if (XOR (islower (i), ISLOWER (i))
17238         || toupper (i) != TOUPPER (i))
17239       return 2;
17240   return 0;
17241 }
17242 _ACEOF
17243 rm -f conftest$ac_exeext
17244 if { (ac_try="$ac_link"
17245 case "(($ac_try" in
17246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247   *) ac_try_echo=$ac_try;;
17248 esac
17249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17250 $as_echo "$ac_try_echo") >&5
17251   (eval "$ac_link") 2>&5
17252   ac_status=$?
17253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17255   { (case "(($ac_try" in
17256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17257   *) ac_try_echo=$ac_try;;
17258 esac
17259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17260 $as_echo "$ac_try_echo") >&5
17261   (eval "$ac_try") 2>&5
17262   ac_status=$?
17263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264   (exit $ac_status); }; }; then
17265   :
17266 else
17267   $as_echo "$as_me: program exited with status $ac_status" >&5
17268 $as_echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17270
17271 ( exit $ac_status )
17272 ac_cv_header_stdc=no
17273 fi
17274 rm -rf conftest.dSYM
17275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17276 fi
17277
17278
17279 fi
17280 fi
17281 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
17282 $as_echo "$ac_cv_header_stdc" >&6; }
17283 if test $ac_cv_header_stdc = yes; then
17284
17285 cat >>confdefs.h <<\_ACEOF
17286 #define STDC_HEADERS 1
17287 _ACEOF
17288
17289 fi
17290
17291 # Guess the next one is obsolete as well then?
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304 for ac_header in assert.h ctype.h float.h limits.h math.h memory.h stdarg.h stdio.h stdlib.h string.h time.h unistd.h
17305 do
17306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17308   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17309 $as_echo_n "checking for $ac_header... " >&6; }
17310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17311   $as_echo_n "(cached) " >&6
17312 fi
17313 ac_res=`eval 'as_val=${'$as_ac_Header'}
17314                  $as_echo "$as_val"'`
17315                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17316 $as_echo "$ac_res" >&6; }
17317 else
17318   # Is the header compilable?
17319 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17320 $as_echo_n "checking $ac_header usability... " >&6; }
17321 cat >conftest.$ac_ext <<_ACEOF
17322 /* confdefs.h.  */
17323 _ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h.  */
17327 $ac_includes_default
17328 #include <$ac_header>
17329 _ACEOF
17330 rm -f conftest.$ac_objext
17331 if { (ac_try="$ac_compile"
17332 case "(($ac_try" in
17333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334   *) ac_try_echo=$ac_try;;
17335 esac
17336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17337 $as_echo "$ac_try_echo") >&5
17338   (eval "$ac_compile") 2>conftest.er1
17339   ac_status=$?
17340   grep -v '^ *+' conftest.er1 >conftest.err
17341   rm -f conftest.er1
17342   cat conftest.err >&5
17343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344   (exit $ac_status); } && {
17345          test -z "$ac_c_werror_flag" ||
17346          test ! -s conftest.err
17347        } && test -s conftest.$ac_objext; then
17348   ac_header_compiler=yes
17349 else
17350   $as_echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17352
17353         ac_header_compiler=no
17354 fi
17355
17356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17357 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17358 $as_echo "$ac_header_compiler" >&6; }
17359
17360 # Is the header present?
17361 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17362 $as_echo_n "checking $ac_header presence... " >&6; }
17363 cat >conftest.$ac_ext <<_ACEOF
17364 /* confdefs.h.  */
17365 _ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h.  */
17369 #include <$ac_header>
17370 _ACEOF
17371 if { (ac_try="$ac_cpp conftest.$ac_ext"
17372 case "(($ac_try" in
17373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374   *) ac_try_echo=$ac_try;;
17375 esac
17376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17377 $as_echo "$ac_try_echo") >&5
17378   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17379   ac_status=$?
17380   grep -v '^ *+' conftest.er1 >conftest.err
17381   rm -f conftest.er1
17382   cat conftest.err >&5
17383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384   (exit $ac_status); } >/dev/null && {
17385          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17386          test ! -s conftest.err
17387        }; then
17388   ac_header_preproc=yes
17389 else
17390   $as_echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17392
17393   ac_header_preproc=no
17394 fi
17395
17396 rm -f conftest.err conftest.$ac_ext
17397 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17398 $as_echo "$ac_header_preproc" >&6; }
17399
17400 # So?  What about this header?
17401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17402   yes:no: )
17403     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17404 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17405     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17406 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17407     ac_header_preproc=yes
17408     ;;
17409   no:yes:* )
17410     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17411 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17412     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17413 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17414     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17415 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17416     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17417 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17418     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17419 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17420     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17421 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17422     ( cat <<\_ASBOX
17423 ## ------------------------------ ##
17424 ## Report this to clustalw@ucd.ie ##
17425 ## ------------------------------ ##
17426 _ASBOX
17427      ) | sed "s/^/$as_me: WARNING:     /" >&2
17428     ;;
17429 esac
17430 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17431 $as_echo_n "checking for $ac_header... " >&6; }
17432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17433   $as_echo_n "(cached) " >&6
17434 else
17435   eval "$as_ac_Header=\$ac_header_preproc"
17436 fi
17437 ac_res=`eval 'as_val=${'$as_ac_Header'}
17438                  $as_echo "$as_val"'`
17439                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17440 $as_echo "$ac_res" >&6; }
17441
17442 fi
17443 as_val=`eval 'as_val=${'$as_ac_Header'}
17444                  $as_echo "$as_val"'`
17445    if test "x$as_val" = x""yes; then
17446   cat >>confdefs.h <<_ACEOF
17447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17448 _ACEOF
17449
17450 fi
17451
17452 done
17453
17454 #  awk  '/^#include *</ {print $2}' $(find src/ -name \*.[ch] -or -name \*.cpp) | grep -v argtable2.h  | sort -u | tr -d '<>'
17455
17456 # Checks for typedefs, structures, and compiler characteristics.
17457 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17458 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17459 if test "${ac_cv_c_const+set}" = set; then
17460   $as_echo_n "(cached) " >&6
17461 else
17462   cat >conftest.$ac_ext <<_ACEOF
17463 /* confdefs.h.  */
17464 _ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h.  */
17468
17469 int
17470 main ()
17471 {
17472 /* FIXME: Include the comments suggested by Paul. */
17473 #ifndef __cplusplus
17474   /* Ultrix mips cc rejects this.  */
17475   typedef int charset[2];
17476   const charset cs;
17477   /* SunOS 4.1.1 cc rejects this.  */
17478   char const *const *pcpcc;
17479   char **ppc;
17480   /* NEC SVR4.0.2 mips cc rejects this.  */
17481   struct point {int x, y;};
17482   static struct point const zero = {0,0};
17483   /* AIX XL C 1.02.0.0 rejects this.
17484      It does not let you subtract one const X* pointer from another in
17485      an arm of an if-expression whose if-part is not a constant
17486      expression */
17487   const char *g = "string";
17488   pcpcc = &g + (g ? g-g : 0);
17489   /* HPUX 7.0 cc rejects these. */
17490   ++pcpcc;
17491   ppc = (char**) pcpcc;
17492   pcpcc = (char const *const *) ppc;
17493   { /* SCO 3.2v4 cc rejects this.  */
17494     char *t;
17495     char const *s = 0 ? (char *) 0 : (char const *) 0;
17496
17497     *t++ = 0;
17498     if (s) return 0;
17499   }
17500   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17501     int x[] = {25, 17};
17502     const int *foo = &x[0];
17503     ++foo;
17504   }
17505   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17506     typedef const int *iptr;
17507     iptr p = 0;
17508     ++p;
17509   }
17510   { /* AIX XL C 1.02.0.0 rejects this saying
17511        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17512     struct s { int j; const int *ap[3]; };
17513     struct s *b; b->j = 5;
17514   }
17515   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17516     const int foo = 10;
17517     if (!foo) return 0;
17518   }
17519   return !cs[0] && !zero.x;
17520 #endif
17521
17522   ;
17523   return 0;
17524 }
17525 _ACEOF
17526 rm -f conftest.$ac_objext
17527 if { (ac_try="$ac_compile"
17528 case "(($ac_try" in
17529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530   *) ac_try_echo=$ac_try;;
17531 esac
17532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17533 $as_echo "$ac_try_echo") >&5
17534   (eval "$ac_compile") 2>conftest.er1
17535   ac_status=$?
17536   grep -v '^ *+' conftest.er1 >conftest.err
17537   rm -f conftest.er1
17538   cat conftest.err >&5
17539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); } && {
17541          test -z "$ac_c_werror_flag" ||
17542          test ! -s conftest.err
17543        } && test -s conftest.$ac_objext; then
17544   ac_cv_c_const=yes
17545 else
17546   $as_echo "$as_me: failed program was:" >&5
17547 sed 's/^/| /' conftest.$ac_ext >&5
17548
17549         ac_cv_c_const=no
17550 fi
17551
17552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17553 fi
17554 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17555 $as_echo "$ac_cv_c_const" >&6; }
17556 if test $ac_cv_c_const = no; then
17557
17558 cat >>confdefs.h <<\_ACEOF
17559 #define const /**/
17560 _ACEOF
17561
17562 fi
17563
17564 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
17565 $as_echo_n "checking for size_t... " >&6; }
17566 if test "${ac_cv_type_size_t+set}" = set; then
17567   $as_echo_n "(cached) " >&6
17568 else
17569   ac_cv_type_size_t=no
17570 cat >conftest.$ac_ext <<_ACEOF
17571 /* confdefs.h.  */
17572 _ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h.  */
17576 $ac_includes_default
17577 int
17578 main ()
17579 {
17580 if (sizeof (size_t))
17581        return 0;
17582   ;
17583   return 0;
17584 }
17585 _ACEOF
17586 rm -f conftest.$ac_objext
17587 if { (ac_try="$ac_compile"
17588 case "(($ac_try" in
17589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590   *) ac_try_echo=$ac_try;;
17591 esac
17592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17593 $as_echo "$ac_try_echo") >&5
17594   (eval "$ac_compile") 2>conftest.er1
17595   ac_status=$?
17596   grep -v '^ *+' conftest.er1 >conftest.err
17597   rm -f conftest.er1
17598   cat conftest.err >&5
17599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); } && {
17601          test -z "$ac_c_werror_flag" ||
17602          test ! -s conftest.err
17603        } && test -s conftest.$ac_objext; then
17604   cat >conftest.$ac_ext <<_ACEOF
17605 /* confdefs.h.  */
17606 _ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h.  */
17610 $ac_includes_default
17611 int
17612 main ()
17613 {
17614 if (sizeof ((size_t)))
17615           return 0;
17616   ;
17617   return 0;
17618 }
17619 _ACEOF
17620 rm -f conftest.$ac_objext
17621 if { (ac_try="$ac_compile"
17622 case "(($ac_try" in
17623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624   *) ac_try_echo=$ac_try;;
17625 esac
17626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17627 $as_echo "$ac_try_echo") >&5
17628   (eval "$ac_compile") 2>conftest.er1
17629   ac_status=$?
17630   grep -v '^ *+' conftest.er1 >conftest.err
17631   rm -f conftest.er1
17632   cat conftest.err >&5
17633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634   (exit $ac_status); } && {
17635          test -z "$ac_c_werror_flag" ||
17636          test ! -s conftest.err
17637        } && test -s conftest.$ac_objext; then
17638   :
17639 else
17640   $as_echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17642
17643         ac_cv_type_size_t=yes
17644 fi
17645
17646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17647 else
17648   $as_echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17650
17651
17652 fi
17653
17654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17655 fi
17656 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17657 $as_echo "$ac_cv_type_size_t" >&6; }
17658 if test "x$ac_cv_type_size_t" = x""yes; then
17659   :
17660 else
17661
17662 cat >>confdefs.h <<_ACEOF
17663 #define size_t unsigned int
17664 _ACEOF
17665
17666 fi
17667
17668 { $as_echo "$as_me:$LINENO: checking for inline" >&5
17669 $as_echo_n "checking for inline... " >&6; }
17670 if test "${ac_cv_c_inline+set}" = set; then
17671   $as_echo_n "(cached) " >&6
17672 else
17673   ac_cv_c_inline=no
17674 for ac_kw in inline __inline__ __inline; do
17675   cat >conftest.$ac_ext <<_ACEOF
17676 /* confdefs.h.  */
17677 _ACEOF
17678 cat confdefs.h >>conftest.$ac_ext
17679 cat >>conftest.$ac_ext <<_ACEOF
17680 /* end confdefs.h.  */
17681 #ifndef __cplusplus
17682 typedef int foo_t;
17683 static $ac_kw foo_t static_foo () {return 0; }
17684 $ac_kw foo_t foo () {return 0; }
17685 #endif
17686
17687 _ACEOF
17688 rm -f conftest.$ac_objext
17689 if { (ac_try="$ac_compile"
17690 case "(($ac_try" in
17691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692   *) ac_try_echo=$ac_try;;
17693 esac
17694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17695 $as_echo "$ac_try_echo") >&5
17696   (eval "$ac_compile") 2>conftest.er1
17697   ac_status=$?
17698   grep -v '^ *+' conftest.er1 >conftest.err
17699   rm -f conftest.er1
17700   cat conftest.err >&5
17701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702   (exit $ac_status); } && {
17703          test -z "$ac_c_werror_flag" ||
17704          test ! -s conftest.err
17705        } && test -s conftest.$ac_objext; then
17706   ac_cv_c_inline=$ac_kw
17707 else
17708   $as_echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17710
17711
17712 fi
17713
17714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17715   test "$ac_cv_c_inline" != no && break
17716 done
17717
17718 fi
17719 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17720 $as_echo "$ac_cv_c_inline" >&6; }
17721
17722
17723 case $ac_cv_c_inline in
17724   inline | yes) ;;
17725   *)
17726     case $ac_cv_c_inline in
17727       no) ac_val=;;
17728       *) ac_val=$ac_cv_c_inline;;
17729     esac
17730     cat >>confdefs.h <<_ACEOF
17731 #ifndef __cplusplus
17732 #define inline $ac_val
17733 #endif
17734 _ACEOF
17735     ;;
17736 esac
17737
17738
17739 # Checks for library functions.
17740 # AC_CHECK_FUNCS(strdup strstr strchr erand48)
17741 # AW is there an automatic way to extract library functions used in the program?
17742
17743
17744 # explicit libm check
17745
17746 { $as_echo "$as_me:$LINENO: checking for log in -lm" >&5
17747 $as_echo_n "checking for log in -lm... " >&6; }
17748 if test "${ac_cv_lib_m_log+set}" = set; then
17749   $as_echo_n "(cached) " >&6
17750 else
17751   ac_check_lib_save_LIBS=$LIBS
17752 LIBS="-lm  $LIBS"
17753 cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h.  */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h.  */
17759
17760 /* Override any GCC internal prototype to avoid an error.
17761    Use char because int might match the return type of a GCC
17762    builtin and then its argument prototype would still apply.  */
17763 #ifdef __cplusplus
17764 extern "C"
17765 #endif
17766 char log ();
17767 int
17768 main ()
17769 {
17770 return log ();
17771   ;
17772   return 0;
17773 }
17774 _ACEOF
17775 rm -f conftest.$ac_objext conftest$ac_exeext
17776 if { (ac_try="$ac_link"
17777 case "(($ac_try" in
17778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779   *) ac_try_echo=$ac_try;;
17780 esac
17781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17782 $as_echo "$ac_try_echo") >&5
17783   (eval "$ac_link") 2>conftest.er1
17784   ac_status=$?
17785   grep -v '^ *+' conftest.er1 >conftest.err
17786   rm -f conftest.er1
17787   cat conftest.err >&5
17788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789   (exit $ac_status); } && {
17790          test -z "$ac_c_werror_flag" ||
17791          test ! -s conftest.err
17792        } && test -s conftest$ac_exeext && {
17793          test "$cross_compiling" = yes ||
17794          $as_test_x conftest$ac_exeext
17795        }; then
17796   ac_cv_lib_m_log=yes
17797 else
17798   $as_echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17800
17801         ac_cv_lib_m_log=no
17802 fi
17803
17804 rm -rf conftest.dSYM
17805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17806       conftest$ac_exeext conftest.$ac_ext
17807 LIBS=$ac_check_lib_save_LIBS
17808 fi
17809 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
17810 $as_echo "$ac_cv_lib_m_log" >&6; }
17811 if test "x$ac_cv_lib_m_log" = x""yes; then
17812   cat >>confdefs.h <<_ACEOF
17813 #define HAVE_LIBM 1
17814 _ACEOF
17815
17816   LIBS="-lm $LIBS"
17817
17818 else
17819   { { $as_echo "$as_me:$LINENO: error: Could not find libm" >&5
17820 $as_echo "$as_me: error: Could not find libm" >&2;}
17821    { (exit 1); exit 1; }; }
17822 fi
17823
17824 { $as_echo "$as_me:$LINENO: checking for log2 in -lm" >&5
17825 $as_echo_n "checking for log2 in -lm... " >&6; }
17826 if test "${ac_cv_lib_m_log2+set}" = set; then
17827   $as_echo_n "(cached) " >&6
17828 else
17829   ac_check_lib_save_LIBS=$LIBS
17830 LIBS="-lm  $LIBS"
17831 cat >conftest.$ac_ext <<_ACEOF
17832 /* confdefs.h.  */
17833 _ACEOF
17834 cat confdefs.h >>conftest.$ac_ext
17835 cat >>conftest.$ac_ext <<_ACEOF
17836 /* end confdefs.h.  */
17837
17838 /* Override any GCC internal prototype to avoid an error.
17839    Use char because int might match the return type of a GCC
17840    builtin and then its argument prototype would still apply.  */
17841 #ifdef __cplusplus
17842 extern "C"
17843 #endif
17844 char log2 ();
17845 int
17846 main ()
17847 {
17848 return log2 ();
17849   ;
17850   return 0;
17851 }
17852 _ACEOF
17853 rm -f conftest.$ac_objext conftest$ac_exeext
17854 if { (ac_try="$ac_link"
17855 case "(($ac_try" in
17856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857   *) ac_try_echo=$ac_try;;
17858 esac
17859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17860 $as_echo "$ac_try_echo") >&5
17861   (eval "$ac_link") 2>conftest.er1
17862   ac_status=$?
17863   grep -v '^ *+' conftest.er1 >conftest.err
17864   rm -f conftest.er1
17865   cat conftest.err >&5
17866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); } && {
17868          test -z "$ac_c_werror_flag" ||
17869          test ! -s conftest.err
17870        } && test -s conftest$ac_exeext && {
17871          test "$cross_compiling" = yes ||
17872          $as_test_x conftest$ac_exeext
17873        }; then
17874   ac_cv_lib_m_log2=yes
17875 else
17876   $as_echo "$as_me: failed program was:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17878
17879         ac_cv_lib_m_log2=no
17880 fi
17881
17882 rm -rf conftest.dSYM
17883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17884       conftest$ac_exeext conftest.$ac_ext
17885 LIBS=$ac_check_lib_save_LIBS
17886 fi
17887 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_log2" >&5
17888 $as_echo "$ac_cv_lib_m_log2" >&6; }
17889 if test "x$ac_cv_lib_m_log2" = x""yes; then
17890
17891 cat >>confdefs.h <<\_ACEOF
17892 #define HAVE_LOG2 1
17893 _ACEOF
17894
17895 fi
17896
17897
17898
17899 # ---    argtable header and library check
17900 #
17901 #
17902
17903 for ac_header in argtable2.h
17904 do
17905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17907   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17908 $as_echo_n "checking for $ac_header... " >&6; }
17909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17910   $as_echo_n "(cached) " >&6
17911 fi
17912 ac_res=`eval 'as_val=${'$as_ac_Header'}
17913                  $as_echo "$as_val"'`
17914                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17915 $as_echo "$ac_res" >&6; }
17916 else
17917   # Is the header compilable?
17918 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17919 $as_echo_n "checking $ac_header usability... " >&6; }
17920 cat >conftest.$ac_ext <<_ACEOF
17921 /* confdefs.h.  */
17922 _ACEOF
17923 cat confdefs.h >>conftest.$ac_ext
17924 cat >>conftest.$ac_ext <<_ACEOF
17925 /* end confdefs.h.  */
17926 $ac_includes_default
17927 #include <$ac_header>
17928 _ACEOF
17929 rm -f conftest.$ac_objext
17930 if { (ac_try="$ac_compile"
17931 case "(($ac_try" in
17932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933   *) ac_try_echo=$ac_try;;
17934 esac
17935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17936 $as_echo "$ac_try_echo") >&5
17937   (eval "$ac_compile") 2>conftest.er1
17938   ac_status=$?
17939   grep -v '^ *+' conftest.er1 >conftest.err
17940   rm -f conftest.er1
17941   cat conftest.err >&5
17942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); } && {
17944          test -z "$ac_c_werror_flag" ||
17945          test ! -s conftest.err
17946        } && test -s conftest.$ac_objext; then
17947   ac_header_compiler=yes
17948 else
17949   $as_echo "$as_me: failed program was:" >&5
17950 sed 's/^/| /' conftest.$ac_ext >&5
17951
17952         ac_header_compiler=no
17953 fi
17954
17955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17956 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17957 $as_echo "$ac_header_compiler" >&6; }
17958
17959 # Is the header present?
17960 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17961 $as_echo_n "checking $ac_header presence... " >&6; }
17962 cat >conftest.$ac_ext <<_ACEOF
17963 /* confdefs.h.  */
17964 _ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h.  */
17968 #include <$ac_header>
17969 _ACEOF
17970 if { (ac_try="$ac_cpp conftest.$ac_ext"
17971 case "(($ac_try" in
17972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973   *) ac_try_echo=$ac_try;;
17974 esac
17975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17976 $as_echo "$ac_try_echo") >&5
17977   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17978   ac_status=$?
17979   grep -v '^ *+' conftest.er1 >conftest.err
17980   rm -f conftest.er1
17981   cat conftest.err >&5
17982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983   (exit $ac_status); } >/dev/null && {
17984          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17985          test ! -s conftest.err
17986        }; then
17987   ac_header_preproc=yes
17988 else
17989   $as_echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17991
17992   ac_header_preproc=no
17993 fi
17994
17995 rm -f conftest.err conftest.$ac_ext
17996 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17997 $as_echo "$ac_header_preproc" >&6; }
17998
17999 # So?  What about this header?
18000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18001   yes:no: )
18002     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18003 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18004     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18005 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18006     ac_header_preproc=yes
18007     ;;
18008   no:yes:* )
18009     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18010 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18011     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18012 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18013     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18014 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18015     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18016 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18017     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18018 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18019     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18020 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18021     ( cat <<\_ASBOX
18022 ## ------------------------------ ##
18023 ## Report this to clustalw@ucd.ie ##
18024 ## ------------------------------ ##
18025 _ASBOX
18026      ) | sed "s/^/$as_me: WARNING:     /" >&2
18027     ;;
18028 esac
18029 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18030 $as_echo_n "checking for $ac_header... " >&6; }
18031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18032   $as_echo_n "(cached) " >&6
18033 else
18034   eval "$as_ac_Header=\$ac_header_preproc"
18035 fi
18036 ac_res=`eval 'as_val=${'$as_ac_Header'}
18037                  $as_echo "$as_val"'`
18038                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18039 $as_echo "$ac_res" >&6; }
18040
18041 fi
18042 as_val=`eval 'as_val=${'$as_ac_Header'}
18043                  $as_echo "$as_val"'`
18044    if test "x$as_val" = x""yes; then
18045   cat >>confdefs.h <<_ACEOF
18046 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18047 _ACEOF
18048
18049 else
18050   { { $as_echo "$as_me:$LINENO: error: Could not find argtable2.h. Try $ ./configure CFLAGS='-Iyour-argtable2-include-path" >&5
18051 $as_echo "$as_me: error: Could not find argtable2.h. Try $ ./configure CFLAGS='-Iyour-argtable2-include-path" >&2;}
18052    { (exit 1); exit 1; }; }
18053 fi
18054
18055 done
18056
18057
18058 { $as_echo "$as_me:$LINENO: checking for arg_parse in -largtable2" >&5
18059 $as_echo_n "checking for arg_parse in -largtable2... " >&6; }
18060 if test "${ac_cv_lib_argtable2_arg_parse+set}" = set; then
18061   $as_echo_n "(cached) " >&6
18062 else
18063   ac_check_lib_save_LIBS=$LIBS
18064 LIBS="-largtable2  $LIBS"
18065 cat >conftest.$ac_ext <<_ACEOF
18066 /* confdefs.h.  */
18067 _ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h.  */
18071
18072 /* Override any GCC internal prototype to avoid an error.
18073    Use char because int might match the return type of a GCC
18074    builtin and then its argument prototype would still apply.  */
18075 #ifdef __cplusplus
18076 extern "C"
18077 #endif
18078 char arg_parse ();
18079 int
18080 main ()
18081 {
18082 return arg_parse ();
18083   ;
18084   return 0;
18085 }
18086 _ACEOF
18087 rm -f conftest.$ac_objext conftest$ac_exeext
18088 if { (ac_try="$ac_link"
18089 case "(($ac_try" in
18090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091   *) ac_try_echo=$ac_try;;
18092 esac
18093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18094 $as_echo "$ac_try_echo") >&5
18095   (eval "$ac_link") 2>conftest.er1
18096   ac_status=$?
18097   grep -v '^ *+' conftest.er1 >conftest.err
18098   rm -f conftest.er1
18099   cat conftest.err >&5
18100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); } && {
18102          test -z "$ac_c_werror_flag" ||
18103          test ! -s conftest.err
18104        } && test -s conftest$ac_exeext && {
18105          test "$cross_compiling" = yes ||
18106          $as_test_x conftest$ac_exeext
18107        }; then
18108   ac_cv_lib_argtable2_arg_parse=yes
18109 else
18110   $as_echo "$as_me: failed program was:" >&5
18111 sed 's/^/| /' conftest.$ac_ext >&5
18112
18113         ac_cv_lib_argtable2_arg_parse=no
18114 fi
18115
18116 rm -rf conftest.dSYM
18117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18118       conftest$ac_exeext conftest.$ac_ext
18119 LIBS=$ac_check_lib_save_LIBS
18120 fi
18121 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_argtable2_arg_parse" >&5
18122 $as_echo "$ac_cv_lib_argtable2_arg_parse" >&6; }
18123 if test "x$ac_cv_lib_argtable2_arg_parse" = x""yes; then
18124   cat >>confdefs.h <<_ACEOF
18125 #define HAVE_LIBARGTABLE2 1
18126 _ACEOF
18127
18128   LIBS="-largtable2 $LIBS"
18129
18130 else
18131   { { $as_echo "$as_me:$LINENO: error: Could not find libargtable2. Try $ ./configure LDFLAGS=\"-Lyour-argtable2-lib-path'" >&5
18132 $as_echo "$as_me: error: Could not find libargtable2. Try $ ./configure LDFLAGS=\"-Lyour-argtable2-lib-path'" >&2;}
18133    { (exit 1); exit 1; }; }
18134 fi
18135
18136
18137
18138 # enable python if requested (--with-python)
18139 #
18140 #AC_ARG_WITH([python],
18141 #        [AS_HELP_STRING([--with-python],
18142 #        [Enable Python Interface])],
18143 #        [with_python=$withval],
18144 #        [with_python=no])
18145 #if test "$with_python" = "yes"; then
18146 #   AC_MSG_CHECKING([for python-config to get compiler flags])
18147 #   AC_CHECK_PROG(python_config, 'python-config', yes)
18148 #   if test "${python_config}" != "yes"; then
18149 #      AC_MSG_ERROR("Could not run python-config.")
18150 #   fi
18151 #   PYTHON_CFLAGS=`python-config --cflags`
18152 #   PYTHON_LDFLAGS=`python-config --ldflags`
18153 #   AC_DEFINE([PYTHON_ENABLED], [1], [define for python usage])
18154 #fi
18155 #AC_SUBST(PYTHON_CFLAGS)
18156 #AC_SUBST(PYTHON_LDFLAGS)
18157
18158
18159 # ---   SSE support
18160 # "One instruction to do the same operation on 4 packed elements simultaneously."
18161 #
18162 # http://www.codeproject.com/KB/recipes/sseintro.aspx?msg=568491
18163 # http://www.drdobbs.com/go-parallel/blog/archives/2010/03/getting_amazing.html
18164 # http://software.intel.com/file/1000
18165 #
18166 # AC_MSG_CHECKING(for SSE in current arch/CFLAGS)
18167 # AC_LINK_IFELSE([
18168 # AC_LANG_PROGRAM([[
18169 # #include <xmmintrin.h>
18170 # __m128 testfunc(float *a, float *b) {
18171 #   return _mm_add_ps(_mm_loadu_ps(a), _mm_loadu_ps(b));
18172 # }
18173 # ]])],
18174 # [has_sse=yes], [has_sse=no]
18175 # )
18176 # AC_MSG_RESULT($has_sse)
18177 #
18178 # AC_ARG_ENABLE([sse],
18179 #         [AS_HELP_STRING([--enable-sse],
18180 #                         [Enable SSE support])],
18181 #         [has_sse="$enableval"],
18182 #         [has_sse=no])
18183 #
18184 # if test x"$has_sse" = x"yes"; then
18185 #    AC_DEFINE([USE_SSE], , [Enable SSE support])
18186 #    CFLAGS="${CFLAGS} -msse"
18187 # fi
18188
18189
18190 # --- openmp
18191 #
18192
18193 # ===========================================================================
18194 #         http://www.gnu.org/software/autoconf-archive/ax_openmp.html
18195 # ===========================================================================
18196 #
18197 # SYNOPSIS
18198 #
18199 #   AX_OPENMP([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
18200 #
18201 # DESCRIPTION
18202 #
18203 #   This macro tries to find out how to compile programs that use OpenMP a
18204 #   standard API and set of compiler directives for parallel programming
18205 #   (see http://www-unix.mcs/)
18206 #
18207 #   On success, it sets the OPENMP_CFLAGS/OPENMP_CXXFLAGS/OPENMP_F77FLAGS
18208 #   output variable to the flag (e.g. -omp) used both to compile *and* link
18209 #   OpenMP programs in the current language.
18210 #
18211 #   NOTE: You are assumed to not only compile your program with these flags,
18212 #   but also link it with them as well.
18213 #
18214 #   If you want to compile everything with OpenMP, you should set:
18215 #
18216 #     CFLAGS="$CFLAGS $OPENMP_CFLAGS"
18217 #     #OR#  CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
18218 #     #OR#  FFLAGS="$FFLAGS $OPENMP_FFLAGS"
18219 #
18220 #   (depending on the selected language).
18221 #
18222 #   The user can override the default choice by setting the corresponding
18223 #   environment variable (e.g. OPENMP_CFLAGS).
18224 #
18225 #   ACTION-IF-FOUND is a list of shell commands to run if an OpenMP flag is
18226 #   found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it is
18227 #   not found. If ACTION-IF-FOUND is not specified, the default action will
18228 #   define HAVE_OPENMP.
18229 #
18230 # LICENSE
18231 #
18232 #   Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
18233 #
18234 #   This program is free software: you can redistribute it and/or modify it
18235 #   under the terms of the GNU General Public License as published by the
18236 #   Free Software Foundation, either version 3 of the License, or (at your
18237 #   option) any later version.
18238 #
18239 #   This program is distributed in the hope that it will be useful, but
18240 #   WITHOUT ANY WARRANTY; without even the implied warranty of
18241 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
18242 #   Public License for more details.
18243 #
18244 #   You should have received a copy of the GNU General Public License along
18245 #   with this program. If not, see <http://www.gnu.org/licenses/>.
18246 #
18247 #   As a special exception, the respective Autoconf Macro's copyright owner
18248 #   gives unlimited permission to copy, distribute and modify the configure
18249 #   scripts that are the output of Autoconf when processing the Macro. You
18250 #   need not follow the terms of the GNU General Public License when using
18251 #   or distributing such scripts, even though portions of the text of the
18252 #   Macro appear in them. The GNU General Public License (GPL) does govern
18253 #   all other use of the material that constitutes the Autoconf Macro.
18254 #
18255 #   This special exception to the GPL applies to versions of the Autoconf
18256 #   Macro released by the Autoconf Archive. When you make and distribute a
18257 #   modified version of the Autoconf Macro, you may extend this special
18258 #   exception to the GPL to apply to your modified version as well.
18259
18260 #serial 8
18261
18262
18263
18264 # Check whether --with-openmp was given.
18265 if test "${with_openmp+set}" = set; then
18266   withval=$with_openmp;
18267 fi
18268
18269 if test "x$with_openmp" = "xno"; then
18270   :
18271 else
18272
18273
18274 { $as_echo "$as_me:$LINENO: checking for OpenMP flag of C compiler" >&5
18275 $as_echo_n "checking for OpenMP flag of C compiler... " >&6; }
18276 if test "${ax_cv_c_openmp+set}" = set; then
18277   $as_echo_n "(cached) " >&6
18278 else
18279   saveCFLAGS=$CFLAGS
18280 ax_cv_c_openmp=unknown
18281 # Flags to try:  -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI),
18282 #                -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none
18283 ax_openmp_flags="-fopenmp -openmp -mp -xopenmp -omp -qsmp=omp none"
18284 if test "x$OPENMP_CFLAGS" != x; then
18285   ax_openmp_flags="$OPENMP_CFLAGS $ax_openmp_flags"
18286 fi
18287 for ax_openmp_flag in $ax_openmp_flags; do
18288   case $ax_openmp_flag in
18289     none) CFLAGS=$saveC ;;
18290     *) CFLAGS="$saveCFLAGS $ax_openmp_flag" ;;
18291   esac
18292   cat >conftest.$ac_ext <<_ACEOF
18293 /* confdefs.h.  */
18294 _ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h.  */
18298
18299 /* Override any GCC internal prototype to avoid an error.
18300    Use char because int might match the return type of a GCC
18301    builtin and then its argument prototype would still apply.  */
18302 #ifdef __cplusplus
18303 extern "C"
18304 #endif
18305 char omp_set_num_threads ();
18306 int
18307 main ()
18308 {
18309 return omp_set_num_threads ();
18310   ;
18311   return 0;
18312 }
18313 _ACEOF
18314 rm -f conftest.$ac_objext conftest$ac_exeext
18315 if { (ac_try="$ac_link"
18316 case "(($ac_try" in
18317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318   *) ac_try_echo=$ac_try;;
18319 esac
18320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18321 $as_echo "$ac_try_echo") >&5
18322   (eval "$ac_link") 2>conftest.er1
18323   ac_status=$?
18324   grep -v '^ *+' conftest.er1 >conftest.err
18325   rm -f conftest.er1
18326   cat conftest.err >&5
18327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328   (exit $ac_status); } && {
18329          test -z "$ac_c_werror_flag" ||
18330          test ! -s conftest.err
18331        } && test -s conftest$ac_exeext && {
18332          test "$cross_compiling" = yes ||
18333          $as_test_x conftest$ac_exeext
18334        }; then
18335   ax_cv_c_openmp=$ax_openmp_flag; break
18336 else
18337   $as_echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18339
18340
18341 fi
18342
18343 rm -rf conftest.dSYM
18344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18345       conftest$ac_exeext conftest.$ac_ext
18346 done
18347 CFLAGS=$saveCFLAGS
18348
18349 fi
18350 { $as_echo "$as_me:$LINENO: result: $ax_cv_c_openmp" >&5
18351 $as_echo "$ax_cv_c_openmp" >&6; }
18352 if test "x$ax_cv_c_openmp" = "xunknown"; then
18353   :
18354 else
18355   if test "x$ax_cv_c_openmp" != "xnone"; then
18356     OPENMP_CFLAGS=$ax_cv_c_openmp
18357   fi
18358
18359 cat >>confdefs.h <<\_ACEOF
18360 #define HAVE_OPENMP 1
18361 _ACEOF
18362
18363
18364 fi
18365
18366
18367 fi
18368
18369
18370 # according to http://beagle-lib.googlecode.com/svn-history/r824/trunk/configure.ac:
18371 # "OpenMP checker only defines for C when compiling both C and C++"
18372 OPENMP_CXXFLAGS=$OPENMP_CFLAGS
18373
18374
18375 # version 2: enable openmp only if explicitely asked for it
18376 #AC_ARG_ENABLE(openmp, AS_HELP_STRING([--enable-openmp], [Multi-threaded parallel version using OpenMP]))
18377 #if test -n "${enable_openmp}" -a x"${enable_openmp}" != x"no"; then
18378 #   m4_include([m4/ax_openmp.m4])
18379 #   AX_OPENMP(AC_DEFINE(HAVE_OPENMP, 1, [enable OpenMP support]),
18380 #             AC_MSG_ERROR([Compiler does not seem to support OpenMP]))
18381 #   AC_SUBST(OPENMP_CFLAGS)
18382 #   AC_SUBST(OPENMP_CXXFLAGS)
18383 #fi
18384
18385 # ---   squid
18386 #
18387 #
18388 # Extra checks for squid; see their configure, config.log, squidconf.h
18389 # etc. For example, I'm not sure about USE_HOST_BYTESWAP_FUNCTIONS,
18390 # SIZEOF_UNSIGNED_LONG, HAVE_STRTOUL and HAVE_STRTOULL
18391 #
18392 # Might not just have to set compiler flags but create use squidconf.h.in
18393 #
18394 # The following hopefully takes about byte ordering (big-endian...).
18395 # My hope is that it will set WORDS_BIGENDIAN and
18396 # USE_HOST_BYTESWAP_FUNCTIONS (as used by squid) if necessary:
18397 #
18398
18399  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18400 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18401 if test "${ac_cv_c_bigendian+set}" = set; then
18402   $as_echo_n "(cached) " >&6
18403 else
18404   ac_cv_c_bigendian=unknown
18405     # See if we're dealing with a universal compiler.
18406     cat >conftest.$ac_ext <<_ACEOF
18407 /* confdefs.h.  */
18408 _ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h.  */
18412 #ifndef __APPLE_CC__
18413                not a universal capable compiler
18414              #endif
18415              typedef int dummy;
18416
18417 _ACEOF
18418 rm -f conftest.$ac_objext
18419 if { (ac_try="$ac_compile"
18420 case "(($ac_try" in
18421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422   *) ac_try_echo=$ac_try;;
18423 esac
18424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18425 $as_echo "$ac_try_echo") >&5
18426   (eval "$ac_compile") 2>conftest.er1
18427   ac_status=$?
18428   grep -v '^ *+' conftest.er1 >conftest.err
18429   rm -f conftest.er1
18430   cat conftest.err >&5
18431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); } && {
18433          test -z "$ac_c_werror_flag" ||
18434          test ! -s conftest.err
18435        } && test -s conftest.$ac_objext; then
18436
18437         # Check for potential -arch flags.  It is not universal unless
18438         # there are some -arch flags.  Note that *ppc* also matches
18439         # ppc64.  This check is also rather less than ideal.
18440         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
18441           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
18442         esac
18443 else
18444   $as_echo "$as_me: failed program was:" >&5
18445 sed 's/^/| /' conftest.$ac_ext >&5
18446
18447
18448 fi
18449
18450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18451     if test $ac_cv_c_bigendian = unknown; then
18452       # See if sys/param.h defines the BYTE_ORDER macro.
18453       cat >conftest.$ac_ext <<_ACEOF
18454 /* confdefs.h.  */
18455 _ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h.  */
18459 #include <sys/types.h>
18460              #include <sys/param.h>
18461
18462 int
18463 main ()
18464 {
18465 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18466                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18467                      && LITTLE_ENDIAN)
18468               bogus endian macros
18469              #endif
18470
18471   ;
18472   return 0;
18473 }
18474 _ACEOF
18475 rm -f conftest.$ac_objext
18476 if { (ac_try="$ac_compile"
18477 case "(($ac_try" in
18478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479   *) ac_try_echo=$ac_try;;
18480 esac
18481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18482 $as_echo "$ac_try_echo") >&5
18483   (eval "$ac_compile") 2>conftest.er1
18484   ac_status=$?
18485   grep -v '^ *+' conftest.er1 >conftest.err
18486   rm -f conftest.er1
18487   cat conftest.err >&5
18488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489   (exit $ac_status); } && {
18490          test -z "$ac_c_werror_flag" ||
18491          test ! -s conftest.err
18492        } && test -s conftest.$ac_objext; then
18493   # It does; now see whether it defined to BIG_ENDIAN or not.
18494          cat >conftest.$ac_ext <<_ACEOF
18495 /* confdefs.h.  */
18496 _ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h.  */
18500 #include <sys/types.h>
18501                 #include <sys/param.h>
18502
18503 int
18504 main ()
18505 {
18506 #if BYTE_ORDER != BIG_ENDIAN
18507                  not big endian
18508                 #endif
18509
18510   ;
18511   return 0;
18512 }
18513 _ACEOF
18514 rm -f conftest.$ac_objext
18515 if { (ac_try="$ac_compile"
18516 case "(($ac_try" in
18517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518   *) ac_try_echo=$ac_try;;
18519 esac
18520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18521 $as_echo "$ac_try_echo") >&5
18522   (eval "$ac_compile") 2>conftest.er1
18523   ac_status=$?
18524   grep -v '^ *+' conftest.er1 >conftest.err
18525   rm -f conftest.er1
18526   cat conftest.err >&5
18527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528   (exit $ac_status); } && {
18529          test -z "$ac_c_werror_flag" ||
18530          test ! -s conftest.err
18531        } && test -s conftest.$ac_objext; then
18532   ac_cv_c_bigendian=yes
18533 else
18534   $as_echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18536
18537         ac_cv_c_bigendian=no
18538 fi
18539
18540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18541 else
18542   $as_echo "$as_me: failed program was:" >&5
18543 sed 's/^/| /' conftest.$ac_ext >&5
18544
18545
18546 fi
18547
18548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18549     fi
18550     if test $ac_cv_c_bigendian = unknown; then
18551       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18552       cat >conftest.$ac_ext <<_ACEOF
18553 /* confdefs.h.  */
18554 _ACEOF
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h.  */
18558 #include <limits.h>
18559
18560 int
18561 main ()
18562 {
18563 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18564               bogus endian macros
18565              #endif
18566
18567   ;
18568   return 0;
18569 }
18570 _ACEOF
18571 rm -f conftest.$ac_objext
18572 if { (ac_try="$ac_compile"
18573 case "(($ac_try" in
18574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575   *) ac_try_echo=$ac_try;;
18576 esac
18577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18578 $as_echo "$ac_try_echo") >&5
18579   (eval "$ac_compile") 2>conftest.er1
18580   ac_status=$?
18581   grep -v '^ *+' conftest.er1 >conftest.err
18582   rm -f conftest.er1
18583   cat conftest.err >&5
18584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585   (exit $ac_status); } && {
18586          test -z "$ac_c_werror_flag" ||
18587          test ! -s conftest.err
18588        } && test -s conftest.$ac_objext; then
18589   # It does; now see whether it defined to _BIG_ENDIAN or not.
18590          cat >conftest.$ac_ext <<_ACEOF
18591 /* confdefs.h.  */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h.  */
18596 #include <limits.h>
18597
18598 int
18599 main ()
18600 {
18601 #ifndef _BIG_ENDIAN
18602                  not big endian
18603                 #endif
18604
18605   ;
18606   return 0;
18607 }
18608 _ACEOF
18609 rm -f conftest.$ac_objext
18610 if { (ac_try="$ac_compile"
18611 case "(($ac_try" in
18612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613   *) ac_try_echo=$ac_try;;
18614 esac
18615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18616 $as_echo "$ac_try_echo") >&5
18617   (eval "$ac_compile") 2>conftest.er1
18618   ac_status=$?
18619   grep -v '^ *+' conftest.er1 >conftest.err
18620   rm -f conftest.er1
18621   cat conftest.err >&5
18622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); } && {
18624          test -z "$ac_c_werror_flag" ||
18625          test ! -s conftest.err
18626        } && test -s conftest.$ac_objext; then
18627   ac_cv_c_bigendian=yes
18628 else
18629   $as_echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18631
18632         ac_cv_c_bigendian=no
18633 fi
18634
18635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18636 else
18637   $as_echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.$ac_ext >&5
18639
18640
18641 fi
18642
18643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18644     fi
18645     if test $ac_cv_c_bigendian = unknown; then
18646       # Compile a test program.
18647       if test "$cross_compiling" = yes; then
18648   # Try to guess by grepping values from an object file.
18649          cat >conftest.$ac_ext <<_ACEOF
18650 /* confdefs.h.  */
18651 _ACEOF
18652 cat confdefs.h >>conftest.$ac_ext
18653 cat >>conftest.$ac_ext <<_ACEOF
18654 /* end confdefs.h.  */
18655 short int ascii_mm[] =
18656                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18657                 short int ascii_ii[] =
18658                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18659                 int use_ascii (int i) {
18660                   return ascii_mm[i] + ascii_ii[i];
18661                 }
18662                 short int ebcdic_ii[] =
18663                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18664                 short int ebcdic_mm[] =
18665                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18666                 int use_ebcdic (int i) {
18667                   return ebcdic_mm[i] + ebcdic_ii[i];
18668                 }
18669                 extern int foo;
18670
18671 int
18672 main ()
18673 {
18674 return use_ascii (foo) == use_ebcdic (foo);
18675   ;
18676   return 0;
18677 }
18678 _ACEOF
18679 rm -f conftest.$ac_objext
18680 if { (ac_try="$ac_compile"
18681 case "(($ac_try" in
18682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683   *) ac_try_echo=$ac_try;;
18684 esac
18685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18686 $as_echo "$ac_try_echo") >&5
18687   (eval "$ac_compile") 2>conftest.er1
18688   ac_status=$?
18689   grep -v '^ *+' conftest.er1 >conftest.err
18690   rm -f conftest.er1
18691   cat conftest.err >&5
18692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693   (exit $ac_status); } && {
18694          test -z "$ac_c_werror_flag" ||
18695          test ! -s conftest.err
18696        } && test -s conftest.$ac_objext; then
18697   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18698               ac_cv_c_bigendian=yes
18699             fi
18700             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18701               if test "$ac_cv_c_bigendian" = unknown; then
18702                 ac_cv_c_bigendian=no
18703               else
18704                 # finding both strings is unlikely to happen, but who knows?
18705                 ac_cv_c_bigendian=unknown
18706               fi
18707             fi
18708 else
18709   $as_echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18711
18712
18713 fi
18714
18715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18716 else
18717   cat >conftest.$ac_ext <<_ACEOF
18718 /* confdefs.h.  */
18719 _ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h.  */
18723 $ac_includes_default
18724 int
18725 main ()
18726 {
18727
18728              /* Are we little or big endian?  From Harbison&Steele.  */
18729              union
18730              {
18731                long int l;
18732                char c[sizeof (long int)];
18733              } u;
18734              u.l = 1;
18735              return u.c[sizeof (long int) - 1] == 1;
18736
18737   ;
18738   return 0;
18739 }
18740 _ACEOF
18741 rm -f conftest$ac_exeext
18742 if { (ac_try="$ac_link"
18743 case "(($ac_try" in
18744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745   *) ac_try_echo=$ac_try;;
18746 esac
18747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18748 $as_echo "$ac_try_echo") >&5
18749   (eval "$ac_link") 2>&5
18750   ac_status=$?
18751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18753   { (case "(($ac_try" in
18754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755   *) ac_try_echo=$ac_try;;
18756 esac
18757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18758 $as_echo "$ac_try_echo") >&5
18759   (eval "$ac_try") 2>&5
18760   ac_status=$?
18761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); }; }; then
18763   ac_cv_c_bigendian=no
18764 else
18765   $as_echo "$as_me: program exited with status $ac_status" >&5
18766 $as_echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18768
18769 ( exit $ac_status )
18770 ac_cv_c_bigendian=yes
18771 fi
18772 rm -rf conftest.dSYM
18773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18774 fi
18775
18776
18777     fi
18778 fi
18779 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18780 $as_echo "$ac_cv_c_bigendian" >&6; }
18781  case $ac_cv_c_bigendian in #(
18782    yes)
18783      { $as_echo "$as_me:$LINENO: WARNING: $PACKAGE_NAME hasn't been tested on Big-Endian machines...expecting trouble!" >&5
18784 $as_echo "$as_me: WARNING: $PACKAGE_NAME hasn't been tested on Big-Endian machines...expecting trouble!" >&2;};; #(
18785    no)
18786       ;; #(
18787    universal)
18788
18789 cat >>confdefs.h <<\_ACEOF
18790 #define AC_APPLE_UNIVERSAL_BUILD 1
18791 _ACEOF
18792
18793      ;; #(
18794    *)
18795      { { $as_echo "$as_me:$LINENO: error: unknown endianness
18796  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
18797 $as_echo "$as_me: error: unknown endianness
18798  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
18799    { (exit 1); exit 1; }; } ;;
18800  esac
18801
18802
18803
18804
18805
18806 for ac_func in ntohs ntohl ntons ntonl
18807 do
18808 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18809 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18810 $as_echo_n "checking for $ac_func... " >&6; }
18811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18812   $as_echo_n "(cached) " >&6
18813 else
18814   cat >conftest.$ac_ext <<_ACEOF
18815 /* confdefs.h.  */
18816 _ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h.  */
18820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18822 #define $ac_func innocuous_$ac_func
18823
18824 /* System header to define __stub macros and hopefully few prototypes,
18825     which can conflict with char $ac_func (); below.
18826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18827     <limits.h> exists even on freestanding compilers.  */
18828
18829 #ifdef __STDC__
18830 # include <limits.h>
18831 #else
18832 # include <assert.h>
18833 #endif
18834
18835 #undef $ac_func
18836
18837 /* Override any GCC internal prototype to avoid an error.
18838    Use char because int might match the return type of a GCC
18839    builtin and then its argument prototype would still apply.  */
18840 #ifdef __cplusplus
18841 extern "C"
18842 #endif
18843 char $ac_func ();
18844 /* The GNU C library defines this for functions which it implements
18845     to always fail with ENOSYS.  Some functions are actually named
18846     something starting with __ and the normal name is an alias.  */
18847 #if defined __stub_$ac_func || defined __stub___$ac_func
18848 choke me
18849 #endif
18850
18851 int
18852 main ()
18853 {
18854 return $ac_func ();
18855   ;
18856   return 0;
18857 }
18858 _ACEOF
18859 rm -f conftest.$ac_objext conftest$ac_exeext
18860 if { (ac_try="$ac_link"
18861 case "(($ac_try" in
18862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863   *) ac_try_echo=$ac_try;;
18864 esac
18865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18866 $as_echo "$ac_try_echo") >&5
18867   (eval "$ac_link") 2>conftest.er1
18868   ac_status=$?
18869   grep -v '^ *+' conftest.er1 >conftest.err
18870   rm -f conftest.er1
18871   cat conftest.err >&5
18872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873   (exit $ac_status); } && {
18874          test -z "$ac_c_werror_flag" ||
18875          test ! -s conftest.err
18876        } && test -s conftest$ac_exeext && {
18877          test "$cross_compiling" = yes ||
18878          $as_test_x conftest$ac_exeext
18879        }; then
18880   eval "$as_ac_var=yes"
18881 else
18882   $as_echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18884
18885         eval "$as_ac_var=no"
18886 fi
18887
18888 rm -rf conftest.dSYM
18889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18890       conftest$ac_exeext conftest.$ac_ext
18891 fi
18892 ac_res=`eval 'as_val=${'$as_ac_var'}
18893                  $as_echo "$as_val"'`
18894                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18895 $as_echo "$ac_res" >&6; }
18896 as_val=`eval 'as_val=${'$as_ac_var'}
18897                  $as_echo "$as_val"'`
18898    if test "x$as_val" = x""yes; then
18899   cat >>confdefs.h <<_ACEOF
18900 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18901 _ACEOF
18902
18903 fi
18904 done
18905
18906 #
18907 # The cast to long int works around a bug in the HP C Compiler
18908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18910 # This bug is HP SR number 8606223364.
18911 { $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5
18912 $as_echo_n "checking size of unsigned short... " >&6; }
18913 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
18914   $as_echo_n "(cached) " >&6
18915 else
18916   if test "$cross_compiling" = yes; then
18917   # Depending upon the size, compute the lo and hi bounds.
18918 cat >conftest.$ac_ext <<_ACEOF
18919 /* confdefs.h.  */
18920 _ACEOF
18921 cat confdefs.h >>conftest.$ac_ext
18922 cat >>conftest.$ac_ext <<_ACEOF
18923 /* end confdefs.h.  */
18924 $ac_includes_default
18925 int
18926 main ()
18927 {
18928 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)];
18929 test_array [0] = 0
18930
18931   ;
18932   return 0;
18933 }
18934 _ACEOF
18935 rm -f conftest.$ac_objext
18936 if { (ac_try="$ac_compile"
18937 case "(($ac_try" in
18938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18939   *) ac_try_echo=$ac_try;;
18940 esac
18941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18942 $as_echo "$ac_try_echo") >&5
18943   (eval "$ac_compile") 2>conftest.er1
18944   ac_status=$?
18945   grep -v '^ *+' conftest.er1 >conftest.err
18946   rm -f conftest.er1
18947   cat conftest.err >&5
18948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949   (exit $ac_status); } && {
18950          test -z "$ac_c_werror_flag" ||
18951          test ! -s conftest.err
18952        } && test -s conftest.$ac_objext; then
18953   ac_lo=0 ac_mid=0
18954   while :; do
18955     cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h.  */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h.  */
18961 $ac_includes_default
18962 int
18963 main ()
18964 {
18965 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
18966 test_array [0] = 0
18967
18968   ;
18969   return 0;
18970 }
18971 _ACEOF
18972 rm -f conftest.$ac_objext
18973 if { (ac_try="$ac_compile"
18974 case "(($ac_try" in
18975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976   *) ac_try_echo=$ac_try;;
18977 esac
18978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18979 $as_echo "$ac_try_echo") >&5
18980   (eval "$ac_compile") 2>conftest.er1
18981   ac_status=$?
18982   grep -v '^ *+' conftest.er1 >conftest.err
18983   rm -f conftest.er1
18984   cat conftest.err >&5
18985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986   (exit $ac_status); } && {
18987          test -z "$ac_c_werror_flag" ||
18988          test ! -s conftest.err
18989        } && test -s conftest.$ac_objext; then
18990   ac_hi=$ac_mid; break
18991 else
18992   $as_echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18994
18995         ac_lo=`expr $ac_mid + 1`
18996                         if test $ac_lo -le $ac_mid; then
18997                           ac_lo= ac_hi=
18998                           break
18999                         fi
19000                         ac_mid=`expr 2 '*' $ac_mid + 1`
19001 fi
19002
19003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19004   done
19005 else
19006   $as_echo "$as_me: failed program was:" >&5
19007 sed 's/^/| /' conftest.$ac_ext >&5
19008
19009         cat >conftest.$ac_ext <<_ACEOF
19010 /* confdefs.h.  */
19011 _ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h.  */
19015 $ac_includes_default
19016 int
19017 main ()
19018 {
19019 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)];
19020 test_array [0] = 0
19021
19022   ;
19023   return 0;
19024 }
19025 _ACEOF
19026 rm -f conftest.$ac_objext
19027 if { (ac_try="$ac_compile"
19028 case "(($ac_try" in
19029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030   *) ac_try_echo=$ac_try;;
19031 esac
19032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19033 $as_echo "$ac_try_echo") >&5
19034   (eval "$ac_compile") 2>conftest.er1
19035   ac_status=$?
19036   grep -v '^ *+' conftest.er1 >conftest.err
19037   rm -f conftest.er1
19038   cat conftest.err >&5
19039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); } && {
19041          test -z "$ac_c_werror_flag" ||
19042          test ! -s conftest.err
19043        } && test -s conftest.$ac_objext; then
19044   ac_hi=-1 ac_mid=-1
19045   while :; do
19046     cat >conftest.$ac_ext <<_ACEOF
19047 /* confdefs.h.  */
19048 _ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h.  */
19052 $ac_includes_default
19053 int
19054 main ()
19055 {
19056 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)];
19057 test_array [0] = 0
19058
19059   ;
19060   return 0;
19061 }
19062 _ACEOF
19063 rm -f conftest.$ac_objext
19064 if { (ac_try="$ac_compile"
19065 case "(($ac_try" in
19066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067   *) ac_try_echo=$ac_try;;
19068 esac
19069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19070 $as_echo "$ac_try_echo") >&5
19071   (eval "$ac_compile") 2>conftest.er1
19072   ac_status=$?
19073   grep -v '^ *+' conftest.er1 >conftest.err
19074   rm -f conftest.er1
19075   cat conftest.err >&5
19076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077   (exit $ac_status); } && {
19078          test -z "$ac_c_werror_flag" ||
19079          test ! -s conftest.err
19080        } && test -s conftest.$ac_objext; then
19081   ac_lo=$ac_mid; break
19082 else
19083   $as_echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19085
19086         ac_hi=`expr '(' $ac_mid ')' - 1`
19087                         if test $ac_mid -le $ac_hi; then
19088                           ac_lo= ac_hi=
19089                           break
19090                         fi
19091                         ac_mid=`expr 2 '*' $ac_mid`
19092 fi
19093
19094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19095   done
19096 else
19097   $as_echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100         ac_lo= ac_hi=
19101 fi
19102
19103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19104 fi
19105
19106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19107 # Binary search between lo and hi bounds.
19108 while test "x$ac_lo" != "x$ac_hi"; do
19109   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19110   cat >conftest.$ac_ext <<_ACEOF
19111 /* confdefs.h.  */
19112 _ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h.  */
19116 $ac_includes_default
19117 int
19118 main ()
19119 {
19120 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
19121 test_array [0] = 0
19122
19123   ;
19124   return 0;
19125 }
19126 _ACEOF
19127 rm -f conftest.$ac_objext
19128 if { (ac_try="$ac_compile"
19129 case "(($ac_try" in
19130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131   *) ac_try_echo=$ac_try;;
19132 esac
19133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19134 $as_echo "$ac_try_echo") >&5
19135   (eval "$ac_compile") 2>conftest.er1
19136   ac_status=$?
19137   grep -v '^ *+' conftest.er1 >conftest.err
19138   rm -f conftest.er1
19139   cat conftest.err >&5
19140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); } && {
19142          test -z "$ac_c_werror_flag" ||
19143          test ! -s conftest.err
19144        } && test -s conftest.$ac_objext; then
19145   ac_hi=$ac_mid
19146 else
19147   $as_echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19149
19150         ac_lo=`expr '(' $ac_mid ')' + 1`
19151 fi
19152
19153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19154 done
19155 case $ac_lo in
19156 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
19157 '') if test "$ac_cv_type_unsigned_short" = yes; then
19158      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19160 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
19161 See \`config.log' for more details." >&5
19162 $as_echo "$as_me: error: cannot compute sizeof (unsigned short)
19163 See \`config.log' for more details." >&2;}
19164    { (exit 77); exit 77; }; }; }
19165    else
19166      ac_cv_sizeof_unsigned_short=0
19167    fi ;;
19168 esac
19169 else
19170   cat >conftest.$ac_ext <<_ACEOF
19171 /* confdefs.h.  */
19172 _ACEOF
19173 cat confdefs.h >>conftest.$ac_ext
19174 cat >>conftest.$ac_ext <<_ACEOF
19175 /* end confdefs.h.  */
19176 $ac_includes_default
19177 static long int longval () { return (long int) (sizeof (unsigned short)); }
19178 static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); }
19179 #include <stdio.h>
19180 #include <stdlib.h>
19181 int
19182 main ()
19183 {
19184
19185   FILE *f = fopen ("conftest.val", "w");
19186   if (! f)
19187     return 1;
19188   if (((long int) (sizeof (unsigned short))) < 0)
19189     {
19190       long int i = longval ();
19191       if (i != ((long int) (sizeof (unsigned short))))
19192         return 1;
19193       fprintf (f, "%ld", i);
19194     }
19195   else
19196     {
19197       unsigned long int i = ulongval ();
19198       if (i != ((long int) (sizeof (unsigned short))))
19199         return 1;
19200       fprintf (f, "%lu", i);
19201     }
19202   /* Do not output a trailing newline, as this causes \r\n confusion
19203      on some platforms.  */
19204   return ferror (f) || fclose (f) != 0;
19205
19206   ;
19207   return 0;
19208 }
19209 _ACEOF
19210 rm -f conftest$ac_exeext
19211 if { (ac_try="$ac_link"
19212 case "(($ac_try" in
19213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19214   *) ac_try_echo=$ac_try;;
19215 esac
19216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19217 $as_echo "$ac_try_echo") >&5
19218   (eval "$ac_link") 2>&5
19219   ac_status=$?
19220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19222   { (case "(($ac_try" in
19223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224   *) ac_try_echo=$ac_try;;
19225 esac
19226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19227 $as_echo "$ac_try_echo") >&5
19228   (eval "$ac_try") 2>&5
19229   ac_status=$?
19230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231   (exit $ac_status); }; }; then
19232   ac_cv_sizeof_unsigned_short=`cat conftest.val`
19233 else
19234   $as_echo "$as_me: program exited with status $ac_status" >&5
19235 $as_echo "$as_me: failed program was:" >&5
19236 sed 's/^/| /' conftest.$ac_ext >&5
19237
19238 ( exit $ac_status )
19239 if test "$ac_cv_type_unsigned_short" = yes; then
19240      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19242 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
19243 See \`config.log' for more details." >&5
19244 $as_echo "$as_me: error: cannot compute sizeof (unsigned short)
19245 See \`config.log' for more details." >&2;}
19246    { (exit 77); exit 77; }; }; }
19247    else
19248      ac_cv_sizeof_unsigned_short=0
19249    fi
19250 fi
19251 rm -rf conftest.dSYM
19252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19253 fi
19254 rm -f conftest.val
19255 fi
19256 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
19257 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
19258
19259
19260
19261 cat >>confdefs.h <<_ACEOF
19262 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
19263 _ACEOF
19264
19265
19266 # The cast to long int works around a bug in the HP C Compiler
19267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19269 # This bug is HP SR number 8606223364.
19270 { $as_echo "$as_me:$LINENO: checking size of unsigned int" >&5
19271 $as_echo_n "checking size of unsigned int... " >&6; }
19272 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
19273   $as_echo_n "(cached) " >&6
19274 else
19275   if test "$cross_compiling" = yes; then
19276   # Depending upon the size, compute the lo and hi bounds.
19277 cat >conftest.$ac_ext <<_ACEOF
19278 /* confdefs.h.  */
19279 _ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h.  */
19283 $ac_includes_default
19284 int
19285 main ()
19286 {
19287 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= 0)];
19288 test_array [0] = 0
19289
19290   ;
19291   return 0;
19292 }
19293 _ACEOF
19294 rm -f conftest.$ac_objext
19295 if { (ac_try="$ac_compile"
19296 case "(($ac_try" in
19297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298   *) ac_try_echo=$ac_try;;
19299 esac
19300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19301 $as_echo "$ac_try_echo") >&5
19302   (eval "$ac_compile") 2>conftest.er1
19303   ac_status=$?
19304   grep -v '^ *+' conftest.er1 >conftest.err
19305   rm -f conftest.er1
19306   cat conftest.err >&5
19307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308   (exit $ac_status); } && {
19309          test -z "$ac_c_werror_flag" ||
19310          test ! -s conftest.err
19311        } && test -s conftest.$ac_objext; then
19312   ac_lo=0 ac_mid=0
19313   while :; do
19314     cat >conftest.$ac_ext <<_ACEOF
19315 /* confdefs.h.  */
19316 _ACEOF
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h.  */
19320 $ac_includes_default
19321 int
19322 main ()
19323 {
19324 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
19325 test_array [0] = 0
19326
19327   ;
19328   return 0;
19329 }
19330 _ACEOF
19331 rm -f conftest.$ac_objext
19332 if { (ac_try="$ac_compile"
19333 case "(($ac_try" in
19334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335   *) ac_try_echo=$ac_try;;
19336 esac
19337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19338 $as_echo "$ac_try_echo") >&5
19339   (eval "$ac_compile") 2>conftest.er1
19340   ac_status=$?
19341   grep -v '^ *+' conftest.er1 >conftest.err
19342   rm -f conftest.er1
19343   cat conftest.err >&5
19344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345   (exit $ac_status); } && {
19346          test -z "$ac_c_werror_flag" ||
19347          test ! -s conftest.err
19348        } && test -s conftest.$ac_objext; then
19349   ac_hi=$ac_mid; break
19350 else
19351   $as_echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19353
19354         ac_lo=`expr $ac_mid + 1`
19355                         if test $ac_lo -le $ac_mid; then
19356                           ac_lo= ac_hi=
19357                           break
19358                         fi
19359                         ac_mid=`expr 2 '*' $ac_mid + 1`
19360 fi
19361
19362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19363   done
19364 else
19365   $as_echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19367
19368         cat >conftest.$ac_ext <<_ACEOF
19369 /* confdefs.h.  */
19370 _ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h.  */
19374 $ac_includes_default
19375 int
19376 main ()
19377 {
19378 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) < 0)];
19379 test_array [0] = 0
19380
19381   ;
19382   return 0;
19383 }
19384 _ACEOF
19385 rm -f conftest.$ac_objext
19386 if { (ac_try="$ac_compile"
19387 case "(($ac_try" in
19388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389   *) ac_try_echo=$ac_try;;
19390 esac
19391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19392 $as_echo "$ac_try_echo") >&5
19393   (eval "$ac_compile") 2>conftest.er1
19394   ac_status=$?
19395   grep -v '^ *+' conftest.er1 >conftest.err
19396   rm -f conftest.er1
19397   cat conftest.err >&5
19398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399   (exit $ac_status); } && {
19400          test -z "$ac_c_werror_flag" ||
19401          test ! -s conftest.err
19402        } && test -s conftest.$ac_objext; then
19403   ac_hi=-1 ac_mid=-1
19404   while :; do
19405     cat >conftest.$ac_ext <<_ACEOF
19406 /* confdefs.h.  */
19407 _ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h.  */
19411 $ac_includes_default
19412 int
19413 main ()
19414 {
19415 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= $ac_mid)];
19416 test_array [0] = 0
19417
19418   ;
19419   return 0;
19420 }
19421 _ACEOF
19422 rm -f conftest.$ac_objext
19423 if { (ac_try="$ac_compile"
19424 case "(($ac_try" in
19425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426   *) ac_try_echo=$ac_try;;
19427 esac
19428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19429 $as_echo "$ac_try_echo") >&5
19430   (eval "$ac_compile") 2>conftest.er1
19431   ac_status=$?
19432   grep -v '^ *+' conftest.er1 >conftest.err
19433   rm -f conftest.er1
19434   cat conftest.err >&5
19435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436   (exit $ac_status); } && {
19437          test -z "$ac_c_werror_flag" ||
19438          test ! -s conftest.err
19439        } && test -s conftest.$ac_objext; then
19440   ac_lo=$ac_mid; break
19441 else
19442   $as_echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19444
19445         ac_hi=`expr '(' $ac_mid ')' - 1`
19446                         if test $ac_mid -le $ac_hi; then
19447                           ac_lo= ac_hi=
19448                           break
19449                         fi
19450                         ac_mid=`expr 2 '*' $ac_mid`
19451 fi
19452
19453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19454   done
19455 else
19456   $as_echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19458
19459         ac_lo= ac_hi=
19460 fi
19461
19462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19463 fi
19464
19465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19466 # Binary search between lo and hi bounds.
19467 while test "x$ac_lo" != "x$ac_hi"; do
19468   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19469   cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h.  */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h.  */
19475 $ac_includes_default
19476 int
19477 main ()
19478 {
19479 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
19480 test_array [0] = 0
19481
19482   ;
19483   return 0;
19484 }
19485 _ACEOF
19486 rm -f conftest.$ac_objext
19487 if { (ac_try="$ac_compile"
19488 case "(($ac_try" in
19489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490   *) ac_try_echo=$ac_try;;
19491 esac
19492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19493 $as_echo "$ac_try_echo") >&5
19494   (eval "$ac_compile") 2>conftest.er1
19495   ac_status=$?
19496   grep -v '^ *+' conftest.er1 >conftest.err
19497   rm -f conftest.er1
19498   cat conftest.err >&5
19499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500   (exit $ac_status); } && {
19501          test -z "$ac_c_werror_flag" ||
19502          test ! -s conftest.err
19503        } && test -s conftest.$ac_objext; then
19504   ac_hi=$ac_mid
19505 else
19506   $as_echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19508
19509         ac_lo=`expr '(' $ac_mid ')' + 1`
19510 fi
19511
19512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19513 done
19514 case $ac_lo in
19515 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
19516 '') if test "$ac_cv_type_unsigned_int" = yes; then
19517      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19519 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
19520 See \`config.log' for more details." >&5
19521 $as_echo "$as_me: error: cannot compute sizeof (unsigned int)
19522 See \`config.log' for more details." >&2;}
19523    { (exit 77); exit 77; }; }; }
19524    else
19525      ac_cv_sizeof_unsigned_int=0
19526    fi ;;
19527 esac
19528 else
19529   cat >conftest.$ac_ext <<_ACEOF
19530 /* confdefs.h.  */
19531 _ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h.  */
19535 $ac_includes_default
19536 static long int longval () { return (long int) (sizeof (unsigned int)); }
19537 static unsigned long int ulongval () { return (long int) (sizeof (unsigned int)); }
19538 #include <stdio.h>
19539 #include <stdlib.h>
19540 int
19541 main ()
19542 {
19543
19544   FILE *f = fopen ("conftest.val", "w");
19545   if (! f)
19546     return 1;
19547   if (((long int) (sizeof (unsigned int))) < 0)
19548     {
19549       long int i = longval ();
19550       if (i != ((long int) (sizeof (unsigned int))))
19551         return 1;
19552       fprintf (f, "%ld", i);
19553     }
19554   else
19555     {
19556       unsigned long int i = ulongval ();
19557       if (i != ((long int) (sizeof (unsigned int))))
19558         return 1;
19559       fprintf (f, "%lu", i);
19560     }
19561   /* Do not output a trailing newline, as this causes \r\n confusion
19562      on some platforms.  */
19563   return ferror (f) || fclose (f) != 0;
19564
19565   ;
19566   return 0;
19567 }
19568 _ACEOF
19569 rm -f conftest$ac_exeext
19570 if { (ac_try="$ac_link"
19571 case "(($ac_try" in
19572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573   *) ac_try_echo=$ac_try;;
19574 esac
19575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19576 $as_echo "$ac_try_echo") >&5
19577   (eval "$ac_link") 2>&5
19578   ac_status=$?
19579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19581   { (case "(($ac_try" in
19582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583   *) ac_try_echo=$ac_try;;
19584 esac
19585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19586 $as_echo "$ac_try_echo") >&5
19587   (eval "$ac_try") 2>&5
19588   ac_status=$?
19589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590   (exit $ac_status); }; }; then
19591   ac_cv_sizeof_unsigned_int=`cat conftest.val`
19592 else
19593   $as_echo "$as_me: program exited with status $ac_status" >&5
19594 $as_echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19596
19597 ( exit $ac_status )
19598 if test "$ac_cv_type_unsigned_int" = yes; then
19599      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19601 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
19602 See \`config.log' for more details." >&5
19603 $as_echo "$as_me: error: cannot compute sizeof (unsigned int)
19604 See \`config.log' for more details." >&2;}
19605    { (exit 77); exit 77; }; }; }
19606    else
19607      ac_cv_sizeof_unsigned_int=0
19608    fi
19609 fi
19610 rm -rf conftest.dSYM
19611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19612 fi
19613 rm -f conftest.val
19614 fi
19615 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
19616 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
19617
19618
19619
19620 cat >>confdefs.h <<_ACEOF
19621 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
19622 _ACEOF
19623
19624
19625 # The cast to long int works around a bug in the HP C Compiler
19626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19628 # This bug is HP SR number 8606223364.
19629 { $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
19630 $as_echo_n "checking size of unsigned long... " >&6; }
19631 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
19632   $as_echo_n "(cached) " >&6
19633 else
19634   if test "$cross_compiling" = yes; then
19635   # Depending upon the size, compute the lo and hi bounds.
19636 cat >conftest.$ac_ext <<_ACEOF
19637 /* confdefs.h.  */
19638 _ACEOF
19639 cat confdefs.h >>conftest.$ac_ext
19640 cat >>conftest.$ac_ext <<_ACEOF
19641 /* end confdefs.h.  */
19642 $ac_includes_default
19643 int
19644 main ()
19645 {
19646 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
19647 test_array [0] = 0
19648
19649   ;
19650   return 0;
19651 }
19652 _ACEOF
19653 rm -f conftest.$ac_objext
19654 if { (ac_try="$ac_compile"
19655 case "(($ac_try" in
19656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657   *) ac_try_echo=$ac_try;;
19658 esac
19659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19660 $as_echo "$ac_try_echo") >&5
19661   (eval "$ac_compile") 2>conftest.er1
19662   ac_status=$?
19663   grep -v '^ *+' conftest.er1 >conftest.err
19664   rm -f conftest.er1
19665   cat conftest.err >&5
19666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667   (exit $ac_status); } && {
19668          test -z "$ac_c_werror_flag" ||
19669          test ! -s conftest.err
19670        } && test -s conftest.$ac_objext; then
19671   ac_lo=0 ac_mid=0
19672   while :; do
19673     cat >conftest.$ac_ext <<_ACEOF
19674 /* confdefs.h.  */
19675 _ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h.  */
19679 $ac_includes_default
19680 int
19681 main ()
19682 {
19683 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
19684 test_array [0] = 0
19685
19686   ;
19687   return 0;
19688 }
19689 _ACEOF
19690 rm -f conftest.$ac_objext
19691 if { (ac_try="$ac_compile"
19692 case "(($ac_try" in
19693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694   *) ac_try_echo=$ac_try;;
19695 esac
19696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19697 $as_echo "$ac_try_echo") >&5
19698   (eval "$ac_compile") 2>conftest.er1
19699   ac_status=$?
19700   grep -v '^ *+' conftest.er1 >conftest.err
19701   rm -f conftest.er1
19702   cat conftest.err >&5
19703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); } && {
19705          test -z "$ac_c_werror_flag" ||
19706          test ! -s conftest.err
19707        } && test -s conftest.$ac_objext; then
19708   ac_hi=$ac_mid; break
19709 else
19710   $as_echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19712
19713         ac_lo=`expr $ac_mid + 1`
19714                         if test $ac_lo -le $ac_mid; then
19715                           ac_lo= ac_hi=
19716                           break
19717                         fi
19718                         ac_mid=`expr 2 '*' $ac_mid + 1`
19719 fi
19720
19721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19722   done
19723 else
19724   $as_echo "$as_me: failed program was:" >&5
19725 sed 's/^/| /' conftest.$ac_ext >&5
19726
19727         cat >conftest.$ac_ext <<_ACEOF
19728 /* confdefs.h.  */
19729 _ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h.  */
19733 $ac_includes_default
19734 int
19735 main ()
19736 {
19737 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
19738 test_array [0] = 0
19739
19740   ;
19741   return 0;
19742 }
19743 _ACEOF
19744 rm -f conftest.$ac_objext
19745 if { (ac_try="$ac_compile"
19746 case "(($ac_try" in
19747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748   *) ac_try_echo=$ac_try;;
19749 esac
19750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19751 $as_echo "$ac_try_echo") >&5
19752   (eval "$ac_compile") 2>conftest.er1
19753   ac_status=$?
19754   grep -v '^ *+' conftest.er1 >conftest.err
19755   rm -f conftest.er1
19756   cat conftest.err >&5
19757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); } && {
19759          test -z "$ac_c_werror_flag" ||
19760          test ! -s conftest.err
19761        } && test -s conftest.$ac_objext; then
19762   ac_hi=-1 ac_mid=-1
19763   while :; do
19764     cat >conftest.$ac_ext <<_ACEOF
19765 /* confdefs.h.  */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h.  */
19770 $ac_includes_default
19771 int
19772 main ()
19773 {
19774 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
19775 test_array [0] = 0
19776
19777   ;
19778   return 0;
19779 }
19780 _ACEOF
19781 rm -f conftest.$ac_objext
19782 if { (ac_try="$ac_compile"
19783 case "(($ac_try" in
19784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785   *) ac_try_echo=$ac_try;;
19786 esac
19787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19788 $as_echo "$ac_try_echo") >&5
19789   (eval "$ac_compile") 2>conftest.er1
19790   ac_status=$?
19791   grep -v '^ *+' conftest.er1 >conftest.err
19792   rm -f conftest.er1
19793   cat conftest.err >&5
19794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); } && {
19796          test -z "$ac_c_werror_flag" ||
19797          test ! -s conftest.err
19798        } && test -s conftest.$ac_objext; then
19799   ac_lo=$ac_mid; break
19800 else
19801   $as_echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19803
19804         ac_hi=`expr '(' $ac_mid ')' - 1`
19805                         if test $ac_mid -le $ac_hi; then
19806                           ac_lo= ac_hi=
19807                           break
19808                         fi
19809                         ac_mid=`expr 2 '*' $ac_mid`
19810 fi
19811
19812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19813   done
19814 else
19815   $as_echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19817
19818         ac_lo= ac_hi=
19819 fi
19820
19821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19822 fi
19823
19824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825 # Binary search between lo and hi bounds.
19826 while test "x$ac_lo" != "x$ac_hi"; do
19827   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19828   cat >conftest.$ac_ext <<_ACEOF
19829 /* confdefs.h.  */
19830 _ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h.  */
19834 $ac_includes_default
19835 int
19836 main ()
19837 {
19838 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
19839 test_array [0] = 0
19840
19841   ;
19842   return 0;
19843 }
19844 _ACEOF
19845 rm -f conftest.$ac_objext
19846 if { (ac_try="$ac_compile"
19847 case "(($ac_try" in
19848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849   *) ac_try_echo=$ac_try;;
19850 esac
19851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19852 $as_echo "$ac_try_echo") >&5
19853   (eval "$ac_compile") 2>conftest.er1
19854   ac_status=$?
19855   grep -v '^ *+' conftest.er1 >conftest.err
19856   rm -f conftest.er1
19857   cat conftest.err >&5
19858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859   (exit $ac_status); } && {
19860          test -z "$ac_c_werror_flag" ||
19861          test ! -s conftest.err
19862        } && test -s conftest.$ac_objext; then
19863   ac_hi=$ac_mid
19864 else
19865   $as_echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19867
19868         ac_lo=`expr '(' $ac_mid ')' + 1`
19869 fi
19870
19871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19872 done
19873 case $ac_lo in
19874 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
19875 '') if test "$ac_cv_type_unsigned_long" = yes; then
19876      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19878 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
19879 See \`config.log' for more details." >&5
19880 $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
19881 See \`config.log' for more details." >&2;}
19882    { (exit 77); exit 77; }; }; }
19883    else
19884      ac_cv_sizeof_unsigned_long=0
19885    fi ;;
19886 esac
19887 else
19888   cat >conftest.$ac_ext <<_ACEOF
19889 /* confdefs.h.  */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h.  */
19894 $ac_includes_default
19895 static long int longval () { return (long int) (sizeof (unsigned long)); }
19896 static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
19897 #include <stdio.h>
19898 #include <stdlib.h>
19899 int
19900 main ()
19901 {
19902
19903   FILE *f = fopen ("conftest.val", "w");
19904   if (! f)
19905     return 1;
19906   if (((long int) (sizeof (unsigned long))) < 0)
19907     {
19908       long int i = longval ();
19909       if (i != ((long int) (sizeof (unsigned long))))
19910         return 1;
19911       fprintf (f, "%ld", i);
19912     }
19913   else
19914     {
19915       unsigned long int i = ulongval ();
19916       if (i != ((long int) (sizeof (unsigned long))))
19917         return 1;
19918       fprintf (f, "%lu", i);
19919     }
19920   /* Do not output a trailing newline, as this causes \r\n confusion
19921      on some platforms.  */
19922   return ferror (f) || fclose (f) != 0;
19923
19924   ;
19925   return 0;
19926 }
19927 _ACEOF
19928 rm -f conftest$ac_exeext
19929 if { (ac_try="$ac_link"
19930 case "(($ac_try" in
19931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932   *) ac_try_echo=$ac_try;;
19933 esac
19934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19935 $as_echo "$ac_try_echo") >&5
19936   (eval "$ac_link") 2>&5
19937   ac_status=$?
19938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19940   { (case "(($ac_try" in
19941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942   *) ac_try_echo=$ac_try;;
19943 esac
19944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19945 $as_echo "$ac_try_echo") >&5
19946   (eval "$ac_try") 2>&5
19947   ac_status=$?
19948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949   (exit $ac_status); }; }; then
19950   ac_cv_sizeof_unsigned_long=`cat conftest.val`
19951 else
19952   $as_echo "$as_me: program exited with status $ac_status" >&5
19953 $as_echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19955
19956 ( exit $ac_status )
19957 if test "$ac_cv_type_unsigned_long" = yes; then
19958      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19960 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
19961 See \`config.log' for more details." >&5
19962 $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
19963 See \`config.log' for more details." >&2;}
19964    { (exit 77); exit 77; }; }; }
19965    else
19966      ac_cv_sizeof_unsigned_long=0
19967    fi
19968 fi
19969 rm -rf conftest.dSYM
19970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19971 fi
19972 rm -f conftest.val
19973 fi
19974 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
19975 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
19976
19977
19978
19979 cat >>confdefs.h <<_ACEOF
19980 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
19981 _ACEOF
19982
19983
19984 # The cast to long int works around a bug in the HP C Compiler
19985 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19986 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19987 # This bug is HP SR number 8606223364.
19988 { $as_echo "$as_me:$LINENO: checking size of unsigned long long" >&5
19989 $as_echo_n "checking size of unsigned long long... " >&6; }
19990 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
19991   $as_echo_n "(cached) " >&6
19992 else
19993   if test "$cross_compiling" = yes; then
19994   # Depending upon the size, compute the lo and hi bounds.
19995 cat >conftest.$ac_ext <<_ACEOF
19996 /* confdefs.h.  */
19997 _ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h.  */
20001 $ac_includes_default
20002 int
20003 main ()
20004 {
20005 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= 0)];
20006 test_array [0] = 0
20007
20008   ;
20009   return 0;
20010 }
20011 _ACEOF
20012 rm -f conftest.$ac_objext
20013 if { (ac_try="$ac_compile"
20014 case "(($ac_try" in
20015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016   *) ac_try_echo=$ac_try;;
20017 esac
20018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20019 $as_echo "$ac_try_echo") >&5
20020   (eval "$ac_compile") 2>conftest.er1
20021   ac_status=$?
20022   grep -v '^ *+' conftest.er1 >conftest.err
20023   rm -f conftest.er1
20024   cat conftest.err >&5
20025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); } && {
20027          test -z "$ac_c_werror_flag" ||
20028          test ! -s conftest.err
20029        } && test -s conftest.$ac_objext; then
20030   ac_lo=0 ac_mid=0
20031   while :; do
20032     cat >conftest.$ac_ext <<_ACEOF
20033 /* confdefs.h.  */
20034 _ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h.  */
20038 $ac_includes_default
20039 int
20040 main ()
20041 {
20042 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
20043 test_array [0] = 0
20044
20045   ;
20046   return 0;
20047 }
20048 _ACEOF
20049 rm -f conftest.$ac_objext
20050 if { (ac_try="$ac_compile"
20051 case "(($ac_try" in
20052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20053   *) ac_try_echo=$ac_try;;
20054 esac
20055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20056 $as_echo "$ac_try_echo") >&5
20057   (eval "$ac_compile") 2>conftest.er1
20058   ac_status=$?
20059   grep -v '^ *+' conftest.er1 >conftest.err
20060   rm -f conftest.er1
20061   cat conftest.err >&5
20062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063   (exit $ac_status); } && {
20064          test -z "$ac_c_werror_flag" ||
20065          test ! -s conftest.err
20066        } && test -s conftest.$ac_objext; then
20067   ac_hi=$ac_mid; break
20068 else
20069   $as_echo "$as_me: failed program was:" >&5
20070 sed 's/^/| /' conftest.$ac_ext >&5
20071
20072         ac_lo=`expr $ac_mid + 1`
20073                         if test $ac_lo -le $ac_mid; then
20074                           ac_lo= ac_hi=
20075                           break
20076                         fi
20077                         ac_mid=`expr 2 '*' $ac_mid + 1`
20078 fi
20079
20080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20081   done
20082 else
20083   $as_echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20085
20086         cat >conftest.$ac_ext <<_ACEOF
20087 /* confdefs.h.  */
20088 _ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h.  */
20092 $ac_includes_default
20093 int
20094 main ()
20095 {
20096 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) < 0)];
20097 test_array [0] = 0
20098
20099   ;
20100   return 0;
20101 }
20102 _ACEOF
20103 rm -f conftest.$ac_objext
20104 if { (ac_try="$ac_compile"
20105 case "(($ac_try" in
20106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107   *) ac_try_echo=$ac_try;;
20108 esac
20109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20110 $as_echo "$ac_try_echo") >&5
20111   (eval "$ac_compile") 2>conftest.er1
20112   ac_status=$?
20113   grep -v '^ *+' conftest.er1 >conftest.err
20114   rm -f conftest.er1
20115   cat conftest.err >&5
20116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117   (exit $ac_status); } && {
20118          test -z "$ac_c_werror_flag" ||
20119          test ! -s conftest.err
20120        } && test -s conftest.$ac_objext; then
20121   ac_hi=-1 ac_mid=-1
20122   while :; do
20123     cat >conftest.$ac_ext <<_ACEOF
20124 /* confdefs.h.  */
20125 _ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h.  */
20129 $ac_includes_default
20130 int
20131 main ()
20132 {
20133 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= $ac_mid)];
20134 test_array [0] = 0
20135
20136   ;
20137   return 0;
20138 }
20139 _ACEOF
20140 rm -f conftest.$ac_objext
20141 if { (ac_try="$ac_compile"
20142 case "(($ac_try" in
20143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144   *) ac_try_echo=$ac_try;;
20145 esac
20146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20147 $as_echo "$ac_try_echo") >&5
20148   (eval "$ac_compile") 2>conftest.er1
20149   ac_status=$?
20150   grep -v '^ *+' conftest.er1 >conftest.err
20151   rm -f conftest.er1
20152   cat conftest.err >&5
20153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); } && {
20155          test -z "$ac_c_werror_flag" ||
20156          test ! -s conftest.err
20157        } && test -s conftest.$ac_objext; then
20158   ac_lo=$ac_mid; break
20159 else
20160   $as_echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20162
20163         ac_hi=`expr '(' $ac_mid ')' - 1`
20164                         if test $ac_mid -le $ac_hi; then
20165                           ac_lo= ac_hi=
20166                           break
20167                         fi
20168                         ac_mid=`expr 2 '*' $ac_mid`
20169 fi
20170
20171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20172   done
20173 else
20174   $as_echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20176
20177         ac_lo= ac_hi=
20178 fi
20179
20180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20181 fi
20182
20183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20184 # Binary search between lo and hi bounds.
20185 while test "x$ac_lo" != "x$ac_hi"; do
20186   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20187   cat >conftest.$ac_ext <<_ACEOF
20188 /* confdefs.h.  */
20189 _ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h.  */
20193 $ac_includes_default
20194 int
20195 main ()
20196 {
20197 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
20198 test_array [0] = 0
20199
20200   ;
20201   return 0;
20202 }
20203 _ACEOF
20204 rm -f conftest.$ac_objext
20205 if { (ac_try="$ac_compile"
20206 case "(($ac_try" in
20207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208   *) ac_try_echo=$ac_try;;
20209 esac
20210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20211 $as_echo "$ac_try_echo") >&5
20212   (eval "$ac_compile") 2>conftest.er1
20213   ac_status=$?
20214   grep -v '^ *+' conftest.er1 >conftest.err
20215   rm -f conftest.er1
20216   cat conftest.err >&5
20217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); } && {
20219          test -z "$ac_c_werror_flag" ||
20220          test ! -s conftest.err
20221        } && test -s conftest.$ac_objext; then
20222   ac_hi=$ac_mid
20223 else
20224   $as_echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20226
20227         ac_lo=`expr '(' $ac_mid ')' + 1`
20228 fi
20229
20230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20231 done
20232 case $ac_lo in
20233 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
20234 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
20235      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20237 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
20238 See \`config.log' for more details." >&5
20239 $as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
20240 See \`config.log' for more details." >&2;}
20241    { (exit 77); exit 77; }; }; }
20242    else
20243      ac_cv_sizeof_unsigned_long_long=0
20244    fi ;;
20245 esac
20246 else
20247   cat >conftest.$ac_ext <<_ACEOF
20248 /* confdefs.h.  */
20249 _ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h.  */
20253 $ac_includes_default
20254 static long int longval () { return (long int) (sizeof (unsigned long long)); }
20255 static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long)); }
20256 #include <stdio.h>
20257 #include <stdlib.h>
20258 int
20259 main ()
20260 {
20261
20262   FILE *f = fopen ("conftest.val", "w");
20263   if (! f)
20264     return 1;
20265   if (((long int) (sizeof (unsigned long long))) < 0)
20266     {
20267       long int i = longval ();
20268       if (i != ((long int) (sizeof (unsigned long long))))
20269         return 1;
20270       fprintf (f, "%ld", i);
20271     }
20272   else
20273     {
20274       unsigned long int i = ulongval ();
20275       if (i != ((long int) (sizeof (unsigned long long))))
20276         return 1;
20277       fprintf (f, "%lu", i);
20278     }
20279   /* Do not output a trailing newline, as this causes \r\n confusion
20280      on some platforms.  */
20281   return ferror (f) || fclose (f) != 0;
20282
20283   ;
20284   return 0;
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20294 $as_echo "$ac_try_echo") >&5
20295   (eval "$ac_link") 2>&5
20296   ac_status=$?
20297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20299   { (case "(($ac_try" in
20300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301   *) ac_try_echo=$ac_try;;
20302 esac
20303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20304 $as_echo "$ac_try_echo") >&5
20305   (eval "$ac_try") 2>&5
20306   ac_status=$?
20307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); }; }; then
20309   ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
20310 else
20311   $as_echo "$as_me: program exited with status $ac_status" >&5
20312 $as_echo "$as_me: failed program was:" >&5
20313 sed 's/^/| /' conftest.$ac_ext >&5
20314
20315 ( exit $ac_status )
20316 if test "$ac_cv_type_unsigned_long_long" = yes; then
20317      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20319 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
20320 See \`config.log' for more details." >&5
20321 $as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
20322 See \`config.log' for more details." >&2;}
20323    { (exit 77); exit 77; }; }; }
20324    else
20325      ac_cv_sizeof_unsigned_long_long=0
20326    fi
20327 fi
20328 rm -rf conftest.dSYM
20329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20330 fi
20331 rm -f conftest.val
20332 fi
20333 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
20334 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20335
20336
20337
20338 cat >>confdefs.h <<_ACEOF
20339 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20340 _ACEOF
20341
20342
20343 #
20344
20345
20346 for ac_func in stroul strtoull
20347 do
20348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20349 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20350 $as_echo_n "checking for $ac_func... " >&6; }
20351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20352   $as_echo_n "(cached) " >&6
20353 else
20354   cat >conftest.$ac_ext <<_ACEOF
20355 /* confdefs.h.  */
20356 _ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h.  */
20360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20362 #define $ac_func innocuous_$ac_func
20363
20364 /* System header to define __stub macros and hopefully few prototypes,
20365     which can conflict with char $ac_func (); below.
20366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20367     <limits.h> exists even on freestanding compilers.  */
20368
20369 #ifdef __STDC__
20370 # include <limits.h>
20371 #else
20372 # include <assert.h>
20373 #endif
20374
20375 #undef $ac_func
20376
20377 /* Override any GCC internal prototype to avoid an error.
20378    Use char because int might match the return type of a GCC
20379    builtin and then its argument prototype would still apply.  */
20380 #ifdef __cplusplus
20381 extern "C"
20382 #endif
20383 char $ac_func ();
20384 /* The GNU C library defines this for functions which it implements
20385     to always fail with ENOSYS.  Some functions are actually named
20386     something starting with __ and the normal name is an alias.  */
20387 #if defined __stub_$ac_func || defined __stub___$ac_func
20388 choke me
20389 #endif
20390
20391 int
20392 main ()
20393 {
20394 return $ac_func ();
20395   ;
20396   return 0;
20397 }
20398 _ACEOF
20399 rm -f conftest.$ac_objext conftest$ac_exeext
20400 if { (ac_try="$ac_link"
20401 case "(($ac_try" in
20402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403   *) ac_try_echo=$ac_try;;
20404 esac
20405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20406 $as_echo "$ac_try_echo") >&5
20407   (eval "$ac_link") 2>conftest.er1
20408   ac_status=$?
20409   grep -v '^ *+' conftest.er1 >conftest.err
20410   rm -f conftest.er1
20411   cat conftest.err >&5
20412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); } && {
20414          test -z "$ac_c_werror_flag" ||
20415          test ! -s conftest.err
20416        } && test -s conftest$ac_exeext && {
20417          test "$cross_compiling" = yes ||
20418          $as_test_x conftest$ac_exeext
20419        }; then
20420   eval "$as_ac_var=yes"
20421 else
20422   $as_echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20424
20425         eval "$as_ac_var=no"
20426 fi
20427
20428 rm -rf conftest.dSYM
20429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20430       conftest$ac_exeext conftest.$ac_ext
20431 fi
20432 ac_res=`eval 'as_val=${'$as_ac_var'}
20433                  $as_echo "$as_val"'`
20434                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20435 $as_echo "$ac_res" >&6; }
20436 as_val=`eval 'as_val=${'$as_ac_var'}
20437                  $as_echo "$as_val"'`
20438    if test "x$as_val" = x""yes; then
20439   cat >>confdefs.h <<_ACEOF
20440 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20441 _ACEOF
20442
20443 fi
20444 done
20445
20446
20447
20448 for ac_func in ftello fseeko
20449 do
20450 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20451 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20452 $as_echo_n "checking for $ac_func... " >&6; }
20453 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20454   $as_echo_n "(cached) " >&6
20455 else
20456   cat >conftest.$ac_ext <<_ACEOF
20457 /* confdefs.h.  */
20458 _ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h.  */
20462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20463    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20464 #define $ac_func innocuous_$ac_func
20465
20466 /* System header to define __stub macros and hopefully few prototypes,
20467     which can conflict with char $ac_func (); below.
20468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20469     <limits.h> exists even on freestanding compilers.  */
20470
20471 #ifdef __STDC__
20472 # include <limits.h>
20473 #else
20474 # include <assert.h>
20475 #endif
20476
20477 #undef $ac_func
20478
20479 /* Override any GCC internal prototype to avoid an error.
20480    Use char because int might match the return type of a GCC
20481    builtin and then its argument prototype would still apply.  */
20482 #ifdef __cplusplus
20483 extern "C"
20484 #endif
20485 char $ac_func ();
20486 /* The GNU C library defines this for functions which it implements
20487     to always fail with ENOSYS.  Some functions are actually named
20488     something starting with __ and the normal name is an alias.  */
20489 #if defined __stub_$ac_func || defined __stub___$ac_func
20490 choke me
20491 #endif
20492
20493 int
20494 main ()
20495 {
20496 return $ac_func ();
20497   ;
20498   return 0;
20499 }
20500 _ACEOF
20501 rm -f conftest.$ac_objext conftest$ac_exeext
20502 if { (ac_try="$ac_link"
20503 case "(($ac_try" in
20504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20505   *) ac_try_echo=$ac_try;;
20506 esac
20507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20508 $as_echo "$ac_try_echo") >&5
20509   (eval "$ac_link") 2>conftest.er1
20510   ac_status=$?
20511   grep -v '^ *+' conftest.er1 >conftest.err
20512   rm -f conftest.er1
20513   cat conftest.err >&5
20514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515   (exit $ac_status); } && {
20516          test -z "$ac_c_werror_flag" ||
20517          test ! -s conftest.err
20518        } && test -s conftest$ac_exeext && {
20519          test "$cross_compiling" = yes ||
20520          $as_test_x conftest$ac_exeext
20521        }; then
20522   eval "$as_ac_var=yes"
20523 else
20524   $as_echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20526
20527         eval "$as_ac_var=no"
20528 fi
20529
20530 rm -rf conftest.dSYM
20531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20532       conftest$ac_exeext conftest.$ac_ext
20533 fi
20534 ac_res=`eval 'as_val=${'$as_ac_var'}
20535                  $as_echo "$as_val"'`
20536                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20537 $as_echo "$ac_res" >&6; }
20538 as_val=`eval 'as_val=${'$as_ac_var'}
20539                  $as_echo "$as_val"'`
20540    if test "x$as_val" = x""yes; then
20541   cat >>confdefs.h <<_ACEOF
20542 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20543 _ACEOF
20544
20545 fi
20546 done
20547
20548
20549
20550 for ac_func in ftello64 fseeko64
20551 do
20552 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20553 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20554 $as_echo_n "checking for $ac_func... " >&6; }
20555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20556   $as_echo_n "(cached) " >&6
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20566 #define $ac_func innocuous_$ac_func
20567
20568 /* System header to define __stub macros and hopefully few prototypes,
20569     which can conflict with char $ac_func (); below.
20570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20571     <limits.h> exists even on freestanding compilers.  */
20572
20573 #ifdef __STDC__
20574 # include <limits.h>
20575 #else
20576 # include <assert.h>
20577 #endif
20578
20579 #undef $ac_func
20580
20581 /* Override any GCC internal prototype to avoid an error.
20582    Use char because int might match the return type of a GCC
20583    builtin and then its argument prototype would still apply.  */
20584 #ifdef __cplusplus
20585 extern "C"
20586 #endif
20587 char $ac_func ();
20588 /* The GNU C library defines this for functions which it implements
20589     to always fail with ENOSYS.  Some functions are actually named
20590     something starting with __ and the normal name is an alias.  */
20591 #if defined __stub_$ac_func || defined __stub___$ac_func
20592 choke me
20593 #endif
20594
20595 int
20596 main ()
20597 {
20598 return $ac_func ();
20599   ;
20600   return 0;
20601 }
20602 _ACEOF
20603 rm -f conftest.$ac_objext conftest$ac_exeext
20604 if { (ac_try="$ac_link"
20605 case "(($ac_try" in
20606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20607   *) ac_try_echo=$ac_try;;
20608 esac
20609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20610 $as_echo "$ac_try_echo") >&5
20611   (eval "$ac_link") 2>conftest.er1
20612   ac_status=$?
20613   grep -v '^ *+' conftest.er1 >conftest.err
20614   rm -f conftest.er1
20615   cat conftest.err >&5
20616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); } && {
20618          test -z "$ac_c_werror_flag" ||
20619          test ! -s conftest.err
20620        } && test -s conftest$ac_exeext && {
20621          test "$cross_compiling" = yes ||
20622          $as_test_x conftest$ac_exeext
20623        }; then
20624   eval "$as_ac_var=yes"
20625 else
20626   $as_echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20628
20629         eval "$as_ac_var=no"
20630 fi
20631
20632 rm -rf conftest.dSYM
20633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20634       conftest$ac_exeext conftest.$ac_ext
20635 fi
20636 ac_res=`eval 'as_val=${'$as_ac_var'}
20637                  $as_echo "$as_val"'`
20638                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20639 $as_echo "$ac_res" >&6; }
20640 as_val=`eval 'as_val=${'$as_ac_var'}
20641                  $as_echo "$as_val"'`
20642    if test "x$as_val" = x""yes; then
20643   cat >>confdefs.h <<_ACEOF
20644 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20645 _ACEOF
20646
20647 fi
20648 done
20649
20650
20651
20652 for ac_func in ftell64 fseek64
20653 do
20654 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20655 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20656 $as_echo_n "checking for $ac_func... " >&6; }
20657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20658   $as_echo_n "(cached) " >&6
20659 else
20660   cat >conftest.$ac_ext <<_ACEOF
20661 /* confdefs.h.  */
20662 _ACEOF
20663 cat confdefs.h >>conftest.$ac_ext
20664 cat >>conftest.$ac_ext <<_ACEOF
20665 /* end confdefs.h.  */
20666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20668 #define $ac_func innocuous_$ac_func
20669
20670 /* System header to define __stub macros and hopefully few prototypes,
20671     which can conflict with char $ac_func (); below.
20672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20673     <limits.h> exists even on freestanding compilers.  */
20674
20675 #ifdef __STDC__
20676 # include <limits.h>
20677 #else
20678 # include <assert.h>
20679 #endif
20680
20681 #undef $ac_func
20682
20683 /* Override any GCC internal prototype to avoid an error.
20684    Use char because int might match the return type of a GCC
20685    builtin and then its argument prototype would still apply.  */
20686 #ifdef __cplusplus
20687 extern "C"
20688 #endif
20689 char $ac_func ();
20690 /* The GNU C library defines this for functions which it implements
20691     to always fail with ENOSYS.  Some functions are actually named
20692     something starting with __ and the normal name is an alias.  */
20693 #if defined __stub_$ac_func || defined __stub___$ac_func
20694 choke me
20695 #endif
20696
20697 int
20698 main ()
20699 {
20700 return $ac_func ();
20701   ;
20702   return 0;
20703 }
20704 _ACEOF
20705 rm -f conftest.$ac_objext conftest$ac_exeext
20706 if { (ac_try="$ac_link"
20707 case "(($ac_try" in
20708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709   *) ac_try_echo=$ac_try;;
20710 esac
20711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20712 $as_echo "$ac_try_echo") >&5
20713   (eval "$ac_link") 2>conftest.er1
20714   ac_status=$?
20715   grep -v '^ *+' conftest.er1 >conftest.err
20716   rm -f conftest.er1
20717   cat conftest.err >&5
20718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); } && {
20720          test -z "$ac_c_werror_flag" ||
20721          test ! -s conftest.err
20722        } && test -s conftest$ac_exeext && {
20723          test "$cross_compiling" = yes ||
20724          $as_test_x conftest$ac_exeext
20725        }; then
20726   eval "$as_ac_var=yes"
20727 else
20728   $as_echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20730
20731         eval "$as_ac_var=no"
20732 fi
20733
20734 rm -rf conftest.dSYM
20735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20736       conftest$ac_exeext conftest.$ac_ext
20737 fi
20738 ac_res=`eval 'as_val=${'$as_ac_var'}
20739                  $as_echo "$as_val"'`
20740                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20741 $as_echo "$ac_res" >&6; }
20742 as_val=`eval 'as_val=${'$as_ac_var'}
20743                  $as_echo "$as_val"'`
20744    if test "x$as_val" = x""yes; then
20745   cat >>confdefs.h <<_ACEOF
20746 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20747 _ACEOF
20748
20749 fi
20750 done
20751
20752 #
20753 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
20754 $as_echo_n "checking for off_t... " >&6; }
20755 if test "${ac_cv_type_off_t+set}" = set; then
20756   $as_echo_n "(cached) " >&6
20757 else
20758   ac_cv_type_off_t=no
20759 cat >conftest.$ac_ext <<_ACEOF
20760 /* confdefs.h.  */
20761 _ACEOF
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h.  */
20765 $ac_includes_default
20766 int
20767 main ()
20768 {
20769 if (sizeof (off_t))
20770        return 0;
20771   ;
20772   return 0;
20773 }
20774 _ACEOF
20775 rm -f conftest.$ac_objext
20776 if { (ac_try="$ac_compile"
20777 case "(($ac_try" in
20778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779   *) ac_try_echo=$ac_try;;
20780 esac
20781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20782 $as_echo "$ac_try_echo") >&5
20783   (eval "$ac_compile") 2>conftest.er1
20784   ac_status=$?
20785   grep -v '^ *+' conftest.er1 >conftest.err
20786   rm -f conftest.er1
20787   cat conftest.err >&5
20788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789   (exit $ac_status); } && {
20790          test -z "$ac_c_werror_flag" ||
20791          test ! -s conftest.err
20792        } && test -s conftest.$ac_objext; then
20793   cat >conftest.$ac_ext <<_ACEOF
20794 /* confdefs.h.  */
20795 _ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h.  */
20799 $ac_includes_default
20800 int
20801 main ()
20802 {
20803 if (sizeof ((off_t)))
20804           return 0;
20805   ;
20806   return 0;
20807 }
20808 _ACEOF
20809 rm -f conftest.$ac_objext
20810 if { (ac_try="$ac_compile"
20811 case "(($ac_try" in
20812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813   *) ac_try_echo=$ac_try;;
20814 esac
20815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20816 $as_echo "$ac_try_echo") >&5
20817   (eval "$ac_compile") 2>conftest.er1
20818   ac_status=$?
20819   grep -v '^ *+' conftest.er1 >conftest.err
20820   rm -f conftest.er1
20821   cat conftest.err >&5
20822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); } && {
20824          test -z "$ac_c_werror_flag" ||
20825          test ! -s conftest.err
20826        } && test -s conftest.$ac_objext; then
20827   :
20828 else
20829   $as_echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20831
20832         ac_cv_type_off_t=yes
20833 fi
20834
20835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20836 else
20837   $as_echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20839
20840
20841 fi
20842
20843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20844 fi
20845 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20846 $as_echo "$ac_cv_type_off_t" >&6; }
20847 if test "x$ac_cv_type_off_t" = x""yes; then
20848   :
20849 else
20850
20851 cat >>confdefs.h <<_ACEOF
20852 #define off_t long int
20853 _ACEOF
20854
20855 fi
20856
20857 # The cast to long int works around a bug in the HP C Compiler
20858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20860 # This bug is HP SR number 8606223364.
20861 { $as_echo "$as_me:$LINENO: checking size of fpos_t" >&5
20862 $as_echo_n "checking size of fpos_t... " >&6; }
20863 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
20864   $as_echo_n "(cached) " >&6
20865 else
20866   if test "$cross_compiling" = yes; then
20867   # Depending upon the size, compute the lo and hi bounds.
20868 cat >conftest.$ac_ext <<_ACEOF
20869 /* confdefs.h.  */
20870 _ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h.  */
20874 $ac_includes_default
20875 int
20876 main ()
20877 {
20878 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= 0)];
20879 test_array [0] = 0
20880
20881   ;
20882   return 0;
20883 }
20884 _ACEOF
20885 rm -f conftest.$ac_objext
20886 if { (ac_try="$ac_compile"
20887 case "(($ac_try" in
20888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889   *) ac_try_echo=$ac_try;;
20890 esac
20891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20892 $as_echo "$ac_try_echo") >&5
20893   (eval "$ac_compile") 2>conftest.er1
20894   ac_status=$?
20895   grep -v '^ *+' conftest.er1 >conftest.err
20896   rm -f conftest.er1
20897   cat conftest.err >&5
20898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); } && {
20900          test -z "$ac_c_werror_flag" ||
20901          test ! -s conftest.err
20902        } && test -s conftest.$ac_objext; then
20903   ac_lo=0 ac_mid=0
20904   while :; do
20905     cat >conftest.$ac_ext <<_ACEOF
20906 /* confdefs.h.  */
20907 _ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h.  */
20911 $ac_includes_default
20912 int
20913 main ()
20914 {
20915 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)];
20916 test_array [0] = 0
20917
20918   ;
20919   return 0;
20920 }
20921 _ACEOF
20922 rm -f conftest.$ac_objext
20923 if { (ac_try="$ac_compile"
20924 case "(($ac_try" in
20925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926   *) ac_try_echo=$ac_try;;
20927 esac
20928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20929 $as_echo "$ac_try_echo") >&5
20930   (eval "$ac_compile") 2>conftest.er1
20931   ac_status=$?
20932   grep -v '^ *+' conftest.er1 >conftest.err
20933   rm -f conftest.er1
20934   cat conftest.err >&5
20935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); } && {
20937          test -z "$ac_c_werror_flag" ||
20938          test ! -s conftest.err
20939        } && test -s conftest.$ac_objext; then
20940   ac_hi=$ac_mid; break
20941 else
20942   $as_echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20944
20945         ac_lo=`expr $ac_mid + 1`
20946                         if test $ac_lo -le $ac_mid; then
20947                           ac_lo= ac_hi=
20948                           break
20949                         fi
20950                         ac_mid=`expr 2 '*' $ac_mid + 1`
20951 fi
20952
20953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20954   done
20955 else
20956   $as_echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20958
20959         cat >conftest.$ac_ext <<_ACEOF
20960 /* confdefs.h.  */
20961 _ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h.  */
20965 $ac_includes_default
20966 int
20967 main ()
20968 {
20969 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) < 0)];
20970 test_array [0] = 0
20971
20972   ;
20973   return 0;
20974 }
20975 _ACEOF
20976 rm -f conftest.$ac_objext
20977 if { (ac_try="$ac_compile"
20978 case "(($ac_try" in
20979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980   *) ac_try_echo=$ac_try;;
20981 esac
20982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20983 $as_echo "$ac_try_echo") >&5
20984   (eval "$ac_compile") 2>conftest.er1
20985   ac_status=$?
20986   grep -v '^ *+' conftest.er1 >conftest.err
20987   rm -f conftest.er1
20988   cat conftest.err >&5
20989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); } && {
20991          test -z "$ac_c_werror_flag" ||
20992          test ! -s conftest.err
20993        } && test -s conftest.$ac_objext; then
20994   ac_hi=-1 ac_mid=-1
20995   while :; do
20996     cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h.  */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h.  */
21002 $ac_includes_default
21003 int
21004 main ()
21005 {
21006 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= $ac_mid)];
21007 test_array [0] = 0
21008
21009   ;
21010   return 0;
21011 }
21012 _ACEOF
21013 rm -f conftest.$ac_objext
21014 if { (ac_try="$ac_compile"
21015 case "(($ac_try" in
21016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017   *) ac_try_echo=$ac_try;;
21018 esac
21019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21020 $as_echo "$ac_try_echo") >&5
21021   (eval "$ac_compile") 2>conftest.er1
21022   ac_status=$?
21023   grep -v '^ *+' conftest.er1 >conftest.err
21024   rm -f conftest.er1
21025   cat conftest.err >&5
21026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027   (exit $ac_status); } && {
21028          test -z "$ac_c_werror_flag" ||
21029          test ! -s conftest.err
21030        } && test -s conftest.$ac_objext; then
21031   ac_lo=$ac_mid; break
21032 else
21033   $as_echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21035
21036         ac_hi=`expr '(' $ac_mid ')' - 1`
21037                         if test $ac_mid -le $ac_hi; then
21038                           ac_lo= ac_hi=
21039                           break
21040                         fi
21041                         ac_mid=`expr 2 '*' $ac_mid`
21042 fi
21043
21044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21045   done
21046 else
21047   $as_echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050         ac_lo= ac_hi=
21051 fi
21052
21053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054 fi
21055
21056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21057 # Binary search between lo and hi bounds.
21058 while test "x$ac_lo" != "x$ac_hi"; do
21059   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21060   cat >conftest.$ac_ext <<_ACEOF
21061 /* confdefs.h.  */
21062 _ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h.  */
21066 $ac_includes_default
21067 int
21068 main ()
21069 {
21070 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)];
21071 test_array [0] = 0
21072
21073   ;
21074   return 0;
21075 }
21076 _ACEOF
21077 rm -f conftest.$ac_objext
21078 if { (ac_try="$ac_compile"
21079 case "(($ac_try" in
21080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081   *) ac_try_echo=$ac_try;;
21082 esac
21083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21084 $as_echo "$ac_try_echo") >&5
21085   (eval "$ac_compile") 2>conftest.er1
21086   ac_status=$?
21087   grep -v '^ *+' conftest.er1 >conftest.err
21088   rm -f conftest.er1
21089   cat conftest.err >&5
21090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091   (exit $ac_status); } && {
21092          test -z "$ac_c_werror_flag" ||
21093          test ! -s conftest.err
21094        } && test -s conftest.$ac_objext; then
21095   ac_hi=$ac_mid
21096 else
21097   $as_echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21099
21100         ac_lo=`expr '(' $ac_mid ')' + 1`
21101 fi
21102
21103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21104 done
21105 case $ac_lo in
21106 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
21107 '') if test "$ac_cv_type_fpos_t" = yes; then
21108      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21110 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
21111 See \`config.log' for more details." >&5
21112 $as_echo "$as_me: error: cannot compute sizeof (fpos_t)
21113 See \`config.log' for more details." >&2;}
21114    { (exit 77); exit 77; }; }; }
21115    else
21116      ac_cv_sizeof_fpos_t=0
21117    fi ;;
21118 esac
21119 else
21120   cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h.  */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h.  */
21126 $ac_includes_default
21127 static long int longval () { return (long int) (sizeof (fpos_t)); }
21128 static unsigned long int ulongval () { return (long int) (sizeof (fpos_t)); }
21129 #include <stdio.h>
21130 #include <stdlib.h>
21131 int
21132 main ()
21133 {
21134
21135   FILE *f = fopen ("conftest.val", "w");
21136   if (! f)
21137     return 1;
21138   if (((long int) (sizeof (fpos_t))) < 0)
21139     {
21140       long int i = longval ();
21141       if (i != ((long int) (sizeof (fpos_t))))
21142         return 1;
21143       fprintf (f, "%ld", i);
21144     }
21145   else
21146     {
21147       unsigned long int i = ulongval ();
21148       if (i != ((long int) (sizeof (fpos_t))))
21149         return 1;
21150       fprintf (f, "%lu", i);
21151     }
21152   /* Do not output a trailing newline, as this causes \r\n confusion
21153      on some platforms.  */
21154   return ferror (f) || fclose (f) != 0;
21155
21156   ;
21157   return 0;
21158 }
21159 _ACEOF
21160 rm -f conftest$ac_exeext
21161 if { (ac_try="$ac_link"
21162 case "(($ac_try" in
21163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164   *) ac_try_echo=$ac_try;;
21165 esac
21166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21167 $as_echo "$ac_try_echo") >&5
21168   (eval "$ac_link") 2>&5
21169   ac_status=$?
21170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21172   { (case "(($ac_try" in
21173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174   *) ac_try_echo=$ac_try;;
21175 esac
21176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21177 $as_echo "$ac_try_echo") >&5
21178   (eval "$ac_try") 2>&5
21179   ac_status=$?
21180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181   (exit $ac_status); }; }; then
21182   ac_cv_sizeof_fpos_t=`cat conftest.val`
21183 else
21184   $as_echo "$as_me: program exited with status $ac_status" >&5
21185 $as_echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21187
21188 ( exit $ac_status )
21189 if test "$ac_cv_type_fpos_t" = yes; then
21190      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21192 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
21193 See \`config.log' for more details." >&5
21194 $as_echo "$as_me: error: cannot compute sizeof (fpos_t)
21195 See \`config.log' for more details." >&2;}
21196    { (exit 77); exit 77; }; }; }
21197    else
21198      ac_cv_sizeof_fpos_t=0
21199    fi
21200 fi
21201 rm -rf conftest.dSYM
21202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21203 fi
21204 rm -f conftest.val
21205 fi
21206 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
21207 $as_echo "$ac_cv_sizeof_fpos_t" >&6; }
21208
21209
21210
21211 cat >>confdefs.h <<_ACEOF
21212 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
21213 _ACEOF
21214
21215
21216 #
21217 # struct stat64 and stat64 test:
21218 # version 1:
21219 #AC_CHECK_TYPE(struct stat64,
21220 #               [AC_CHECK_FUNC([stat64],
21221 #                             AC_DEFINE([HAVE_STAT64], [1], [Define if you have the stat64 function]))])
21222 # version 2:
21223 #AC_MSG_CHECKING(for struct stat64)
21224 #AC_CACHE_VAL(sc_cv_type_stat64,
21225 #[AC_TRY_COMPILE([#include <sys/stat.h>],[struct stat64 s;],
21226 #[sc_cv_type_stat64=yes],
21227 #[sc_cv_type_stat64=no])])
21228 #if test $sc_cv_type_stat64 = yes; then
21229 #   AC_MSG_RESULT($sc_cv_type_stat64)
21230 #   AC_CHECK_FUNC([stat64], AC_DEFINE([HAVE_STAT64], [1], [Define if you have the stat64 function]))
21231 #   #AC_DEFINE(HAVE_STAT64, [1], [Define if you have the stat64 function])
21232 #fi
21233 #
21234 #
21235 # Above fails on myosin because storage size of struct 64 is unknown:
21236 #  ssi.c:480: error: storage size of â€˜s1’ isn’t known
21237 #
21238 # On my MacBook OS X 10.6 I get:
21239 #  ssi.c:481: warning: â€˜stat64’ is deprecated (declared at /usr/include/sys/stat.h:465)
21240 #
21241 # So forget about it: we won't use stat64 or define HAVE_STAT64 and
21242 # consequently do no tests here
21243 #
21244
21245
21246
21247 # Add support for the Dmalloc package. If the user runs configure with
21248 # --with-dmalloc, then define WITH_DMALLOC and add -ldmalloc to LIBS.
21249 { $as_echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
21250 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
21251
21252 # Check whether --with-dmalloc was given.
21253 if test "${with_dmalloc+set}" = set; then
21254   withval=$with_dmalloc; if test "$withval" = yes; then
21255   { $as_echo "$as_me:$LINENO: result: yes" >&5
21256 $as_echo "yes" >&6; }
21257
21258 cat >>confdefs.h <<\_ACEOF
21259 #define WITH_DMALLOC 1
21260 _ACEOF
21261
21262   LIBS="$LIBS -ldmalloc"
21263   LDFLAGS="$LDFLAGS -g"
21264 else
21265   { $as_echo "$as_me:$LINENO: result: no" >&5
21266 $as_echo "no" >&6; }
21267 fi
21268 else
21269   { $as_echo "$as_me:$LINENO: result: no" >&5
21270 $as_echo "no" >&6; }
21271 fi
21272
21273
21274
21275
21276 # Check if svnversion is installed
21277 #AC_PATH_PROG([SVNVERSION_BIN], [svnversionFIXME], [no])
21278 ## checking if we build in a subversion WC
21279 #wc_found="no";
21280 #if test "$SVNVERSION_BIN" != "no"; then
21281 #   SVNVERSION=`$SVNVERSION_BIN -n $srcdir`
21282 #   if test $SVNVERSION != "exported";
21283 #   then
21284 #       AC_MSG_NOTICE($SVNVERSION);
21285 #   fi
21286 #fi
21287
21288
21289 # ---   debugging
21290 #
21291 #
21292 #
21293 { $as_echo "$as_me:$LINENO: checking whether to build with debug information" >&5
21294 $as_echo_n "checking whether to build with debug information... " >&6; }
21295 # Check whether --enable-debug was given.
21296 if test "${enable_debug+set}" = set; then
21297   enableval=$enable_debug; debugit="$enableval"
21298 else
21299   debugit=no
21300 fi
21301
21302 { $as_echo "$as_me:$LINENO: result: $debugit" >&5
21303 $as_echo "$debugit" >&6; }
21304
21305 if test x"$debugit" = x"yes"; then
21306     # User variables CFLAGS/CXXFLAGS are used last during compilation and
21307     # can therefore overwrite system settings.
21308     #
21309     # if debugging was requested, add debugging info at the end of
21310     # C[XX]FLAGS, which makes sure previous optimisation flags are
21311     # overwritten (normally C[XX]FLAGS should not be modified as they
21312     # are user variables):
21313     # switch off assert etc
21314     # AC_DEFINE([DEBUG],[],[Debug Mode])
21315     CFLAGS="${CFLAGS} -g -ansi -Wall -O0"
21316     CXXFLAGS="${CXXFLAGS} -g -ansi -Wall -O0"
21317 else
21318     # switch off assert etc
21319
21320 cat >>confdefs.h <<\_ACEOF
21321 #define NDEBUG /**/
21322 _ACEOF
21323
21324     # if no debugging is requested, we make optimisation explicit
21325     AM_CXXFLAGS="${AM_CXXFLAGS} -O3"
21326     AM_CFLAGS="${AM_CFLAGS} -O3"
21327 fi
21328
21329
21330
21331
21332
21333
21334
21335
21336 ac_config_files="$ac_config_files Makefile src/Makefile clustalo.pc Doxyfile src/clustal/Makefile src/hhalign/Makefile src/kmpp/Makefile src/squid/Makefile"
21337
21338 cat >confcache <<\_ACEOF
21339 # This file is a shell script that caches the results of configure
21340 # tests run on this system so they can be shared between configure
21341 # scripts and configure runs, see configure's option --config-cache.
21342 # It is not useful on other systems.  If it contains results you don't
21343 # want to keep, you may remove or edit it.
21344 #
21345 # config.status only pays attention to the cache file if you give it
21346 # the --recheck option to rerun configure.
21347 #
21348 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21349 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21350 # following values.
21351
21352 _ACEOF
21353
21354 # The following way of writing the cache mishandles newlines in values,
21355 # but we know of no workaround that is simple, portable, and efficient.
21356 # So, we kill variables containing newlines.
21357 # Ultrix sh set writes to stderr and can't be redirected directly,
21358 # and sets the high bit in the cache file unless we assign to the vars.
21359 (
21360   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21361     eval ac_val=\$$ac_var
21362     case $ac_val in #(
21363     *${as_nl}*)
21364       case $ac_var in #(
21365       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21366 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21367       esac
21368       case $ac_var in #(
21369       _ | IFS | as_nl) ;; #(
21370       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21371       *) $as_unset $ac_var ;;
21372       esac ;;
21373     esac
21374   done
21375
21376   (set) 2>&1 |
21377     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21378     *${as_nl}ac_space=\ *)
21379       # `set' does not quote correctly, so add quotes (double-quote
21380       # substitution turns \\\\ into \\, and sed turns \\ into \).
21381       sed -n \
21382         "s/'/'\\\\''/g;
21383           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21384       ;; #(
21385     *)
21386       # `set' quotes correctly as required by POSIX, so do not add quotes.
21387       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21388       ;;
21389     esac |
21390     sort
21391 ) |
21392   sed '
21393      /^ac_cv_env_/b end
21394      t clear
21395      :clear
21396      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21397      t end
21398      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21399      :end' >>confcache
21400 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21401   if test -w "$cache_file"; then
21402     test "x$cache_file" != "x/dev/null" &&
21403       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21404 $as_echo "$as_me: updating cache $cache_file" >&6;}
21405     cat confcache >$cache_file
21406   else
21407     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21408 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21409   fi
21410 fi
21411 rm -f confcache
21412
21413 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21414 # Let make expand exec_prefix.
21415 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21416
21417 DEFS=-DHAVE_CONFIG_H
21418
21419 ac_libobjs=
21420 ac_ltlibobjs=
21421 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21422   # 1. Remove the extension, and $U if already installed.
21423   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21424   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21425   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21426   #    will be set to the directory where LIBOBJS objects are built.
21427   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21428   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21429 done
21430 LIBOBJS=$ac_libobjs
21431
21432 LTLIBOBJS=$ac_ltlibobjs
21433
21434
21435 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21436   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21437 Usually this means the macro was only invoked conditionally." >&5
21438 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21439 Usually this means the macro was only invoked conditionally." >&2;}
21440    { (exit 1); exit 1; }; }
21441 fi
21442 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21443   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21444 Usually this means the macro was only invoked conditionally." >&5
21445 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21446 Usually this means the macro was only invoked conditionally." >&2;}
21447    { (exit 1); exit 1; }; }
21448 fi
21449 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21450   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21451 Usually this means the macro was only invoked conditionally." >&5
21452 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21453 Usually this means the macro was only invoked conditionally." >&2;}
21454    { (exit 1); exit 1; }; }
21455 fi
21456 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21457   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21458 Usually this means the macro was only invoked conditionally." >&5
21459 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21460 Usually this means the macro was only invoked conditionally." >&2;}
21461    { (exit 1); exit 1; }; }
21462 fi
21463 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21464   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21465 Usually this means the macro was only invoked conditionally." >&5
21466 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21467 Usually this means the macro was only invoked conditionally." >&2;}
21468    { (exit 1); exit 1; }; }
21469 fi
21470
21471
21472 : ${CONFIG_STATUS=./config.status}
21473 ac_write_fail=0
21474 ac_clean_files_save=$ac_clean_files
21475 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21476 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21477 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21478 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21479 #! $SHELL
21480 # Generated by $as_me.
21481 # Run this file to recreate the current configuration.
21482 # Compiler output produced by configure, useful for debugging
21483 # configure, is in config.log if it exists.
21484
21485 debug=false
21486 ac_cs_recheck=false
21487 ac_cs_silent=false
21488 SHELL=\${CONFIG_SHELL-$SHELL}
21489 _ACEOF
21490
21491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21492 ## --------------------- ##
21493 ## M4sh Initialization.  ##
21494 ## --------------------- ##
21495
21496 # Be more Bourne compatible
21497 DUALCASE=1; export DUALCASE # for MKS sh
21498 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21499   emulate sh
21500   NULLCMD=:
21501   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21502   # is contrary to our usage.  Disable this feature.
21503   alias -g '${1+"$@"}'='"$@"'
21504   setopt NO_GLOB_SUBST
21505 else
21506   case `(set -o) 2>/dev/null` in
21507   *posix*) set -o posix ;;
21508 esac
21509
21510 fi
21511
21512
21513
21514
21515 # PATH needs CR
21516 # Avoid depending upon Character Ranges.
21517 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21518 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21519 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21520 as_cr_digits='0123456789'
21521 as_cr_alnum=$as_cr_Letters$as_cr_digits
21522
21523 as_nl='
21524 '
21525 export as_nl
21526 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21527 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21528 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21529 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21530 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21531   as_echo='printf %s\n'
21532   as_echo_n='printf %s'
21533 else
21534   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21535     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21536     as_echo_n='/usr/ucb/echo -n'
21537   else
21538     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21539     as_echo_n_body='eval
21540       arg=$1;
21541       case $arg in
21542       *"$as_nl"*)
21543         expr "X$arg" : "X\\(.*\\)$as_nl";
21544         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21545       esac;
21546       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21547     '
21548     export as_echo_n_body
21549     as_echo_n='sh -c $as_echo_n_body as_echo'
21550   fi
21551   export as_echo_body
21552   as_echo='sh -c $as_echo_body as_echo'
21553 fi
21554
21555 # The user is always right.
21556 if test "${PATH_SEPARATOR+set}" != set; then
21557   PATH_SEPARATOR=:
21558   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21559     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21560       PATH_SEPARATOR=';'
21561   }
21562 fi
21563
21564 # Support unset when possible.
21565 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21566   as_unset=unset
21567 else
21568   as_unset=false
21569 fi
21570
21571
21572 # IFS
21573 # We need space, tab and new line, in precisely that order.  Quoting is
21574 # there to prevent editors from complaining about space-tab.
21575 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21576 # splitting by setting IFS to empty value.)
21577 IFS=" ""        $as_nl"
21578
21579 # Find who we are.  Look in the path if we contain no directory separator.
21580 case $0 in
21581   *[\\/]* ) as_myself=$0 ;;
21582   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21583 for as_dir in $PATH
21584 do
21585   IFS=$as_save_IFS
21586   test -z "$as_dir" && as_dir=.
21587   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21588 done
21589 IFS=$as_save_IFS
21590
21591      ;;
21592 esac
21593 # We did not find ourselves, most probably we were run as `sh COMMAND'
21594 # in which case we are not to be found in the path.
21595 if test "x$as_myself" = x; then
21596   as_myself=$0
21597 fi
21598 if test ! -f "$as_myself"; then
21599   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21600   { (exit 1); exit 1; }
21601 fi
21602
21603 # Work around bugs in pre-3.0 UWIN ksh.
21604 for as_var in ENV MAIL MAILPATH
21605 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21606 done
21607 PS1='$ '
21608 PS2='> '
21609 PS4='+ '
21610
21611 # NLS nuisances.
21612 LC_ALL=C
21613 export LC_ALL
21614 LANGUAGE=C
21615 export LANGUAGE
21616
21617 # Required to use basename.
21618 if expr a : '\(a\)' >/dev/null 2>&1 &&
21619    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21620   as_expr=expr
21621 else
21622   as_expr=false
21623 fi
21624
21625 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21626   as_basename=basename
21627 else
21628   as_basename=false
21629 fi
21630
21631
21632 # Name of the executable.
21633 as_me=`$as_basename -- "$0" ||
21634 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21635          X"$0" : 'X\(//\)$' \| \
21636          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21637 $as_echo X/"$0" |
21638     sed '/^.*\/\([^/][^/]*\)\/*$/{
21639             s//\1/
21640             q
21641           }
21642           /^X\/\(\/\/\)$/{
21643             s//\1/
21644             q
21645           }
21646           /^X\/\(\/\).*/{
21647             s//\1/
21648             q
21649           }
21650           s/.*/./; q'`
21651
21652 # CDPATH.
21653 $as_unset CDPATH
21654
21655
21656
21657   as_lineno_1=$LINENO
21658   as_lineno_2=$LINENO
21659   test "x$as_lineno_1" != "x$as_lineno_2" &&
21660   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21661
21662   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21663   # uniformly replaced by the line number.  The first 'sed' inserts a
21664   # line-number line after each line using $LINENO; the second 'sed'
21665   # does the real work.  The second script uses 'N' to pair each
21666   # line-number line with the line containing $LINENO, and appends
21667   # trailing '-' during substitution so that $LINENO is not a special
21668   # case at line end.
21669   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21670   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21671   # E. McMahon (1931-1989) for sed's syntax.  :-)
21672   sed -n '
21673     p
21674     /[$]LINENO/=
21675   ' <$as_myself |
21676     sed '
21677       s/[$]LINENO.*/&-/
21678       t lineno
21679       b
21680       :lineno
21681       N
21682       :loop
21683       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21684       t loop
21685       s/-\n.*//
21686     ' >$as_me.lineno &&
21687   chmod +x "$as_me.lineno" ||
21688     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21689    { (exit 1); exit 1; }; }
21690
21691   # Don't try to exec as it changes $[0], causing all sort of problems
21692   # (the dirname of $[0] is not the place where we might find the
21693   # original and so on.  Autoconf is especially sensitive to this).
21694   . "./$as_me.lineno"
21695   # Exit status is that of the last command.
21696   exit
21697 }
21698
21699
21700 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21701   as_dirname=dirname
21702 else
21703   as_dirname=false
21704 fi
21705
21706 ECHO_C= ECHO_N= ECHO_T=
21707 case `echo -n x` in
21708 -n*)
21709   case `echo 'x\c'` in
21710   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21711   *)   ECHO_C='\c';;
21712   esac;;
21713 *)
21714   ECHO_N='-n';;
21715 esac
21716 if expr a : '\(a\)' >/dev/null 2>&1 &&
21717    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21718   as_expr=expr
21719 else
21720   as_expr=false
21721 fi
21722
21723 rm -f conf$$ conf$$.exe conf$$.file
21724 if test -d conf$$.dir; then
21725   rm -f conf$$.dir/conf$$.file
21726 else
21727   rm -f conf$$.dir
21728   mkdir conf$$.dir 2>/dev/null
21729 fi
21730 if (echo >conf$$.file) 2>/dev/null; then
21731   if ln -s conf$$.file conf$$ 2>/dev/null; then
21732     as_ln_s='ln -s'
21733     # ... but there are two gotchas:
21734     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21735     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21736     # In both cases, we have to default to `cp -p'.
21737     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21738       as_ln_s='cp -p'
21739   elif ln conf$$.file conf$$ 2>/dev/null; then
21740     as_ln_s=ln
21741   else
21742     as_ln_s='cp -p'
21743   fi
21744 else
21745   as_ln_s='cp -p'
21746 fi
21747 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21748 rmdir conf$$.dir 2>/dev/null
21749
21750 if mkdir -p . 2>/dev/null; then
21751   as_mkdir_p=:
21752 else
21753   test -d ./-p && rmdir ./-p
21754   as_mkdir_p=false
21755 fi
21756
21757 if test -x / >/dev/null 2>&1; then
21758   as_test_x='test -x'
21759 else
21760   if ls -dL / >/dev/null 2>&1; then
21761     as_ls_L_option=L
21762   else
21763     as_ls_L_option=
21764   fi
21765   as_test_x='
21766     eval sh -c '\''
21767       if test -d "$1"; then
21768         test -d "$1/.";
21769       else
21770         case $1 in
21771         -*)set "./$1";;
21772         esac;
21773         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21774         ???[sx]*):;;*)false;;esac;fi
21775     '\'' sh
21776   '
21777 fi
21778 as_executable_p=$as_test_x
21779
21780 # Sed expression to map a string onto a valid CPP name.
21781 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21782
21783 # Sed expression to map a string onto a valid variable name.
21784 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21785
21786
21787 exec 6>&1
21788
21789 # Save the log message, to keep $[0] and so on meaningful, and to
21790 # report actual input values of CONFIG_FILES etc. instead of their
21791 # values after options handling.
21792 ac_log="
21793 This file was extended by Clustal Omega $as_me 1.0.2, which was
21794 generated by GNU Autoconf 2.63.  Invocation command line was
21795
21796   CONFIG_FILES    = $CONFIG_FILES
21797   CONFIG_HEADERS  = $CONFIG_HEADERS
21798   CONFIG_LINKS    = $CONFIG_LINKS
21799   CONFIG_COMMANDS = $CONFIG_COMMANDS
21800   $ $0 $@
21801
21802 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21803 "
21804
21805 _ACEOF
21806
21807 case $ac_config_files in *"
21808 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21809 esac
21810
21811 case $ac_config_headers in *"
21812 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21813 esac
21814
21815
21816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21817 # Files that config.status was made for.
21818 config_files="$ac_config_files"
21819 config_headers="$ac_config_headers"
21820 config_commands="$ac_config_commands"
21821
21822 _ACEOF
21823
21824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21825 ac_cs_usage="\
21826 \`$as_me' instantiates files from templates according to the
21827 current configuration.
21828
21829 Usage: $0 [OPTION]... [FILE]...
21830
21831   -h, --help       print this help, then exit
21832   -V, --version    print version number and configuration settings, then exit
21833   -q, --quiet, --silent
21834                    do not print progress messages
21835   -d, --debug      don't remove temporary files
21836       --recheck    update $as_me by reconfiguring in the same conditions
21837       --file=FILE[:TEMPLATE]
21838                    instantiate the configuration file FILE
21839       --header=FILE[:TEMPLATE]
21840                    instantiate the configuration header FILE
21841
21842 Configuration files:
21843 $config_files
21844
21845 Configuration headers:
21846 $config_headers
21847
21848 Configuration commands:
21849 $config_commands
21850
21851 Report bugs to <bug-autoconf@gnu.org>."
21852
21853 _ACEOF
21854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21855 ac_cs_version="\\
21856 Clustal Omega config.status 1.0.2
21857 configured by $0, generated by GNU Autoconf 2.63,
21858   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21859
21860 Copyright (C) 2008 Free Software Foundation, Inc.
21861 This config.status script is free software; the Free Software Foundation
21862 gives unlimited permission to copy, distribute and modify it."
21863
21864 ac_pwd='$ac_pwd'
21865 srcdir='$srcdir'
21866 INSTALL='$INSTALL'
21867 MKDIR_P='$MKDIR_P'
21868 AWK='$AWK'
21869 test -n "\$AWK" || AWK=awk
21870 _ACEOF
21871
21872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21873 # The default lists apply if the user does not specify any file.
21874 ac_need_defaults=:
21875 while test $# != 0
21876 do
21877   case $1 in
21878   --*=*)
21879     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21880     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21881     ac_shift=:
21882     ;;
21883   *)
21884     ac_option=$1
21885     ac_optarg=$2
21886     ac_shift=shift
21887     ;;
21888   esac
21889
21890   case $ac_option in
21891   # Handling of the options.
21892   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21893     ac_cs_recheck=: ;;
21894   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21895     $as_echo "$ac_cs_version"; exit ;;
21896   --debug | --debu | --deb | --de | --d | -d )
21897     debug=: ;;
21898   --file | --fil | --fi | --f )
21899     $ac_shift
21900     case $ac_optarg in
21901     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21902     esac
21903     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21904     ac_need_defaults=false;;
21905   --header | --heade | --head | --hea )
21906     $ac_shift
21907     case $ac_optarg in
21908     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21909     esac
21910     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21911     ac_need_defaults=false;;
21912   --he | --h)
21913     # Conflict between --help and --header
21914     { $as_echo "$as_me: error: ambiguous option: $1
21915 Try \`$0 --help' for more information." >&2
21916    { (exit 1); exit 1; }; };;
21917   --help | --hel | -h )
21918     $as_echo "$ac_cs_usage"; exit ;;
21919   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21920   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21921     ac_cs_silent=: ;;
21922
21923   # This is an error.
21924   -*) { $as_echo "$as_me: error: unrecognized option: $1
21925 Try \`$0 --help' for more information." >&2
21926    { (exit 1); exit 1; }; } ;;
21927
21928   *) ac_config_targets="$ac_config_targets $1"
21929      ac_need_defaults=false ;;
21930
21931   esac
21932   shift
21933 done
21934
21935 ac_configure_extra_args=
21936
21937 if $ac_cs_silent; then
21938   exec 6>/dev/null
21939   ac_configure_extra_args="$ac_configure_extra_args --silent"
21940 fi
21941
21942 _ACEOF
21943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21944 if \$ac_cs_recheck; then
21945   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21946   shift
21947   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21948   CONFIG_SHELL='$SHELL'
21949   export CONFIG_SHELL
21950   exec "\$@"
21951 fi
21952
21953 _ACEOF
21954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21955 exec 5>>config.log
21956 {
21957   echo
21958   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21959 ## Running $as_me. ##
21960 _ASBOX
21961   $as_echo "$ac_log"
21962 } >&5
21963
21964 _ACEOF
21965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21966 #
21967 # INIT-COMMANDS
21968 #
21969 PACKAGE="$PACKAGE"
21970 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21971
21972
21973 # The HP-UX ksh and POSIX shell print the target directory to stdout
21974 # if CDPATH is set.
21975 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21976
21977 sed_quote_subst='$sed_quote_subst'
21978 double_quote_subst='$double_quote_subst'
21979 delay_variable_subst='$delay_variable_subst'
21980 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21981 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21982 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21983 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21984 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21985 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21986 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21987 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21988 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21989 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21990 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21991 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21992 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21993 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21994 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21995 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21996 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21997 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21998 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21999 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22000 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22001 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22002 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22003 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22004 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22005 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22006 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22007 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22008 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22009 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22010 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22011 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22012 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22013 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22014 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22015 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22016 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22017 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22018 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22019 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22020 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22021 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22022 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22023 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22024 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
22025 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22026 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22027 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22028 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22029 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22030 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22031 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22032 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22033 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22034 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22035 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22036 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22037 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22038 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22039 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22040 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22041 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22042 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22043 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22044 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22045 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22046 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22047 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22048 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22049 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22050 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22051 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22052 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22053 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22054 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22055 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22056 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22057 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22058 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22059 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22060 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22061 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22062 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22063 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22064 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22065 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22066 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22067 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22068 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22069 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22070 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22071 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22072 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22073 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22074 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22075 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22076 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22077 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22078 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22079 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22080 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22081 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22082 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22083 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22084 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22085 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22086 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22087 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22088 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22089 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22090 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22091 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22092 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22093 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22094 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22095 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22096 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22097 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22098 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
22099 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
22100 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
22101 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
22102 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
22103 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
22104 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22105 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22106 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22107 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22108 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22109 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22110 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22111 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22112 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22113 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22114 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22115 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22116 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22117 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22118 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22119 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22120 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22121 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22122 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22123 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22124 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22125 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22126 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22127 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22128 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22129 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22130 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22131 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22132 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22133 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22134 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22135 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22136 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22137 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22138 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22139 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22140 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22141 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22142 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22143 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22144 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22145 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22146 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22147 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22148 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22149 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22150 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22151
22152 LTCC='$LTCC'
22153 LTCFLAGS='$LTCFLAGS'
22154 compiler='$compiler_DEFAULT'
22155
22156 # Quote evaled strings.
22157 for var in SED \
22158 GREP \
22159 EGREP \
22160 FGREP \
22161 LD \
22162 NM \
22163 LN_S \
22164 lt_SP2NL \
22165 lt_NL2SP \
22166 reload_flag \
22167 OBJDUMP \
22168 deplibs_check_method \
22169 file_magic_cmd \
22170 AR \
22171 AR_FLAGS \
22172 STRIP \
22173 RANLIB \
22174 CC \
22175 CFLAGS \
22176 compiler \
22177 lt_cv_sys_global_symbol_pipe \
22178 lt_cv_sys_global_symbol_to_cdecl \
22179 lt_cv_sys_global_symbol_to_c_name_address \
22180 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22181 SHELL \
22182 ECHO \
22183 lt_prog_compiler_no_builtin_flag \
22184 lt_prog_compiler_wl \
22185 lt_prog_compiler_pic \
22186 lt_prog_compiler_static \
22187 lt_cv_prog_compiler_c_o \
22188 need_locks \
22189 DSYMUTIL \
22190 NMEDIT \
22191 LIPO \
22192 OTOOL \
22193 OTOOL64 \
22194 shrext_cmds \
22195 export_dynamic_flag_spec \
22196 whole_archive_flag_spec \
22197 compiler_needs_object \
22198 with_gnu_ld \
22199 allow_undefined_flag \
22200 no_undefined_flag \
22201 hardcode_libdir_flag_spec \
22202 hardcode_libdir_flag_spec_ld \
22203 hardcode_libdir_separator \
22204 fix_srcfile_path \
22205 exclude_expsyms \
22206 include_expsyms \
22207 file_list_spec \
22208 variables_saved_for_relink \
22209 libname_spec \
22210 library_names_spec \
22211 soname_spec \
22212 finish_eval \
22213 old_striplib \
22214 striplib \
22215 compiler_lib_search_dirs \
22216 predep_objects \
22217 postdep_objects \
22218 predeps \
22219 postdeps \
22220 compiler_lib_search_path \
22221 LD_CXX \
22222 compiler_CXX \
22223 lt_prog_compiler_no_builtin_flag_CXX \
22224 lt_prog_compiler_wl_CXX \
22225 lt_prog_compiler_pic_CXX \
22226 lt_prog_compiler_static_CXX \
22227 lt_cv_prog_compiler_c_o_CXX \
22228 export_dynamic_flag_spec_CXX \
22229 whole_archive_flag_spec_CXX \
22230 compiler_needs_object_CXX \
22231 with_gnu_ld_CXX \
22232 allow_undefined_flag_CXX \
22233 no_undefined_flag_CXX \
22234 hardcode_libdir_flag_spec_CXX \
22235 hardcode_libdir_flag_spec_ld_CXX \
22236 hardcode_libdir_separator_CXX \
22237 fix_srcfile_path_CXX \
22238 exclude_expsyms_CXX \
22239 include_expsyms_CXX \
22240 file_list_spec_CXX \
22241 compiler_lib_search_dirs_CXX \
22242 predep_objects_CXX \
22243 postdep_objects_CXX \
22244 predeps_CXX \
22245 postdeps_CXX \
22246 compiler_lib_search_path_CXX; do
22247     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22248     *[\\\\\\\`\\"\\\$]*)
22249       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22250       ;;
22251     *)
22252       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22253       ;;
22254     esac
22255 done
22256
22257 # Double-quote double-evaled strings.
22258 for var in reload_cmds \
22259 old_postinstall_cmds \
22260 old_postuninstall_cmds \
22261 old_archive_cmds \
22262 extract_expsyms_cmds \
22263 old_archive_from_new_cmds \
22264 old_archive_from_expsyms_cmds \
22265 archive_cmds \
22266 archive_expsym_cmds \
22267 module_cmds \
22268 module_expsym_cmds \
22269 export_symbols_cmds \
22270 prelink_cmds \
22271 postinstall_cmds \
22272 postuninstall_cmds \
22273 finish_cmds \
22274 sys_lib_search_path_spec \
22275 sys_lib_dlsearch_path_spec \
22276 old_archive_cmds_CXX \
22277 old_archive_from_new_cmds_CXX \
22278 old_archive_from_expsyms_cmds_CXX \
22279 archive_cmds_CXX \
22280 archive_expsym_cmds_CXX \
22281 module_cmds_CXX \
22282 module_expsym_cmds_CXX \
22283 export_symbols_cmds_CXX \
22284 prelink_cmds_CXX; do
22285     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22286     *[\\\\\\\`\\"\\\$]*)
22287       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22288       ;;
22289     *)
22290       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22291       ;;
22292     esac
22293 done
22294
22295 # Fix-up fallback echo if it was mangled by the above quoting rules.
22296 case \$lt_ECHO in
22297 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22298   ;;
22299 esac
22300
22301 ac_aux_dir='$ac_aux_dir'
22302 xsi_shell='$xsi_shell'
22303 lt_shell_append='$lt_shell_append'
22304
22305 # See if we are running on zsh, and set the options which allow our
22306 # commands through without removal of \ escapes INIT.
22307 if test -n "\${ZSH_VERSION+set}" ; then
22308    setopt NO_GLOB_SUBST
22309 fi
22310
22311
22312     PACKAGE='$PACKAGE'
22313     VERSION='$VERSION'
22314     TIMESTAMP='$TIMESTAMP'
22315     RM='$RM'
22316     ofile='$ofile'
22317
22318
22319
22320
22321
22322
22323 _ACEOF
22324
22325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22326
22327 # Handling of arguments.
22328 for ac_config_target in $ac_config_targets
22329 do
22330   case $ac_config_target in
22331     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22332     "src/clustal-omega-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/clustal-omega-config.h" ;;
22333     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22334     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22335     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22336     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22337     "clustalo.pc") CONFIG_FILES="$CONFIG_FILES clustalo.pc" ;;
22338     "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
22339     "src/clustal/Makefile") CONFIG_FILES="$CONFIG_FILES src/clustal/Makefile" ;;
22340     "src/hhalign/Makefile") CONFIG_FILES="$CONFIG_FILES src/hhalign/Makefile" ;;
22341     "src/kmpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/kmpp/Makefile" ;;
22342     "src/squid/Makefile") CONFIG_FILES="$CONFIG_FILES src/squid/Makefile" ;;
22343
22344   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22345 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22346    { (exit 1); exit 1; }; };;
22347   esac
22348 done
22349
22350
22351 # If the user did not use the arguments to specify the items to instantiate,
22352 # then the envvar interface is used.  Set only those that are not.
22353 # We use the long form for the default assignment because of an extremely
22354 # bizarre bug on SunOS 4.1.3.
22355 if $ac_need_defaults; then
22356   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22357   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22358   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22359 fi
22360
22361 # Have a temporary directory for convenience.  Make it in the build tree
22362 # simply because there is no reason against having it here, and in addition,
22363 # creating and moving files from /tmp can sometimes cause problems.
22364 # Hook for its removal unless debugging.
22365 # Note that there is a small window in which the directory will not be cleaned:
22366 # after its creation but before its name has been assigned to `$tmp'.
22367 $debug ||
22368 {
22369   tmp=
22370   trap 'exit_status=$?
22371   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22372 ' 0
22373   trap '{ (exit 1); exit 1; }' 1 2 13 15
22374 }
22375 # Create a (secure) tmp directory for tmp files.
22376
22377 {
22378   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22379   test -n "$tmp" && test -d "$tmp"
22380 }  ||
22381 {
22382   tmp=./conf$$-$RANDOM
22383   (umask 077 && mkdir "$tmp")
22384 } ||
22385 {
22386    $as_echo "$as_me: cannot create a temporary directory in ." >&2
22387    { (exit 1); exit 1; }
22388 }
22389
22390 # Set up the scripts for CONFIG_FILES section.
22391 # No need to generate them if there are no CONFIG_FILES.
22392 # This happens for instance with `./config.status config.h'.
22393 if test -n "$CONFIG_FILES"; then
22394
22395
22396 ac_cr='\r'
22397 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22398 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22399   ac_cs_awk_cr='\\r'
22400 else
22401   ac_cs_awk_cr=$ac_cr
22402 fi
22403
22404 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22405 _ACEOF
22406
22407
22408 {
22409   echo "cat >conf$$subs.awk <<_ACEOF" &&
22410   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22411   echo "_ACEOF"
22412 } >conf$$subs.sh ||
22413   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22414 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22415    { (exit 1); exit 1; }; }
22416 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22417 ac_delim='%!_!# '
22418 for ac_last_try in false false false false false :; do
22419   . ./conf$$subs.sh ||
22420     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22421 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22422    { (exit 1); exit 1; }; }
22423
22424   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22425   if test $ac_delim_n = $ac_delim_num; then
22426     break
22427   elif $ac_last_try; then
22428     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22429 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22430    { (exit 1); exit 1; }; }
22431   else
22432     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22433   fi
22434 done
22435 rm -f conf$$subs.sh
22436
22437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22438 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22439 _ACEOF
22440 sed -n '
22441 h
22442 s/^/S["/; s/!.*/"]=/
22443 p
22444 g
22445 s/^[^!]*!//
22446 :repl
22447 t repl
22448 s/'"$ac_delim"'$//
22449 t delim
22450 :nl
22451 h
22452 s/\(.\{148\}\).*/\1/
22453 t more1
22454 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22455 p
22456 n
22457 b repl
22458 :more1
22459 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22460 p
22461 g
22462 s/.\{148\}//
22463 t nl
22464 :delim
22465 h
22466 s/\(.\{148\}\).*/\1/
22467 t more2
22468 s/["\\]/\\&/g; s/^/"/; s/$/"/
22469 p
22470 b
22471 :more2
22472 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22473 p
22474 g
22475 s/.\{148\}//
22476 t delim
22477 ' <conf$$subs.awk | sed '
22478 /^[^""]/{
22479   N
22480   s/\n//
22481 }
22482 ' >>$CONFIG_STATUS || ac_write_fail=1
22483 rm -f conf$$subs.awk
22484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22485 _ACAWK
22486 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22487   for (key in S) S_is_set[key] = 1
22488   FS = "\a"
22489
22490 }
22491 {
22492   line = $ 0
22493   nfields = split(line, field, "@")
22494   substed = 0
22495   len = length(field[1])
22496   for (i = 2; i < nfields; i++) {
22497     key = field[i]
22498     keylen = length(key)
22499     if (S_is_set[key]) {
22500       value = S[key]
22501       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22502       len += length(value) + length(field[++i])
22503       substed = 1
22504     } else
22505       len += 1 + keylen
22506   }
22507
22508   print line
22509 }
22510
22511 _ACAWK
22512 _ACEOF
22513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22514 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22515   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22516 else
22517   cat
22518 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22519   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22520 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22521    { (exit 1); exit 1; }; }
22522 _ACEOF
22523
22524 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22525 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22526 # trailing colons and then remove the whole line if VPATH becomes empty
22527 # (actually we leave an empty line to preserve line numbers).
22528 if test "x$srcdir" = x.; then
22529   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22530 s/:*\$(srcdir):*/:/
22531 s/:*\${srcdir}:*/:/
22532 s/:*@srcdir@:*/:/
22533 s/^\([^=]*=[     ]*\):*/\1/
22534 s/:*$//
22535 s/^[^=]*=[       ]*$//
22536 }'
22537 fi
22538
22539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22540 fi # test -n "$CONFIG_FILES"
22541
22542 # Set up the scripts for CONFIG_HEADERS section.
22543 # No need to generate them if there are no CONFIG_HEADERS.
22544 # This happens for instance with `./config.status Makefile'.
22545 if test -n "$CONFIG_HEADERS"; then
22546 cat >"$tmp/defines.awk" <<\_ACAWK ||
22547 BEGIN {
22548 _ACEOF
22549
22550 # Transform confdefs.h into an awk script `defines.awk', embedded as
22551 # here-document in config.status, that substitutes the proper values into
22552 # config.h.in to produce config.h.
22553
22554 # Create a delimiter string that does not exist in confdefs.h, to ease
22555 # handling of long lines.
22556 ac_delim='%!_!# '
22557 for ac_last_try in false false :; do
22558   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22559   if test -z "$ac_t"; then
22560     break
22561   elif $ac_last_try; then
22562     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22563 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22564    { (exit 1); exit 1; }; }
22565   else
22566     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22567   fi
22568 done
22569
22570 # For the awk script, D is an array of macro values keyed by name,
22571 # likewise P contains macro parameters if any.  Preserve backslash
22572 # newline sequences.
22573
22574 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22575 sed -n '
22576 s/.\{148\}/&'"$ac_delim"'/g
22577 t rset
22578 :rset
22579 s/^[     ]*#[    ]*define[       ][      ]*/ /
22580 t def
22581 d
22582 :def
22583 s/\\$//
22584 t bsnl
22585 s/["\\]/\\&/g
22586 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22587 D["\1"]=" \3"/p
22588 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22589 d
22590 :bsnl
22591 s/["\\]/\\&/g
22592 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22593 D["\1"]=" \3\\\\\\n"\\/p
22594 t cont
22595 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22596 t cont
22597 d
22598 :cont
22599 n
22600 s/.\{148\}/&'"$ac_delim"'/g
22601 t clear
22602 :clear
22603 s/\\$//
22604 t bsnlc
22605 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22606 d
22607 :bsnlc
22608 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22609 b cont
22610 ' <confdefs.h | sed '
22611 s/'"$ac_delim"'/"\\\
22612 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22613
22614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22615   for (key in D) D_is_set[key] = 1
22616   FS = "\a"
22617 }
22618 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22619   line = \$ 0
22620   split(line, arg, " ")
22621   if (arg[1] == "#") {
22622     defundef = arg[2]
22623     mac1 = arg[3]
22624   } else {
22625     defundef = substr(arg[1], 2)
22626     mac1 = arg[2]
22627   }
22628   split(mac1, mac2, "(") #)
22629   macro = mac2[1]
22630   prefix = substr(line, 1, index(line, defundef) - 1)
22631   if (D_is_set[macro]) {
22632     # Preserve the white space surrounding the "#".
22633     print prefix "define", macro P[macro] D[macro]
22634     next
22635   } else {
22636     # Replace #undef with comments.  This is necessary, for example,
22637     # in the case of _POSIX_SOURCE, which is predefined and required
22638     # on some systems where configure will not decide to define it.
22639     if (defundef == "undef") {
22640       print "/*", prefix defundef, macro, "*/"
22641       next
22642     }
22643   }
22644 }
22645 { print }
22646 _ACAWK
22647 _ACEOF
22648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22649   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22650 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22651    { (exit 1); exit 1; }; }
22652 fi # test -n "$CONFIG_HEADERS"
22653
22654
22655 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22656 shift
22657 for ac_tag
22658 do
22659   case $ac_tag in
22660   :[FHLC]) ac_mode=$ac_tag; continue;;
22661   esac
22662   case $ac_mode$ac_tag in
22663   :[FHL]*:*);;
22664   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22665 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22666    { (exit 1); exit 1; }; };;
22667   :[FH]-) ac_tag=-:-;;
22668   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22669   esac
22670   ac_save_IFS=$IFS
22671   IFS=:
22672   set x $ac_tag
22673   IFS=$ac_save_IFS
22674   shift
22675   ac_file=$1
22676   shift
22677
22678   case $ac_mode in
22679   :L) ac_source=$1;;
22680   :[FH])
22681     ac_file_inputs=
22682     for ac_f
22683     do
22684       case $ac_f in
22685       -) ac_f="$tmp/stdin";;
22686       *) # Look for the file first in the build tree, then in the source tree
22687          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22688          # because $ac_f cannot contain `:'.
22689          test -f "$ac_f" ||
22690            case $ac_f in
22691            [\\/$]*) false;;
22692            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22693            esac ||
22694            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22695 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22696    { (exit 1); exit 1; }; };;
22697       esac
22698       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22699       ac_file_inputs="$ac_file_inputs '$ac_f'"
22700     done
22701
22702     # Let's still pretend it is `configure' which instantiates (i.e., don't
22703     # use $as_me), people would be surprised to read:
22704     #    /* config.h.  Generated by config.status.  */
22705     configure_input='Generated from '`
22706           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22707         `' by configure.'
22708     if test x"$ac_file" != x-; then
22709       configure_input="$ac_file.  $configure_input"
22710       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22711 $as_echo "$as_me: creating $ac_file" >&6;}
22712     fi
22713     # Neutralize special characters interpreted by sed in replacement strings.
22714     case $configure_input in #(
22715     *\&* | *\|* | *\\* )
22716        ac_sed_conf_input=`$as_echo "$configure_input" |
22717        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22718     *) ac_sed_conf_input=$configure_input;;
22719     esac
22720
22721     case $ac_tag in
22722     *:-:* | *:-) cat >"$tmp/stdin" \
22723       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22724 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22725    { (exit 1); exit 1; }; } ;;
22726     esac
22727     ;;
22728   esac
22729
22730   ac_dir=`$as_dirname -- "$ac_file" ||
22731 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22732          X"$ac_file" : 'X\(//\)[^/]' \| \
22733          X"$ac_file" : 'X\(//\)$' \| \
22734          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22735 $as_echo X"$ac_file" |
22736     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22737             s//\1/
22738             q
22739           }
22740           /^X\(\/\/\)[^/].*/{
22741             s//\1/
22742             q
22743           }
22744           /^X\(\/\/\)$/{
22745             s//\1/
22746             q
22747           }
22748           /^X\(\/\).*/{
22749             s//\1/
22750             q
22751           }
22752           s/.*/./; q'`
22753   { as_dir="$ac_dir"
22754   case $as_dir in #(
22755   -*) as_dir=./$as_dir;;
22756   esac
22757   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22758     as_dirs=
22759     while :; do
22760       case $as_dir in #(
22761       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22762       *) as_qdir=$as_dir;;
22763       esac
22764       as_dirs="'$as_qdir' $as_dirs"
22765       as_dir=`$as_dirname -- "$as_dir" ||
22766 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22767          X"$as_dir" : 'X\(//\)[^/]' \| \
22768          X"$as_dir" : 'X\(//\)$' \| \
22769          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22770 $as_echo X"$as_dir" |
22771     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22772             s//\1/
22773             q
22774           }
22775           /^X\(\/\/\)[^/].*/{
22776             s//\1/
22777             q
22778           }
22779           /^X\(\/\/\)$/{
22780             s//\1/
22781             q
22782           }
22783           /^X\(\/\).*/{
22784             s//\1/
22785             q
22786           }
22787           s/.*/./; q'`
22788       test -d "$as_dir" && break
22789     done
22790     test -z "$as_dirs" || eval "mkdir $as_dirs"
22791   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22792 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22793    { (exit 1); exit 1; }; }; }
22794   ac_builddir=.
22795
22796 case "$ac_dir" in
22797 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22798 *)
22799   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22800   # A ".." for each directory in $ac_dir_suffix.
22801   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22802   case $ac_top_builddir_sub in
22803   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22804   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22805   esac ;;
22806 esac
22807 ac_abs_top_builddir=$ac_pwd
22808 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22809 # for backward compatibility:
22810 ac_top_builddir=$ac_top_build_prefix
22811
22812 case $srcdir in
22813   .)  # We are building in place.
22814     ac_srcdir=.
22815     ac_top_srcdir=$ac_top_builddir_sub
22816     ac_abs_top_srcdir=$ac_pwd ;;
22817   [\\/]* | ?:[\\/]* )  # Absolute name.
22818     ac_srcdir=$srcdir$ac_dir_suffix;
22819     ac_top_srcdir=$srcdir
22820     ac_abs_top_srcdir=$srcdir ;;
22821   *) # Relative name.
22822     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22823     ac_top_srcdir=$ac_top_build_prefix$srcdir
22824     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22825 esac
22826 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22827
22828
22829   case $ac_mode in
22830   :F)
22831   #
22832   # CONFIG_FILE
22833   #
22834
22835   case $INSTALL in
22836   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22837   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22838   esac
22839   ac_MKDIR_P=$MKDIR_P
22840   case $MKDIR_P in
22841   [\\/$]* | ?:[\\/]* ) ;;
22842   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22843   esac
22844 _ACEOF
22845
22846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22847 # If the template does not know about datarootdir, expand it.
22848 # FIXME: This hack should be removed a few years after 2.60.
22849 ac_datarootdir_hack=; ac_datarootdir_seen=
22850
22851 ac_sed_dataroot='
22852 /datarootdir/ {
22853   p
22854   q
22855 }
22856 /@datadir@/p
22857 /@docdir@/p
22858 /@infodir@/p
22859 /@localedir@/p
22860 /@mandir@/p
22861 '
22862 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22863 *datarootdir*) ac_datarootdir_seen=yes;;
22864 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22865   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22866 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22867 _ACEOF
22868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22869   ac_datarootdir_hack='
22870   s&@datadir@&$datadir&g
22871   s&@docdir@&$docdir&g
22872   s&@infodir@&$infodir&g
22873   s&@localedir@&$localedir&g
22874   s&@mandir@&$mandir&g
22875     s&\\\${datarootdir}&$datarootdir&g' ;;
22876 esac
22877 _ACEOF
22878
22879 # Neutralize VPATH when `$srcdir' = `.'.
22880 # Shell code in configure.ac might set extrasub.
22881 # FIXME: do we really want to maintain this feature?
22882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22883 ac_sed_extra="$ac_vpsub
22884 $extrasub
22885 _ACEOF
22886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22887 :t
22888 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22889 s|@configure_input@|$ac_sed_conf_input|;t t
22890 s&@top_builddir@&$ac_top_builddir_sub&;t t
22891 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22892 s&@srcdir@&$ac_srcdir&;t t
22893 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22894 s&@top_srcdir@&$ac_top_srcdir&;t t
22895 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22896 s&@builddir@&$ac_builddir&;t t
22897 s&@abs_builddir@&$ac_abs_builddir&;t t
22898 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22899 s&@INSTALL@&$ac_INSTALL&;t t
22900 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22901 $ac_datarootdir_hack
22902 "
22903 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22904   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22905 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22906    { (exit 1); exit 1; }; }
22907
22908 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22909   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22910   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22911   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22912 which seems to be undefined.  Please make sure it is defined." >&5
22913 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22914 which seems to be undefined.  Please make sure it is defined." >&2;}
22915
22916   rm -f "$tmp/stdin"
22917   case $ac_file in
22918   -) cat "$tmp/out" && rm -f "$tmp/out";;
22919   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22920   esac \
22921   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22922 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22923    { (exit 1); exit 1; }; }
22924  ;;
22925   :H)
22926   #
22927   # CONFIG_HEADER
22928   #
22929   if test x"$ac_file" != x-; then
22930     {
22931       $as_echo "/* $configure_input  */" \
22932       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22933     } >"$tmp/config.h" \
22934       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22935 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22936    { (exit 1); exit 1; }; }
22937     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22938       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22939 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22940     else
22941       rm -f "$ac_file"
22942       mv "$tmp/config.h" "$ac_file" \
22943         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22944 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22945    { (exit 1); exit 1; }; }
22946     fi
22947   else
22948     $as_echo "/* $configure_input  */" \
22949       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22950       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22951 $as_echo "$as_me: error: could not create -" >&2;}
22952    { (exit 1); exit 1; }; }
22953   fi
22954 # Compute "$ac_file"'s index in $config_headers.
22955 _am_arg="$ac_file"
22956 _am_stamp_count=1
22957 for _am_header in $config_headers :; do
22958   case $_am_header in
22959     $_am_arg | $_am_arg:* )
22960       break ;;
22961     * )
22962       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22963   esac
22964 done
22965 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22966 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22967          X"$_am_arg" : 'X\(//\)[^/]' \| \
22968          X"$_am_arg" : 'X\(//\)$' \| \
22969          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22970 $as_echo X"$_am_arg" |
22971     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22972             s//\1/
22973             q
22974           }
22975           /^X\(\/\/\)[^/].*/{
22976             s//\1/
22977             q
22978           }
22979           /^X\(\/\/\)$/{
22980             s//\1/
22981             q
22982           }
22983           /^X\(\/\).*/{
22984             s//\1/
22985             q
22986           }
22987           s/.*/./; q'`/stamp-h$_am_stamp_count
22988  ;;
22989
22990   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22991 $as_echo "$as_me: executing $ac_file commands" >&6;}
22992  ;;
22993   esac
22994
22995
22996   case $ac_file$ac_mode in
22997     "src/clustal-omega-config.h":C) ac_prefix_conf_OUT=`echo src/clustal-omega-config.h`
22998 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
22999 ac_prefix_conf_PKG=`echo $PACKAGE`
23000 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
23001 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
23002 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
23003 if test ".$ac_prefix_conf_INP" = "."; then
23004    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
23005      case "$ac_file" in
23006         *.h) ac_prefix_conf_INP=$ac_file ;;
23007         *)
23008      esac
23009      test ".$ac_prefix_conf_INP" != "." && break
23010    done
23011 fi
23012 if test ".$ac_prefix_conf_INP" = "."; then
23013    case "$ac_prefix_conf_OUT" in
23014       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
23015       ;;
23016       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
23017       ;;
23018       *) ac_prefix_conf_INP=config.h
23019       ;;
23020    esac
23021 fi
23022 if test -z "$ac_prefix_conf_PKG" ; then
23023    { { $as_echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5
23024 $as_echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;}
23025    { (exit 1); exit 1; }; }
23026 else
23027   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
23028      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
23029   fi fi
23030   { $as_echo "$as_me:$LINENO: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
23031 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
23032   if test -f $ac_prefix_conf_INP ; then
23033     $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
23034     $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
23035     $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
23036     $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
23037     $as_echo "#endif/" >> conftest.prefix
23038     $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
23039     $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
23040     $as_echo "#endif/" >> conftest.prefix
23041     # now executing _script on _DEF input to create _OUT output file
23042     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
23043     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
23044     echo ' ' >>$tmp/pconfig.h
23045     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
23046
23047     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
23048     echo ' ' >>$tmp/pconfig.h
23049     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
23050     echo "#endif" >>$tmp/pconfig.h
23051     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
23052       { $as_echo "$as_me:$LINENO: $ac_prefix_conf_OUT is unchanged" >&5
23053 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
23054     else
23055       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
23056 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23057          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
23058          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
23059          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
23060 $as_echo X"$ac_prefix_conf_OUT" |
23061     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23062             s//\1/
23063             q
23064           }
23065           /^X\(\/\/\)[^/].*/{
23066             s//\1/
23067             q
23068           }
23069           /^X\(\/\/\)$/{
23070             s//\1/
23071             q
23072           }
23073           /^X\(\/\).*/{
23074             s//\1/
23075             q
23076           }
23077           s/.*/./; q'`
23078       { as_dir="$ac_dir"
23079   case $as_dir in #(
23080   -*) as_dir=./$as_dir;;
23081   esac
23082   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23083     as_dirs=
23084     while :; do
23085       case $as_dir in #(
23086       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23087       *) as_qdir=$as_dir;;
23088       esac
23089       as_dirs="'$as_qdir' $as_dirs"
23090       as_dir=`$as_dirname -- "$as_dir" ||
23091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23092          X"$as_dir" : 'X\(//\)[^/]' \| \
23093          X"$as_dir" : 'X\(//\)$' \| \
23094          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23095 $as_echo X"$as_dir" |
23096     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23097             s//\1/
23098             q
23099           }
23100           /^X\(\/\/\)[^/].*/{
23101             s//\1/
23102             q
23103           }
23104           /^X\(\/\/\)$/{
23105             s//\1/
23106             q
23107           }
23108           /^X\(\/\).*/{
23109             s//\1/
23110             q
23111           }
23112           s/.*/./; q'`
23113       test -d "$as_dir" && break
23114     done
23115     test -z "$as_dirs" || eval "mkdir $as_dirs"
23116   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23117 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23118    { (exit 1); exit 1; }; }; }
23119       rm -f "$ac_prefix_conf_OUT"
23120       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
23121     fi
23122     cp conftest.prefix _configs.sed
23123   else
23124     { { $as_echo "$as_me:$LINENO: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5
23125 $as_echo "$as_me: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&2;}
23126    { (exit 1); exit 1; }; }
23127   fi
23128   rm -f conftest.*
23129 fi
23130  ;;
23131     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23132   # Autoconf 2.62 quotes --file arguments for eval, but not when files
23133   # are listed without --file.  Let's play safe and only enable the eval
23134   # if we detect the quoting.
23135   case $CONFIG_FILES in
23136   *\'*) eval set x "$CONFIG_FILES" ;;
23137   *)   set x $CONFIG_FILES ;;
23138   esac
23139   shift
23140   for mf
23141   do
23142     # Strip MF so we end up with the name of the file.
23143     mf=`echo "$mf" | sed -e 's/:.*$//'`
23144     # Check whether this is an Automake generated Makefile or not.
23145     # We used to match only the files named `Makefile.in', but
23146     # some people rename them; so instead we look at the file content.
23147     # Grep'ing the first line is not enough: some people post-process
23148     # each Makefile.in and add a new line on top of each file to say so.
23149     # Grep'ing the whole file is not good either: AIX grep has a line
23150     # limit of 2048, but all sed's we know have understand at least 4000.
23151     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23152       dirpart=`$as_dirname -- "$mf" ||
23153 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23154          X"$mf" : 'X\(//\)[^/]' \| \
23155          X"$mf" : 'X\(//\)$' \| \
23156          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23157 $as_echo X"$mf" |
23158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23159             s//\1/
23160             q
23161           }
23162           /^X\(\/\/\)[^/].*/{
23163             s//\1/
23164             q
23165           }
23166           /^X\(\/\/\)$/{
23167             s//\1/
23168             q
23169           }
23170           /^X\(\/\).*/{
23171             s//\1/
23172             q
23173           }
23174           s/.*/./; q'`
23175     else
23176       continue
23177     fi
23178     # Extract the definition of DEPDIR, am__include, and am__quote
23179     # from the Makefile without running `make'.
23180     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23181     test -z "$DEPDIR" && continue
23182     am__include=`sed -n 's/^am__include = //p' < "$mf"`
23183     test -z "am__include" && continue
23184     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23185     # When using ansi2knr, U may be empty or an underscore; expand it
23186     U=`sed -n 's/^U = //p' < "$mf"`
23187     # Find all dependency output files, they are included files with
23188     # $(DEPDIR) in their names.  We invoke sed twice because it is the
23189     # simplest approach to changing $(DEPDIR) to its actual value in the
23190     # expansion.
23191     for file in `sed -n "
23192       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23193          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23194       # Make sure the directory exists.
23195       test -f "$dirpart/$file" && continue
23196       fdir=`$as_dirname -- "$file" ||
23197 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23198          X"$file" : 'X\(//\)[^/]' \| \
23199          X"$file" : 'X\(//\)$' \| \
23200          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23201 $as_echo X"$file" |
23202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23203             s//\1/
23204             q
23205           }
23206           /^X\(\/\/\)[^/].*/{
23207             s//\1/
23208             q
23209           }
23210           /^X\(\/\/\)$/{
23211             s//\1/
23212             q
23213           }
23214           /^X\(\/\).*/{
23215             s//\1/
23216             q
23217           }
23218           s/.*/./; q'`
23219       { as_dir=$dirpart/$fdir
23220   case $as_dir in #(
23221   -*) as_dir=./$as_dir;;
23222   esac
23223   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23224     as_dirs=
23225     while :; do
23226       case $as_dir in #(
23227       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23228       *) as_qdir=$as_dir;;
23229       esac
23230       as_dirs="'$as_qdir' $as_dirs"
23231       as_dir=`$as_dirname -- "$as_dir" ||
23232 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23233          X"$as_dir" : 'X\(//\)[^/]' \| \
23234          X"$as_dir" : 'X\(//\)$' \| \
23235          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23236 $as_echo X"$as_dir" |
23237     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23238             s//\1/
23239             q
23240           }
23241           /^X\(\/\/\)[^/].*/{
23242             s//\1/
23243             q
23244           }
23245           /^X\(\/\/\)$/{
23246             s//\1/
23247             q
23248           }
23249           /^X\(\/\).*/{
23250             s//\1/
23251             q
23252           }
23253           s/.*/./; q'`
23254       test -d "$as_dir" && break
23255     done
23256     test -z "$as_dirs" || eval "mkdir $as_dirs"
23257   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23258 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23259    { (exit 1); exit 1; }; }; }
23260       # echo "creating $dirpart/$file"
23261       echo '# dummy' > "$dirpart/$file"
23262     done
23263   done
23264 }
23265  ;;
23266     "libtool":C)
23267
23268     # See if we are running on zsh, and set the options which allow our
23269     # commands through without removal of \ escapes.
23270     if test -n "${ZSH_VERSION+set}" ; then
23271       setopt NO_GLOB_SUBST
23272     fi
23273
23274     cfgfile="${ofile}T"
23275     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23276     $RM "$cfgfile"
23277
23278     cat <<_LT_EOF >> "$cfgfile"
23279 #! $SHELL
23280
23281 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23282 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23283 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23284 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23285 #
23286 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23287 #                 2006, 2007, 2008 Free Software Foundation, Inc.
23288 #   Written by Gordon Matzigkeit, 1996
23289 #
23290 #   This file is part of GNU Libtool.
23291 #
23292 # GNU Libtool is free software; you can redistribute it and/or
23293 # modify it under the terms of the GNU General Public License as
23294 # published by the Free Software Foundation; either version 2 of
23295 # the License, or (at your option) any later version.
23296 #
23297 # As a special exception to the GNU General Public License,
23298 # if you distribute this file as part of a program or library that
23299 # is built using GNU Libtool, you may include this file under the
23300 # same distribution terms that you use for the rest of that program.
23301 #
23302 # GNU Libtool is distributed in the hope that it will be useful,
23303 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23304 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23305 # GNU General Public License for more details.
23306 #
23307 # You should have received a copy of the GNU General Public License
23308 # along with GNU Libtool; see the file COPYING.  If not, a copy
23309 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23310 # obtained by writing to the Free Software Foundation, Inc.,
23311 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23312
23313
23314 # The names of the tagged configurations supported by this script.
23315 available_tags="CXX "
23316
23317 # ### BEGIN LIBTOOL CONFIG
23318
23319 # Which release of libtool.m4 was used?
23320 macro_version=$macro_version
23321 macro_revision=$macro_revision
23322
23323 # Whether or not to build shared libraries.
23324 build_libtool_libs=$enable_shared
23325
23326 # Whether or not to build static libraries.
23327 build_old_libs=$enable_static
23328
23329 # What type of objects to build.
23330 pic_mode=$pic_mode
23331
23332 # Whether or not to optimize for fast installation.
23333 fast_install=$enable_fast_install
23334
23335 # The host system.
23336 host_alias=$host_alias
23337 host=$host
23338 host_os=$host_os
23339
23340 # The build system.
23341 build_alias=$build_alias
23342 build=$build
23343 build_os=$build_os
23344
23345 # A sed program that does not truncate output.
23346 SED=$lt_SED
23347
23348 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23349 Xsed="\$SED -e 1s/^X//"
23350
23351 # A grep program that handles long lines.
23352 GREP=$lt_GREP
23353
23354 # An ERE matcher.
23355 EGREP=$lt_EGREP
23356
23357 # A literal string matcher.
23358 FGREP=$lt_FGREP
23359
23360 # A BSD- or MS-compatible name lister.
23361 NM=$lt_NM
23362
23363 # Whether we need soft or hard links.
23364 LN_S=$lt_LN_S
23365
23366 # What is the maximum length of a command?
23367 max_cmd_len=$max_cmd_len
23368
23369 # Object file suffix (normally "o").
23370 objext=$ac_objext
23371
23372 # Executable file suffix (normally "").
23373 exeext=$exeext
23374
23375 # whether the shell understands "unset".
23376 lt_unset=$lt_unset
23377
23378 # turn spaces into newlines.
23379 SP2NL=$lt_lt_SP2NL
23380
23381 # turn newlines into spaces.
23382 NL2SP=$lt_lt_NL2SP
23383
23384 # How to create reloadable object files.
23385 reload_flag=$lt_reload_flag
23386 reload_cmds=$lt_reload_cmds
23387
23388 # An object symbol dumper.
23389 OBJDUMP=$lt_OBJDUMP
23390
23391 # Method to check whether dependent libraries are shared objects.
23392 deplibs_check_method=$lt_deplibs_check_method
23393
23394 # Command to use when deplibs_check_method == "file_magic".
23395 file_magic_cmd=$lt_file_magic_cmd
23396
23397 # The archiver.
23398 AR=$lt_AR
23399 AR_FLAGS=$lt_AR_FLAGS
23400
23401 # A symbol stripping program.
23402 STRIP=$lt_STRIP
23403
23404 # Commands used to install an old-style archive.
23405 RANLIB=$lt_RANLIB
23406 old_postinstall_cmds=$lt_old_postinstall_cmds
23407 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23408
23409 # A C compiler.
23410 LTCC=$lt_CC
23411
23412 # LTCC compiler flags.
23413 LTCFLAGS=$lt_CFLAGS
23414
23415 # Take the output of nm and produce a listing of raw symbols and C names.
23416 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23417
23418 # Transform the output of nm in a proper C declaration.
23419 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23420
23421 # Transform the output of nm in a C name address pair.
23422 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23423
23424 # Transform the output of nm in a C name address pair when lib prefix is needed.
23425 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23426
23427 # The name of the directory that contains temporary libtool files.
23428 objdir=$objdir
23429
23430 # Shell to use when invoking shell scripts.
23431 SHELL=$lt_SHELL
23432
23433 # An echo program that does not interpret backslashes.
23434 ECHO=$lt_ECHO
23435
23436 # Used to examine libraries when file_magic_cmd begins with "file".
23437 MAGIC_CMD=$MAGIC_CMD
23438
23439 # Must we lock files when doing compilation?
23440 need_locks=$lt_need_locks
23441
23442 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23443 DSYMUTIL=$lt_DSYMUTIL
23444
23445 # Tool to change global to local symbols on Mac OS X.
23446 NMEDIT=$lt_NMEDIT
23447
23448 # Tool to manipulate fat objects and archives on Mac OS X.
23449 LIPO=$lt_LIPO
23450
23451 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23452 OTOOL=$lt_OTOOL
23453
23454 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23455 OTOOL64=$lt_OTOOL64
23456
23457 # Old archive suffix (normally "a").
23458 libext=$libext
23459
23460 # Shared library suffix (normally ".so").
23461 shrext_cmds=$lt_shrext_cmds
23462
23463 # The commands to extract the exported symbol list from a shared archive.
23464 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23465
23466 # Variables whose values should be saved in libtool wrapper scripts and
23467 # restored at link time.
23468 variables_saved_for_relink=$lt_variables_saved_for_relink
23469
23470 # Do we need the "lib" prefix for modules?
23471 need_lib_prefix=$need_lib_prefix
23472
23473 # Do we need a version for libraries?
23474 need_version=$need_version
23475
23476 # Library versioning type.
23477 version_type=$version_type
23478
23479 # Shared library runtime path variable.
23480 runpath_var=$runpath_var
23481
23482 # Shared library path variable.
23483 shlibpath_var=$shlibpath_var
23484
23485 # Is shlibpath searched before the hard-coded library search path?
23486 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23487
23488 # Format of library name prefix.
23489 libname_spec=$lt_libname_spec
23490
23491 # List of archive names.  First name is the real one, the rest are links.
23492 # The last name is the one that the linker finds with -lNAME
23493 library_names_spec=$lt_library_names_spec
23494
23495 # The coded name of the library, if different from the real name.
23496 soname_spec=$lt_soname_spec
23497
23498 # Command to use after installation of a shared archive.
23499 postinstall_cmds=$lt_postinstall_cmds
23500
23501 # Command to use after uninstallation of a shared archive.
23502 postuninstall_cmds=$lt_postuninstall_cmds
23503
23504 # Commands used to finish a libtool library installation in a directory.
23505 finish_cmds=$lt_finish_cmds
23506
23507 # As "finish_cmds", except a single script fragment to be evaled but
23508 # not shown.
23509 finish_eval=$lt_finish_eval
23510
23511 # Whether we should hardcode library paths into libraries.
23512 hardcode_into_libs=$hardcode_into_libs
23513
23514 # Compile-time system search path for libraries.
23515 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23516
23517 # Run-time system search path for libraries.
23518 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23519
23520 # Whether dlopen is supported.
23521 dlopen_support=$enable_dlopen
23522
23523 # Whether dlopen of programs is supported.
23524 dlopen_self=$enable_dlopen_self
23525
23526 # Whether dlopen of statically linked programs is supported.
23527 dlopen_self_static=$enable_dlopen_self_static
23528
23529 # Commands to strip libraries.
23530 old_striplib=$lt_old_striplib
23531 striplib=$lt_striplib
23532
23533
23534 # The linker used to build libraries.
23535 LD=$lt_LD
23536
23537 # Commands used to build an old-style archive.
23538 old_archive_cmds=$lt_old_archive_cmds
23539
23540 # A language specific compiler.
23541 CC=$lt_compiler
23542
23543 # Is the compiler the GNU compiler?
23544 with_gcc=$GCC
23545
23546 # Compiler flag to turn off builtin functions.
23547 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23548
23549 # How to pass a linker flag through the compiler.
23550 wl=$lt_lt_prog_compiler_wl
23551
23552 # Additional compiler flags for building library objects.
23553 pic_flag=$lt_lt_prog_compiler_pic
23554
23555 # Compiler flag to prevent dynamic linking.
23556 link_static_flag=$lt_lt_prog_compiler_static
23557
23558 # Does compiler simultaneously support -c and -o options?
23559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23560
23561 # Whether or not to add -lc for building shared libraries.
23562 build_libtool_need_lc=$archive_cmds_need_lc
23563
23564 # Whether or not to disallow shared libs when runtime libs are static.
23565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23566
23567 # Compiler flag to allow reflexive dlopens.
23568 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23569
23570 # Compiler flag to generate shared objects directly from archives.
23571 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23572
23573 # Whether the compiler copes with passing no objects directly.
23574 compiler_needs_object=$lt_compiler_needs_object
23575
23576 # Create an old-style archive from a shared archive.
23577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23578
23579 # Create a temporary old-style archive to link instead of a shared archive.
23580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23581
23582 # Commands used to build a shared archive.
23583 archive_cmds=$lt_archive_cmds
23584 archive_expsym_cmds=$lt_archive_expsym_cmds
23585
23586 # Commands used to build a loadable module if different from building
23587 # a shared archive.
23588 module_cmds=$lt_module_cmds
23589 module_expsym_cmds=$lt_module_expsym_cmds
23590
23591 # Whether we are building with GNU ld or not.
23592 with_gnu_ld=$lt_with_gnu_ld
23593
23594 # Flag that allows shared libraries with undefined symbols to be built.
23595 allow_undefined_flag=$lt_allow_undefined_flag
23596
23597 # Flag that enforces no undefined symbols.
23598 no_undefined_flag=$lt_no_undefined_flag
23599
23600 # Flag to hardcode \$libdir into a binary during linking.
23601 # This must work even if \$libdir does not exist
23602 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23603
23604 # If ld is used when linking, flag to hardcode \$libdir into a binary
23605 # during linking.  This must work even if \$libdir does not exist.
23606 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23607
23608 # Whether we need a single "-rpath" flag with a separated argument.
23609 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23610
23611 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23612 # DIR into the resulting binary.
23613 hardcode_direct=$hardcode_direct
23614
23615 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23616 # DIR into the resulting binary and the resulting library dependency is
23617 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23618 # library is relocated.
23619 hardcode_direct_absolute=$hardcode_direct_absolute
23620
23621 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23622 # into the resulting binary.
23623 hardcode_minus_L=$hardcode_minus_L
23624
23625 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23626 # into the resulting binary.
23627 hardcode_shlibpath_var=$hardcode_shlibpath_var
23628
23629 # Set to "yes" if building a shared library automatically hardcodes DIR
23630 # into the library and all subsequent libraries and executables linked
23631 # against it.
23632 hardcode_automatic=$hardcode_automatic
23633
23634 # Set to yes if linker adds runtime paths of dependent libraries
23635 # to runtime path list.
23636 inherit_rpath=$inherit_rpath
23637
23638 # Whether libtool must link a program against all its dependency libraries.
23639 link_all_deplibs=$link_all_deplibs
23640
23641 # Fix the shell variable \$srcfile for the compiler.
23642 fix_srcfile_path=$lt_fix_srcfile_path
23643
23644 # Set to "yes" if exported symbols are required.
23645 always_export_symbols=$always_export_symbols
23646
23647 # The commands to list exported symbols.
23648 export_symbols_cmds=$lt_export_symbols_cmds
23649
23650 # Symbols that should not be listed in the preloaded symbols.
23651 exclude_expsyms=$lt_exclude_expsyms
23652
23653 # Symbols that must always be exported.
23654 include_expsyms=$lt_include_expsyms
23655
23656 # Commands necessary for linking programs (against libraries) with templates.
23657 prelink_cmds=$lt_prelink_cmds
23658
23659 # Specify filename containing input files.
23660 file_list_spec=$lt_file_list_spec
23661
23662 # How to hardcode a shared library path into an executable.
23663 hardcode_action=$hardcode_action
23664
23665 # The directories searched by this compiler when creating a shared library.
23666 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23667
23668 # Dependencies to place before and after the objects being linked to
23669 # create a shared library.
23670 predep_objects=$lt_predep_objects
23671 postdep_objects=$lt_postdep_objects
23672 predeps=$lt_predeps
23673 postdeps=$lt_postdeps
23674
23675 # The library search path used internally by the compiler when linking
23676 # a shared library.
23677 compiler_lib_search_path=$lt_compiler_lib_search_path
23678
23679 # ### END LIBTOOL CONFIG
23680
23681 _LT_EOF
23682
23683   case $host_os in
23684   aix3*)
23685     cat <<\_LT_EOF >> "$cfgfile"
23686 # AIX sometimes has problems with the GCC collect2 program.  For some
23687 # reason, if we set the COLLECT_NAMES environment variable, the problems
23688 # vanish in a puff of smoke.
23689 if test "X${COLLECT_NAMES+set}" != Xset; then
23690   COLLECT_NAMES=
23691   export COLLECT_NAMES
23692 fi
23693 _LT_EOF
23694     ;;
23695   esac
23696
23697
23698 ltmain="$ac_aux_dir/ltmain.sh"
23699
23700
23701   # We use sed instead of cat because bash on DJGPP gets confused if
23702   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23703   # text mode, it properly converts lines to CR/LF.  This bash problem
23704   # is reportedly fixed, but why not run on old versions too?
23705   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23706     || (rm -f "$cfgfile"; exit 1)
23707
23708   case $xsi_shell in
23709   yes)
23710     cat << \_LT_EOF >> "$cfgfile"
23711
23712 # func_dirname file append nondir_replacement
23713 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23714 # otherwise set result to NONDIR_REPLACEMENT.
23715 func_dirname ()
23716 {
23717   case ${1} in
23718     */*) func_dirname_result="${1%/*}${2}" ;;
23719     *  ) func_dirname_result="${3}" ;;
23720   esac
23721 }
23722
23723 # func_basename file
23724 func_basename ()
23725 {
23726   func_basename_result="${1##*/}"
23727 }
23728
23729 # func_dirname_and_basename file append nondir_replacement
23730 # perform func_basename and func_dirname in a single function
23731 # call:
23732 #   dirname:  Compute the dirname of FILE.  If nonempty,
23733 #             add APPEND to the result, otherwise set result
23734 #             to NONDIR_REPLACEMENT.
23735 #             value returned in "$func_dirname_result"
23736 #   basename: Compute filename of FILE.
23737 #             value retuned in "$func_basename_result"
23738 # Implementation must be kept synchronized with func_dirname
23739 # and func_basename. For efficiency, we do not delegate to
23740 # those functions but instead duplicate the functionality here.
23741 func_dirname_and_basename ()
23742 {
23743   case ${1} in
23744     */*) func_dirname_result="${1%/*}${2}" ;;
23745     *  ) func_dirname_result="${3}" ;;
23746   esac
23747   func_basename_result="${1##*/}"
23748 }
23749
23750 # func_stripname prefix suffix name
23751 # strip PREFIX and SUFFIX off of NAME.
23752 # PREFIX and SUFFIX must not contain globbing or regex special
23753 # characters, hashes, percent signs, but SUFFIX may contain a leading
23754 # dot (in which case that matches only a dot).
23755 func_stripname ()
23756 {
23757   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23758   # positional parameters, so assign one to ordinary parameter first.
23759   func_stripname_result=${3}
23760   func_stripname_result=${func_stripname_result#"${1}"}
23761   func_stripname_result=${func_stripname_result%"${2}"}
23762 }
23763
23764 # func_opt_split
23765 func_opt_split ()
23766 {
23767   func_opt_split_opt=${1%%=*}
23768   func_opt_split_arg=${1#*=}
23769 }
23770
23771 # func_lo2o object
23772 func_lo2o ()
23773 {
23774   case ${1} in
23775     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23776     *)    func_lo2o_result=${1} ;;
23777   esac
23778 }
23779
23780 # func_xform libobj-or-source
23781 func_xform ()
23782 {
23783   func_xform_result=${1%.*}.lo
23784 }
23785
23786 # func_arith arithmetic-term...
23787 func_arith ()
23788 {
23789   func_arith_result=$(( $* ))
23790 }
23791
23792 # func_len string
23793 # STRING may not start with a hyphen.
23794 func_len ()
23795 {
23796   func_len_result=${#1}
23797 }
23798
23799 _LT_EOF
23800     ;;
23801   *) # Bourne compatible functions.
23802     cat << \_LT_EOF >> "$cfgfile"
23803
23804 # func_dirname file append nondir_replacement
23805 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23806 # otherwise set result to NONDIR_REPLACEMENT.
23807 func_dirname ()
23808 {
23809   # Extract subdirectory from the argument.
23810   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23811   if test "X$func_dirname_result" = "X${1}"; then
23812     func_dirname_result="${3}"
23813   else
23814     func_dirname_result="$func_dirname_result${2}"
23815   fi
23816 }
23817
23818 # func_basename file
23819 func_basename ()
23820 {
23821   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23822 }
23823
23824
23825 # func_stripname prefix suffix name
23826 # strip PREFIX and SUFFIX off of NAME.
23827 # PREFIX and SUFFIX must not contain globbing or regex special
23828 # characters, hashes, percent signs, but SUFFIX may contain a leading
23829 # dot (in which case that matches only a dot).
23830 # func_strip_suffix prefix name
23831 func_stripname ()
23832 {
23833   case ${2} in
23834     .*) func_stripname_result=`$ECHO "X${3}" \
23835            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23836     *)  func_stripname_result=`$ECHO "X${3}" \
23837            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23838   esac
23839 }
23840
23841 # sed scripts:
23842 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23843 my_sed_long_arg='1s/^-[^=]*=//'
23844
23845 # func_opt_split
23846 func_opt_split ()
23847 {
23848   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23849   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23850 }
23851
23852 # func_lo2o object
23853 func_lo2o ()
23854 {
23855   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23856 }
23857
23858 # func_xform libobj-or-source
23859 func_xform ()
23860 {
23861   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23862 }
23863
23864 # func_arith arithmetic-term...
23865 func_arith ()
23866 {
23867   func_arith_result=`expr "$@"`
23868 }
23869
23870 # func_len string
23871 # STRING may not start with a hyphen.
23872 func_len ()
23873 {
23874   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23875 }
23876
23877 _LT_EOF
23878 esac
23879
23880 case $lt_shell_append in
23881   yes)
23882     cat << \_LT_EOF >> "$cfgfile"
23883
23884 # func_append var value
23885 # Append VALUE to the end of shell variable VAR.
23886 func_append ()
23887 {
23888   eval "$1+=\$2"
23889 }
23890 _LT_EOF
23891     ;;
23892   *)
23893     cat << \_LT_EOF >> "$cfgfile"
23894
23895 # func_append var value
23896 # Append VALUE to the end of shell variable VAR.
23897 func_append ()
23898 {
23899   eval "$1=\$$1\$2"
23900 }
23901
23902 _LT_EOF
23903     ;;
23904   esac
23905
23906
23907   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23908     || (rm -f "$cfgfile"; exit 1)
23909
23910   mv -f "$cfgfile" "$ofile" ||
23911     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23912   chmod +x "$ofile"
23913
23914
23915     cat <<_LT_EOF >> "$ofile"
23916
23917 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23918
23919 # The linker used to build libraries.
23920 LD=$lt_LD_CXX
23921
23922 # Commands used to build an old-style archive.
23923 old_archive_cmds=$lt_old_archive_cmds_CXX
23924
23925 # A language specific compiler.
23926 CC=$lt_compiler_CXX
23927
23928 # Is the compiler the GNU compiler?
23929 with_gcc=$GCC_CXX
23930
23931 # Compiler flag to turn off builtin functions.
23932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23933
23934 # How to pass a linker flag through the compiler.
23935 wl=$lt_lt_prog_compiler_wl_CXX
23936
23937 # Additional compiler flags for building library objects.
23938 pic_flag=$lt_lt_prog_compiler_pic_CXX
23939
23940 # Compiler flag to prevent dynamic linking.
23941 link_static_flag=$lt_lt_prog_compiler_static_CXX
23942
23943 # Does compiler simultaneously support -c and -o options?
23944 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23945
23946 # Whether or not to add -lc for building shared libraries.
23947 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23948
23949 # Whether or not to disallow shared libs when runtime libs are static.
23950 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23951
23952 # Compiler flag to allow reflexive dlopens.
23953 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23954
23955 # Compiler flag to generate shared objects directly from archives.
23956 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23957
23958 # Whether the compiler copes with passing no objects directly.
23959 compiler_needs_object=$lt_compiler_needs_object_CXX
23960
23961 # Create an old-style archive from a shared archive.
23962 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23963
23964 # Create a temporary old-style archive to link instead of a shared archive.
23965 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23966
23967 # Commands used to build a shared archive.
23968 archive_cmds=$lt_archive_cmds_CXX
23969 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23970
23971 # Commands used to build a loadable module if different from building
23972 # a shared archive.
23973 module_cmds=$lt_module_cmds_CXX
23974 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23975
23976 # Whether we are building with GNU ld or not.
23977 with_gnu_ld=$lt_with_gnu_ld_CXX
23978
23979 # Flag that allows shared libraries with undefined symbols to be built.
23980 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23981
23982 # Flag that enforces no undefined symbols.
23983 no_undefined_flag=$lt_no_undefined_flag_CXX
23984
23985 # Flag to hardcode \$libdir into a binary during linking.
23986 # This must work even if \$libdir does not exist
23987 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23988
23989 # If ld is used when linking, flag to hardcode \$libdir into a binary
23990 # during linking.  This must work even if \$libdir does not exist.
23991 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
23992
23993 # Whether we need a single "-rpath" flag with a separated argument.
23994 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23995
23996 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23997 # DIR into the resulting binary.
23998 hardcode_direct=$hardcode_direct_CXX
23999
24000 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24001 # DIR into the resulting binary and the resulting library dependency is
24002 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24003 # library is relocated.
24004 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24005
24006 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24007 # into the resulting binary.
24008 hardcode_minus_L=$hardcode_minus_L_CXX
24009
24010 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24011 # into the resulting binary.
24012 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24013
24014 # Set to "yes" if building a shared library automatically hardcodes DIR
24015 # into the library and all subsequent libraries and executables linked
24016 # against it.
24017 hardcode_automatic=$hardcode_automatic_CXX
24018
24019 # Set to yes if linker adds runtime paths of dependent libraries
24020 # to runtime path list.
24021 inherit_rpath=$inherit_rpath_CXX
24022
24023 # Whether libtool must link a program against all its dependency libraries.
24024 link_all_deplibs=$link_all_deplibs_CXX
24025
24026 # Fix the shell variable \$srcfile for the compiler.
24027 fix_srcfile_path=$lt_fix_srcfile_path_CXX
24028
24029 # Set to "yes" if exported symbols are required.
24030 always_export_symbols=$always_export_symbols_CXX
24031
24032 # The commands to list exported symbols.
24033 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24034
24035 # Symbols that should not be listed in the preloaded symbols.
24036 exclude_expsyms=$lt_exclude_expsyms_CXX
24037
24038 # Symbols that must always be exported.
24039 include_expsyms=$lt_include_expsyms_CXX
24040
24041 # Commands necessary for linking programs (against libraries) with templates.
24042 prelink_cmds=$lt_prelink_cmds_CXX
24043
24044 # Specify filename containing input files.
24045 file_list_spec=$lt_file_list_spec_CXX
24046
24047 # How to hardcode a shared library path into an executable.
24048 hardcode_action=$hardcode_action_CXX
24049
24050 # The directories searched by this compiler when creating a shared library.
24051 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24052
24053 # Dependencies to place before and after the objects being linked to
24054 # create a shared library.
24055 predep_objects=$lt_predep_objects_CXX
24056 postdep_objects=$lt_postdep_objects_CXX
24057 predeps=$lt_predeps_CXX
24058 postdeps=$lt_postdeps_CXX
24059
24060 # The library search path used internally by the compiler when linking
24061 # a shared library.
24062 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24063
24064 # ### END LIBTOOL TAG CONFIG: CXX
24065 _LT_EOF
24066
24067  ;;
24068
24069   esac
24070 done # for ac_tag
24071
24072
24073 { (exit 0); exit 0; }
24074 _ACEOF
24075 chmod +x $CONFIG_STATUS
24076 ac_clean_files=$ac_clean_files_save
24077
24078 test $ac_write_fail = 0 ||
24079   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
24080 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
24081    { (exit 1); exit 1; }; }
24082
24083
24084 # configure is writing to config.log, and then calls config.status.
24085 # config.status does its own redirection, appending to config.log.
24086 # Unfortunately, on DOS this fails, as config.log is still kept open
24087 # by configure, so config.status won't be able to write to it; its
24088 # output is simply discarded.  So we exec the FD to /dev/null,
24089 # effectively closing config.log, so it can be properly (re)opened and
24090 # appended to by config.status.  When coming back to configure, we
24091 # need to make the FD available again.
24092 if test "$no_create" != yes; then
24093   ac_cs_success=:
24094   ac_config_status_args=
24095   test "$silent" = yes &&
24096     ac_config_status_args="$ac_config_status_args --quiet"
24097   exec 5>/dev/null
24098   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24099   exec 5>>config.log
24100   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24101   # would make configure fail if this is the last instruction.
24102   $ac_cs_success || { (exit 1); exit 1; }
24103 fi
24104 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24105   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24106 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24107 fi
24108