662aa97bb5924c558dcafffecfaf411e27d4f52e
[platform/upstream/oprofile.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $ECHO works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601   # used as fallback echo
602   shift
603   cat <<_LT_EOF
604 $*
605 _LT_EOF
606   exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614   if test "X${echo_test_string+set}" != Xset; then
615     # find a string as large as possible, as long as the shell can cope with it
616     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620       then
621         break
622       fi
623     done
624   fi
625
626   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628      test "X$echo_testing_string" = "X$echo_test_string"; then
629     :
630   else
631     # The Solaris, AIX, and Digital Unix default echo programs unquote
632     # backslashes.  This makes it impossible to quote backslashes using
633     #   echo "$something" | sed 's/\\/\\\\/g'
634     #
635     # So, first we look for a working echo in the user's PATH.
636
637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638     for dir in $PATH /usr/ucb; do
639       IFS="$lt_save_ifs"
640       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643          test "X$echo_testing_string" = "X$echo_test_string"; then
644         ECHO="$dir/echo"
645         break
646       fi
647     done
648     IFS="$lt_save_ifs"
649
650     if test "X$ECHO" = Xecho; then
651       # We didn't find a better echo, so look for alternatives.
652       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # This shell has a builtin print -r that does the trick.
656         ECHO='print -r'
657       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658            test "X$CONFIG_SHELL" != X/bin/ksh; then
659         # If we have ksh, try running configure again with it.
660         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661         export ORIGINAL_CONFIG_SHELL
662         CONFIG_SHELL=/bin/ksh
663         export CONFIG_SHELL
664         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665       else
666         # Try using printf.
667         ECHO='printf %s\n'
668         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670            test "X$echo_testing_string" = "X$echo_test_string"; then
671           # Cool, printf works
672           :
673         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674              test "X$echo_testing_string" = 'X\t' &&
675              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676              test "X$echo_testing_string" = "X$echo_test_string"; then
677           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678           export CONFIG_SHELL
679           SHELL="$CONFIG_SHELL"
680           export SHELL
681           ECHO="$CONFIG_SHELL $0 --fallback-echo"
682         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683              test "X$echo_testing_string" = 'X\t' &&
684              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685              test "X$echo_testing_string" = "X$echo_test_string"; then
686           ECHO="$CONFIG_SHELL $0 --fallback-echo"
687         else
688           # maybe with a smaller string...
689           prev=:
690
691           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693             then
694               break
695             fi
696             prev="$cmd"
697           done
698
699           if test "$prev" != 'sed 50q "$0"'; then
700             echo_test_string=`eval $prev`
701             export echo_test_string
702             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703           else
704             # Oops.  We lost completely, so just stick with echo.
705             ECHO=echo
706           fi
707         fi
708       fi
709     fi
710   fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 ac_unique_file="libop/op_config.h"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 #  include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 #  include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
786
787 ac_subst_vars='am__EXEEXT_FALSE
788 am__EXEEXT_TRUE
789 LTLIBOBJS
790 LIBOBJS
791 OP_DOCDIR
792 OP_CXXFLAGS
793 OP_CFLAGS
794 CHECK_ACCOUNT_FALSE
795 CHECK_ACCOUNT_TRUE
796 POPT_LIBS
797 BFD_LIBS
798 LIBERTY_LIBS
799 CAT_ENTRY_END
800 CAT_ENTRY_START
801 DOCBOOK_ROOT
802 XSLTPROC_FLAGS
803 XML_CATALOG
804 have_xsltproc_FALSE
805 have_xsltproc_TRUE
806 XSLTPROC
807 have_qt_FALSE
808 have_qt_TRUE
809 UIChelp
810 QT_LIBS
811 QT_CFLAGS
812 QT_VERSION
813 QT_LIB
814 UIC
815 MOC
816 QT_LDFLAGS
817 QT_INCLUDES
818 X_EXTRA_LIBS
819 X_LIBS
820 X_PRE_LIBS
821 X_CFLAGS
822 XMKMF
823 PTRDIFF_T_TYPE
824 SIZE_T_TYPE
825 OP_LDFLAGS
826 OP_CPPFLAGS
827 topdir
828 EXTRA_CFLAGS_MODULE
829 BUILD_JVMPI_AGENT_FALSE
830 BUILD_JVMPI_AGENT_TRUE
831 BUILD_JVMTI_AGENT_FALSE
832 BUILD_JVMTI_AGENT_TRUE
833 JAVA_HOMEDIR
834 PFM_LIB
835 PERF_EVENT_FLAGS
836 BUILD_FOR_PERF_EVENT_FALSE
837 BUILD_FOR_PERF_EVENT_TRUE
838 CXXCPP
839 am__fastdepCXX_FALSE
840 am__fastdepCXX_TRUE
841 CXXDEPMODE
842 ac_ct_CXX
843 CXXFLAGS
844 CXX
845 DATE
846 PKG_CONFIG
847 CPP
848 OTOOL64
849 OTOOL
850 LIPO
851 NMEDIT
852 DSYMUTIL
853 lt_ECHO
854 AR
855 OBJDUMP
856 LN_S
857 NM
858 ac_ct_DUMPBIN
859 DUMPBIN
860 LD
861 FGREP
862 EGREP
863 GREP
864 SED
865 host_os
866 host_vendor
867 host_cpu
868 host
869 build_os
870 build_vendor
871 build_cpu
872 build
873 LIBTOOL
874 RANLIB
875 am__fastdepCC_FALSE
876 am__fastdepCC_TRUE
877 CCDEPMODE
878 AMDEPBACKSLASH
879 AMDEP_FALSE
880 AMDEP_TRUE
881 am__quote
882 am__include
883 DEPDIR
884 OBJEXT
885 EXEEXT
886 ac_ct_CC
887 CPPFLAGS
888 LDFLAGS
889 CFLAGS
890 CC
891 am__untar
892 am__tar
893 AMTAR
894 am__leading_dot
895 SET_MAKE
896 AWK
897 mkdir_p
898 MKDIR_P
899 INSTALL_STRIP_PROGRAM
900 STRIP
901 install_sh
902 MAKEINFO
903 AUTOHEADER
904 AUTOMAKE
905 AUTOCONF
906 ACLOCAL
907 VERSION
908 PACKAGE
909 CYGPATH_W
910 am__isrc
911 INSTALL_DATA
912 INSTALL_SCRIPT
913 INSTALL_PROGRAM
914 target_alias
915 host_alias
916 build_alias
917 LIBS
918 ECHO_T
919 ECHO_N
920 ECHO_C
921 DEFS
922 mandir
923 localedir
924 libdir
925 psdir
926 pdfdir
927 dvidir
928 htmldir
929 infodir
930 docdir
931 oldincludedir
932 includedir
933 localstatedir
934 sharedstatedir
935 sysconfdir
936 datadir
937 datarootdir
938 libexecdir
939 sbindir
940 bindir
941 program_transform_name
942 prefix
943 exec_prefix
944 PACKAGE_BUGREPORT
945 PACKAGE_STRING
946 PACKAGE_VERSION
947 PACKAGE_TARNAME
948 PACKAGE_NAME
949 PATH_SEPARATOR
950 SHELL'
951 ac_subst_files=''
952 ac_user_opts='
953 enable_option_checking
954 enable_dependency_tracking
955 enable_shared
956 enable_static
957 with_pic
958 enable_fast_install
959 with_gnu_ld
960 enable_libtool_lock
961 with_binutils
962 with_binutils_libname
963 with_kernel
964 with_java
965 with_extra_includes
966 with_extra_libs
967 with_target
968 with_x
969 enable_gui
970 with_qt_dir
971 with_qt_includes
972 with_qt_libraries
973 enable_pch
974 enable_gcov
975 enable_werror
976 enable_optimization
977 enable_account_check
978 '
979       ac_precious_vars='build_alias
980 host_alias
981 target_alias
982 CC
983 CFLAGS
984 LDFLAGS
985 LIBS
986 CPPFLAGS
987 CPP
988 PKG_CONFIG
989 CXX
990 CXXFLAGS
991 CCC
992 CXXCPP
993 XMKMF
994 QT_CFLAGS
995 QT_LIBS'
996
997
998 # Initialize some variables set by options.
999 ac_init_help=
1000 ac_init_version=false
1001 ac_unrecognized_opts=
1002 ac_unrecognized_sep=
1003 # The variables have the same names as the options, with
1004 # dashes changed to underlines.
1005 cache_file=/dev/null
1006 exec_prefix=NONE
1007 no_create=
1008 no_recursion=
1009 prefix=NONE
1010 program_prefix=NONE
1011 program_suffix=NONE
1012 program_transform_name=s,x,x,
1013 silent=
1014 site=
1015 srcdir=
1016 verbose=
1017 x_includes=NONE
1018 x_libraries=NONE
1019
1020 # Installation directory options.
1021 # These are left unexpanded so users can "make install exec_prefix=/foo"
1022 # and all the variables that are supposed to be based on exec_prefix
1023 # by default will actually change.
1024 # Use braces instead of parens because sh, perl, etc. also accept them.
1025 # (The list follows the same order as the GNU Coding Standards.)
1026 bindir='${exec_prefix}/bin'
1027 sbindir='${exec_prefix}/sbin'
1028 libexecdir='${exec_prefix}/libexec'
1029 datarootdir='${prefix}/share'
1030 datadir='${datarootdir}'
1031 sysconfdir='${prefix}/etc'
1032 sharedstatedir='${prefix}/com'
1033 localstatedir='${prefix}/var'
1034 includedir='${prefix}/include'
1035 oldincludedir='/usr/include'
1036 docdir='${datarootdir}/doc/${PACKAGE}'
1037 infodir='${datarootdir}/info'
1038 htmldir='${docdir}'
1039 dvidir='${docdir}'
1040 pdfdir='${docdir}'
1041 psdir='${docdir}'
1042 libdir='${exec_prefix}/lib'
1043 localedir='${datarootdir}/locale'
1044 mandir='${datarootdir}/man'
1045
1046 ac_prev=
1047 ac_dashdash=
1048 for ac_option
1049 do
1050   # If the previous option needs an argument, assign it.
1051   if test -n "$ac_prev"; then
1052     eval $ac_prev=\$ac_option
1053     ac_prev=
1054     continue
1055   fi
1056
1057   case $ac_option in
1058   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1059   *)    ac_optarg=yes ;;
1060   esac
1061
1062   # Accept the important Cygnus configure options, so we can diagnose typos.
1063
1064   case $ac_dashdash$ac_option in
1065   --)
1066     ac_dashdash=yes ;;
1067
1068   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1069     ac_prev=bindir ;;
1070   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1071     bindir=$ac_optarg ;;
1072
1073   -build | --build | --buil | --bui | --bu)
1074     ac_prev=build_alias ;;
1075   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1076     build_alias=$ac_optarg ;;
1077
1078   -cache-file | --cache-file | --cache-fil | --cache-fi \
1079   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1080     ac_prev=cache_file ;;
1081   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1082   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1083     cache_file=$ac_optarg ;;
1084
1085   --config-cache | -C)
1086     cache_file=config.cache ;;
1087
1088   -datadir | --datadir | --datadi | --datad)
1089     ac_prev=datadir ;;
1090   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1091     datadir=$ac_optarg ;;
1092
1093   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1094   | --dataroo | --dataro | --datar)
1095     ac_prev=datarootdir ;;
1096   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1097   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1098     datarootdir=$ac_optarg ;;
1099
1100   -disable-* | --disable-*)
1101     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1102     # Reject names that are not valid shell variable names.
1103     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1105    { (exit 1); exit 1; }; }
1106     ac_useropt_orig=$ac_useropt
1107     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108     case $ac_user_opts in
1109       *"
1110 "enable_$ac_useropt"
1111 "*) ;;
1112       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1113          ac_unrecognized_sep=', ';;
1114     esac
1115     eval enable_$ac_useropt=no ;;
1116
1117   -docdir | --docdir | --docdi | --doc | --do)
1118     ac_prev=docdir ;;
1119   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1120     docdir=$ac_optarg ;;
1121
1122   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1123     ac_prev=dvidir ;;
1124   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1125     dvidir=$ac_optarg ;;
1126
1127   -enable-* | --enable-*)
1128     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1129     # Reject names that are not valid shell variable names.
1130     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1132    { (exit 1); exit 1; }; }
1133     ac_useropt_orig=$ac_useropt
1134     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135     case $ac_user_opts in
1136       *"
1137 "enable_$ac_useropt"
1138 "*) ;;
1139       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1140          ac_unrecognized_sep=', ';;
1141     esac
1142     eval enable_$ac_useropt=\$ac_optarg ;;
1143
1144   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1145   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1146   | --exec | --exe | --ex)
1147     ac_prev=exec_prefix ;;
1148   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1149   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1150   | --exec=* | --exe=* | --ex=*)
1151     exec_prefix=$ac_optarg ;;
1152
1153   -gas | --gas | --ga | --g)
1154     # Obsolete; use --with-gas.
1155     with_gas=yes ;;
1156
1157   -help | --help | --hel | --he | -h)
1158     ac_init_help=long ;;
1159   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1160     ac_init_help=recursive ;;
1161   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1162     ac_init_help=short ;;
1163
1164   -host | --host | --hos | --ho)
1165     ac_prev=host_alias ;;
1166   -host=* | --host=* | --hos=* | --ho=*)
1167     host_alias=$ac_optarg ;;
1168
1169   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1170     ac_prev=htmldir ;;
1171   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1172   | --ht=*)
1173     htmldir=$ac_optarg ;;
1174
1175   -includedir | --includedir | --includedi | --included | --include \
1176   | --includ | --inclu | --incl | --inc)
1177     ac_prev=includedir ;;
1178   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1179   | --includ=* | --inclu=* | --incl=* | --inc=*)
1180     includedir=$ac_optarg ;;
1181
1182   -infodir | --infodir | --infodi | --infod | --info | --inf)
1183     ac_prev=infodir ;;
1184   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1185     infodir=$ac_optarg ;;
1186
1187   -libdir | --libdir | --libdi | --libd)
1188     ac_prev=libdir ;;
1189   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1190     libdir=$ac_optarg ;;
1191
1192   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1193   | --libexe | --libex | --libe)
1194     ac_prev=libexecdir ;;
1195   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1196   | --libexe=* | --libex=* | --libe=*)
1197     libexecdir=$ac_optarg ;;
1198
1199   -localedir | --localedir | --localedi | --localed | --locale)
1200     ac_prev=localedir ;;
1201   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1202     localedir=$ac_optarg ;;
1203
1204   -localstatedir | --localstatedir | --localstatedi | --localstated \
1205   | --localstate | --localstat | --localsta | --localst | --locals)
1206     ac_prev=localstatedir ;;
1207   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1208   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1209     localstatedir=$ac_optarg ;;
1210
1211   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1212     ac_prev=mandir ;;
1213   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1214     mandir=$ac_optarg ;;
1215
1216   -nfp | --nfp | --nf)
1217     # Obsolete; use --without-fp.
1218     with_fp=no ;;
1219
1220   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1221   | --no-cr | --no-c | -n)
1222     no_create=yes ;;
1223
1224   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1225   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1226     no_recursion=yes ;;
1227
1228   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1229   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1230   | --oldin | --oldi | --old | --ol | --o)
1231     ac_prev=oldincludedir ;;
1232   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1233   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1234   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1235     oldincludedir=$ac_optarg ;;
1236
1237   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1238     ac_prev=prefix ;;
1239   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1240     prefix=$ac_optarg ;;
1241
1242   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1243   | --program-pre | --program-pr | --program-p)
1244     ac_prev=program_prefix ;;
1245   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1246   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1247     program_prefix=$ac_optarg ;;
1248
1249   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1250   | --program-suf | --program-su | --program-s)
1251     ac_prev=program_suffix ;;
1252   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1253   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1254     program_suffix=$ac_optarg ;;
1255
1256   -program-transform-name | --program-transform-name \
1257   | --program-transform-nam | --program-transform-na \
1258   | --program-transform-n | --program-transform- \
1259   | --program-transform | --program-transfor \
1260   | --program-transfo | --program-transf \
1261   | --program-trans | --program-tran \
1262   | --progr-tra | --program-tr | --program-t)
1263     ac_prev=program_transform_name ;;
1264   -program-transform-name=* | --program-transform-name=* \
1265   | --program-transform-nam=* | --program-transform-na=* \
1266   | --program-transform-n=* | --program-transform-=* \
1267   | --program-transform=* | --program-transfor=* \
1268   | --program-transfo=* | --program-transf=* \
1269   | --program-trans=* | --program-tran=* \
1270   | --progr-tra=* | --program-tr=* | --program-t=*)
1271     program_transform_name=$ac_optarg ;;
1272
1273   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1274     ac_prev=pdfdir ;;
1275   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1276     pdfdir=$ac_optarg ;;
1277
1278   -psdir | --psdir | --psdi | --psd | --ps)
1279     ac_prev=psdir ;;
1280   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1281     psdir=$ac_optarg ;;
1282
1283   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1284   | -silent | --silent | --silen | --sile | --sil)
1285     silent=yes ;;
1286
1287   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1288     ac_prev=sbindir ;;
1289   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1290   | --sbi=* | --sb=*)
1291     sbindir=$ac_optarg ;;
1292
1293   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1294   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1295   | --sharedst | --shareds | --shared | --share | --shar \
1296   | --sha | --sh)
1297     ac_prev=sharedstatedir ;;
1298   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1299   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1300   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1301   | --sha=* | --sh=*)
1302     sharedstatedir=$ac_optarg ;;
1303
1304   -site | --site | --sit)
1305     ac_prev=site ;;
1306   -site=* | --site=* | --sit=*)
1307     site=$ac_optarg ;;
1308
1309   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1310     ac_prev=srcdir ;;
1311   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1312     srcdir=$ac_optarg ;;
1313
1314   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1315   | --syscon | --sysco | --sysc | --sys | --sy)
1316     ac_prev=sysconfdir ;;
1317   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1318   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1319     sysconfdir=$ac_optarg ;;
1320
1321   -target | --target | --targe | --targ | --tar | --ta | --t)
1322     ac_prev=target_alias ;;
1323   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1324     target_alias=$ac_optarg ;;
1325
1326   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1327     verbose=yes ;;
1328
1329   -version | --version | --versio | --versi | --vers | -V)
1330     ac_init_version=: ;;
1331
1332   -with-* | --with-*)
1333     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1334     # Reject names that are not valid shell variable names.
1335     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1336       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1337    { (exit 1); exit 1; }; }
1338     ac_useropt_orig=$ac_useropt
1339     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1340     case $ac_user_opts in
1341       *"
1342 "with_$ac_useropt"
1343 "*) ;;
1344       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1345          ac_unrecognized_sep=', ';;
1346     esac
1347     eval with_$ac_useropt=\$ac_optarg ;;
1348
1349   -without-* | --without-*)
1350     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1351     # Reject names that are not valid shell variable names.
1352     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1354    { (exit 1); exit 1; }; }
1355     ac_useropt_orig=$ac_useropt
1356     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357     case $ac_user_opts in
1358       *"
1359 "with_$ac_useropt"
1360 "*) ;;
1361       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1362          ac_unrecognized_sep=', ';;
1363     esac
1364     eval with_$ac_useropt=no ;;
1365
1366   --x)
1367     # Obsolete; use --with-x.
1368     with_x=yes ;;
1369
1370   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1371   | --x-incl | --x-inc | --x-in | --x-i)
1372     ac_prev=x_includes ;;
1373   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1374   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1375     x_includes=$ac_optarg ;;
1376
1377   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1378   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1379     ac_prev=x_libraries ;;
1380   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1381   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1382     x_libraries=$ac_optarg ;;
1383
1384   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1385 Try \`$0 --help' for more information." >&2
1386    { (exit 1); exit 1; }; }
1387     ;;
1388
1389   *=*)
1390     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1391     # Reject names that are not valid shell variable names.
1392     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1393       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1394    { (exit 1); exit 1; }; }
1395     eval $ac_envvar=\$ac_optarg
1396     export $ac_envvar ;;
1397
1398   *)
1399     # FIXME: should be removed in autoconf 3.0.
1400     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1401     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1402       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1403     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1404     ;;
1405
1406   esac
1407 done
1408
1409 if test -n "$ac_prev"; then
1410   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1411   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1412    { (exit 1); exit 1; }; }
1413 fi
1414
1415 if test -n "$ac_unrecognized_opts"; then
1416   case $enable_option_checking in
1417     no) ;;
1418     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1419    { (exit 1); exit 1; }; } ;;
1420     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1421   esac
1422 fi
1423
1424 # Check all directory arguments for consistency.
1425 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1426                 datadir sysconfdir sharedstatedir localstatedir includedir \
1427                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1428                 libdir localedir mandir
1429 do
1430   eval ac_val=\$$ac_var
1431   # Remove trailing slashes.
1432   case $ac_val in
1433     */ )
1434       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1435       eval $ac_var=\$ac_val;;
1436   esac
1437   # Be sure to have absolute directory names.
1438   case $ac_val in
1439     [\\/$]* | ?:[\\/]* )  continue;;
1440     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1441   esac
1442   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1443    { (exit 1); exit 1; }; }
1444 done
1445
1446 # There might be people who depend on the old broken behavior: `$host'
1447 # used to hold the argument of --host etc.
1448 # FIXME: To remove some day.
1449 build=$build_alias
1450 host=$host_alias
1451 target=$target_alias
1452
1453 # FIXME: To remove some day.
1454 if test "x$host_alias" != x; then
1455   if test "x$build_alias" = x; then
1456     cross_compiling=maybe
1457     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1458     If a cross compiler is detected then cross compile mode will be used." >&2
1459   elif test "x$build_alias" != "x$host_alias"; then
1460     cross_compiling=yes
1461   fi
1462 fi
1463
1464 ac_tool_prefix=
1465 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1466
1467 test "$silent" = yes && exec 6>/dev/null
1468
1469
1470 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1471 ac_ls_di=`ls -di .` &&
1472 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1473   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1474    { (exit 1); exit 1; }; }
1475 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1476   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1477    { (exit 1); exit 1; }; }
1478
1479
1480 # Find the source files, if location was not specified.
1481 if test -z "$srcdir"; then
1482   ac_srcdir_defaulted=yes
1483   # Try the directory containing this script, then the parent directory.
1484   ac_confdir=`$as_dirname -- "$as_myself" ||
1485 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1486          X"$as_myself" : 'X\(//\)[^/]' \| \
1487          X"$as_myself" : 'X\(//\)$' \| \
1488          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1489 $as_echo X"$as_myself" |
1490     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1491             s//\1/
1492             q
1493           }
1494           /^X\(\/\/\)[^/].*/{
1495             s//\1/
1496             q
1497           }
1498           /^X\(\/\/\)$/{
1499             s//\1/
1500             q
1501           }
1502           /^X\(\/\).*/{
1503             s//\1/
1504             q
1505           }
1506           s/.*/./; q'`
1507   srcdir=$ac_confdir
1508   if test ! -r "$srcdir/$ac_unique_file"; then
1509     srcdir=..
1510   fi
1511 else
1512   ac_srcdir_defaulted=no
1513 fi
1514 if test ! -r "$srcdir/$ac_unique_file"; then
1515   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1516   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1517    { (exit 1); exit 1; }; }
1518 fi
1519 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1520 ac_abs_confdir=`(
1521         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1522    { (exit 1); exit 1; }; }
1523         pwd)`
1524 # When building in place, set srcdir=.
1525 if test "$ac_abs_confdir" = "$ac_pwd"; then
1526   srcdir=.
1527 fi
1528 # Remove unnecessary trailing slashes from srcdir.
1529 # Double slashes in file names in object file debugging info
1530 # mess up M-x gdb in Emacs.
1531 case $srcdir in
1532 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1533 esac
1534 for ac_var in $ac_precious_vars; do
1535   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1536   eval ac_env_${ac_var}_value=\$${ac_var}
1537   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1538   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1539 done
1540
1541 #
1542 # Report the --help message.
1543 #
1544 if test "$ac_init_help" = "long"; then
1545   # Omit some internal or obsolete options to make the list less imposing.
1546   # This message is too long to be a string in the A/UX 3.1 sh.
1547   cat <<_ACEOF
1548 \`configure' configures this package to adapt to many kinds of systems.
1549
1550 Usage: $0 [OPTION]... [VAR=VALUE]...
1551
1552 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1553 VAR=VALUE.  See below for descriptions of some of the useful variables.
1554
1555 Defaults for the options are specified in brackets.
1556
1557 Configuration:
1558   -h, --help              display this help and exit
1559       --help=short        display options specific to this package
1560       --help=recursive    display the short help of all the included packages
1561   -V, --version           display version information and exit
1562   -q, --quiet, --silent   do not print \`checking...' messages
1563       --cache-file=FILE   cache test results in FILE [disabled]
1564   -C, --config-cache      alias for \`--cache-file=config.cache'
1565   -n, --no-create         do not create output files
1566       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1567
1568 Installation directories:
1569   --prefix=PREFIX         install architecture-independent files in PREFIX
1570                           [$ac_default_prefix]
1571   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1572                           [PREFIX]
1573
1574 By default, \`make install' will install all the files in
1575 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1576 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1577 for instance \`--prefix=\$HOME'.
1578
1579 For better control, use the options below.
1580
1581 Fine tuning of the installation directories:
1582   --bindir=DIR            user executables [EPREFIX/bin]
1583   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1584   --libexecdir=DIR        program executables [EPREFIX/libexec]
1585   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1586   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1587   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1588   --libdir=DIR            object code libraries [EPREFIX/lib]
1589   --includedir=DIR        C header files [PREFIX/include]
1590   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1591   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1592   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1593   --infodir=DIR           info documentation [DATAROOTDIR/info]
1594   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1595   --mandir=DIR            man documentation [DATAROOTDIR/man]
1596   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1597   --htmldir=DIR           html documentation [DOCDIR]
1598   --dvidir=DIR            dvi documentation [DOCDIR]
1599   --pdfdir=DIR            pdf documentation [DOCDIR]
1600   --psdir=DIR             ps documentation [DOCDIR]
1601 _ACEOF
1602
1603   cat <<\_ACEOF
1604
1605 Program names:
1606   --program-prefix=PREFIX            prepend PREFIX to installed program names
1607   --program-suffix=SUFFIX            append SUFFIX to installed program names
1608   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1609
1610 X features:
1611   --x-includes=DIR    X include files are in DIR
1612   --x-libraries=DIR   X library files are in DIR
1613
1614 System types:
1615   --build=BUILD     configure for building on BUILD [guessed]
1616   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1617 _ACEOF
1618 fi
1619
1620 if test -n "$ac_init_help"; then
1621
1622   cat <<\_ACEOF
1623
1624 Optional Features:
1625   --disable-option-checking  ignore unrecognized --enable/--with options
1626   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1627   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1628   --disable-dependency-tracking  speeds up one-time build
1629   --enable-dependency-tracking   do not reject slow dependency extractors
1630   --enable-shared[=PKGS]  build shared libraries [default=yes]
1631   --enable-static[=PKGS]  build static libraries [default=yes]
1632   --enable-fast-install[=PKGS]
1633                           optimize for fast installation [default=yes]
1634   --disable-libtool-lock  avoid locking (might break parallel builds)
1635   --enable-gui  compile with gui component (qt3|qt4|yes|no),
1636                      if not given or set to yes, gui defaults to qt3
1637   --enable-pch                 enable precompiled header (default is disabled)
1638   --enable-gcov                enable option for gcov coverage testing (default is disabled)
1639   --disable-werror            disable -Werror flag (default is enabled for non-release)
1640   --disable-optimization      disable optimization flags (default is enabled)
1641   --disable-account-check     disable account check (default is enabled)
1642
1643 Optional Packages:
1644   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1645   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1646   --with-pic              try to use only PIC/non-PIC objects [default=use
1647                           both]
1648   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1649   --with-binutils=dir           Path to binutils installation to use
1650   --with-binutils-libname       Lib dir name under binutils installation; [lib]]
1651   --with-kernel=dir       Path to kernel include directory
1652                           (...include/linux/perf_event.h) to use. If this
1653                           option is not specified, configure will look for
1654                           kernel header files in the usual installation
1655                           location for a kernel-headers package --
1656                           /usr/include. Use this option in cross-compile
1657                           enviroments or in situations where the host system
1658                           does not support perf_events but you wish to build
1659                           binaries for a target system that does support
1660                           perf_events. Because of OProfile's use of syscalls,
1661                           be sure that the kernel headers used match the
1662                           architecture of the intended target system.
1663   --with-java=java-home        Path to Java home directory (default is "no"; "yes" will use /usr as Java home)
1664   --with-extra-includes=DIR    add extra include paths
1665   --with-extra-libs=DIR        add extra library paths
1666   --with-target=cell-be   Check BFD support for Cell Broadband Engine SPU profiling
1667   --with-x                use the X Window System
1668   --with-qt-dir           where the root of Qt is installed
1669   --with-qt-includes      where the Qt includes are.
1670   --with-qt-libraries     where the Qt library is installed.
1671
1672 Some influential environment variables:
1673   CC          C compiler command
1674   CFLAGS      C compiler flags
1675   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1676               nonstandard directory <lib dir>
1677   LIBS        libraries to pass to the linker, e.g. -l<library>
1678   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1679               you have headers in a nonstandard directory <include dir>
1680   CPP         C preprocessor
1681   PKG_CONFIG  path to pkg-config utility
1682   CXX         C++ compiler command
1683   CXXFLAGS    C++ compiler flags
1684   CXXCPP      C++ preprocessor
1685   XMKMF       Path to xmkmf, Makefile generator for X Window System
1686   QT_CFLAGS   C compiler flags for QT, overriding pkg-config
1687   QT_LIBS     linker flags for QT, overriding pkg-config
1688
1689 Use these variables to override the choices made by `configure' or to help
1690 it to find libraries and programs with nonstandard names/locations.
1691
1692 _ACEOF
1693 ac_status=$?
1694 fi
1695
1696 if test "$ac_init_help" = "recursive"; then
1697   # If there are subdirs, report their specific --help.
1698   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1699     test -d "$ac_dir" ||
1700       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1701       continue
1702     ac_builddir=.
1703
1704 case "$ac_dir" in
1705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706 *)
1707   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1708   # A ".." for each directory in $ac_dir_suffix.
1709   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710   case $ac_top_builddir_sub in
1711   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1713   esac ;;
1714 esac
1715 ac_abs_top_builddir=$ac_pwd
1716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1717 # for backward compatibility:
1718 ac_top_builddir=$ac_top_build_prefix
1719
1720 case $srcdir in
1721   .)  # We are building in place.
1722     ac_srcdir=.
1723     ac_top_srcdir=$ac_top_builddir_sub
1724     ac_abs_top_srcdir=$ac_pwd ;;
1725   [\\/]* | ?:[\\/]* )  # Absolute name.
1726     ac_srcdir=$srcdir$ac_dir_suffix;
1727     ac_top_srcdir=$srcdir
1728     ac_abs_top_srcdir=$srcdir ;;
1729   *) # Relative name.
1730     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731     ac_top_srcdir=$ac_top_build_prefix$srcdir
1732     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1733 esac
1734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1735
1736     cd "$ac_dir" || { ac_status=$?; continue; }
1737     # Check for guested configure.
1738     if test -f "$ac_srcdir/configure.gnu"; then
1739       echo &&
1740       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1741     elif test -f "$ac_srcdir/configure"; then
1742       echo &&
1743       $SHELL "$ac_srcdir/configure" --help=recursive
1744     else
1745       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1746     fi || ac_status=$?
1747     cd "$ac_pwd" || { ac_status=$?; break; }
1748   done
1749 fi
1750
1751 test -n "$ac_init_help" && exit $ac_status
1752 if $ac_init_version; then
1753   cat <<\_ACEOF
1754 configure
1755 generated by GNU Autoconf 2.63
1756
1757 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1758 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1759 This configure script is free software; the Free Software Foundation
1760 gives unlimited permission to copy, distribute and modify it.
1761 _ACEOF
1762   exit
1763 fi
1764 cat >config.log <<_ACEOF
1765 This file contains any messages produced by compilers while
1766 running configure, to aid debugging if configure makes a mistake.
1767
1768 It was created by $as_me, which was
1769 generated by GNU Autoconf 2.63.  Invocation command line was
1770
1771   $ $0 $@
1772
1773 _ACEOF
1774 exec 5>>config.log
1775 {
1776 cat <<_ASUNAME
1777 ## --------- ##
1778 ## Platform. ##
1779 ## --------- ##
1780
1781 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1782 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1783 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1784 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1785 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1786
1787 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1788 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1789
1790 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1791 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1792 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1793 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1794 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1795 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1796 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1797
1798 _ASUNAME
1799
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 for as_dir in $PATH
1802 do
1803   IFS=$as_save_IFS
1804   test -z "$as_dir" && as_dir=.
1805   $as_echo "PATH: $as_dir"
1806 done
1807 IFS=$as_save_IFS
1808
1809 } >&5
1810
1811 cat >&5 <<_ACEOF
1812
1813
1814 ## ----------- ##
1815 ## Core tests. ##
1816 ## ----------- ##
1817
1818 _ACEOF
1819
1820
1821 # Keep a trace of the command line.
1822 # Strip out --no-create and --no-recursion so they do not pile up.
1823 # Strip out --silent because we don't want to record it for future runs.
1824 # Also quote any args containing shell meta-characters.
1825 # Make two passes to allow for proper duplicate-argument suppression.
1826 ac_configure_args=
1827 ac_configure_args0=
1828 ac_configure_args1=
1829 ac_must_keep_next=false
1830 for ac_pass in 1 2
1831 do
1832   for ac_arg
1833   do
1834     case $ac_arg in
1835     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1836     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1837     | -silent | --silent | --silen | --sile | --sil)
1838       continue ;;
1839     *\'*)
1840       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1841     esac
1842     case $ac_pass in
1843     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1844     2)
1845       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1846       if test $ac_must_keep_next = true; then
1847         ac_must_keep_next=false # Got value, back to normal.
1848       else
1849         case $ac_arg in
1850           *=* | --config-cache | -C | -disable-* | --disable-* \
1851           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1852           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1853           | -with-* | --with-* | -without-* | --without-* | --x)
1854             case "$ac_configure_args0 " in
1855               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1856             esac
1857             ;;
1858           -* ) ac_must_keep_next=true ;;
1859         esac
1860       fi
1861       ac_configure_args="$ac_configure_args '$ac_arg'"
1862       ;;
1863     esac
1864   done
1865 done
1866 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1867 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1868
1869 # When interrupted or exit'd, cleanup temporary files, and complete
1870 # config.log.  We remove comments because anyway the quotes in there
1871 # would cause problems or look ugly.
1872 # WARNING: Use '\'' to represent an apostrophe within the trap.
1873 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1874 trap 'exit_status=$?
1875   # Save into config.log some information that might help in debugging.
1876   {
1877     echo
1878
1879     cat <<\_ASBOX
1880 ## ---------------- ##
1881 ## Cache variables. ##
1882 ## ---------------- ##
1883 _ASBOX
1884     echo
1885     # The following way of writing the cache mishandles newlines in values,
1886 (
1887   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1888     eval ac_val=\$$ac_var
1889     case $ac_val in #(
1890     *${as_nl}*)
1891       case $ac_var in #(
1892       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1893 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1894       esac
1895       case $ac_var in #(
1896       _ | IFS | as_nl) ;; #(
1897       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1898       *) $as_unset $ac_var ;;
1899       esac ;;
1900     esac
1901   done
1902   (set) 2>&1 |
1903     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1904     *${as_nl}ac_space=\ *)
1905       sed -n \
1906         "s/'\''/'\''\\\\'\'''\''/g;
1907           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1908       ;; #(
1909     *)
1910       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1911       ;;
1912     esac |
1913     sort
1914 )
1915     echo
1916
1917     cat <<\_ASBOX
1918 ## ----------------- ##
1919 ## Output variables. ##
1920 ## ----------------- ##
1921 _ASBOX
1922     echo
1923     for ac_var in $ac_subst_vars
1924     do
1925       eval ac_val=\$$ac_var
1926       case $ac_val in
1927       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1928       esac
1929       $as_echo "$ac_var='\''$ac_val'\''"
1930     done | sort
1931     echo
1932
1933     if test -n "$ac_subst_files"; then
1934       cat <<\_ASBOX
1935 ## ------------------- ##
1936 ## File substitutions. ##
1937 ## ------------------- ##
1938 _ASBOX
1939       echo
1940       for ac_var in $ac_subst_files
1941       do
1942         eval ac_val=\$$ac_var
1943         case $ac_val in
1944         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1945         esac
1946         $as_echo "$ac_var='\''$ac_val'\''"
1947       done | sort
1948       echo
1949     fi
1950
1951     if test -s confdefs.h; then
1952       cat <<\_ASBOX
1953 ## ----------- ##
1954 ## confdefs.h. ##
1955 ## ----------- ##
1956 _ASBOX
1957       echo
1958       cat confdefs.h
1959       echo
1960     fi
1961     test "$ac_signal" != 0 &&
1962       $as_echo "$as_me: caught signal $ac_signal"
1963     $as_echo "$as_me: exit $exit_status"
1964   } >&5
1965   rm -f core *.core core.conftest.* &&
1966     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1967     exit $exit_status
1968 ' 0
1969 for ac_signal in 1 2 13 15; do
1970   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1971 done
1972 ac_signal=0
1973
1974 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1975 rm -f -r conftest* confdefs.h
1976
1977 # Predefined preprocessor variables.
1978
1979 cat >>confdefs.h <<_ACEOF
1980 #define PACKAGE_NAME "$PACKAGE_NAME"
1981 _ACEOF
1982
1983
1984 cat >>confdefs.h <<_ACEOF
1985 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1986 _ACEOF
1987
1988
1989 cat >>confdefs.h <<_ACEOF
1990 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1991 _ACEOF
1992
1993
1994 cat >>confdefs.h <<_ACEOF
1995 #define PACKAGE_STRING "$PACKAGE_STRING"
1996 _ACEOF
1997
1998
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2001 _ACEOF
2002
2003
2004 # Let the site file select an alternate cache file if it wants to.
2005 # Prefer an explicitly selected file to automatically selected ones.
2006 ac_site_file1=NONE
2007 ac_site_file2=NONE
2008 if test -n "$CONFIG_SITE"; then
2009   ac_site_file1=$CONFIG_SITE
2010 elif test "x$prefix" != xNONE; then
2011   ac_site_file1=$prefix/share/config.site
2012   ac_site_file2=$prefix/etc/config.site
2013 else
2014   ac_site_file1=$ac_default_prefix/share/config.site
2015   ac_site_file2=$ac_default_prefix/etc/config.site
2016 fi
2017 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2018 do
2019   test "x$ac_site_file" = xNONE && continue
2020   if test -r "$ac_site_file"; then
2021     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2022 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2023     sed 's/^/| /' "$ac_site_file" >&5
2024     . "$ac_site_file"
2025   fi
2026 done
2027
2028 if test -r "$cache_file"; then
2029   # Some versions of bash will fail to source /dev/null (special
2030   # files actually), so we avoid doing that.
2031   if test -f "$cache_file"; then
2032     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2033 $as_echo "$as_me: loading cache $cache_file" >&6;}
2034     case $cache_file in
2035       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2036       *)                      . "./$cache_file";;
2037     esac
2038   fi
2039 else
2040   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2041 $as_echo "$as_me: creating cache $cache_file" >&6;}
2042   >$cache_file
2043 fi
2044
2045 # Check that the precious variables saved in the cache have kept the same
2046 # value.
2047 ac_cache_corrupted=false
2048 for ac_var in $ac_precious_vars; do
2049   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2050   eval ac_new_set=\$ac_env_${ac_var}_set
2051   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2052   eval ac_new_val=\$ac_env_${ac_var}_value
2053   case $ac_old_set,$ac_new_set in
2054     set,)
2055       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2056 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2057       ac_cache_corrupted=: ;;
2058     ,set)
2059       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2060 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2061       ac_cache_corrupted=: ;;
2062     ,);;
2063     *)
2064       if test "x$ac_old_val" != "x$ac_new_val"; then
2065         # differences in whitespace do not lead to failure.
2066         ac_old_val_w=`echo x $ac_old_val`
2067         ac_new_val_w=`echo x $ac_new_val`
2068         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2069           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2070 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2071           ac_cache_corrupted=:
2072         else
2073           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2074 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2075           eval $ac_var=\$ac_old_val
2076         fi
2077         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2078 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2079         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2080 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2081       fi;;
2082   esac
2083   # Pass precious variables to config.status.
2084   if test "$ac_new_set" = set; then
2085     case $ac_new_val in
2086     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2087     *) ac_arg=$ac_var=$ac_new_val ;;
2088     esac
2089     case " $ac_configure_args " in
2090       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2091       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2092     esac
2093   fi
2094 done
2095 if $ac_cache_corrupted; then
2096   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2098   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2099 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2100   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2101 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2102    { (exit 1); exit 1; }; }
2103 fi
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121 ac_ext=c
2122 ac_cpp='$CPP $CPPFLAGS'
2123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2126
2127
2128 am__api_version='1.11'
2129
2130 ac_aux_dir=
2131 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2132   if test -f "$ac_dir/install-sh"; then
2133     ac_aux_dir=$ac_dir
2134     ac_install_sh="$ac_aux_dir/install-sh -c"
2135     break
2136   elif test -f "$ac_dir/install.sh"; then
2137     ac_aux_dir=$ac_dir
2138     ac_install_sh="$ac_aux_dir/install.sh -c"
2139     break
2140   elif test -f "$ac_dir/shtool"; then
2141     ac_aux_dir=$ac_dir
2142     ac_install_sh="$ac_aux_dir/shtool install -c"
2143     break
2144   fi
2145 done
2146 if test -z "$ac_aux_dir"; then
2147   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2148 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2149    { (exit 1); exit 1; }; }
2150 fi
2151
2152 # These three variables are undocumented and unsupported,
2153 # and are intended to be withdrawn in a future Autoconf release.
2154 # They can cause serious problems if a builder's source tree is in a directory
2155 # whose full name contains unusual characters.
2156 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2157 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2158 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2159
2160
2161 # Find a good install program.  We prefer a C program (faster),
2162 # so one script is as good as another.  But avoid the broken or
2163 # incompatible versions:
2164 # SysV /etc/install, /usr/sbin/install
2165 # SunOS /usr/etc/install
2166 # IRIX /sbin/install
2167 # AIX /bin/install
2168 # AmigaOS /C/install, which installs bootblocks on floppy discs
2169 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2170 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2171 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2172 # OS/2's system install, which has a completely different semantic
2173 # ./install, which can be erroneously created by make from ./install.sh.
2174 # Reject install programs that cannot install multiple files.
2175 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2176 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2177 if test -z "$INSTALL"; then
2178 if test "${ac_cv_path_install+set}" = set; then
2179   $as_echo_n "(cached) " >&6
2180 else
2181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2183 do
2184   IFS=$as_save_IFS
2185   test -z "$as_dir" && as_dir=.
2186   # Account for people who put trailing slashes in PATH elements.
2187 case $as_dir/ in
2188   ./ | .// | /cC/* | \
2189   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2190   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2191   /usr/ucb/* ) ;;
2192   *)
2193     # OSF1 and SCO ODT 3.0 have their own names for install.
2194     # Don't use installbsd from OSF since it installs stuff as root
2195     # by default.
2196     for ac_prog in ginstall scoinst install; do
2197       for ac_exec_ext in '' $ac_executable_extensions; do
2198         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2199           if test $ac_prog = install &&
2200             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2201             # AIX install.  It has an incompatible calling convention.
2202             :
2203           elif test $ac_prog = install &&
2204             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2205             # program-specific install script used by HP pwplus--don't use.
2206             :
2207           else
2208             rm -rf conftest.one conftest.two conftest.dir
2209             echo one > conftest.one
2210             echo two > conftest.two
2211             mkdir conftest.dir
2212             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2213               test -s conftest.one && test -s conftest.two &&
2214               test -s conftest.dir/conftest.one &&
2215               test -s conftest.dir/conftest.two
2216             then
2217               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2218               break 3
2219             fi
2220           fi
2221         fi
2222       done
2223     done
2224     ;;
2225 esac
2226
2227 done
2228 IFS=$as_save_IFS
2229
2230 rm -rf conftest.one conftest.two conftest.dir
2231
2232 fi
2233   if test "${ac_cv_path_install+set}" = set; then
2234     INSTALL=$ac_cv_path_install
2235   else
2236     # As a last resort, use the slow shell script.  Don't cache a
2237     # value for INSTALL within a source directory, because that will
2238     # break other packages using the cache if that directory is
2239     # removed, or if the value is a relative name.
2240     INSTALL=$ac_install_sh
2241   fi
2242 fi
2243 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2244 $as_echo "$INSTALL" >&6; }
2245
2246 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2247 # It thinks the first close brace ends the variable substitution.
2248 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2249
2250 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2251
2252 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2253
2254 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2255 $as_echo_n "checking whether build environment is sane... " >&6; }
2256 # Just in case
2257 sleep 1
2258 echo timestamp > conftest.file
2259 # Reject unsafe characters in $srcdir or the absolute working directory
2260 # name.  Accept space and tab only in the latter.
2261 am_lf='
2262 '
2263 case `pwd` in
2264   *[\\\"\#\$\&\'\`$am_lf]*)
2265     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2266 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2267    { (exit 1); exit 1; }; };;
2268 esac
2269 case $srcdir in
2270   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2271     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2272 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2273    { (exit 1); exit 1; }; };;
2274 esac
2275
2276 # Do `set' in a subshell so we don't clobber the current shell's
2277 # arguments.  Must try -L first in case configure is actually a
2278 # symlink; some systems play weird games with the mod time of symlinks
2279 # (eg FreeBSD returns the mod time of the symlink's containing
2280 # directory).
2281 if (
2282    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2283    if test "$*" = "X"; then
2284       # -L didn't work.
2285       set X `ls -t "$srcdir/configure" conftest.file`
2286    fi
2287    rm -f conftest.file
2288    if test "$*" != "X $srcdir/configure conftest.file" \
2289       && test "$*" != "X conftest.file $srcdir/configure"; then
2290
2291       # If neither matched, then we have a broken ls.  This can happen
2292       # if, for instance, CONFIG_SHELL is bash and it inherits a
2293       # broken ls alias from the environment.  This has actually
2294       # happened.  Such a system could not be considered "sane".
2295       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2296 alias in your environment" >&5
2297 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2298 alias in your environment" >&2;}
2299    { (exit 1); exit 1; }; }
2300    fi
2301
2302    test "$2" = conftest.file
2303    )
2304 then
2305    # Ok.
2306    :
2307 else
2308    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2309 Check your system clock" >&5
2310 $as_echo "$as_me: error: newly created file is older than distributed files!
2311 Check your system clock" >&2;}
2312    { (exit 1); exit 1; }; }
2313 fi
2314 { $as_echo "$as_me:$LINENO: result: yes" >&5
2315 $as_echo "yes" >&6; }
2316 test "$program_prefix" != NONE &&
2317   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2318 # Use a double $ so make ignores it.
2319 test "$program_suffix" != NONE &&
2320   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2321 # Double any \ or $.
2322 # By default was `s,x,x', remove it if useless.
2323 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2324 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2325
2326 # expand $ac_aux_dir to an absolute path
2327 am_aux_dir=`cd $ac_aux_dir && pwd`
2328
2329 if test x"${MISSING+set}" != xset; then
2330   case $am_aux_dir in
2331   *\ * | *\     *)
2332     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2333   *)
2334     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2335   esac
2336 fi
2337 # Use eval to expand $SHELL
2338 if eval "$MISSING --run true"; then
2339   am_missing_run="$MISSING --run "
2340 else
2341   am_missing_run=
2342   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2343 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2344 fi
2345
2346 if test x"${install_sh}" != xset; then
2347   case $am_aux_dir in
2348   *\ * | *\     *)
2349     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2350   *)
2351     install_sh="\${SHELL} $am_aux_dir/install-sh"
2352   esac
2353 fi
2354
2355 # Installed binaries are usually stripped using `strip' when the user
2356 # run `make install-strip'.  However `strip' might not be the right
2357 # tool to use in cross-compilation environments, therefore Automake
2358 # will honor the `STRIP' environment variable to overrule this program.
2359 if test "$cross_compiling" != no; then
2360   if test -n "$ac_tool_prefix"; then
2361   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2362 set dummy ${ac_tool_prefix}strip; ac_word=$2
2363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 $as_echo_n "checking for $ac_word... " >&6; }
2365 if test "${ac_cv_prog_STRIP+set}" = set; then
2366   $as_echo_n "(cached) " >&6
2367 else
2368   if test -n "$STRIP"; then
2369   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2370 else
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2373 do
2374   IFS=$as_save_IFS
2375   test -z "$as_dir" && as_dir=.
2376   for ac_exec_ext in '' $ac_executable_extensions; do
2377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2378     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2379     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380     break 2
2381   fi
2382 done
2383 done
2384 IFS=$as_save_IFS
2385
2386 fi
2387 fi
2388 STRIP=$ac_cv_prog_STRIP
2389 if test -n "$STRIP"; then
2390   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2391 $as_echo "$STRIP" >&6; }
2392 else
2393   { $as_echo "$as_me:$LINENO: result: no" >&5
2394 $as_echo "no" >&6; }
2395 fi
2396
2397
2398 fi
2399 if test -z "$ac_cv_prog_STRIP"; then
2400   ac_ct_STRIP=$STRIP
2401   # Extract the first word of "strip", so it can be a program name with args.
2402 set dummy strip; ac_word=$2
2403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 $as_echo_n "checking for $ac_word... " >&6; }
2405 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2406   $as_echo_n "(cached) " >&6
2407 else
2408   if test -n "$ac_ct_STRIP"; then
2409   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414   IFS=$as_save_IFS
2415   test -z "$as_dir" && as_dir=.
2416   for ac_exec_ext in '' $ac_executable_extensions; do
2417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2418     ac_cv_prog_ac_ct_STRIP="strip"
2419     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420     break 2
2421   fi
2422 done
2423 done
2424 IFS=$as_save_IFS
2425
2426 fi
2427 fi
2428 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2429 if test -n "$ac_ct_STRIP"; then
2430   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2431 $as_echo "$ac_ct_STRIP" >&6; }
2432 else
2433   { $as_echo "$as_me:$LINENO: result: no" >&5
2434 $as_echo "no" >&6; }
2435 fi
2436
2437   if test "x$ac_ct_STRIP" = x; then
2438     STRIP=":"
2439   else
2440     case $cross_compiling:$ac_tool_warned in
2441 yes:)
2442 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2444 ac_tool_warned=yes ;;
2445 esac
2446     STRIP=$ac_ct_STRIP
2447   fi
2448 else
2449   STRIP="$ac_cv_prog_STRIP"
2450 fi
2451
2452 fi
2453 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2454
2455 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2456 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2457 if test -z "$MKDIR_P"; then
2458   if test "${ac_cv_path_mkdir+set}" = set; then
2459   $as_echo_n "(cached) " >&6
2460 else
2461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2463 do
2464   IFS=$as_save_IFS
2465   test -z "$as_dir" && as_dir=.
2466   for ac_prog in mkdir gmkdir; do
2467          for ac_exec_ext in '' $ac_executable_extensions; do
2468            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2469            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2470              'mkdir (GNU coreutils) '* | \
2471              'mkdir (coreutils) '* | \
2472              'mkdir (fileutils) '4.1*)
2473                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2474                break 3;;
2475            esac
2476          done
2477        done
2478 done
2479 IFS=$as_save_IFS
2480
2481 fi
2482
2483   if test "${ac_cv_path_mkdir+set}" = set; then
2484     MKDIR_P="$ac_cv_path_mkdir -p"
2485   else
2486     # As a last resort, use the slow shell script.  Don't cache a
2487     # value for MKDIR_P within a source directory, because that will
2488     # break other packages using the cache if that directory is
2489     # removed, or if the value is a relative name.
2490     test -d ./--version && rmdir ./--version
2491     MKDIR_P="$ac_install_sh -d"
2492   fi
2493 fi
2494 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2495 $as_echo "$MKDIR_P" >&6; }
2496
2497 mkdir_p="$MKDIR_P"
2498 case $mkdir_p in
2499   [\\/$]* | ?:[\\/]*) ;;
2500   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2501 esac
2502
2503 for ac_prog in gawk mawk nawk awk
2504 do
2505   # Extract the first word of "$ac_prog", so it can be a program name with args.
2506 set dummy $ac_prog; ac_word=$2
2507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if test "${ac_cv_prog_AWK+set}" = set; then
2510   $as_echo_n "(cached) " >&6
2511 else
2512   if test -n "$AWK"; then
2513   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518   IFS=$as_save_IFS
2519   test -z "$as_dir" && as_dir=.
2520   for ac_exec_ext in '' $ac_executable_extensions; do
2521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522     ac_cv_prog_AWK="$ac_prog"
2523     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524     break 2
2525   fi
2526 done
2527 done
2528 IFS=$as_save_IFS
2529
2530 fi
2531 fi
2532 AWK=$ac_cv_prog_AWK
2533 if test -n "$AWK"; then
2534   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2535 $as_echo "$AWK" >&6; }
2536 else
2537   { $as_echo "$as_me:$LINENO: result: no" >&5
2538 $as_echo "no" >&6; }
2539 fi
2540
2541
2542   test -n "$AWK" && break
2543 done
2544
2545 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2546 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2547 set x ${MAKE-make}
2548 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2549 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2550   $as_echo_n "(cached) " >&6
2551 else
2552   cat >conftest.make <<\_ACEOF
2553 SHELL = /bin/sh
2554 all:
2555         @echo '@@@%%%=$(MAKE)=@@@%%%'
2556 _ACEOF
2557 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2558 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2559   *@@@%%%=?*=@@@%%%*)
2560     eval ac_cv_prog_make_${ac_make}_set=yes;;
2561   *)
2562     eval ac_cv_prog_make_${ac_make}_set=no;;
2563 esac
2564 rm -f conftest.make
2565 fi
2566 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2567   { $as_echo "$as_me:$LINENO: result: yes" >&5
2568 $as_echo "yes" >&6; }
2569   SET_MAKE=
2570 else
2571   { $as_echo "$as_me:$LINENO: result: no" >&5
2572 $as_echo "no" >&6; }
2573   SET_MAKE="MAKE=${MAKE-make}"
2574 fi
2575
2576 rm -rf .tst 2>/dev/null
2577 mkdir .tst 2>/dev/null
2578 if test -d .tst; then
2579   am__leading_dot=.
2580 else
2581   am__leading_dot=_
2582 fi
2583 rmdir .tst 2>/dev/null
2584
2585 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2586   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2587   # is not polluted with repeated "-I."
2588   am__isrc=' -I$(srcdir)'
2589   # test to see if srcdir already configured
2590   if test -f $srcdir/config.status; then
2591     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2592 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2593    { (exit 1); exit 1; }; }
2594   fi
2595 fi
2596
2597 # test whether we have cygpath
2598 if test -z "$CYGPATH_W"; then
2599   if (cygpath --version) >/dev/null 2>/dev/null; then
2600     CYGPATH_W='cygpath -w'
2601   else
2602     CYGPATH_W=echo
2603   fi
2604 fi
2605
2606
2607 # Define the identity of the package.
2608  PACKAGE=oprofile
2609  VERSION=0.9.8
2610
2611
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE "$PACKAGE"
2614 _ACEOF
2615
2616
2617 cat >>confdefs.h <<_ACEOF
2618 #define VERSION "$VERSION"
2619 _ACEOF
2620
2621 # Some tools Automake needs.
2622
2623 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2624
2625
2626 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2627
2628
2629 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2630
2631
2632 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2633
2634
2635 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2636
2637 # We need awk for the "check" target.  The system "awk" is bad on
2638 # some platforms.
2639 # Always define AMTAR for backward compatibility.
2640
2641 AMTAR=${AMTAR-"${am_missing_run}tar"}
2642
2643 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2644
2645
2646
2647
2648
2649 ac_config_headers="$ac_config_headers config.h"
2650
2651
2652 DEPDIR="${am__leading_dot}deps"
2653
2654 ac_config_commands="$ac_config_commands depfiles"
2655
2656
2657 am_make=${MAKE-make}
2658 cat > confinc << 'END'
2659 am__doit:
2660         @echo this is the am__doit target
2661 .PHONY: am__doit
2662 END
2663 # If we don't find an include directive, just comment out the code.
2664 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2665 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2666 am__include="#"
2667 am__quote=
2668 _am_result=none
2669 # First try GNU make style include.
2670 echo "include confinc" > confmf
2671 # Ignore all kinds of additional output from `make'.
2672 case `$am_make -s -f confmf 2> /dev/null` in #(
2673 *the\ am__doit\ target*)
2674   am__include=include
2675   am__quote=
2676   _am_result=GNU
2677   ;;
2678 esac
2679 # Now try BSD make style include.
2680 if test "$am__include" = "#"; then
2681    echo '.include "confinc"' > confmf
2682    case `$am_make -s -f confmf 2> /dev/null` in #(
2683    *the\ am__doit\ target*)
2684      am__include=.include
2685      am__quote="\""
2686      _am_result=BSD
2687      ;;
2688    esac
2689 fi
2690
2691
2692 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2693 $as_echo "$_am_result" >&6; }
2694 rm -f confinc confmf
2695
2696 # Check whether --enable-dependency-tracking was given.
2697 if test "${enable_dependency_tracking+set}" = set; then
2698   enableval=$enable_dependency_tracking;
2699 fi
2700
2701 if test "x$enable_dependency_tracking" != xno; then
2702   am_depcomp="$ac_aux_dir/depcomp"
2703   AMDEPBACKSLASH='\'
2704 fi
2705  if test "x$enable_dependency_tracking" != xno; then
2706   AMDEP_TRUE=
2707   AMDEP_FALSE='#'
2708 else
2709   AMDEP_TRUE='#'
2710   AMDEP_FALSE=
2711 fi
2712
2713
2714 ac_ext=c
2715 ac_cpp='$CPP $CPPFLAGS'
2716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2719 if test -n "$ac_tool_prefix"; then
2720   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725   $as_echo_n "(cached) " >&6
2726 else
2727   if test -n "$CC"; then
2728   ac_cv_prog_CC="$CC" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2732 do
2733   IFS=$as_save_IFS
2734   test -z "$as_dir" && as_dir=.
2735   for ac_exec_ext in '' $ac_executable_extensions; do
2736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2738     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739     break 2
2740   fi
2741 done
2742 done
2743 IFS=$as_save_IFS
2744
2745 fi
2746 fi
2747 CC=$ac_cv_prog_CC
2748 if test -n "$CC"; then
2749   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2750 $as_echo "$CC" >&6; }
2751 else
2752   { $as_echo "$as_me:$LINENO: result: no" >&5
2753 $as_echo "no" >&6; }
2754 fi
2755
2756
2757 fi
2758 if test -z "$ac_cv_prog_CC"; then
2759   ac_ct_CC=$CC
2760   # Extract the first word of "gcc", so it can be a program name with args.
2761 set dummy gcc; ac_word=$2
2762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2765   $as_echo_n "(cached) " >&6
2766 else
2767   if test -n "$ac_ct_CC"; then
2768   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773   IFS=$as_save_IFS
2774   test -z "$as_dir" && as_dir=.
2775   for ac_exec_ext in '' $ac_executable_extensions; do
2776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777     ac_cv_prog_ac_ct_CC="gcc"
2778     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779     break 2
2780   fi
2781 done
2782 done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2788 if test -n "$ac_ct_CC"; then
2789   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2790 $as_echo "$ac_ct_CC" >&6; }
2791 else
2792   { $as_echo "$as_me:$LINENO: result: no" >&5
2793 $as_echo "no" >&6; }
2794 fi
2795
2796   if test "x$ac_ct_CC" = x; then
2797     CC=""
2798   else
2799     case $cross_compiling:$ac_tool_warned in
2800 yes:)
2801 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2803 ac_tool_warned=yes ;;
2804 esac
2805     CC=$ac_ct_CC
2806   fi
2807 else
2808   CC="$ac_cv_prog_CC"
2809 fi
2810
2811 if test -z "$CC"; then
2812           if test -n "$ac_tool_prefix"; then
2813     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2814 set dummy ${ac_tool_prefix}cc; ac_word=$2
2815 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_CC+set}" = set; then
2818   $as_echo_n "(cached) " >&6
2819 else
2820   if test -n "$CC"; then
2821   ac_cv_prog_CC="$CC" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828   for ac_exec_ext in '' $ac_executable_extensions; do
2829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830     ac_cv_prog_CC="${ac_tool_prefix}cc"
2831     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832     break 2
2833   fi
2834 done
2835 done
2836 IFS=$as_save_IFS
2837
2838 fi
2839 fi
2840 CC=$ac_cv_prog_CC
2841 if test -n "$CC"; then
2842   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2843 $as_echo "$CC" >&6; }
2844 else
2845   { $as_echo "$as_me:$LINENO: result: no" >&5
2846 $as_echo "no" >&6; }
2847 fi
2848
2849
2850   fi
2851 fi
2852 if test -z "$CC"; then
2853   # Extract the first word of "cc", so it can be a program name with args.
2854 set dummy cc; ac_word=$2
2855 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 $as_echo_n "checking for $ac_word... " >&6; }
2857 if test "${ac_cv_prog_CC+set}" = set; then
2858   $as_echo_n "(cached) " >&6
2859 else
2860   if test -n "$CC"; then
2861   ac_cv_prog_CC="$CC" # Let the user override the test.
2862 else
2863   ac_prog_rejected=no
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867   IFS=$as_save_IFS
2868   test -z "$as_dir" && as_dir=.
2869   for ac_exec_ext in '' $ac_executable_extensions; do
2870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2871     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2872        ac_prog_rejected=yes
2873        continue
2874      fi
2875     ac_cv_prog_CC="cc"
2876     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877     break 2
2878   fi
2879 done
2880 done
2881 IFS=$as_save_IFS
2882
2883 if test $ac_prog_rejected = yes; then
2884   # We found a bogon in the path, so make sure we never use it.
2885   set dummy $ac_cv_prog_CC
2886   shift
2887   if test $# != 0; then
2888     # We chose a different compiler from the bogus one.
2889     # However, it has the same basename, so the bogon will be chosen
2890     # first if we set CC to just the basename; use the full file name.
2891     shift
2892     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2893   fi
2894 fi
2895 fi
2896 fi
2897 CC=$ac_cv_prog_CC
2898 if test -n "$CC"; then
2899   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2900 $as_echo "$CC" >&6; }
2901 else
2902   { $as_echo "$as_me:$LINENO: result: no" >&5
2903 $as_echo "no" >&6; }
2904 fi
2905
2906
2907 fi
2908 if test -z "$CC"; then
2909   if test -n "$ac_tool_prefix"; then
2910   for ac_prog in cl.exe
2911   do
2912     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2914 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if test "${ac_cv_prog_CC+set}" = set; then
2917   $as_echo_n "(cached) " >&6
2918 else
2919   if test -n "$CC"; then
2920   ac_cv_prog_CC="$CC" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925   IFS=$as_save_IFS
2926   test -z "$as_dir" && as_dir=.
2927   for ac_exec_ext in '' $ac_executable_extensions; do
2928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2930     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931     break 2
2932   fi
2933 done
2934 done
2935 IFS=$as_save_IFS
2936
2937 fi
2938 fi
2939 CC=$ac_cv_prog_CC
2940 if test -n "$CC"; then
2941   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2942 $as_echo "$CC" >&6; }
2943 else
2944   { $as_echo "$as_me:$LINENO: result: no" >&5
2945 $as_echo "no" >&6; }
2946 fi
2947
2948
2949     test -n "$CC" && break
2950   done
2951 fi
2952 if test -z "$CC"; then
2953   ac_ct_CC=$CC
2954   for ac_prog in cl.exe
2955 do
2956   # Extract the first word of "$ac_prog", so it can be a program name with args.
2957 set dummy $ac_prog; ac_word=$2
2958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2961   $as_echo_n "(cached) " >&6
2962 else
2963   if test -n "$ac_ct_CC"; then
2964   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969   IFS=$as_save_IFS
2970   test -z "$as_dir" && as_dir=.
2971   for ac_exec_ext in '' $ac_executable_extensions; do
2972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973     ac_cv_prog_ac_ct_CC="$ac_prog"
2974     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2975     break 2
2976   fi
2977 done
2978 done
2979 IFS=$as_save_IFS
2980
2981 fi
2982 fi
2983 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2984 if test -n "$ac_ct_CC"; then
2985   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2986 $as_echo "$ac_ct_CC" >&6; }
2987 else
2988   { $as_echo "$as_me:$LINENO: result: no" >&5
2989 $as_echo "no" >&6; }
2990 fi
2991
2992
2993   test -n "$ac_ct_CC" && break
2994 done
2995
2996   if test "x$ac_ct_CC" = x; then
2997     CC=""
2998   else
2999     case $cross_compiling:$ac_tool_warned in
3000 yes:)
3001 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003 ac_tool_warned=yes ;;
3004 esac
3005     CC=$ac_ct_CC
3006   fi
3007 fi
3008
3009 fi
3010
3011
3012 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3015 See \`config.log' for more details." >&5
3016 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3017 See \`config.log' for more details." >&2;}
3018    { (exit 1); exit 1; }; }; }
3019
3020 # Provide some information about the compiler.
3021 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3022 set X $ac_compile
3023 ac_compiler=$2
3024 { (ac_try="$ac_compiler --version >&5"
3025 case "(($ac_try" in
3026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027   *) ac_try_echo=$ac_try;;
3028 esac
3029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3030 $as_echo "$ac_try_echo") >&5
3031   (eval "$ac_compiler --version >&5") 2>&5
3032   ac_status=$?
3033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); }
3035 { (ac_try="$ac_compiler -v >&5"
3036 case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3041 $as_echo "$ac_try_echo") >&5
3042   (eval "$ac_compiler -v >&5") 2>&5
3043   ac_status=$?
3044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045   (exit $ac_status); }
3046 { (ac_try="$ac_compiler -V >&5"
3047 case "(($ac_try" in
3048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049   *) ac_try_echo=$ac_try;;
3050 esac
3051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3052 $as_echo "$ac_try_echo") >&5
3053   (eval "$ac_compiler -V >&5") 2>&5
3054   ac_status=$?
3055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); }
3057
3058 cat >conftest.$ac_ext <<_ACEOF
3059 /* confdefs.h.  */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h.  */
3064
3065 int
3066 main ()
3067 {
3068
3069   ;
3070   return 0;
3071 }
3072 _ACEOF
3073 ac_clean_files_save=$ac_clean_files
3074 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3075 # Try to create an executable without -o first, disregard a.out.
3076 # It will help us diagnose broken compilers, and finding out an intuition
3077 # of exeext.
3078 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3079 $as_echo_n "checking for C compiler default output file name... " >&6; }
3080 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3081
3082 # The possible output files:
3083 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3084
3085 ac_rmfiles=
3086 for ac_file in $ac_files
3087 do
3088   case $ac_file in
3089     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3090     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3091   esac
3092 done
3093 rm -f $ac_rmfiles
3094
3095 if { (ac_try="$ac_link_default"
3096 case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3101 $as_echo "$ac_try_echo") >&5
3102   (eval "$ac_link_default") 2>&5
3103   ac_status=$?
3104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); }; then
3106   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3107 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3108 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3109 # so that the user can short-circuit this test for compilers unknown to
3110 # Autoconf.
3111 for ac_file in $ac_files ''
3112 do
3113   test -f "$ac_file" || continue
3114   case $ac_file in
3115     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3116         ;;
3117     [ab].out )
3118         # We found the default executable, but exeext='' is most
3119         # certainly right.
3120         break;;
3121     *.* )
3122         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3123         then :; else
3124            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3125         fi
3126         # We set ac_cv_exeext here because the later test for it is not
3127         # safe: cross compilers may not add the suffix if given an `-o'
3128         # argument, so we may need to know it at that point already.
3129         # Even if this section looks crufty: it has the advantage of
3130         # actually working.
3131         break;;
3132     * )
3133         break;;
3134   esac
3135 done
3136 test "$ac_cv_exeext" = no && ac_cv_exeext=
3137
3138 else
3139   ac_file=''
3140 fi
3141
3142 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3143 $as_echo "$ac_file" >&6; }
3144 if test -z "$ac_file"; then
3145   $as_echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3151 See \`config.log' for more details." >&5
3152 $as_echo "$as_me: error: C compiler cannot create executables
3153 See \`config.log' for more details." >&2;}
3154    { (exit 77); exit 77; }; }; }
3155 fi
3156
3157 ac_exeext=$ac_cv_exeext
3158
3159 # Check that the compiler produces executables we can run.  If not, either
3160 # the compiler is broken, or we cross compile.
3161 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3162 $as_echo_n "checking whether the C compiler works... " >&6; }
3163 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3164 # If not cross compiling, check that we can run a simple program.
3165 if test "$cross_compiling" != yes; then
3166   if { ac_try='./$ac_file'
3167   { (case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3172 $as_echo "$ac_try_echo") >&5
3173   (eval "$ac_try") 2>&5
3174   ac_status=$?
3175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); }; }; then
3177     cross_compiling=no
3178   else
3179     if test "$cross_compiling" = maybe; then
3180         cross_compiling=yes
3181     else
3182         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3185 If you meant to cross compile, use \`--host'.
3186 See \`config.log' for more details." >&5
3187 $as_echo "$as_me: error: cannot run C compiled programs.
3188 If you meant to cross compile, use \`--host'.
3189 See \`config.log' for more details." >&2;}
3190    { (exit 1); exit 1; }; }; }
3191     fi
3192   fi
3193 fi
3194 { $as_echo "$as_me:$LINENO: result: yes" >&5
3195 $as_echo "yes" >&6; }
3196
3197 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3198 ac_clean_files=$ac_clean_files_save
3199 # Check that the compiler produces executables we can run.  If not, either
3200 # the compiler is broken, or we cross compile.
3201 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3202 $as_echo_n "checking whether we are cross compiling... " >&6; }
3203 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3204 $as_echo "$cross_compiling" >&6; }
3205
3206 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3207 $as_echo_n "checking for suffix of executables... " >&6; }
3208 if { (ac_try="$ac_link"
3209 case "(($ac_try" in
3210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211   *) ac_try_echo=$ac_try;;
3212 esac
3213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3214 $as_echo "$ac_try_echo") >&5
3215   (eval "$ac_link") 2>&5
3216   ac_status=$?
3217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); }; then
3219   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3220 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3221 # work properly (i.e., refer to `conftest.exe'), while it won't with
3222 # `rm'.
3223 for ac_file in conftest.exe conftest conftest.*; do
3224   test -f "$ac_file" || continue
3225   case $ac_file in
3226     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3227     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3228           break;;
3229     * ) break;;
3230   esac
3231 done
3232 else
3233   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details." >&5
3237 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3238 See \`config.log' for more details." >&2;}
3239    { (exit 1); exit 1; }; }; }
3240 fi
3241
3242 rm -f conftest$ac_cv_exeext
3243 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3244 $as_echo "$ac_cv_exeext" >&6; }
3245
3246 rm -f conftest.$ac_ext
3247 EXEEXT=$ac_cv_exeext
3248 ac_exeext=$EXEEXT
3249 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3250 $as_echo_n "checking for suffix of object files... " >&6; }
3251 if test "${ac_cv_objext+set}" = set; then
3252   $as_echo_n "(cached) " >&6
3253 else
3254   cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h.  */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h.  */
3260
3261 int
3262 main ()
3263 {
3264
3265   ;
3266   return 0;
3267 }
3268 _ACEOF
3269 rm -f conftest.o conftest.obj
3270 if { (ac_try="$ac_compile"
3271 case "(($ac_try" in
3272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273   *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3276 $as_echo "$ac_try_echo") >&5
3277   (eval "$ac_compile") 2>&5
3278   ac_status=$?
3279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280   (exit $ac_status); }; then
3281   for ac_file in conftest.o conftest.obj conftest.*; do
3282   test -f "$ac_file" || continue;
3283   case $ac_file in
3284     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3285     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3286        break;;
3287   esac
3288 done
3289 else
3290   $as_echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3292
3293 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3296 See \`config.log' for more details." >&5
3297 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3298 See \`config.log' for more details." >&2;}
3299    { (exit 1); exit 1; }; }; }
3300 fi
3301
3302 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3303 fi
3304 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3305 $as_echo "$ac_cv_objext" >&6; }
3306 OBJEXT=$ac_cv_objext
3307 ac_objext=$OBJEXT
3308 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3309 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3310 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3311   $as_echo_n "(cached) " >&6
3312 else
3313   cat >conftest.$ac_ext <<_ACEOF
3314 /* confdefs.h.  */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h.  */
3319
3320 int
3321 main ()
3322 {
3323 #ifndef __GNUC__
3324        choke me
3325 #endif
3326
3327   ;
3328   return 0;
3329 }
3330 _ACEOF
3331 rm -f conftest.$ac_objext
3332 if { (ac_try="$ac_compile"
3333 case "(($ac_try" in
3334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335   *) ac_try_echo=$ac_try;;
3336 esac
3337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3338 $as_echo "$ac_try_echo") >&5
3339   (eval "$ac_compile") 2>conftest.er1
3340   ac_status=$?
3341   grep -v '^ *+' conftest.er1 >conftest.err
3342   rm -f conftest.er1
3343   cat conftest.err >&5
3344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); } && {
3346          test -z "$ac_c_werror_flag" ||
3347          test ! -s conftest.err
3348        } && test -s conftest.$ac_objext; then
3349   ac_compiler_gnu=yes
3350 else
3351   $as_echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3353
3354         ac_compiler_gnu=no
3355 fi
3356
3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3359
3360 fi
3361 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3362 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3363 if test $ac_compiler_gnu = yes; then
3364   GCC=yes
3365 else
3366   GCC=
3367 fi
3368 ac_test_CFLAGS=${CFLAGS+set}
3369 ac_save_CFLAGS=$CFLAGS
3370 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3371 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3372 if test "${ac_cv_prog_cc_g+set}" = set; then
3373   $as_echo_n "(cached) " >&6
3374 else
3375   ac_save_c_werror_flag=$ac_c_werror_flag
3376    ac_c_werror_flag=yes
3377    ac_cv_prog_cc_g=no
3378    CFLAGS="-g"
3379    cat >conftest.$ac_ext <<_ACEOF
3380 /* confdefs.h.  */
3381 _ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h.  */
3385
3386 int
3387 main ()
3388 {
3389
3390   ;
3391   return 0;
3392 }
3393 _ACEOF
3394 rm -f conftest.$ac_objext
3395 if { (ac_try="$ac_compile"
3396 case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3401 $as_echo "$ac_try_echo") >&5
3402   (eval "$ac_compile") 2>conftest.er1
3403   ac_status=$?
3404   grep -v '^ *+' conftest.er1 >conftest.err
3405   rm -f conftest.er1
3406   cat conftest.err >&5
3407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408   (exit $ac_status); } && {
3409          test -z "$ac_c_werror_flag" ||
3410          test ! -s conftest.err
3411        } && test -s conftest.$ac_objext; then
3412   ac_cv_prog_cc_g=yes
3413 else
3414   $as_echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3416
3417         CFLAGS=""
3418       cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h.  */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h.  */
3424
3425 int
3426 main ()
3427 {
3428
3429   ;
3430   return 0;
3431 }
3432 _ACEOF
3433 rm -f conftest.$ac_objext
3434 if { (ac_try="$ac_compile"
3435 case "(($ac_try" in
3436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437   *) ac_try_echo=$ac_try;;
3438 esac
3439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3440 $as_echo "$ac_try_echo") >&5
3441   (eval "$ac_compile") 2>conftest.er1
3442   ac_status=$?
3443   grep -v '^ *+' conftest.er1 >conftest.err
3444   rm -f conftest.er1
3445   cat conftest.err >&5
3446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); } && {
3448          test -z "$ac_c_werror_flag" ||
3449          test ! -s conftest.err
3450        } && test -s conftest.$ac_objext; then
3451   :
3452 else
3453   $as_echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456         ac_c_werror_flag=$ac_save_c_werror_flag
3457          CFLAGS="-g"
3458          cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464
3465 int
3466 main ()
3467 {
3468
3469   ;
3470   return 0;
3471 }
3472 _ACEOF
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3475 case "(($ac_try" in
3476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477   *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3480 $as_echo "$ac_try_echo") >&5
3481   (eval "$ac_compile") 2>conftest.er1
3482   ac_status=$?
3483   grep -v '^ *+' conftest.er1 >conftest.err
3484   rm -f conftest.er1
3485   cat conftest.err >&5
3486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487   (exit $ac_status); } && {
3488          test -z "$ac_c_werror_flag" ||
3489          test ! -s conftest.err
3490        } && test -s conftest.$ac_objext; then
3491   ac_cv_prog_cc_g=yes
3492 else
3493   $as_echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3495
3496
3497 fi
3498
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 fi
3501
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 fi
3504
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506    ac_c_werror_flag=$ac_save_c_werror_flag
3507 fi
3508 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3509 $as_echo "$ac_cv_prog_cc_g" >&6; }
3510 if test "$ac_test_CFLAGS" = set; then
3511   CFLAGS=$ac_save_CFLAGS
3512 elif test $ac_cv_prog_cc_g = yes; then
3513   if test "$GCC" = yes; then
3514     CFLAGS="-g -O2"
3515   else
3516     CFLAGS="-g"
3517   fi
3518 else
3519   if test "$GCC" = yes; then
3520     CFLAGS="-O2"
3521   else
3522     CFLAGS=
3523   fi
3524 fi
3525 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3526 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3527 if test "${ac_cv_prog_cc_c89+set}" = set; then
3528   $as_echo_n "(cached) " >&6
3529 else
3530   ac_cv_prog_cc_c89=no
3531 ac_save_CC=$CC
3532 cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h.  */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h.  */
3538 #include <stdarg.h>
3539 #include <stdio.h>
3540 #include <sys/types.h>
3541 #include <sys/stat.h>
3542 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3543 struct buf { int x; };
3544 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3545 static char *e (p, i)
3546      char **p;
3547      int i;
3548 {
3549   return p[i];
3550 }
3551 static char *f (char * (*g) (char **, int), char **p, ...)
3552 {
3553   char *s;
3554   va_list v;
3555   va_start (v,p);
3556   s = g (p, va_arg (v,int));
3557   va_end (v);
3558   return s;
3559 }
3560
3561 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3562    function prototypes and stuff, but not '\xHH' hex character constants.
3563    These don't provoke an error unfortunately, instead are silently treated
3564    as 'x'.  The following induces an error, until -std is added to get
3565    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3566    array size at least.  It's necessary to write '\x00'==0 to get something
3567    that's true only with -std.  */
3568 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3569
3570 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3571    inside strings and character constants.  */
3572 #define FOO(x) 'x'
3573 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3574
3575 int test (int i, double x);
3576 struct s1 {int (*f) (int a);};
3577 struct s2 {int (*f) (double a);};
3578 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3579 int argc;
3580 char **argv;
3581 int
3582 main ()
3583 {
3584 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3585   ;
3586   return 0;
3587 }
3588 _ACEOF
3589 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3590         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3591 do
3592   CC="$ac_save_CC $ac_arg"
3593   rm -f conftest.$ac_objext
3594 if { (ac_try="$ac_compile"
3595 case "(($ac_try" in
3596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597   *) ac_try_echo=$ac_try;;
3598 esac
3599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3600 $as_echo "$ac_try_echo") >&5
3601   (eval "$ac_compile") 2>conftest.er1
3602   ac_status=$?
3603   grep -v '^ *+' conftest.er1 >conftest.err
3604   rm -f conftest.er1
3605   cat conftest.err >&5
3606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); } && {
3608          test -z "$ac_c_werror_flag" ||
3609          test ! -s conftest.err
3610        } && test -s conftest.$ac_objext; then
3611   ac_cv_prog_cc_c89=$ac_arg
3612 else
3613   $as_echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3615
3616
3617 fi
3618
3619 rm -f core conftest.err conftest.$ac_objext
3620   test "x$ac_cv_prog_cc_c89" != "xno" && break
3621 done
3622 rm -f conftest.$ac_ext
3623 CC=$ac_save_CC
3624
3625 fi
3626 # AC_CACHE_VAL
3627 case "x$ac_cv_prog_cc_c89" in
3628   x)
3629     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3630 $as_echo "none needed" >&6; } ;;
3631   xno)
3632     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3633 $as_echo "unsupported" >&6; } ;;
3634   *)
3635     CC="$CC $ac_cv_prog_cc_c89"
3636     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3637 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3638 esac
3639
3640
3641 ac_ext=c
3642 ac_cpp='$CPP $CPPFLAGS'
3643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646
3647 depcc="$CC"   am_compiler_list=
3648
3649 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3650 $as_echo_n "checking dependency style of $depcc... " >&6; }
3651 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3652   $as_echo_n "(cached) " >&6
3653 else
3654   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3655   # We make a subdir and do the tests there.  Otherwise we can end up
3656   # making bogus files that we don't know about and never remove.  For
3657   # instance it was reported that on HP-UX the gcc test will end up
3658   # making a dummy file named `D' -- because `-MD' means `put the output
3659   # in D'.
3660   mkdir conftest.dir
3661   # Copy depcomp to subdir because otherwise we won't find it if we're
3662   # using a relative directory.
3663   cp "$am_depcomp" conftest.dir
3664   cd conftest.dir
3665   # We will build objects and dependencies in a subdirectory because
3666   # it helps to detect inapplicable dependency modes.  For instance
3667   # both Tru64's cc and ICC support -MD to output dependencies as a
3668   # side effect of compilation, but ICC will put the dependencies in
3669   # the current directory while Tru64 will put them in the object
3670   # directory.
3671   mkdir sub
3672
3673   am_cv_CC_dependencies_compiler_type=none
3674   if test "$am_compiler_list" = ""; then
3675      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3676   fi
3677   am__universal=false
3678   case " $depcc " in #(
3679      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3680      esac
3681
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     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3700     # mode.  It turns out that the SunPro C++ compiler does not properly
3701     # handle `-M -o', and we need to detect this.  Also, some Intel
3702     # versions had trouble with output in subdirs
3703     am__obj=sub/conftest.${OBJEXT-o}
3704     am__minus_obj="-o $am__obj"
3705     case $depmode in
3706     gcc)
3707       # This depmode causes a compiler race in universal mode.
3708       test "$am__universal" = false || continue
3709       ;;
3710     nosideeffect)
3711       # after this tag, mechanisms are not by side-effect, so they'll
3712       # only be used when explicitly requested
3713       if test "x$enable_dependency_tracking" = xyes; then
3714         continue
3715       else
3716         break
3717       fi
3718       ;;
3719     msvisualcpp | msvcmsys)
3720       # This compiler won't grok `-c -o', but also, the minuso test has
3721       # not run yet.  These depmodes are late enough in the game, and
3722       # so weak that their functioning should not be impacted.
3723       am__obj=conftest.${OBJEXT-o}
3724       am__minus_obj=
3725       ;;
3726     none) break ;;
3727     esac
3728     if depmode=$depmode \
3729        source=sub/conftest.c object=$am__obj \
3730        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3731        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3732          >/dev/null 2>conftest.err &&
3733        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3734        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3735        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3736        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3737       # icc doesn't choke on unknown options, it will just issue warnings
3738       # or remarks (even with -Werror).  So we grep stderr for any message
3739       # that says an option was ignored or not supported.
3740       # When given -MP, icc 7.0 and 7.1 complain thusly:
3741       #   icc: Command line warning: ignoring option '-M'; no argument required
3742       # The diagnosis changed in icc 8.0:
3743       #   icc: Command line remark: option '-MP' not supported
3744       if (grep 'ignoring option' conftest.err ||
3745           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3746         am_cv_CC_dependencies_compiler_type=$depmode
3747         break
3748       fi
3749     fi
3750   done
3751
3752   cd ..
3753   rm -rf conftest.dir
3754 else
3755   am_cv_CC_dependencies_compiler_type=none
3756 fi
3757
3758 fi
3759 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3760 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3761 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3762
3763  if
3764   test "x$enable_dependency_tracking" != xno \
3765   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3766   am__fastdepCC_TRUE=
3767   am__fastdepCC_FALSE='#'
3768 else
3769   am__fastdepCC_TRUE='#'
3770   am__fastdepCC_FALSE=
3771 fi
3772
3773
3774
3775 { $as_echo "$as_me:$LINENO: checking whether basename is declared" >&5
3776 $as_echo_n "checking whether basename is declared... " >&6; }
3777 if test "${ac_cv_have_decl_basename+set}" = set; then
3778   $as_echo_n "(cached) " >&6
3779 else
3780   cat >conftest.$ac_ext <<_ACEOF
3781 /* confdefs.h.  */
3782 _ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h.  */
3786 #include <libgen.h>
3787
3788 int
3789 main ()
3790 {
3791 #ifndef basename
3792   (void) basename;
3793 #endif
3794
3795   ;
3796   return 0;
3797 }
3798 _ACEOF
3799 rm -f conftest.$ac_objext
3800 if { (ac_try="$ac_compile"
3801 case "(($ac_try" in
3802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803   *) ac_try_echo=$ac_try;;
3804 esac
3805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3806 $as_echo "$ac_try_echo") >&5
3807   (eval "$ac_compile") 2>conftest.er1
3808   ac_status=$?
3809   grep -v '^ *+' conftest.er1 >conftest.err
3810   rm -f conftest.er1
3811   cat conftest.err >&5
3812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813   (exit $ac_status); } && {
3814          test -z "$ac_c_werror_flag" ||
3815          test ! -s conftest.err
3816        } && test -s conftest.$ac_objext; then
3817   ac_cv_have_decl_basename=yes
3818 else
3819   $as_echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3821
3822         ac_cv_have_decl_basename=no
3823 fi
3824
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 fi
3827 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
3828 $as_echo "$ac_cv_have_decl_basename" >&6; }
3829 if test "x$ac_cv_have_decl_basename" = x""yes; then
3830
3831 cat >>confdefs.h <<_ACEOF
3832 #define HAVE_DECL_BASENAME 1
3833 _ACEOF
3834
3835
3836 else
3837   cat >>confdefs.h <<_ACEOF
3838 #define HAVE_DECL_BASENAME 0
3839 _ACEOF
3840
3841
3842 fi
3843
3844
3845 if test -n "$ac_tool_prefix"; then
3846   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3848 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3849 $as_echo_n "checking for $ac_word... " >&6; }
3850 if test "${ac_cv_prog_RANLIB+set}" = set; then
3851   $as_echo_n "(cached) " >&6
3852 else
3853   if test -n "$RANLIB"; then
3854   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3855 else
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3858 do
3859   IFS=$as_save_IFS
3860   test -z "$as_dir" && as_dir=.
3861   for ac_exec_ext in '' $ac_executable_extensions; do
3862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3863     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3864     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3865     break 2
3866   fi
3867 done
3868 done
3869 IFS=$as_save_IFS
3870
3871 fi
3872 fi
3873 RANLIB=$ac_cv_prog_RANLIB
3874 if test -n "$RANLIB"; then
3875   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3876 $as_echo "$RANLIB" >&6; }
3877 else
3878   { $as_echo "$as_me:$LINENO: result: no" >&5
3879 $as_echo "no" >&6; }
3880 fi
3881
3882
3883 fi
3884 if test -z "$ac_cv_prog_RANLIB"; then
3885   ac_ct_RANLIB=$RANLIB
3886   # Extract the first word of "ranlib", so it can be a program name with args.
3887 set dummy ranlib; ac_word=$2
3888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3889 $as_echo_n "checking for $ac_word... " >&6; }
3890 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3891   $as_echo_n "(cached) " >&6
3892 else
3893   if test -n "$ac_ct_RANLIB"; then
3894   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3895 else
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH
3898 do
3899   IFS=$as_save_IFS
3900   test -z "$as_dir" && as_dir=.
3901   for ac_exec_ext in '' $ac_executable_extensions; do
3902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3903     ac_cv_prog_ac_ct_RANLIB="ranlib"
3904     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3905     break 2
3906   fi
3907 done
3908 done
3909 IFS=$as_save_IFS
3910
3911 fi
3912 fi
3913 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3914 if test -n "$ac_ct_RANLIB"; then
3915   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3916 $as_echo "$ac_ct_RANLIB" >&6; }
3917 else
3918   { $as_echo "$as_me:$LINENO: result: no" >&5
3919 $as_echo "no" >&6; }
3920 fi
3921
3922   if test "x$ac_ct_RANLIB" = x; then
3923     RANLIB=":"
3924   else
3925     case $cross_compiling:$ac_tool_warned in
3926 yes:)
3927 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3929 ac_tool_warned=yes ;;
3930 esac
3931     RANLIB=$ac_ct_RANLIB
3932   fi
3933 else
3934   RANLIB="$ac_cv_prog_RANLIB"
3935 fi
3936
3937 case `pwd` in
3938   *\ * | *\     *)
3939     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3940 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3941 esac
3942
3943
3944
3945 macro_version='2.2.6b'
3946 macro_revision='1.3017'
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960 ltmain="$ac_aux_dir/ltmain.sh"
3961
3962 # Make sure we can run config.sub.
3963 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3964   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3965 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3966    { (exit 1); exit 1; }; }
3967
3968 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3969 $as_echo_n "checking build system type... " >&6; }
3970 if test "${ac_cv_build+set}" = set; then
3971   $as_echo_n "(cached) " >&6
3972 else
3973   ac_build_alias=$build_alias
3974 test "x$ac_build_alias" = x &&
3975   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3976 test "x$ac_build_alias" = x &&
3977   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3978 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3979    { (exit 1); exit 1; }; }
3980 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3981   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3982 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3983    { (exit 1); exit 1; }; }
3984
3985 fi
3986 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3987 $as_echo "$ac_cv_build" >&6; }
3988 case $ac_cv_build in
3989 *-*-*) ;;
3990 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3991 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3992    { (exit 1); exit 1; }; };;
3993 esac
3994 build=$ac_cv_build
3995 ac_save_IFS=$IFS; IFS='-'
3996 set x $ac_cv_build
3997 shift
3998 build_cpu=$1
3999 build_vendor=$2
4000 shift; shift
4001 # Remember, the first character of IFS is used to create $*,
4002 # except with old shells:
4003 build_os=$*
4004 IFS=$ac_save_IFS
4005 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4006
4007
4008 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4009 $as_echo_n "checking host system type... " >&6; }
4010 if test "${ac_cv_host+set}" = set; then
4011   $as_echo_n "(cached) " >&6
4012 else
4013   if test "x$host_alias" = x; then
4014   ac_cv_host=$ac_cv_build
4015 else
4016   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4017     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4018 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4019    { (exit 1); exit 1; }; }
4020 fi
4021
4022 fi
4023 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4024 $as_echo "$ac_cv_host" >&6; }
4025 case $ac_cv_host in
4026 *-*-*) ;;
4027 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4028 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4029    { (exit 1); exit 1; }; };;
4030 esac
4031 host=$ac_cv_host
4032 ac_save_IFS=$IFS; IFS='-'
4033 set x $ac_cv_host
4034 shift
4035 host_cpu=$1
4036 host_vendor=$2
4037 shift; shift
4038 # Remember, the first character of IFS is used to create $*,
4039 # except with old shells:
4040 host_os=$*
4041 IFS=$ac_save_IFS
4042 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4043
4044
4045 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4046 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4047 if test "${ac_cv_path_SED+set}" = set; then
4048   $as_echo_n "(cached) " >&6
4049 else
4050             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4051      for ac_i in 1 2 3 4 5 6 7; do
4052        ac_script="$ac_script$as_nl$ac_script"
4053      done
4054      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4055      $as_unset ac_script || ac_script=
4056      if test -z "$SED"; then
4057   ac_path_SED_found=false
4058   # Loop through the user's path and test for each of PROGNAME-LIST
4059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4061 do
4062   IFS=$as_save_IFS
4063   test -z "$as_dir" && as_dir=.
4064   for ac_prog in sed gsed; do
4065     for ac_exec_ext in '' $ac_executable_extensions; do
4066       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4067       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4068 # Check for GNU ac_path_SED and select it if it is found.
4069   # Check for GNU $ac_path_SED
4070 case `"$ac_path_SED" --version 2>&1` in
4071 *GNU*)
4072   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4073 *)
4074   ac_count=0
4075   $as_echo_n 0123456789 >"conftest.in"
4076   while :
4077   do
4078     cat "conftest.in" "conftest.in" >"conftest.tmp"
4079     mv "conftest.tmp" "conftest.in"
4080     cp "conftest.in" "conftest.nl"
4081     $as_echo '' >> "conftest.nl"
4082     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4083     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4084     ac_count=`expr $ac_count + 1`
4085     if test $ac_count -gt ${ac_path_SED_max-0}; then
4086       # Best one so far, save it but keep looking for a better one
4087       ac_cv_path_SED="$ac_path_SED"
4088       ac_path_SED_max=$ac_count
4089     fi
4090     # 10*(2^10) chars as input seems more than enough
4091     test $ac_count -gt 10 && break
4092   done
4093   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4094 esac
4095
4096       $ac_path_SED_found && break 3
4097     done
4098   done
4099 done
4100 IFS=$as_save_IFS
4101   if test -z "$ac_cv_path_SED"; then
4102     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4103 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4104    { (exit 1); exit 1; }; }
4105   fi
4106 else
4107   ac_cv_path_SED=$SED
4108 fi
4109
4110 fi
4111 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4112 $as_echo "$ac_cv_path_SED" >&6; }
4113  SED="$ac_cv_path_SED"
4114   rm -f conftest.sed
4115
4116 test -z "$SED" && SED=sed
4117 Xsed="$SED -e 1s/^X//"
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4130 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4131 if test "${ac_cv_path_GREP+set}" = set; then
4132   $as_echo_n "(cached) " >&6
4133 else
4134   if test -z "$GREP"; then
4135   ac_path_GREP_found=false
4136   # Loop through the user's path and test for each of PROGNAME-LIST
4137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4139 do
4140   IFS=$as_save_IFS
4141   test -z "$as_dir" && as_dir=.
4142   for ac_prog in grep ggrep; do
4143     for ac_exec_ext in '' $ac_executable_extensions; do
4144       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4145       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4146 # Check for GNU ac_path_GREP and select it if it is found.
4147   # Check for GNU $ac_path_GREP
4148 case `"$ac_path_GREP" --version 2>&1` in
4149 *GNU*)
4150   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4151 *)
4152   ac_count=0
4153   $as_echo_n 0123456789 >"conftest.in"
4154   while :
4155   do
4156     cat "conftest.in" "conftest.in" >"conftest.tmp"
4157     mv "conftest.tmp" "conftest.in"
4158     cp "conftest.in" "conftest.nl"
4159     $as_echo 'GREP' >> "conftest.nl"
4160     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4161     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4162     ac_count=`expr $ac_count + 1`
4163     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4164       # Best one so far, save it but keep looking for a better one
4165       ac_cv_path_GREP="$ac_path_GREP"
4166       ac_path_GREP_max=$ac_count
4167     fi
4168     # 10*(2^10) chars as input seems more than enough
4169     test $ac_count -gt 10 && break
4170   done
4171   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4172 esac
4173
4174       $ac_path_GREP_found && break 3
4175     done
4176   done
4177 done
4178 IFS=$as_save_IFS
4179   if test -z "$ac_cv_path_GREP"; then
4180     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4181 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4182    { (exit 1); exit 1; }; }
4183   fi
4184 else
4185   ac_cv_path_GREP=$GREP
4186 fi
4187
4188 fi
4189 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4190 $as_echo "$ac_cv_path_GREP" >&6; }
4191  GREP="$ac_cv_path_GREP"
4192
4193
4194 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4195 $as_echo_n "checking for egrep... " >&6; }
4196 if test "${ac_cv_path_EGREP+set}" = set; then
4197   $as_echo_n "(cached) " >&6
4198 else
4199   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4200    then ac_cv_path_EGREP="$GREP -E"
4201    else
4202      if test -z "$EGREP"; then
4203   ac_path_EGREP_found=false
4204   # Loop through the user's path and test for each of PROGNAME-LIST
4205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4207 do
4208   IFS=$as_save_IFS
4209   test -z "$as_dir" && as_dir=.
4210   for ac_prog in egrep; do
4211     for ac_exec_ext in '' $ac_executable_extensions; do
4212       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4213       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4214 # Check for GNU ac_path_EGREP and select it if it is found.
4215   # Check for GNU $ac_path_EGREP
4216 case `"$ac_path_EGREP" --version 2>&1` in
4217 *GNU*)
4218   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4219 *)
4220   ac_count=0
4221   $as_echo_n 0123456789 >"conftest.in"
4222   while :
4223   do
4224     cat "conftest.in" "conftest.in" >"conftest.tmp"
4225     mv "conftest.tmp" "conftest.in"
4226     cp "conftest.in" "conftest.nl"
4227     $as_echo 'EGREP' >> "conftest.nl"
4228     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4229     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4230     ac_count=`expr $ac_count + 1`
4231     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4232       # Best one so far, save it but keep looking for a better one
4233       ac_cv_path_EGREP="$ac_path_EGREP"
4234       ac_path_EGREP_max=$ac_count
4235     fi
4236     # 10*(2^10) chars as input seems more than enough
4237     test $ac_count -gt 10 && break
4238   done
4239   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4240 esac
4241
4242       $ac_path_EGREP_found && break 3
4243     done
4244   done
4245 done
4246 IFS=$as_save_IFS
4247   if test -z "$ac_cv_path_EGREP"; then
4248     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4249 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4250    { (exit 1); exit 1; }; }
4251   fi
4252 else
4253   ac_cv_path_EGREP=$EGREP
4254 fi
4255
4256    fi
4257 fi
4258 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4259 $as_echo "$ac_cv_path_EGREP" >&6; }
4260  EGREP="$ac_cv_path_EGREP"
4261
4262
4263 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4264 $as_echo_n "checking for fgrep... " >&6; }
4265 if test "${ac_cv_path_FGREP+set}" = set; then
4266   $as_echo_n "(cached) " >&6
4267 else
4268   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4269    then ac_cv_path_FGREP="$GREP -F"
4270    else
4271      if test -z "$FGREP"; then
4272   ac_path_FGREP_found=false
4273   # Loop through the user's path and test for each of PROGNAME-LIST
4274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4276 do
4277   IFS=$as_save_IFS
4278   test -z "$as_dir" && as_dir=.
4279   for ac_prog in fgrep; do
4280     for ac_exec_ext in '' $ac_executable_extensions; do
4281       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4282       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4283 # Check for GNU ac_path_FGREP and select it if it is found.
4284   # Check for GNU $ac_path_FGREP
4285 case `"$ac_path_FGREP" --version 2>&1` in
4286 *GNU*)
4287   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4288 *)
4289   ac_count=0
4290   $as_echo_n 0123456789 >"conftest.in"
4291   while :
4292   do
4293     cat "conftest.in" "conftest.in" >"conftest.tmp"
4294     mv "conftest.tmp" "conftest.in"
4295     cp "conftest.in" "conftest.nl"
4296     $as_echo 'FGREP' >> "conftest.nl"
4297     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4298     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4299     ac_count=`expr $ac_count + 1`
4300     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4301       # Best one so far, save it but keep looking for a better one
4302       ac_cv_path_FGREP="$ac_path_FGREP"
4303       ac_path_FGREP_max=$ac_count
4304     fi
4305     # 10*(2^10) chars as input seems more than enough
4306     test $ac_count -gt 10 && break
4307   done
4308   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4309 esac
4310
4311       $ac_path_FGREP_found && break 3
4312     done
4313   done
4314 done
4315 IFS=$as_save_IFS
4316   if test -z "$ac_cv_path_FGREP"; then
4317     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4318 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4319    { (exit 1); exit 1; }; }
4320   fi
4321 else
4322   ac_cv_path_FGREP=$FGREP
4323 fi
4324
4325    fi
4326 fi
4327 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4328 $as_echo "$ac_cv_path_FGREP" >&6; }
4329  FGREP="$ac_cv_path_FGREP"
4330
4331
4332 test -z "$GREP" && GREP=grep
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352 # Check whether --with-gnu-ld was given.
4353 if test "${with_gnu_ld+set}" = set; then
4354   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4355 else
4356   with_gnu_ld=no
4357 fi
4358
4359 ac_prog=ld
4360 if test "$GCC" = yes; then
4361   # Check if gcc -print-prog-name=ld gives a path.
4362   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4363 $as_echo_n "checking for ld used by $CC... " >&6; }
4364   case $host in
4365   *-*-mingw*)
4366     # gcc leaves a trailing carriage return which upsets mingw
4367     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4368   *)
4369     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4370   esac
4371   case $ac_prog in
4372     # Accept absolute paths.
4373     [\\/]* | ?:[\\/]*)
4374       re_direlt='/[^/][^/]*/\.\./'
4375       # Canonicalize the pathname of ld
4376       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4377       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4378         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4379       done
4380       test -z "$LD" && LD="$ac_prog"
4381       ;;
4382   "")
4383     # If it fails, then pretend we aren't using GCC.
4384     ac_prog=ld
4385     ;;
4386   *)
4387     # If it is relative, then search for the first ld in PATH.
4388     with_gnu_ld=unknown
4389     ;;
4390   esac
4391 elif test "$with_gnu_ld" = yes; then
4392   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4393 $as_echo_n "checking for GNU ld... " >&6; }
4394 else
4395   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4396 $as_echo_n "checking for non-GNU ld... " >&6; }
4397 fi
4398 if test "${lt_cv_path_LD+set}" = set; then
4399   $as_echo_n "(cached) " >&6
4400 else
4401   if test -z "$LD"; then
4402   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4403   for ac_dir in $PATH; do
4404     IFS="$lt_save_ifs"
4405     test -z "$ac_dir" && ac_dir=.
4406     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4407       lt_cv_path_LD="$ac_dir/$ac_prog"
4408       # Check to see if the program is GNU ld.  I'd rather use --version,
4409       # but apparently some variants of GNU ld only accept -v.
4410       # Break only if it was the GNU/non-GNU ld that we prefer.
4411       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4412       *GNU* | *'with BFD'*)
4413         test "$with_gnu_ld" != no && break
4414         ;;
4415       *)
4416         test "$with_gnu_ld" != yes && break
4417         ;;
4418       esac
4419     fi
4420   done
4421   IFS="$lt_save_ifs"
4422 else
4423   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4424 fi
4425 fi
4426
4427 LD="$lt_cv_path_LD"
4428 if test -n "$LD"; then
4429   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4430 $as_echo "$LD" >&6; }
4431 else
4432   { $as_echo "$as_me:$LINENO: result: no" >&5
4433 $as_echo "no" >&6; }
4434 fi
4435 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4436 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4437    { (exit 1); exit 1; }; }
4438 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4439 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4440 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4441   $as_echo_n "(cached) " >&6
4442 else
4443   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4444 case `$LD -v 2>&1 </dev/null` in
4445 *GNU* | *'with BFD'*)
4446   lt_cv_prog_gnu_ld=yes
4447   ;;
4448 *)
4449   lt_cv_prog_gnu_ld=no
4450   ;;
4451 esac
4452 fi
4453 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4454 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4455 with_gnu_ld=$lt_cv_prog_gnu_ld
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4466 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4467 if test "${lt_cv_path_NM+set}" = set; then
4468   $as_echo_n "(cached) " >&6
4469 else
4470   if test -n "$NM"; then
4471   # Let the user override the test.
4472   lt_cv_path_NM="$NM"
4473 else
4474   lt_nm_to_check="${ac_tool_prefix}nm"
4475   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4476     lt_nm_to_check="$lt_nm_to_check nm"
4477   fi
4478   for lt_tmp_nm in $lt_nm_to_check; do
4479     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4480     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4481       IFS="$lt_save_ifs"
4482       test -z "$ac_dir" && ac_dir=.
4483       tmp_nm="$ac_dir/$lt_tmp_nm"
4484       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4485         # Check to see if the nm accepts a BSD-compat flag.
4486         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4487         #   nm: unknown option "B" ignored
4488         # Tru64's nm complains that /dev/null is an invalid object file
4489         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4490         */dev/null* | *'Invalid file or object type'*)
4491           lt_cv_path_NM="$tmp_nm -B"
4492           break
4493           ;;
4494         *)
4495           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4496           */dev/null*)
4497             lt_cv_path_NM="$tmp_nm -p"
4498             break
4499             ;;
4500           *)
4501             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4502             continue # so that we can try to find one that supports BSD flags
4503             ;;
4504           esac
4505           ;;
4506         esac
4507       fi
4508     done
4509     IFS="$lt_save_ifs"
4510   done
4511   : ${lt_cv_path_NM=no}
4512 fi
4513 fi
4514 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4515 $as_echo "$lt_cv_path_NM" >&6; }
4516 if test "$lt_cv_path_NM" != "no"; then
4517   NM="$lt_cv_path_NM"
4518 else
4519   # Didn't find any BSD compatible name lister, look for dumpbin.
4520   if test -n "$ac_tool_prefix"; then
4521   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4522   do
4523     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4525 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4528   $as_echo_n "(cached) " >&6
4529 else
4530   if test -n "$DUMPBIN"; then
4531   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536   IFS=$as_save_IFS
4537   test -z "$as_dir" && as_dir=.
4538   for ac_exec_ext in '' $ac_executable_extensions; do
4539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4541     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542     break 2
4543   fi
4544 done
4545 done
4546 IFS=$as_save_IFS
4547
4548 fi
4549 fi
4550 DUMPBIN=$ac_cv_prog_DUMPBIN
4551 if test -n "$DUMPBIN"; then
4552   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4553 $as_echo "$DUMPBIN" >&6; }
4554 else
4555   { $as_echo "$as_me:$LINENO: result: no" >&5
4556 $as_echo "no" >&6; }
4557 fi
4558
4559
4560     test -n "$DUMPBIN" && break
4561   done
4562 fi
4563 if test -z "$DUMPBIN"; then
4564   ac_ct_DUMPBIN=$DUMPBIN
4565   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4566 do
4567   # Extract the first word of "$ac_prog", so it can be a program name with args.
4568 set dummy $ac_prog; ac_word=$2
4569 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4572   $as_echo_n "(cached) " >&6
4573 else
4574   if test -n "$ac_ct_DUMPBIN"; then
4575   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4576 else
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580   IFS=$as_save_IFS
4581   test -z "$as_dir" && as_dir=.
4582   for ac_exec_ext in '' $ac_executable_extensions; do
4583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4585     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586     break 2
4587   fi
4588 done
4589 done
4590 IFS=$as_save_IFS
4591
4592 fi
4593 fi
4594 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4595 if test -n "$ac_ct_DUMPBIN"; then
4596   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4597 $as_echo "$ac_ct_DUMPBIN" >&6; }
4598 else
4599   { $as_echo "$as_me:$LINENO: result: no" >&5
4600 $as_echo "no" >&6; }
4601 fi
4602
4603
4604   test -n "$ac_ct_DUMPBIN" && break
4605 done
4606
4607   if test "x$ac_ct_DUMPBIN" = x; then
4608     DUMPBIN=":"
4609   else
4610     case $cross_compiling:$ac_tool_warned in
4611 yes:)
4612 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4614 ac_tool_warned=yes ;;
4615 esac
4616     DUMPBIN=$ac_ct_DUMPBIN
4617   fi
4618 fi
4619
4620
4621   if test "$DUMPBIN" != ":"; then
4622     NM="$DUMPBIN"
4623   fi
4624 fi
4625 test -z "$NM" && NM=nm
4626
4627
4628
4629
4630
4631
4632 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4633 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4634 if test "${lt_cv_nm_interface+set}" = set; then
4635   $as_echo_n "(cached) " >&6
4636 else
4637   lt_cv_nm_interface="BSD nm"
4638   echo "int some_variable = 0;" > conftest.$ac_ext
4639   (eval echo "\"\$as_me:4639: $ac_compile\"" >&5)
4640   (eval "$ac_compile" 2>conftest.err)
4641   cat conftest.err >&5
4642   (eval echo "\"\$as_me:4642: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4643   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4644   cat conftest.err >&5
4645   (eval echo "\"\$as_me:4645: output\"" >&5)
4646   cat conftest.out >&5
4647   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4648     lt_cv_nm_interface="MS dumpbin"
4649   fi
4650   rm -f conftest*
4651 fi
4652 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4653 $as_echo "$lt_cv_nm_interface" >&6; }
4654
4655 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4656 $as_echo_n "checking whether ln -s works... " >&6; }
4657 LN_S=$as_ln_s
4658 if test "$LN_S" = "ln -s"; then
4659   { $as_echo "$as_me:$LINENO: result: yes" >&5
4660 $as_echo "yes" >&6; }
4661 else
4662   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4663 $as_echo "no, using $LN_S" >&6; }
4664 fi
4665
4666 # find the maximum length of command line arguments
4667 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4668 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4669 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4670   $as_echo_n "(cached) " >&6
4671 else
4672     i=0
4673   teststring="ABCD"
4674
4675   case $build_os in
4676   msdosdjgpp*)
4677     # On DJGPP, this test can blow up pretty badly due to problems in libc
4678     # (any single argument exceeding 2000 bytes causes a buffer overrun
4679     # during glob expansion).  Even if it were fixed, the result of this
4680     # check would be larger than it should be.
4681     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4682     ;;
4683
4684   gnu*)
4685     # Under GNU Hurd, this test is not required because there is
4686     # no limit to the length of command line arguments.
4687     # Libtool will interpret -1 as no limit whatsoever
4688     lt_cv_sys_max_cmd_len=-1;
4689     ;;
4690
4691   cygwin* | mingw* | cegcc*)
4692     # On Win9x/ME, this test blows up -- it succeeds, but takes
4693     # about 5 minutes as the teststring grows exponentially.
4694     # Worse, since 9x/ME are not pre-emptively multitasking,
4695     # you end up with a "frozen" computer, even though with patience
4696     # the test eventually succeeds (with a max line length of 256k).
4697     # Instead, let's just punt: use the minimum linelength reported by
4698     # all of the supported platforms: 8192 (on NT/2K/XP).
4699     lt_cv_sys_max_cmd_len=8192;
4700     ;;
4701
4702   amigaos*)
4703     # On AmigaOS with pdksh, this test takes hours, literally.
4704     # So we just punt and use a minimum line length of 8192.
4705     lt_cv_sys_max_cmd_len=8192;
4706     ;;
4707
4708   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4709     # This has been around since 386BSD, at least.  Likely further.
4710     if test -x /sbin/sysctl; then
4711       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4712     elif test -x /usr/sbin/sysctl; then
4713       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4714     else
4715       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4716     fi
4717     # And add a safety zone
4718     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4719     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4720     ;;
4721
4722   interix*)
4723     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4724     lt_cv_sys_max_cmd_len=196608
4725     ;;
4726
4727   osf*)
4728     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4729     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4730     # nice to cause kernel panics so lets avoid the loop below.
4731     # First set a reasonable default.
4732     lt_cv_sys_max_cmd_len=16384
4733     #
4734     if test -x /sbin/sysconfig; then
4735       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4736         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4737       esac
4738     fi
4739     ;;
4740   sco3.2v5*)
4741     lt_cv_sys_max_cmd_len=102400
4742     ;;
4743   sysv5* | sco5v6* | sysv4.2uw2*)
4744     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4745     if test -n "$kargmax"; then
4746       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4747     else
4748       lt_cv_sys_max_cmd_len=32768
4749     fi
4750     ;;
4751   *)
4752     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4753     if test -n "$lt_cv_sys_max_cmd_len"; then
4754       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4755       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4756     else
4757       # Make teststring a little bigger before we do anything with it.
4758       # a 1K string should be a reasonable start.
4759       for i in 1 2 3 4 5 6 7 8 ; do
4760         teststring=$teststring$teststring
4761       done
4762       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4763       # If test is not a shell built-in, we'll probably end up computing a
4764       # maximum length that is only half of the actual maximum length, but
4765       # we can't tell.
4766       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4767                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4768               test $i != 17 # 1/2 MB should be enough
4769       do
4770         i=`expr $i + 1`
4771         teststring=$teststring$teststring
4772       done
4773       # Only check the string length outside the loop.
4774       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4775       teststring=
4776       # Add a significant safety factor because C++ compilers can tack on
4777       # massive amounts of additional arguments before passing them to the
4778       # linker.  It appears as though 1/2 is a usable value.
4779       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4780     fi
4781     ;;
4782   esac
4783
4784 fi
4785
4786 if test -n $lt_cv_sys_max_cmd_len ; then
4787   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4788 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4789 else
4790   { $as_echo "$as_me:$LINENO: result: none" >&5
4791 $as_echo "none" >&6; }
4792 fi
4793 max_cmd_len=$lt_cv_sys_max_cmd_len
4794
4795
4796
4797
4798
4799
4800 : ${CP="cp -f"}
4801 : ${MV="mv -f"}
4802 : ${RM="rm -f"}
4803
4804 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4805 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4806 # Try some XSI features
4807 xsi_shell=no
4808 ( _lt_dummy="a/b/c"
4809   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4810       = c,a/b,, \
4811     && eval 'test $(( 1 + 1 )) -eq 2 \
4812     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4813   && xsi_shell=yes
4814 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4815 $as_echo "$xsi_shell" >&6; }
4816
4817
4818 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4819 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4820 lt_shell_append=no
4821 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4822     >/dev/null 2>&1 \
4823   && lt_shell_append=yes
4824 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4825 $as_echo "$lt_shell_append" >&6; }
4826
4827
4828 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4829   lt_unset=unset
4830 else
4831   lt_unset=false
4832 fi
4833
4834
4835
4836
4837
4838 # test EBCDIC or ASCII
4839 case `echo X|tr X '\101'` in
4840  A) # ASCII based system
4841     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4842   lt_SP2NL='tr \040 \012'
4843   lt_NL2SP='tr \015\012 \040\040'
4844   ;;
4845  *) # EBCDIC based system
4846   lt_SP2NL='tr \100 \n'
4847   lt_NL2SP='tr \r\n \100\100'
4848   ;;
4849 esac
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4860 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4861 if test "${lt_cv_ld_reload_flag+set}" = set; then
4862   $as_echo_n "(cached) " >&6
4863 else
4864   lt_cv_ld_reload_flag='-r'
4865 fi
4866 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4867 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4868 reload_flag=$lt_cv_ld_reload_flag
4869 case $reload_flag in
4870 "" | " "*) ;;
4871 *) reload_flag=" $reload_flag" ;;
4872 esac
4873 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4874 case $host_os in
4875   darwin*)
4876     if test "$GCC" = yes; then
4877       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4878     else
4879       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4880     fi
4881     ;;
4882 esac
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892 if test -n "$ac_tool_prefix"; then
4893   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4894 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4895 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4898   $as_echo_n "(cached) " >&6
4899 else
4900   if test -n "$OBJDUMP"; then
4901   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906   IFS=$as_save_IFS
4907   test -z "$as_dir" && as_dir=.
4908   for ac_exec_ext in '' $ac_executable_extensions; do
4909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4911     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912     break 2
4913   fi
4914 done
4915 done
4916 IFS=$as_save_IFS
4917
4918 fi
4919 fi
4920 OBJDUMP=$ac_cv_prog_OBJDUMP
4921 if test -n "$OBJDUMP"; then
4922   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4923 $as_echo "$OBJDUMP" >&6; }
4924 else
4925   { $as_echo "$as_me:$LINENO: result: no" >&5
4926 $as_echo "no" >&6; }
4927 fi
4928
4929
4930 fi
4931 if test -z "$ac_cv_prog_OBJDUMP"; then
4932   ac_ct_OBJDUMP=$OBJDUMP
4933   # Extract the first word of "objdump", so it can be a program name with args.
4934 set dummy objdump; ac_word=$2
4935 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4938   $as_echo_n "(cached) " >&6
4939 else
4940   if test -n "$ac_ct_OBJDUMP"; then
4941   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946   IFS=$as_save_IFS
4947   test -z "$as_dir" && as_dir=.
4948   for ac_exec_ext in '' $ac_executable_extensions; do
4949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4951     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952     break 2
4953   fi
4954 done
4955 done
4956 IFS=$as_save_IFS
4957
4958 fi
4959 fi
4960 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4961 if test -n "$ac_ct_OBJDUMP"; then
4962   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4963 $as_echo "$ac_ct_OBJDUMP" >&6; }
4964 else
4965   { $as_echo "$as_me:$LINENO: result: no" >&5
4966 $as_echo "no" >&6; }
4967 fi
4968
4969   if test "x$ac_ct_OBJDUMP" = x; then
4970     OBJDUMP="false"
4971   else
4972     case $cross_compiling:$ac_tool_warned in
4973 yes:)
4974 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4976 ac_tool_warned=yes ;;
4977 esac
4978     OBJDUMP=$ac_ct_OBJDUMP
4979   fi
4980 else
4981   OBJDUMP="$ac_cv_prog_OBJDUMP"
4982 fi
4983
4984 test -z "$OBJDUMP" && OBJDUMP=objdump
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4995 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4996 if test "${lt_cv_deplibs_check_method+set}" = set; then
4997   $as_echo_n "(cached) " >&6
4998 else
4999   lt_cv_file_magic_cmd='$MAGIC_CMD'
5000 lt_cv_file_magic_test_file=
5001 lt_cv_deplibs_check_method='unknown'
5002 # Need to set the preceding variable on all platforms that support
5003 # interlibrary dependencies.
5004 # 'none' -- dependencies not supported.
5005 # `unknown' -- same as none, but documents that we really don't know.
5006 # 'pass_all' -- all dependencies passed with no checks.
5007 # 'test_compile' -- check by making test program.
5008 # 'file_magic [[regex]]' -- check by looking for files in library path
5009 # which responds to the $file_magic_cmd with a given extended regex.
5010 # If you have `file' or equivalent on your system and you're not sure
5011 # whether `pass_all' will *always* work, you probably want this one.
5012
5013 case $host_os in
5014 aix[4-9]*)
5015   lt_cv_deplibs_check_method=pass_all
5016   ;;
5017
5018 beos*)
5019   lt_cv_deplibs_check_method=pass_all
5020   ;;
5021
5022 bsdi[45]*)
5023   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5024   lt_cv_file_magic_cmd='/usr/bin/file -L'
5025   lt_cv_file_magic_test_file=/shlib/libc.so
5026   ;;
5027
5028 cygwin*)
5029   # func_win32_libid is a shell function defined in ltmain.sh
5030   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5031   lt_cv_file_magic_cmd='func_win32_libid'
5032   ;;
5033
5034 mingw* | pw32*)
5035   # Base MSYS/MinGW do not provide the 'file' command needed by
5036   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5037   # unless we find 'file', for example because we are cross-compiling.
5038   if ( file / ) >/dev/null 2>&1; then
5039     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5040     lt_cv_file_magic_cmd='func_win32_libid'
5041   else
5042     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5043     lt_cv_file_magic_cmd='$OBJDUMP -f'
5044   fi
5045   ;;
5046
5047 cegcc)
5048   # use the weaker test based on 'objdump'. See mingw*.
5049   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5050   lt_cv_file_magic_cmd='$OBJDUMP -f'
5051   ;;
5052
5053 darwin* | rhapsody*)
5054   lt_cv_deplibs_check_method=pass_all
5055   ;;
5056
5057 freebsd* | dragonfly*)
5058   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5059     case $host_cpu in
5060     i*86 )
5061       # Not sure whether the presence of OpenBSD here was a mistake.
5062       # Let's accept both of them until this is cleared up.
5063       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5064       lt_cv_file_magic_cmd=/usr/bin/file
5065       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5066       ;;
5067     esac
5068   else
5069     lt_cv_deplibs_check_method=pass_all
5070   fi
5071   ;;
5072
5073 gnu*)
5074   lt_cv_deplibs_check_method=pass_all
5075   ;;
5076
5077 hpux10.20* | hpux11*)
5078   lt_cv_file_magic_cmd=/usr/bin/file
5079   case $host_cpu in
5080   ia64*)
5081     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5082     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5083     ;;
5084   hppa*64*)
5085     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]'
5086     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5087     ;;
5088   *)
5089     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5090     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5091     ;;
5092   esac
5093   ;;
5094
5095 interix[3-9]*)
5096   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5097   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5098   ;;
5099
5100 irix5* | irix6* | nonstopux*)
5101   case $LD in
5102   *-32|*"-32 ") libmagic=32-bit;;
5103   *-n32|*"-n32 ") libmagic=N32;;
5104   *-64|*"-64 ") libmagic=64-bit;;
5105   *) libmagic=never-match;;
5106   esac
5107   lt_cv_deplibs_check_method=pass_all
5108   ;;
5109
5110 # This must be Linux ELF.
5111 linux* | k*bsd*-gnu)
5112   lt_cv_deplibs_check_method=pass_all
5113   ;;
5114
5115 netbsd*)
5116   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5117     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5118   else
5119     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5120   fi
5121   ;;
5122
5123 newos6*)
5124   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5125   lt_cv_file_magic_cmd=/usr/bin/file
5126   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5127   ;;
5128
5129 *nto* | *qnx*)
5130   lt_cv_deplibs_check_method=pass_all
5131   ;;
5132
5133 openbsd*)
5134   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5135     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5136   else
5137     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5138   fi
5139   ;;
5140
5141 osf3* | osf4* | osf5*)
5142   lt_cv_deplibs_check_method=pass_all
5143   ;;
5144
5145 rdos*)
5146   lt_cv_deplibs_check_method=pass_all
5147   ;;
5148
5149 solaris*)
5150   lt_cv_deplibs_check_method=pass_all
5151   ;;
5152
5153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5154   lt_cv_deplibs_check_method=pass_all
5155   ;;
5156
5157 sysv4 | sysv4.3*)
5158   case $host_vendor in
5159   motorola)
5160     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]'
5161     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5162     ;;
5163   ncr)
5164     lt_cv_deplibs_check_method=pass_all
5165     ;;
5166   sequent)
5167     lt_cv_file_magic_cmd='/bin/file'
5168     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5169     ;;
5170   sni)
5171     lt_cv_file_magic_cmd='/bin/file'
5172     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5173     lt_cv_file_magic_test_file=/lib/libc.so
5174     ;;
5175   siemens)
5176     lt_cv_deplibs_check_method=pass_all
5177     ;;
5178   pc)
5179     lt_cv_deplibs_check_method=pass_all
5180     ;;
5181   esac
5182   ;;
5183
5184 tpf*)
5185   lt_cv_deplibs_check_method=pass_all
5186   ;;
5187 esac
5188
5189 fi
5190 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5191 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5192 file_magic_cmd=$lt_cv_file_magic_cmd
5193 deplibs_check_method=$lt_cv_deplibs_check_method
5194 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207 if test -n "$ac_tool_prefix"; then
5208   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5209 set dummy ${ac_tool_prefix}ar; ac_word=$2
5210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if test "${ac_cv_prog_AR+set}" = set; then
5213   $as_echo_n "(cached) " >&6
5214 else
5215   if test -n "$AR"; then
5216   ac_cv_prog_AR="$AR" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223   for ac_exec_ext in '' $ac_executable_extensions; do
5224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225     ac_cv_prog_AR="${ac_tool_prefix}ar"
5226     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227     break 2
5228   fi
5229 done
5230 done
5231 IFS=$as_save_IFS
5232
5233 fi
5234 fi
5235 AR=$ac_cv_prog_AR
5236 if test -n "$AR"; then
5237   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5238 $as_echo "$AR" >&6; }
5239 else
5240   { $as_echo "$as_me:$LINENO: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243
5244
5245 fi
5246 if test -z "$ac_cv_prog_AR"; then
5247   ac_ct_AR=$AR
5248   # Extract the first word of "ar", so it can be a program name with args.
5249 set dummy ar; ac_word=$2
5250 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5253   $as_echo_n "(cached) " >&6
5254 else
5255   if test -n "$ac_ct_AR"; then
5256   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5257 else
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5260 do
5261   IFS=$as_save_IFS
5262   test -z "$as_dir" && as_dir=.
5263   for ac_exec_ext in '' $ac_executable_extensions; do
5264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265     ac_cv_prog_ac_ct_AR="ar"
5266     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267     break 2
5268   fi
5269 done
5270 done
5271 IFS=$as_save_IFS
5272
5273 fi
5274 fi
5275 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5276 if test -n "$ac_ct_AR"; then
5277   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5278 $as_echo "$ac_ct_AR" >&6; }
5279 else
5280   { $as_echo "$as_me:$LINENO: result: no" >&5
5281 $as_echo "no" >&6; }
5282 fi
5283
5284   if test "x$ac_ct_AR" = x; then
5285     AR="false"
5286   else
5287     case $cross_compiling:$ac_tool_warned in
5288 yes:)
5289 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5291 ac_tool_warned=yes ;;
5292 esac
5293     AR=$ac_ct_AR
5294   fi
5295 else
5296   AR="$ac_cv_prog_AR"
5297 fi
5298
5299 test -z "$AR" && AR=ar
5300 test -z "$AR_FLAGS" && AR_FLAGS=cru
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312 if test -n "$ac_tool_prefix"; then
5313   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5314 set dummy ${ac_tool_prefix}strip; ac_word=$2
5315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if test "${ac_cv_prog_STRIP+set}" = set; then
5318   $as_echo_n "(cached) " >&6
5319 else
5320   if test -n "$STRIP"; then
5321   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326   IFS=$as_save_IFS
5327   test -z "$as_dir" && as_dir=.
5328   for ac_exec_ext in '' $ac_executable_extensions; do
5329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5331     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5332     break 2
5333   fi
5334 done
5335 done
5336 IFS=$as_save_IFS
5337
5338 fi
5339 fi
5340 STRIP=$ac_cv_prog_STRIP
5341 if test -n "$STRIP"; then
5342   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5343 $as_echo "$STRIP" >&6; }
5344 else
5345   { $as_echo "$as_me:$LINENO: result: no" >&5
5346 $as_echo "no" >&6; }
5347 fi
5348
5349
5350 fi
5351 if test -z "$ac_cv_prog_STRIP"; then
5352   ac_ct_STRIP=$STRIP
5353   # Extract the first word of "strip", so it can be a program name with args.
5354 set dummy strip; ac_word=$2
5355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5358   $as_echo_n "(cached) " >&6
5359 else
5360   if test -n "$ac_ct_STRIP"; then
5361   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366   IFS=$as_save_IFS
5367   test -z "$as_dir" && as_dir=.
5368   for ac_exec_ext in '' $ac_executable_extensions; do
5369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370     ac_cv_prog_ac_ct_STRIP="strip"
5371     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372     break 2
5373   fi
5374 done
5375 done
5376 IFS=$as_save_IFS
5377
5378 fi
5379 fi
5380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5381 if test -n "$ac_ct_STRIP"; then
5382   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5383 $as_echo "$ac_ct_STRIP" >&6; }
5384 else
5385   { $as_echo "$as_me:$LINENO: result: no" >&5
5386 $as_echo "no" >&6; }
5387 fi
5388
5389   if test "x$ac_ct_STRIP" = x; then
5390     STRIP=":"
5391   else
5392     case $cross_compiling:$ac_tool_warned in
5393 yes:)
5394 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5396 ac_tool_warned=yes ;;
5397 esac
5398     STRIP=$ac_ct_STRIP
5399   fi
5400 else
5401   STRIP="$ac_cv_prog_STRIP"
5402 fi
5403
5404 test -z "$STRIP" && STRIP=:
5405
5406
5407
5408
5409
5410
5411 if test -n "$ac_tool_prefix"; then
5412   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5413 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if test "${ac_cv_prog_RANLIB+set}" = set; then
5417   $as_echo_n "(cached) " >&6
5418 else
5419   if test -n "$RANLIB"; then
5420   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5421 else
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5424 do
5425   IFS=$as_save_IFS
5426   test -z "$as_dir" && as_dir=.
5427   for ac_exec_ext in '' $ac_executable_extensions; do
5428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5429     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5430     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5431     break 2
5432   fi
5433 done
5434 done
5435 IFS=$as_save_IFS
5436
5437 fi
5438 fi
5439 RANLIB=$ac_cv_prog_RANLIB
5440 if test -n "$RANLIB"; then
5441   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5442 $as_echo "$RANLIB" >&6; }
5443 else
5444   { $as_echo "$as_me:$LINENO: result: no" >&5
5445 $as_echo "no" >&6; }
5446 fi
5447
5448
5449 fi
5450 if test -z "$ac_cv_prog_RANLIB"; then
5451   ac_ct_RANLIB=$RANLIB
5452   # Extract the first word of "ranlib", so it can be a program name with args.
5453 set dummy ranlib; ac_word=$2
5454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5457   $as_echo_n "(cached) " >&6
5458 else
5459   if test -n "$ac_ct_RANLIB"; then
5460   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465   IFS=$as_save_IFS
5466   test -z "$as_dir" && as_dir=.
5467   for ac_exec_ext in '' $ac_executable_extensions; do
5468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469     ac_cv_prog_ac_ct_RANLIB="ranlib"
5470     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5471     break 2
5472   fi
5473 done
5474 done
5475 IFS=$as_save_IFS
5476
5477 fi
5478 fi
5479 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5480 if test -n "$ac_ct_RANLIB"; then
5481   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5482 $as_echo "$ac_ct_RANLIB" >&6; }
5483 else
5484   { $as_echo "$as_me:$LINENO: result: no" >&5
5485 $as_echo "no" >&6; }
5486 fi
5487
5488   if test "x$ac_ct_RANLIB" = x; then
5489     RANLIB=":"
5490   else
5491     case $cross_compiling:$ac_tool_warned in
5492 yes:)
5493 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5495 ac_tool_warned=yes ;;
5496 esac
5497     RANLIB=$ac_ct_RANLIB
5498   fi
5499 else
5500   RANLIB="$ac_cv_prog_RANLIB"
5501 fi
5502
5503 test -z "$RANLIB" && RANLIB=:
5504
5505
5506
5507
5508
5509
5510 # Determine commands to create old-style static archives.
5511 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5512 old_postinstall_cmds='chmod 644 $oldlib'
5513 old_postuninstall_cmds=
5514
5515 if test -n "$RANLIB"; then
5516   case $host_os in
5517   openbsd*)
5518     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5519     ;;
5520   *)
5521     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5522     ;;
5523   esac
5524   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5525 fi
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560 # If no C compiler was specified, use CC.
5561 LTCC=${LTCC-"$CC"}
5562
5563 # If no C compiler flags were specified, use CFLAGS.
5564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5565
5566 # Allow CC to be a program name with arguments.
5567 compiler=$CC
5568
5569
5570 # Check for command to grab the raw symbol name followed by C symbol from nm.
5571 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5572 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5573 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5574   $as_echo_n "(cached) " >&6
5575 else
5576
5577 # These are sane defaults that work on at least a few old systems.
5578 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5579
5580 # Character class describing NM global symbol codes.
5581 symcode='[BCDEGRST]'
5582
5583 # Regexp to match symbols that can be accessed directly from C.
5584 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5585
5586 # Define system-specific variables.
5587 case $host_os in
5588 aix*)
5589   symcode='[BCDT]'
5590   ;;
5591 cygwin* | mingw* | pw32* | cegcc*)
5592   symcode='[ABCDGISTW]'
5593   ;;
5594 hpux*)
5595   if test "$host_cpu" = ia64; then
5596     symcode='[ABCDEGRST]'
5597   fi
5598   ;;
5599 irix* | nonstopux*)
5600   symcode='[BCDEGRST]'
5601   ;;
5602 osf*)
5603   symcode='[BCDEGQRST]'
5604   ;;
5605 solaris*)
5606   symcode='[BDRT]'
5607   ;;
5608 sco3.2v5*)
5609   symcode='[DT]'
5610   ;;
5611 sysv4.2uw2*)
5612   symcode='[DT]'
5613   ;;
5614 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5615   symcode='[ABDT]'
5616   ;;
5617 sysv4)
5618   symcode='[DFNSTU]'
5619   ;;
5620 esac
5621
5622 # If we're using GNU nm, then use its standard symbol codes.
5623 case `$NM -V 2>&1` in
5624 *GNU* | *'with BFD'*)
5625   symcode='[ABCDGIRSTW]' ;;
5626 esac
5627
5628 # Transform an extracted symbol line into a proper C declaration.
5629 # Some systems (esp. on ia64) link data and code symbols differently,
5630 # so use this general approach.
5631 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5632
5633 # Transform an extracted symbol line into symbol name and symbol address
5634 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5635 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'"
5636
5637 # Handle CRLF in mingw tool chain
5638 opt_cr=
5639 case $build_os in
5640 mingw*)
5641   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5642   ;;
5643 esac
5644
5645 # Try without a prefix underscore, then with it.
5646 for ac_symprfx in "" "_"; do
5647
5648   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5649   symxfrm="\\1 $ac_symprfx\\2 \\2"
5650
5651   # Write the raw and C identifiers.
5652   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5653     # Fake it for dumpbin and say T for any non-static function
5654     # and D for any global variable.
5655     # Also find C++ and __fastcall symbols from MSVC++,
5656     # which start with @ or ?.
5657     lt_cv_sys_global_symbol_pipe="$AWK '"\
5658 "     {last_section=section; section=\$ 3};"\
5659 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5660 "     \$ 0!~/External *\|/{next};"\
5661 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5662 "     {if(hide[section]) next};"\
5663 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5664 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5665 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5666 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5667 "     ' prfx=^$ac_symprfx"
5668   else
5669     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5670   fi
5671
5672   # Check to see that the pipe works correctly.
5673   pipe_works=no
5674
5675   rm -f conftest*
5676   cat > conftest.$ac_ext <<_LT_EOF
5677 #ifdef __cplusplus
5678 extern "C" {
5679 #endif
5680 char nm_test_var;
5681 void nm_test_func(void);
5682 void nm_test_func(void){}
5683 #ifdef __cplusplus
5684 }
5685 #endif
5686 int main(){nm_test_var='a';nm_test_func();return(0);}
5687 _LT_EOF
5688
5689   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5690   (eval $ac_compile) 2>&5
5691   ac_status=$?
5692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693   (exit $ac_status); }; then
5694     # Now try to grab the symbols.
5695     nlist=conftest.nm
5696     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5697   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5698   ac_status=$?
5699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); } && test -s "$nlist"; then
5701       # Try sorting and uniquifying the output.
5702       if sort "$nlist" | uniq > "$nlist"T; then
5703         mv -f "$nlist"T "$nlist"
5704       else
5705         rm -f "$nlist"T
5706       fi
5707
5708       # Make sure that we snagged all the symbols we need.
5709       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5710         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5711           cat <<_LT_EOF > conftest.$ac_ext
5712 #ifdef __cplusplus
5713 extern "C" {
5714 #endif
5715
5716 _LT_EOF
5717           # Now generate the symbol file.
5718           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5719
5720           cat <<_LT_EOF >> conftest.$ac_ext
5721
5722 /* The mapping between symbol names and symbols.  */
5723 const struct {
5724   const char *name;
5725   void       *address;
5726 }
5727 lt__PROGRAM__LTX_preloaded_symbols[] =
5728 {
5729   { "@PROGRAM@", (void *) 0 },
5730 _LT_EOF
5731           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5732           cat <<\_LT_EOF >> conftest.$ac_ext
5733   {0, (void *) 0}
5734 };
5735
5736 /* This works around a problem in FreeBSD linker */
5737 #ifdef FREEBSD_WORKAROUND
5738 static const void *lt_preloaded_setup() {
5739   return lt__PROGRAM__LTX_preloaded_symbols;
5740 }
5741 #endif
5742
5743 #ifdef __cplusplus
5744 }
5745 #endif
5746 _LT_EOF
5747           # Now try linking the two files.
5748           mv conftest.$ac_objext conftstm.$ac_objext
5749           lt_save_LIBS="$LIBS"
5750           lt_save_CFLAGS="$CFLAGS"
5751           LIBS="conftstm.$ac_objext"
5752           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5753           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5754   (eval $ac_link) 2>&5
5755   ac_status=$?
5756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5758             pipe_works=yes
5759           fi
5760           LIBS="$lt_save_LIBS"
5761           CFLAGS="$lt_save_CFLAGS"
5762         else
5763           echo "cannot find nm_test_func in $nlist" >&5
5764         fi
5765       else
5766         echo "cannot find nm_test_var in $nlist" >&5
5767       fi
5768     else
5769       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5770     fi
5771   else
5772     echo "$progname: failed program was:" >&5
5773     cat conftest.$ac_ext >&5
5774   fi
5775   rm -rf conftest* conftst*
5776
5777   # Do not use the global_symbol_pipe unless it works.
5778   if test "$pipe_works" = yes; then
5779     break
5780   else
5781     lt_cv_sys_global_symbol_pipe=
5782   fi
5783 done
5784
5785 fi
5786
5787 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5788   lt_cv_sys_global_symbol_to_cdecl=
5789 fi
5790 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5791   { $as_echo "$as_me:$LINENO: result: failed" >&5
5792 $as_echo "failed" >&6; }
5793 else
5794   { $as_echo "$as_me:$LINENO: result: ok" >&5
5795 $as_echo "ok" >&6; }
5796 fi
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819 # Check whether --enable-libtool-lock was given.
5820 if test "${enable_libtool_lock+set}" = set; then
5821   enableval=$enable_libtool_lock;
5822 fi
5823
5824 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5825
5826 # Some flags need to be propagated to the compiler or linker for good
5827 # libtool support.
5828 case $host in
5829 ia64-*-hpux*)
5830   # Find out which ABI we are using.
5831   echo 'int i;' > conftest.$ac_ext
5832   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5833   (eval $ac_compile) 2>&5
5834   ac_status=$?
5835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }; then
5837     case `/usr/bin/file conftest.$ac_objext` in
5838       *ELF-32*)
5839         HPUX_IA64_MODE="32"
5840         ;;
5841       *ELF-64*)
5842         HPUX_IA64_MODE="64"
5843         ;;
5844     esac
5845   fi
5846   rm -rf conftest*
5847   ;;
5848 *-*-irix6*)
5849   # Find out which ABI we are using.
5850   echo '#line 5850 "configure"' > conftest.$ac_ext
5851   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852   (eval $ac_compile) 2>&5
5853   ac_status=$?
5854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); }; then
5856     if test "$lt_cv_prog_gnu_ld" = yes; then
5857       case `/usr/bin/file conftest.$ac_objext` in
5858         *32-bit*)
5859           LD="${LD-ld} -melf32bsmip"
5860           ;;
5861         *N32*)
5862           LD="${LD-ld} -melf32bmipn32"
5863           ;;
5864         *64-bit*)
5865           LD="${LD-ld} -melf64bmip"
5866         ;;
5867       esac
5868     else
5869       case `/usr/bin/file conftest.$ac_objext` in
5870         *32-bit*)
5871           LD="${LD-ld} -32"
5872           ;;
5873         *N32*)
5874           LD="${LD-ld} -n32"
5875           ;;
5876         *64-bit*)
5877           LD="${LD-ld} -64"
5878           ;;
5879       esac
5880     fi
5881   fi
5882   rm -rf conftest*
5883   ;;
5884
5885 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5886 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5887   # Find out which ABI we are using.
5888   echo 'int i;' > conftest.$ac_ext
5889   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5890   (eval $ac_compile) 2>&5
5891   ac_status=$?
5892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); }; then
5894     case `/usr/bin/file conftest.o` in
5895       *32-bit*)
5896         case $host in
5897           x86_64-*kfreebsd*-gnu)
5898             LD="${LD-ld} -m elf_i386_fbsd"
5899             ;;
5900           x86_64-*linux*)
5901             LD="${LD-ld} -m elf_i386"
5902             ;;
5903           ppc64-*linux*|powerpc64-*linux*)
5904             LD="${LD-ld} -m elf32ppclinux"
5905             ;;
5906           s390x-*linux*)
5907             LD="${LD-ld} -m elf_s390"
5908             ;;
5909           sparc64-*linux*)
5910             LD="${LD-ld} -m elf32_sparc"
5911             ;;
5912         esac
5913         ;;
5914       *64-bit*)
5915         case $host in
5916           x86_64-*kfreebsd*-gnu)
5917             LD="${LD-ld} -m elf_x86_64_fbsd"
5918             ;;
5919           x86_64-*linux*)
5920             LD="${LD-ld} -m elf_x86_64"
5921             ;;
5922           ppc*-*linux*|powerpc*-*linux*)
5923             LD="${LD-ld} -m elf64ppc"
5924             ;;
5925           s390*-*linux*|s390*-*tpf*)
5926             LD="${LD-ld} -m elf64_s390"
5927             ;;
5928           sparc*-*linux*)
5929             LD="${LD-ld} -m elf64_sparc"
5930             ;;
5931         esac
5932         ;;
5933     esac
5934   fi
5935   rm -rf conftest*
5936   ;;
5937
5938 *-*-sco3.2v5*)
5939   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5940   SAVE_CFLAGS="$CFLAGS"
5941   CFLAGS="$CFLAGS -belf"
5942   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5943 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5944 if test "${lt_cv_cc_needs_belf+set}" = set; then
5945   $as_echo_n "(cached) " >&6
5946 else
5947   ac_ext=c
5948 ac_cpp='$CPP $CPPFLAGS'
5949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5952
5953      cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h.  */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h.  */
5959
5960 int
5961 main ()
5962 {
5963
5964   ;
5965   return 0;
5966 }
5967 _ACEOF
5968 rm -f conftest.$ac_objext conftest$ac_exeext
5969 if { (ac_try="$ac_link"
5970 case "(($ac_try" in
5971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972   *) ac_try_echo=$ac_try;;
5973 esac
5974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5975 $as_echo "$ac_try_echo") >&5
5976   (eval "$ac_link") 2>conftest.er1
5977   ac_status=$?
5978   grep -v '^ *+' conftest.er1 >conftest.err
5979   rm -f conftest.er1
5980   cat conftest.err >&5
5981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); } && {
5983          test -z "$ac_c_werror_flag" ||
5984          test ! -s conftest.err
5985        } && test -s conftest$ac_exeext && {
5986          test "$cross_compiling" = yes ||
5987          $as_test_x conftest$ac_exeext
5988        }; then
5989   lt_cv_cc_needs_belf=yes
5990 else
5991   $as_echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5993
5994         lt_cv_cc_needs_belf=no
5995 fi
5996
5997 rm -rf conftest.dSYM
5998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5999       conftest$ac_exeext conftest.$ac_ext
6000      ac_ext=c
6001 ac_cpp='$CPP $CPPFLAGS'
6002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6005
6006 fi
6007 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6008 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6009   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6010     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6011     CFLAGS="$SAVE_CFLAGS"
6012   fi
6013   ;;
6014 sparc*-*solaris*)
6015   # Find out which ABI we are using.
6016   echo 'int i;' > conftest.$ac_ext
6017   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6018   (eval $ac_compile) 2>&5
6019   ac_status=$?
6020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; then
6022     case `/usr/bin/file conftest.o` in
6023     *64-bit*)
6024       case $lt_cv_prog_gnu_ld in
6025       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6026       *)
6027         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6028           LD="${LD-ld} -64"
6029         fi
6030         ;;
6031       esac
6032       ;;
6033     esac
6034   fi
6035   rm -rf conftest*
6036   ;;
6037 esac
6038
6039 need_locks="$enable_libtool_lock"
6040
6041
6042   case $host_os in
6043     rhapsody* | darwin*)
6044     if test -n "$ac_tool_prefix"; then
6045   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6046 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 $as_echo_n "checking for $ac_word... " >&6; }
6049 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6050   $as_echo_n "(cached) " >&6
6051 else
6052   if test -n "$DSYMUTIL"; then
6053   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058   IFS=$as_save_IFS
6059   test -z "$as_dir" && as_dir=.
6060   for ac_exec_ext in '' $ac_executable_extensions; do
6061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6062     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6063     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064     break 2
6065   fi
6066 done
6067 done
6068 IFS=$as_save_IFS
6069
6070 fi
6071 fi
6072 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6073 if test -n "$DSYMUTIL"; then
6074   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6075 $as_echo "$DSYMUTIL" >&6; }
6076 else
6077   { $as_echo "$as_me:$LINENO: result: no" >&5
6078 $as_echo "no" >&6; }
6079 fi
6080
6081
6082 fi
6083 if test -z "$ac_cv_prog_DSYMUTIL"; then
6084   ac_ct_DSYMUTIL=$DSYMUTIL
6085   # Extract the first word of "dsymutil", so it can be a program name with args.
6086 set dummy dsymutil; ac_word=$2
6087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6090   $as_echo_n "(cached) " >&6
6091 else
6092   if test -n "$ac_ct_DSYMUTIL"; then
6093   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098   IFS=$as_save_IFS
6099   test -z "$as_dir" && as_dir=.
6100   for ac_exec_ext in '' $ac_executable_extensions; do
6101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6102     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6103     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104     break 2
6105   fi
6106 done
6107 done
6108 IFS=$as_save_IFS
6109
6110 fi
6111 fi
6112 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6113 if test -n "$ac_ct_DSYMUTIL"; then
6114   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6115 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6116 else
6117   { $as_echo "$as_me:$LINENO: result: no" >&5
6118 $as_echo "no" >&6; }
6119 fi
6120
6121   if test "x$ac_ct_DSYMUTIL" = x; then
6122     DSYMUTIL=":"
6123   else
6124     case $cross_compiling:$ac_tool_warned in
6125 yes:)
6126 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6128 ac_tool_warned=yes ;;
6129 esac
6130     DSYMUTIL=$ac_ct_DSYMUTIL
6131   fi
6132 else
6133   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6134 fi
6135
6136     if test -n "$ac_tool_prefix"; then
6137   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6138 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6142   $as_echo_n "(cached) " >&6
6143 else
6144   if test -n "$NMEDIT"; then
6145   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150   IFS=$as_save_IFS
6151   test -z "$as_dir" && as_dir=.
6152   for ac_exec_ext in '' $ac_executable_extensions; do
6153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6155     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156     break 2
6157   fi
6158 done
6159 done
6160 IFS=$as_save_IFS
6161
6162 fi
6163 fi
6164 NMEDIT=$ac_cv_prog_NMEDIT
6165 if test -n "$NMEDIT"; then
6166   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6167 $as_echo "$NMEDIT" >&6; }
6168 else
6169   { $as_echo "$as_me:$LINENO: result: no" >&5
6170 $as_echo "no" >&6; }
6171 fi
6172
6173
6174 fi
6175 if test -z "$ac_cv_prog_NMEDIT"; then
6176   ac_ct_NMEDIT=$NMEDIT
6177   # Extract the first word of "nmedit", so it can be a program name with args.
6178 set dummy nmedit; ac_word=$2
6179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 $as_echo_n "checking for $ac_word... " >&6; }
6181 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6182   $as_echo_n "(cached) " >&6
6183 else
6184   if test -n "$ac_ct_NMEDIT"; then
6185   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6186 else
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 for as_dir in $PATH
6189 do
6190   IFS=$as_save_IFS
6191   test -z "$as_dir" && as_dir=.
6192   for ac_exec_ext in '' $ac_executable_extensions; do
6193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6194     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6195     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196     break 2
6197   fi
6198 done
6199 done
6200 IFS=$as_save_IFS
6201
6202 fi
6203 fi
6204 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6205 if test -n "$ac_ct_NMEDIT"; then
6206   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6207 $as_echo "$ac_ct_NMEDIT" >&6; }
6208 else
6209   { $as_echo "$as_me:$LINENO: result: no" >&5
6210 $as_echo "no" >&6; }
6211 fi
6212
6213   if test "x$ac_ct_NMEDIT" = x; then
6214     NMEDIT=":"
6215   else
6216     case $cross_compiling:$ac_tool_warned in
6217 yes:)
6218 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6220 ac_tool_warned=yes ;;
6221 esac
6222     NMEDIT=$ac_ct_NMEDIT
6223   fi
6224 else
6225   NMEDIT="$ac_cv_prog_NMEDIT"
6226 fi
6227
6228     if test -n "$ac_tool_prefix"; then
6229   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6230 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6231 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 $as_echo_n "checking for $ac_word... " >&6; }
6233 if test "${ac_cv_prog_LIPO+set}" = set; then
6234   $as_echo_n "(cached) " >&6
6235 else
6236   if test -n "$LIPO"; then
6237   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6238 else
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6241 do
6242   IFS=$as_save_IFS
6243   test -z "$as_dir" && as_dir=.
6244   for ac_exec_ext in '' $ac_executable_extensions; do
6245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6246     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6247     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6248     break 2
6249   fi
6250 done
6251 done
6252 IFS=$as_save_IFS
6253
6254 fi
6255 fi
6256 LIPO=$ac_cv_prog_LIPO
6257 if test -n "$LIPO"; then
6258   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6259 $as_echo "$LIPO" >&6; }
6260 else
6261   { $as_echo "$as_me:$LINENO: result: no" >&5
6262 $as_echo "no" >&6; }
6263 fi
6264
6265
6266 fi
6267 if test -z "$ac_cv_prog_LIPO"; then
6268   ac_ct_LIPO=$LIPO
6269   # Extract the first word of "lipo", so it can be a program name with args.
6270 set dummy lipo; ac_word=$2
6271 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 $as_echo_n "checking for $ac_word... " >&6; }
6273 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6274   $as_echo_n "(cached) " >&6
6275 else
6276   if test -n "$ac_ct_LIPO"; then
6277   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6278 else
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in $PATH
6281 do
6282   IFS=$as_save_IFS
6283   test -z "$as_dir" && as_dir=.
6284   for ac_exec_ext in '' $ac_executable_extensions; do
6285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6286     ac_cv_prog_ac_ct_LIPO="lipo"
6287     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6288     break 2
6289   fi
6290 done
6291 done
6292 IFS=$as_save_IFS
6293
6294 fi
6295 fi
6296 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6297 if test -n "$ac_ct_LIPO"; then
6298   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6299 $as_echo "$ac_ct_LIPO" >&6; }
6300 else
6301   { $as_echo "$as_me:$LINENO: result: no" >&5
6302 $as_echo "no" >&6; }
6303 fi
6304
6305   if test "x$ac_ct_LIPO" = x; then
6306     LIPO=":"
6307   else
6308     case $cross_compiling:$ac_tool_warned in
6309 yes:)
6310 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6312 ac_tool_warned=yes ;;
6313 esac
6314     LIPO=$ac_ct_LIPO
6315   fi
6316 else
6317   LIPO="$ac_cv_prog_LIPO"
6318 fi
6319
6320     if test -n "$ac_tool_prefix"; then
6321   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6322 set dummy ${ac_tool_prefix}otool; ac_word=$2
6323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 $as_echo_n "checking for $ac_word... " >&6; }
6325 if test "${ac_cv_prog_OTOOL+set}" = set; then
6326   $as_echo_n "(cached) " >&6
6327 else
6328   if test -n "$OTOOL"; then
6329   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6330 else
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6333 do
6334   IFS=$as_save_IFS
6335   test -z "$as_dir" && as_dir=.
6336   for ac_exec_ext in '' $ac_executable_extensions; do
6337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6338     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6339     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6340     break 2
6341   fi
6342 done
6343 done
6344 IFS=$as_save_IFS
6345
6346 fi
6347 fi
6348 OTOOL=$ac_cv_prog_OTOOL
6349 if test -n "$OTOOL"; then
6350   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6351 $as_echo "$OTOOL" >&6; }
6352 else
6353   { $as_echo "$as_me:$LINENO: result: no" >&5
6354 $as_echo "no" >&6; }
6355 fi
6356
6357
6358 fi
6359 if test -z "$ac_cv_prog_OTOOL"; then
6360   ac_ct_OTOOL=$OTOOL
6361   # Extract the first word of "otool", so it can be a program name with args.
6362 set dummy otool; ac_word=$2
6363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6366   $as_echo_n "(cached) " >&6
6367 else
6368   if test -n "$ac_ct_OTOOL"; then
6369   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6370 else
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6373 do
6374   IFS=$as_save_IFS
6375   test -z "$as_dir" && as_dir=.
6376   for ac_exec_ext in '' $ac_executable_extensions; do
6377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6378     ac_cv_prog_ac_ct_OTOOL="otool"
6379     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380     break 2
6381   fi
6382 done
6383 done
6384 IFS=$as_save_IFS
6385
6386 fi
6387 fi
6388 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6389 if test -n "$ac_ct_OTOOL"; then
6390   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6391 $as_echo "$ac_ct_OTOOL" >&6; }
6392 else
6393   { $as_echo "$as_me:$LINENO: result: no" >&5
6394 $as_echo "no" >&6; }
6395 fi
6396
6397   if test "x$ac_ct_OTOOL" = x; then
6398     OTOOL=":"
6399   else
6400     case $cross_compiling:$ac_tool_warned in
6401 yes:)
6402 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6404 ac_tool_warned=yes ;;
6405 esac
6406     OTOOL=$ac_ct_OTOOL
6407   fi
6408 else
6409   OTOOL="$ac_cv_prog_OTOOL"
6410 fi
6411
6412     if test -n "$ac_tool_prefix"; then
6413   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6418   $as_echo_n "(cached) " >&6
6419 else
6420   if test -n "$OTOOL64"; then
6421   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426   IFS=$as_save_IFS
6427   test -z "$as_dir" && as_dir=.
6428   for ac_exec_ext in '' $ac_executable_extensions; do
6429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6431     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432     break 2
6433   fi
6434 done
6435 done
6436 IFS=$as_save_IFS
6437
6438 fi
6439 fi
6440 OTOOL64=$ac_cv_prog_OTOOL64
6441 if test -n "$OTOOL64"; then
6442   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6443 $as_echo "$OTOOL64" >&6; }
6444 else
6445   { $as_echo "$as_me:$LINENO: result: no" >&5
6446 $as_echo "no" >&6; }
6447 fi
6448
6449
6450 fi
6451 if test -z "$ac_cv_prog_OTOOL64"; then
6452   ac_ct_OTOOL64=$OTOOL64
6453   # Extract the first word of "otool64", so it can be a program name with args.
6454 set dummy otool64; ac_word=$2
6455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6458   $as_echo_n "(cached) " >&6
6459 else
6460   if test -n "$ac_ct_OTOOL64"; then
6461   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6465 do
6466   IFS=$as_save_IFS
6467   test -z "$as_dir" && as_dir=.
6468   for ac_exec_ext in '' $ac_executable_extensions; do
6469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470     ac_cv_prog_ac_ct_OTOOL64="otool64"
6471     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472     break 2
6473   fi
6474 done
6475 done
6476 IFS=$as_save_IFS
6477
6478 fi
6479 fi
6480 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6481 if test -n "$ac_ct_OTOOL64"; then
6482   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6483 $as_echo "$ac_ct_OTOOL64" >&6; }
6484 else
6485   { $as_echo "$as_me:$LINENO: result: no" >&5
6486 $as_echo "no" >&6; }
6487 fi
6488
6489   if test "x$ac_ct_OTOOL64" = x; then
6490     OTOOL64=":"
6491   else
6492     case $cross_compiling:$ac_tool_warned in
6493 yes:)
6494 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496 ac_tool_warned=yes ;;
6497 esac
6498     OTOOL64=$ac_ct_OTOOL64
6499   fi
6500 else
6501   OTOOL64="$ac_cv_prog_OTOOL64"
6502 fi
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6531 $as_echo_n "checking for -single_module linker flag... " >&6; }
6532 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6533   $as_echo_n "(cached) " >&6
6534 else
6535   lt_cv_apple_cc_single_mod=no
6536       if test -z "${LT_MULTI_MODULE}"; then
6537         # By default we will add the -single_module flag. You can override
6538         # by either setting the environment variable LT_MULTI_MODULE
6539         # non-empty at configure time, or by adding -multi_module to the
6540         # link flags.
6541         rm -rf libconftest.dylib*
6542         echo "int foo(void){return 1;}" > conftest.c
6543         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6544 -dynamiclib -Wl,-single_module conftest.c" >&5
6545         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6546           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6547         _lt_result=$?
6548         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6549           lt_cv_apple_cc_single_mod=yes
6550         else
6551           cat conftest.err >&5
6552         fi
6553         rm -rf libconftest.dylib*
6554         rm -f conftest.*
6555       fi
6556 fi
6557 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6558 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6559     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6560 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6561 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6562   $as_echo_n "(cached) " >&6
6563 else
6564   lt_cv_ld_exported_symbols_list=no
6565       save_LDFLAGS=$LDFLAGS
6566       echo "_main" > conftest.sym
6567       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6568       cat >conftest.$ac_ext <<_ACEOF
6569 /* confdefs.h.  */
6570 _ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h.  */
6574
6575 int
6576 main ()
6577 {
6578
6579   ;
6580   return 0;
6581 }
6582 _ACEOF
6583 rm -f conftest.$ac_objext conftest$ac_exeext
6584 if { (ac_try="$ac_link"
6585 case "(($ac_try" in
6586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587   *) ac_try_echo=$ac_try;;
6588 esac
6589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6590 $as_echo "$ac_try_echo") >&5
6591   (eval "$ac_link") 2>conftest.er1
6592   ac_status=$?
6593   grep -v '^ *+' conftest.er1 >conftest.err
6594   rm -f conftest.er1
6595   cat conftest.err >&5
6596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597   (exit $ac_status); } && {
6598          test -z "$ac_c_werror_flag" ||
6599          test ! -s conftest.err
6600        } && test -s conftest$ac_exeext && {
6601          test "$cross_compiling" = yes ||
6602          $as_test_x conftest$ac_exeext
6603        }; then
6604   lt_cv_ld_exported_symbols_list=yes
6605 else
6606   $as_echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6608
6609         lt_cv_ld_exported_symbols_list=no
6610 fi
6611
6612 rm -rf conftest.dSYM
6613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6614       conftest$ac_exeext conftest.$ac_ext
6615         LDFLAGS="$save_LDFLAGS"
6616
6617 fi
6618 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6619 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6620     case $host_os in
6621     rhapsody* | darwin1.[012])
6622       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6623     darwin1.*)
6624       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6625     darwin*) # darwin 5.x on
6626       # if running on 10.5 or later, the deployment target defaults
6627       # to the OS version, if on x86, and 10.4, the deployment
6628       # target defaults to 10.4. Don't you love it?
6629       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6630         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6631           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6632         10.[012]*)
6633           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6634         10.*)
6635           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6636       esac
6637     ;;
6638   esac
6639     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6640       _lt_dar_single_mod='$single_module'
6641     fi
6642     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6643       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6644     else
6645       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6646     fi
6647     if test "$DSYMUTIL" != ":"; then
6648       _lt_dsymutil='~$DSYMUTIL $lib || :'
6649     else
6650       _lt_dsymutil=
6651     fi
6652     ;;
6653   esac
6654
6655 ac_ext=c
6656 ac_cpp='$CPP $CPPFLAGS'
6657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6660 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6661 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6662 # On Suns, sometimes $CPP names a directory.
6663 if test -n "$CPP" && test -d "$CPP"; then
6664   CPP=
6665 fi
6666 if test -z "$CPP"; then
6667   if test "${ac_cv_prog_CPP+set}" = set; then
6668   $as_echo_n "(cached) " >&6
6669 else
6670       # Double quotes because CPP needs to be expanded
6671     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6672     do
6673       ac_preproc_ok=false
6674 for ac_c_preproc_warn_flag in '' yes
6675 do
6676   # Use a header file that comes with gcc, so configuring glibc
6677   # with a fresh cross-compiler works.
6678   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6679   # <limits.h> exists even on freestanding compilers.
6680   # On the NeXT, cc -E runs the code through the compiler's parser,
6681   # not just through cpp. "Syntax error" is here to catch this case.
6682   cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h.  */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h.  */
6688 #ifdef __STDC__
6689 # include <limits.h>
6690 #else
6691 # include <assert.h>
6692 #endif
6693                      Syntax error
6694 _ACEOF
6695 if { (ac_try="$ac_cpp conftest.$ac_ext"
6696 case "(($ac_try" in
6697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698   *) ac_try_echo=$ac_try;;
6699 esac
6700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6701 $as_echo "$ac_try_echo") >&5
6702   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6703   ac_status=$?
6704   grep -v '^ *+' conftest.er1 >conftest.err
6705   rm -f conftest.er1
6706   cat conftest.err >&5
6707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708   (exit $ac_status); } >/dev/null && {
6709          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6710          test ! -s conftest.err
6711        }; then
6712   :
6713 else
6714   $as_echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6716
6717   # Broken: fails on valid input.
6718 continue
6719 fi
6720
6721 rm -f conftest.err conftest.$ac_ext
6722
6723   # OK, works on sane cases.  Now check whether nonexistent headers
6724   # can be detected and how.
6725   cat >conftest.$ac_ext <<_ACEOF
6726 /* confdefs.h.  */
6727 _ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h.  */
6731 #include <ac_nonexistent.h>
6732 _ACEOF
6733 if { (ac_try="$ac_cpp conftest.$ac_ext"
6734 case "(($ac_try" in
6735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736   *) ac_try_echo=$ac_try;;
6737 esac
6738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6739 $as_echo "$ac_try_echo") >&5
6740   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6741   ac_status=$?
6742   grep -v '^ *+' conftest.er1 >conftest.err
6743   rm -f conftest.er1
6744   cat conftest.err >&5
6745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); } >/dev/null && {
6747          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6748          test ! -s conftest.err
6749        }; then
6750   # Broken: success on invalid input.
6751 continue
6752 else
6753   $as_echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6755
6756   # Passes both tests.
6757 ac_preproc_ok=:
6758 break
6759 fi
6760
6761 rm -f conftest.err conftest.$ac_ext
6762
6763 done
6764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6765 rm -f conftest.err conftest.$ac_ext
6766 if $ac_preproc_ok; then
6767   break
6768 fi
6769
6770     done
6771     ac_cv_prog_CPP=$CPP
6772
6773 fi
6774   CPP=$ac_cv_prog_CPP
6775 else
6776   ac_cv_prog_CPP=$CPP
6777 fi
6778 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6779 $as_echo "$CPP" >&6; }
6780 ac_preproc_ok=false
6781 for ac_c_preproc_warn_flag in '' yes
6782 do
6783   # Use a header file that comes with gcc, so configuring glibc
6784   # with a fresh cross-compiler works.
6785   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6786   # <limits.h> exists even on freestanding compilers.
6787   # On the NeXT, cc -E runs the code through the compiler's parser,
6788   # not just through cpp. "Syntax error" is here to catch this case.
6789   cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h.  */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h.  */
6795 #ifdef __STDC__
6796 # include <limits.h>
6797 #else
6798 # include <assert.h>
6799 #endif
6800                      Syntax error
6801 _ACEOF
6802 if { (ac_try="$ac_cpp conftest.$ac_ext"
6803 case "(($ac_try" in
6804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805   *) ac_try_echo=$ac_try;;
6806 esac
6807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6808 $as_echo "$ac_try_echo") >&5
6809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6810   ac_status=$?
6811   grep -v '^ *+' conftest.er1 >conftest.err
6812   rm -f conftest.er1
6813   cat conftest.err >&5
6814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815   (exit $ac_status); } >/dev/null && {
6816          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6817          test ! -s conftest.err
6818        }; then
6819   :
6820 else
6821   $as_echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6823
6824   # Broken: fails on valid input.
6825 continue
6826 fi
6827
6828 rm -f conftest.err conftest.$ac_ext
6829
6830   # OK, works on sane cases.  Now check whether nonexistent headers
6831   # can be detected and how.
6832   cat >conftest.$ac_ext <<_ACEOF
6833 /* confdefs.h.  */
6834 _ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h.  */
6838 #include <ac_nonexistent.h>
6839 _ACEOF
6840 if { (ac_try="$ac_cpp conftest.$ac_ext"
6841 case "(($ac_try" in
6842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6843   *) ac_try_echo=$ac_try;;
6844 esac
6845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6846 $as_echo "$ac_try_echo") >&5
6847   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6848   ac_status=$?
6849   grep -v '^ *+' conftest.er1 >conftest.err
6850   rm -f conftest.er1
6851   cat conftest.err >&5
6852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853   (exit $ac_status); } >/dev/null && {
6854          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6855          test ! -s conftest.err
6856        }; then
6857   # Broken: success on invalid input.
6858 continue
6859 else
6860   $as_echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6862
6863   # Passes both tests.
6864 ac_preproc_ok=:
6865 break
6866 fi
6867
6868 rm -f conftest.err conftest.$ac_ext
6869
6870 done
6871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6872 rm -f conftest.err conftest.$ac_ext
6873 if $ac_preproc_ok; then
6874   :
6875 else
6876   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6878 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6879 See \`config.log' for more details." >&5
6880 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6881 See \`config.log' for more details." >&2;}
6882    { (exit 1); exit 1; }; }; }
6883 fi
6884
6885 ac_ext=c
6886 ac_cpp='$CPP $CPPFLAGS'
6887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6890
6891
6892 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6893 $as_echo_n "checking for ANSI C header files... " >&6; }
6894 if test "${ac_cv_header_stdc+set}" = set; then
6895   $as_echo_n "(cached) " >&6
6896 else
6897   cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h.  */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h.  */
6903 #include <stdlib.h>
6904 #include <stdarg.h>
6905 #include <string.h>
6906 #include <float.h>
6907
6908 int
6909 main ()
6910 {
6911
6912   ;
6913   return 0;
6914 }
6915 _ACEOF
6916 rm -f conftest.$ac_objext
6917 if { (ac_try="$ac_compile"
6918 case "(($ac_try" in
6919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6920   *) ac_try_echo=$ac_try;;
6921 esac
6922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6923 $as_echo "$ac_try_echo") >&5
6924   (eval "$ac_compile") 2>conftest.er1
6925   ac_status=$?
6926   grep -v '^ *+' conftest.er1 >conftest.err
6927   rm -f conftest.er1
6928   cat conftest.err >&5
6929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930   (exit $ac_status); } && {
6931          test -z "$ac_c_werror_flag" ||
6932          test ! -s conftest.err
6933        } && test -s conftest.$ac_objext; then
6934   ac_cv_header_stdc=yes
6935 else
6936   $as_echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6938
6939         ac_cv_header_stdc=no
6940 fi
6941
6942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6943
6944 if test $ac_cv_header_stdc = yes; then
6945   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6946   cat >conftest.$ac_ext <<_ACEOF
6947 /* confdefs.h.  */
6948 _ACEOF
6949 cat confdefs.h >>conftest.$ac_ext
6950 cat >>conftest.$ac_ext <<_ACEOF
6951 /* end confdefs.h.  */
6952 #include <string.h>
6953
6954 _ACEOF
6955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6956   $EGREP "memchr" >/dev/null 2>&1; then
6957   :
6958 else
6959   ac_cv_header_stdc=no
6960 fi
6961 rm -f conftest*
6962
6963 fi
6964
6965 if test $ac_cv_header_stdc = yes; then
6966   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6967   cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h.  */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h.  */
6973 #include <stdlib.h>
6974
6975 _ACEOF
6976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6977   $EGREP "free" >/dev/null 2>&1; then
6978   :
6979 else
6980   ac_cv_header_stdc=no
6981 fi
6982 rm -f conftest*
6983
6984 fi
6985
6986 if test $ac_cv_header_stdc = yes; then
6987   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6988   if test "$cross_compiling" = yes; then
6989   :
6990 else
6991   cat >conftest.$ac_ext <<_ACEOF
6992 /* confdefs.h.  */
6993 _ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h.  */
6997 #include <ctype.h>
6998 #include <stdlib.h>
6999 #if ((' ' & 0x0FF) == 0x020)
7000 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7001 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7002 #else
7003 # define ISLOWER(c) \
7004                    (('a' <= (c) && (c) <= 'i') \
7005                      || ('j' <= (c) && (c) <= 'r') \
7006                      || ('s' <= (c) && (c) <= 'z'))
7007 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7008 #endif
7009
7010 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7011 int
7012 main ()
7013 {
7014   int i;
7015   for (i = 0; i < 256; i++)
7016     if (XOR (islower (i), ISLOWER (i))
7017         || toupper (i) != TOUPPER (i))
7018       return 2;
7019   return 0;
7020 }
7021 _ACEOF
7022 rm -f conftest$ac_exeext
7023 if { (ac_try="$ac_link"
7024 case "(($ac_try" in
7025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7026   *) ac_try_echo=$ac_try;;
7027 esac
7028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7029 $as_echo "$ac_try_echo") >&5
7030   (eval "$ac_link") 2>&5
7031   ac_status=$?
7032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7034   { (case "(($ac_try" in
7035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036   *) ac_try_echo=$ac_try;;
7037 esac
7038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7039 $as_echo "$ac_try_echo") >&5
7040   (eval "$ac_try") 2>&5
7041   ac_status=$?
7042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043   (exit $ac_status); }; }; then
7044   :
7045 else
7046   $as_echo "$as_me: program exited with status $ac_status" >&5
7047 $as_echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7049
7050 ( exit $ac_status )
7051 ac_cv_header_stdc=no
7052 fi
7053 rm -rf conftest.dSYM
7054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7055 fi
7056
7057
7058 fi
7059 fi
7060 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7061 $as_echo "$ac_cv_header_stdc" >&6; }
7062 if test $ac_cv_header_stdc = yes; then
7063
7064 cat >>confdefs.h <<\_ACEOF
7065 #define STDC_HEADERS 1
7066 _ACEOF
7067
7068 fi
7069
7070 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7081                   inttypes.h stdint.h unistd.h
7082 do
7083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7084 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7085 $as_echo_n "checking for $ac_header... " >&6; }
7086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7087   $as_echo_n "(cached) " >&6
7088 else
7089   cat >conftest.$ac_ext <<_ACEOF
7090 /* confdefs.h.  */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h.  */
7095 $ac_includes_default
7096
7097 #include <$ac_header>
7098 _ACEOF
7099 rm -f conftest.$ac_objext
7100 if { (ac_try="$ac_compile"
7101 case "(($ac_try" in
7102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103   *) ac_try_echo=$ac_try;;
7104 esac
7105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7106 $as_echo "$ac_try_echo") >&5
7107   (eval "$ac_compile") 2>conftest.er1
7108   ac_status=$?
7109   grep -v '^ *+' conftest.er1 >conftest.err
7110   rm -f conftest.er1
7111   cat conftest.err >&5
7112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113   (exit $ac_status); } && {
7114          test -z "$ac_c_werror_flag" ||
7115          test ! -s conftest.err
7116        } && test -s conftest.$ac_objext; then
7117   eval "$as_ac_Header=yes"
7118 else
7119   $as_echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7121
7122         eval "$as_ac_Header=no"
7123 fi
7124
7125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7126 fi
7127 ac_res=`eval 'as_val=${'$as_ac_Header'}
7128                  $as_echo "$as_val"'`
7129                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7130 $as_echo "$ac_res" >&6; }
7131 as_val=`eval 'as_val=${'$as_ac_Header'}
7132                  $as_echo "$as_val"'`
7133    if test "x$as_val" = x""yes; then
7134   cat >>confdefs.h <<_ACEOF
7135 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7136 _ACEOF
7137
7138 fi
7139
7140 done
7141
7142
7143
7144 for ac_header in dlfcn.h
7145 do
7146 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7147 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7148 $as_echo_n "checking for $ac_header... " >&6; }
7149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7150   $as_echo_n "(cached) " >&6
7151 else
7152   cat >conftest.$ac_ext <<_ACEOF
7153 /* confdefs.h.  */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h.  */
7158 $ac_includes_default
7159
7160 #include <$ac_header>
7161 _ACEOF
7162 rm -f conftest.$ac_objext
7163 if { (ac_try="$ac_compile"
7164 case "(($ac_try" in
7165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166   *) ac_try_echo=$ac_try;;
7167 esac
7168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7169 $as_echo "$ac_try_echo") >&5
7170   (eval "$ac_compile") 2>conftest.er1
7171   ac_status=$?
7172   grep -v '^ *+' conftest.er1 >conftest.err
7173   rm -f conftest.er1
7174   cat conftest.err >&5
7175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176   (exit $ac_status); } && {
7177          test -z "$ac_c_werror_flag" ||
7178          test ! -s conftest.err
7179        } && test -s conftest.$ac_objext; then
7180   eval "$as_ac_Header=yes"
7181 else
7182   $as_echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7184
7185         eval "$as_ac_Header=no"
7186 fi
7187
7188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189 fi
7190 ac_res=`eval 'as_val=${'$as_ac_Header'}
7191                  $as_echo "$as_val"'`
7192                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7193 $as_echo "$ac_res" >&6; }
7194 as_val=`eval 'as_val=${'$as_ac_Header'}
7195                  $as_echo "$as_val"'`
7196    if test "x$as_val" = x""yes; then
7197   cat >>confdefs.h <<_ACEOF
7198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7199 _ACEOF
7200
7201 fi
7202
7203 done
7204
7205
7206
7207 # Set options
7208
7209
7210
7211         enable_dlopen=no
7212
7213
7214   enable_win32_dll=no
7215
7216
7217             # Check whether --enable-shared was given.
7218 if test "${enable_shared+set}" = set; then
7219   enableval=$enable_shared; p=${PACKAGE-default}
7220     case $enableval in
7221     yes) enable_shared=yes ;;
7222     no) enable_shared=no ;;
7223     *)
7224       enable_shared=no
7225       # Look at the argument we got.  We use all the common list separators.
7226       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7227       for pkg in $enableval; do
7228         IFS="$lt_save_ifs"
7229         if test "X$pkg" = "X$p"; then
7230           enable_shared=yes
7231         fi
7232       done
7233       IFS="$lt_save_ifs"
7234       ;;
7235     esac
7236 else
7237   enable_shared=yes
7238 fi
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248   # Check whether --enable-static was given.
7249 if test "${enable_static+set}" = set; then
7250   enableval=$enable_static; p=${PACKAGE-default}
7251     case $enableval in
7252     yes) enable_static=yes ;;
7253     no) enable_static=no ;;
7254     *)
7255      enable_static=no
7256       # Look at the argument we got.  We use all the common list separators.
7257       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7258       for pkg in $enableval; do
7259         IFS="$lt_save_ifs"
7260         if test "X$pkg" = "X$p"; then
7261           enable_static=yes
7262         fi
7263       done
7264       IFS="$lt_save_ifs"
7265       ;;
7266     esac
7267 else
7268   enable_static=yes
7269 fi
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280 # Check whether --with-pic was given.
7281 if test "${with_pic+set}" = set; then
7282   withval=$with_pic; pic_mode="$withval"
7283 else
7284   pic_mode=default
7285 fi
7286
7287
7288 test -z "$pic_mode" && pic_mode=default
7289
7290
7291
7292
7293
7294
7295
7296   # Check whether --enable-fast-install was given.
7297 if test "${enable_fast_install+set}" = set; then
7298   enableval=$enable_fast_install; p=${PACKAGE-default}
7299     case $enableval in
7300     yes) enable_fast_install=yes ;;
7301     no) enable_fast_install=no ;;
7302     *)
7303       enable_fast_install=no
7304       # Look at the argument we got.  We use all the common list separators.
7305       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7306       for pkg in $enableval; do
7307         IFS="$lt_save_ifs"
7308         if test "X$pkg" = "X$p"; then
7309           enable_fast_install=yes
7310         fi
7311       done
7312       IFS="$lt_save_ifs"
7313       ;;
7314     esac
7315 else
7316   enable_fast_install=yes
7317 fi
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329 # This can be used to rebuild libtool when needed
7330 LIBTOOL_DEPS="$ltmain"
7331
7332 # Always use our own libtool.
7333 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359 test -z "$LN_S" && LN_S="ln -s"
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374 if test -n "${ZSH_VERSION+set}" ; then
7375    setopt NO_GLOB_SUBST
7376 fi
7377
7378 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7379 $as_echo_n "checking for objdir... " >&6; }
7380 if test "${lt_cv_objdir+set}" = set; then
7381   $as_echo_n "(cached) " >&6
7382 else
7383   rm -f .libs 2>/dev/null
7384 mkdir .libs 2>/dev/null
7385 if test -d .libs; then
7386   lt_cv_objdir=.libs
7387 else
7388   # MS-DOS does not allow filenames that begin with a dot.
7389   lt_cv_objdir=_libs
7390 fi
7391 rmdir .libs 2>/dev/null
7392 fi
7393 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7394 $as_echo "$lt_cv_objdir" >&6; }
7395 objdir=$lt_cv_objdir
7396
7397
7398
7399
7400
7401 cat >>confdefs.h <<_ACEOF
7402 #define LT_OBJDIR "$lt_cv_objdir/"
7403 _ACEOF
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421 case $host_os in
7422 aix3*)
7423   # AIX sometimes has problems with the GCC collect2 program.  For some
7424   # reason, if we set the COLLECT_NAMES environment variable, the problems
7425   # vanish in a puff of smoke.
7426   if test "X${COLLECT_NAMES+set}" != Xset; then
7427     COLLECT_NAMES=
7428     export COLLECT_NAMES
7429   fi
7430   ;;
7431 esac
7432
7433 # Sed substitution that helps us do robust quoting.  It backslashifies
7434 # metacharacters that are still active within double-quoted strings.
7435 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7436
7437 # Same as above, but do not quote variable references.
7438 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7439
7440 # Sed substitution to delay expansion of an escaped shell variable in a
7441 # double_quote_subst'ed string.
7442 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7443
7444 # Sed substitution to delay expansion of an escaped single quote.
7445 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7446
7447 # Sed substitution to avoid accidental globbing in evaled expressions
7448 no_glob_subst='s/\*/\\\*/g'
7449
7450 # Global variables:
7451 ofile=libtool
7452 can_build_shared=yes
7453
7454 # All known linkers require a `.a' archive for static linking (except MSVC,
7455 # which needs '.lib').
7456 libext=a
7457
7458 with_gnu_ld="$lt_cv_prog_gnu_ld"
7459
7460 old_CC="$CC"
7461 old_CFLAGS="$CFLAGS"
7462
7463 # Set sane defaults for various variables
7464 test -z "$CC" && CC=cc
7465 test -z "$LTCC" && LTCC=$CC
7466 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7467 test -z "$LD" && LD=ld
7468 test -z "$ac_objext" && ac_objext=o
7469
7470 for cc_temp in $compiler""; do
7471   case $cc_temp in
7472     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7473     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7474     \-*) ;;
7475     *) break;;
7476   esac
7477 done
7478 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7479
7480
7481 # Only perform the check for file, if the check method requires it
7482 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7483 case $deplibs_check_method in
7484 file_magic*)
7485   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7486     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7487 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7488 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7489   $as_echo_n "(cached) " >&6
7490 else
7491   case $MAGIC_CMD in
7492 [\\/*] |  ?:[\\/]*)
7493   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7494   ;;
7495 *)
7496   lt_save_MAGIC_CMD="$MAGIC_CMD"
7497   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7498   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7499   for ac_dir in $ac_dummy; do
7500     IFS="$lt_save_ifs"
7501     test -z "$ac_dir" && ac_dir=.
7502     if test -f $ac_dir/${ac_tool_prefix}file; then
7503       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7504       if test -n "$file_magic_test_file"; then
7505         case $deplibs_check_method in
7506         "file_magic "*)
7507           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7508           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7509           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7510             $EGREP "$file_magic_regex" > /dev/null; then
7511             :
7512           else
7513             cat <<_LT_EOF 1>&2
7514
7515 *** Warning: the command libtool uses to detect shared libraries,
7516 *** $file_magic_cmd, produces output that libtool cannot recognize.
7517 *** The result is that libtool may fail to recognize shared libraries
7518 *** as such.  This will affect the creation of libtool libraries that
7519 *** depend on shared libraries, but programs linked with such libtool
7520 *** libraries will work regardless of this problem.  Nevertheless, you
7521 *** may want to report the problem to your system manager and/or to
7522 *** bug-libtool@gnu.org
7523
7524 _LT_EOF
7525           fi ;;
7526         esac
7527       fi
7528       break
7529     fi
7530   done
7531   IFS="$lt_save_ifs"
7532   MAGIC_CMD="$lt_save_MAGIC_CMD"
7533   ;;
7534 esac
7535 fi
7536
7537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7538 if test -n "$MAGIC_CMD"; then
7539   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7540 $as_echo "$MAGIC_CMD" >&6; }
7541 else
7542   { $as_echo "$as_me:$LINENO: result: no" >&5
7543 $as_echo "no" >&6; }
7544 fi
7545
7546
7547
7548
7549
7550 if test -z "$lt_cv_path_MAGIC_CMD"; then
7551   if test -n "$ac_tool_prefix"; then
7552     { $as_echo "$as_me:$LINENO: checking for file" >&5
7553 $as_echo_n "checking for file... " >&6; }
7554 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7555   $as_echo_n "(cached) " >&6
7556 else
7557   case $MAGIC_CMD in
7558 [\\/*] |  ?:[\\/]*)
7559   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7560   ;;
7561 *)
7562   lt_save_MAGIC_CMD="$MAGIC_CMD"
7563   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7564   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7565   for ac_dir in $ac_dummy; do
7566     IFS="$lt_save_ifs"
7567     test -z "$ac_dir" && ac_dir=.
7568     if test -f $ac_dir/file; then
7569       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7570       if test -n "$file_magic_test_file"; then
7571         case $deplibs_check_method in
7572         "file_magic "*)
7573           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7574           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7575           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7576             $EGREP "$file_magic_regex" > /dev/null; then
7577             :
7578           else
7579             cat <<_LT_EOF 1>&2
7580
7581 *** Warning: the command libtool uses to detect shared libraries,
7582 *** $file_magic_cmd, produces output that libtool cannot recognize.
7583 *** The result is that libtool may fail to recognize shared libraries
7584 *** as such.  This will affect the creation of libtool libraries that
7585 *** depend on shared libraries, but programs linked with such libtool
7586 *** libraries will work regardless of this problem.  Nevertheless, you
7587 *** may want to report the problem to your system manager and/or to
7588 *** bug-libtool@gnu.org
7589
7590 _LT_EOF
7591           fi ;;
7592         esac
7593       fi
7594       break
7595     fi
7596   done
7597   IFS="$lt_save_ifs"
7598   MAGIC_CMD="$lt_save_MAGIC_CMD"
7599   ;;
7600 esac
7601 fi
7602
7603 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7604 if test -n "$MAGIC_CMD"; then
7605   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7606 $as_echo "$MAGIC_CMD" >&6; }
7607 else
7608   { $as_echo "$as_me:$LINENO: result: no" >&5
7609 $as_echo "no" >&6; }
7610 fi
7611
7612
7613   else
7614     MAGIC_CMD=:
7615   fi
7616 fi
7617
7618   fi
7619   ;;
7620 esac
7621
7622 # Use C for the default configuration in the libtool script
7623
7624 lt_save_CC="$CC"
7625 ac_ext=c
7626 ac_cpp='$CPP $CPPFLAGS'
7627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7630
7631
7632 # Source file extension for C test sources.
7633 ac_ext=c
7634
7635 # Object file extension for compiled C test sources.
7636 objext=o
7637 objext=$objext
7638
7639 # Code to be used in simple compile tests
7640 lt_simple_compile_test_code="int some_variable = 0;"
7641
7642 # Code to be used in simple link tests
7643 lt_simple_link_test_code='int main(){return(0);}'
7644
7645
7646
7647
7648
7649
7650
7651 # If no C compiler was specified, use CC.
7652 LTCC=${LTCC-"$CC"}
7653
7654 # If no C compiler flags were specified, use CFLAGS.
7655 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7656
7657 # Allow CC to be a program name with arguments.
7658 compiler=$CC
7659
7660 # Save the default compiler, since it gets overwritten when the other
7661 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7662 compiler_DEFAULT=$CC
7663
7664 # save warnings/boilerplate of simple test code
7665 ac_outfile=conftest.$ac_objext
7666 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7667 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7668 _lt_compiler_boilerplate=`cat conftest.err`
7669 $RM conftest*
7670
7671 ac_outfile=conftest.$ac_objext
7672 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7673 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7674 _lt_linker_boilerplate=`cat conftest.err`
7675 $RM -r conftest*
7676
7677
7678 ## CAVEAT EMPTOR:
7679 ## There is no encapsulation within the following macros, do not change
7680 ## the running order or otherwise move them around unless you know exactly
7681 ## what you are doing...
7682 if test -n "$compiler"; then
7683
7684 lt_prog_compiler_no_builtin_flag=
7685
7686 if test "$GCC" = yes; then
7687   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7688
7689   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7690 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7691 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7692   $as_echo_n "(cached) " >&6
7693 else
7694   lt_cv_prog_compiler_rtti_exceptions=no
7695    ac_outfile=conftest.$ac_objext
7696    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7697    lt_compiler_flag="-fno-rtti -fno-exceptions"
7698    # Insert the option either (1) after the last *FLAGS variable, or
7699    # (2) before a word containing "conftest.", or (3) at the end.
7700    # Note that $ac_compile itself does not contain backslashes and begins
7701    # with a dollar sign (not a hyphen), so the echo should work correctly.
7702    # The option is referenced via a variable to avoid confusing sed.
7703    lt_compile=`echo "$ac_compile" | $SED \
7704    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7705    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7706    -e 's:$: $lt_compiler_flag:'`
7707    (eval echo "\"\$as_me:7707: $lt_compile\"" >&5)
7708    (eval "$lt_compile" 2>conftest.err)
7709    ac_status=$?
7710    cat conftest.err >&5
7711    echo "$as_me:7711: \$? = $ac_status" >&5
7712    if (exit $ac_status) && test -s "$ac_outfile"; then
7713      # The compiler can only warn and ignore the option if not recognized
7714      # So say no if there are warnings other than the usual output.
7715      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7716      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7717      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7718        lt_cv_prog_compiler_rtti_exceptions=yes
7719      fi
7720    fi
7721    $RM conftest*
7722
7723 fi
7724 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7725 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7726
7727 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7728     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7729 else
7730     :
7731 fi
7732
7733 fi
7734
7735
7736
7737
7738
7739
7740   lt_prog_compiler_wl=
7741 lt_prog_compiler_pic=
7742 lt_prog_compiler_static=
7743
7744 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7745 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7746
7747   if test "$GCC" = yes; then
7748     lt_prog_compiler_wl='-Wl,'
7749     lt_prog_compiler_static='-static'
7750
7751     case $host_os in
7752       aix*)
7753       # All AIX code is PIC.
7754       if test "$host_cpu" = ia64; then
7755         # AIX 5 now supports IA64 processor
7756         lt_prog_compiler_static='-Bstatic'
7757       fi
7758       ;;
7759
7760     amigaos*)
7761       case $host_cpu in
7762       powerpc)
7763             # see comment about AmigaOS4 .so support
7764             lt_prog_compiler_pic='-fPIC'
7765         ;;
7766       m68k)
7767             # FIXME: we need at least 68020 code to build shared libraries, but
7768             # adding the `-m68020' flag to GCC prevents building anything better,
7769             # like `-m68040'.
7770             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7771         ;;
7772       esac
7773       ;;
7774
7775     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7776       # PIC is the default for these OSes.
7777       ;;
7778
7779     mingw* | cygwin* | pw32* | os2* | cegcc*)
7780       # This hack is so that the source file can tell whether it is being
7781       # built for inclusion in a dll (and should export symbols for example).
7782       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7783       # (--disable-auto-import) libraries
7784       lt_prog_compiler_pic='-DDLL_EXPORT'
7785       ;;
7786
7787     darwin* | rhapsody*)
7788       # PIC is the default on this platform
7789       # Common symbols not allowed in MH_DYLIB files
7790       lt_prog_compiler_pic='-fno-common'
7791       ;;
7792
7793     hpux*)
7794       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7795       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7796       # sets the default TLS model and affects inlining.
7797       case $host_cpu in
7798       hppa*64*)
7799         # +Z the default
7800         ;;
7801       *)
7802         lt_prog_compiler_pic='-fPIC'
7803         ;;
7804       esac
7805       ;;
7806
7807     interix[3-9]*)
7808       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7809       # Instead, we relocate shared libraries at runtime.
7810       ;;
7811
7812     msdosdjgpp*)
7813       # Just because we use GCC doesn't mean we suddenly get shared libraries
7814       # on systems that don't support them.
7815       lt_prog_compiler_can_build_shared=no
7816       enable_shared=no
7817       ;;
7818
7819     *nto* | *qnx*)
7820       # QNX uses GNU C++, but need to define -shared option too, otherwise
7821       # it will coredump.
7822       lt_prog_compiler_pic='-fPIC -shared'
7823       ;;
7824
7825     sysv4*MP*)
7826       if test -d /usr/nec; then
7827         lt_prog_compiler_pic=-Kconform_pic
7828       fi
7829       ;;
7830
7831     *)
7832       lt_prog_compiler_pic='-fPIC'
7833       ;;
7834     esac
7835   else
7836     # PORTME Check for flag to pass linker flags through the system compiler.
7837     case $host_os in
7838     aix*)
7839       lt_prog_compiler_wl='-Wl,'
7840       if test "$host_cpu" = ia64; then
7841         # AIX 5 now supports IA64 processor
7842         lt_prog_compiler_static='-Bstatic'
7843       else
7844         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7845       fi
7846       ;;
7847
7848     mingw* | cygwin* | pw32* | os2* | cegcc*)
7849       # This hack is so that the source file can tell whether it is being
7850       # built for inclusion in a dll (and should export symbols for example).
7851       lt_prog_compiler_pic='-DDLL_EXPORT'
7852       ;;
7853
7854     hpux9* | hpux10* | hpux11*)
7855       lt_prog_compiler_wl='-Wl,'
7856       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7857       # not for PA HP-UX.
7858       case $host_cpu in
7859       hppa*64*|ia64*)
7860         # +Z the default
7861         ;;
7862       *)
7863         lt_prog_compiler_pic='+Z'
7864         ;;
7865       esac
7866       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7867       lt_prog_compiler_static='${wl}-a ${wl}archive'
7868       ;;
7869
7870     irix5* | irix6* | nonstopux*)
7871       lt_prog_compiler_wl='-Wl,'
7872       # PIC (with -KPIC) is the default.
7873       lt_prog_compiler_static='-non_shared'
7874       ;;
7875
7876     linux* | k*bsd*-gnu)
7877       case $cc_basename in
7878       # old Intel for x86_64 which still supported -KPIC.
7879       ecc*)
7880         lt_prog_compiler_wl='-Wl,'
7881         lt_prog_compiler_pic='-KPIC'
7882         lt_prog_compiler_static='-static'
7883         ;;
7884       # icc used to be incompatible with GCC.
7885       # ICC 10 doesn't accept -KPIC any more.
7886       icc* | ifort*)
7887         lt_prog_compiler_wl='-Wl,'
7888         lt_prog_compiler_pic='-fPIC'
7889         lt_prog_compiler_static='-static'
7890         ;;
7891       # Lahey Fortran 8.1.
7892       lf95*)
7893         lt_prog_compiler_wl='-Wl,'
7894         lt_prog_compiler_pic='--shared'
7895         lt_prog_compiler_static='--static'
7896         ;;
7897       pgcc* | pgf77* | pgf90* | pgf95*)
7898         # Portland Group compilers (*not* the Pentium gcc compiler,
7899         # which looks to be a dead project)
7900         lt_prog_compiler_wl='-Wl,'
7901         lt_prog_compiler_pic='-fpic'
7902         lt_prog_compiler_static='-Bstatic'
7903         ;;
7904       ccc*)
7905         lt_prog_compiler_wl='-Wl,'
7906         # All Alpha code is PIC.
7907         lt_prog_compiler_static='-non_shared'
7908         ;;
7909       xl*)
7910         # IBM XL C 8.0/Fortran 10.1 on PPC
7911         lt_prog_compiler_wl='-Wl,'
7912         lt_prog_compiler_pic='-qpic'
7913         lt_prog_compiler_static='-qstaticlink'
7914         ;;
7915       *)
7916         case `$CC -V 2>&1 | sed 5q` in
7917         *Sun\ C*)
7918           # Sun C 5.9
7919           lt_prog_compiler_pic='-KPIC'
7920           lt_prog_compiler_static='-Bstatic'
7921           lt_prog_compiler_wl='-Wl,'
7922           ;;
7923         *Sun\ F*)
7924           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7925           lt_prog_compiler_pic='-KPIC'
7926           lt_prog_compiler_static='-Bstatic'
7927           lt_prog_compiler_wl=''
7928           ;;
7929         esac
7930         ;;
7931       esac
7932       ;;
7933
7934     newsos6)
7935       lt_prog_compiler_pic='-KPIC'
7936       lt_prog_compiler_static='-Bstatic'
7937       ;;
7938
7939     *nto* | *qnx*)
7940       # QNX uses GNU C++, but need to define -shared option too, otherwise
7941       # it will coredump.
7942       lt_prog_compiler_pic='-fPIC -shared'
7943       ;;
7944
7945     osf3* | osf4* | osf5*)
7946       lt_prog_compiler_wl='-Wl,'
7947       # All OSF/1 code is PIC.
7948       lt_prog_compiler_static='-non_shared'
7949       ;;
7950
7951     rdos*)
7952       lt_prog_compiler_static='-non_shared'
7953       ;;
7954
7955     solaris*)
7956       lt_prog_compiler_pic='-KPIC'
7957       lt_prog_compiler_static='-Bstatic'
7958       case $cc_basename in
7959       f77* | f90* | f95*)
7960         lt_prog_compiler_wl='-Qoption ld ';;
7961       *)
7962         lt_prog_compiler_wl='-Wl,';;
7963       esac
7964       ;;
7965
7966     sunos4*)
7967       lt_prog_compiler_wl='-Qoption ld '
7968       lt_prog_compiler_pic='-PIC'
7969       lt_prog_compiler_static='-Bstatic'
7970       ;;
7971
7972     sysv4 | sysv4.2uw2* | sysv4.3*)
7973       lt_prog_compiler_wl='-Wl,'
7974       lt_prog_compiler_pic='-KPIC'
7975       lt_prog_compiler_static='-Bstatic'
7976       ;;
7977
7978     sysv4*MP*)
7979       if test -d /usr/nec ;then
7980         lt_prog_compiler_pic='-Kconform_pic'
7981         lt_prog_compiler_static='-Bstatic'
7982       fi
7983       ;;
7984
7985     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7986       lt_prog_compiler_wl='-Wl,'
7987       lt_prog_compiler_pic='-KPIC'
7988       lt_prog_compiler_static='-Bstatic'
7989       ;;
7990
7991     unicos*)
7992       lt_prog_compiler_wl='-Wl,'
7993       lt_prog_compiler_can_build_shared=no
7994       ;;
7995
7996     uts4*)
7997       lt_prog_compiler_pic='-pic'
7998       lt_prog_compiler_static='-Bstatic'
7999       ;;
8000
8001     *)
8002       lt_prog_compiler_can_build_shared=no
8003       ;;
8004     esac
8005   fi
8006
8007 case $host_os in
8008   # For platforms which do not support PIC, -DPIC is meaningless:
8009   *djgpp*)
8010     lt_prog_compiler_pic=
8011     ;;
8012   *)
8013     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8014     ;;
8015 esac
8016 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8017 $as_echo "$lt_prog_compiler_pic" >&6; }
8018
8019
8020
8021
8022
8023
8024 #
8025 # Check to make sure the PIC flag actually works.
8026 #
8027 if test -n "$lt_prog_compiler_pic"; then
8028   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8029 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8030 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8031   $as_echo_n "(cached) " >&6
8032 else
8033   lt_cv_prog_compiler_pic_works=no
8034    ac_outfile=conftest.$ac_objext
8035    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8036    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8037    # Insert the option either (1) after the last *FLAGS variable, or
8038    # (2) before a word containing "conftest.", or (3) at the end.
8039    # Note that $ac_compile itself does not contain backslashes and begins
8040    # with a dollar sign (not a hyphen), so the echo should work correctly.
8041    # The option is referenced via a variable to avoid confusing sed.
8042    lt_compile=`echo "$ac_compile" | $SED \
8043    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8044    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8045    -e 's:$: $lt_compiler_flag:'`
8046    (eval echo "\"\$as_me:8046: $lt_compile\"" >&5)
8047    (eval "$lt_compile" 2>conftest.err)
8048    ac_status=$?
8049    cat conftest.err >&5
8050    echo "$as_me:8050: \$? = $ac_status" >&5
8051    if (exit $ac_status) && test -s "$ac_outfile"; then
8052      # The compiler can only warn and ignore the option if not recognized
8053      # So say no if there are warnings other than the usual output.
8054      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8055      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8056      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8057        lt_cv_prog_compiler_pic_works=yes
8058      fi
8059    fi
8060    $RM conftest*
8061
8062 fi
8063 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8064 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8065
8066 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8067     case $lt_prog_compiler_pic in
8068      "" | " "*) ;;
8069      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8070      esac
8071 else
8072     lt_prog_compiler_pic=
8073      lt_prog_compiler_can_build_shared=no
8074 fi
8075
8076 fi
8077
8078
8079
8080
8081
8082
8083 #
8084 # Check to make sure the static flag actually works.
8085 #
8086 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8087 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8088 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8089 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8090   $as_echo_n "(cached) " >&6
8091 else
8092   lt_cv_prog_compiler_static_works=no
8093    save_LDFLAGS="$LDFLAGS"
8094    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8095    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8096    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8097      # The linker can only warn and ignore the option if not recognized
8098      # So say no if there are warnings
8099      if test -s conftest.err; then
8100        # Append any errors to the config.log.
8101        cat conftest.err 1>&5
8102        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8103        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8104        if diff conftest.exp conftest.er2 >/dev/null; then
8105          lt_cv_prog_compiler_static_works=yes
8106        fi
8107      else
8108        lt_cv_prog_compiler_static_works=yes
8109      fi
8110    fi
8111    $RM -r conftest*
8112    LDFLAGS="$save_LDFLAGS"
8113
8114 fi
8115 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8116 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8117
8118 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8119     :
8120 else
8121     lt_prog_compiler_static=
8122 fi
8123
8124
8125
8126
8127
8128
8129
8130   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8131 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8132 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8133   $as_echo_n "(cached) " >&6
8134 else
8135   lt_cv_prog_compiler_c_o=no
8136    $RM -r conftest 2>/dev/null
8137    mkdir conftest
8138    cd conftest
8139    mkdir out
8140    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8141
8142    lt_compiler_flag="-o out/conftest2.$ac_objext"
8143    # Insert the option either (1) after the last *FLAGS variable, or
8144    # (2) before a word containing "conftest.", or (3) at the end.
8145    # Note that $ac_compile itself does not contain backslashes and begins
8146    # with a dollar sign (not a hyphen), so the echo should work correctly.
8147    lt_compile=`echo "$ac_compile" | $SED \
8148    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8149    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8150    -e 's:$: $lt_compiler_flag:'`
8151    (eval echo "\"\$as_me:8151: $lt_compile\"" >&5)
8152    (eval "$lt_compile" 2>out/conftest.err)
8153    ac_status=$?
8154    cat out/conftest.err >&5
8155    echo "$as_me:8155: \$? = $ac_status" >&5
8156    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8157    then
8158      # The compiler can only warn and ignore the option if not recognized
8159      # So say no if there are warnings
8160      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8161      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8162      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8163        lt_cv_prog_compiler_c_o=yes
8164      fi
8165    fi
8166    chmod u+w . 2>&5
8167    $RM conftest*
8168    # SGI C++ compiler will create directory out/ii_files/ for
8169    # template instantiation
8170    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8171    $RM out/* && rmdir out
8172    cd ..
8173    $RM -r conftest
8174    $RM conftest*
8175
8176 fi
8177 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8178 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8179
8180
8181
8182
8183
8184
8185   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8186 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8187 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8188   $as_echo_n "(cached) " >&6
8189 else
8190   lt_cv_prog_compiler_c_o=no
8191    $RM -r conftest 2>/dev/null
8192    mkdir conftest
8193    cd conftest
8194    mkdir out
8195    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8196
8197    lt_compiler_flag="-o out/conftest2.$ac_objext"
8198    # Insert the option either (1) after the last *FLAGS variable, or
8199    # (2) before a word containing "conftest.", or (3) at the end.
8200    # Note that $ac_compile itself does not contain backslashes and begins
8201    # with a dollar sign (not a hyphen), so the echo should work correctly.
8202    lt_compile=`echo "$ac_compile" | $SED \
8203    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8204    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8205    -e 's:$: $lt_compiler_flag:'`
8206    (eval echo "\"\$as_me:8206: $lt_compile\"" >&5)
8207    (eval "$lt_compile" 2>out/conftest.err)
8208    ac_status=$?
8209    cat out/conftest.err >&5
8210    echo "$as_me:8210: \$? = $ac_status" >&5
8211    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8212    then
8213      # The compiler can only warn and ignore the option if not recognized
8214      # So say no if there are warnings
8215      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8216      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8217      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8218        lt_cv_prog_compiler_c_o=yes
8219      fi
8220    fi
8221    chmod u+w . 2>&5
8222    $RM conftest*
8223    # SGI C++ compiler will create directory out/ii_files/ for
8224    # template instantiation
8225    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8226    $RM out/* && rmdir out
8227    cd ..
8228    $RM -r conftest
8229    $RM conftest*
8230
8231 fi
8232 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8233 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8234
8235
8236
8237
8238 hard_links="nottested"
8239 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8240   # do not overwrite the value of need_locks provided by the user
8241   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8242 $as_echo_n "checking if we can lock with hard links... " >&6; }
8243   hard_links=yes
8244   $RM conftest*
8245   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8246   touch conftest.a
8247   ln conftest.a conftest.b 2>&5 || hard_links=no
8248   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8249   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8250 $as_echo "$hard_links" >&6; }
8251   if test "$hard_links" = no; then
8252     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8253 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8254     need_locks=warn
8255   fi
8256 else
8257   need_locks=no
8258 fi
8259
8260
8261
8262
8263
8264
8265   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8266 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8267
8268   runpath_var=
8269   allow_undefined_flag=
8270   always_export_symbols=no
8271   archive_cmds=
8272   archive_expsym_cmds=
8273   compiler_needs_object=no
8274   enable_shared_with_static_runtimes=no
8275   export_dynamic_flag_spec=
8276   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8277   hardcode_automatic=no
8278   hardcode_direct=no
8279   hardcode_direct_absolute=no
8280   hardcode_libdir_flag_spec=
8281   hardcode_libdir_flag_spec_ld=
8282   hardcode_libdir_separator=
8283   hardcode_minus_L=no
8284   hardcode_shlibpath_var=unsupported
8285   inherit_rpath=no
8286   link_all_deplibs=unknown
8287   module_cmds=
8288   module_expsym_cmds=
8289   old_archive_from_new_cmds=
8290   old_archive_from_expsyms_cmds=
8291   thread_safe_flag_spec=
8292   whole_archive_flag_spec=
8293   # include_expsyms should be a list of space-separated symbols to be *always*
8294   # included in the symbol list
8295   include_expsyms=
8296   # exclude_expsyms can be an extended regexp of symbols to exclude
8297   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8298   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8299   # as well as any symbol that contains `d'.
8300   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8301   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8302   # platforms (ab)use it in PIC code, but their linkers get confused if
8303   # the symbol is explicitly referenced.  Since portable code cannot
8304   # rely on this symbol name, it's probably fine to never include it in
8305   # preloaded symbol tables.
8306   # Exclude shared library initialization/finalization symbols.
8307   extract_expsyms_cmds=
8308
8309   case $host_os in
8310   cygwin* | mingw* | pw32* | cegcc*)
8311     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8312     # When not using gcc, we currently assume that we are using
8313     # Microsoft Visual C++.
8314     if test "$GCC" != yes; then
8315       with_gnu_ld=no
8316     fi
8317     ;;
8318   interix*)
8319     # we just hope/assume this is gcc and not c89 (= MSVC++)
8320     with_gnu_ld=yes
8321     ;;
8322   openbsd*)
8323     with_gnu_ld=no
8324     ;;
8325   esac
8326
8327   ld_shlibs=yes
8328   if test "$with_gnu_ld" = yes; then
8329     # If archive_cmds runs LD, not CC, wlarc should be empty
8330     wlarc='${wl}'
8331
8332     # Set some defaults for GNU ld with shared library support. These
8333     # are reset later if shared libraries are not supported. Putting them
8334     # here allows them to be overridden if necessary.
8335     runpath_var=LD_RUN_PATH
8336     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8337     export_dynamic_flag_spec='${wl}--export-dynamic'
8338     # ancient GNU ld didn't support --whole-archive et. al.
8339     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8340       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8341     else
8342       whole_archive_flag_spec=
8343     fi
8344     supports_anon_versioning=no
8345     case `$LD -v 2>&1` in
8346       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8347       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8348       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8349       *\ 2.11.*) ;; # other 2.11 versions
8350       *) supports_anon_versioning=yes ;;
8351     esac
8352
8353     # See if GNU ld supports shared libraries.
8354     case $host_os in
8355     aix[3-9]*)
8356       # On AIX/PPC, the GNU linker is very broken
8357       if test "$host_cpu" != ia64; then
8358         ld_shlibs=no
8359         cat <<_LT_EOF 1>&2
8360
8361 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8362 *** to be unable to reliably create shared libraries on AIX.
8363 *** Therefore, libtool is disabling shared libraries support.  If you
8364 *** really care for shared libraries, you may want to modify your PATH
8365 *** so that a non-GNU linker is found, and then restart.
8366
8367 _LT_EOF
8368       fi
8369       ;;
8370
8371     amigaos*)
8372       case $host_cpu in
8373       powerpc)
8374             # see comment about AmigaOS4 .so support
8375             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8376             archive_expsym_cmds=''
8377         ;;
8378       m68k)
8379             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)'
8380             hardcode_libdir_flag_spec='-L$libdir'
8381             hardcode_minus_L=yes
8382         ;;
8383       esac
8384       ;;
8385
8386     beos*)
8387       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8388         allow_undefined_flag=unsupported
8389         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8390         # support --undefined.  This deserves some investigation.  FIXME
8391         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8392       else
8393         ld_shlibs=no
8394       fi
8395       ;;
8396
8397     cygwin* | mingw* | pw32* | cegcc*)
8398       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8399       # as there is no search path for DLLs.
8400       hardcode_libdir_flag_spec='-L$libdir'
8401       allow_undefined_flag=unsupported
8402       always_export_symbols=no
8403       enable_shared_with_static_runtimes=yes
8404       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8405
8406       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8407         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8408         # If the export-symbols file already is a .def file (1st line
8409         # is EXPORTS), use it as is; otherwise, prepend...
8410         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8411           cp $export_symbols $output_objdir/$soname.def;
8412         else
8413           echo EXPORTS > $output_objdir/$soname.def;
8414           cat $export_symbols >> $output_objdir/$soname.def;
8415         fi~
8416         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8417       else
8418         ld_shlibs=no
8419       fi
8420       ;;
8421
8422     interix[3-9]*)
8423       hardcode_direct=no
8424       hardcode_shlibpath_var=no
8425       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8426       export_dynamic_flag_spec='${wl}-E'
8427       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8428       # Instead, shared libraries are loaded at an image base (0x10000000 by
8429       # default) and relocated if they conflict, which is a slow very memory
8430       # consuming and fragmenting process.  To avoid this, we pick a random,
8431       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8432       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8433       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8434       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'
8435       ;;
8436
8437     gnu* | linux* | tpf* | k*bsd*-gnu)
8438       tmp_diet=no
8439       if test "$host_os" = linux-dietlibc; then
8440         case $cc_basename in
8441           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8442         esac
8443       fi
8444       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8445          && test "$tmp_diet" = no
8446       then
8447         tmp_addflag=
8448         tmp_sharedflag='-shared'
8449         case $cc_basename,$host_cpu in
8450         pgcc*)                          # Portland Group C compiler
8451           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'
8452           tmp_addflag=' $pic_flag'
8453           ;;
8454         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8455           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'
8456           tmp_addflag=' $pic_flag -Mnomain' ;;
8457         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8458           tmp_addflag=' -i_dynamic' ;;
8459         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8460           tmp_addflag=' -i_dynamic -nofor_main' ;;
8461         ifc* | ifort*)                  # Intel Fortran compiler
8462           tmp_addflag=' -nofor_main' ;;
8463         lf95*)                          # Lahey Fortran 8.1
8464           whole_archive_flag_spec=
8465           tmp_sharedflag='--shared' ;;
8466         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8467           tmp_sharedflag='-qmkshrobj'
8468           tmp_addflag= ;;
8469         esac
8470         case `$CC -V 2>&1 | sed 5q` in
8471         *Sun\ C*)                       # Sun C 5.9
8472           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'
8473           compiler_needs_object=yes
8474           tmp_sharedflag='-G' ;;
8475         *Sun\ F*)                       # Sun Fortran 8.3
8476           tmp_sharedflag='-G' ;;
8477         esac
8478         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8479
8480         if test "x$supports_anon_versioning" = xyes; then
8481           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8482             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8483             echo "local: *; };" >> $output_objdir/$libname.ver~
8484             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8485         fi
8486
8487         case $cc_basename in
8488         xlf*)
8489           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8490           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8491           hardcode_libdir_flag_spec=
8492           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8493           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8494           if test "x$supports_anon_versioning" = xyes; then
8495             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8496               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8497               echo "local: *; };" >> $output_objdir/$libname.ver~
8498               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8499           fi
8500           ;;
8501         esac
8502       else
8503         ld_shlibs=no
8504       fi
8505       ;;
8506
8507     netbsd*)
8508       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8509         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8510         wlarc=
8511       else
8512         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8513         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8514       fi
8515       ;;
8516
8517     solaris*)
8518       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8519         ld_shlibs=no
8520         cat <<_LT_EOF 1>&2
8521
8522 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8523 *** create shared libraries on Solaris systems.  Therefore, libtool
8524 *** is disabling shared libraries support.  We urge you to upgrade GNU
8525 *** binutils to release 2.9.1 or newer.  Another option is to modify
8526 *** your PATH or compiler configuration so that the native linker is
8527 *** used, and then restart.
8528
8529 _LT_EOF
8530       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8531         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8533       else
8534         ld_shlibs=no
8535       fi
8536       ;;
8537
8538     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8539       case `$LD -v 2>&1` in
8540         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8541         ld_shlibs=no
8542         cat <<_LT_EOF 1>&2
8543
8544 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8545 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8546 *** is disabling shared libraries support.  We urge you to upgrade GNU
8547 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8548 *** your PATH or compiler configuration so that the native linker is
8549 *** used, and then restart.
8550
8551 _LT_EOF
8552         ;;
8553         *)
8554           # For security reasons, it is highly recommended that you always
8555           # use absolute paths for naming shared libraries, and exclude the
8556           # DT_RUNPATH tag from executables and libraries.  But doing so
8557           # requires that you compile everything twice, which is a pain.
8558           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8559             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8560             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8561             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8562           else
8563             ld_shlibs=no
8564           fi
8565         ;;
8566       esac
8567       ;;
8568
8569     sunos4*)
8570       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8571       wlarc=
8572       hardcode_direct=yes
8573       hardcode_shlibpath_var=no
8574       ;;
8575
8576     *)
8577       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8578         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8580       else
8581         ld_shlibs=no
8582       fi
8583       ;;
8584     esac
8585
8586     if test "$ld_shlibs" = no; then
8587       runpath_var=
8588       hardcode_libdir_flag_spec=
8589       export_dynamic_flag_spec=
8590       whole_archive_flag_spec=
8591     fi
8592   else
8593     # PORTME fill in a description of your system's linker (not GNU ld)
8594     case $host_os in
8595     aix3*)
8596       allow_undefined_flag=unsupported
8597       always_export_symbols=yes
8598       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'
8599       # Note: this linker hardcodes the directories in LIBPATH if there
8600       # are no directories specified by -L.
8601       hardcode_minus_L=yes
8602       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8603         # Neither direct hardcoding nor static linking is supported with a
8604         # broken collect2.
8605         hardcode_direct=unsupported
8606       fi
8607       ;;
8608
8609     aix[4-9]*)
8610       if test "$host_cpu" = ia64; then
8611         # On IA64, the linker does run time linking by default, so we don't
8612         # have to do anything special.
8613         aix_use_runtimelinking=no
8614         exp_sym_flag='-Bexport'
8615         no_entry_flag=""
8616       else
8617         # If we're using GNU nm, then we don't want the "-C" option.
8618         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8619         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8620           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'
8621         else
8622           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'
8623         fi
8624         aix_use_runtimelinking=no
8625
8626         # Test if we are trying to use run time linking or normal
8627         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8628         # need to do runtime linking.
8629         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8630           for ld_flag in $LDFLAGS; do
8631           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8632             aix_use_runtimelinking=yes
8633             break
8634           fi
8635           done
8636           ;;
8637         esac
8638
8639         exp_sym_flag='-bexport'
8640         no_entry_flag='-bnoentry'
8641       fi
8642
8643       # When large executables or shared objects are built, AIX ld can
8644       # have problems creating the table of contents.  If linking a library
8645       # or program results in "error TOC overflow" add -mminimal-toc to
8646       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8647       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8648
8649       archive_cmds=''
8650       hardcode_direct=yes
8651       hardcode_direct_absolute=yes
8652       hardcode_libdir_separator=':'
8653       link_all_deplibs=yes
8654       file_list_spec='${wl}-f,'
8655
8656       if test "$GCC" = yes; then
8657         case $host_os in aix4.[012]|aix4.[012].*)
8658         # We only want to do this on AIX 4.2 and lower, the check
8659         # below for broken collect2 doesn't work under 4.3+
8660           collect2name=`${CC} -print-prog-name=collect2`
8661           if test -f "$collect2name" &&
8662            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8663           then
8664           # We have reworked collect2
8665           :
8666           else
8667           # We have old collect2
8668           hardcode_direct=unsupported
8669           # It fails to find uninstalled libraries when the uninstalled
8670           # path is not listed in the libpath.  Setting hardcode_minus_L
8671           # to unsupported forces relinking
8672           hardcode_minus_L=yes
8673           hardcode_libdir_flag_spec='-L$libdir'
8674           hardcode_libdir_separator=
8675           fi
8676           ;;
8677         esac
8678         shared_flag='-shared'
8679         if test "$aix_use_runtimelinking" = yes; then
8680           shared_flag="$shared_flag "'${wl}-G'
8681         fi
8682       else
8683         # not using gcc
8684         if test "$host_cpu" = ia64; then
8685         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8686         # chokes on -Wl,-G. The following line is correct:
8687           shared_flag='-G'
8688         else
8689           if test "$aix_use_runtimelinking" = yes; then
8690             shared_flag='${wl}-G'
8691           else
8692             shared_flag='${wl}-bM:SRE'
8693           fi
8694         fi
8695       fi
8696
8697       export_dynamic_flag_spec='${wl}-bexpall'
8698       # It seems that -bexpall does not export symbols beginning with
8699       # underscore (_), so it is better to generate a list of symbols to export.
8700       always_export_symbols=yes
8701       if test "$aix_use_runtimelinking" = yes; then
8702         # Warning - without using the other runtime loading flags (-brtl),
8703         # -berok will link without error, but may produce a broken library.
8704         allow_undefined_flag='-berok'
8705         # Determine the default libpath from the value encoded in an
8706         # empty executable.
8707         cat >conftest.$ac_ext <<_ACEOF
8708 /* confdefs.h.  */
8709 _ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h.  */
8713
8714 int
8715 main ()
8716 {
8717
8718   ;
8719   return 0;
8720 }
8721 _ACEOF
8722 rm -f conftest.$ac_objext conftest$ac_exeext
8723 if { (ac_try="$ac_link"
8724 case "(($ac_try" in
8725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726   *) ac_try_echo=$ac_try;;
8727 esac
8728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8729 $as_echo "$ac_try_echo") >&5
8730   (eval "$ac_link") 2>conftest.er1
8731   ac_status=$?
8732   grep -v '^ *+' conftest.er1 >conftest.err
8733   rm -f conftest.er1
8734   cat conftest.err >&5
8735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); } && {
8737          test -z "$ac_c_werror_flag" ||
8738          test ! -s conftest.err
8739        } && test -s conftest$ac_exeext && {
8740          test "$cross_compiling" = yes ||
8741          $as_test_x conftest$ac_exeext
8742        }; then
8743
8744 lt_aix_libpath_sed='
8745     /Import File Strings/,/^$/ {
8746         /^0/ {
8747             s/^0  *\(.*\)$/\1/
8748             p
8749         }
8750     }'
8751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8752 # Check for a 64-bit object if we didn't find anything.
8753 if test -z "$aix_libpath"; then
8754   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8755 fi
8756 else
8757   $as_echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8759
8760
8761 fi
8762
8763 rm -rf conftest.dSYM
8764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8765       conftest$ac_exeext conftest.$ac_ext
8766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8767
8768         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8769         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"
8770       else
8771         if test "$host_cpu" = ia64; then
8772           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8773           allow_undefined_flag="-z nodefs"
8774           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"
8775         else
8776          # Determine the default libpath from the value encoded in an
8777          # empty executable.
8778          cat >conftest.$ac_ext <<_ACEOF
8779 /* confdefs.h.  */
8780 _ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h.  */
8784
8785 int
8786 main ()
8787 {
8788
8789   ;
8790   return 0;
8791 }
8792 _ACEOF
8793 rm -f conftest.$ac_objext conftest$ac_exeext
8794 if { (ac_try="$ac_link"
8795 case "(($ac_try" in
8796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797   *) ac_try_echo=$ac_try;;
8798 esac
8799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8800 $as_echo "$ac_try_echo") >&5
8801   (eval "$ac_link") 2>conftest.er1
8802   ac_status=$?
8803   grep -v '^ *+' conftest.er1 >conftest.err
8804   rm -f conftest.er1
8805   cat conftest.err >&5
8806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); } && {
8808          test -z "$ac_c_werror_flag" ||
8809          test ! -s conftest.err
8810        } && test -s conftest$ac_exeext && {
8811          test "$cross_compiling" = yes ||
8812          $as_test_x conftest$ac_exeext
8813        }; then
8814
8815 lt_aix_libpath_sed='
8816     /Import File Strings/,/^$/ {
8817         /^0/ {
8818             s/^0  *\(.*\)$/\1/
8819             p
8820         }
8821     }'
8822 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8823 # Check for a 64-bit object if we didn't find anything.
8824 if test -z "$aix_libpath"; then
8825   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8826 fi
8827 else
8828   $as_echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8830
8831
8832 fi
8833
8834 rm -rf conftest.dSYM
8835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8836       conftest$ac_exeext conftest.$ac_ext
8837 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8838
8839          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8840           # Warning - without using the other run time loading flags,
8841           # -berok will link without error, but may produce a broken library.
8842           no_undefined_flag=' ${wl}-bernotok'
8843           allow_undefined_flag=' ${wl}-berok'
8844           # Exported symbols can be pulled into shared objects from archives
8845           whole_archive_flag_spec='$convenience'
8846           archive_cmds_need_lc=yes
8847           # This is similar to how AIX traditionally builds its shared libraries.
8848           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'
8849         fi
8850       fi
8851       ;;
8852
8853     amigaos*)
8854       case $host_cpu in
8855       powerpc)
8856             # see comment about AmigaOS4 .so support
8857             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8858             archive_expsym_cmds=''
8859         ;;
8860       m68k)
8861             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)'
8862             hardcode_libdir_flag_spec='-L$libdir'
8863             hardcode_minus_L=yes
8864         ;;
8865       esac
8866       ;;
8867
8868     bsdi[45]*)
8869       export_dynamic_flag_spec=-rdynamic
8870       ;;
8871
8872     cygwin* | mingw* | pw32* | cegcc*)
8873       # When not using gcc, we currently assume that we are using
8874       # Microsoft Visual C++.
8875       # hardcode_libdir_flag_spec is actually meaningless, as there is
8876       # no search path for DLLs.
8877       hardcode_libdir_flag_spec=' '
8878       allow_undefined_flag=unsupported
8879       # Tell ltmain to make .lib files, not .a files.
8880       libext=lib
8881       # Tell ltmain to make .dll files, not .so files.
8882       shrext_cmds=".dll"
8883       # FIXME: Setting linknames here is a bad hack.
8884       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8885       # The linker will automatically build a .lib file if we build a DLL.
8886       old_archive_from_new_cmds='true'
8887       # FIXME: Should let the user specify the lib program.
8888       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8889       fix_srcfile_path='`cygpath -w "$srcfile"`'
8890       enable_shared_with_static_runtimes=yes
8891       ;;
8892
8893     darwin* | rhapsody*)
8894
8895
8896   archive_cmds_need_lc=no
8897   hardcode_direct=no
8898   hardcode_automatic=yes
8899   hardcode_shlibpath_var=unsupported
8900   whole_archive_flag_spec=''
8901   link_all_deplibs=yes
8902   allow_undefined_flag="$_lt_dar_allow_undefined"
8903   case $cc_basename in
8904      ifort*) _lt_dar_can_shared=yes ;;
8905      *) _lt_dar_can_shared=$GCC ;;
8906   esac
8907   if test "$_lt_dar_can_shared" = "yes"; then
8908     output_verbose_link_cmd=echo
8909     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8910     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8911     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}"
8912     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}"
8913
8914   else
8915   ld_shlibs=no
8916   fi
8917
8918       ;;
8919
8920     dgux*)
8921       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922       hardcode_libdir_flag_spec='-L$libdir'
8923       hardcode_shlibpath_var=no
8924       ;;
8925
8926     freebsd1*)
8927       ld_shlibs=no
8928       ;;
8929
8930     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8931     # support.  Future versions do this automatically, but an explicit c++rt0.o
8932     # does not break anything, and helps significantly (at the cost of a little
8933     # extra space).
8934     freebsd2.2*)
8935       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8936       hardcode_libdir_flag_spec='-R$libdir'
8937       hardcode_direct=yes
8938       hardcode_shlibpath_var=no
8939       ;;
8940
8941     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8942     freebsd2*)
8943       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8944       hardcode_direct=yes
8945       hardcode_minus_L=yes
8946       hardcode_shlibpath_var=no
8947       ;;
8948
8949     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8950     freebsd* | dragonfly*)
8951       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8952       hardcode_libdir_flag_spec='-R$libdir'
8953       hardcode_direct=yes
8954       hardcode_shlibpath_var=no
8955       ;;
8956
8957     hpux9*)
8958       if test "$GCC" = yes; then
8959         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'
8960       else
8961         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'
8962       fi
8963       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8964       hardcode_libdir_separator=:
8965       hardcode_direct=yes
8966
8967       # hardcode_minus_L: Not really in the search PATH,
8968       # but as the default location of the library.
8969       hardcode_minus_L=yes
8970       export_dynamic_flag_spec='${wl}-E'
8971       ;;
8972
8973     hpux10*)
8974       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8975         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8976       else
8977         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8978       fi
8979       if test "$with_gnu_ld" = no; then
8980         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8981         hardcode_libdir_flag_spec_ld='+b $libdir'
8982         hardcode_libdir_separator=:
8983         hardcode_direct=yes
8984         hardcode_direct_absolute=yes
8985         export_dynamic_flag_spec='${wl}-E'
8986         # hardcode_minus_L: Not really in the search PATH,
8987         # but as the default location of the library.
8988         hardcode_minus_L=yes
8989       fi
8990       ;;
8991
8992     hpux11*)
8993       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8994         case $host_cpu in
8995         hppa*64*)
8996           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8997           ;;
8998         ia64*)
8999           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9000           ;;
9001         *)
9002           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9003           ;;
9004         esac
9005       else
9006         case $host_cpu in
9007         hppa*64*)
9008           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9009           ;;
9010         ia64*)
9011           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9012           ;;
9013         *)
9014           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9015           ;;
9016         esac
9017       fi
9018       if test "$with_gnu_ld" = no; then
9019         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9020         hardcode_libdir_separator=:
9021
9022         case $host_cpu in
9023         hppa*64*|ia64*)
9024           hardcode_direct=no
9025           hardcode_shlibpath_var=no
9026           ;;
9027         *)
9028           hardcode_direct=yes
9029           hardcode_direct_absolute=yes
9030           export_dynamic_flag_spec='${wl}-E'
9031
9032           # hardcode_minus_L: Not really in the search PATH,
9033           # but as the default location of the library.
9034           hardcode_minus_L=yes
9035           ;;
9036         esac
9037       fi
9038       ;;
9039
9040     irix5* | irix6* | nonstopux*)
9041       if test "$GCC" = yes; then
9042         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'
9043         # Try to use the -exported_symbol ld option, if it does not
9044         # work, assume that -exports_file does not work either and
9045         # implicitly export all symbols.
9046         save_LDFLAGS="$LDFLAGS"
9047         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9048         cat >conftest.$ac_ext <<_ACEOF
9049 int foo(void) {}
9050 _ACEOF
9051 rm -f conftest.$ac_objext conftest$ac_exeext
9052 if { (ac_try="$ac_link"
9053 case "(($ac_try" in
9054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055   *) ac_try_echo=$ac_try;;
9056 esac
9057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9058 $as_echo "$ac_try_echo") >&5
9059   (eval "$ac_link") 2>conftest.er1
9060   ac_status=$?
9061   grep -v '^ *+' conftest.er1 >conftest.err
9062   rm -f conftest.er1
9063   cat conftest.err >&5
9064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); } && {
9066          test -z "$ac_c_werror_flag" ||
9067          test ! -s conftest.err
9068        } && test -s conftest$ac_exeext && {
9069          test "$cross_compiling" = yes ||
9070          $as_test_x conftest$ac_exeext
9071        }; then
9072   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'
9073
9074 else
9075   $as_echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9077
9078
9079 fi
9080
9081 rm -rf conftest.dSYM
9082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9083       conftest$ac_exeext conftest.$ac_ext
9084         LDFLAGS="$save_LDFLAGS"
9085       else
9086         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'
9087         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'
9088       fi
9089       archive_cmds_need_lc='no'
9090       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9091       hardcode_libdir_separator=:
9092       inherit_rpath=yes
9093       link_all_deplibs=yes
9094       ;;
9095
9096     netbsd*)
9097       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9098         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9099       else
9100         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9101       fi
9102       hardcode_libdir_flag_spec='-R$libdir'
9103       hardcode_direct=yes
9104       hardcode_shlibpath_var=no
9105       ;;
9106
9107     newsos6)
9108       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9109       hardcode_direct=yes
9110       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9111       hardcode_libdir_separator=:
9112       hardcode_shlibpath_var=no
9113       ;;
9114
9115     *nto* | *qnx*)
9116       ;;
9117
9118     openbsd*)
9119       if test -f /usr/libexec/ld.so; then
9120         hardcode_direct=yes
9121         hardcode_shlibpath_var=no
9122         hardcode_direct_absolute=yes
9123         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9124           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9125           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9126           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9127           export_dynamic_flag_spec='${wl}-E'
9128         else
9129           case $host_os in
9130            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9131              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9132              hardcode_libdir_flag_spec='-R$libdir'
9133              ;;
9134            *)
9135              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9136              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9137              ;;
9138           esac
9139         fi
9140       else
9141         ld_shlibs=no
9142       fi
9143       ;;
9144
9145     os2*)
9146       hardcode_libdir_flag_spec='-L$libdir'
9147       hardcode_minus_L=yes
9148       allow_undefined_flag=unsupported
9149       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'
9150       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9151       ;;
9152
9153     osf3*)
9154       if test "$GCC" = yes; then
9155         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9156         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'
9157       else
9158         allow_undefined_flag=' -expect_unresolved \*'
9159         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'
9160       fi
9161       archive_cmds_need_lc='no'
9162       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9163       hardcode_libdir_separator=:
9164       ;;
9165
9166     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9167       if test "$GCC" = yes; then
9168         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9169         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'
9170         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9171       else
9172         allow_undefined_flag=' -expect_unresolved \*'
9173         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'
9174         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~
9175         $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'
9176
9177         # Both c and cxx compiler support -rpath directly
9178         hardcode_libdir_flag_spec='-rpath $libdir'
9179       fi
9180       archive_cmds_need_lc='no'
9181       hardcode_libdir_separator=:
9182       ;;
9183
9184     solaris*)
9185       no_undefined_flag=' -z defs'
9186       if test "$GCC" = yes; then
9187         wlarc='${wl}'
9188         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9189         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9190           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9191       else
9192         case `$CC -V 2>&1` in
9193         *"Compilers 5.0"*)
9194           wlarc=''
9195           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9196           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9197           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9198           ;;
9199         *)
9200           wlarc='${wl}'
9201           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9202           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9203           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9204           ;;
9205         esac
9206       fi
9207       hardcode_libdir_flag_spec='-R$libdir'
9208       hardcode_shlibpath_var=no
9209       case $host_os in
9210       solaris2.[0-5] | solaris2.[0-5].*) ;;
9211       *)
9212         # The compiler driver will combine and reorder linker options,
9213         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9214         # but is careful enough not to reorder.
9215         # Supported since Solaris 2.6 (maybe 2.5.1?)
9216         if test "$GCC" = yes; then
9217           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9218         else
9219           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9220         fi
9221         ;;
9222       esac
9223       link_all_deplibs=yes
9224       ;;
9225
9226     sunos4*)
9227       if test "x$host_vendor" = xsequent; then
9228         # Use $CC to link under sequent, because it throws in some extra .o
9229         # files that make .init and .fini sections work.
9230         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9231       else
9232         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9233       fi
9234       hardcode_libdir_flag_spec='-L$libdir'
9235       hardcode_direct=yes
9236       hardcode_minus_L=yes
9237       hardcode_shlibpath_var=no
9238       ;;
9239
9240     sysv4)
9241       case $host_vendor in
9242         sni)
9243           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9244           hardcode_direct=yes # is this really true???
9245         ;;
9246         siemens)
9247           ## LD is ld it makes a PLAMLIB
9248           ## CC just makes a GrossModule.
9249           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9250           reload_cmds='$CC -r -o $output$reload_objs'
9251           hardcode_direct=no
9252         ;;
9253         motorola)
9254           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9255           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9256         ;;
9257       esac
9258       runpath_var='LD_RUN_PATH'
9259       hardcode_shlibpath_var=no
9260       ;;
9261
9262     sysv4.3*)
9263       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9264       hardcode_shlibpath_var=no
9265       export_dynamic_flag_spec='-Bexport'
9266       ;;
9267
9268     sysv4*MP*)
9269       if test -d /usr/nec; then
9270         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9271         hardcode_shlibpath_var=no
9272         runpath_var=LD_RUN_PATH
9273         hardcode_runpath_var=yes
9274         ld_shlibs=yes
9275       fi
9276       ;;
9277
9278     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9279       no_undefined_flag='${wl}-z,text'
9280       archive_cmds_need_lc=no
9281       hardcode_shlibpath_var=no
9282       runpath_var='LD_RUN_PATH'
9283
9284       if test "$GCC" = yes; then
9285         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9286         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9287       else
9288         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9289         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9290       fi
9291       ;;
9292
9293     sysv5* | sco3.2v5* | sco5v6*)
9294       # Note: We can NOT use -z defs as we might desire, because we do not
9295       # link with -lc, and that would cause any symbols used from libc to
9296       # always be unresolved, which means just about no library would
9297       # ever link correctly.  If we're not using GNU ld we use -z text
9298       # though, which does catch some bad symbols but isn't as heavy-handed
9299       # as -z defs.
9300       no_undefined_flag='${wl}-z,text'
9301       allow_undefined_flag='${wl}-z,nodefs'
9302       archive_cmds_need_lc=no
9303       hardcode_shlibpath_var=no
9304       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9305       hardcode_libdir_separator=':'
9306       link_all_deplibs=yes
9307       export_dynamic_flag_spec='${wl}-Bexport'
9308       runpath_var='LD_RUN_PATH'
9309
9310       if test "$GCC" = yes; then
9311         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9312         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9313       else
9314         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9315         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9316       fi
9317       ;;
9318
9319     uts4*)
9320       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321       hardcode_libdir_flag_spec='-L$libdir'
9322       hardcode_shlibpath_var=no
9323       ;;
9324
9325     *)
9326       ld_shlibs=no
9327       ;;
9328     esac
9329
9330     if test x$host_vendor = xsni; then
9331       case $host in
9332       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9333         export_dynamic_flag_spec='${wl}-Blargedynsym'
9334         ;;
9335       esac
9336     fi
9337   fi
9338
9339 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9340 $as_echo "$ld_shlibs" >&6; }
9341 test "$ld_shlibs" = no && can_build_shared=no
9342
9343 with_gnu_ld=$with_gnu_ld
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359 #
9360 # Do we need to explicitly link libc?
9361 #
9362 case "x$archive_cmds_need_lc" in
9363 x|xyes)
9364   # Assume -lc should be added
9365   archive_cmds_need_lc=yes
9366
9367   if test "$enable_shared" = yes && test "$GCC" = yes; then
9368     case $archive_cmds in
9369     *'~'*)
9370       # FIXME: we may have to deal with multi-command sequences.
9371       ;;
9372     '$CC '*)
9373       # Test whether the compiler implicitly links with -lc since on some
9374       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9375       # to ld, don't add -lc before -lgcc.
9376       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9377 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9378       $RM conftest*
9379       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9380
9381       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9382   (eval $ac_compile) 2>&5
9383   ac_status=$?
9384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385   (exit $ac_status); } 2>conftest.err; then
9386         soname=conftest
9387         lib=conftest
9388         libobjs=conftest.$ac_objext
9389         deplibs=
9390         wl=$lt_prog_compiler_wl
9391         pic_flag=$lt_prog_compiler_pic
9392         compiler_flags=-v
9393         linker_flags=-v
9394         verstring=
9395         output_objdir=.
9396         libname=conftest
9397         lt_save_allow_undefined_flag=$allow_undefined_flag
9398         allow_undefined_flag=
9399         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9400   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9401   ac_status=$?
9402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403   (exit $ac_status); }
9404         then
9405           archive_cmds_need_lc=no
9406         else
9407           archive_cmds_need_lc=yes
9408         fi
9409         allow_undefined_flag=$lt_save_allow_undefined_flag
9410       else
9411         cat conftest.err 1>&5
9412       fi
9413       $RM conftest*
9414       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9415 $as_echo "$archive_cmds_need_lc" >&6; }
9416       ;;
9417     esac
9418   fi
9419   ;;
9420 esac
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
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   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9579 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9580
9581 if test "$GCC" = yes; then
9582   case $host_os in
9583     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9584     *) lt_awk_arg="/^libraries:/" ;;
9585   esac
9586   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9587   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9588     # if the path contains ";" then we assume it to be the separator
9589     # otherwise default to the standard path separator (i.e. ":") - it is
9590     # assumed that no part of a normal pathname contains ";" but that should
9591     # okay in the real world where ";" in dirpaths is itself problematic.
9592     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9593   else
9594     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9595   fi
9596   # Ok, now we have the path, separated by spaces, we can step through it
9597   # and add multilib dir if necessary.
9598   lt_tmp_lt_search_path_spec=
9599   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9600   for lt_sys_path in $lt_search_path_spec; do
9601     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9602       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9603     else
9604       test -d "$lt_sys_path" && \
9605         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9606     fi
9607   done
9608   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9609 BEGIN {RS=" "; FS="/|\n";} {
9610   lt_foo="";
9611   lt_count=0;
9612   for (lt_i = NF; lt_i > 0; lt_i--) {
9613     if ($lt_i != "" && $lt_i != ".") {
9614       if ($lt_i == "..") {
9615         lt_count++;
9616       } else {
9617         if (lt_count == 0) {
9618           lt_foo="/" $lt_i lt_foo;
9619         } else {
9620           lt_count--;
9621         }
9622       }
9623     }
9624   }
9625   if (lt_foo != "") { lt_freq[lt_foo]++; }
9626   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9627 }'`
9628   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9629 else
9630   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9631 fi
9632 library_names_spec=
9633 libname_spec='lib$name'
9634 soname_spec=
9635 shrext_cmds=".so"
9636 postinstall_cmds=
9637 postuninstall_cmds=
9638 finish_cmds=
9639 finish_eval=
9640 shlibpath_var=
9641 shlibpath_overrides_runpath=unknown
9642 version_type=none
9643 dynamic_linker="$host_os ld.so"
9644 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9645 need_lib_prefix=unknown
9646 hardcode_into_libs=no
9647
9648 # when you set need_version to no, make sure it does not cause -set_version
9649 # flags to be left without arguments
9650 need_version=unknown
9651
9652 case $host_os in
9653 aix3*)
9654   version_type=linux
9655   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9656   shlibpath_var=LIBPATH
9657
9658   # AIX 3 has no versioning support, so we append a major version to the name.
9659   soname_spec='${libname}${release}${shared_ext}$major'
9660   ;;
9661
9662 aix[4-9]*)
9663   version_type=linux
9664   need_lib_prefix=no
9665   need_version=no
9666   hardcode_into_libs=yes
9667   if test "$host_cpu" = ia64; then
9668     # AIX 5 supports IA64
9669     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9670     shlibpath_var=LD_LIBRARY_PATH
9671   else
9672     # With GCC up to 2.95.x, collect2 would create an import file
9673     # for dependence libraries.  The import file would start with
9674     # the line `#! .'.  This would cause the generated library to
9675     # depend on `.', always an invalid library.  This was fixed in
9676     # development snapshots of GCC prior to 3.0.
9677     case $host_os in
9678       aix4 | aix4.[01] | aix4.[01].*)
9679       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9680            echo ' yes '
9681            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9682         :
9683       else
9684         can_build_shared=no
9685       fi
9686       ;;
9687     esac
9688     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9689     # soname into executable. Probably we can add versioning support to
9690     # collect2, so additional links can be useful in future.
9691     if test "$aix_use_runtimelinking" = yes; then
9692       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9693       # instead of lib<name>.a to let people know that these are not
9694       # typical AIX shared libraries.
9695       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9696     else
9697       # We preserve .a as extension for shared libraries through AIX4.2
9698       # and later when we are not doing run time linking.
9699       library_names_spec='${libname}${release}.a $libname.a'
9700       soname_spec='${libname}${release}${shared_ext}$major'
9701     fi
9702     shlibpath_var=LIBPATH
9703   fi
9704   ;;
9705
9706 amigaos*)
9707   case $host_cpu in
9708   powerpc)
9709     # Since July 2007 AmigaOS4 officially supports .so libraries.
9710     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9711     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9712     ;;
9713   m68k)
9714     library_names_spec='$libname.ixlibrary $libname.a'
9715     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9716     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'
9717     ;;
9718   esac
9719   ;;
9720
9721 beos*)
9722   library_names_spec='${libname}${shared_ext}'
9723   dynamic_linker="$host_os ld.so"
9724   shlibpath_var=LIBRARY_PATH
9725   ;;
9726
9727 bsdi[45]*)
9728   version_type=linux
9729   need_version=no
9730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9731   soname_spec='${libname}${release}${shared_ext}$major'
9732   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9733   shlibpath_var=LD_LIBRARY_PATH
9734   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9735   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9736   # the default ld.so.conf also contains /usr/contrib/lib and
9737   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9738   # libtool to hard-code these into programs
9739   ;;
9740
9741 cygwin* | mingw* | pw32* | cegcc*)
9742   version_type=windows
9743   shrext_cmds=".dll"
9744   need_version=no
9745   need_lib_prefix=no
9746
9747   case $GCC,$host_os in
9748   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9749     library_names_spec='$libname.dll.a'
9750     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9751     postinstall_cmds='base_file=`basename \${file}`~
9752       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9753       dldir=$destdir/`dirname \$dlpath`~
9754       test -d \$dldir || mkdir -p \$dldir~
9755       $install_prog $dir/$dlname \$dldir/$dlname~
9756       chmod a+x \$dldir/$dlname~
9757       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9758         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9759       fi'
9760     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9761       dlpath=$dir/\$dldll~
9762        $RM \$dlpath'
9763     shlibpath_overrides_runpath=yes
9764
9765     case $host_os in
9766     cygwin*)
9767       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9768       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9769       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9770       ;;
9771     mingw* | cegcc*)
9772       # MinGW DLLs use traditional 'lib' prefix
9773       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9774       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9775       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9776         # It is most probably a Windows format PATH printed by
9777         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9778         # path with ; separators, and with drive letters. We can handle the
9779         # drive letters (cygwin fileutils understands them), so leave them,
9780         # especially as we might pass files found there to a mingw objdump,
9781         # which wouldn't understand a cygwinified path. Ahh.
9782         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9783       else
9784         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9785       fi
9786       ;;
9787     pw32*)
9788       # pw32 DLLs use 'pw' prefix rather than 'lib'
9789       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9790       ;;
9791     esac
9792     ;;
9793
9794   *)
9795     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9796     ;;
9797   esac
9798   dynamic_linker='Win32 ld.exe'
9799   # FIXME: first we should search . and the directory the executable is in
9800   shlibpath_var=PATH
9801   ;;
9802
9803 darwin* | rhapsody*)
9804   dynamic_linker="$host_os dyld"
9805   version_type=darwin
9806   need_lib_prefix=no
9807   need_version=no
9808   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9809   soname_spec='${libname}${release}${major}$shared_ext'
9810   shlibpath_overrides_runpath=yes
9811   shlibpath_var=DYLD_LIBRARY_PATH
9812   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9813
9814   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9815   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9816   ;;
9817
9818 dgux*)
9819   version_type=linux
9820   need_lib_prefix=no
9821   need_version=no
9822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9823   soname_spec='${libname}${release}${shared_ext}$major'
9824   shlibpath_var=LD_LIBRARY_PATH
9825   ;;
9826
9827 freebsd1*)
9828   dynamic_linker=no
9829   ;;
9830
9831 freebsd* | dragonfly*)
9832   # DragonFly does not have aout.  When/if they implement a new
9833   # versioning mechanism, adjust this.
9834   if test -x /usr/bin/objformat; then
9835     objformat=`/usr/bin/objformat`
9836   else
9837     case $host_os in
9838     freebsd[123]*) objformat=aout ;;
9839     *) objformat=elf ;;
9840     esac
9841   fi
9842   version_type=freebsd-$objformat
9843   case $version_type in
9844     freebsd-elf*)
9845       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9846       need_version=no
9847       need_lib_prefix=no
9848       ;;
9849     freebsd-*)
9850       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9851       need_version=yes
9852       ;;
9853   esac
9854   shlibpath_var=LD_LIBRARY_PATH
9855   case $host_os in
9856   freebsd2*)
9857     shlibpath_overrides_runpath=yes
9858     ;;
9859   freebsd3.[01]* | freebsdelf3.[01]*)
9860     shlibpath_overrides_runpath=yes
9861     hardcode_into_libs=yes
9862     ;;
9863   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9864   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9865     shlibpath_overrides_runpath=no
9866     hardcode_into_libs=yes
9867     ;;
9868   *) # from 4.6 on, and DragonFly
9869     shlibpath_overrides_runpath=yes
9870     hardcode_into_libs=yes
9871     ;;
9872   esac
9873   ;;
9874
9875 gnu*)
9876   version_type=linux
9877   need_lib_prefix=no
9878   need_version=no
9879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9880   soname_spec='${libname}${release}${shared_ext}$major'
9881   shlibpath_var=LD_LIBRARY_PATH
9882   hardcode_into_libs=yes
9883   ;;
9884
9885 hpux9* | hpux10* | hpux11*)
9886   # Give a soname corresponding to the major version so that dld.sl refuses to
9887   # link against other versions.
9888   version_type=sunos
9889   need_lib_prefix=no
9890   need_version=no
9891   case $host_cpu in
9892   ia64*)
9893     shrext_cmds='.so'
9894     hardcode_into_libs=yes
9895     dynamic_linker="$host_os dld.so"
9896     shlibpath_var=LD_LIBRARY_PATH
9897     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899     soname_spec='${libname}${release}${shared_ext}$major'
9900     if test "X$HPUX_IA64_MODE" = X32; then
9901       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9902     else
9903       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9904     fi
9905     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9906     ;;
9907   hppa*64*)
9908     shrext_cmds='.sl'
9909     hardcode_into_libs=yes
9910     dynamic_linker="$host_os dld.sl"
9911     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9912     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9913     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914     soname_spec='${libname}${release}${shared_ext}$major'
9915     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9916     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9917     ;;
9918   *)
9919     shrext_cmds='.sl'
9920     dynamic_linker="$host_os dld.sl"
9921     shlibpath_var=SHLIB_PATH
9922     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9923     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924     soname_spec='${libname}${release}${shared_ext}$major'
9925     ;;
9926   esac
9927   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9928   postinstall_cmds='chmod 555 $lib'
9929   ;;
9930
9931 interix[3-9]*)
9932   version_type=linux
9933   need_lib_prefix=no
9934   need_version=no
9935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9936   soname_spec='${libname}${release}${shared_ext}$major'
9937   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9938   shlibpath_var=LD_LIBRARY_PATH
9939   shlibpath_overrides_runpath=no
9940   hardcode_into_libs=yes
9941   ;;
9942
9943 irix5* | irix6* | nonstopux*)
9944   case $host_os in
9945     nonstopux*) version_type=nonstopux ;;
9946     *)
9947         if test "$lt_cv_prog_gnu_ld" = yes; then
9948                 version_type=linux
9949         else
9950                 version_type=irix
9951         fi ;;
9952   esac
9953   need_lib_prefix=no
9954   need_version=no
9955   soname_spec='${libname}${release}${shared_ext}$major'
9956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9957   case $host_os in
9958   irix5* | nonstopux*)
9959     libsuff= shlibsuff=
9960     ;;
9961   *)
9962     case $LD in # libtool.m4 will add one of these switches to LD
9963     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9964       libsuff= shlibsuff= libmagic=32-bit;;
9965     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9966       libsuff=32 shlibsuff=N32 libmagic=N32;;
9967     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9968       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9969     *) libsuff= shlibsuff= libmagic=never-match;;
9970     esac
9971     ;;
9972   esac
9973   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9974   shlibpath_overrides_runpath=no
9975   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9976   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9977   hardcode_into_libs=yes
9978   ;;
9979
9980 # No shared lib support for Linux oldld, aout, or coff.
9981 linux*oldld* | linux*aout* | linux*coff*)
9982   dynamic_linker=no
9983   ;;
9984
9985 # This must be Linux ELF.
9986 linux* | k*bsd*-gnu)
9987   version_type=linux
9988   need_lib_prefix=no
9989   need_version=no
9990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991   soname_spec='${libname}${release}${shared_ext}$major'
9992   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9993   shlibpath_var=LD_LIBRARY_PATH
9994   shlibpath_overrides_runpath=no
9995   # Some binutils ld are patched to set DT_RUNPATH
9996   save_LDFLAGS=$LDFLAGS
9997   save_libdir=$libdir
9998   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9999        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10000   cat >conftest.$ac_ext <<_ACEOF
10001 /* confdefs.h.  */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h.  */
10006
10007 int
10008 main ()
10009 {
10010
10011   ;
10012   return 0;
10013 }
10014 _ACEOF
10015 rm -f conftest.$ac_objext conftest$ac_exeext
10016 if { (ac_try="$ac_link"
10017 case "(($ac_try" in
10018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019   *) ac_try_echo=$ac_try;;
10020 esac
10021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10022 $as_echo "$ac_try_echo") >&5
10023   (eval "$ac_link") 2>conftest.er1
10024   ac_status=$?
10025   grep -v '^ *+' conftest.er1 >conftest.err
10026   rm -f conftest.er1
10027   cat conftest.err >&5
10028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); } && {
10030          test -z "$ac_c_werror_flag" ||
10031          test ! -s conftest.err
10032        } && test -s conftest$ac_exeext && {
10033          test "$cross_compiling" = yes ||
10034          $as_test_x conftest$ac_exeext
10035        }; then
10036   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10037   shlibpath_overrides_runpath=yes
10038 fi
10039
10040 else
10041   $as_echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10043
10044
10045 fi
10046
10047 rm -rf conftest.dSYM
10048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10049       conftest$ac_exeext conftest.$ac_ext
10050   LDFLAGS=$save_LDFLAGS
10051   libdir=$save_libdir
10052
10053   # This implies no fast_install, which is unacceptable.
10054   # Some rework will be needed to allow for fast_install
10055   # before this can be enabled.
10056   hardcode_into_libs=yes
10057
10058   # Add ABI-specific directories to the system library path.
10059   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10060
10061   # Append ld.so.conf contents to the search path
10062   if test -f /etc/ld.so.conf; then
10063     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' ' '`
10064     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10065   fi
10066
10067   # We used to test for /lib/ld.so.1 and disable shared libraries on
10068   # powerpc, because MkLinux only supported shared libraries with the
10069   # GNU dynamic linker.  Since this was broken with cross compilers,
10070   # most powerpc-linux boxes support dynamic linking these days and
10071   # people can always --disable-shared, the test was removed, and we
10072   # assume the GNU/Linux dynamic linker is in use.
10073   dynamic_linker='GNU/Linux ld.so'
10074   ;;
10075
10076 netbsd*)
10077   version_type=sunos
10078   need_lib_prefix=no
10079   need_version=no
10080   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10082     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10083     dynamic_linker='NetBSD (a.out) ld.so'
10084   else
10085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10086     soname_spec='${libname}${release}${shared_ext}$major'
10087     dynamic_linker='NetBSD ld.elf_so'
10088   fi
10089   shlibpath_var=LD_LIBRARY_PATH
10090   shlibpath_overrides_runpath=yes
10091   hardcode_into_libs=yes
10092   ;;
10093
10094 newsos6)
10095   version_type=linux
10096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097   shlibpath_var=LD_LIBRARY_PATH
10098   shlibpath_overrides_runpath=yes
10099   ;;
10100
10101 *nto* | *qnx*)
10102   version_type=qnx
10103   need_lib_prefix=no
10104   need_version=no
10105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106   soname_spec='${libname}${release}${shared_ext}$major'
10107   shlibpath_var=LD_LIBRARY_PATH
10108   shlibpath_overrides_runpath=no
10109   hardcode_into_libs=yes
10110   dynamic_linker='ldqnx.so'
10111   ;;
10112
10113 openbsd*)
10114   version_type=sunos
10115   sys_lib_dlsearch_path_spec="/usr/lib"
10116   need_lib_prefix=no
10117   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10118   case $host_os in
10119     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10120     *)                          need_version=no  ;;
10121   esac
10122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10123   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10124   shlibpath_var=LD_LIBRARY_PATH
10125   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10126     case $host_os in
10127       openbsd2.[89] | openbsd2.[89].*)
10128         shlibpath_overrides_runpath=no
10129         ;;
10130       *)
10131         shlibpath_overrides_runpath=yes
10132         ;;
10133       esac
10134   else
10135     shlibpath_overrides_runpath=yes
10136   fi
10137   ;;
10138
10139 os2*)
10140   libname_spec='$name'
10141   shrext_cmds=".dll"
10142   need_lib_prefix=no
10143   library_names_spec='$libname${shared_ext} $libname.a'
10144   dynamic_linker='OS/2 ld.exe'
10145   shlibpath_var=LIBPATH
10146   ;;
10147
10148 osf3* | osf4* | osf5*)
10149   version_type=osf
10150   need_lib_prefix=no
10151   need_version=no
10152   soname_spec='${libname}${release}${shared_ext}$major'
10153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154   shlibpath_var=LD_LIBRARY_PATH
10155   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10156   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10157   ;;
10158
10159 rdos*)
10160   dynamic_linker=no
10161   ;;
10162
10163 solaris*)
10164   version_type=linux
10165   need_lib_prefix=no
10166   need_version=no
10167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10168   soname_spec='${libname}${release}${shared_ext}$major'
10169   shlibpath_var=LD_LIBRARY_PATH
10170   shlibpath_overrides_runpath=yes
10171   hardcode_into_libs=yes
10172   # ldd complains unless libraries are executable
10173   postinstall_cmds='chmod +x $lib'
10174   ;;
10175
10176 sunos4*)
10177   version_type=sunos
10178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10179   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10180   shlibpath_var=LD_LIBRARY_PATH
10181   shlibpath_overrides_runpath=yes
10182   if test "$with_gnu_ld" = yes; then
10183     need_lib_prefix=no
10184   fi
10185   need_version=yes
10186   ;;
10187
10188 sysv4 | sysv4.3*)
10189   version_type=linux
10190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191   soname_spec='${libname}${release}${shared_ext}$major'
10192   shlibpath_var=LD_LIBRARY_PATH
10193   case $host_vendor in
10194     sni)
10195       shlibpath_overrides_runpath=no
10196       need_lib_prefix=no
10197       runpath_var=LD_RUN_PATH
10198       ;;
10199     siemens)
10200       need_lib_prefix=no
10201       ;;
10202     motorola)
10203       need_lib_prefix=no
10204       need_version=no
10205       shlibpath_overrides_runpath=no
10206       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10207       ;;
10208   esac
10209   ;;
10210
10211 sysv4*MP*)
10212   if test -d /usr/nec ;then
10213     version_type=linux
10214     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10215     soname_spec='$libname${shared_ext}.$major'
10216     shlibpath_var=LD_LIBRARY_PATH
10217   fi
10218   ;;
10219
10220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10221   version_type=freebsd-elf
10222   need_lib_prefix=no
10223   need_version=no
10224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10225   soname_spec='${libname}${release}${shared_ext}$major'
10226   shlibpath_var=LD_LIBRARY_PATH
10227   shlibpath_overrides_runpath=yes
10228   hardcode_into_libs=yes
10229   if test "$with_gnu_ld" = yes; then
10230     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10231   else
10232     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10233     case $host_os in
10234       sco3.2v5*)
10235         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10236         ;;
10237     esac
10238   fi
10239   sys_lib_dlsearch_path_spec='/usr/lib'
10240   ;;
10241
10242 tpf*)
10243   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10244   version_type=linux
10245   need_lib_prefix=no
10246   need_version=no
10247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248   shlibpath_var=LD_LIBRARY_PATH
10249   shlibpath_overrides_runpath=no
10250   hardcode_into_libs=yes
10251   ;;
10252
10253 uts4*)
10254   version_type=linux
10255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256   soname_spec='${libname}${release}${shared_ext}$major'
10257   shlibpath_var=LD_LIBRARY_PATH
10258   ;;
10259
10260 *)
10261   dynamic_linker=no
10262   ;;
10263 esac
10264 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10265 $as_echo "$dynamic_linker" >&6; }
10266 test "$dynamic_linker" = no && can_build_shared=no
10267
10268 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10269 if test "$GCC" = yes; then
10270   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10271 fi
10272
10273 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10274   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10275 fi
10276 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10277   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10278 fi
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10367 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10368 hardcode_action=
10369 if test -n "$hardcode_libdir_flag_spec" ||
10370    test -n "$runpath_var" ||
10371    test "X$hardcode_automatic" = "Xyes" ; then
10372
10373   # We can hardcode non-existent directories.
10374   if test "$hardcode_direct" != no &&
10375      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10376      # have to relink, otherwise we might link with an installed library
10377      # when we should be linking with a yet-to-be-installed one
10378      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10379      test "$hardcode_minus_L" != no; then
10380     # Linking always hardcodes the temporary library directory.
10381     hardcode_action=relink
10382   else
10383     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10384     hardcode_action=immediate
10385   fi
10386 else
10387   # We cannot hardcode anything, or else we can only hardcode existing
10388   # directories.
10389   hardcode_action=unsupported
10390 fi
10391 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10392 $as_echo "$hardcode_action" >&6; }
10393
10394 if test "$hardcode_action" = relink ||
10395    test "$inherit_rpath" = yes; then
10396   # Fast installation is not supported
10397   enable_fast_install=no
10398 elif test "$shlibpath_overrides_runpath" = yes ||
10399      test "$enable_shared" = no; then
10400   # Fast installation is not necessary
10401   enable_fast_install=needless
10402 fi
10403
10404
10405
10406
10407
10408
10409   if test "x$enable_dlopen" != xyes; then
10410   enable_dlopen=unknown
10411   enable_dlopen_self=unknown
10412   enable_dlopen_self_static=unknown
10413 else
10414   lt_cv_dlopen=no
10415   lt_cv_dlopen_libs=
10416
10417   case $host_os in
10418   beos*)
10419     lt_cv_dlopen="load_add_on"
10420     lt_cv_dlopen_libs=
10421     lt_cv_dlopen_self=yes
10422     ;;
10423
10424   mingw* | pw32* | cegcc*)
10425     lt_cv_dlopen="LoadLibrary"
10426     lt_cv_dlopen_libs=
10427     ;;
10428
10429   cygwin*)
10430     lt_cv_dlopen="dlopen"
10431     lt_cv_dlopen_libs=
10432     ;;
10433
10434   darwin*)
10435   # if libdl is installed we need to link against it
10436     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10437 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10438 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10439   $as_echo_n "(cached) " >&6
10440 else
10441   ac_check_lib_save_LIBS=$LIBS
10442 LIBS="-ldl  $LIBS"
10443 cat >conftest.$ac_ext <<_ACEOF
10444 /* confdefs.h.  */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h.  */
10449
10450 /* Override any GCC internal prototype to avoid an error.
10451    Use char because int might match the return type of a GCC
10452    builtin and then its argument prototype would still apply.  */
10453 #ifdef __cplusplus
10454 extern "C"
10455 #endif
10456 char dlopen ();
10457 int
10458 main ()
10459 {
10460 return dlopen ();
10461   ;
10462   return 0;
10463 }
10464 _ACEOF
10465 rm -f conftest.$ac_objext conftest$ac_exeext
10466 if { (ac_try="$ac_link"
10467 case "(($ac_try" in
10468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469   *) ac_try_echo=$ac_try;;
10470 esac
10471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10472 $as_echo "$ac_try_echo") >&5
10473   (eval "$ac_link") 2>conftest.er1
10474   ac_status=$?
10475   grep -v '^ *+' conftest.er1 >conftest.err
10476   rm -f conftest.er1
10477   cat conftest.err >&5
10478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); } && {
10480          test -z "$ac_c_werror_flag" ||
10481          test ! -s conftest.err
10482        } && test -s conftest$ac_exeext && {
10483          test "$cross_compiling" = yes ||
10484          $as_test_x conftest$ac_exeext
10485        }; then
10486   ac_cv_lib_dl_dlopen=yes
10487 else
10488   $as_echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10490
10491         ac_cv_lib_dl_dlopen=no
10492 fi
10493
10494 rm -rf conftest.dSYM
10495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10496       conftest$ac_exeext conftest.$ac_ext
10497 LIBS=$ac_check_lib_save_LIBS
10498 fi
10499 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10500 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10501 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10502   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10503 else
10504
10505     lt_cv_dlopen="dyld"
10506     lt_cv_dlopen_libs=
10507     lt_cv_dlopen_self=yes
10508
10509 fi
10510
10511     ;;
10512
10513   *)
10514     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10515 $as_echo_n "checking for shl_load... " >&6; }
10516 if test "${ac_cv_func_shl_load+set}" = set; then
10517   $as_echo_n "(cached) " >&6
10518 else
10519   cat >conftest.$ac_ext <<_ACEOF
10520 /* confdefs.h.  */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h.  */
10525 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10526    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10527 #define shl_load innocuous_shl_load
10528
10529 /* System header to define __stub macros and hopefully few prototypes,
10530     which can conflict with char shl_load (); below.
10531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10532     <limits.h> exists even on freestanding compilers.  */
10533
10534 #ifdef __STDC__
10535 # include <limits.h>
10536 #else
10537 # include <assert.h>
10538 #endif
10539
10540 #undef shl_load
10541
10542 /* Override any GCC internal prototype to avoid an error.
10543    Use char because int might match the return type of a GCC
10544    builtin and then its argument prototype would still apply.  */
10545 #ifdef __cplusplus
10546 extern "C"
10547 #endif
10548 char shl_load ();
10549 /* The GNU C library defines this for functions which it implements
10550     to always fail with ENOSYS.  Some functions are actually named
10551     something starting with __ and the normal name is an alias.  */
10552 #if defined __stub_shl_load || defined __stub___shl_load
10553 choke me
10554 #endif
10555
10556 int
10557 main ()
10558 {
10559 return shl_load ();
10560   ;
10561   return 0;
10562 }
10563 _ACEOF
10564 rm -f conftest.$ac_objext conftest$ac_exeext
10565 if { (ac_try="$ac_link"
10566 case "(($ac_try" in
10567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568   *) ac_try_echo=$ac_try;;
10569 esac
10570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10571 $as_echo "$ac_try_echo") >&5
10572   (eval "$ac_link") 2>conftest.er1
10573   ac_status=$?
10574   grep -v '^ *+' conftest.er1 >conftest.err
10575   rm -f conftest.er1
10576   cat conftest.err >&5
10577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578   (exit $ac_status); } && {
10579          test -z "$ac_c_werror_flag" ||
10580          test ! -s conftest.err
10581        } && test -s conftest$ac_exeext && {
10582          test "$cross_compiling" = yes ||
10583          $as_test_x conftest$ac_exeext
10584        }; then
10585   ac_cv_func_shl_load=yes
10586 else
10587   $as_echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10589
10590         ac_cv_func_shl_load=no
10591 fi
10592
10593 rm -rf conftest.dSYM
10594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10595       conftest$ac_exeext conftest.$ac_ext
10596 fi
10597 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10598 $as_echo "$ac_cv_func_shl_load" >&6; }
10599 if test "x$ac_cv_func_shl_load" = x""yes; then
10600   lt_cv_dlopen="shl_load"
10601 else
10602   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10603 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10604 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10605   $as_echo_n "(cached) " >&6
10606 else
10607   ac_check_lib_save_LIBS=$LIBS
10608 LIBS="-ldld  $LIBS"
10609 cat >conftest.$ac_ext <<_ACEOF
10610 /* confdefs.h.  */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h.  */
10615
10616 /* Override any GCC internal prototype to avoid an error.
10617    Use char because int might match the return type of a GCC
10618    builtin and then its argument prototype would still apply.  */
10619 #ifdef __cplusplus
10620 extern "C"
10621 #endif
10622 char shl_load ();
10623 int
10624 main ()
10625 {
10626 return shl_load ();
10627   ;
10628   return 0;
10629 }
10630 _ACEOF
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (ac_try="$ac_link"
10633 case "(($ac_try" in
10634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635   *) ac_try_echo=$ac_try;;
10636 esac
10637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10638 $as_echo "$ac_try_echo") >&5
10639   (eval "$ac_link") 2>conftest.er1
10640   ac_status=$?
10641   grep -v '^ *+' conftest.er1 >conftest.err
10642   rm -f conftest.er1
10643   cat conftest.err >&5
10644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645   (exit $ac_status); } && {
10646          test -z "$ac_c_werror_flag" ||
10647          test ! -s conftest.err
10648        } && test -s conftest$ac_exeext && {
10649          test "$cross_compiling" = yes ||
10650          $as_test_x conftest$ac_exeext
10651        }; then
10652   ac_cv_lib_dld_shl_load=yes
10653 else
10654   $as_echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10656
10657         ac_cv_lib_dld_shl_load=no
10658 fi
10659
10660 rm -rf conftest.dSYM
10661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10662       conftest$ac_exeext conftest.$ac_ext
10663 LIBS=$ac_check_lib_save_LIBS
10664 fi
10665 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10666 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10667 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10668   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10669 else
10670   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10671 $as_echo_n "checking for dlopen... " >&6; }
10672 if test "${ac_cv_func_dlopen+set}" = set; then
10673   $as_echo_n "(cached) " >&6
10674 else
10675   cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h.  */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h.  */
10681 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10683 #define dlopen innocuous_dlopen
10684
10685 /* System header to define __stub macros and hopefully few prototypes,
10686     which can conflict with char dlopen (); below.
10687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10688     <limits.h> exists even on freestanding compilers.  */
10689
10690 #ifdef __STDC__
10691 # include <limits.h>
10692 #else
10693 # include <assert.h>
10694 #endif
10695
10696 #undef dlopen
10697
10698 /* Override any GCC internal prototype to avoid an error.
10699    Use char because int might match the return type of a GCC
10700    builtin and then its argument prototype would still apply.  */
10701 #ifdef __cplusplus
10702 extern "C"
10703 #endif
10704 char dlopen ();
10705 /* The GNU C library defines this for functions which it implements
10706     to always fail with ENOSYS.  Some functions are actually named
10707     something starting with __ and the normal name is an alias.  */
10708 #if defined __stub_dlopen || defined __stub___dlopen
10709 choke me
10710 #endif
10711
10712 int
10713 main ()
10714 {
10715 return dlopen ();
10716   ;
10717   return 0;
10718 }
10719 _ACEOF
10720 rm -f conftest.$ac_objext conftest$ac_exeext
10721 if { (ac_try="$ac_link"
10722 case "(($ac_try" in
10723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724   *) ac_try_echo=$ac_try;;
10725 esac
10726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10727 $as_echo "$ac_try_echo") >&5
10728   (eval "$ac_link") 2>conftest.er1
10729   ac_status=$?
10730   grep -v '^ *+' conftest.er1 >conftest.err
10731   rm -f conftest.er1
10732   cat conftest.err >&5
10733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734   (exit $ac_status); } && {
10735          test -z "$ac_c_werror_flag" ||
10736          test ! -s conftest.err
10737        } && test -s conftest$ac_exeext && {
10738          test "$cross_compiling" = yes ||
10739          $as_test_x conftest$ac_exeext
10740        }; then
10741   ac_cv_func_dlopen=yes
10742 else
10743   $as_echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10745
10746         ac_cv_func_dlopen=no
10747 fi
10748
10749 rm -rf conftest.dSYM
10750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10751       conftest$ac_exeext conftest.$ac_ext
10752 fi
10753 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10754 $as_echo "$ac_cv_func_dlopen" >&6; }
10755 if test "x$ac_cv_func_dlopen" = x""yes; then
10756   lt_cv_dlopen="dlopen"
10757 else
10758   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10759 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10760 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10761   $as_echo_n "(cached) " >&6
10762 else
10763   ac_check_lib_save_LIBS=$LIBS
10764 LIBS="-ldl  $LIBS"
10765 cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h.  */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h.  */
10771
10772 /* Override any GCC internal prototype to avoid an error.
10773    Use char because int might match the return type of a GCC
10774    builtin and then its argument prototype would still apply.  */
10775 #ifdef __cplusplus
10776 extern "C"
10777 #endif
10778 char dlopen ();
10779 int
10780 main ()
10781 {
10782 return dlopen ();
10783   ;
10784   return 0;
10785 }
10786 _ACEOF
10787 rm -f conftest.$ac_objext conftest$ac_exeext
10788 if { (ac_try="$ac_link"
10789 case "(($ac_try" in
10790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791   *) ac_try_echo=$ac_try;;
10792 esac
10793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10794 $as_echo "$ac_try_echo") >&5
10795   (eval "$ac_link") 2>conftest.er1
10796   ac_status=$?
10797   grep -v '^ *+' conftest.er1 >conftest.err
10798   rm -f conftest.er1
10799   cat conftest.err >&5
10800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801   (exit $ac_status); } && {
10802          test -z "$ac_c_werror_flag" ||
10803          test ! -s conftest.err
10804        } && test -s conftest$ac_exeext && {
10805          test "$cross_compiling" = yes ||
10806          $as_test_x conftest$ac_exeext
10807        }; then
10808   ac_cv_lib_dl_dlopen=yes
10809 else
10810   $as_echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10812
10813         ac_cv_lib_dl_dlopen=no
10814 fi
10815
10816 rm -rf conftest.dSYM
10817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10818       conftest$ac_exeext conftest.$ac_ext
10819 LIBS=$ac_check_lib_save_LIBS
10820 fi
10821 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10822 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10823 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10824   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10825 else
10826   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10827 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10828 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10829   $as_echo_n "(cached) " >&6
10830 else
10831   ac_check_lib_save_LIBS=$LIBS
10832 LIBS="-lsvld  $LIBS"
10833 cat >conftest.$ac_ext <<_ACEOF
10834 /* confdefs.h.  */
10835 _ACEOF
10836 cat confdefs.h >>conftest.$ac_ext
10837 cat >>conftest.$ac_ext <<_ACEOF
10838 /* end confdefs.h.  */
10839
10840 /* Override any GCC internal prototype to avoid an error.
10841    Use char because int might match the return type of a GCC
10842    builtin and then its argument prototype would still apply.  */
10843 #ifdef __cplusplus
10844 extern "C"
10845 #endif
10846 char dlopen ();
10847 int
10848 main ()
10849 {
10850 return dlopen ();
10851   ;
10852   return 0;
10853 }
10854 _ACEOF
10855 rm -f conftest.$ac_objext conftest$ac_exeext
10856 if { (ac_try="$ac_link"
10857 case "(($ac_try" in
10858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859   *) ac_try_echo=$ac_try;;
10860 esac
10861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10862 $as_echo "$ac_try_echo") >&5
10863   (eval "$ac_link") 2>conftest.er1
10864   ac_status=$?
10865   grep -v '^ *+' conftest.er1 >conftest.err
10866   rm -f conftest.er1
10867   cat conftest.err >&5
10868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869   (exit $ac_status); } && {
10870          test -z "$ac_c_werror_flag" ||
10871          test ! -s conftest.err
10872        } && test -s conftest$ac_exeext && {
10873          test "$cross_compiling" = yes ||
10874          $as_test_x conftest$ac_exeext
10875        }; then
10876   ac_cv_lib_svld_dlopen=yes
10877 else
10878   $as_echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10880
10881         ac_cv_lib_svld_dlopen=no
10882 fi
10883
10884 rm -rf conftest.dSYM
10885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10886       conftest$ac_exeext conftest.$ac_ext
10887 LIBS=$ac_check_lib_save_LIBS
10888 fi
10889 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10890 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10891 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10892   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10893 else
10894   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10895 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10896 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10897   $as_echo_n "(cached) " >&6
10898 else
10899   ac_check_lib_save_LIBS=$LIBS
10900 LIBS="-ldld  $LIBS"
10901 cat >conftest.$ac_ext <<_ACEOF
10902 /* confdefs.h.  */
10903 _ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h.  */
10907
10908 /* Override any GCC internal prototype to avoid an error.
10909    Use char because int might match the return type of a GCC
10910    builtin and then its argument prototype would still apply.  */
10911 #ifdef __cplusplus
10912 extern "C"
10913 #endif
10914 char dld_link ();
10915 int
10916 main ()
10917 {
10918 return dld_link ();
10919   ;
10920   return 0;
10921 }
10922 _ACEOF
10923 rm -f conftest.$ac_objext conftest$ac_exeext
10924 if { (ac_try="$ac_link"
10925 case "(($ac_try" in
10926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927   *) ac_try_echo=$ac_try;;
10928 esac
10929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10930 $as_echo "$ac_try_echo") >&5
10931   (eval "$ac_link") 2>conftest.er1
10932   ac_status=$?
10933   grep -v '^ *+' conftest.er1 >conftest.err
10934   rm -f conftest.er1
10935   cat conftest.err >&5
10936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); } && {
10938          test -z "$ac_c_werror_flag" ||
10939          test ! -s conftest.err
10940        } && test -s conftest$ac_exeext && {
10941          test "$cross_compiling" = yes ||
10942          $as_test_x conftest$ac_exeext
10943        }; then
10944   ac_cv_lib_dld_dld_link=yes
10945 else
10946   $as_echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10948
10949         ac_cv_lib_dld_dld_link=no
10950 fi
10951
10952 rm -rf conftest.dSYM
10953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10954       conftest$ac_exeext conftest.$ac_ext
10955 LIBS=$ac_check_lib_save_LIBS
10956 fi
10957 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10958 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10959 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10960   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10961 fi
10962
10963
10964 fi
10965
10966
10967 fi
10968
10969
10970 fi
10971
10972
10973 fi
10974
10975
10976 fi
10977
10978     ;;
10979   esac
10980
10981   if test "x$lt_cv_dlopen" != xno; then
10982     enable_dlopen=yes
10983   else
10984     enable_dlopen=no
10985   fi
10986
10987   case $lt_cv_dlopen in
10988   dlopen)
10989     save_CPPFLAGS="$CPPFLAGS"
10990     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10991
10992     save_LDFLAGS="$LDFLAGS"
10993     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10994
10995     save_LIBS="$LIBS"
10996     LIBS="$lt_cv_dlopen_libs $LIBS"
10997
10998     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10999 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11000 if test "${lt_cv_dlopen_self+set}" = set; then
11001   $as_echo_n "(cached) " >&6
11002 else
11003           if test "$cross_compiling" = yes; then :
11004   lt_cv_dlopen_self=cross
11005 else
11006   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11007   lt_status=$lt_dlunknown
11008   cat > conftest.$ac_ext <<_LT_EOF
11009 #line 11009 "configure"
11010 #include "confdefs.h"
11011
11012 #if HAVE_DLFCN_H
11013 #include <dlfcn.h>
11014 #endif
11015
11016 #include <stdio.h>
11017
11018 #ifdef RTLD_GLOBAL
11019 #  define LT_DLGLOBAL           RTLD_GLOBAL
11020 #else
11021 #  ifdef DL_GLOBAL
11022 #    define LT_DLGLOBAL         DL_GLOBAL
11023 #  else
11024 #    define LT_DLGLOBAL         0
11025 #  endif
11026 #endif
11027
11028 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11029    find out it does not work in some platform. */
11030 #ifndef LT_DLLAZY_OR_NOW
11031 #  ifdef RTLD_LAZY
11032 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11033 #  else
11034 #    ifdef DL_LAZY
11035 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11036 #    else
11037 #      ifdef RTLD_NOW
11038 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11039 #      else
11040 #        ifdef DL_NOW
11041 #          define LT_DLLAZY_OR_NOW      DL_NOW
11042 #        else
11043 #          define LT_DLLAZY_OR_NOW      0
11044 #        endif
11045 #      endif
11046 #    endif
11047 #  endif
11048 #endif
11049
11050 void fnord() { int i=42;}
11051 int main ()
11052 {
11053   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11054   int status = $lt_dlunknown;
11055
11056   if (self)
11057     {
11058       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11059       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11060       /* dlclose (self); */
11061     }
11062   else
11063     puts (dlerror ());
11064
11065   return status;
11066 }
11067 _LT_EOF
11068   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11069   (eval $ac_link) 2>&5
11070   ac_status=$?
11071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11073     (./conftest; exit; ) >&5 2>/dev/null
11074     lt_status=$?
11075     case x$lt_status in
11076       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11077       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11078       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11079     esac
11080   else :
11081     # compilation failed
11082     lt_cv_dlopen_self=no
11083   fi
11084 fi
11085 rm -fr conftest*
11086
11087
11088 fi
11089 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11090 $as_echo "$lt_cv_dlopen_self" >&6; }
11091
11092     if test "x$lt_cv_dlopen_self" = xyes; then
11093       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11094       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11095 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11096 if test "${lt_cv_dlopen_self_static+set}" = set; then
11097   $as_echo_n "(cached) " >&6
11098 else
11099           if test "$cross_compiling" = yes; then :
11100   lt_cv_dlopen_self_static=cross
11101 else
11102   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11103   lt_status=$lt_dlunknown
11104   cat > conftest.$ac_ext <<_LT_EOF
11105 #line 11105 "configure"
11106 #include "confdefs.h"
11107
11108 #if HAVE_DLFCN_H
11109 #include <dlfcn.h>
11110 #endif
11111
11112 #include <stdio.h>
11113
11114 #ifdef RTLD_GLOBAL
11115 #  define LT_DLGLOBAL           RTLD_GLOBAL
11116 #else
11117 #  ifdef DL_GLOBAL
11118 #    define LT_DLGLOBAL         DL_GLOBAL
11119 #  else
11120 #    define LT_DLGLOBAL         0
11121 #  endif
11122 #endif
11123
11124 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11125    find out it does not work in some platform. */
11126 #ifndef LT_DLLAZY_OR_NOW
11127 #  ifdef RTLD_LAZY
11128 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11129 #  else
11130 #    ifdef DL_LAZY
11131 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11132 #    else
11133 #      ifdef RTLD_NOW
11134 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11135 #      else
11136 #        ifdef DL_NOW
11137 #          define LT_DLLAZY_OR_NOW      DL_NOW
11138 #        else
11139 #          define LT_DLLAZY_OR_NOW      0
11140 #        endif
11141 #      endif
11142 #    endif
11143 #  endif
11144 #endif
11145
11146 void fnord() { int i=42;}
11147 int main ()
11148 {
11149   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11150   int status = $lt_dlunknown;
11151
11152   if (self)
11153     {
11154       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11155       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11156       /* dlclose (self); */
11157     }
11158   else
11159     puts (dlerror ());
11160
11161   return status;
11162 }
11163 _LT_EOF
11164   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11165   (eval $ac_link) 2>&5
11166   ac_status=$?
11167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11169     (./conftest; exit; ) >&5 2>/dev/null
11170     lt_status=$?
11171     case x$lt_status in
11172       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11173       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11174       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11175     esac
11176   else :
11177     # compilation failed
11178     lt_cv_dlopen_self_static=no
11179   fi
11180 fi
11181 rm -fr conftest*
11182
11183
11184 fi
11185 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11186 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11187     fi
11188
11189     CPPFLAGS="$save_CPPFLAGS"
11190     LDFLAGS="$save_LDFLAGS"
11191     LIBS="$save_LIBS"
11192     ;;
11193   esac
11194
11195   case $lt_cv_dlopen_self in
11196   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11197   *) enable_dlopen_self=unknown ;;
11198   esac
11199
11200   case $lt_cv_dlopen_self_static in
11201   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11202   *) enable_dlopen_self_static=unknown ;;
11203   esac
11204 fi
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222 striplib=
11223 old_striplib=
11224 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11225 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11226 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11227   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11228   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11229   { $as_echo "$as_me:$LINENO: result: yes" >&5
11230 $as_echo "yes" >&6; }
11231 else
11232 # FIXME - insert some real tests, host_os isn't really good enough
11233   case $host_os in
11234   darwin*)
11235     if test -n "$STRIP" ; then
11236       striplib="$STRIP -x"
11237       old_striplib="$STRIP -S"
11238       { $as_echo "$as_me:$LINENO: result: yes" >&5
11239 $as_echo "yes" >&6; }
11240     else
11241       { $as_echo "$as_me:$LINENO: result: no" >&5
11242 $as_echo "no" >&6; }
11243     fi
11244     ;;
11245   *)
11246     { $as_echo "$as_me:$LINENO: result: no" >&5
11247 $as_echo "no" >&6; }
11248     ;;
11249   esac
11250 fi
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263   # Report which library types will actually be built
11264   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11265 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11266   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11267 $as_echo "$can_build_shared" >&6; }
11268
11269   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11270 $as_echo_n "checking whether to build shared libraries... " >&6; }
11271   test "$can_build_shared" = "no" && enable_shared=no
11272
11273   # On AIX, shared libraries and static libraries use the same namespace, and
11274   # are all built from PIC.
11275   case $host_os in
11276   aix3*)
11277     test "$enable_shared" = yes && enable_static=no
11278     if test -n "$RANLIB"; then
11279       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11280       postinstall_cmds='$RANLIB $lib'
11281     fi
11282     ;;
11283
11284   aix[4-9]*)
11285     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11286       test "$enable_shared" = yes && enable_static=no
11287     fi
11288     ;;
11289   esac
11290   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11291 $as_echo "$enable_shared" >&6; }
11292
11293   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11294 $as_echo_n "checking whether to build static libraries... " >&6; }
11295   # Make sure either enable_shared or enable_static is yes.
11296   test "$enable_shared" = yes || enable_static=yes
11297   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11298 $as_echo "$enable_static" >&6; }
11299
11300
11301
11302
11303 fi
11304 ac_ext=c
11305 ac_cpp='$CPP $CPPFLAGS'
11306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11309
11310 CC="$lt_save_CC"
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324         ac_config_commands="$ac_config_commands libtool"
11325
11326
11327
11328
11329 # Only expand once:
11330
11331
11332
11333
11334 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11335         if test -n "$ac_tool_prefix"; then
11336   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11337 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11338 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11339 $as_echo_n "checking for $ac_word... " >&6; }
11340 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11341   $as_echo_n "(cached) " >&6
11342 else
11343   case $PKG_CONFIG in
11344   [\\/]* | ?:[\\/]*)
11345   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11346   ;;
11347   *)
11348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11349 for as_dir in $PATH
11350 do
11351   IFS=$as_save_IFS
11352   test -z "$as_dir" && as_dir=.
11353   for ac_exec_ext in '' $ac_executable_extensions; do
11354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11355     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11356     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11357     break 2
11358   fi
11359 done
11360 done
11361 IFS=$as_save_IFS
11362
11363   ;;
11364 esac
11365 fi
11366 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11367 if test -n "$PKG_CONFIG"; then
11368   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11369 $as_echo "$PKG_CONFIG" >&6; }
11370 else
11371   { $as_echo "$as_me:$LINENO: result: no" >&5
11372 $as_echo "no" >&6; }
11373 fi
11374
11375
11376 fi
11377 if test -z "$ac_cv_path_PKG_CONFIG"; then
11378   ac_pt_PKG_CONFIG=$PKG_CONFIG
11379   # Extract the first word of "pkg-config", so it can be a program name with args.
11380 set dummy pkg-config; ac_word=$2
11381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11382 $as_echo_n "checking for $ac_word... " >&6; }
11383 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11384   $as_echo_n "(cached) " >&6
11385 else
11386   case $ac_pt_PKG_CONFIG in
11387   [\\/]* | ?:[\\/]*)
11388   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11389   ;;
11390   *)
11391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394   IFS=$as_save_IFS
11395   test -z "$as_dir" && as_dir=.
11396   for ac_exec_ext in '' $ac_executable_extensions; do
11397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11399     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11400     break 2
11401   fi
11402 done
11403 done
11404 IFS=$as_save_IFS
11405
11406   ;;
11407 esac
11408 fi
11409 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11410 if test -n "$ac_pt_PKG_CONFIG"; then
11411   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11412 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11413 else
11414   { $as_echo "$as_me:$LINENO: result: no" >&5
11415 $as_echo "no" >&6; }
11416 fi
11417
11418   if test "x$ac_pt_PKG_CONFIG" = x; then
11419     PKG_CONFIG=""
11420   else
11421     case $cross_compiling:$ac_tool_warned in
11422 yes:)
11423 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11425 ac_tool_warned=yes ;;
11426 esac
11427     PKG_CONFIG=$ac_pt_PKG_CONFIG
11428   fi
11429 else
11430   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11431 fi
11432
11433 fi
11434 if test -n "$PKG_CONFIG"; then
11435         _pkg_min_version=0.9.0
11436         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11437 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11438         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11439                 { $as_echo "$as_me:$LINENO: result: yes" >&5
11440 $as_echo "yes" >&6; }
11441         else
11442                 { $as_echo "$as_me:$LINENO: result: no" >&5
11443 $as_echo "no" >&6; }
11444                 PKG_CONFIG=""
11445         fi
11446
11447 fi
11448
11449 DATE="`date '+%a %d %B %Y'`"
11450
11451
11452 # Since we should not permanently alter user environment variables, we'll
11453 # save the contents of the original flags in case the user has set them
11454 # prior to running this configue script.
11455 CPPFLAGS_SAVE="$CPPFLAGS"
11456 LDFLAGS_SAVE="$LDFLAGS"
11457
11458 # Check whether --with-binutils was given.
11459 if test "${with_binutils+set}" = set; then
11460   withval=$with_binutils; BINUTILSDIR=$withval
11461 fi
11462
11463
11464 if test "$BINUTILSDIR" != ""; then
11465         LD="$BINUTILSDIR/ld"
11466         CPPFLAGS="$CPPFLAGS -I$BINUTILSDIR/include"
11467
11468 # Check whether --with-binutils-libname was given.
11469 if test "${with_binutils_libname+set}" = set; then
11470   withval=$with_binutils_libname; BINUTILSLIB=$withval
11471 fi
11472
11473         if test "$BINUTILSLIB" = ""; then
11474                 BINUTILSLIB="lib"
11475         fi
11476         LDFLAGS="$LDFLAGS -L$BINUTILSDIR/$BINUTILSLIB -Xlinker -R -Xlinker $BINUTILSDIR/$BINUTILSLIB"
11477         OP_LDFLAGS="$LDFLAGS"
11478         OP_CPPFLAGS="$CPPFLAGS"
11479 else
11480         OP_LDFLAGS=
11481         OP_CPPFLAGS=
11482 fi
11483
11484 # We can't restore original flag values for CPPFLAGS and LDFLAGS until we're done
11485 # checking for bfd.h and libiberty.h (in AX_BINUTILS).
11486
11487 ac_ext=c
11488 ac_cpp='$CPP $CPPFLAGS'
11489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11492 if test -n "$ac_tool_prefix"; then
11493   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11494 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11495 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11496 $as_echo_n "checking for $ac_word... " >&6; }
11497 if test "${ac_cv_prog_CC+set}" = set; then
11498   $as_echo_n "(cached) " >&6
11499 else
11500   if test -n "$CC"; then
11501   ac_cv_prog_CC="$CC" # Let the user override the test.
11502 else
11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11505 do
11506   IFS=$as_save_IFS
11507   test -z "$as_dir" && as_dir=.
11508   for ac_exec_ext in '' $ac_executable_extensions; do
11509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11510     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11511     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11512     break 2
11513   fi
11514 done
11515 done
11516 IFS=$as_save_IFS
11517
11518 fi
11519 fi
11520 CC=$ac_cv_prog_CC
11521 if test -n "$CC"; then
11522   { $as_echo "$as_me:$LINENO: result: $CC" >&5
11523 $as_echo "$CC" >&6; }
11524 else
11525   { $as_echo "$as_me:$LINENO: result: no" >&5
11526 $as_echo "no" >&6; }
11527 fi
11528
11529
11530 fi
11531 if test -z "$ac_cv_prog_CC"; then
11532   ac_ct_CC=$CC
11533   # Extract the first word of "gcc", so it can be a program name with args.
11534 set dummy gcc; ac_word=$2
11535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11536 $as_echo_n "checking for $ac_word... " >&6; }
11537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11538   $as_echo_n "(cached) " >&6
11539 else
11540   if test -n "$ac_ct_CC"; then
11541   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11542 else
11543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544 for as_dir in $PATH
11545 do
11546   IFS=$as_save_IFS
11547   test -z "$as_dir" && as_dir=.
11548   for ac_exec_ext in '' $ac_executable_extensions; do
11549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11550     ac_cv_prog_ac_ct_CC="gcc"
11551     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11552     break 2
11553   fi
11554 done
11555 done
11556 IFS=$as_save_IFS
11557
11558 fi
11559 fi
11560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11561 if test -n "$ac_ct_CC"; then
11562   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11563 $as_echo "$ac_ct_CC" >&6; }
11564 else
11565   { $as_echo "$as_me:$LINENO: result: no" >&5
11566 $as_echo "no" >&6; }
11567 fi
11568
11569   if test "x$ac_ct_CC" = x; then
11570     CC=""
11571   else
11572     case $cross_compiling:$ac_tool_warned in
11573 yes:)
11574 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11576 ac_tool_warned=yes ;;
11577 esac
11578     CC=$ac_ct_CC
11579   fi
11580 else
11581   CC="$ac_cv_prog_CC"
11582 fi
11583
11584 if test -z "$CC"; then
11585           if test -n "$ac_tool_prefix"; then
11586     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11587 set dummy ${ac_tool_prefix}cc; ac_word=$2
11588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11589 $as_echo_n "checking for $ac_word... " >&6; }
11590 if test "${ac_cv_prog_CC+set}" = set; then
11591   $as_echo_n "(cached) " >&6
11592 else
11593   if test -n "$CC"; then
11594   ac_cv_prog_CC="$CC" # Let the user override the test.
11595 else
11596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597 for as_dir in $PATH
11598 do
11599   IFS=$as_save_IFS
11600   test -z "$as_dir" && as_dir=.
11601   for ac_exec_ext in '' $ac_executable_extensions; do
11602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11603     ac_cv_prog_CC="${ac_tool_prefix}cc"
11604     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11605     break 2
11606   fi
11607 done
11608 done
11609 IFS=$as_save_IFS
11610
11611 fi
11612 fi
11613 CC=$ac_cv_prog_CC
11614 if test -n "$CC"; then
11615   { $as_echo "$as_me:$LINENO: result: $CC" >&5
11616 $as_echo "$CC" >&6; }
11617 else
11618   { $as_echo "$as_me:$LINENO: result: no" >&5
11619 $as_echo "no" >&6; }
11620 fi
11621
11622
11623   fi
11624 fi
11625 if test -z "$CC"; then
11626   # Extract the first word of "cc", so it can be a program name with args.
11627 set dummy cc; ac_word=$2
11628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11629 $as_echo_n "checking for $ac_word... " >&6; }
11630 if test "${ac_cv_prog_CC+set}" = set; then
11631   $as_echo_n "(cached) " >&6
11632 else
11633   if test -n "$CC"; then
11634   ac_cv_prog_CC="$CC" # Let the user override the test.
11635 else
11636   ac_prog_rejected=no
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 for as_dir in $PATH
11639 do
11640   IFS=$as_save_IFS
11641   test -z "$as_dir" && as_dir=.
11642   for ac_exec_ext in '' $ac_executable_extensions; do
11643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11644     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11645        ac_prog_rejected=yes
11646        continue
11647      fi
11648     ac_cv_prog_CC="cc"
11649     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11650     break 2
11651   fi
11652 done
11653 done
11654 IFS=$as_save_IFS
11655
11656 if test $ac_prog_rejected = yes; then
11657   # We found a bogon in the path, so make sure we never use it.
11658   set dummy $ac_cv_prog_CC
11659   shift
11660   if test $# != 0; then
11661     # We chose a different compiler from the bogus one.
11662     # However, it has the same basename, so the bogon will be chosen
11663     # first if we set CC to just the basename; use the full file name.
11664     shift
11665     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11666   fi
11667 fi
11668 fi
11669 fi
11670 CC=$ac_cv_prog_CC
11671 if test -n "$CC"; then
11672   { $as_echo "$as_me:$LINENO: result: $CC" >&5
11673 $as_echo "$CC" >&6; }
11674 else
11675   { $as_echo "$as_me:$LINENO: result: no" >&5
11676 $as_echo "no" >&6; }
11677 fi
11678
11679
11680 fi
11681 if test -z "$CC"; then
11682   if test -n "$ac_tool_prefix"; then
11683   for ac_prog in cl.exe
11684   do
11685     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11687 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if test "${ac_cv_prog_CC+set}" = set; then
11690   $as_echo_n "(cached) " >&6
11691 else
11692   if test -n "$CC"; then
11693   ac_cv_prog_CC="$CC" # Let the user override the test.
11694 else
11695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696 for as_dir in $PATH
11697 do
11698   IFS=$as_save_IFS
11699   test -z "$as_dir" && as_dir=.
11700   for ac_exec_ext in '' $ac_executable_extensions; do
11701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11702     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11703     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11704     break 2
11705   fi
11706 done
11707 done
11708 IFS=$as_save_IFS
11709
11710 fi
11711 fi
11712 CC=$ac_cv_prog_CC
11713 if test -n "$CC"; then
11714   { $as_echo "$as_me:$LINENO: result: $CC" >&5
11715 $as_echo "$CC" >&6; }
11716 else
11717   { $as_echo "$as_me:$LINENO: result: no" >&5
11718 $as_echo "no" >&6; }
11719 fi
11720
11721
11722     test -n "$CC" && break
11723   done
11724 fi
11725 if test -z "$CC"; then
11726   ac_ct_CC=$CC
11727   for ac_prog in cl.exe
11728 do
11729   # Extract the first word of "$ac_prog", so it can be a program name with args.
11730 set dummy $ac_prog; ac_word=$2
11731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11732 $as_echo_n "checking for $ac_word... " >&6; }
11733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11734   $as_echo_n "(cached) " >&6
11735 else
11736   if test -n "$ac_ct_CC"; then
11737   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11738 else
11739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740 for as_dir in $PATH
11741 do
11742   IFS=$as_save_IFS
11743   test -z "$as_dir" && as_dir=.
11744   for ac_exec_ext in '' $ac_executable_extensions; do
11745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11746     ac_cv_prog_ac_ct_CC="$ac_prog"
11747     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11748     break 2
11749   fi
11750 done
11751 done
11752 IFS=$as_save_IFS
11753
11754 fi
11755 fi
11756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11757 if test -n "$ac_ct_CC"; then
11758   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11759 $as_echo "$ac_ct_CC" >&6; }
11760 else
11761   { $as_echo "$as_me:$LINENO: result: no" >&5
11762 $as_echo "no" >&6; }
11763 fi
11764
11765
11766   test -n "$ac_ct_CC" && break
11767 done
11768
11769   if test "x$ac_ct_CC" = x; then
11770     CC=""
11771   else
11772     case $cross_compiling:$ac_tool_warned in
11773 yes:)
11774 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11776 ac_tool_warned=yes ;;
11777 esac
11778     CC=$ac_ct_CC
11779   fi
11780 fi
11781
11782 fi
11783
11784
11785 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11787 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11788 See \`config.log' for more details." >&5
11789 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11790 See \`config.log' for more details." >&2;}
11791    { (exit 1); exit 1; }; }; }
11792
11793 # Provide some information about the compiler.
11794 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11795 set X $ac_compile
11796 ac_compiler=$2
11797 { (ac_try="$ac_compiler --version >&5"
11798 case "(($ac_try" in
11799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800   *) ac_try_echo=$ac_try;;
11801 esac
11802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11803 $as_echo "$ac_try_echo") >&5
11804   (eval "$ac_compiler --version >&5") 2>&5
11805   ac_status=$?
11806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807   (exit $ac_status); }
11808 { (ac_try="$ac_compiler -v >&5"
11809 case "(($ac_try" in
11810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811   *) ac_try_echo=$ac_try;;
11812 esac
11813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11814 $as_echo "$ac_try_echo") >&5
11815   (eval "$ac_compiler -v >&5") 2>&5
11816   ac_status=$?
11817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818   (exit $ac_status); }
11819 { (ac_try="$ac_compiler -V >&5"
11820 case "(($ac_try" in
11821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822   *) ac_try_echo=$ac_try;;
11823 esac
11824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11825 $as_echo "$ac_try_echo") >&5
11826   (eval "$ac_compiler -V >&5") 2>&5
11827   ac_status=$?
11828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); }
11830
11831 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11832 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11833 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11834   $as_echo_n "(cached) " >&6
11835 else
11836   cat >conftest.$ac_ext <<_ACEOF
11837 /* confdefs.h.  */
11838 _ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h.  */
11842
11843 int
11844 main ()
11845 {
11846 #ifndef __GNUC__
11847        choke me
11848 #endif
11849
11850   ;
11851   return 0;
11852 }
11853 _ACEOF
11854 rm -f conftest.$ac_objext
11855 if { (ac_try="$ac_compile"
11856 case "(($ac_try" in
11857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858   *) ac_try_echo=$ac_try;;
11859 esac
11860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11861 $as_echo "$ac_try_echo") >&5
11862   (eval "$ac_compile") 2>conftest.er1
11863   ac_status=$?
11864   grep -v '^ *+' conftest.er1 >conftest.err
11865   rm -f conftest.er1
11866   cat conftest.err >&5
11867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); } && {
11869          test -z "$ac_c_werror_flag" ||
11870          test ! -s conftest.err
11871        } && test -s conftest.$ac_objext; then
11872   ac_compiler_gnu=yes
11873 else
11874   $as_echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11876
11877         ac_compiler_gnu=no
11878 fi
11879
11880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11882
11883 fi
11884 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11885 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11886 if test $ac_compiler_gnu = yes; then
11887   GCC=yes
11888 else
11889   GCC=
11890 fi
11891 ac_test_CFLAGS=${CFLAGS+set}
11892 ac_save_CFLAGS=$CFLAGS
11893 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11894 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11895 if test "${ac_cv_prog_cc_g+set}" = set; then
11896   $as_echo_n "(cached) " >&6
11897 else
11898   ac_save_c_werror_flag=$ac_c_werror_flag
11899    ac_c_werror_flag=yes
11900    ac_cv_prog_cc_g=no
11901    CFLAGS="-g"
11902    cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h.  */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h.  */
11908
11909 int
11910 main ()
11911 {
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_cv_prog_cc_g=yes
11936 else
11937   $as_echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11939
11940         CFLAGS=""
11941       cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h.  */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h.  */
11947
11948 int
11949 main ()
11950 {
11951
11952   ;
11953   return 0;
11954 }
11955 _ACEOF
11956 rm -f conftest.$ac_objext
11957 if { (ac_try="$ac_compile"
11958 case "(($ac_try" in
11959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960   *) ac_try_echo=$ac_try;;
11961 esac
11962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11963 $as_echo "$ac_try_echo") >&5
11964   (eval "$ac_compile") 2>conftest.er1
11965   ac_status=$?
11966   grep -v '^ *+' conftest.er1 >conftest.err
11967   rm -f conftest.er1
11968   cat conftest.err >&5
11969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); } && {
11971          test -z "$ac_c_werror_flag" ||
11972          test ! -s conftest.err
11973        } && test -s conftest.$ac_objext; then
11974   :
11975 else
11976   $as_echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11978
11979         ac_c_werror_flag=$ac_save_c_werror_flag
11980          CFLAGS="-g"
11981          cat >conftest.$ac_ext <<_ACEOF
11982 /* confdefs.h.  */
11983 _ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h.  */
11987
11988 int
11989 main ()
11990 {
11991
11992   ;
11993   return 0;
11994 }
11995 _ACEOF
11996 rm -f conftest.$ac_objext
11997 if { (ac_try="$ac_compile"
11998 case "(($ac_try" in
11999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000   *) ac_try_echo=$ac_try;;
12001 esac
12002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12003 $as_echo "$ac_try_echo") >&5
12004   (eval "$ac_compile") 2>conftest.er1
12005   ac_status=$?
12006   grep -v '^ *+' conftest.er1 >conftest.err
12007   rm -f conftest.er1
12008   cat conftest.err >&5
12009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); } && {
12011          test -z "$ac_c_werror_flag" ||
12012          test ! -s conftest.err
12013        } && test -s conftest.$ac_objext; then
12014   ac_cv_prog_cc_g=yes
12015 else
12016   $as_echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12018
12019
12020 fi
12021
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12023 fi
12024
12025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12026 fi
12027
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12029    ac_c_werror_flag=$ac_save_c_werror_flag
12030 fi
12031 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12032 $as_echo "$ac_cv_prog_cc_g" >&6; }
12033 if test "$ac_test_CFLAGS" = set; then
12034   CFLAGS=$ac_save_CFLAGS
12035 elif test $ac_cv_prog_cc_g = yes; then
12036   if test "$GCC" = yes; then
12037     CFLAGS="-g -O2"
12038   else
12039     CFLAGS="-g"
12040   fi
12041 else
12042   if test "$GCC" = yes; then
12043     CFLAGS="-O2"
12044   else
12045     CFLAGS=
12046   fi
12047 fi
12048 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12049 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12050 if test "${ac_cv_prog_cc_c89+set}" = set; then
12051   $as_echo_n "(cached) " >&6
12052 else
12053   ac_cv_prog_cc_c89=no
12054 ac_save_CC=$CC
12055 cat >conftest.$ac_ext <<_ACEOF
12056 /* confdefs.h.  */
12057 _ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h.  */
12061 #include <stdarg.h>
12062 #include <stdio.h>
12063 #include <sys/types.h>
12064 #include <sys/stat.h>
12065 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12066 struct buf { int x; };
12067 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12068 static char *e (p, i)
12069      char **p;
12070      int i;
12071 {
12072   return p[i];
12073 }
12074 static char *f (char * (*g) (char **, int), char **p, ...)
12075 {
12076   char *s;
12077   va_list v;
12078   va_start (v,p);
12079   s = g (p, va_arg (v,int));
12080   va_end (v);
12081   return s;
12082 }
12083
12084 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12085    function prototypes and stuff, but not '\xHH' hex character constants.
12086    These don't provoke an error unfortunately, instead are silently treated
12087    as 'x'.  The following induces an error, until -std is added to get
12088    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12089    array size at least.  It's necessary to write '\x00'==0 to get something
12090    that's true only with -std.  */
12091 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12092
12093 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12094    inside strings and character constants.  */
12095 #define FOO(x) 'x'
12096 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12097
12098 int test (int i, double x);
12099 struct s1 {int (*f) (int a);};
12100 struct s2 {int (*f) (double a);};
12101 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12102 int argc;
12103 char **argv;
12104 int
12105 main ()
12106 {
12107 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12108   ;
12109   return 0;
12110 }
12111 _ACEOF
12112 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12113         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12114 do
12115   CC="$ac_save_CC $ac_arg"
12116   rm -f conftest.$ac_objext
12117 if { (ac_try="$ac_compile"
12118 case "(($ac_try" in
12119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120   *) ac_try_echo=$ac_try;;
12121 esac
12122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12123 $as_echo "$ac_try_echo") >&5
12124   (eval "$ac_compile") 2>conftest.er1
12125   ac_status=$?
12126   grep -v '^ *+' conftest.er1 >conftest.err
12127   rm -f conftest.er1
12128   cat conftest.err >&5
12129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); } && {
12131          test -z "$ac_c_werror_flag" ||
12132          test ! -s conftest.err
12133        } && test -s conftest.$ac_objext; then
12134   ac_cv_prog_cc_c89=$ac_arg
12135 else
12136   $as_echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12138
12139
12140 fi
12141
12142 rm -f core conftest.err conftest.$ac_objext
12143   test "x$ac_cv_prog_cc_c89" != "xno" && break
12144 done
12145 rm -f conftest.$ac_ext
12146 CC=$ac_save_CC
12147
12148 fi
12149 # AC_CACHE_VAL
12150 case "x$ac_cv_prog_cc_c89" in
12151   x)
12152     { $as_echo "$as_me:$LINENO: result: none needed" >&5
12153 $as_echo "none needed" >&6; } ;;
12154   xno)
12155     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12156 $as_echo "unsupported" >&6; } ;;
12157   *)
12158     CC="$CC $ac_cv_prog_cc_c89"
12159     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12160 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12161 esac
12162
12163
12164 ac_ext=c
12165 ac_cpp='$CPP $CPPFLAGS'
12166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12169
12170 depcc="$CC"   am_compiler_list=
12171
12172 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12173 $as_echo_n "checking dependency style of $depcc... " >&6; }
12174 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12175   $as_echo_n "(cached) " >&6
12176 else
12177   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12178   # We make a subdir and do the tests there.  Otherwise we can end up
12179   # making bogus files that we don't know about and never remove.  For
12180   # instance it was reported that on HP-UX the gcc test will end up
12181   # making a dummy file named `D' -- because `-MD' means `put the output
12182   # in D'.
12183   mkdir conftest.dir
12184   # Copy depcomp to subdir because otherwise we won't find it if we're
12185   # using a relative directory.
12186   cp "$am_depcomp" conftest.dir
12187   cd conftest.dir
12188   # We will build objects and dependencies in a subdirectory because
12189   # it helps to detect inapplicable dependency modes.  For instance
12190   # both Tru64's cc and ICC support -MD to output dependencies as a
12191   # side effect of compilation, but ICC will put the dependencies in
12192   # the current directory while Tru64 will put them in the object
12193   # directory.
12194   mkdir sub
12195
12196   am_cv_CC_dependencies_compiler_type=none
12197   if test "$am_compiler_list" = ""; then
12198      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12199   fi
12200   am__universal=false
12201   case " $depcc " in #(
12202      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12203      esac
12204
12205   for depmode in $am_compiler_list; do
12206     # Setup a source with many dependencies, because some compilers
12207     # like to wrap large dependency lists on column 80 (with \), and
12208     # we should not choose a depcomp mode which is confused by this.
12209     #
12210     # We need to recreate these files for each test, as the compiler may
12211     # overwrite some of them when testing with obscure command lines.
12212     # This happens at least with the AIX C compiler.
12213     : > sub/conftest.c
12214     for i in 1 2 3 4 5 6; do
12215       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12216       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12217       # Solaris 8's {/usr,}/bin/sh.
12218       touch sub/conftst$i.h
12219     done
12220     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12221
12222     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12223     # mode.  It turns out that the SunPro C++ compiler does not properly
12224     # handle `-M -o', and we need to detect this.  Also, some Intel
12225     # versions had trouble with output in subdirs
12226     am__obj=sub/conftest.${OBJEXT-o}
12227     am__minus_obj="-o $am__obj"
12228     case $depmode in
12229     gcc)
12230       # This depmode causes a compiler race in universal mode.
12231       test "$am__universal" = false || continue
12232       ;;
12233     nosideeffect)
12234       # after this tag, mechanisms are not by side-effect, so they'll
12235       # only be used when explicitly requested
12236       if test "x$enable_dependency_tracking" = xyes; then
12237         continue
12238       else
12239         break
12240       fi
12241       ;;
12242     msvisualcpp | msvcmsys)
12243       # This compiler won't grok `-c -o', but also, the minuso test has
12244       # not run yet.  These depmodes are late enough in the game, and
12245       # so weak that their functioning should not be impacted.
12246       am__obj=conftest.${OBJEXT-o}
12247       am__minus_obj=
12248       ;;
12249     none) break ;;
12250     esac
12251     if depmode=$depmode \
12252        source=sub/conftest.c object=$am__obj \
12253        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12254        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12255          >/dev/null 2>conftest.err &&
12256        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12257        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12258        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12259        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12260       # icc doesn't choke on unknown options, it will just issue warnings
12261       # or remarks (even with -Werror).  So we grep stderr for any message
12262       # that says an option was ignored or not supported.
12263       # When given -MP, icc 7.0 and 7.1 complain thusly:
12264       #   icc: Command line warning: ignoring option '-M'; no argument required
12265       # The diagnosis changed in icc 8.0:
12266       #   icc: Command line remark: option '-MP' not supported
12267       if (grep 'ignoring option' conftest.err ||
12268           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12269         am_cv_CC_dependencies_compiler_type=$depmode
12270         break
12271       fi
12272     fi
12273   done
12274
12275   cd ..
12276   rm -rf conftest.dir
12277 else
12278   am_cv_CC_dependencies_compiler_type=none
12279 fi
12280
12281 fi
12282 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12283 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12284 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12285
12286  if
12287   test "x$enable_dependency_tracking" != xno \
12288   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12289   am__fastdepCC_TRUE=
12290   am__fastdepCC_FALSE='#'
12291 else
12292   am__fastdepCC_TRUE='#'
12293   am__fastdepCC_FALSE=
12294 fi
12295
12296
12297 ac_ext=c
12298 ac_cpp='$CPP $CPPFLAGS'
12299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12302 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12303 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12304 # On Suns, sometimes $CPP names a directory.
12305 if test -n "$CPP" && test -d "$CPP"; then
12306   CPP=
12307 fi
12308 if test -z "$CPP"; then
12309   if test "${ac_cv_prog_CPP+set}" = set; then
12310   $as_echo_n "(cached) " >&6
12311 else
12312       # Double quotes because CPP needs to be expanded
12313     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12314     do
12315       ac_preproc_ok=false
12316 for ac_c_preproc_warn_flag in '' yes
12317 do
12318   # Use a header file that comes with gcc, so configuring glibc
12319   # with a fresh cross-compiler works.
12320   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12321   # <limits.h> exists even on freestanding compilers.
12322   # On the NeXT, cc -E runs the code through the compiler's parser,
12323   # not just through cpp. "Syntax error" is here to catch this case.
12324   cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h.  */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h.  */
12330 #ifdef __STDC__
12331 # include <limits.h>
12332 #else
12333 # include <assert.h>
12334 #endif
12335                      Syntax error
12336 _ACEOF
12337 if { (ac_try="$ac_cpp conftest.$ac_ext"
12338 case "(($ac_try" in
12339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340   *) ac_try_echo=$ac_try;;
12341 esac
12342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12343 $as_echo "$ac_try_echo") >&5
12344   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12345   ac_status=$?
12346   grep -v '^ *+' conftest.er1 >conftest.err
12347   rm -f conftest.er1
12348   cat conftest.err >&5
12349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); } >/dev/null && {
12351          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12352          test ! -s conftest.err
12353        }; then
12354   :
12355 else
12356   $as_echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12358
12359   # Broken: fails on valid input.
12360 continue
12361 fi
12362
12363 rm -f conftest.err conftest.$ac_ext
12364
12365   # OK, works on sane cases.  Now check whether nonexistent headers
12366   # can be detected and how.
12367   cat >conftest.$ac_ext <<_ACEOF
12368 /* confdefs.h.  */
12369 _ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h.  */
12373 #include <ac_nonexistent.h>
12374 _ACEOF
12375 if { (ac_try="$ac_cpp conftest.$ac_ext"
12376 case "(($ac_try" in
12377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378   *) ac_try_echo=$ac_try;;
12379 esac
12380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12381 $as_echo "$ac_try_echo") >&5
12382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12383   ac_status=$?
12384   grep -v '^ *+' conftest.er1 >conftest.err
12385   rm -f conftest.er1
12386   cat conftest.err >&5
12387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388   (exit $ac_status); } >/dev/null && {
12389          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12390          test ! -s conftest.err
12391        }; then
12392   # Broken: success on invalid input.
12393 continue
12394 else
12395   $as_echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12397
12398   # Passes both tests.
12399 ac_preproc_ok=:
12400 break
12401 fi
12402
12403 rm -f conftest.err conftest.$ac_ext
12404
12405 done
12406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12407 rm -f conftest.err conftest.$ac_ext
12408 if $ac_preproc_ok; then
12409   break
12410 fi
12411
12412     done
12413     ac_cv_prog_CPP=$CPP
12414
12415 fi
12416   CPP=$ac_cv_prog_CPP
12417 else
12418   ac_cv_prog_CPP=$CPP
12419 fi
12420 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
12421 $as_echo "$CPP" >&6; }
12422 ac_preproc_ok=false
12423 for ac_c_preproc_warn_flag in '' yes
12424 do
12425   # Use a header file that comes with gcc, so configuring glibc
12426   # with a fresh cross-compiler works.
12427   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12428   # <limits.h> exists even on freestanding compilers.
12429   # On the NeXT, cc -E runs the code through the compiler's parser,
12430   # not just through cpp. "Syntax error" is here to catch this case.
12431   cat >conftest.$ac_ext <<_ACEOF
12432 /* confdefs.h.  */
12433 _ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h.  */
12437 #ifdef __STDC__
12438 # include <limits.h>
12439 #else
12440 # include <assert.h>
12441 #endif
12442                      Syntax error
12443 _ACEOF
12444 if { (ac_try="$ac_cpp conftest.$ac_ext"
12445 case "(($ac_try" in
12446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447   *) ac_try_echo=$ac_try;;
12448 esac
12449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12450 $as_echo "$ac_try_echo") >&5
12451   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12452   ac_status=$?
12453   grep -v '^ *+' conftest.er1 >conftest.err
12454   rm -f conftest.er1
12455   cat conftest.err >&5
12456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); } >/dev/null && {
12458          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12459          test ! -s conftest.err
12460        }; then
12461   :
12462 else
12463   $as_echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12465
12466   # Broken: fails on valid input.
12467 continue
12468 fi
12469
12470 rm -f conftest.err conftest.$ac_ext
12471
12472   # OK, works on sane cases.  Now check whether nonexistent headers
12473   # can be detected and how.
12474   cat >conftest.$ac_ext <<_ACEOF
12475 /* confdefs.h.  */
12476 _ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h.  */
12480 #include <ac_nonexistent.h>
12481 _ACEOF
12482 if { (ac_try="$ac_cpp conftest.$ac_ext"
12483 case "(($ac_try" in
12484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485   *) ac_try_echo=$ac_try;;
12486 esac
12487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12488 $as_echo "$ac_try_echo") >&5
12489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12490   ac_status=$?
12491   grep -v '^ *+' conftest.er1 >conftest.err
12492   rm -f conftest.er1
12493   cat conftest.err >&5
12494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); } >/dev/null && {
12496          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12497          test ! -s conftest.err
12498        }; then
12499   # Broken: success on invalid input.
12500 continue
12501 else
12502   $as_echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12504
12505   # Passes both tests.
12506 ac_preproc_ok=:
12507 break
12508 fi
12509
12510 rm -f conftest.err conftest.$ac_ext
12511
12512 done
12513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12514 rm -f conftest.err conftest.$ac_ext
12515 if $ac_preproc_ok; then
12516   :
12517 else
12518   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12520 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12521 See \`config.log' for more details." >&5
12522 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12523 See \`config.log' for more details." >&2;}
12524    { (exit 1); exit 1; }; }; }
12525 fi
12526
12527 ac_ext=c
12528 ac_cpp='$CPP $CPPFLAGS'
12529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12532
12533 ac_ext=cpp
12534 ac_cpp='$CXXCPP $CPPFLAGS'
12535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12538 if test -z "$CXX"; then
12539   if test -n "$CCC"; then
12540     CXX=$CCC
12541   else
12542     if test -n "$ac_tool_prefix"; then
12543   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12544   do
12545     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12546 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12547 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12548 $as_echo_n "checking for $ac_word... " >&6; }
12549 if test "${ac_cv_prog_CXX+set}" = set; then
12550   $as_echo_n "(cached) " >&6
12551 else
12552   if test -n "$CXX"; then
12553   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12554 else
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $PATH
12557 do
12558   IFS=$as_save_IFS
12559   test -z "$as_dir" && as_dir=.
12560   for ac_exec_ext in '' $ac_executable_extensions; do
12561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12562     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12563     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12564     break 2
12565   fi
12566 done
12567 done
12568 IFS=$as_save_IFS
12569
12570 fi
12571 fi
12572 CXX=$ac_cv_prog_CXX
12573 if test -n "$CXX"; then
12574   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
12575 $as_echo "$CXX" >&6; }
12576 else
12577   { $as_echo "$as_me:$LINENO: result: no" >&5
12578 $as_echo "no" >&6; }
12579 fi
12580
12581
12582     test -n "$CXX" && break
12583   done
12584 fi
12585 if test -z "$CXX"; then
12586   ac_ct_CXX=$CXX
12587   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12588 do
12589   # Extract the first word of "$ac_prog", so it can be a program name with args.
12590 set dummy $ac_prog; ac_word=$2
12591 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12592 $as_echo_n "checking for $ac_word... " >&6; }
12593 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12594   $as_echo_n "(cached) " >&6
12595 else
12596   if test -n "$ac_ct_CXX"; then
12597   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12598 else
12599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12600 for as_dir in $PATH
12601 do
12602   IFS=$as_save_IFS
12603   test -z "$as_dir" && as_dir=.
12604   for ac_exec_ext in '' $ac_executable_extensions; do
12605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12606     ac_cv_prog_ac_ct_CXX="$ac_prog"
12607     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12608     break 2
12609   fi
12610 done
12611 done
12612 IFS=$as_save_IFS
12613
12614 fi
12615 fi
12616 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12617 if test -n "$ac_ct_CXX"; then
12618   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12619 $as_echo "$ac_ct_CXX" >&6; }
12620 else
12621   { $as_echo "$as_me:$LINENO: result: no" >&5
12622 $as_echo "no" >&6; }
12623 fi
12624
12625
12626   test -n "$ac_ct_CXX" && break
12627 done
12628
12629   if test "x$ac_ct_CXX" = x; then
12630     CXX="g++"
12631   else
12632     case $cross_compiling:$ac_tool_warned in
12633 yes:)
12634 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12636 ac_tool_warned=yes ;;
12637 esac
12638     CXX=$ac_ct_CXX
12639   fi
12640 fi
12641
12642   fi
12643 fi
12644 # Provide some information about the compiler.
12645 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12646 set X $ac_compile
12647 ac_compiler=$2
12648 { (ac_try="$ac_compiler --version >&5"
12649 case "(($ac_try" in
12650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651   *) ac_try_echo=$ac_try;;
12652 esac
12653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12654 $as_echo "$ac_try_echo") >&5
12655   (eval "$ac_compiler --version >&5") 2>&5
12656   ac_status=$?
12657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); }
12659 { (ac_try="$ac_compiler -v >&5"
12660 case "(($ac_try" in
12661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662   *) ac_try_echo=$ac_try;;
12663 esac
12664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12665 $as_echo "$ac_try_echo") >&5
12666   (eval "$ac_compiler -v >&5") 2>&5
12667   ac_status=$?
12668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); }
12670 { (ac_try="$ac_compiler -V >&5"
12671 case "(($ac_try" in
12672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673   *) ac_try_echo=$ac_try;;
12674 esac
12675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12676 $as_echo "$ac_try_echo") >&5
12677   (eval "$ac_compiler -V >&5") 2>&5
12678   ac_status=$?
12679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); }
12681
12682 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12683 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12684 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12685   $as_echo_n "(cached) " >&6
12686 else
12687   cat >conftest.$ac_ext <<_ACEOF
12688 /* confdefs.h.  */
12689 _ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h.  */
12693
12694 int
12695 main ()
12696 {
12697 #ifndef __GNUC__
12698        choke me
12699 #endif
12700
12701   ;
12702   return 0;
12703 }
12704 _ACEOF
12705 rm -f conftest.$ac_objext
12706 if { (ac_try="$ac_compile"
12707 case "(($ac_try" in
12708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709   *) ac_try_echo=$ac_try;;
12710 esac
12711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12712 $as_echo "$ac_try_echo") >&5
12713   (eval "$ac_compile") 2>conftest.er1
12714   ac_status=$?
12715   grep -v '^ *+' conftest.er1 >conftest.err
12716   rm -f conftest.er1
12717   cat conftest.err >&5
12718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); } && {
12720          test -z "$ac_cxx_werror_flag" ||
12721          test ! -s conftest.err
12722        } && test -s conftest.$ac_objext; then
12723   ac_compiler_gnu=yes
12724 else
12725   $as_echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12727
12728         ac_compiler_gnu=no
12729 fi
12730
12731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12732 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12733
12734 fi
12735 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12736 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12737 if test $ac_compiler_gnu = yes; then
12738   GXX=yes
12739 else
12740   GXX=
12741 fi
12742 ac_test_CXXFLAGS=${CXXFLAGS+set}
12743 ac_save_CXXFLAGS=$CXXFLAGS
12744 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12745 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12746 if test "${ac_cv_prog_cxx_g+set}" = set; then
12747   $as_echo_n "(cached) " >&6
12748 else
12749   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12750    ac_cxx_werror_flag=yes
12751    ac_cv_prog_cxx_g=no
12752    CXXFLAGS="-g"
12753    cat >conftest.$ac_ext <<_ACEOF
12754 /* confdefs.h.  */
12755 _ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h.  */
12759
12760 int
12761 main ()
12762 {
12763
12764   ;
12765   return 0;
12766 }
12767 _ACEOF
12768 rm -f conftest.$ac_objext
12769 if { (ac_try="$ac_compile"
12770 case "(($ac_try" in
12771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772   *) ac_try_echo=$ac_try;;
12773 esac
12774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12775 $as_echo "$ac_try_echo") >&5
12776   (eval "$ac_compile") 2>conftest.er1
12777   ac_status=$?
12778   grep -v '^ *+' conftest.er1 >conftest.err
12779   rm -f conftest.er1
12780   cat conftest.err >&5
12781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); } && {
12783          test -z "$ac_cxx_werror_flag" ||
12784          test ! -s conftest.err
12785        } && test -s conftest.$ac_objext; then
12786   ac_cv_prog_cxx_g=yes
12787 else
12788   $as_echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12790
12791         CXXFLAGS=""
12792       cat >conftest.$ac_ext <<_ACEOF
12793 /* confdefs.h.  */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h.  */
12798
12799 int
12800 main ()
12801 {
12802
12803   ;
12804   return 0;
12805 }
12806 _ACEOF
12807 rm -f conftest.$ac_objext
12808 if { (ac_try="$ac_compile"
12809 case "(($ac_try" in
12810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811   *) ac_try_echo=$ac_try;;
12812 esac
12813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12814 $as_echo "$ac_try_echo") >&5
12815   (eval "$ac_compile") 2>conftest.er1
12816   ac_status=$?
12817   grep -v '^ *+' conftest.er1 >conftest.err
12818   rm -f conftest.er1
12819   cat conftest.err >&5
12820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821   (exit $ac_status); } && {
12822          test -z "$ac_cxx_werror_flag" ||
12823          test ! -s conftest.err
12824        } && test -s conftest.$ac_objext; then
12825   :
12826 else
12827   $as_echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12829
12830         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12831          CXXFLAGS="-g"
12832          cat >conftest.$ac_ext <<_ACEOF
12833 /* confdefs.h.  */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h.  */
12838
12839 int
12840 main ()
12841 {
12842
12843   ;
12844   return 0;
12845 }
12846 _ACEOF
12847 rm -f conftest.$ac_objext
12848 if { (ac_try="$ac_compile"
12849 case "(($ac_try" in
12850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851   *) ac_try_echo=$ac_try;;
12852 esac
12853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12854 $as_echo "$ac_try_echo") >&5
12855   (eval "$ac_compile") 2>conftest.er1
12856   ac_status=$?
12857   grep -v '^ *+' conftest.er1 >conftest.err
12858   rm -f conftest.er1
12859   cat conftest.err >&5
12860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861   (exit $ac_status); } && {
12862          test -z "$ac_cxx_werror_flag" ||
12863          test ! -s conftest.err
12864        } && test -s conftest.$ac_objext; then
12865   ac_cv_prog_cxx_g=yes
12866 else
12867   $as_echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870
12871 fi
12872
12873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874 fi
12875
12876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12877 fi
12878
12879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12880    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12881 fi
12882 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12883 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12884 if test "$ac_test_CXXFLAGS" = set; then
12885   CXXFLAGS=$ac_save_CXXFLAGS
12886 elif test $ac_cv_prog_cxx_g = yes; then
12887   if test "$GXX" = yes; then
12888     CXXFLAGS="-g -O2"
12889   else
12890     CXXFLAGS="-g"
12891   fi
12892 else
12893   if test "$GXX" = yes; then
12894     CXXFLAGS="-O2"
12895   else
12896     CXXFLAGS=
12897   fi
12898 fi
12899 ac_ext=c
12900 ac_cpp='$CPP $CPPFLAGS'
12901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12904
12905 depcc="$CXX"  am_compiler_list=
12906
12907 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12908 $as_echo_n "checking dependency style of $depcc... " >&6; }
12909 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12910   $as_echo_n "(cached) " >&6
12911 else
12912   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12913   # We make a subdir and do the tests there.  Otherwise we can end up
12914   # making bogus files that we don't know about and never remove.  For
12915   # instance it was reported that on HP-UX the gcc test will end up
12916   # making a dummy file named `D' -- because `-MD' means `put the output
12917   # in D'.
12918   mkdir conftest.dir
12919   # Copy depcomp to subdir because otherwise we won't find it if we're
12920   # using a relative directory.
12921   cp "$am_depcomp" conftest.dir
12922   cd conftest.dir
12923   # We will build objects and dependencies in a subdirectory because
12924   # it helps to detect inapplicable dependency modes.  For instance
12925   # both Tru64's cc and ICC support -MD to output dependencies as a
12926   # side effect of compilation, but ICC will put the dependencies in
12927   # the current directory while Tru64 will put them in the object
12928   # directory.
12929   mkdir sub
12930
12931   am_cv_CXX_dependencies_compiler_type=none
12932   if test "$am_compiler_list" = ""; then
12933      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12934   fi
12935   am__universal=false
12936   case " $depcc " in #(
12937      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12938      esac
12939
12940   for depmode in $am_compiler_list; do
12941     # Setup a source with many dependencies, because some compilers
12942     # like to wrap large dependency lists on column 80 (with \), and
12943     # we should not choose a depcomp mode which is confused by this.
12944     #
12945     # We need to recreate these files for each test, as the compiler may
12946     # overwrite some of them when testing with obscure command lines.
12947     # This happens at least with the AIX C compiler.
12948     : > sub/conftest.c
12949     for i in 1 2 3 4 5 6; do
12950       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12951       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12952       # Solaris 8's {/usr,}/bin/sh.
12953       touch sub/conftst$i.h
12954     done
12955     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12956
12957     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12958     # mode.  It turns out that the SunPro C++ compiler does not properly
12959     # handle `-M -o', and we need to detect this.  Also, some Intel
12960     # versions had trouble with output in subdirs
12961     am__obj=sub/conftest.${OBJEXT-o}
12962     am__minus_obj="-o $am__obj"
12963     case $depmode in
12964     gcc)
12965       # This depmode causes a compiler race in universal mode.
12966       test "$am__universal" = false || continue
12967       ;;
12968     nosideeffect)
12969       # after this tag, mechanisms are not by side-effect, so they'll
12970       # only be used when explicitly requested
12971       if test "x$enable_dependency_tracking" = xyes; then
12972         continue
12973       else
12974         break
12975       fi
12976       ;;
12977     msvisualcpp | msvcmsys)
12978       # This compiler won't grok `-c -o', but also, the minuso test has
12979       # not run yet.  These depmodes are late enough in the game, and
12980       # so weak that their functioning should not be impacted.
12981       am__obj=conftest.${OBJEXT-o}
12982       am__minus_obj=
12983       ;;
12984     none) break ;;
12985     esac
12986     if depmode=$depmode \
12987        source=sub/conftest.c object=$am__obj \
12988        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12989        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12990          >/dev/null 2>conftest.err &&
12991        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12992        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12993        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12994        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12995       # icc doesn't choke on unknown options, it will just issue warnings
12996       # or remarks (even with -Werror).  So we grep stderr for any message
12997       # that says an option was ignored or not supported.
12998       # When given -MP, icc 7.0 and 7.1 complain thusly:
12999       #   icc: Command line warning: ignoring option '-M'; no argument required
13000       # The diagnosis changed in icc 8.0:
13001       #   icc: Command line remark: option '-MP' not supported
13002       if (grep 'ignoring option' conftest.err ||
13003           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13004         am_cv_CXX_dependencies_compiler_type=$depmode
13005         break
13006       fi
13007     fi
13008   done
13009
13010   cd ..
13011   rm -rf conftest.dir
13012 else
13013   am_cv_CXX_dependencies_compiler_type=none
13014 fi
13015
13016 fi
13017 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13018 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13019 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13020
13021  if
13022   test "x$enable_dependency_tracking" != xno \
13023   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13024   am__fastdepCXX_TRUE=
13025   am__fastdepCXX_FALSE='#'
13026 else
13027   am__fastdepCXX_TRUE='#'
13028   am__fastdepCXX_FALSE=
13029 fi
13030
13031
13032
13033 ac_ext=cpp
13034 ac_cpp='$CXXCPP $CPPFLAGS'
13035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13038 if test -z "$CXX"; then
13039   if test -n "$CCC"; then
13040     CXX=$CCC
13041   else
13042     if test -n "$ac_tool_prefix"; then
13043   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13044   do
13045     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13048 $as_echo_n "checking for $ac_word... " >&6; }
13049 if test "${ac_cv_prog_CXX+set}" = set; then
13050   $as_echo_n "(cached) " >&6
13051 else
13052   if test -n "$CXX"; then
13053   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13054 else
13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $PATH
13057 do
13058   IFS=$as_save_IFS
13059   test -z "$as_dir" && as_dir=.
13060   for ac_exec_ext in '' $ac_executable_extensions; do
13061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13062     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13063     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13064     break 2
13065   fi
13066 done
13067 done
13068 IFS=$as_save_IFS
13069
13070 fi
13071 fi
13072 CXX=$ac_cv_prog_CXX
13073 if test -n "$CXX"; then
13074   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
13075 $as_echo "$CXX" >&6; }
13076 else
13077   { $as_echo "$as_me:$LINENO: result: no" >&5
13078 $as_echo "no" >&6; }
13079 fi
13080
13081
13082     test -n "$CXX" && break
13083   done
13084 fi
13085 if test -z "$CXX"; then
13086   ac_ct_CXX=$CXX
13087   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13088 do
13089   # Extract the first word of "$ac_prog", so it can be a program name with args.
13090 set dummy $ac_prog; ac_word=$2
13091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13092 $as_echo_n "checking for $ac_word... " >&6; }
13093 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13094   $as_echo_n "(cached) " >&6
13095 else
13096   if test -n "$ac_ct_CXX"; then
13097   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13098 else
13099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100 for as_dir in $PATH
13101 do
13102   IFS=$as_save_IFS
13103   test -z "$as_dir" && as_dir=.
13104   for ac_exec_ext in '' $ac_executable_extensions; do
13105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13106     ac_cv_prog_ac_ct_CXX="$ac_prog"
13107     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13108     break 2
13109   fi
13110 done
13111 done
13112 IFS=$as_save_IFS
13113
13114 fi
13115 fi
13116 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13117 if test -n "$ac_ct_CXX"; then
13118   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13119 $as_echo "$ac_ct_CXX" >&6; }
13120 else
13121   { $as_echo "$as_me:$LINENO: result: no" >&5
13122 $as_echo "no" >&6; }
13123 fi
13124
13125
13126   test -n "$ac_ct_CXX" && break
13127 done
13128
13129   if test "x$ac_ct_CXX" = x; then
13130     CXX="g++"
13131   else
13132     case $cross_compiling:$ac_tool_warned in
13133 yes:)
13134 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13136 ac_tool_warned=yes ;;
13137 esac
13138     CXX=$ac_ct_CXX
13139   fi
13140 fi
13141
13142   fi
13143 fi
13144 # Provide some information about the compiler.
13145 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
13146 set X $ac_compile
13147 ac_compiler=$2
13148 { (ac_try="$ac_compiler --version >&5"
13149 case "(($ac_try" in
13150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151   *) ac_try_echo=$ac_try;;
13152 esac
13153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13154 $as_echo "$ac_try_echo") >&5
13155   (eval "$ac_compiler --version >&5") 2>&5
13156   ac_status=$?
13157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); }
13159 { (ac_try="$ac_compiler -v >&5"
13160 case "(($ac_try" in
13161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162   *) ac_try_echo=$ac_try;;
13163 esac
13164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13165 $as_echo "$ac_try_echo") >&5
13166   (eval "$ac_compiler -v >&5") 2>&5
13167   ac_status=$?
13168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); }
13170 { (ac_try="$ac_compiler -V >&5"
13171 case "(($ac_try" in
13172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173   *) ac_try_echo=$ac_try;;
13174 esac
13175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13176 $as_echo "$ac_try_echo") >&5
13177   (eval "$ac_compiler -V >&5") 2>&5
13178   ac_status=$?
13179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); }
13181
13182 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13183 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13184 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13185   $as_echo_n "(cached) " >&6
13186 else
13187   cat >conftest.$ac_ext <<_ACEOF
13188 /* confdefs.h.  */
13189 _ACEOF
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h.  */
13193
13194 int
13195 main ()
13196 {
13197 #ifndef __GNUC__
13198        choke me
13199 #endif
13200
13201   ;
13202   return 0;
13203 }
13204 _ACEOF
13205 rm -f conftest.$ac_objext
13206 if { (ac_try="$ac_compile"
13207 case "(($ac_try" in
13208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209   *) ac_try_echo=$ac_try;;
13210 esac
13211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13212 $as_echo "$ac_try_echo") >&5
13213   (eval "$ac_compile") 2>conftest.er1
13214   ac_status=$?
13215   grep -v '^ *+' conftest.er1 >conftest.err
13216   rm -f conftest.er1
13217   cat conftest.err >&5
13218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); } && {
13220          test -z "$ac_cxx_werror_flag" ||
13221          test ! -s conftest.err
13222        } && test -s conftest.$ac_objext; then
13223   ac_compiler_gnu=yes
13224 else
13225   $as_echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13227
13228         ac_compiler_gnu=no
13229 fi
13230
13231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13232 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13233
13234 fi
13235 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13236 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13237 if test $ac_compiler_gnu = yes; then
13238   GXX=yes
13239 else
13240   GXX=
13241 fi
13242 ac_test_CXXFLAGS=${CXXFLAGS+set}
13243 ac_save_CXXFLAGS=$CXXFLAGS
13244 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13245 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13246 if test "${ac_cv_prog_cxx_g+set}" = set; then
13247   $as_echo_n "(cached) " >&6
13248 else
13249   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13250    ac_cxx_werror_flag=yes
13251    ac_cv_prog_cxx_g=no
13252    CXXFLAGS="-g"
13253    cat >conftest.$ac_ext <<_ACEOF
13254 /* confdefs.h.  */
13255 _ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h.  */
13259
13260 int
13261 main ()
13262 {
13263
13264   ;
13265   return 0;
13266 }
13267 _ACEOF
13268 rm -f conftest.$ac_objext
13269 if { (ac_try="$ac_compile"
13270 case "(($ac_try" in
13271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272   *) ac_try_echo=$ac_try;;
13273 esac
13274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13275 $as_echo "$ac_try_echo") >&5
13276   (eval "$ac_compile") 2>conftest.er1
13277   ac_status=$?
13278   grep -v '^ *+' conftest.er1 >conftest.err
13279   rm -f conftest.er1
13280   cat conftest.err >&5
13281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282   (exit $ac_status); } && {
13283          test -z "$ac_cxx_werror_flag" ||
13284          test ! -s conftest.err
13285        } && test -s conftest.$ac_objext; then
13286   ac_cv_prog_cxx_g=yes
13287 else
13288   $as_echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13290
13291         CXXFLAGS=""
13292       cat >conftest.$ac_ext <<_ACEOF
13293 /* confdefs.h.  */
13294 _ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h.  */
13298
13299 int
13300 main ()
13301 {
13302
13303   ;
13304   return 0;
13305 }
13306 _ACEOF
13307 rm -f conftest.$ac_objext
13308 if { (ac_try="$ac_compile"
13309 case "(($ac_try" in
13310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311   *) ac_try_echo=$ac_try;;
13312 esac
13313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13314 $as_echo "$ac_try_echo") >&5
13315   (eval "$ac_compile") 2>conftest.er1
13316   ac_status=$?
13317   grep -v '^ *+' conftest.er1 >conftest.err
13318   rm -f conftest.er1
13319   cat conftest.err >&5
13320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321   (exit $ac_status); } && {
13322          test -z "$ac_cxx_werror_flag" ||
13323          test ! -s conftest.err
13324        } && test -s conftest.$ac_objext; then
13325   :
13326 else
13327   $as_echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13329
13330         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13331          CXXFLAGS="-g"
13332          cat >conftest.$ac_ext <<_ACEOF
13333 /* confdefs.h.  */
13334 _ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h.  */
13338
13339 int
13340 main ()
13341 {
13342
13343   ;
13344   return 0;
13345 }
13346 _ACEOF
13347 rm -f conftest.$ac_objext
13348 if { (ac_try="$ac_compile"
13349 case "(($ac_try" in
13350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351   *) ac_try_echo=$ac_try;;
13352 esac
13353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13354 $as_echo "$ac_try_echo") >&5
13355   (eval "$ac_compile") 2>conftest.er1
13356   ac_status=$?
13357   grep -v '^ *+' conftest.er1 >conftest.err
13358   rm -f conftest.er1
13359   cat conftest.err >&5
13360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); } && {
13362          test -z "$ac_cxx_werror_flag" ||
13363          test ! -s conftest.err
13364        } && test -s conftest.$ac_objext; then
13365   ac_cv_prog_cxx_g=yes
13366 else
13367   $as_echo "$as_me: failed program was:" >&5
13368 sed 's/^/| /' conftest.$ac_ext >&5
13369
13370
13371 fi
13372
13373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13374 fi
13375
13376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13377 fi
13378
13379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13380    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13381 fi
13382 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13383 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13384 if test "$ac_test_CXXFLAGS" = set; then
13385   CXXFLAGS=$ac_save_CXXFLAGS
13386 elif test $ac_cv_prog_cxx_g = yes; then
13387   if test "$GXX" = yes; then
13388     CXXFLAGS="-g -O2"
13389   else
13390     CXXFLAGS="-g"
13391   fi
13392 else
13393   if test "$GXX" = yes; then
13394     CXXFLAGS="-O2"
13395   else
13396     CXXFLAGS=
13397   fi
13398 fi
13399 ac_ext=c
13400 ac_cpp='$CPP $CPPFLAGS'
13401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13404
13405 depcc="$CXX"  am_compiler_list=
13406
13407 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13408 $as_echo_n "checking dependency style of $depcc... " >&6; }
13409 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13410   $as_echo_n "(cached) " >&6
13411 else
13412   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13413   # We make a subdir and do the tests there.  Otherwise we can end up
13414   # making bogus files that we don't know about and never remove.  For
13415   # instance it was reported that on HP-UX the gcc test will end up
13416   # making a dummy file named `D' -- because `-MD' means `put the output
13417   # in D'.
13418   mkdir conftest.dir
13419   # Copy depcomp to subdir because otherwise we won't find it if we're
13420   # using a relative directory.
13421   cp "$am_depcomp" conftest.dir
13422   cd conftest.dir
13423   # We will build objects and dependencies in a subdirectory because
13424   # it helps to detect inapplicable dependency modes.  For instance
13425   # both Tru64's cc and ICC support -MD to output dependencies as a
13426   # side effect of compilation, but ICC will put the dependencies in
13427   # the current directory while Tru64 will put them in the object
13428   # directory.
13429   mkdir sub
13430
13431   am_cv_CXX_dependencies_compiler_type=none
13432   if test "$am_compiler_list" = ""; then
13433      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13434   fi
13435   am__universal=false
13436   case " $depcc " in #(
13437      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13438      esac
13439
13440   for depmode in $am_compiler_list; do
13441     # Setup a source with many dependencies, because some compilers
13442     # like to wrap large dependency lists on column 80 (with \), and
13443     # we should not choose a depcomp mode which is confused by this.
13444     #
13445     # We need to recreate these files for each test, as the compiler may
13446     # overwrite some of them when testing with obscure command lines.
13447     # This happens at least with the AIX C compiler.
13448     : > sub/conftest.c
13449     for i in 1 2 3 4 5 6; do
13450       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13451       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13452       # Solaris 8's {/usr,}/bin/sh.
13453       touch sub/conftst$i.h
13454     done
13455     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13456
13457     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13458     # mode.  It turns out that the SunPro C++ compiler does not properly
13459     # handle `-M -o', and we need to detect this.  Also, some Intel
13460     # versions had trouble with output in subdirs
13461     am__obj=sub/conftest.${OBJEXT-o}
13462     am__minus_obj="-o $am__obj"
13463     case $depmode in
13464     gcc)
13465       # This depmode causes a compiler race in universal mode.
13466       test "$am__universal" = false || continue
13467       ;;
13468     nosideeffect)
13469       # after this tag, mechanisms are not by side-effect, so they'll
13470       # only be used when explicitly requested
13471       if test "x$enable_dependency_tracking" = xyes; then
13472         continue
13473       else
13474         break
13475       fi
13476       ;;
13477     msvisualcpp | msvcmsys)
13478       # This compiler won't grok `-c -o', but also, the minuso test has
13479       # not run yet.  These depmodes are late enough in the game, and
13480       # so weak that their functioning should not be impacted.
13481       am__obj=conftest.${OBJEXT-o}
13482       am__minus_obj=
13483       ;;
13484     none) break ;;
13485     esac
13486     if depmode=$depmode \
13487        source=sub/conftest.c object=$am__obj \
13488        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13489        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13490          >/dev/null 2>conftest.err &&
13491        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13492        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13493        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13494        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13495       # icc doesn't choke on unknown options, it will just issue warnings
13496       # or remarks (even with -Werror).  So we grep stderr for any message
13497       # that says an option was ignored or not supported.
13498       # When given -MP, icc 7.0 and 7.1 complain thusly:
13499       #   icc: Command line warning: ignoring option '-M'; no argument required
13500       # The diagnosis changed in icc 8.0:
13501       #   icc: Command line remark: option '-MP' not supported
13502       if (grep 'ignoring option' conftest.err ||
13503           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13504         am_cv_CXX_dependencies_compiler_type=$depmode
13505         break
13506       fi
13507     fi
13508   done
13509
13510   cd ..
13511   rm -rf conftest.dir
13512 else
13513   am_cv_CXX_dependencies_compiler_type=none
13514 fi
13515
13516 fi
13517 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13518 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13519 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13520
13521  if
13522   test "x$enable_dependency_tracking" != xno \
13523   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13524   am__fastdepCXX_TRUE=
13525   am__fastdepCXX_FALSE='#'
13526 else
13527   am__fastdepCXX_TRUE='#'
13528   am__fastdepCXX_FALSE=
13529 fi
13530
13531
13532 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13533     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13534     (test "X$CXX" != "Xg++"))) ; then
13535   ac_ext=cpp
13536 ac_cpp='$CXXCPP $CPPFLAGS'
13537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13540 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13541 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13542 if test -z "$CXXCPP"; then
13543   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13544   $as_echo_n "(cached) " >&6
13545 else
13546       # Double quotes because CXXCPP needs to be expanded
13547     for CXXCPP in "$CXX -E" "/lib/cpp"
13548     do
13549       ac_preproc_ok=false
13550 for ac_cxx_preproc_warn_flag in '' yes
13551 do
13552   # Use a header file that comes with gcc, so configuring glibc
13553   # with a fresh cross-compiler works.
13554   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13555   # <limits.h> exists even on freestanding compilers.
13556   # On the NeXT, cc -E runs the code through the compiler's parser,
13557   # not just through cpp. "Syntax error" is here to catch this case.
13558   cat >conftest.$ac_ext <<_ACEOF
13559 /* confdefs.h.  */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h.  */
13564 #ifdef __STDC__
13565 # include <limits.h>
13566 #else
13567 # include <assert.h>
13568 #endif
13569                      Syntax error
13570 _ACEOF
13571 if { (ac_try="$ac_cpp conftest.$ac_ext"
13572 case "(($ac_try" in
13573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574   *) ac_try_echo=$ac_try;;
13575 esac
13576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13577 $as_echo "$ac_try_echo") >&5
13578   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13579   ac_status=$?
13580   grep -v '^ *+' conftest.er1 >conftest.err
13581   rm -f conftest.er1
13582   cat conftest.err >&5
13583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); } >/dev/null && {
13585          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13586          test ! -s conftest.err
13587        }; then
13588   :
13589 else
13590   $as_echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13592
13593   # Broken: fails on valid input.
13594 continue
13595 fi
13596
13597 rm -f conftest.err conftest.$ac_ext
13598
13599   # OK, works on sane cases.  Now check whether nonexistent headers
13600   # can be detected and how.
13601   cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h.  */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h.  */
13607 #include <ac_nonexistent.h>
13608 _ACEOF
13609 if { (ac_try="$ac_cpp conftest.$ac_ext"
13610 case "(($ac_try" in
13611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612   *) ac_try_echo=$ac_try;;
13613 esac
13614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13615 $as_echo "$ac_try_echo") >&5
13616   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13617   ac_status=$?
13618   grep -v '^ *+' conftest.er1 >conftest.err
13619   rm -f conftest.er1
13620   cat conftest.err >&5
13621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); } >/dev/null && {
13623          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13624          test ! -s conftest.err
13625        }; then
13626   # Broken: success on invalid input.
13627 continue
13628 else
13629   $as_echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13631
13632   # Passes both tests.
13633 ac_preproc_ok=:
13634 break
13635 fi
13636
13637 rm -f conftest.err conftest.$ac_ext
13638
13639 done
13640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13641 rm -f conftest.err conftest.$ac_ext
13642 if $ac_preproc_ok; then
13643   break
13644 fi
13645
13646     done
13647     ac_cv_prog_CXXCPP=$CXXCPP
13648
13649 fi
13650   CXXCPP=$ac_cv_prog_CXXCPP
13651 else
13652   ac_cv_prog_CXXCPP=$CXXCPP
13653 fi
13654 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
13655 $as_echo "$CXXCPP" >&6; }
13656 ac_preproc_ok=false
13657 for ac_cxx_preproc_warn_flag in '' yes
13658 do
13659   # Use a header file that comes with gcc, so configuring glibc
13660   # with a fresh cross-compiler works.
13661   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13662   # <limits.h> exists even on freestanding compilers.
13663   # On the NeXT, cc -E runs the code through the compiler's parser,
13664   # not just through cpp. "Syntax error" is here to catch this case.
13665   cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h.  */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h.  */
13671 #ifdef __STDC__
13672 # include <limits.h>
13673 #else
13674 # include <assert.h>
13675 #endif
13676                      Syntax error
13677 _ACEOF
13678 if { (ac_try="$ac_cpp conftest.$ac_ext"
13679 case "(($ac_try" in
13680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681   *) ac_try_echo=$ac_try;;
13682 esac
13683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13684 $as_echo "$ac_try_echo") >&5
13685   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13686   ac_status=$?
13687   grep -v '^ *+' conftest.er1 >conftest.err
13688   rm -f conftest.er1
13689   cat conftest.err >&5
13690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691   (exit $ac_status); } >/dev/null && {
13692          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13693          test ! -s conftest.err
13694        }; then
13695   :
13696 else
13697   $as_echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13699
13700   # Broken: fails on valid input.
13701 continue
13702 fi
13703
13704 rm -f conftest.err conftest.$ac_ext
13705
13706   # OK, works on sane cases.  Now check whether nonexistent headers
13707   # can be detected and how.
13708   cat >conftest.$ac_ext <<_ACEOF
13709 /* confdefs.h.  */
13710 _ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h.  */
13714 #include <ac_nonexistent.h>
13715 _ACEOF
13716 if { (ac_try="$ac_cpp conftest.$ac_ext"
13717 case "(($ac_try" in
13718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719   *) ac_try_echo=$ac_try;;
13720 esac
13721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13722 $as_echo "$ac_try_echo") >&5
13723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13724   ac_status=$?
13725   grep -v '^ *+' conftest.er1 >conftest.err
13726   rm -f conftest.er1
13727   cat conftest.err >&5
13728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); } >/dev/null && {
13730          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13731          test ! -s conftest.err
13732        }; then
13733   # Broken: success on invalid input.
13734 continue
13735 else
13736   $as_echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13738
13739   # Passes both tests.
13740 ac_preproc_ok=:
13741 break
13742 fi
13743
13744 rm -f conftest.err conftest.$ac_ext
13745
13746 done
13747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13748 rm -f conftest.err conftest.$ac_ext
13749 if $ac_preproc_ok; then
13750   :
13751 else
13752   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13754 _lt_caught_CXX_error=yes; }
13755 fi
13756
13757 ac_ext=c
13758 ac_cpp='$CPP $CPPFLAGS'
13759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13762
13763 else
13764   _lt_caught_CXX_error=yes
13765 fi
13766
13767
13768
13769
13770 ac_ext=cpp
13771 ac_cpp='$CXXCPP $CPPFLAGS'
13772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13775
13776 archive_cmds_need_lc_CXX=no
13777 allow_undefined_flag_CXX=
13778 always_export_symbols_CXX=no
13779 archive_expsym_cmds_CXX=
13780 compiler_needs_object_CXX=no
13781 export_dynamic_flag_spec_CXX=
13782 hardcode_direct_CXX=no
13783 hardcode_direct_absolute_CXX=no
13784 hardcode_libdir_flag_spec_CXX=
13785 hardcode_libdir_flag_spec_ld_CXX=
13786 hardcode_libdir_separator_CXX=
13787 hardcode_minus_L_CXX=no
13788 hardcode_shlibpath_var_CXX=unsupported
13789 hardcode_automatic_CXX=no
13790 inherit_rpath_CXX=no
13791 module_cmds_CXX=
13792 module_expsym_cmds_CXX=
13793 link_all_deplibs_CXX=unknown
13794 old_archive_cmds_CXX=$old_archive_cmds
13795 no_undefined_flag_CXX=
13796 whole_archive_flag_spec_CXX=
13797 enable_shared_with_static_runtimes_CXX=no
13798
13799 # Source file extension for C++ test sources.
13800 ac_ext=cpp
13801
13802 # Object file extension for compiled C++ test sources.
13803 objext=o
13804 objext_CXX=$objext
13805
13806 # No sense in running all these tests if we already determined that
13807 # the CXX compiler isn't working.  Some variables (like enable_shared)
13808 # are currently assumed to apply to all compilers on this platform,
13809 # and will be corrupted by setting them based on a non-working compiler.
13810 if test "$_lt_caught_CXX_error" != yes; then
13811   # Code to be used in simple compile tests
13812   lt_simple_compile_test_code="int some_variable = 0;"
13813
13814   # Code to be used in simple link tests
13815   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13816
13817   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13818
13819
13820
13821
13822
13823
13824 # If no C compiler was specified, use CC.
13825 LTCC=${LTCC-"$CC"}
13826
13827 # If no C compiler flags were specified, use CFLAGS.
13828 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13829
13830 # Allow CC to be a program name with arguments.
13831 compiler=$CC
13832
13833
13834   # save warnings/boilerplate of simple test code
13835   ac_outfile=conftest.$ac_objext
13836 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13837 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13838 _lt_compiler_boilerplate=`cat conftest.err`
13839 $RM conftest*
13840
13841   ac_outfile=conftest.$ac_objext
13842 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13843 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13844 _lt_linker_boilerplate=`cat conftest.err`
13845 $RM -r conftest*
13846
13847
13848   # Allow CC to be a program name with arguments.
13849   lt_save_CC=$CC
13850   lt_save_LD=$LD
13851   lt_save_GCC=$GCC
13852   GCC=$GXX
13853   lt_save_with_gnu_ld=$with_gnu_ld
13854   lt_save_path_LD=$lt_cv_path_LD
13855   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13856     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13857   else
13858     $as_unset lt_cv_prog_gnu_ld
13859   fi
13860   if test -n "${lt_cv_path_LDCXX+set}"; then
13861     lt_cv_path_LD=$lt_cv_path_LDCXX
13862   else
13863     $as_unset lt_cv_path_LD
13864   fi
13865   test -z "${LDCXX+set}" || LD=$LDCXX
13866   CC=${CXX-"c++"}
13867   compiler=$CC
13868   compiler_CXX=$CC
13869   for cc_temp in $compiler""; do
13870   case $cc_temp in
13871     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13872     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13873     \-*) ;;
13874     *) break;;
13875   esac
13876 done
13877 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13878
13879
13880   if test -n "$compiler"; then
13881     # We don't want -fno-exception when compiling C++ code, so set the
13882     # no_builtin_flag separately
13883     if test "$GXX" = yes; then
13884       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13885     else
13886       lt_prog_compiler_no_builtin_flag_CXX=
13887     fi
13888
13889     if test "$GXX" = yes; then
13890       # Set up default GNU C++ configuration
13891
13892
13893
13894 # Check whether --with-gnu-ld was given.
13895 if test "${with_gnu_ld+set}" = set; then
13896   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13897 else
13898   with_gnu_ld=no
13899 fi
13900
13901 ac_prog=ld
13902 if test "$GCC" = yes; then
13903   # Check if gcc -print-prog-name=ld gives a path.
13904   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13905 $as_echo_n "checking for ld used by $CC... " >&6; }
13906   case $host in
13907   *-*-mingw*)
13908     # gcc leaves a trailing carriage return which upsets mingw
13909     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13910   *)
13911     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13912   esac
13913   case $ac_prog in
13914     # Accept absolute paths.
13915     [\\/]* | ?:[\\/]*)
13916       re_direlt='/[^/][^/]*/\.\./'
13917       # Canonicalize the pathname of ld
13918       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13919       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13920         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13921       done
13922       test -z "$LD" && LD="$ac_prog"
13923       ;;
13924   "")
13925     # If it fails, then pretend we aren't using GCC.
13926     ac_prog=ld
13927     ;;
13928   *)
13929     # If it is relative, then search for the first ld in PATH.
13930     with_gnu_ld=unknown
13931     ;;
13932   esac
13933 elif test "$with_gnu_ld" = yes; then
13934   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13935 $as_echo_n "checking for GNU ld... " >&6; }
13936 else
13937   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13938 $as_echo_n "checking for non-GNU ld... " >&6; }
13939 fi
13940 if test "${lt_cv_path_LD+set}" = set; then
13941   $as_echo_n "(cached) " >&6
13942 else
13943   if test -z "$LD"; then
13944   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13945   for ac_dir in $PATH; do
13946     IFS="$lt_save_ifs"
13947     test -z "$ac_dir" && ac_dir=.
13948     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13949       lt_cv_path_LD="$ac_dir/$ac_prog"
13950       # Check to see if the program is GNU ld.  I'd rather use --version,
13951       # but apparently some variants of GNU ld only accept -v.
13952       # Break only if it was the GNU/non-GNU ld that we prefer.
13953       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13954       *GNU* | *'with BFD'*)
13955         test "$with_gnu_ld" != no && break
13956         ;;
13957       *)
13958         test "$with_gnu_ld" != yes && break
13959         ;;
13960       esac
13961     fi
13962   done
13963   IFS="$lt_save_ifs"
13964 else
13965   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13966 fi
13967 fi
13968
13969 LD="$lt_cv_path_LD"
13970 if test -n "$LD"; then
13971   { $as_echo "$as_me:$LINENO: result: $LD" >&5
13972 $as_echo "$LD" >&6; }
13973 else
13974   { $as_echo "$as_me:$LINENO: result: no" >&5
13975 $as_echo "no" >&6; }
13976 fi
13977 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13978 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13979    { (exit 1); exit 1; }; }
13980 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13981 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13982 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13983   $as_echo_n "(cached) " >&6
13984 else
13985   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13986 case `$LD -v 2>&1 </dev/null` in
13987 *GNU* | *'with BFD'*)
13988   lt_cv_prog_gnu_ld=yes
13989   ;;
13990 *)
13991   lt_cv_prog_gnu_ld=no
13992   ;;
13993 esac
13994 fi
13995 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13996 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13997 with_gnu_ld=$lt_cv_prog_gnu_ld
13998
13999
14000
14001
14002
14003
14004
14005       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14006       # archiving commands below assume that GNU ld is being used.
14007       if test "$with_gnu_ld" = yes; then
14008         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14009         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'
14010
14011         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14012         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14013
14014         # If archive_cmds runs LD, not CC, wlarc should be empty
14015         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14016         #     investigate it a little bit more. (MM)
14017         wlarc='${wl}'
14018
14019         # ancient GNU ld didn't support --whole-archive et. al.
14020         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14021           $GREP 'no-whole-archive' > /dev/null; then
14022           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14023         else
14024           whole_archive_flag_spec_CXX=
14025         fi
14026       else
14027         with_gnu_ld=no
14028         wlarc=
14029
14030         # A generic and very simple default shared library creation
14031         # command for GNU C++ for the case where it uses the native
14032         # linker, instead of GNU ld.  If possible, this setting should
14033         # overridden to take advantage of the native linker features on
14034         # the platform it is being used on.
14035         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14036       fi
14037
14038       # Commands to make compiler produce verbose output that lists
14039       # what "hidden" libraries, object files and flags are used when
14040       # linking a shared library.
14041       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14042
14043     else
14044       GXX=no
14045       with_gnu_ld=no
14046       wlarc=
14047     fi
14048
14049     # PORTME: fill in a description of your system's C++ link characteristics
14050     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14051 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14052     ld_shlibs_CXX=yes
14053     case $host_os in
14054       aix3*)
14055         # FIXME: insert proper C++ library support
14056         ld_shlibs_CXX=no
14057         ;;
14058       aix[4-9]*)
14059         if test "$host_cpu" = ia64; then
14060           # On IA64, the linker does run time linking by default, so we don't
14061           # have to do anything special.
14062           aix_use_runtimelinking=no
14063           exp_sym_flag='-Bexport'
14064           no_entry_flag=""
14065         else
14066           aix_use_runtimelinking=no
14067
14068           # Test if we are trying to use run time linking or normal
14069           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14070           # need to do runtime linking.
14071           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14072             for ld_flag in $LDFLAGS; do
14073               case $ld_flag in
14074               *-brtl*)
14075                 aix_use_runtimelinking=yes
14076                 break
14077                 ;;
14078               esac
14079             done
14080             ;;
14081           esac
14082
14083           exp_sym_flag='-bexport'
14084           no_entry_flag='-bnoentry'
14085         fi
14086
14087         # When large executables or shared objects are built, AIX ld can
14088         # have problems creating the table of contents.  If linking a library
14089         # or program results in "error TOC overflow" add -mminimal-toc to
14090         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14091         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14092
14093         archive_cmds_CXX=''
14094         hardcode_direct_CXX=yes
14095         hardcode_direct_absolute_CXX=yes
14096         hardcode_libdir_separator_CXX=':'
14097         link_all_deplibs_CXX=yes
14098         file_list_spec_CXX='${wl}-f,'
14099
14100         if test "$GXX" = yes; then
14101           case $host_os in aix4.[012]|aix4.[012].*)
14102           # We only want to do this on AIX 4.2 and lower, the check
14103           # below for broken collect2 doesn't work under 4.3+
14104           collect2name=`${CC} -print-prog-name=collect2`
14105           if test -f "$collect2name" &&
14106              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14107           then
14108             # We have reworked collect2
14109             :
14110           else
14111             # We have old collect2
14112             hardcode_direct_CXX=unsupported
14113             # It fails to find uninstalled libraries when the uninstalled
14114             # path is not listed in the libpath.  Setting hardcode_minus_L
14115             # to unsupported forces relinking
14116             hardcode_minus_L_CXX=yes
14117             hardcode_libdir_flag_spec_CXX='-L$libdir'
14118             hardcode_libdir_separator_CXX=
14119           fi
14120           esac
14121           shared_flag='-shared'
14122           if test "$aix_use_runtimelinking" = yes; then
14123             shared_flag="$shared_flag "'${wl}-G'
14124           fi
14125         else
14126           # not using gcc
14127           if test "$host_cpu" = ia64; then
14128           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14129           # chokes on -Wl,-G. The following line is correct:
14130           shared_flag='-G'
14131           else
14132             if test "$aix_use_runtimelinking" = yes; then
14133               shared_flag='${wl}-G'
14134             else
14135               shared_flag='${wl}-bM:SRE'
14136             fi
14137           fi
14138         fi
14139
14140         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14141         # It seems that -bexpall does not export symbols beginning with
14142         # underscore (_), so it is better to generate a list of symbols to
14143         # export.
14144         always_export_symbols_CXX=yes
14145         if test "$aix_use_runtimelinking" = yes; then
14146           # Warning - without using the other runtime loading flags (-brtl),
14147           # -berok will link without error, but may produce a broken library.
14148           allow_undefined_flag_CXX='-berok'
14149           # Determine the default libpath from the value encoded in an empty
14150           # executable.
14151           cat >conftest.$ac_ext <<_ACEOF
14152 /* confdefs.h.  */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h.  */
14157
14158 int
14159 main ()
14160 {
14161
14162   ;
14163   return 0;
14164 }
14165 _ACEOF
14166 rm -f conftest.$ac_objext conftest$ac_exeext
14167 if { (ac_try="$ac_link"
14168 case "(($ac_try" in
14169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170   *) ac_try_echo=$ac_try;;
14171 esac
14172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14173 $as_echo "$ac_try_echo") >&5
14174   (eval "$ac_link") 2>conftest.er1
14175   ac_status=$?
14176   grep -v '^ *+' conftest.er1 >conftest.err
14177   rm -f conftest.er1
14178   cat conftest.err >&5
14179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180   (exit $ac_status); } && {
14181          test -z "$ac_cxx_werror_flag" ||
14182          test ! -s conftest.err
14183        } && test -s conftest$ac_exeext && {
14184          test "$cross_compiling" = yes ||
14185          $as_test_x conftest$ac_exeext
14186        }; then
14187
14188 lt_aix_libpath_sed='
14189     /Import File Strings/,/^$/ {
14190         /^0/ {
14191             s/^0  *\(.*\)$/\1/
14192             p
14193         }
14194     }'
14195 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14196 # Check for a 64-bit object if we didn't find anything.
14197 if test -z "$aix_libpath"; then
14198   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14199 fi
14200 else
14201   $as_echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14203
14204
14205 fi
14206
14207 rm -rf conftest.dSYM
14208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14209       conftest$ac_exeext conftest.$ac_ext
14210 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14211
14212           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14213
14214           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"
14215         else
14216           if test "$host_cpu" = ia64; then
14217             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14218             allow_undefined_flag_CXX="-z nodefs"
14219             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"
14220           else
14221             # Determine the default libpath from the value encoded in an
14222             # empty executable.
14223             cat >conftest.$ac_ext <<_ACEOF
14224 /* confdefs.h.  */
14225 _ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h.  */
14229
14230 int
14231 main ()
14232 {
14233
14234   ;
14235   return 0;
14236 }
14237 _ACEOF
14238 rm -f conftest.$ac_objext conftest$ac_exeext
14239 if { (ac_try="$ac_link"
14240 case "(($ac_try" in
14241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242   *) ac_try_echo=$ac_try;;
14243 esac
14244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14245 $as_echo "$ac_try_echo") >&5
14246   (eval "$ac_link") 2>conftest.er1
14247   ac_status=$?
14248   grep -v '^ *+' conftest.er1 >conftest.err
14249   rm -f conftest.er1
14250   cat conftest.err >&5
14251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252   (exit $ac_status); } && {
14253          test -z "$ac_cxx_werror_flag" ||
14254          test ! -s conftest.err
14255        } && test -s conftest$ac_exeext && {
14256          test "$cross_compiling" = yes ||
14257          $as_test_x conftest$ac_exeext
14258        }; then
14259
14260 lt_aix_libpath_sed='
14261     /Import File Strings/,/^$/ {
14262         /^0/ {
14263             s/^0  *\(.*\)$/\1/
14264             p
14265         }
14266     }'
14267 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14268 # Check for a 64-bit object if we didn't find anything.
14269 if test -z "$aix_libpath"; then
14270   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14271 fi
14272 else
14273   $as_echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14275
14276
14277 fi
14278
14279 rm -rf conftest.dSYM
14280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14281       conftest$ac_exeext conftest.$ac_ext
14282 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14283
14284             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14285             # Warning - without using the other run time loading flags,
14286             # -berok will link without error, but may produce a broken library.
14287             no_undefined_flag_CXX=' ${wl}-bernotok'
14288             allow_undefined_flag_CXX=' ${wl}-berok'
14289             # Exported symbols can be pulled into shared objects from archives
14290             whole_archive_flag_spec_CXX='$convenience'
14291             archive_cmds_need_lc_CXX=yes
14292             # This is similar to how AIX traditionally builds its shared
14293             # libraries.
14294             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'
14295           fi
14296         fi
14297         ;;
14298
14299       beos*)
14300         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14301           allow_undefined_flag_CXX=unsupported
14302           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14303           # support --undefined.  This deserves some investigation.  FIXME
14304           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14305         else
14306           ld_shlibs_CXX=no
14307         fi
14308         ;;
14309
14310       chorus*)
14311         case $cc_basename in
14312           *)
14313           # FIXME: insert proper C++ library support
14314           ld_shlibs_CXX=no
14315           ;;
14316         esac
14317         ;;
14318
14319       cygwin* | mingw* | pw32* | cegcc*)
14320         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14321         # as there is no search path for DLLs.
14322         hardcode_libdir_flag_spec_CXX='-L$libdir'
14323         allow_undefined_flag_CXX=unsupported
14324         always_export_symbols_CXX=no
14325         enable_shared_with_static_runtimes_CXX=yes
14326
14327         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14328           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'
14329           # If the export-symbols file already is a .def file (1st line
14330           # is EXPORTS), use it as is; otherwise, prepend...
14331           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14332             cp $export_symbols $output_objdir/$soname.def;
14333           else
14334             echo EXPORTS > $output_objdir/$soname.def;
14335             cat $export_symbols >> $output_objdir/$soname.def;
14336           fi~
14337           $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'
14338         else
14339           ld_shlibs_CXX=no
14340         fi
14341         ;;
14342       darwin* | rhapsody*)
14343
14344
14345   archive_cmds_need_lc_CXX=no
14346   hardcode_direct_CXX=no
14347   hardcode_automatic_CXX=yes
14348   hardcode_shlibpath_var_CXX=unsupported
14349   whole_archive_flag_spec_CXX=''
14350   link_all_deplibs_CXX=yes
14351   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14352   case $cc_basename in
14353      ifort*) _lt_dar_can_shared=yes ;;
14354      *) _lt_dar_can_shared=$GCC ;;
14355   esac
14356   if test "$_lt_dar_can_shared" = "yes"; then
14357     output_verbose_link_cmd=echo
14358     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}"
14359     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14360     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}"
14361     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}"
14362        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14363       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}"
14364       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}"
14365     fi
14366
14367   else
14368   ld_shlibs_CXX=no
14369   fi
14370
14371         ;;
14372
14373       dgux*)
14374         case $cc_basename in
14375           ec++*)
14376             # FIXME: insert proper C++ library support
14377             ld_shlibs_CXX=no
14378             ;;
14379           ghcx*)
14380             # Green Hills C++ Compiler
14381             # FIXME: insert proper C++ library support
14382             ld_shlibs_CXX=no
14383             ;;
14384           *)
14385             # FIXME: insert proper C++ library support
14386             ld_shlibs_CXX=no
14387             ;;
14388         esac
14389         ;;
14390
14391       freebsd[12]*)
14392         # C++ shared libraries reported to be fairly broken before
14393         # switch to ELF
14394         ld_shlibs_CXX=no
14395         ;;
14396
14397       freebsd-elf*)
14398         archive_cmds_need_lc_CXX=no
14399         ;;
14400
14401       freebsd* | dragonfly*)
14402         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14403         # conventions
14404         ld_shlibs_CXX=yes
14405         ;;
14406
14407       gnu*)
14408         ;;
14409
14410       hpux9*)
14411         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14412         hardcode_libdir_separator_CXX=:
14413         export_dynamic_flag_spec_CXX='${wl}-E'
14414         hardcode_direct_CXX=yes
14415         hardcode_minus_L_CXX=yes # Not in the search PATH,
14416                                              # but as the default
14417                                              # location of the library.
14418
14419         case $cc_basename in
14420           CC*)
14421             # FIXME: insert proper C++ library support
14422             ld_shlibs_CXX=no
14423             ;;
14424           aCC*)
14425             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'
14426             # Commands to make compiler produce verbose output that lists
14427             # what "hidden" libraries, object files and flags are used when
14428             # linking a shared library.
14429             #
14430             # There doesn't appear to be a way to prevent this compiler from
14431             # explicitly linking system object files so we need to strip them
14432             # from the output so that they don't get included in the library
14433             # dependencies.
14434             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'
14435             ;;
14436           *)
14437             if test "$GXX" = yes; then
14438               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'
14439             else
14440               # FIXME: insert proper C++ library support
14441               ld_shlibs_CXX=no
14442             fi
14443             ;;
14444         esac
14445         ;;
14446
14447       hpux10*|hpux11*)
14448         if test $with_gnu_ld = no; then
14449           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14450           hardcode_libdir_separator_CXX=:
14451
14452           case $host_cpu in
14453             hppa*64*|ia64*)
14454               ;;
14455             *)
14456               export_dynamic_flag_spec_CXX='${wl}-E'
14457               ;;
14458           esac
14459         fi
14460         case $host_cpu in
14461           hppa*64*|ia64*)
14462             hardcode_direct_CXX=no
14463             hardcode_shlibpath_var_CXX=no
14464             ;;
14465           *)
14466             hardcode_direct_CXX=yes
14467             hardcode_direct_absolute_CXX=yes
14468             hardcode_minus_L_CXX=yes # Not in the search PATH,
14469                                                  # but as the default
14470                                                  # location of the library.
14471             ;;
14472         esac
14473
14474         case $cc_basename in
14475           CC*)
14476             # FIXME: insert proper C++ library support
14477             ld_shlibs_CXX=no
14478             ;;
14479           aCC*)
14480             case $host_cpu in
14481               hppa*64*)
14482                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14483                 ;;
14484               ia64*)
14485                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14486                 ;;
14487               *)
14488                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14489                 ;;
14490             esac
14491             # Commands to make compiler produce verbose output that lists
14492             # what "hidden" libraries, object files and flags are used when
14493             # linking a shared library.
14494             #
14495             # There doesn't appear to be a way to prevent this compiler from
14496             # explicitly linking system object files so we need to strip them
14497             # from the output so that they don't get included in the library
14498             # dependencies.
14499             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'
14500             ;;
14501           *)
14502             if test "$GXX" = yes; then
14503               if test $with_gnu_ld = no; then
14504                 case $host_cpu in
14505                   hppa*64*)
14506                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14507                     ;;
14508                   ia64*)
14509                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14510                     ;;
14511                   *)
14512                     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'
14513                     ;;
14514                 esac
14515               fi
14516             else
14517               # FIXME: insert proper C++ library support
14518               ld_shlibs_CXX=no
14519             fi
14520             ;;
14521         esac
14522         ;;
14523
14524       interix[3-9]*)
14525         hardcode_direct_CXX=no
14526         hardcode_shlibpath_var_CXX=no
14527         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14528         export_dynamic_flag_spec_CXX='${wl}-E'
14529         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14530         # Instead, shared libraries are loaded at an image base (0x10000000 by
14531         # default) and relocated if they conflict, which is a slow very memory
14532         # consuming and fragmenting process.  To avoid this, we pick a random,
14533         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14534         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14535         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'
14536         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'
14537         ;;
14538       irix5* | irix6*)
14539         case $cc_basename in
14540           CC*)
14541             # SGI C++
14542             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'
14543
14544             # Archives containing C++ object files must be created using
14545             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14546             # necessary to make sure instantiated templates are included
14547             # in the archive.
14548             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14549             ;;
14550           *)
14551             if test "$GXX" = yes; then
14552               if test "$with_gnu_ld" = no; then
14553                 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'
14554               else
14555                 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'
14556               fi
14557             fi
14558             link_all_deplibs_CXX=yes
14559             ;;
14560         esac
14561         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14562         hardcode_libdir_separator_CXX=:
14563         inherit_rpath_CXX=yes
14564         ;;
14565
14566       linux* | k*bsd*-gnu)
14567         case $cc_basename in
14568           KCC*)
14569             # Kuck and Associates, Inc. (KAI) C++ Compiler
14570
14571             # KCC will only create a shared library if the output file
14572             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14573             # to its proper name (with version) after linking.
14574             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'
14575             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'
14576             # Commands to make compiler produce verbose output that lists
14577             # what "hidden" libraries, object files and flags are used when
14578             # linking a shared library.
14579             #
14580             # There doesn't appear to be a way to prevent this compiler from
14581             # explicitly linking system object files so we need to strip them
14582             # from the output so that they don't get included in the library
14583             # dependencies.
14584             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'
14585
14586             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14587             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14588
14589             # Archives containing C++ object files must be created using
14590             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14591             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14592             ;;
14593           icpc* | ecpc* )
14594             # Intel C++
14595             with_gnu_ld=yes
14596             # version 8.0 and above of icpc choke on multiply defined symbols
14597             # if we add $predep_objects and $postdep_objects, however 7.1 and
14598             # earlier do not add the objects themselves.
14599             case `$CC -V 2>&1` in
14600               *"Version 7."*)
14601                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14602                 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'
14603                 ;;
14604               *)  # Version 8.0 or newer
14605                 tmp_idyn=
14606                 case $host_cpu in
14607                   ia64*) tmp_idyn=' -i_dynamic';;
14608                 esac
14609                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14610                 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'
14611                 ;;
14612             esac
14613             archive_cmds_need_lc_CXX=no
14614             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14615             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14616             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14617             ;;
14618           pgCC* | pgcpp*)
14619             # Portland Group C++ compiler
14620             case `$CC -V` in
14621             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14622               prelink_cmds_CXX='tpldir=Template.dir~
14623                 rm -rf $tpldir~
14624                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14625                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14626               old_archive_cmds_CXX='tpldir=Template.dir~
14627                 rm -rf $tpldir~
14628                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14629                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14630                 $RANLIB $oldlib'
14631               archive_cmds_CXX='tpldir=Template.dir~
14632                 rm -rf $tpldir~
14633                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14634                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14635               archive_expsym_cmds_CXX='tpldir=Template.dir~
14636                 rm -rf $tpldir~
14637                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14638                 $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'
14639               ;;
14640             *) # Version 6 will use weak symbols
14641               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14642               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'
14643               ;;
14644             esac
14645
14646             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14647             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14648             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'
14649             ;;
14650           cxx*)
14651             # Compaq C++
14652             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14653             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'
14654
14655             runpath_var=LD_RUN_PATH
14656             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14657             hardcode_libdir_separator_CXX=:
14658
14659             # Commands to make compiler produce verbose output that lists
14660             # what "hidden" libraries, object files and flags are used when
14661             # linking a shared library.
14662             #
14663             # There doesn't appear to be a way to prevent this compiler from
14664             # explicitly linking system object files so we need to strip them
14665             # from the output so that they don't get included in the library
14666             # dependencies.
14667             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'
14668             ;;
14669           xl*)
14670             # IBM XL 8.0 on PPC, with GNU ld
14671             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14672             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14673             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14674             if test "x$supports_anon_versioning" = xyes; then
14675               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14676                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14677                 echo "local: *; };" >> $output_objdir/$libname.ver~
14678                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14679             fi
14680             ;;
14681           *)
14682             case `$CC -V 2>&1 | sed 5q` in
14683             *Sun\ C*)
14684               # Sun C++ 5.9
14685               no_undefined_flag_CXX=' -zdefs'
14686               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14687               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'
14688               hardcode_libdir_flag_spec_CXX='-R$libdir'
14689               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'
14690               compiler_needs_object_CXX=yes
14691
14692               # Not sure whether something based on
14693               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14694               # would be better.
14695               output_verbose_link_cmd='echo'
14696
14697               # Archives containing C++ object files must be created using
14698               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14699               # necessary to make sure instantiated templates are included
14700               # in the archive.
14701               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14702               ;;
14703             esac
14704             ;;
14705         esac
14706         ;;
14707
14708       lynxos*)
14709         # FIXME: insert proper C++ library support
14710         ld_shlibs_CXX=no
14711         ;;
14712
14713       m88k*)
14714         # FIXME: insert proper C++ library support
14715         ld_shlibs_CXX=no
14716         ;;
14717
14718       mvs*)
14719         case $cc_basename in
14720           cxx*)
14721             # FIXME: insert proper C++ library support
14722             ld_shlibs_CXX=no
14723             ;;
14724           *)
14725             # FIXME: insert proper C++ library support
14726             ld_shlibs_CXX=no
14727             ;;
14728         esac
14729         ;;
14730
14731       netbsd*)
14732         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14733           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14734           wlarc=
14735           hardcode_libdir_flag_spec_CXX='-R$libdir'
14736           hardcode_direct_CXX=yes
14737           hardcode_shlibpath_var_CXX=no
14738         fi
14739         # Workaround some broken pre-1.5 toolchains
14740         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14741         ;;
14742
14743       *nto* | *qnx*)
14744         ld_shlibs_CXX=yes
14745         ;;
14746
14747       openbsd2*)
14748         # C++ shared libraries are fairly broken
14749         ld_shlibs_CXX=no
14750         ;;
14751
14752       openbsd*)
14753         if test -f /usr/libexec/ld.so; then
14754           hardcode_direct_CXX=yes
14755           hardcode_shlibpath_var_CXX=no
14756           hardcode_direct_absolute_CXX=yes
14757           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14758           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14759           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14760             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14761             export_dynamic_flag_spec_CXX='${wl}-E'
14762             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14763           fi
14764           output_verbose_link_cmd=echo
14765         else
14766           ld_shlibs_CXX=no
14767         fi
14768         ;;
14769
14770       osf3* | osf4* | osf5*)
14771         case $cc_basename in
14772           KCC*)
14773             # Kuck and Associates, Inc. (KAI) C++ Compiler
14774
14775             # KCC will only create a shared library if the output file
14776             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14777             # to its proper name (with version) after linking.
14778             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'
14779
14780             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14781             hardcode_libdir_separator_CXX=:
14782
14783             # Archives containing C++ object files must be created using
14784             # the KAI C++ compiler.
14785             case $host in
14786               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14787               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14788             esac
14789             ;;
14790           RCC*)
14791             # Rational C++ 2.4.1
14792             # FIXME: insert proper C++ library support
14793             ld_shlibs_CXX=no
14794             ;;
14795           cxx*)
14796             case $host in
14797               osf3*)
14798                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14799                 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'
14800                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14801                 ;;
14802               *)
14803                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14804                 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'
14805                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14806                   echo "-hidden">> $lib.exp~
14807                   $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~
14808                   $RM $lib.exp'
14809                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14810                 ;;
14811             esac
14812
14813             hardcode_libdir_separator_CXX=:
14814
14815             # Commands to make compiler produce verbose output that lists
14816             # what "hidden" libraries, object files and flags are used when
14817             # linking a shared library.
14818             #
14819             # There doesn't appear to be a way to prevent this compiler from
14820             # explicitly linking system object files so we need to strip them
14821             # from the output so that they don't get included in the library
14822             # dependencies.
14823             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'
14824             ;;
14825           *)
14826             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14827               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14828               case $host in
14829                 osf3*)
14830                   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'
14831                   ;;
14832                 *)
14833                   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'
14834                   ;;
14835               esac
14836
14837               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14838               hardcode_libdir_separator_CXX=:
14839
14840               # Commands to make compiler produce verbose output that lists
14841               # what "hidden" libraries, object files and flags are used when
14842               # linking a shared library.
14843               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14844
14845             else
14846               # FIXME: insert proper C++ library support
14847               ld_shlibs_CXX=no
14848             fi
14849             ;;
14850         esac
14851         ;;
14852
14853       psos*)
14854         # FIXME: insert proper C++ library support
14855         ld_shlibs_CXX=no
14856         ;;
14857
14858       sunos4*)
14859         case $cc_basename in
14860           CC*)
14861             # Sun C++ 4.x
14862             # FIXME: insert proper C++ library support
14863             ld_shlibs_CXX=no
14864             ;;
14865           lcc*)
14866             # Lucid
14867             # FIXME: insert proper C++ library support
14868             ld_shlibs_CXX=no
14869             ;;
14870           *)
14871             # FIXME: insert proper C++ library support
14872             ld_shlibs_CXX=no
14873             ;;
14874         esac
14875         ;;
14876
14877       solaris*)
14878         case $cc_basename in
14879           CC*)
14880             # Sun C++ 4.2, 5.x and Centerline C++
14881             archive_cmds_need_lc_CXX=yes
14882             no_undefined_flag_CXX=' -zdefs'
14883             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14884             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14885               $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'
14886
14887             hardcode_libdir_flag_spec_CXX='-R$libdir'
14888             hardcode_shlibpath_var_CXX=no
14889             case $host_os in
14890               solaris2.[0-5] | solaris2.[0-5].*) ;;
14891               *)
14892                 # The compiler driver will combine and reorder linker options,
14893                 # but understands `-z linker_flag'.
14894                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14895                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14896                 ;;
14897             esac
14898             link_all_deplibs_CXX=yes
14899
14900             output_verbose_link_cmd='echo'
14901
14902             # Archives containing C++ object files must be created using
14903             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14904             # necessary to make sure instantiated templates are included
14905             # in the archive.
14906             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14907             ;;
14908           gcx*)
14909             # Green Hills C++ Compiler
14910             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14911
14912             # The C++ compiler must be used to create the archive.
14913             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14914             ;;
14915           *)
14916             # GNU C++ compiler with Solaris linker
14917             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14918               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14919               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14920                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14921                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14922                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14923
14924                 # Commands to make compiler produce verbose output that lists
14925                 # what "hidden" libraries, object files and flags are used when
14926                 # linking a shared library.
14927                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14928               else
14929                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14930                 # platform.
14931                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14932                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14933                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14934
14935                 # Commands to make compiler produce verbose output that lists
14936                 # what "hidden" libraries, object files and flags are used when
14937                 # linking a shared library.
14938                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14939               fi
14940
14941               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14942               case $host_os in
14943                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14944                 *)
14945                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14946                   ;;
14947               esac
14948             fi
14949             ;;
14950         esac
14951         ;;
14952
14953     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14954       no_undefined_flag_CXX='${wl}-z,text'
14955       archive_cmds_need_lc_CXX=no
14956       hardcode_shlibpath_var_CXX=no
14957       runpath_var='LD_RUN_PATH'
14958
14959       case $cc_basename in
14960         CC*)
14961           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14962           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14963           ;;
14964         *)
14965           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14966           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14967           ;;
14968       esac
14969       ;;
14970
14971       sysv5* | sco3.2v5* | sco5v6*)
14972         # Note: We can NOT use -z defs as we might desire, because we do not
14973         # link with -lc, and that would cause any symbols used from libc to
14974         # always be unresolved, which means just about no library would
14975         # ever link correctly.  If we're not using GNU ld we use -z text
14976         # though, which does catch some bad symbols but isn't as heavy-handed
14977         # as -z defs.
14978         no_undefined_flag_CXX='${wl}-z,text'
14979         allow_undefined_flag_CXX='${wl}-z,nodefs'
14980         archive_cmds_need_lc_CXX=no
14981         hardcode_shlibpath_var_CXX=no
14982         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14983         hardcode_libdir_separator_CXX=':'
14984         link_all_deplibs_CXX=yes
14985         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14986         runpath_var='LD_RUN_PATH'
14987
14988         case $cc_basename in
14989           CC*)
14990             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14991             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992             ;;
14993           *)
14994             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14995             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14996             ;;
14997         esac
14998       ;;
14999
15000       tandem*)
15001         case $cc_basename in
15002           NCC*)
15003             # NonStop-UX NCC 3.20
15004             # FIXME: insert proper C++ library support
15005             ld_shlibs_CXX=no
15006             ;;
15007           *)
15008             # FIXME: insert proper C++ library support
15009             ld_shlibs_CXX=no
15010             ;;
15011         esac
15012         ;;
15013
15014       vxworks*)
15015         # FIXME: insert proper C++ library support
15016         ld_shlibs_CXX=no
15017         ;;
15018
15019       *)
15020         # FIXME: insert proper C++ library support
15021         ld_shlibs_CXX=no
15022         ;;
15023     esac
15024
15025     { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15026 $as_echo "$ld_shlibs_CXX" >&6; }
15027     test "$ld_shlibs_CXX" = no && can_build_shared=no
15028
15029     GCC_CXX="$GXX"
15030     LD_CXX="$LD"
15031
15032     ## CAVEAT EMPTOR:
15033     ## There is no encapsulation within the following macros, do not change
15034     ## the running order or otherwise move them around unless you know exactly
15035     ## what you are doing...
15036     # Dependencies to place before and after the object being linked:
15037 predep_objects_CXX=
15038 postdep_objects_CXX=
15039 predeps_CXX=
15040 postdeps_CXX=
15041 compiler_lib_search_path_CXX=
15042
15043 cat > conftest.$ac_ext <<_LT_EOF
15044 class Foo
15045 {
15046 public:
15047   Foo (void) { a = 0; }
15048 private:
15049   int a;
15050 };
15051 _LT_EOF
15052
15053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15054   (eval $ac_compile) 2>&5
15055   ac_status=$?
15056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057   (exit $ac_status); }; then
15058   # Parse the compiler output and extract the necessary
15059   # objects, libraries and library flags.
15060
15061   # Sentinel used to keep track of whether or not we are before
15062   # the conftest object file.
15063   pre_test_object_deps_done=no
15064
15065   for p in `eval "$output_verbose_link_cmd"`; do
15066     case $p in
15067
15068     -L* | -R* | -l*)
15069        # Some compilers place space between "-{L,R}" and the path.
15070        # Remove the space.
15071        if test $p = "-L" ||
15072           test $p = "-R"; then
15073          prev=$p
15074          continue
15075        else
15076          prev=
15077        fi
15078
15079        if test "$pre_test_object_deps_done" = no; then
15080          case $p in
15081          -L* | -R*)
15082            # Internal compiler library paths should come after those
15083            # provided the user.  The postdeps already come after the
15084            # user supplied libs so there is no need to process them.
15085            if test -z "$compiler_lib_search_path_CXX"; then
15086              compiler_lib_search_path_CXX="${prev}${p}"
15087            else
15088              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15089            fi
15090            ;;
15091          # The "-l" case would never come before the object being
15092          # linked, so don't bother handling this case.
15093          esac
15094        else
15095          if test -z "$postdeps_CXX"; then
15096            postdeps_CXX="${prev}${p}"
15097          else
15098            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15099          fi
15100        fi
15101        ;;
15102
15103     *.$objext)
15104        # This assumes that the test object file only shows up
15105        # once in the compiler output.
15106        if test "$p" = "conftest.$objext"; then
15107          pre_test_object_deps_done=yes
15108          continue
15109        fi
15110
15111        if test "$pre_test_object_deps_done" = no; then
15112          if test -z "$predep_objects_CXX"; then
15113            predep_objects_CXX="$p"
15114          else
15115            predep_objects_CXX="$predep_objects_CXX $p"
15116          fi
15117        else
15118          if test -z "$postdep_objects_CXX"; then
15119            postdep_objects_CXX="$p"
15120          else
15121            postdep_objects_CXX="$postdep_objects_CXX $p"
15122          fi
15123        fi
15124        ;;
15125
15126     *) ;; # Ignore the rest.
15127
15128     esac
15129   done
15130
15131   # Clean up.
15132   rm -f a.out a.exe
15133 else
15134   echo "libtool.m4: error: problem compiling CXX test program"
15135 fi
15136
15137 $RM -f confest.$objext
15138
15139 # PORTME: override above test on systems where it is broken
15140 case $host_os in
15141 interix[3-9]*)
15142   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15143   # hack all around it, let's just trust "g++" to DTRT.
15144   predep_objects_CXX=
15145   postdep_objects_CXX=
15146   postdeps_CXX=
15147   ;;
15148
15149 linux*)
15150   case `$CC -V 2>&1 | sed 5q` in
15151   *Sun\ C*)
15152     # Sun C++ 5.9
15153
15154     # The more standards-conforming stlport4 library is
15155     # incompatible with the Cstd library. Avoid specifying
15156     # it if it's in CXXFLAGS. Ignore libCrun as
15157     # -library=stlport4 depends on it.
15158     case " $CXX $CXXFLAGS " in
15159     *" -library=stlport4 "*)
15160       solaris_use_stlport4=yes
15161       ;;
15162     esac
15163
15164     if test "$solaris_use_stlport4" != yes; then
15165       postdeps_CXX='-library=Cstd -library=Crun'
15166     fi
15167     ;;
15168   esac
15169   ;;
15170
15171 solaris*)
15172   case $cc_basename in
15173   CC*)
15174     # The more standards-conforming stlport4 library is
15175     # incompatible with the Cstd library. Avoid specifying
15176     # it if it's in CXXFLAGS. Ignore libCrun as
15177     # -library=stlport4 depends on it.
15178     case " $CXX $CXXFLAGS " in
15179     *" -library=stlport4 "*)
15180       solaris_use_stlport4=yes
15181       ;;
15182     esac
15183
15184     # Adding this requires a known-good setup of shared libraries for
15185     # Sun compiler versions before 5.6, else PIC objects from an old
15186     # archive will be linked into the output, leading to subtle bugs.
15187     if test "$solaris_use_stlport4" != yes; then
15188       postdeps_CXX='-library=Cstd -library=Crun'
15189     fi
15190     ;;
15191   esac
15192   ;;
15193 esac
15194
15195
15196 case " $postdeps_CXX " in
15197 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15198 esac
15199  compiler_lib_search_dirs_CXX=
15200 if test -n "${compiler_lib_search_path_CXX}"; then
15201  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15202 fi
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234     lt_prog_compiler_wl_CXX=
15235 lt_prog_compiler_pic_CXX=
15236 lt_prog_compiler_static_CXX=
15237
15238 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15239 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15240
15241   # C++ specific cases for pic, static, wl, etc.
15242   if test "$GXX" = yes; then
15243     lt_prog_compiler_wl_CXX='-Wl,'
15244     lt_prog_compiler_static_CXX='-static'
15245
15246     case $host_os in
15247     aix*)
15248       # All AIX code is PIC.
15249       if test "$host_cpu" = ia64; then
15250         # AIX 5 now supports IA64 processor
15251         lt_prog_compiler_static_CXX='-Bstatic'
15252       fi
15253       ;;
15254
15255     amigaos*)
15256       case $host_cpu in
15257       powerpc)
15258             # see comment about AmigaOS4 .so support
15259             lt_prog_compiler_pic_CXX='-fPIC'
15260         ;;
15261       m68k)
15262             # FIXME: we need at least 68020 code to build shared libraries, but
15263             # adding the `-m68020' flag to GCC prevents building anything better,
15264             # like `-m68040'.
15265             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15266         ;;
15267       esac
15268       ;;
15269
15270     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15271       # PIC is the default for these OSes.
15272       ;;
15273     mingw* | cygwin* | os2* | pw32* | cegcc*)
15274       # This hack is so that the source file can tell whether it is being
15275       # built for inclusion in a dll (and should export symbols for example).
15276       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15277       # (--disable-auto-import) libraries
15278       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15279       ;;
15280     darwin* | rhapsody*)
15281       # PIC is the default on this platform
15282       # Common symbols not allowed in MH_DYLIB files
15283       lt_prog_compiler_pic_CXX='-fno-common'
15284       ;;
15285     *djgpp*)
15286       # DJGPP does not support shared libraries at all
15287       lt_prog_compiler_pic_CXX=
15288       ;;
15289     interix[3-9]*)
15290       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15291       # Instead, we relocate shared libraries at runtime.
15292       ;;
15293     sysv4*MP*)
15294       if test -d /usr/nec; then
15295         lt_prog_compiler_pic_CXX=-Kconform_pic
15296       fi
15297       ;;
15298     hpux*)
15299       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15300       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15301       # sets the default TLS model and affects inlining.
15302       case $host_cpu in
15303       hppa*64*)
15304         ;;
15305       *)
15306         lt_prog_compiler_pic_CXX='-fPIC'
15307         ;;
15308       esac
15309       ;;
15310     *qnx* | *nto*)
15311       # QNX uses GNU C++, but need to define -shared option too, otherwise
15312       # it will coredump.
15313       lt_prog_compiler_pic_CXX='-fPIC -shared'
15314       ;;
15315     *)
15316       lt_prog_compiler_pic_CXX='-fPIC'
15317       ;;
15318     esac
15319   else
15320     case $host_os in
15321       aix[4-9]*)
15322         # All AIX code is PIC.
15323         if test "$host_cpu" = ia64; then
15324           # AIX 5 now supports IA64 processor
15325           lt_prog_compiler_static_CXX='-Bstatic'
15326         else
15327           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15328         fi
15329         ;;
15330       chorus*)
15331         case $cc_basename in
15332         cxch68*)
15333           # Green Hills C++ Compiler
15334           # _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"
15335           ;;
15336         esac
15337         ;;
15338       dgux*)
15339         case $cc_basename in
15340           ec++*)
15341             lt_prog_compiler_pic_CXX='-KPIC'
15342             ;;
15343           ghcx*)
15344             # Green Hills C++ Compiler
15345             lt_prog_compiler_pic_CXX='-pic'
15346             ;;
15347           *)
15348             ;;
15349         esac
15350         ;;
15351       freebsd* | dragonfly*)
15352         # FreeBSD uses GNU C++
15353         ;;
15354       hpux9* | hpux10* | hpux11*)
15355         case $cc_basename in
15356           CC*)
15357             lt_prog_compiler_wl_CXX='-Wl,'
15358             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15359             if test "$host_cpu" != ia64; then
15360               lt_prog_compiler_pic_CXX='+Z'
15361             fi
15362             ;;
15363           aCC*)
15364             lt_prog_compiler_wl_CXX='-Wl,'
15365             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15366             case $host_cpu in
15367             hppa*64*|ia64*)
15368               # +Z the default
15369               ;;
15370             *)
15371               lt_prog_compiler_pic_CXX='+Z'
15372               ;;
15373             esac
15374             ;;
15375           *)
15376             ;;
15377         esac
15378         ;;
15379       interix*)
15380         # This is c89, which is MS Visual C++ (no shared libs)
15381         # Anyone wants to do a port?
15382         ;;
15383       irix5* | irix6* | nonstopux*)
15384         case $cc_basename in
15385           CC*)
15386             lt_prog_compiler_wl_CXX='-Wl,'
15387             lt_prog_compiler_static_CXX='-non_shared'
15388             # CC pic flag -KPIC is the default.
15389             ;;
15390           *)
15391             ;;
15392         esac
15393         ;;
15394       linux* | k*bsd*-gnu)
15395         case $cc_basename in
15396           KCC*)
15397             # KAI C++ Compiler
15398             lt_prog_compiler_wl_CXX='--backend -Wl,'
15399             lt_prog_compiler_pic_CXX='-fPIC'
15400             ;;
15401           ecpc* )
15402             # old Intel C++ for x86_64 which still supported -KPIC.
15403             lt_prog_compiler_wl_CXX='-Wl,'
15404             lt_prog_compiler_pic_CXX='-KPIC'
15405             lt_prog_compiler_static_CXX='-static'
15406             ;;
15407           icpc* )
15408             # Intel C++, used to be incompatible with GCC.
15409             # ICC 10 doesn't accept -KPIC any more.
15410             lt_prog_compiler_wl_CXX='-Wl,'
15411             lt_prog_compiler_pic_CXX='-fPIC'
15412             lt_prog_compiler_static_CXX='-static'
15413             ;;
15414           pgCC* | pgcpp*)
15415             # Portland Group C++ compiler
15416             lt_prog_compiler_wl_CXX='-Wl,'
15417             lt_prog_compiler_pic_CXX='-fpic'
15418             lt_prog_compiler_static_CXX='-Bstatic'
15419             ;;
15420           cxx*)
15421             # Compaq C++
15422             # Make sure the PIC flag is empty.  It appears that all Alpha
15423             # Linux and Compaq Tru64 Unix objects are PIC.
15424             lt_prog_compiler_pic_CXX=
15425             lt_prog_compiler_static_CXX='-non_shared'
15426             ;;
15427           xlc* | xlC*)
15428             # IBM XL 8.0 on PPC
15429             lt_prog_compiler_wl_CXX='-Wl,'
15430             lt_prog_compiler_pic_CXX='-qpic'
15431             lt_prog_compiler_static_CXX='-qstaticlink'
15432             ;;
15433           *)
15434             case `$CC -V 2>&1 | sed 5q` in
15435             *Sun\ C*)
15436               # Sun C++ 5.9
15437               lt_prog_compiler_pic_CXX='-KPIC'
15438               lt_prog_compiler_static_CXX='-Bstatic'
15439               lt_prog_compiler_wl_CXX='-Qoption ld '
15440               ;;
15441             esac
15442             ;;
15443         esac
15444         ;;
15445       lynxos*)
15446         ;;
15447       m88k*)
15448         ;;
15449       mvs*)
15450         case $cc_basename in
15451           cxx*)
15452             lt_prog_compiler_pic_CXX='-W c,exportall'
15453             ;;
15454           *)
15455             ;;
15456         esac
15457         ;;
15458       netbsd*)
15459         ;;
15460       *qnx* | *nto*)
15461         # QNX uses GNU C++, but need to define -shared option too, otherwise
15462         # it will coredump.
15463         lt_prog_compiler_pic_CXX='-fPIC -shared'
15464         ;;
15465       osf3* | osf4* | osf5*)
15466         case $cc_basename in
15467           KCC*)
15468             lt_prog_compiler_wl_CXX='--backend -Wl,'
15469             ;;
15470           RCC*)
15471             # Rational C++ 2.4.1
15472             lt_prog_compiler_pic_CXX='-pic'
15473             ;;
15474           cxx*)
15475             # Digital/Compaq C++
15476             lt_prog_compiler_wl_CXX='-Wl,'
15477             # Make sure the PIC flag is empty.  It appears that all Alpha
15478             # Linux and Compaq Tru64 Unix objects are PIC.
15479             lt_prog_compiler_pic_CXX=
15480             lt_prog_compiler_static_CXX='-non_shared'
15481             ;;
15482           *)
15483             ;;
15484         esac
15485         ;;
15486       psos*)
15487         ;;
15488       solaris*)
15489         case $cc_basename in
15490           CC*)
15491             # Sun C++ 4.2, 5.x and Centerline C++
15492             lt_prog_compiler_pic_CXX='-KPIC'
15493             lt_prog_compiler_static_CXX='-Bstatic'
15494             lt_prog_compiler_wl_CXX='-Qoption ld '
15495             ;;
15496           gcx*)
15497             # Green Hills C++ Compiler
15498             lt_prog_compiler_pic_CXX='-PIC'
15499             ;;
15500           *)
15501             ;;
15502         esac
15503         ;;
15504       sunos4*)
15505         case $cc_basename in
15506           CC*)
15507             # Sun C++ 4.x
15508             lt_prog_compiler_pic_CXX='-pic'
15509             lt_prog_compiler_static_CXX='-Bstatic'
15510             ;;
15511           lcc*)
15512             # Lucid
15513             lt_prog_compiler_pic_CXX='-pic'
15514             ;;
15515           *)
15516             ;;
15517         esac
15518         ;;
15519       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15520         case $cc_basename in
15521           CC*)
15522             lt_prog_compiler_wl_CXX='-Wl,'
15523             lt_prog_compiler_pic_CXX='-KPIC'
15524             lt_prog_compiler_static_CXX='-Bstatic'
15525             ;;
15526         esac
15527         ;;
15528       tandem*)
15529         case $cc_basename in
15530           NCC*)
15531             # NonStop-UX NCC 3.20
15532             lt_prog_compiler_pic_CXX='-KPIC'
15533             ;;
15534           *)
15535             ;;
15536         esac
15537         ;;
15538       vxworks*)
15539         ;;
15540       *)
15541         lt_prog_compiler_can_build_shared_CXX=no
15542         ;;
15543     esac
15544   fi
15545
15546 case $host_os in
15547   # For platforms which do not support PIC, -DPIC is meaningless:
15548   *djgpp*)
15549     lt_prog_compiler_pic_CXX=
15550     ;;
15551   *)
15552     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15553     ;;
15554 esac
15555 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15556 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15557
15558
15559
15560 #
15561 # Check to make sure the PIC flag actually works.
15562 #
15563 if test -n "$lt_prog_compiler_pic_CXX"; then
15564   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15565 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15566 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15567   $as_echo_n "(cached) " >&6
15568 else
15569   lt_cv_prog_compiler_pic_works_CXX=no
15570    ac_outfile=conftest.$ac_objext
15571    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15572    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15573    # Insert the option either (1) after the last *FLAGS variable, or
15574    # (2) before a word containing "conftest.", or (3) at the end.
15575    # Note that $ac_compile itself does not contain backslashes and begins
15576    # with a dollar sign (not a hyphen), so the echo should work correctly.
15577    # The option is referenced via a variable to avoid confusing sed.
15578    lt_compile=`echo "$ac_compile" | $SED \
15579    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15580    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15581    -e 's:$: $lt_compiler_flag:'`
15582    (eval echo "\"\$as_me:15582: $lt_compile\"" >&5)
15583    (eval "$lt_compile" 2>conftest.err)
15584    ac_status=$?
15585    cat conftest.err >&5
15586    echo "$as_me:15586: \$? = $ac_status" >&5
15587    if (exit $ac_status) && test -s "$ac_outfile"; then
15588      # The compiler can only warn and ignore the option if not recognized
15589      # So say no if there are warnings other than the usual output.
15590      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15591      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15592      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15593        lt_cv_prog_compiler_pic_works_CXX=yes
15594      fi
15595    fi
15596    $RM conftest*
15597
15598 fi
15599 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15600 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15601
15602 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15603     case $lt_prog_compiler_pic_CXX in
15604      "" | " "*) ;;
15605      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15606      esac
15607 else
15608     lt_prog_compiler_pic_CXX=
15609      lt_prog_compiler_can_build_shared_CXX=no
15610 fi
15611
15612 fi
15613
15614
15615
15616 #
15617 # Check to make sure the static flag actually works.
15618 #
15619 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15620 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15621 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15622 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15623   $as_echo_n "(cached) " >&6
15624 else
15625   lt_cv_prog_compiler_static_works_CXX=no
15626    save_LDFLAGS="$LDFLAGS"
15627    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15628    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15629    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15630      # The linker can only warn and ignore the option if not recognized
15631      # So say no if there are warnings
15632      if test -s conftest.err; then
15633        # Append any errors to the config.log.
15634        cat conftest.err 1>&5
15635        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15636        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15637        if diff conftest.exp conftest.er2 >/dev/null; then
15638          lt_cv_prog_compiler_static_works_CXX=yes
15639        fi
15640      else
15641        lt_cv_prog_compiler_static_works_CXX=yes
15642      fi
15643    fi
15644    $RM -r conftest*
15645    LDFLAGS="$save_LDFLAGS"
15646
15647 fi
15648 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15649 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15650
15651 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15652     :
15653 else
15654     lt_prog_compiler_static_CXX=
15655 fi
15656
15657
15658
15659
15660     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15661 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15662 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15663   $as_echo_n "(cached) " >&6
15664 else
15665   lt_cv_prog_compiler_c_o_CXX=no
15666    $RM -r conftest 2>/dev/null
15667    mkdir conftest
15668    cd conftest
15669    mkdir out
15670    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15671
15672    lt_compiler_flag="-o out/conftest2.$ac_objext"
15673    # Insert the option either (1) after the last *FLAGS variable, or
15674    # (2) before a word containing "conftest.", or (3) at the end.
15675    # Note that $ac_compile itself does not contain backslashes and begins
15676    # with a dollar sign (not a hyphen), so the echo should work correctly.
15677    lt_compile=`echo "$ac_compile" | $SED \
15678    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15679    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15680    -e 's:$: $lt_compiler_flag:'`
15681    (eval echo "\"\$as_me:15681: $lt_compile\"" >&5)
15682    (eval "$lt_compile" 2>out/conftest.err)
15683    ac_status=$?
15684    cat out/conftest.err >&5
15685    echo "$as_me:15685: \$? = $ac_status" >&5
15686    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15687    then
15688      # The compiler can only warn and ignore the option if not recognized
15689      # So say no if there are warnings
15690      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15691      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15692      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15693        lt_cv_prog_compiler_c_o_CXX=yes
15694      fi
15695    fi
15696    chmod u+w . 2>&5
15697    $RM conftest*
15698    # SGI C++ compiler will create directory out/ii_files/ for
15699    # template instantiation
15700    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15701    $RM out/* && rmdir out
15702    cd ..
15703    $RM -r conftest
15704    $RM conftest*
15705
15706 fi
15707 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15708 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15709
15710
15711
15712     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15713 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15714 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15715   $as_echo_n "(cached) " >&6
15716 else
15717   lt_cv_prog_compiler_c_o_CXX=no
15718    $RM -r conftest 2>/dev/null
15719    mkdir conftest
15720    cd conftest
15721    mkdir out
15722    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15723
15724    lt_compiler_flag="-o out/conftest2.$ac_objext"
15725    # Insert the option either (1) after the last *FLAGS variable, or
15726    # (2) before a word containing "conftest.", or (3) at the end.
15727    # Note that $ac_compile itself does not contain backslashes and begins
15728    # with a dollar sign (not a hyphen), so the echo should work correctly.
15729    lt_compile=`echo "$ac_compile" | $SED \
15730    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15731    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15732    -e 's:$: $lt_compiler_flag:'`
15733    (eval echo "\"\$as_me:15733: $lt_compile\"" >&5)
15734    (eval "$lt_compile" 2>out/conftest.err)
15735    ac_status=$?
15736    cat out/conftest.err >&5
15737    echo "$as_me:15737: \$? = $ac_status" >&5
15738    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15739    then
15740      # The compiler can only warn and ignore the option if not recognized
15741      # So say no if there are warnings
15742      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15743      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15744      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15745        lt_cv_prog_compiler_c_o_CXX=yes
15746      fi
15747    fi
15748    chmod u+w . 2>&5
15749    $RM conftest*
15750    # SGI C++ compiler will create directory out/ii_files/ for
15751    # template instantiation
15752    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15753    $RM out/* && rmdir out
15754    cd ..
15755    $RM -r conftest
15756    $RM conftest*
15757
15758 fi
15759 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15760 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15761
15762
15763
15764
15765 hard_links="nottested"
15766 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15767   # do not overwrite the value of need_locks provided by the user
15768   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15769 $as_echo_n "checking if we can lock with hard links... " >&6; }
15770   hard_links=yes
15771   $RM conftest*
15772   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15773   touch conftest.a
15774   ln conftest.a conftest.b 2>&5 || hard_links=no
15775   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15776   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15777 $as_echo "$hard_links" >&6; }
15778   if test "$hard_links" = no; then
15779     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15780 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15781     need_locks=warn
15782   fi
15783 else
15784   need_locks=no
15785 fi
15786
15787
15788
15789     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15790 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15791
15792   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15793   case $host_os in
15794   aix[4-9]*)
15795     # If we're using GNU nm, then we don't want the "-C" option.
15796     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15797     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15798       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'
15799     else
15800       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'
15801     fi
15802     ;;
15803   pw32*)
15804     export_symbols_cmds_CXX="$ltdll_cmds"
15805   ;;
15806   cygwin* | mingw* | cegcc*)
15807     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'
15808   ;;
15809   *)
15810     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15811   ;;
15812   esac
15813   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15814
15815 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15816 $as_echo "$ld_shlibs_CXX" >&6; }
15817 test "$ld_shlibs_CXX" = no && can_build_shared=no
15818
15819 with_gnu_ld_CXX=$with_gnu_ld
15820
15821
15822
15823
15824
15825
15826 #
15827 # Do we need to explicitly link libc?
15828 #
15829 case "x$archive_cmds_need_lc_CXX" in
15830 x|xyes)
15831   # Assume -lc should be added
15832   archive_cmds_need_lc_CXX=yes
15833
15834   if test "$enable_shared" = yes && test "$GCC" = yes; then
15835     case $archive_cmds_CXX in
15836     *'~'*)
15837       # FIXME: we may have to deal with multi-command sequences.
15838       ;;
15839     '$CC '*)
15840       # Test whether the compiler implicitly links with -lc since on some
15841       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15842       # to ld, don't add -lc before -lgcc.
15843       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15844 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15845       $RM conftest*
15846       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15847
15848       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849   (eval $ac_compile) 2>&5
15850   ac_status=$?
15851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852   (exit $ac_status); } 2>conftest.err; then
15853         soname=conftest
15854         lib=conftest
15855         libobjs=conftest.$ac_objext
15856         deplibs=
15857         wl=$lt_prog_compiler_wl_CXX
15858         pic_flag=$lt_prog_compiler_pic_CXX
15859         compiler_flags=-v
15860         linker_flags=-v
15861         verstring=
15862         output_objdir=.
15863         libname=conftest
15864         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15865         allow_undefined_flag_CXX=
15866         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15867   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15868   ac_status=$?
15869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870   (exit $ac_status); }
15871         then
15872           archive_cmds_need_lc_CXX=no
15873         else
15874           archive_cmds_need_lc_CXX=yes
15875         fi
15876         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15877       else
15878         cat conftest.err 1>&5
15879       fi
15880       $RM conftest*
15881       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15882 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15883       ;;
15884     esac
15885   fi
15886   ;;
15887 esac
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
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     { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15953 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15954
15955 library_names_spec=
15956 libname_spec='lib$name'
15957 soname_spec=
15958 shrext_cmds=".so"
15959 postinstall_cmds=
15960 postuninstall_cmds=
15961 finish_cmds=
15962 finish_eval=
15963 shlibpath_var=
15964 shlibpath_overrides_runpath=unknown
15965 version_type=none
15966 dynamic_linker="$host_os ld.so"
15967 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15968 need_lib_prefix=unknown
15969 hardcode_into_libs=no
15970
15971 # when you set need_version to no, make sure it does not cause -set_version
15972 # flags to be left without arguments
15973 need_version=unknown
15974
15975 case $host_os in
15976 aix3*)
15977   version_type=linux
15978   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15979   shlibpath_var=LIBPATH
15980
15981   # AIX 3 has no versioning support, so we append a major version to the name.
15982   soname_spec='${libname}${release}${shared_ext}$major'
15983   ;;
15984
15985 aix[4-9]*)
15986   version_type=linux
15987   need_lib_prefix=no
15988   need_version=no
15989   hardcode_into_libs=yes
15990   if test "$host_cpu" = ia64; then
15991     # AIX 5 supports IA64
15992     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15993     shlibpath_var=LD_LIBRARY_PATH
15994   else
15995     # With GCC up to 2.95.x, collect2 would create an import file
15996     # for dependence libraries.  The import file would start with
15997     # the line `#! .'.  This would cause the generated library to
15998     # depend on `.', always an invalid library.  This was fixed in
15999     # development snapshots of GCC prior to 3.0.
16000     case $host_os in
16001       aix4 | aix4.[01] | aix4.[01].*)
16002       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16003            echo ' yes '
16004            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16005         :
16006       else
16007         can_build_shared=no
16008       fi
16009       ;;
16010     esac
16011     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16012     # soname into executable. Probably we can add versioning support to
16013     # collect2, so additional links can be useful in future.
16014     if test "$aix_use_runtimelinking" = yes; then
16015       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16016       # instead of lib<name>.a to let people know that these are not
16017       # typical AIX shared libraries.
16018       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019     else
16020       # We preserve .a as extension for shared libraries through AIX4.2
16021       # and later when we are not doing run time linking.
16022       library_names_spec='${libname}${release}.a $libname.a'
16023       soname_spec='${libname}${release}${shared_ext}$major'
16024     fi
16025     shlibpath_var=LIBPATH
16026   fi
16027   ;;
16028
16029 amigaos*)
16030   case $host_cpu in
16031   powerpc)
16032     # Since July 2007 AmigaOS4 officially supports .so libraries.
16033     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16034     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16035     ;;
16036   m68k)
16037     library_names_spec='$libname.ixlibrary $libname.a'
16038     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16039     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'
16040     ;;
16041   esac
16042   ;;
16043
16044 beos*)
16045   library_names_spec='${libname}${shared_ext}'
16046   dynamic_linker="$host_os ld.so"
16047   shlibpath_var=LIBRARY_PATH
16048   ;;
16049
16050 bsdi[45]*)
16051   version_type=linux
16052   need_version=no
16053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054   soname_spec='${libname}${release}${shared_ext}$major'
16055   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16056   shlibpath_var=LD_LIBRARY_PATH
16057   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16058   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16059   # the default ld.so.conf also contains /usr/contrib/lib and
16060   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16061   # libtool to hard-code these into programs
16062   ;;
16063
16064 cygwin* | mingw* | pw32* | cegcc*)
16065   version_type=windows
16066   shrext_cmds=".dll"
16067   need_version=no
16068   need_lib_prefix=no
16069
16070   case $GCC,$host_os in
16071   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16072     library_names_spec='$libname.dll.a'
16073     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16074     postinstall_cmds='base_file=`basename \${file}`~
16075       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16076       dldir=$destdir/`dirname \$dlpath`~
16077       test -d \$dldir || mkdir -p \$dldir~
16078       $install_prog $dir/$dlname \$dldir/$dlname~
16079       chmod a+x \$dldir/$dlname~
16080       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16081         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16082       fi'
16083     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16084       dlpath=$dir/\$dldll~
16085        $RM \$dlpath'
16086     shlibpath_overrides_runpath=yes
16087
16088     case $host_os in
16089     cygwin*)
16090       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16091       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16092       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16093       ;;
16094     mingw* | cegcc*)
16095       # MinGW DLLs use traditional 'lib' prefix
16096       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16097       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16098       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16099         # It is most probably a Windows format PATH printed by
16100         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16101         # path with ; separators, and with drive letters. We can handle the
16102         # drive letters (cygwin fileutils understands them), so leave them,
16103         # especially as we might pass files found there to a mingw objdump,
16104         # which wouldn't understand a cygwinified path. Ahh.
16105         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16106       else
16107         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16108       fi
16109       ;;
16110     pw32*)
16111       # pw32 DLLs use 'pw' prefix rather than 'lib'
16112       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16113       ;;
16114     esac
16115     ;;
16116
16117   *)
16118     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16119     ;;
16120   esac
16121   dynamic_linker='Win32 ld.exe'
16122   # FIXME: first we should search . and the directory the executable is in
16123   shlibpath_var=PATH
16124   ;;
16125
16126 darwin* | rhapsody*)
16127   dynamic_linker="$host_os dyld"
16128   version_type=darwin
16129   need_lib_prefix=no
16130   need_version=no
16131   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16132   soname_spec='${libname}${release}${major}$shared_ext'
16133   shlibpath_overrides_runpath=yes
16134   shlibpath_var=DYLD_LIBRARY_PATH
16135   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16136
16137   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16138   ;;
16139
16140 dgux*)
16141   version_type=linux
16142   need_lib_prefix=no
16143   need_version=no
16144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16145   soname_spec='${libname}${release}${shared_ext}$major'
16146   shlibpath_var=LD_LIBRARY_PATH
16147   ;;
16148
16149 freebsd1*)
16150   dynamic_linker=no
16151   ;;
16152
16153 freebsd* | dragonfly*)
16154   # DragonFly does not have aout.  When/if they implement a new
16155   # versioning mechanism, adjust this.
16156   if test -x /usr/bin/objformat; then
16157     objformat=`/usr/bin/objformat`
16158   else
16159     case $host_os in
16160     freebsd[123]*) objformat=aout ;;
16161     *) objformat=elf ;;
16162     esac
16163   fi
16164   version_type=freebsd-$objformat
16165   case $version_type in
16166     freebsd-elf*)
16167       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16168       need_version=no
16169       need_lib_prefix=no
16170       ;;
16171     freebsd-*)
16172       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16173       need_version=yes
16174       ;;
16175   esac
16176   shlibpath_var=LD_LIBRARY_PATH
16177   case $host_os in
16178   freebsd2*)
16179     shlibpath_overrides_runpath=yes
16180     ;;
16181   freebsd3.[01]* | freebsdelf3.[01]*)
16182     shlibpath_overrides_runpath=yes
16183     hardcode_into_libs=yes
16184     ;;
16185   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16186   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16187     shlibpath_overrides_runpath=no
16188     hardcode_into_libs=yes
16189     ;;
16190   *) # from 4.6 on, and DragonFly
16191     shlibpath_overrides_runpath=yes
16192     hardcode_into_libs=yes
16193     ;;
16194   esac
16195   ;;
16196
16197 gnu*)
16198   version_type=linux
16199   need_lib_prefix=no
16200   need_version=no
16201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16202   soname_spec='${libname}${release}${shared_ext}$major'
16203   shlibpath_var=LD_LIBRARY_PATH
16204   hardcode_into_libs=yes
16205   ;;
16206
16207 hpux9* | hpux10* | hpux11*)
16208   # Give a soname corresponding to the major version so that dld.sl refuses to
16209   # link against other versions.
16210   version_type=sunos
16211   need_lib_prefix=no
16212   need_version=no
16213   case $host_cpu in
16214   ia64*)
16215     shrext_cmds='.so'
16216     hardcode_into_libs=yes
16217     dynamic_linker="$host_os dld.so"
16218     shlibpath_var=LD_LIBRARY_PATH
16219     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221     soname_spec='${libname}${release}${shared_ext}$major'
16222     if test "X$HPUX_IA64_MODE" = X32; then
16223       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16224     else
16225       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16226     fi
16227     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16228     ;;
16229   hppa*64*)
16230     shrext_cmds='.sl'
16231     hardcode_into_libs=yes
16232     dynamic_linker="$host_os dld.sl"
16233     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16238     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16239     ;;
16240   *)
16241     shrext_cmds='.sl'
16242     dynamic_linker="$host_os dld.sl"
16243     shlibpath_var=SHLIB_PATH
16244     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16245     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16246     soname_spec='${libname}${release}${shared_ext}$major'
16247     ;;
16248   esac
16249   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16250   postinstall_cmds='chmod 555 $lib'
16251   ;;
16252
16253 interix[3-9]*)
16254   version_type=linux
16255   need_lib_prefix=no
16256   need_version=no
16257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16258   soname_spec='${libname}${release}${shared_ext}$major'
16259   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16260   shlibpath_var=LD_LIBRARY_PATH
16261   shlibpath_overrides_runpath=no
16262   hardcode_into_libs=yes
16263   ;;
16264
16265 irix5* | irix6* | nonstopux*)
16266   case $host_os in
16267     nonstopux*) version_type=nonstopux ;;
16268     *)
16269         if test "$lt_cv_prog_gnu_ld" = yes; then
16270                 version_type=linux
16271         else
16272                 version_type=irix
16273         fi ;;
16274   esac
16275   need_lib_prefix=no
16276   need_version=no
16277   soname_spec='${libname}${release}${shared_ext}$major'
16278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16279   case $host_os in
16280   irix5* | nonstopux*)
16281     libsuff= shlibsuff=
16282     ;;
16283   *)
16284     case $LD in # libtool.m4 will add one of these switches to LD
16285     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16286       libsuff= shlibsuff= libmagic=32-bit;;
16287     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16288       libsuff=32 shlibsuff=N32 libmagic=N32;;
16289     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16290       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16291     *) libsuff= shlibsuff= libmagic=never-match;;
16292     esac
16293     ;;
16294   esac
16295   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16296   shlibpath_overrides_runpath=no
16297   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16298   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16299   hardcode_into_libs=yes
16300   ;;
16301
16302 # No shared lib support for Linux oldld, aout, or coff.
16303 linux*oldld* | linux*aout* | linux*coff*)
16304   dynamic_linker=no
16305   ;;
16306
16307 # This must be Linux ELF.
16308 linux* | k*bsd*-gnu)
16309   version_type=linux
16310   need_lib_prefix=no
16311   need_version=no
16312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16313   soname_spec='${libname}${release}${shared_ext}$major'
16314   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16315   shlibpath_var=LD_LIBRARY_PATH
16316   shlibpath_overrides_runpath=no
16317   # Some binutils ld are patched to set DT_RUNPATH
16318   save_LDFLAGS=$LDFLAGS
16319   save_libdir=$libdir
16320   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16321        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16322   cat >conftest.$ac_ext <<_ACEOF
16323 /* confdefs.h.  */
16324 _ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h.  */
16328
16329 int
16330 main ()
16331 {
16332
16333   ;
16334   return 0;
16335 }
16336 _ACEOF
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (ac_try="$ac_link"
16339 case "(($ac_try" in
16340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341   *) ac_try_echo=$ac_try;;
16342 esac
16343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16344 $as_echo "$ac_try_echo") >&5
16345   (eval "$ac_link") 2>conftest.er1
16346   ac_status=$?
16347   grep -v '^ *+' conftest.er1 >conftest.err
16348   rm -f conftest.er1
16349   cat conftest.err >&5
16350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351   (exit $ac_status); } && {
16352          test -z "$ac_cxx_werror_flag" ||
16353          test ! -s conftest.err
16354        } && test -s conftest$ac_exeext && {
16355          test "$cross_compiling" = yes ||
16356          $as_test_x conftest$ac_exeext
16357        }; then
16358   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
16359   shlibpath_overrides_runpath=yes
16360 fi
16361
16362 else
16363   $as_echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16365
16366
16367 fi
16368
16369 rm -rf conftest.dSYM
16370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16371       conftest$ac_exeext conftest.$ac_ext
16372   LDFLAGS=$save_LDFLAGS
16373   libdir=$save_libdir
16374
16375   # This implies no fast_install, which is unacceptable.
16376   # Some rework will be needed to allow for fast_install
16377   # before this can be enabled.
16378   hardcode_into_libs=yes
16379
16380   # Add ABI-specific directories to the system library path.
16381   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16382
16383   # Append ld.so.conf contents to the search path
16384   if test -f /etc/ld.so.conf; then
16385     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' ' '`
16386     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16387   fi
16388
16389   # We used to test for /lib/ld.so.1 and disable shared libraries on
16390   # powerpc, because MkLinux only supported shared libraries with the
16391   # GNU dynamic linker.  Since this was broken with cross compilers,
16392   # most powerpc-linux boxes support dynamic linking these days and
16393   # people can always --disable-shared, the test was removed, and we
16394   # assume the GNU/Linux dynamic linker is in use.
16395   dynamic_linker='GNU/Linux ld.so'
16396   ;;
16397
16398 netbsd*)
16399   version_type=sunos
16400   need_lib_prefix=no
16401   need_version=no
16402   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16404     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16405     dynamic_linker='NetBSD (a.out) ld.so'
16406   else
16407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16408     soname_spec='${libname}${release}${shared_ext}$major'
16409     dynamic_linker='NetBSD ld.elf_so'
16410   fi
16411   shlibpath_var=LD_LIBRARY_PATH
16412   shlibpath_overrides_runpath=yes
16413   hardcode_into_libs=yes
16414   ;;
16415
16416 newsos6)
16417   version_type=linux
16418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16419   shlibpath_var=LD_LIBRARY_PATH
16420   shlibpath_overrides_runpath=yes
16421   ;;
16422
16423 *nto* | *qnx*)
16424   version_type=qnx
16425   need_lib_prefix=no
16426   need_version=no
16427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428   soname_spec='${libname}${release}${shared_ext}$major'
16429   shlibpath_var=LD_LIBRARY_PATH
16430   shlibpath_overrides_runpath=no
16431   hardcode_into_libs=yes
16432   dynamic_linker='ldqnx.so'
16433   ;;
16434
16435 openbsd*)
16436   version_type=sunos
16437   sys_lib_dlsearch_path_spec="/usr/lib"
16438   need_lib_prefix=no
16439   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16440   case $host_os in
16441     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16442     *)                          need_version=no  ;;
16443   esac
16444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16445   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16446   shlibpath_var=LD_LIBRARY_PATH
16447   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16448     case $host_os in
16449       openbsd2.[89] | openbsd2.[89].*)
16450         shlibpath_overrides_runpath=no
16451         ;;
16452       *)
16453         shlibpath_overrides_runpath=yes
16454         ;;
16455       esac
16456   else
16457     shlibpath_overrides_runpath=yes
16458   fi
16459   ;;
16460
16461 os2*)
16462   libname_spec='$name'
16463   shrext_cmds=".dll"
16464   need_lib_prefix=no
16465   library_names_spec='$libname${shared_ext} $libname.a'
16466   dynamic_linker='OS/2 ld.exe'
16467   shlibpath_var=LIBPATH
16468   ;;
16469
16470 osf3* | osf4* | osf5*)
16471   version_type=osf
16472   need_lib_prefix=no
16473   need_version=no
16474   soname_spec='${libname}${release}${shared_ext}$major'
16475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476   shlibpath_var=LD_LIBRARY_PATH
16477   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16478   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16479   ;;
16480
16481 rdos*)
16482   dynamic_linker=no
16483   ;;
16484
16485 solaris*)
16486   version_type=linux
16487   need_lib_prefix=no
16488   need_version=no
16489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16490   soname_spec='${libname}${release}${shared_ext}$major'
16491   shlibpath_var=LD_LIBRARY_PATH
16492   shlibpath_overrides_runpath=yes
16493   hardcode_into_libs=yes
16494   # ldd complains unless libraries are executable
16495   postinstall_cmds='chmod +x $lib'
16496   ;;
16497
16498 sunos4*)
16499   version_type=sunos
16500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16501   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16502   shlibpath_var=LD_LIBRARY_PATH
16503   shlibpath_overrides_runpath=yes
16504   if test "$with_gnu_ld" = yes; then
16505     need_lib_prefix=no
16506   fi
16507   need_version=yes
16508   ;;
16509
16510 sysv4 | sysv4.3*)
16511   version_type=linux
16512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16513   soname_spec='${libname}${release}${shared_ext}$major'
16514   shlibpath_var=LD_LIBRARY_PATH
16515   case $host_vendor in
16516     sni)
16517       shlibpath_overrides_runpath=no
16518       need_lib_prefix=no
16519       runpath_var=LD_RUN_PATH
16520       ;;
16521     siemens)
16522       need_lib_prefix=no
16523       ;;
16524     motorola)
16525       need_lib_prefix=no
16526       need_version=no
16527       shlibpath_overrides_runpath=no
16528       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16529       ;;
16530   esac
16531   ;;
16532
16533 sysv4*MP*)
16534   if test -d /usr/nec ;then
16535     version_type=linux
16536     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16537     soname_spec='$libname${shared_ext}.$major'
16538     shlibpath_var=LD_LIBRARY_PATH
16539   fi
16540   ;;
16541
16542 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16543   version_type=freebsd-elf
16544   need_lib_prefix=no
16545   need_version=no
16546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16547   soname_spec='${libname}${release}${shared_ext}$major'
16548   shlibpath_var=LD_LIBRARY_PATH
16549   shlibpath_overrides_runpath=yes
16550   hardcode_into_libs=yes
16551   if test "$with_gnu_ld" = yes; then
16552     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16553   else
16554     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16555     case $host_os in
16556       sco3.2v5*)
16557         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16558         ;;
16559     esac
16560   fi
16561   sys_lib_dlsearch_path_spec='/usr/lib'
16562   ;;
16563
16564 tpf*)
16565   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16566   version_type=linux
16567   need_lib_prefix=no
16568   need_version=no
16569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16570   shlibpath_var=LD_LIBRARY_PATH
16571   shlibpath_overrides_runpath=no
16572   hardcode_into_libs=yes
16573   ;;
16574
16575 uts4*)
16576   version_type=linux
16577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16578   soname_spec='${libname}${release}${shared_ext}$major'
16579   shlibpath_var=LD_LIBRARY_PATH
16580   ;;
16581
16582 *)
16583   dynamic_linker=no
16584   ;;
16585 esac
16586 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16587 $as_echo "$dynamic_linker" >&6; }
16588 test "$dynamic_linker" = no && can_build_shared=no
16589
16590 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16591 if test "$GCC" = yes; then
16592   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16593 fi
16594
16595 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16596   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16597 fi
16598 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16599   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16600 fi
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637     { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16638 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16639 hardcode_action_CXX=
16640 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16641    test -n "$runpath_var_CXX" ||
16642    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16643
16644   # We can hardcode non-existent directories.
16645   if test "$hardcode_direct_CXX" != no &&
16646      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16647      # have to relink, otherwise we might link with an installed library
16648      # when we should be linking with a yet-to-be-installed one
16649      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16650      test "$hardcode_minus_L_CXX" != no; then
16651     # Linking always hardcodes the temporary library directory.
16652     hardcode_action_CXX=relink
16653   else
16654     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16655     hardcode_action_CXX=immediate
16656   fi
16657 else
16658   # We cannot hardcode anything, or else we can only hardcode existing
16659   # directories.
16660   hardcode_action_CXX=unsupported
16661 fi
16662 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16663 $as_echo "$hardcode_action_CXX" >&6; }
16664
16665 if test "$hardcode_action_CXX" = relink ||
16666    test "$inherit_rpath_CXX" = yes; then
16667   # Fast installation is not supported
16668   enable_fast_install=no
16669 elif test "$shlibpath_overrides_runpath" = yes ||
16670      test "$enable_shared" = no; then
16671   # Fast installation is not necessary
16672   enable_fast_install=needless
16673 fi
16674
16675
16676
16677
16678
16679
16680
16681   fi # test -n "$compiler"
16682
16683   CC=$lt_save_CC
16684   LDCXX=$LD
16685   LD=$lt_save_LD
16686   GCC=$lt_save_GCC
16687   with_gnu_ld=$lt_save_with_gnu_ld
16688   lt_cv_path_LDCXX=$lt_cv_path_LD
16689   lt_cv_path_LD=$lt_save_path_LD
16690   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16691   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16692 fi # test "$_lt_caught_CXX_error" != yes
16693
16694 ac_ext=c
16695 ac_cpp='$CPP $CPPFLAGS'
16696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16699
16700
16701 # Extract the first word of "ld", so it can be a program name with args.
16702 set dummy ld; ac_word=$2
16703 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16704 $as_echo_n "checking for $ac_word... " >&6; }
16705 if test "${ac_cv_prog_LD+set}" = set; then
16706   $as_echo_n "(cached) " >&6
16707 else
16708   if test -n "$LD"; then
16709   ac_cv_prog_LD="$LD" # Let the user override the test.
16710 else
16711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16712 for as_dir in $PATH
16713 do
16714   IFS=$as_save_IFS
16715   test -z "$as_dir" && as_dir=.
16716   for ac_exec_ext in '' $ac_executable_extensions; do
16717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16718     ac_cv_prog_LD="ld"
16719     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16720     break 2
16721   fi
16722 done
16723 done
16724 IFS=$as_save_IFS
16725
16726 fi
16727 fi
16728 LD=$ac_cv_prog_LD
16729 if test -n "$LD"; then
16730   { $as_echo "$as_me:$LINENO: result: $LD" >&5
16731 $as_echo "$LD" >&6; }
16732 else
16733   { $as_echo "$as_me:$LINENO: result: no" >&5
16734 $as_echo "no" >&6; }
16735 fi
16736
16737
16738 test "$LD" || { { $as_echo "$as_me:$LINENO: error: ld not found" >&5
16739 $as_echo "$as_me: error: ld not found" >&2;}
16740    { (exit 1); exit 1; }; }
16741
16742 # --with-kernel for cross compilation
16743
16744 # Check whether --with-kernel was given.
16745 if test "${with_kernel+set}" = set; then
16746   withval=$with_kernel; KERNELDIR=$withval
16747 fi
16748
16749
16750
16751 { $as_echo "$as_me:$LINENO: checking kernel version supports perf_events" >&5
16752 $as_echo_n "checking kernel version supports perf_events... " >&6; }
16753 if test "$KERNELDIR" != ""; then
16754         KINC="$KERNELDIR/include"
16755 fi
16756
16757 SAVE_CFLAGS=$CFLAGS
16758 CFLAGS="-I$KINC -D__KERNEL__ -Werror"
16759 cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h.  */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h.  */
16765
16766   #include <linux/version.h>
16767
16768 int
16769 main ()
16770 {
16771
16772   #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 31)
16773   break_me_hard(\\\);
16774   #endif
16775
16776   ;
16777   return 0;
16778 }
16779 _ACEOF
16780 rm -f conftest.$ac_objext
16781 if { (ac_try="$ac_compile"
16782 case "(($ac_try" in
16783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784   *) ac_try_echo=$ac_try;;
16785 esac
16786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16787 $as_echo "$ac_try_echo") >&5
16788   (eval "$ac_compile") 2>conftest.er1
16789   ac_status=$?
16790   grep -v '^ *+' conftest.er1 >conftest.err
16791   rm -f conftest.er1
16792   cat conftest.err >&5
16793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794   (exit $ac_status); } && {
16795          test -z "$ac_c_werror_flag" ||
16796          test ! -s conftest.err
16797        } && test -s conftest.$ac_objext; then
16798   kernel_has_perf_events_support="yes"
16799 else
16800   $as_echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16802
16803         kernel_has_perf_events_support="no"
16804 fi
16805
16806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16807 CFLAGS=$SAVE_CFLAGS
16808
16809
16810 if test "$kernel_has_perf_events_support" = "no"; then
16811         { $as_echo "$as_me:$LINENO: result: This kernel does not have perf_events support; falling back to legacy oprofile" >&5
16812 $as_echo "This kernel does not have perf_events support; falling back to legacy oprofile" >&6; }
16813 else
16814         { $as_echo "$as_me:$LINENO: result: This kernel has perf_events support" >&5
16815 $as_echo "This kernel has perf_events support" >&6; }
16816 fi
16817
16818 if test "$KERNELDIR" == ""; then
16819         PERF_EVENT_H="/usr/include/linux/perf_event.h"
16820 else
16821         PERF_EVENT_H="$KERNELDIR/include/linux/perf_event.h"
16822 fi
16823 as_ac_Header=`$as_echo "ac_cv_header_$PERF_EVENT_H" | $as_tr_sh`
16824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16825   { $as_echo "$as_me:$LINENO: checking for $PERF_EVENT_H" >&5
16826 $as_echo_n "checking for $PERF_EVENT_H... " >&6; }
16827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16828   $as_echo_n "(cached) " >&6
16829 fi
16830 ac_res=`eval 'as_val=${'$as_ac_Header'}
16831                  $as_echo "$as_val"'`
16832                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16833 $as_echo "$ac_res" >&6; }
16834 else
16835   # Is the header compilable?
16836 { $as_echo "$as_me:$LINENO: checking $PERF_EVENT_H usability" >&5
16837 $as_echo_n "checking $PERF_EVENT_H usability... " >&6; }
16838 cat >conftest.$ac_ext <<_ACEOF
16839 /* confdefs.h.  */
16840 _ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h.  */
16844 $ac_includes_default
16845 #include <$PERF_EVENT_H>
16846 _ACEOF
16847 rm -f conftest.$ac_objext
16848 if { (ac_try="$ac_compile"
16849 case "(($ac_try" in
16850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851   *) ac_try_echo=$ac_try;;
16852 esac
16853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16854 $as_echo "$ac_try_echo") >&5
16855   (eval "$ac_compile") 2>conftest.er1
16856   ac_status=$?
16857   grep -v '^ *+' conftest.er1 >conftest.err
16858   rm -f conftest.er1
16859   cat conftest.err >&5
16860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861   (exit $ac_status); } && {
16862          test -z "$ac_c_werror_flag" ||
16863          test ! -s conftest.err
16864        } && test -s conftest.$ac_objext; then
16865   ac_header_compiler=yes
16866 else
16867   $as_echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16869
16870         ac_header_compiler=no
16871 fi
16872
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16875 $as_echo "$ac_header_compiler" >&6; }
16876
16877 # Is the header present?
16878 { $as_echo "$as_me:$LINENO: checking $PERF_EVENT_H presence" >&5
16879 $as_echo_n "checking $PERF_EVENT_H presence... " >&6; }
16880 cat >conftest.$ac_ext <<_ACEOF
16881 /* confdefs.h.  */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h.  */
16886 #include <$PERF_EVENT_H>
16887 _ACEOF
16888 if { (ac_try="$ac_cpp conftest.$ac_ext"
16889 case "(($ac_try" in
16890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891   *) ac_try_echo=$ac_try;;
16892 esac
16893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16894 $as_echo "$ac_try_echo") >&5
16895   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16896   ac_status=$?
16897   grep -v '^ *+' conftest.er1 >conftest.err
16898   rm -f conftest.er1
16899   cat conftest.err >&5
16900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); } >/dev/null && {
16902          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16903          test ! -s conftest.err
16904        }; then
16905   ac_header_preproc=yes
16906 else
16907   $as_echo "$as_me: failed program was:" >&5
16908 sed 's/^/| /' conftest.$ac_ext >&5
16909
16910   ac_header_preproc=no
16911 fi
16912
16913 rm -f conftest.err conftest.$ac_ext
16914 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16915 $as_echo "$ac_header_preproc" >&6; }
16916
16917 # So?  What about this header?
16918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16919   yes:no: )
16920     { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: accepted by the compiler, rejected by the preprocessor!" >&5
16921 $as_echo "$as_me: WARNING: $PERF_EVENT_H: accepted by the compiler, rejected by the preprocessor!" >&2;}
16922     { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: proceeding with the compiler's result" >&5
16923 $as_echo "$as_me: WARNING: $PERF_EVENT_H: proceeding with the compiler's result" >&2;}
16924     ac_header_preproc=yes
16925     ;;
16926   no:yes:* )
16927     { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: present but cannot be compiled" >&5
16928 $as_echo "$as_me: WARNING: $PERF_EVENT_H: present but cannot be compiled" >&2;}
16929     { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H:     check for missing prerequisite headers?" >&5
16930 $as_echo "$as_me: WARNING: $PERF_EVENT_H:     check for missing prerequisite headers?" >&2;}
16931     { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: see the Autoconf documentation" >&5
16932 $as_echo "$as_me: WARNING: $PERF_EVENT_H: see the Autoconf documentation" >&2;}
16933     { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H:     section \"Present But Cannot Be Compiled\"" >&5
16934 $as_echo "$as_me: WARNING: $PERF_EVENT_H:     section \"Present But Cannot Be Compiled\"" >&2;}
16935     { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: proceeding with the preprocessor's result" >&5
16936 $as_echo "$as_me: WARNING: $PERF_EVENT_H: proceeding with the preprocessor's result" >&2;}
16937     { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: in the future, the compiler will take precedence" >&5
16938 $as_echo "$as_me: WARNING: $PERF_EVENT_H: in the future, the compiler will take precedence" >&2;}
16939
16940     ;;
16941 esac
16942 { $as_echo "$as_me:$LINENO: checking for $PERF_EVENT_H" >&5
16943 $as_echo_n "checking for $PERF_EVENT_H... " >&6; }
16944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16945   $as_echo_n "(cached) " >&6
16946 else
16947   eval "$as_ac_Header=\$ac_header_preproc"
16948 fi
16949 ac_res=`eval 'as_val=${'$as_ac_Header'}
16950                  $as_echo "$as_val"'`
16951                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16952 $as_echo "$ac_res" >&6; }
16953
16954 fi
16955 as_val=`eval 'as_val=${'$as_ac_Header'}
16956                  $as_echo "$as_val"'`
16957    if test "x$as_val" = x""yes; then
16958   PERF_EVENT_H_EXISTS="yes"
16959 fi
16960
16961
16962  if test -n "$PERF_EVENT_H_EXISTS"; then
16963   BUILD_FOR_PERF_EVENT_TRUE=
16964   BUILD_FOR_PERF_EVENT_FALSE='#'
16965 else
16966   BUILD_FOR_PERF_EVENT_TRUE='#'
16967   BUILD_FOR_PERF_EVENT_FALSE=
16968 fi
16969
16970 if test "$PERF_EVENT_H_EXISTS" = "yes"; then
16971         HAVE_PERF_EVENTS='1'
16972         if test "$KERNELDIR" != ""; then
16973                 PERF_EVENT_FLAGS=" -I$KERNELDIR/include"
16974
16975         fi
16976 else
16977         HAVE_PERF_EVENTS='0'
16978 fi
16979
16980 cat >>confdefs.h <<_ACEOF
16981 #define HAVE_PERF_EVENTS $HAVE_PERF_EVENTS
16982 _ACEOF
16983
16984
16985 if test "$HAVE_PERF_EVENTS" = "1"; then
16986         PFM_LIB=
16987         arch="`uname -m`"
16988         if test "$arch" = "ppc64"; then
16989                 if test "${ac_cv_header_perfmon_pfmlib_h+set}" = set; then
16990   { $as_echo "$as_me:$LINENO: checking for perfmon/pfmlib.h" >&5
16991 $as_echo_n "checking for perfmon/pfmlib.h... " >&6; }
16992 if test "${ac_cv_header_perfmon_pfmlib_h+set}" = set; then
16993   $as_echo_n "(cached) " >&6
16994 fi
16995 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_perfmon_pfmlib_h" >&5
16996 $as_echo "$ac_cv_header_perfmon_pfmlib_h" >&6; }
16997 else
16998   # Is the header compilable?
16999 { $as_echo "$as_me:$LINENO: checking perfmon/pfmlib.h usability" >&5
17000 $as_echo_n "checking perfmon/pfmlib.h usability... " >&6; }
17001 cat >conftest.$ac_ext <<_ACEOF
17002 /* confdefs.h.  */
17003 _ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h.  */
17007 $ac_includes_default
17008 #include <perfmon/pfmlib.h>
17009 _ACEOF
17010 rm -f conftest.$ac_objext
17011 if { (ac_try="$ac_compile"
17012 case "(($ac_try" in
17013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014   *) ac_try_echo=$ac_try;;
17015 esac
17016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17017 $as_echo "$ac_try_echo") >&5
17018   (eval "$ac_compile") 2>conftest.er1
17019   ac_status=$?
17020   grep -v '^ *+' conftest.er1 >conftest.err
17021   rm -f conftest.er1
17022   cat conftest.err >&5
17023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); } && {
17025          test -z "$ac_c_werror_flag" ||
17026          test ! -s conftest.err
17027        } && test -s conftest.$ac_objext; then
17028   ac_header_compiler=yes
17029 else
17030   $as_echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17032
17033         ac_header_compiler=no
17034 fi
17035
17036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17037 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17038 $as_echo "$ac_header_compiler" >&6; }
17039
17040 # Is the header present?
17041 { $as_echo "$as_me:$LINENO: checking perfmon/pfmlib.h presence" >&5
17042 $as_echo_n "checking perfmon/pfmlib.h presence... " >&6; }
17043 cat >conftest.$ac_ext <<_ACEOF
17044 /* confdefs.h.  */
17045 _ACEOF
17046 cat confdefs.h >>conftest.$ac_ext
17047 cat >>conftest.$ac_ext <<_ACEOF
17048 /* end confdefs.h.  */
17049 #include <perfmon/pfmlib.h>
17050 _ACEOF
17051 if { (ac_try="$ac_cpp conftest.$ac_ext"
17052 case "(($ac_try" in
17053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054   *) ac_try_echo=$ac_try;;
17055 esac
17056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17057 $as_echo "$ac_try_echo") >&5
17058   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17059   ac_status=$?
17060   grep -v '^ *+' conftest.er1 >conftest.err
17061   rm -f conftest.er1
17062   cat conftest.err >&5
17063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); } >/dev/null && {
17065          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17066          test ! -s conftest.err
17067        }; then
17068   ac_header_preproc=yes
17069 else
17070   $as_echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17072
17073   ac_header_preproc=no
17074 fi
17075
17076 rm -f conftest.err conftest.$ac_ext
17077 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17078 $as_echo "$ac_header_preproc" >&6; }
17079
17080 # So?  What about this header?
17081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17082   yes:no: )
17083     { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17084 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17085     { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: proceeding with the compiler's result" >&5
17086 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: proceeding with the compiler's result" >&2;}
17087     ac_header_preproc=yes
17088     ;;
17089   no:yes:* )
17090     { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: present but cannot be compiled" >&5
17091 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: present but cannot be compiled" >&2;}
17092     { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h:     check for missing prerequisite headers?" >&5
17093 $as_echo "$as_me: WARNING: perfmon/pfmlib.h:     check for missing prerequisite headers?" >&2;}
17094     { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: see the Autoconf documentation" >&5
17095 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: see the Autoconf documentation" >&2;}
17096     { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h:     section \"Present But Cannot Be Compiled\"" >&5
17097 $as_echo "$as_me: WARNING: perfmon/pfmlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17098     { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: proceeding with the preprocessor's result" >&5
17099 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: proceeding with the preprocessor's result" >&2;}
17100     { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: in the future, the compiler will take precedence" >&5
17101 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: in the future, the compiler will take precedence" >&2;}
17102
17103     ;;
17104 esac
17105 { $as_echo "$as_me:$LINENO: checking for perfmon/pfmlib.h" >&5
17106 $as_echo_n "checking for perfmon/pfmlib.h... " >&6; }
17107 if test "${ac_cv_header_perfmon_pfmlib_h+set}" = set; then
17108   $as_echo_n "(cached) " >&6
17109 else
17110   ac_cv_header_perfmon_pfmlib_h=$ac_header_preproc
17111 fi
17112 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_perfmon_pfmlib_h" >&5
17113 $as_echo "$ac_cv_header_perfmon_pfmlib_h" >&6; }
17114
17115 fi
17116 if test "x$ac_cv_header_perfmon_pfmlib_h" = x""yes; then
17117   :
17118 else
17119   { { $as_echo "$as_me:$LINENO: error: pfmlib.h not found; usually provided in papi devel package" >&5
17120 $as_echo "$as_me: error: pfmlib.h not found; usually provided in papi devel package" >&2;}
17121    { (exit 1); exit 1; }; }
17122 fi
17123
17124
17125                 { $as_echo "$as_me:$LINENO: checking for pfm_get_event_name in -lpfm" >&5
17126 $as_echo_n "checking for pfm_get_event_name in -lpfm... " >&6; }
17127 if test "${ac_cv_lib_pfm_pfm_get_event_name+set}" = set; then
17128   $as_echo_n "(cached) " >&6
17129 else
17130   ac_check_lib_save_LIBS=$LIBS
17131 LIBS="-lpfm  $LIBS"
17132 cat >conftest.$ac_ext <<_ACEOF
17133 /* confdefs.h.  */
17134 _ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h.  */
17138
17139 /* Override any GCC internal prototype to avoid an error.
17140    Use char because int might match the return type of a GCC
17141    builtin and then its argument prototype would still apply.  */
17142 #ifdef __cplusplus
17143 extern "C"
17144 #endif
17145 char pfm_get_event_name ();
17146 int
17147 main ()
17148 {
17149 return pfm_get_event_name ();
17150   ;
17151   return 0;
17152 }
17153 _ACEOF
17154 rm -f conftest.$ac_objext conftest$ac_exeext
17155 if { (ac_try="$ac_link"
17156 case "(($ac_try" in
17157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158   *) ac_try_echo=$ac_try;;
17159 esac
17160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17161 $as_echo "$ac_try_echo") >&5
17162   (eval "$ac_link") 2>conftest.er1
17163   ac_status=$?
17164   grep -v '^ *+' conftest.er1 >conftest.err
17165   rm -f conftest.er1
17166   cat conftest.err >&5
17167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); } && {
17169          test -z "$ac_c_werror_flag" ||
17170          test ! -s conftest.err
17171        } && test -s conftest$ac_exeext && {
17172          test "$cross_compiling" = yes ||
17173          $as_test_x conftest$ac_exeext
17174        }; then
17175   ac_cv_lib_pfm_pfm_get_event_name=yes
17176 else
17177   $as_echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17179
17180         ac_cv_lib_pfm_pfm_get_event_name=no
17181 fi
17182
17183 rm -rf conftest.dSYM
17184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17185       conftest$ac_exeext conftest.$ac_ext
17186 LIBS=$ac_check_lib_save_LIBS
17187 fi
17188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pfm_pfm_get_event_name" >&5
17189 $as_echo "$ac_cv_lib_pfm_pfm_get_event_name" >&6; }
17190 if test "x$ac_cv_lib_pfm_pfm_get_event_name" = x""yes; then
17191   HAVE_LIBPFM3='1'; HAVE_LIBPFM='1'
17192 else
17193
17194                         { $as_echo "$as_me:$LINENO: checking for pfm_get_os_event_encoding in -lpfm" >&5
17195 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; }
17196 if test "${ac_cv_lib_pfm_pfm_get_os_event_encoding+set}" = set; then
17197   $as_echo_n "(cached) " >&6
17198 else
17199   ac_check_lib_save_LIBS=$LIBS
17200 LIBS="-lpfm  $LIBS"
17201 cat >conftest.$ac_ext <<_ACEOF
17202 /* confdefs.h.  */
17203 _ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h.  */
17207
17208 /* Override any GCC internal prototype to avoid an error.
17209    Use char because int might match the return type of a GCC
17210    builtin and then its argument prototype would still apply.  */
17211 #ifdef __cplusplus
17212 extern "C"
17213 #endif
17214 char pfm_get_os_event_encoding ();
17215 int
17216 main ()
17217 {
17218 return pfm_get_os_event_encoding ();
17219   ;
17220   return 0;
17221 }
17222 _ACEOF
17223 rm -f conftest.$ac_objext conftest$ac_exeext
17224 if { (ac_try="$ac_link"
17225 case "(($ac_try" in
17226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227   *) ac_try_echo=$ac_try;;
17228 esac
17229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17230 $as_echo "$ac_try_echo") >&5
17231   (eval "$ac_link") 2>conftest.er1
17232   ac_status=$?
17233   grep -v '^ *+' conftest.er1 >conftest.err
17234   rm -f conftest.er1
17235   cat conftest.err >&5
17236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); } && {
17238          test -z "$ac_c_werror_flag" ||
17239          test ! -s conftest.err
17240        } && test -s conftest$ac_exeext && {
17241          test "$cross_compiling" = yes ||
17242          $as_test_x conftest$ac_exeext
17243        }; then
17244   ac_cv_lib_pfm_pfm_get_os_event_encoding=yes
17245 else
17246   $as_echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17248
17249         ac_cv_lib_pfm_pfm_get_os_event_encoding=no
17250 fi
17251
17252 rm -rf conftest.dSYM
17253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17254       conftest$ac_exeext conftest.$ac_ext
17255 LIBS=$ac_check_lib_save_LIBS
17256 fi
17257 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5
17258 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; }
17259 if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = x""yes; then
17260   HAVE_LIBPFM3='0'; HAVE_LIBPFM='1'
17261 else
17262   { { $as_echo "$as_me:$LINENO: error: libpfm not found; usually provided in papi devel package" >&5
17263 $as_echo "$as_me: error: libpfm not found; usually provided in papi devel package" >&2;}
17264    { (exit 1); exit 1; }; }
17265 fi
17266
17267 fi
17268
17269                 PFM_LIB="-lpfm"
17270
17271 cat >>confdefs.h <<_ACEOF
17272 #define HAVE_LIBPFM3 $HAVE_LIBPFM3
17273 _ACEOF
17274
17275
17276 cat >>confdefs.h <<_ACEOF
17277 #define HAVE_LIBPFM $HAVE_LIBPFM
17278 _ACEOF
17279
17280         fi
17281
17282 fi
17283
17284
17285 # Check whether --with-java was given.
17286 if test "${with_java+set}" = set; then
17287   withval=$with_java; JAVA_HOMEDIR=$with_java
17288 else
17289   with_java=no
17290 fi
17291
17292
17293 if test "x$with_java" = "xyes"; then
17294         JAVA_HOMEDIR="/usr"
17295 else if test "x$with_java" = "xno"; then
17296         JAVA_HOMEDIR=
17297         fi
17298 fi
17299
17300
17301 if test -n "$JAVA_HOMEDIR"; then
17302         as_ac_File=`$as_echo "ac_cv_file_"$JAVA_HOMEDIR/include/jvmti.h"" | $as_tr_sh`
17303 { $as_echo "$as_me:$LINENO: checking for \"$JAVA_HOMEDIR/include/jvmti.h\"" >&5
17304 $as_echo_n "checking for \"$JAVA_HOMEDIR/include/jvmti.h\"... " >&6; }
17305 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
17306   $as_echo_n "(cached) " >&6
17307 else
17308   test "$cross_compiling" = yes &&
17309   { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
17310 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
17311    { (exit 1); exit 1; }; }
17312 if test -r ""$JAVA_HOMEDIR/include/jvmti.h""; then
17313   eval "$as_ac_File=yes"
17314 else
17315   eval "$as_ac_File=no"
17316 fi
17317 fi
17318 ac_res=`eval 'as_val=${'$as_ac_File'}
17319                  $as_echo "$as_val"'`
17320                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17321 $as_echo "$ac_res" >&6; }
17322 as_val=`eval 'as_val=${'$as_ac_File'}
17323                  $as_echo "$as_val"'`
17324    if test "x$as_val" = x""yes; then
17325   JVMTI_H_EXISTS="yes"
17326 fi
17327
17328         as_ac_File=`$as_echo "ac_cv_file_"$JAVA_HOMEDIR/include/jvmpi.h"" | $as_tr_sh`
17329 { $as_echo "$as_me:$LINENO: checking for \"$JAVA_HOMEDIR/include/jvmpi.h\"" >&5
17330 $as_echo_n "checking for \"$JAVA_HOMEDIR/include/jvmpi.h\"... " >&6; }
17331 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
17332   $as_echo_n "(cached) " >&6
17333 else
17334   test "$cross_compiling" = yes &&
17335   { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
17336 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
17337    { (exit 1); exit 1; }; }
17338 if test -r ""$JAVA_HOMEDIR/include/jvmpi.h""; then
17339   eval "$as_ac_File=yes"
17340 else
17341   eval "$as_ac_File=no"
17342 fi
17343 fi
17344 ac_res=`eval 'as_val=${'$as_ac_File'}
17345                  $as_echo "$as_val"'`
17346                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17347 $as_echo "$ac_res" >&6; }
17348 as_val=`eval 'as_val=${'$as_ac_File'}
17349                  $as_echo "$as_val"'`
17350    if test "x$as_val" = x""yes; then
17351   JVMPI_H_EXISTS="yes"
17352 fi
17353
17354 fi
17355
17356  if test -n "$JVMTI_H_EXISTS"; then
17357   BUILD_JVMTI_AGENT_TRUE=
17358   BUILD_JVMTI_AGENT_FALSE='#'
17359 else
17360   BUILD_JVMTI_AGENT_TRUE='#'
17361   BUILD_JVMTI_AGENT_FALSE=
17362 fi
17363
17364  if test -n "$JVMPI_H_EXISTS"; then
17365   BUILD_JVMPI_AGENT_TRUE=
17366   BUILD_JVMPI_AGENT_FALSE='#'
17367 else
17368   BUILD_JVMPI_AGENT_TRUE='#'
17369   BUILD_JVMPI_AGENT_FALSE=
17370 fi
17371
17372
17373
17374 { $as_echo "$as_me:$LINENO: checking whether malloc attribute is understood" >&5
17375 $as_echo_n "checking whether malloc attribute is understood... " >&6; }
17376 SAVE_CFLAGS=$CFLAGS
17377 CFLAGS="-Werror $CFLAGS"
17378 cat >conftest.$ac_ext <<_ACEOF
17379 /* confdefs.h.  */
17380 _ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h.  */
17384
17385 int
17386 main ()
17387 {
17388
17389 void monkey() __attribute__((malloc));
17390
17391   ;
17392   return 0;
17393 }
17394 _ACEOF
17395 rm -f conftest.$ac_objext
17396 if { (ac_try="$ac_compile"
17397 case "(($ac_try" in
17398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399   *) ac_try_echo=$ac_try;;
17400 esac
17401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17402 $as_echo "$ac_try_echo") >&5
17403   (eval "$ac_compile") 2>conftest.er1
17404   ac_status=$?
17405   grep -v '^ *+' conftest.er1 >conftest.err
17406   rm -f conftest.er1
17407   cat conftest.err >&5
17408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409   (exit $ac_status); } && {
17410          test -z "$ac_c_werror_flag" ||
17411          test ! -s conftest.err
17412        } && test -s conftest.$ac_objext; then
17413   { $as_echo "$as_me:$LINENO: result: yes" >&5
17414 $as_echo "yes" >&6; };
17415 cat >>confdefs.h <<\_ACEOF
17416 #define MALLOC_ATTRIBUTE_OK 1
17417 _ACEOF
17418
17419 else
17420   $as_echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17422
17423         { $as_echo "$as_me:$LINENO: result: no" >&5
17424 $as_echo "no" >&6; }
17425 fi
17426
17427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17428 CFLAGS=$SAVE_CFLAGS
17429
17430
17431
17432 { $as_echo "$as_me:$LINENO: checking whether __builtin_expect is understood" >&5
17433 $as_echo_n "checking whether __builtin_expect is understood... " >&6; }
17434 SAVE_CFLAGS=$CFLAGS
17435 CFLAGS="-Werror $CFLAGS"
17436 cat >conftest.$ac_ext <<_ACEOF
17437 /* confdefs.h.  */
17438 _ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h.  */
17442
17443 int
17444 main ()
17445 {
17446
17447 int i;
17448 if (__builtin_expect(i, 0)) { }
17449
17450   ;
17451   return 0;
17452 }
17453 _ACEOF
17454 rm -f conftest.$ac_objext conftest$ac_exeext
17455 if { (ac_try="$ac_link"
17456 case "(($ac_try" in
17457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458   *) ac_try_echo=$ac_try;;
17459 esac
17460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17461 $as_echo "$ac_try_echo") >&5
17462   (eval "$ac_link") 2>conftest.er1
17463   ac_status=$?
17464   grep -v '^ *+' conftest.er1 >conftest.err
17465   rm -f conftest.er1
17466   cat conftest.err >&5
17467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468   (exit $ac_status); } && {
17469          test -z "$ac_c_werror_flag" ||
17470          test ! -s conftest.err
17471        } && test -s conftest$ac_exeext && {
17472          test "$cross_compiling" = yes ||
17473          $as_test_x conftest$ac_exeext
17474        }; then
17475   { $as_echo "$as_me:$LINENO: result: yes" >&5
17476 $as_echo "yes" >&6; }; EXTRA_CFLAGS_MODULE="$EXTRA_CFLAGS_MODULE -DEXPECT_OK"
17477 else
17478   $as_echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17480
17481         { $as_echo "$as_me:$LINENO: result: no" >&5
17482 $as_echo "no" >&6; };
17483 fi
17484
17485 rm -rf conftest.dSYM
17486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17487       conftest$ac_exeext conftest.$ac_ext
17488 CFLAGS=$SAVE_CFLAGS
17489
17490
17491
17492
17493
17494 topdir=`pwd`
17495
17496
17497
17498
17499 # Check whether --with-extra-includes was given.
17500 if test "${with_extra_includes+set}" = set; then
17501   withval=$with_extra_includes; use_extra_includes="$withval"
17502 else
17503   use_extra_includes=NO
17504
17505 fi
17506
17507 if test -n "$use_extra_includes" && \
17508         test "$use_extra_includes" != "NO"; then
17509   ac_save_ifs=$IFS
17510   IFS=':'
17511   for dir in $use_extra_includes; do
17512     extra_includes="$extra_includes -I$dir"
17513   done
17514   IFS=$ac_save_ifs
17515   CPPFLAGS="$CPPFLAGS $extra_includes"
17516 fi
17517
17518
17519 # Check whether --with-extra-libs was given.
17520 if test "${with_extra_libs+set}" = set; then
17521   withval=$with_extra_libs; use_extra_libs=$withval
17522 else
17523   use_extra_libs=NO
17524
17525 fi
17526
17527 if test -n "$use_extra_libs" && \
17528         test "$use_extra_libs" != "NO"; then
17529    ac_save_ifs=$IFS
17530    IFS=':'
17531    for dir in $use_extra_libs; do
17532      extra_libraries="$extra_libraries -L$dir"
17533    done
17534    IFS=$ac_save_ifs
17535    LDFLAGS="$LDFLAGS $extra_libraries"
17536 fi
17537
17538
17539
17540 ORIG_SAVE_LIBS="$LIBS"
17541
17542
17543
17544 for ac_func in sched_setaffinity perfmonctl
17545 do
17546 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17547 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17548 $as_echo_n "checking for $ac_func... " >&6; }
17549 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17550   $as_echo_n "(cached) " >&6
17551 else
17552   cat >conftest.$ac_ext <<_ACEOF
17553 /* confdefs.h.  */
17554 _ACEOF
17555 cat confdefs.h >>conftest.$ac_ext
17556 cat >>conftest.$ac_ext <<_ACEOF
17557 /* end confdefs.h.  */
17558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17560 #define $ac_func innocuous_$ac_func
17561
17562 /* System header to define __stub macros and hopefully few prototypes,
17563     which can conflict with char $ac_func (); below.
17564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17565     <limits.h> exists even on freestanding compilers.  */
17566
17567 #ifdef __STDC__
17568 # include <limits.h>
17569 #else
17570 # include <assert.h>
17571 #endif
17572
17573 #undef $ac_func
17574
17575 /* Override any GCC internal prototype to avoid an error.
17576    Use char because int might match the return type of a GCC
17577    builtin and then its argument prototype would still apply.  */
17578 #ifdef __cplusplus
17579 extern "C"
17580 #endif
17581 char $ac_func ();
17582 /* The GNU C library defines this for functions which it implements
17583     to always fail with ENOSYS.  Some functions are actually named
17584     something starting with __ and the normal name is an alias.  */
17585 #if defined __stub_$ac_func || defined __stub___$ac_func
17586 choke me
17587 #endif
17588
17589 int
17590 main ()
17591 {
17592 return $ac_func ();
17593   ;
17594   return 0;
17595 }
17596 _ACEOF
17597 rm -f conftest.$ac_objext conftest$ac_exeext
17598 if { (ac_try="$ac_link"
17599 case "(($ac_try" in
17600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601   *) ac_try_echo=$ac_try;;
17602 esac
17603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17604 $as_echo "$ac_try_echo") >&5
17605   (eval "$ac_link") 2>conftest.er1
17606   ac_status=$?
17607   grep -v '^ *+' conftest.er1 >conftest.err
17608   rm -f conftest.er1
17609   cat conftest.err >&5
17610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); } && {
17612          test -z "$ac_c_werror_flag" ||
17613          test ! -s conftest.err
17614        } && test -s conftest$ac_exeext && {
17615          test "$cross_compiling" = yes ||
17616          $as_test_x conftest$ac_exeext
17617        }; then
17618   eval "$as_ac_var=yes"
17619 else
17620   $as_echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17622
17623         eval "$as_ac_var=no"
17624 fi
17625
17626 rm -rf conftest.dSYM
17627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17628       conftest$ac_exeext conftest.$ac_ext
17629 fi
17630 ac_res=`eval 'as_val=${'$as_ac_var'}
17631                  $as_echo "$as_val"'`
17632                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17633 $as_echo "$ac_res" >&6; }
17634 as_val=`eval 'as_val=${'$as_ac_var'}
17635                  $as_echo "$as_val"'`
17636    if test "x$as_val" = x""yes; then
17637   cat >>confdefs.h <<_ACEOF
17638 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17639 _ACEOF
17640
17641 fi
17642 done
17643
17644
17645
17646 { $as_echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
17647 $as_echo_n "checking for poptGetContext in -lpopt... " >&6; }
17648 if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
17649   $as_echo_n "(cached) " >&6
17650 else
17651   ac_check_lib_save_LIBS=$LIBS
17652 LIBS="-lpopt  $LIBS"
17653 cat >conftest.$ac_ext <<_ACEOF
17654 /* confdefs.h.  */
17655 _ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h.  */
17659
17660 /* Override any GCC internal prototype to avoid an error.
17661    Use char because int might match the return type of a GCC
17662    builtin and then its argument prototype would still apply.  */
17663 #ifdef __cplusplus
17664 extern "C"
17665 #endif
17666 char poptGetContext ();
17667 int
17668 main ()
17669 {
17670 return poptGetContext ();
17671   ;
17672   return 0;
17673 }
17674 _ACEOF
17675 rm -f conftest.$ac_objext conftest$ac_exeext
17676 if { (ac_try="$ac_link"
17677 case "(($ac_try" in
17678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679   *) ac_try_echo=$ac_try;;
17680 esac
17681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17682 $as_echo "$ac_try_echo") >&5
17683   (eval "$ac_link") 2>conftest.er1
17684   ac_status=$?
17685   grep -v '^ *+' conftest.er1 >conftest.err
17686   rm -f conftest.er1
17687   cat conftest.err >&5
17688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); } && {
17690          test -z "$ac_c_werror_flag" ||
17691          test ! -s conftest.err
17692        } && test -s conftest$ac_exeext && {
17693          test "$cross_compiling" = yes ||
17694          $as_test_x conftest$ac_exeext
17695        }; then
17696   ac_cv_lib_popt_poptGetContext=yes
17697 else
17698   $as_echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17700
17701         ac_cv_lib_popt_poptGetContext=no
17702 fi
17703
17704 rm -rf conftest.dSYM
17705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17706       conftest$ac_exeext conftest.$ac_ext
17707 LIBS=$ac_check_lib_save_LIBS
17708 fi
17709 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
17710 $as_echo "$ac_cv_lib_popt_poptGetContext" >&6; }
17711 if test "x$ac_cv_lib_popt_poptGetContext" = x""yes; then
17712   cat >>confdefs.h <<_ACEOF
17713 #define HAVE_LIBPOPT 1
17714 _ACEOF
17715
17716   LIBS="-lpopt $LIBS"
17717
17718 else
17719   { { $as_echo "$as_me:$LINENO: error: popt library not found" >&5
17720 $as_echo "$as_me: error: popt library not found" >&2;}
17721    { (exit 1); exit 1; }; }
17722 fi
17723
17724
17725
17726 for ac_header in libiberty.h
17727 do
17728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17730   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17731 $as_echo_n "checking for $ac_header... " >&6; }
17732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17733   $as_echo_n "(cached) " >&6
17734 fi
17735 ac_res=`eval 'as_val=${'$as_ac_Header'}
17736                  $as_echo "$as_val"'`
17737                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17738 $as_echo "$ac_res" >&6; }
17739 else
17740   # Is the header compilable?
17741 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17742 $as_echo_n "checking $ac_header usability... " >&6; }
17743 cat >conftest.$ac_ext <<_ACEOF
17744 /* confdefs.h.  */
17745 _ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h.  */
17749 $ac_includes_default
17750 #include <$ac_header>
17751 _ACEOF
17752 rm -f conftest.$ac_objext
17753 if { (ac_try="$ac_compile"
17754 case "(($ac_try" in
17755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756   *) ac_try_echo=$ac_try;;
17757 esac
17758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17759 $as_echo "$ac_try_echo") >&5
17760   (eval "$ac_compile") 2>conftest.er1
17761   ac_status=$?
17762   grep -v '^ *+' conftest.er1 >conftest.err
17763   rm -f conftest.er1
17764   cat conftest.err >&5
17765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); } && {
17767          test -z "$ac_c_werror_flag" ||
17768          test ! -s conftest.err
17769        } && test -s conftest.$ac_objext; then
17770   ac_header_compiler=yes
17771 else
17772   $as_echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17774
17775         ac_header_compiler=no
17776 fi
17777
17778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17779 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17780 $as_echo "$ac_header_compiler" >&6; }
17781
17782 # Is the header present?
17783 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17784 $as_echo_n "checking $ac_header presence... " >&6; }
17785 cat >conftest.$ac_ext <<_ACEOF
17786 /* confdefs.h.  */
17787 _ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h.  */
17791 #include <$ac_header>
17792 _ACEOF
17793 if { (ac_try="$ac_cpp conftest.$ac_ext"
17794 case "(($ac_try" in
17795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796   *) ac_try_echo=$ac_try;;
17797 esac
17798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17799 $as_echo "$ac_try_echo") >&5
17800   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17801   ac_status=$?
17802   grep -v '^ *+' conftest.er1 >conftest.err
17803   rm -f conftest.er1
17804   cat conftest.err >&5
17805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806   (exit $ac_status); } >/dev/null && {
17807          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17808          test ! -s conftest.err
17809        }; then
17810   ac_header_preproc=yes
17811 else
17812   $as_echo "$as_me: failed program was:" >&5
17813 sed 's/^/| /' conftest.$ac_ext >&5
17814
17815   ac_header_preproc=no
17816 fi
17817
17818 rm -f conftest.err conftest.$ac_ext
17819 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17820 $as_echo "$ac_header_preproc" >&6; }
17821
17822 # So?  What about this header?
17823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17824   yes:no: )
17825     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17826 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17827     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17828 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17829     ac_header_preproc=yes
17830     ;;
17831   no:yes:* )
17832     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17833 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17834     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17835 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17836     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17837 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17838     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17839 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17840     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17841 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17842     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17843 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17844
17845     ;;
17846 esac
17847 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17848 $as_echo_n "checking for $ac_header... " >&6; }
17849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17850   $as_echo_n "(cached) " >&6
17851 else
17852   eval "$as_ac_Header=\$ac_header_preproc"
17853 fi
17854 ac_res=`eval 'as_val=${'$as_ac_Header'}
17855                  $as_echo "$as_val"'`
17856                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17857 $as_echo "$ac_res" >&6; }
17858
17859 fi
17860 as_val=`eval 'as_val=${'$as_ac_Header'}
17861                  $as_echo "$as_val"'`
17862    if test "x$as_val" = x""yes; then
17863   cat >>confdefs.h <<_ACEOF
17864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17865 _ACEOF
17866
17867 fi
17868
17869 done
17870
17871
17872 { $as_echo "$as_me:$LINENO: checking for cplus_demangle in -liberty" >&5
17873 $as_echo_n "checking for cplus_demangle in -liberty... " >&6; }
17874 if test "${ac_cv_lib_iberty_cplus_demangle+set}" = set; then
17875   $as_echo_n "(cached) " >&6
17876 else
17877   ac_check_lib_save_LIBS=$LIBS
17878 LIBS="-liberty  $LIBS"
17879 cat >conftest.$ac_ext <<_ACEOF
17880 /* confdefs.h.  */
17881 _ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h.  */
17885
17886 /* Override any GCC internal prototype to avoid an error.
17887    Use char because int might match the return type of a GCC
17888    builtin and then its argument prototype would still apply.  */
17889 #ifdef __cplusplus
17890 extern "C"
17891 #endif
17892 char cplus_demangle ();
17893 int
17894 main ()
17895 {
17896 return cplus_demangle ();
17897   ;
17898   return 0;
17899 }
17900 _ACEOF
17901 rm -f conftest.$ac_objext conftest$ac_exeext
17902 if { (ac_try="$ac_link"
17903 case "(($ac_try" in
17904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905   *) ac_try_echo=$ac_try;;
17906 esac
17907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17908 $as_echo "$ac_try_echo") >&5
17909   (eval "$ac_link") 2>conftest.er1
17910   ac_status=$?
17911   grep -v '^ *+' conftest.er1 >conftest.err
17912   rm -f conftest.er1
17913   cat conftest.err >&5
17914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); } && {
17916          test -z "$ac_c_werror_flag" ||
17917          test ! -s conftest.err
17918        } && test -s conftest$ac_exeext && {
17919          test "$cross_compiling" = yes ||
17920          $as_test_x conftest$ac_exeext
17921        }; then
17922   ac_cv_lib_iberty_cplus_demangle=yes
17923 else
17924   $as_echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.$ac_ext >&5
17926
17927         ac_cv_lib_iberty_cplus_demangle=no
17928 fi
17929
17930 rm -rf conftest.dSYM
17931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17932       conftest$ac_exeext conftest.$ac_ext
17933 LIBS=$ac_check_lib_save_LIBS
17934 fi
17935 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_cplus_demangle" >&5
17936 $as_echo "$ac_cv_lib_iberty_cplus_demangle" >&6; }
17937 if test "x$ac_cv_lib_iberty_cplus_demangle" = x""yes; then
17938   cat >>confdefs.h <<_ACEOF
17939 #define HAVE_LIBIBERTY 1
17940 _ACEOF
17941
17942   LIBS="-liberty $LIBS"
17943
17944 else
17945   { { $as_echo "$as_me:$LINENO: error: liberty library not found" >&5
17946 $as_echo "$as_me: error: liberty library not found" >&2;}
17947    { (exit 1); exit 1; }; }
17948 fi
17949
17950
17951 for ac_func in xcalloc
17952 do
17953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17954 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17955 $as_echo_n "checking for $ac_func... " >&6; }
17956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17957   $as_echo_n "(cached) " >&6
17958 else
17959   cat >conftest.$ac_ext <<_ACEOF
17960 /* confdefs.h.  */
17961 _ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h.  */
17965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17967 #define $ac_func innocuous_$ac_func
17968
17969 /* System header to define __stub macros and hopefully few prototypes,
17970     which can conflict with char $ac_func (); below.
17971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17972     <limits.h> exists even on freestanding compilers.  */
17973
17974 #ifdef __STDC__
17975 # include <limits.h>
17976 #else
17977 # include <assert.h>
17978 #endif
17979
17980 #undef $ac_func
17981
17982 /* Override any GCC internal prototype to avoid an error.
17983    Use char because int might match the return type of a GCC
17984    builtin and then its argument prototype would still apply.  */
17985 #ifdef __cplusplus
17986 extern "C"
17987 #endif
17988 char $ac_func ();
17989 /* The GNU C library defines this for functions which it implements
17990     to always fail with ENOSYS.  Some functions are actually named
17991     something starting with __ and the normal name is an alias.  */
17992 #if defined __stub_$ac_func || defined __stub___$ac_func
17993 choke me
17994 #endif
17995
17996 int
17997 main ()
17998 {
17999 return $ac_func ();
18000   ;
18001   return 0;
18002 }
18003 _ACEOF
18004 rm -f conftest.$ac_objext conftest$ac_exeext
18005 if { (ac_try="$ac_link"
18006 case "(($ac_try" in
18007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008   *) ac_try_echo=$ac_try;;
18009 esac
18010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18011 $as_echo "$ac_try_echo") >&5
18012   (eval "$ac_link") 2>conftest.er1
18013   ac_status=$?
18014   grep -v '^ *+' conftest.er1 >conftest.err
18015   rm -f conftest.er1
18016   cat conftest.err >&5
18017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018   (exit $ac_status); } && {
18019          test -z "$ac_c_werror_flag" ||
18020          test ! -s conftest.err
18021        } && test -s conftest$ac_exeext && {
18022          test "$cross_compiling" = yes ||
18023          $as_test_x conftest$ac_exeext
18024        }; then
18025   eval "$as_ac_var=yes"
18026 else
18027   $as_echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18029
18030         eval "$as_ac_var=no"
18031 fi
18032
18033 rm -rf conftest.dSYM
18034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18035       conftest$ac_exeext conftest.$ac_ext
18036 fi
18037 ac_res=`eval 'as_val=${'$as_ac_var'}
18038                  $as_echo "$as_val"'`
18039                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18040 $as_echo "$ac_res" >&6; }
18041 as_val=`eval 'as_val=${'$as_ac_var'}
18042                  $as_echo "$as_val"'`
18043    if test "x$as_val" = x""yes; then
18044   cat >>confdefs.h <<_ACEOF
18045 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18046 _ACEOF
18047
18048 fi
18049 done
18050
18051
18052 for ac_func in xmemdup
18053 do
18054 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18055 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18056 $as_echo_n "checking for $ac_func... " >&6; }
18057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18058   $as_echo_n "(cached) " >&6
18059 else
18060   cat >conftest.$ac_ext <<_ACEOF
18061 /* confdefs.h.  */
18062 _ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h.  */
18066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18068 #define $ac_func innocuous_$ac_func
18069
18070 /* System header to define __stub macros and hopefully few prototypes,
18071     which can conflict with char $ac_func (); below.
18072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18073     <limits.h> exists even on freestanding compilers.  */
18074
18075 #ifdef __STDC__
18076 # include <limits.h>
18077 #else
18078 # include <assert.h>
18079 #endif
18080
18081 #undef $ac_func
18082
18083 /* Override any GCC internal prototype to avoid an error.
18084    Use char because int might match the return type of a GCC
18085    builtin and then its argument prototype would still apply.  */
18086 #ifdef __cplusplus
18087 extern "C"
18088 #endif
18089 char $ac_func ();
18090 /* The GNU C library defines this for functions which it implements
18091     to always fail with ENOSYS.  Some functions are actually named
18092     something starting with __ and the normal name is an alias.  */
18093 #if defined __stub_$ac_func || defined __stub___$ac_func
18094 choke me
18095 #endif
18096
18097 int
18098 main ()
18099 {
18100 return $ac_func ();
18101   ;
18102   return 0;
18103 }
18104 _ACEOF
18105 rm -f conftest.$ac_objext conftest$ac_exeext
18106 if { (ac_try="$ac_link"
18107 case "(($ac_try" in
18108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109   *) ac_try_echo=$ac_try;;
18110 esac
18111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18112 $as_echo "$ac_try_echo") >&5
18113   (eval "$ac_link") 2>conftest.er1
18114   ac_status=$?
18115   grep -v '^ *+' conftest.er1 >conftest.err
18116   rm -f conftest.er1
18117   cat conftest.err >&5
18118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119   (exit $ac_status); } && {
18120          test -z "$ac_c_werror_flag" ||
18121          test ! -s conftest.err
18122        } && test -s conftest$ac_exeext && {
18123          test "$cross_compiling" = yes ||
18124          $as_test_x conftest$ac_exeext
18125        }; then
18126   eval "$as_ac_var=yes"
18127 else
18128   $as_echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18130
18131         eval "$as_ac_var=no"
18132 fi
18133
18134 rm -rf conftest.dSYM
18135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18136       conftest$ac_exeext conftest.$ac_ext
18137 fi
18138 ac_res=`eval 'as_val=${'$as_ac_var'}
18139                  $as_echo "$as_val"'`
18140                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18141 $as_echo "$ac_res" >&6; }
18142 as_val=`eval 'as_val=${'$as_ac_var'}
18143                  $as_echo "$as_val"'`
18144    if test "x$as_val" = x""yes; then
18145   cat >>confdefs.h <<_ACEOF
18146 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18147 _ACEOF
18148
18149 fi
18150 done
18151
18152 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18153 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18154 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18155   $as_echo_n "(cached) " >&6
18156 else
18157   ac_check_lib_save_LIBS=$LIBS
18158 LIBS="-ldl  $LIBS"
18159 cat >conftest.$ac_ext <<_ACEOF
18160 /* confdefs.h.  */
18161 _ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h.  */
18165
18166 /* Override any GCC internal prototype to avoid an error.
18167    Use char because int might match the return type of a GCC
18168    builtin and then its argument prototype would still apply.  */
18169 #ifdef __cplusplus
18170 extern "C"
18171 #endif
18172 char dlopen ();
18173 int
18174 main ()
18175 {
18176 return dlopen ();
18177   ;
18178   return 0;
18179 }
18180 _ACEOF
18181 rm -f conftest.$ac_objext conftest$ac_exeext
18182 if { (ac_try="$ac_link"
18183 case "(($ac_try" in
18184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185   *) ac_try_echo=$ac_try;;
18186 esac
18187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18188 $as_echo "$ac_try_echo") >&5
18189   (eval "$ac_link") 2>conftest.er1
18190   ac_status=$?
18191   grep -v '^ *+' conftest.er1 >conftest.err
18192   rm -f conftest.er1
18193   cat conftest.err >&5
18194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); } && {
18196          test -z "$ac_c_werror_flag" ||
18197          test ! -s conftest.err
18198        } && test -s conftest$ac_exeext && {
18199          test "$cross_compiling" = yes ||
18200          $as_test_x conftest$ac_exeext
18201        }; then
18202   ac_cv_lib_dl_dlopen=yes
18203 else
18204   $as_echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.$ac_ext >&5
18206
18207         ac_cv_lib_dl_dlopen=no
18208 fi
18209
18210 rm -rf conftest.dSYM
18211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18212       conftest$ac_exeext conftest.$ac_ext
18213 LIBS=$ac_check_lib_save_LIBS
18214 fi
18215 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18216 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18217 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
18218   LIBS="$LIBS -ldl"; DL_LIB="-ldl"
18219 else
18220   DL_LIB=""
18221 fi
18222
18223 { $as_echo "$as_me:$LINENO: checking for main in -lintl" >&5
18224 $as_echo_n "checking for main in -lintl... " >&6; }
18225 if test "${ac_cv_lib_intl_main+set}" = set; then
18226   $as_echo_n "(cached) " >&6
18227 else
18228   ac_check_lib_save_LIBS=$LIBS
18229 LIBS="-lintl  $LIBS"
18230 cat >conftest.$ac_ext <<_ACEOF
18231 /* confdefs.h.  */
18232 _ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h.  */
18236
18237
18238 int
18239 main ()
18240 {
18241 return main ();
18242   ;
18243   return 0;
18244 }
18245 _ACEOF
18246 rm -f conftest.$ac_objext conftest$ac_exeext
18247 if { (ac_try="$ac_link"
18248 case "(($ac_try" in
18249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250   *) ac_try_echo=$ac_try;;
18251 esac
18252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18253 $as_echo "$ac_try_echo") >&5
18254   (eval "$ac_link") 2>conftest.er1
18255   ac_status=$?
18256   grep -v '^ *+' conftest.er1 >conftest.err
18257   rm -f conftest.er1
18258   cat conftest.err >&5
18259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260   (exit $ac_status); } && {
18261          test -z "$ac_c_werror_flag" ||
18262          test ! -s conftest.err
18263        } && test -s conftest$ac_exeext && {
18264          test "$cross_compiling" = yes ||
18265          $as_test_x conftest$ac_exeext
18266        }; then
18267   ac_cv_lib_intl_main=yes
18268 else
18269   $as_echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18271
18272         ac_cv_lib_intl_main=no
18273 fi
18274
18275 rm -rf conftest.dSYM
18276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18277       conftest$ac_exeext conftest.$ac_ext
18278 LIBS=$ac_check_lib_save_LIBS
18279 fi
18280 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
18281 $as_echo "$ac_cv_lib_intl_main" >&6; }
18282 if test "x$ac_cv_lib_intl_main" = x""yes; then
18283   LIBS="$LIBS -lintl"; INTL_LIB="-lintl"
18284 else
18285   INTL_LIB=""
18286 fi
18287
18288
18289 { $as_echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
18290 $as_echo_n "checking for bfd_openr in -lbfd... " >&6; }
18291 if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
18292   $as_echo_n "(cached) " >&6
18293 else
18294   ac_check_lib_save_LIBS=$LIBS
18295 LIBS="-lbfd  $LIBS"
18296 cat >conftest.$ac_ext <<_ACEOF
18297 /* confdefs.h.  */
18298 _ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h.  */
18302
18303 /* Override any GCC internal prototype to avoid an error.
18304    Use char because int might match the return type of a GCC
18305    builtin and then its argument prototype would still apply.  */
18306 #ifdef __cplusplus
18307 extern "C"
18308 #endif
18309 char bfd_openr ();
18310 int
18311 main ()
18312 {
18313 return bfd_openr ();
18314   ;
18315   return 0;
18316 }
18317 _ACEOF
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (ac_try="$ac_link"
18320 case "(($ac_try" in
18321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322   *) ac_try_echo=$ac_try;;
18323 esac
18324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18325 $as_echo "$ac_try_echo") >&5
18326   (eval "$ac_link") 2>conftest.er1
18327   ac_status=$?
18328   grep -v '^ *+' conftest.er1 >conftest.err
18329   rm -f conftest.er1
18330   cat conftest.err >&5
18331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); } && {
18333          test -z "$ac_c_werror_flag" ||
18334          test ! -s conftest.err
18335        } && test -s conftest$ac_exeext && {
18336          test "$cross_compiling" = yes ||
18337          $as_test_x conftest$ac_exeext
18338        }; then
18339   ac_cv_lib_bfd_bfd_openr=yes
18340 else
18341   $as_echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18343
18344         ac_cv_lib_bfd_bfd_openr=no
18345 fi
18346
18347 rm -rf conftest.dSYM
18348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18349       conftest$ac_exeext conftest.$ac_ext
18350 LIBS=$ac_check_lib_save_LIBS
18351 fi
18352 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
18353 $as_echo "$ac_cv_lib_bfd_bfd_openr" >&6; }
18354 if test "x$ac_cv_lib_bfd_bfd_openr" = x""yes; then
18355   LIBS="-lbfd $LIBS"; Z_LIB=""
18356 else
18357   { $as_echo "$as_me:$LINENO: checking for compress in -lz" >&5
18358 $as_echo_n "checking for compress in -lz... " >&6; }
18359 if test "${ac_cv_lib_z_compress+set}" = set; then
18360   $as_echo_n "(cached) " >&6
18361 else
18362   ac_check_lib_save_LIBS=$LIBS
18363 LIBS="-lz  $LIBS"
18364 cat >conftest.$ac_ext <<_ACEOF
18365 /* confdefs.h.  */
18366 _ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h.  */
18370
18371 /* Override any GCC internal prototype to avoid an error.
18372    Use char because int might match the return type of a GCC
18373    builtin and then its argument prototype would still apply.  */
18374 #ifdef __cplusplus
18375 extern "C"
18376 #endif
18377 char compress ();
18378 int
18379 main ()
18380 {
18381 return compress ();
18382   ;
18383   return 0;
18384 }
18385 _ACEOF
18386 rm -f conftest.$ac_objext conftest$ac_exeext
18387 if { (ac_try="$ac_link"
18388 case "(($ac_try" in
18389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390   *) ac_try_echo=$ac_try;;
18391 esac
18392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18393 $as_echo "$ac_try_echo") >&5
18394   (eval "$ac_link") 2>conftest.er1
18395   ac_status=$?
18396   grep -v '^ *+' conftest.er1 >conftest.err
18397   rm -f conftest.er1
18398   cat conftest.err >&5
18399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400   (exit $ac_status); } && {
18401          test -z "$ac_c_werror_flag" ||
18402          test ! -s conftest.err
18403        } && test -s conftest$ac_exeext && {
18404          test "$cross_compiling" = yes ||
18405          $as_test_x conftest$ac_exeext
18406        }; then
18407   ac_cv_lib_z_compress=yes
18408 else
18409   $as_echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18411
18412         ac_cv_lib_z_compress=no
18413 fi
18414
18415 rm -rf conftest.dSYM
18416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18417       conftest$ac_exeext conftest.$ac_ext
18418 LIBS=$ac_check_lib_save_LIBS
18419 fi
18420 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
18421 $as_echo "$ac_cv_lib_z_compress" >&6; }
18422 if test "x$ac_cv_lib_z_compress" = x""yes; then
18423                 { $as_echo "$as_me:$LINENO: checking for bfd_fdopenr in -lbfd" >&5
18424 $as_echo_n "checking for bfd_fdopenr in -lbfd... " >&6; }
18425 if test "${ac_cv_lib_bfd_bfd_fdopenr+set}" = set; then
18426   $as_echo_n "(cached) " >&6
18427 else
18428   ac_check_lib_save_LIBS=$LIBS
18429 LIBS="-lbfd -lz $LIBS"
18430 cat >conftest.$ac_ext <<_ACEOF
18431 /* confdefs.h.  */
18432 _ACEOF
18433 cat confdefs.h >>conftest.$ac_ext
18434 cat >>conftest.$ac_ext <<_ACEOF
18435 /* end confdefs.h.  */
18436
18437 /* Override any GCC internal prototype to avoid an error.
18438    Use char because int might match the return type of a GCC
18439    builtin and then its argument prototype would still apply.  */
18440 #ifdef __cplusplus
18441 extern "C"
18442 #endif
18443 char bfd_fdopenr ();
18444 int
18445 main ()
18446 {
18447 return bfd_fdopenr ();
18448   ;
18449   return 0;
18450 }
18451 _ACEOF
18452 rm -f conftest.$ac_objext conftest$ac_exeext
18453 if { (ac_try="$ac_link"
18454 case "(($ac_try" in
18455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456   *) ac_try_echo=$ac_try;;
18457 esac
18458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18459 $as_echo "$ac_try_echo") >&5
18460   (eval "$ac_link") 2>conftest.er1
18461   ac_status=$?
18462   grep -v '^ *+' conftest.er1 >conftest.err
18463   rm -f conftest.er1
18464   cat conftest.err >&5
18465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); } && {
18467          test -z "$ac_c_werror_flag" ||
18468          test ! -s conftest.err
18469        } && test -s conftest$ac_exeext && {
18470          test "$cross_compiling" = yes ||
18471          $as_test_x conftest$ac_exeext
18472        }; then
18473   ac_cv_lib_bfd_bfd_fdopenr=yes
18474 else
18475   $as_echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18477
18478         ac_cv_lib_bfd_bfd_fdopenr=no
18479 fi
18480
18481 rm -rf conftest.dSYM
18482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18483       conftest$ac_exeext conftest.$ac_ext
18484 LIBS=$ac_check_lib_save_LIBS
18485 fi
18486 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_fdopenr" >&5
18487 $as_echo "$ac_cv_lib_bfd_bfd_fdopenr" >&6; }
18488 if test "x$ac_cv_lib_bfd_bfd_fdopenr" = x""yes; then
18489   LIBS="-lbfd -lz $LIBS"; Z_LIB="-lz"
18490 else
18491   { { $as_echo "$as_me:$LINENO: error: bfd library not found" >&5
18492 $as_echo "$as_me: error: bfd library not found" >&2;}
18493    { (exit 1); exit 1; }; }
18494 fi
18495
18496
18497 else
18498   { { $as_echo "$as_me:$LINENO: error: libz library not found; required by libbfd" >&5
18499 $as_echo "$as_me: error: libz library not found; required by libbfd" >&2;}
18500    { (exit 1); exit 1; }; }
18501 fi
18502
18503
18504
18505 fi
18506
18507
18508 ac_ext=c
18509 ac_cpp='$CPP $CPPFLAGS'
18510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18513
18514 # Determine if bfd_get_synthetic_symtab macro is available
18515 OS="`uname`"
18516 if test "$OS" = "Linux"; then
18517         { $as_echo "$as_me:$LINENO: checking whether bfd_get_synthetic_symtab() exists in BFD library" >&5
18518 $as_echo_n "checking whether bfd_get_synthetic_symtab() exists in BFD library... " >&6; }
18519         rm -f test-for-synth
18520         cat >conftest.$ac_ext <<_ACEOF
18521 /* confdefs.h.  */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h.  */
18526 #include <bfd.h>
18527 int
18528 main ()
18529 {
18530 asymbol * synthsyms;    bfd * ibfd = 0;
18531                         long synth_count = bfd_get_synthetic_symtab(ibfd, 0, 0, 0, 0, &synthsyms);
18532                         extern const bfd_target bfd_elf64_powerpc_vec;
18533                         extern const bfd_target bfd_elf64_powerpcle_vec;
18534                         char * ppc_name = bfd_elf64_powerpc_vec.name;
18535                         char * ppcle_name = bfd_elf64_powerpcle_vec.name;
18536                         printf("%s %s\n", ppc_name, ppcle_name);
18537   ;
18538   return 0;
18539 }
18540
18541 _ACEOF
18542         $CC conftest.$ac_ext $CFLAGS $LDFLAGS $LIBS -o  test-for-synth > /dev/null 2>&1
18543         if test -f test-for-synth; then
18544                 echo "yes"
18545                 SYNTHESIZE_SYMBOLS='1'
18546         else
18547                 echo "no"
18548                 SYNTHESIZE_SYMBOLS='0'
18549         fi
18550
18551 cat >>confdefs.h <<_ACEOF
18552 #define SYNTHESIZE_SYMBOLS $SYNTHESIZE_SYMBOLS
18553 _ACEOF
18554
18555         rm -f test-for-synth*
18556
18557 fi
18558 ac_ext=c
18559 ac_cpp='$CPP $CPPFLAGS'
18560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18563
18564
18565
18566 # Now we can restore original flag values, and may as well do the
18567 # AC_SUBST, too.
18568 CPPFLAGS="$CPPFLAGS_SAVE"
18569 LDFLAGS="$LDFLAGS_SAVE"
18570
18571
18572
18573
18574 # On Cell BE architecture, OProfile uses bfd_openr_iovec when processing some
18575 # SPU profiles.  To parse embedded SPU ELF on Cell BE, OProfile requires a
18576 # version of bfd_openr_iovec that supports the elf32-spu target.
18577 # This version of the function also has a 7th parameter that's been added.
18578 # First, we check for existence of the base bfd_openr_iovec.  If it exists,
18579 # we then use a temporary test program below that passes 7 arguments to
18580 # bfd_openr_iovec; if it compiles OK, we assume we have the right BFD
18581 # library to support Cell BE SPU profiling.
18582
18583 ac_ext=c
18584 ac_cpp='$CPP $CPPFLAGS'
18585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18588
18589
18590 { $as_echo "$as_me:$LINENO: checking for bfd_openr_iovec in -lbfd" >&5
18591 $as_echo_n "checking for bfd_openr_iovec in -lbfd... " >&6; }
18592 if test "${ac_cv_lib_bfd_bfd_openr_iovec+set}" = set; then
18593   $as_echo_n "(cached) " >&6
18594 else
18595   ac_check_lib_save_LIBS=$LIBS
18596 LIBS="-lbfd  $LIBS"
18597 cat >conftest.$ac_ext <<_ACEOF
18598 /* confdefs.h.  */
18599 _ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h.  */
18603
18604 /* Override any GCC internal prototype to avoid an error.
18605    Use char because int might match the return type of a GCC
18606    builtin and then its argument prototype would still apply.  */
18607 #ifdef __cplusplus
18608 extern "C"
18609 #endif
18610 char bfd_openr_iovec ();
18611 int
18612 main ()
18613 {
18614 return bfd_openr_iovec ();
18615   ;
18616   return 0;
18617 }
18618 _ACEOF
18619 rm -f conftest.$ac_objext conftest$ac_exeext
18620 if { (ac_try="$ac_link"
18621 case "(($ac_try" in
18622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623   *) ac_try_echo=$ac_try;;
18624 esac
18625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18626 $as_echo "$ac_try_echo") >&5
18627   (eval "$ac_link") 2>conftest.er1
18628   ac_status=$?
18629   grep -v '^ *+' conftest.er1 >conftest.err
18630   rm -f conftest.er1
18631   cat conftest.err >&5
18632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); } && {
18634          test -z "$ac_c_werror_flag" ||
18635          test ! -s conftest.err
18636        } && test -s conftest$ac_exeext && {
18637          test "$cross_compiling" = yes ||
18638          $as_test_x conftest$ac_exeext
18639        }; then
18640   ac_cv_lib_bfd_bfd_openr_iovec=yes
18641 else
18642   $as_echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18644
18645         ac_cv_lib_bfd_bfd_openr_iovec=no
18646 fi
18647
18648 rm -rf conftest.dSYM
18649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18650       conftest$ac_exeext conftest.$ac_ext
18651 LIBS=$ac_check_lib_save_LIBS
18652 fi
18653 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr_iovec" >&5
18654 $as_echo "$ac_cv_lib_bfd_bfd_openr_iovec" >&6; }
18655 if test "x$ac_cv_lib_bfd_bfd_openr_iovec" = x""yes; then
18656   bfd_openr_iovec_exists="yes"
18657 else
18658   bfd_openr_iovec_exists="no"
18659
18660 fi
18661
18662
18663 if test "$bfd_openr_iovec_exists" = "yes"; then
18664         { $as_echo "$as_me:$LINENO: checking whether bfd_openr_iovec has seven parameters" >&5
18665 $as_echo_n "checking whether bfd_openr_iovec has seven parameters... " >&6; }
18666         cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h.  */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h.  */
18672 #include <bfd.h>
18673           #include <stdlib.h>
18674
18675 int
18676 main ()
18677 {
18678 struct bfd *nbfd = bfd_openr_iovec("some-file", "elf32-spu",
18679                         NULL, NULL, NULL, NULL, NULL);
18680           return 0;
18681
18682   ;
18683   return 0;
18684 }
18685 _ACEOF
18686 rm -f conftest.$ac_objext
18687 if { (ac_try="$ac_compile"
18688 case "(($ac_try" in
18689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690   *) ac_try_echo=$ac_try;;
18691 esac
18692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18693 $as_echo "$ac_try_echo") >&5
18694   (eval "$ac_compile") 2>conftest.er1
18695   ac_status=$?
18696   grep -v '^ *+' conftest.er1 >conftest.err
18697   rm -f conftest.er1
18698   cat conftest.err >&5
18699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700   (exit $ac_status); } && {
18701          test -z "$ac_c_werror_flag" ||
18702          test ! -s conftest.err
18703        } && test -s conftest.$ac_objext; then
18704
18705 cat >>confdefs.h <<\_ACEOF
18706 #define HAVE_BFD_OPENR_IOVEC_WITH_7PARMS /**/
18707 _ACEOF
18708
18709         bfd_open_iovec_7="yes"
18710         { $as_echo "$as_me:$LINENO: result: yes" >&5
18711 $as_echo "yes" >&6; }
18712 else
18713   $as_echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18715
18716         { $as_echo "$as_me:$LINENO: result: no" >&5
18717 $as_echo "no" >&6; }
18718
18719 fi
18720
18721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18722 fi
18723
18724 ac_ext=c
18725 ac_cpp='$CPP $CPPFLAGS'
18726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18729
18730
18731 arch="unknown"
18732
18733 # Check whether --with-target was given.
18734 if test "${with_target+set}" = set; then
18735   withval=$with_target; arch=$withval
18736 fi
18737
18738
18739 if test "$arch" = "cell-be"; then
18740         if test "$bfd_open_iovec_7" = "yes"; then
18741                 { $as_echo "$as_me:$LINENO: BFD library has support for Cell Broadband Engine SPU profiling" >&5
18742 $as_echo "$as_me: BFD library has support for Cell Broadband Engine SPU profiling" >&6;}
18743         else
18744                 { { $as_echo "$as_me:$LINENO: error: BFD library does not support elf32-spu target; SPU profiling is unsupported" >&5
18745 $as_echo "$as_me: error: BFD library does not support elf32-spu target; SPU profiling is unsupported" >&2;}
18746    { (exit 1); exit 1; }; }
18747         fi
18748 fi
18749
18750
18751
18752 # C++ tests
18753
18754 ac_ext=cpp
18755 ac_cpp='$CXXCPP $CPPFLAGS'
18756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18759
18760
18761
18762 { $as_echo "$as_me:$LINENO: checking popt prototype" >&5
18763 $as_echo_n "checking popt prototype... " >&6; }
18764 SAVE_CXXFLAGS=$CXXFLAGS
18765 CXXFLAGS="-Werror $CXXFLAGS"
18766 cat >conftest.$ac_ext <<_ACEOF
18767 /* confdefs.h.  */
18768 _ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h.  */
18772 #include <popt.h>
18773 int
18774 main ()
18775 {
18776
18777 int c; char **v;
18778 poptGetContext(0, c, v, 0, 0);
18779
18780   ;
18781   return 0;
18782 }
18783 _ACEOF
18784 rm -f conftest.$ac_objext
18785 if { (ac_try="$ac_compile"
18786 case "(($ac_try" in
18787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788   *) ac_try_echo=$ac_try;;
18789 esac
18790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18791 $as_echo "$ac_try_echo") >&5
18792   (eval "$ac_compile") 2>conftest.er1
18793   ac_status=$?
18794   grep -v '^ *+' conftest.er1 >conftest.err
18795   rm -f conftest.er1
18796   cat conftest.err >&5
18797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); } && {
18799          test -z "$ac_cxx_werror_flag" ||
18800          test ! -s conftest.err
18801        } && test -s conftest.$ac_objext; then
18802   { $as_echo "$as_me:$LINENO: result: takes char **" >&5
18803 $as_echo "takes char **" >&6; };
18804 else
18805   $as_echo "$as_me: failed program was:" >&5
18806 sed 's/^/| /' conftest.$ac_ext >&5
18807
18808         { $as_echo "$as_me:$LINENO: result: takes const char **" >&5
18809 $as_echo "takes const char **" >&6; };
18810 cat >>confdefs.h <<\_ACEOF
18811 #define CONST_POPT 1
18812 _ACEOF
18813
18814 fi
18815
18816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18817 CXXFLAGS="$SAVE_CXXFLAGS"
18818
18819
18820
18821 { $as_echo "$as_me:$LINENO: checking whether to use included sstream" >&5
18822 $as_echo_n "checking whether to use included sstream... " >&6; }
18823 cat >conftest.$ac_ext <<_ACEOF
18824 /* confdefs.h.  */
18825 _ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h.  */
18829 #include <sstream>
18830 int
18831 main ()
18832 {
18833
18834   ;
18835   return 0;
18836 }
18837 _ACEOF
18838 rm -f conftest.$ac_objext
18839 if { (ac_try="$ac_compile"
18840 case "(($ac_try" in
18841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842   *) ac_try_echo=$ac_try;;
18843 esac
18844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18845 $as_echo "$ac_try_echo") >&5
18846   (eval "$ac_compile") 2>conftest.er1
18847   ac_status=$?
18848   grep -v '^ *+' conftest.er1 >conftest.err
18849   rm -f conftest.er1
18850   cat conftest.err >&5
18851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); } && {
18853          test -z "$ac_cxx_werror_flag" ||
18854          test ! -s conftest.err
18855        } && test -s conftest.$ac_objext; then
18856   { $as_echo "$as_me:$LINENO: result: no" >&5
18857 $as_echo "no" >&6; };
18858 else
18859   $as_echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18861
18862         { $as_echo "$as_me:$LINENO: result: yes" >&5
18863 $as_echo "yes" >&6; }; OP_CXXFLAGS="$OP_CXXFLAGS -I\${top_srcdir}/include"
18864 fi
18865
18866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18867
18868
18869
18870 { $as_echo "$as_me:$LINENO: checking whether bfd defines bool" >&5
18871 $as_echo_n "checking whether bfd defines bool... " >&6; }
18872 cat >conftest.$ac_ext <<_ACEOF
18873 /* confdefs.h.  */
18874 _ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h.  */
18878 #include <bfd.h>
18879 int
18880 main ()
18881 {
18882
18883   ;
18884   return 0;
18885 }
18886 _ACEOF
18887 rm -f conftest.$ac_objext
18888 if { (ac_try="$ac_compile"
18889 case "(($ac_try" in
18890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891   *) ac_try_echo=$ac_try;;
18892 esac
18893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18894 $as_echo "$ac_try_echo") >&5
18895   (eval "$ac_compile") 2>conftest.er1
18896   ac_status=$?
18897   grep -v '^ *+' conftest.er1 >conftest.err
18898   rm -f conftest.er1
18899   cat conftest.err >&5
18900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901   (exit $ac_status); } && {
18902          test -z "$ac_cxx_werror_flag" ||
18903          test ! -s conftest.err
18904        } && test -s conftest.$ac_objext; then
18905   { $as_echo "$as_me:$LINENO: result: no" >&5
18906 $as_echo "no" >&6; };
18907 else
18908   $as_echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18910
18911         { $as_echo "$as_me:$LINENO: result: yes" >&5
18912 $as_echo "yes" >&6; };
18913 cat >>confdefs.h <<\_ACEOF
18914 #define TRUE_FALSE_ALREADY_DEFINED 1
18915 _ACEOF
18916
18917 fi
18918
18919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18920
18921
18922         { $as_echo "$as_me:$LINENO: checking type of size_t" >&5
18923 $as_echo_n "checking type of size_t... " >&6; }
18924         for f in "unsigned" "unsigned long"; do
18925
18926
18927 ac_ext=c
18928 ac_cpp='$CPP $CPPFLAGS'
18929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18932
18933 SAVE_CFLAGS=$CFLAGS
18934 CFLAGS="-Werror $CFLAGS"
18935
18936 cat >conftest.$ac_ext <<_ACEOF
18937 /* confdefs.h.  */
18938 _ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h.  */
18942
18943   #include <stddef.h>
18944
18945 int
18946 main ()
18947 {
18948
18949   typedef void (*fct1)(size_t);
18950   typedef void (*fct2)($f);
18951   fct1 f1 = 0;
18952   fct2 f2 = 0;
18953   if (f1 == f2) {}
18954
18955   ;
18956   return 0;
18957 }
18958 _ACEOF
18959 rm -f conftest.$ac_objext
18960 if { (ac_try="$ac_compile"
18961 case "(($ac_try" in
18962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963   *) ac_try_echo=$ac_try;;
18964 esac
18965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18966 $as_echo "$ac_try_echo") >&5
18967   (eval "$ac_compile") 2>conftest.er1
18968   ac_status=$?
18969   grep -v '^ *+' conftest.er1 >conftest.err
18970   rm -f conftest.er1
18971   cat conftest.err >&5
18972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); } && {
18974          test -z "$ac_c_werror_flag" ||
18975          test ! -s conftest.err
18976        } && test -s conftest.$ac_objext; then
18977   SIZE_T_TYPE="$f"
18978 else
18979   $as_echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18981
18982         SIZE_T_TYPE=""
18983 fi
18984
18985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18986
18987 CFLAGS=$SAVE_CFLAGS
18988 ac_ext=cpp
18989 ac_cpp='$CXXCPP $CPPFLAGS'
18990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18993
18994
18995                 if test -n "${SIZE_T_TYPE}"; then
18996                         break
18997                 fi
18998         done
18999         if test -n "${SIZE_T_TYPE}"; then
19000                 { $as_echo "$as_me:$LINENO: result: ${SIZE_T_TYPE}" >&5
19001 $as_echo "${SIZE_T_TYPE}" >&6; }
19002         else
19003                 { { $as_echo "$as_me:$LINENO: error: not found" >&5
19004 $as_echo "$as_me: error: not found" >&2;}
19005    { (exit 1); exit 1; }; }
19006         fi
19007
19008
19009
19010         { $as_echo "$as_me:$LINENO: checking type of ptrdiff_t" >&5
19011 $as_echo_n "checking type of ptrdiff_t... " >&6; }
19012         for f in "int" "long"; do
19013
19014
19015 ac_ext=c
19016 ac_cpp='$CPP $CPPFLAGS'
19017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19020
19021 SAVE_CFLAGS=$CFLAGS
19022 CFLAGS="-Werror $CFLAGS"
19023
19024 cat >conftest.$ac_ext <<_ACEOF
19025 /* confdefs.h.  */
19026 _ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h.  */
19030
19031   #include <stddef.h>
19032
19033 int
19034 main ()
19035 {
19036
19037   typedef void (*fct1)(ptrdiff_t);
19038   typedef void (*fct2)($f);
19039   fct1 f1 = 0;
19040   fct2 f2 = 0;
19041   if (f1 == f2) {}
19042
19043   ;
19044   return 0;
19045 }
19046 _ACEOF
19047 rm -f conftest.$ac_objext
19048 if { (ac_try="$ac_compile"
19049 case "(($ac_try" in
19050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051   *) ac_try_echo=$ac_try;;
19052 esac
19053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19054 $as_echo "$ac_try_echo") >&5
19055   (eval "$ac_compile") 2>conftest.er1
19056   ac_status=$?
19057   grep -v '^ *+' conftest.er1 >conftest.err
19058   rm -f conftest.er1
19059   cat conftest.err >&5
19060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061   (exit $ac_status); } && {
19062          test -z "$ac_c_werror_flag" ||
19063          test ! -s conftest.err
19064        } && test -s conftest.$ac_objext; then
19065   PTRDIFF_T_TYPE="$f"
19066 else
19067   $as_echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19069
19070         PTRDIFF_T_TYPE=""
19071 fi
19072
19073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19074
19075 CFLAGS=$SAVE_CFLAGS
19076 ac_ext=cpp
19077 ac_cpp='$CXXCPP $CPPFLAGS'
19078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19081
19082
19083                 if test -n "${PTRDIFF_T_TYPE}"; then
19084                         break
19085                 fi
19086         done
19087         if test -n "${PTRDIFF_T_TYPE}"; then
19088                 { $as_echo "$as_me:$LINENO: result: ${PTRDIFF_T_TYPE}" >&5
19089 $as_echo "${PTRDIFF_T_TYPE}" >&6; }
19090         else
19091                 { { $as_echo "$as_me:$LINENO: error: not found" >&5
19092 $as_echo "$as_me: error: not found" >&2;}
19093    { (exit 1); exit 1; }; }
19094         fi
19095
19096
19097
19098
19099 { $as_echo "$as_me:$LINENO: checking for X" >&5
19100 $as_echo_n "checking for X... " >&6; }
19101
19102
19103 # Check whether --with-x was given.
19104 if test "${with_x+set}" = set; then
19105   withval=$with_x;
19106 fi
19107
19108 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19109 if test "x$with_x" = xno; then
19110   # The user explicitly disabled X.
19111   have_x=disabled
19112 else
19113   case $x_includes,$x_libraries in #(
19114     *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
19115 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
19116    { (exit 1); exit 1; }; };; #(
19117     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19118   $as_echo_n "(cached) " >&6
19119 else
19120   # One or both of the vars are not set, and there is no cached value.
19121 ac_x_includes=no ac_x_libraries=no
19122 rm -f -r conftest.dir
19123 if mkdir conftest.dir; then
19124   cd conftest.dir
19125   cat >Imakefile <<'_ACEOF'
19126 incroot:
19127         @echo incroot='${INCROOT}'
19128 usrlibdir:
19129         @echo usrlibdir='${USRLIBDIR}'
19130 libdir:
19131         @echo libdir='${LIBDIR}'
19132 _ACEOF
19133   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19134     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19135     for ac_var in incroot usrlibdir libdir; do
19136       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19137     done
19138     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19139     for ac_extension in a so sl dylib la dll; do
19140       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19141          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19142         ac_im_usrlibdir=$ac_im_libdir; break
19143       fi
19144     done
19145     # Screen out bogus values from the imake configuration.  They are
19146     # bogus both because they are the default anyway, and because
19147     # using them would break gcc on systems where it needs fixed includes.
19148     case $ac_im_incroot in
19149         /usr/include) ac_x_includes= ;;
19150         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19151     esac
19152     case $ac_im_usrlibdir in
19153         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19154         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19155     esac
19156   fi
19157   cd ..
19158   rm -f -r conftest.dir
19159 fi
19160
19161 # Standard set of common directories for X headers.
19162 # Check X11 before X11Rn because it is often a symlink to the current release.
19163 ac_x_header_dirs='
19164 /usr/X11/include
19165 /usr/X11R6/include
19166 /usr/X11R5/include
19167 /usr/X11R4/include
19168
19169 /usr/include/X11
19170 /usr/include/X11R6
19171 /usr/include/X11R5
19172 /usr/include/X11R4
19173
19174 /usr/local/X11/include
19175 /usr/local/X11R6/include
19176 /usr/local/X11R5/include
19177 /usr/local/X11R4/include
19178
19179 /usr/local/include/X11
19180 /usr/local/include/X11R6
19181 /usr/local/include/X11R5
19182 /usr/local/include/X11R4
19183
19184 /usr/X386/include
19185 /usr/x386/include
19186 /usr/XFree86/include/X11
19187
19188 /usr/include
19189 /usr/local/include
19190 /usr/unsupported/include
19191 /usr/athena/include
19192 /usr/local/x11r5/include
19193 /usr/lpp/Xamples/include
19194
19195 /usr/openwin/include
19196 /usr/openwin/share/include'
19197
19198 if test "$ac_x_includes" = no; then
19199   # Guess where to find include files, by looking for Xlib.h.
19200   # First, try using that file with no special directory specified.
19201   cat >conftest.$ac_ext <<_ACEOF
19202 /* confdefs.h.  */
19203 _ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h.  */
19207 #include <X11/Xlib.h>
19208 _ACEOF
19209 if { (ac_try="$ac_cpp conftest.$ac_ext"
19210 case "(($ac_try" in
19211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212   *) ac_try_echo=$ac_try;;
19213 esac
19214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19215 $as_echo "$ac_try_echo") >&5
19216   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19217   ac_status=$?
19218   grep -v '^ *+' conftest.er1 >conftest.err
19219   rm -f conftest.er1
19220   cat conftest.err >&5
19221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); } >/dev/null && {
19223          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19224          test ! -s conftest.err
19225        }; then
19226   # We can compile using X headers with no special include directory.
19227 ac_x_includes=
19228 else
19229   $as_echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19231
19232   for ac_dir in $ac_x_header_dirs; do
19233   if test -r "$ac_dir/X11/Xlib.h"; then
19234     ac_x_includes=$ac_dir
19235     break
19236   fi
19237 done
19238 fi
19239
19240 rm -f conftest.err conftest.$ac_ext
19241 fi # $ac_x_includes = no
19242
19243 if test "$ac_x_libraries" = no; then
19244   # Check for the libraries.
19245   # See if we find them without any special options.
19246   # Don't add to $LIBS permanently.
19247   ac_save_LIBS=$LIBS
19248   LIBS="-lX11 $LIBS"
19249   cat >conftest.$ac_ext <<_ACEOF
19250 /* confdefs.h.  */
19251 _ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h.  */
19255 #include <X11/Xlib.h>
19256 int
19257 main ()
19258 {
19259 XrmInitialize ()
19260   ;
19261   return 0;
19262 }
19263 _ACEOF
19264 rm -f conftest.$ac_objext conftest$ac_exeext
19265 if { (ac_try="$ac_link"
19266 case "(($ac_try" in
19267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268   *) ac_try_echo=$ac_try;;
19269 esac
19270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19271 $as_echo "$ac_try_echo") >&5
19272   (eval "$ac_link") 2>conftest.er1
19273   ac_status=$?
19274   grep -v '^ *+' conftest.er1 >conftest.err
19275   rm -f conftest.er1
19276   cat conftest.err >&5
19277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278   (exit $ac_status); } && {
19279          test -z "$ac_cxx_werror_flag" ||
19280          test ! -s conftest.err
19281        } && test -s conftest$ac_exeext && {
19282          test "$cross_compiling" = yes ||
19283          $as_test_x conftest$ac_exeext
19284        }; then
19285   LIBS=$ac_save_LIBS
19286 # We can link X programs with no special library path.
19287 ac_x_libraries=
19288 else
19289   $as_echo "$as_me: failed program was:" >&5
19290 sed 's/^/| /' conftest.$ac_ext >&5
19291
19292         LIBS=$ac_save_LIBS
19293 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19294 do
19295   # Don't even attempt the hair of trying to link an X program!
19296   for ac_extension in a so sl dylib la dll; do
19297     if test -r "$ac_dir/libX11.$ac_extension"; then
19298       ac_x_libraries=$ac_dir
19299       break 2
19300     fi
19301   done
19302 done
19303 fi
19304
19305 rm -rf conftest.dSYM
19306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19307       conftest$ac_exeext conftest.$ac_ext
19308 fi # $ac_x_libraries = no
19309
19310 case $ac_x_includes,$ac_x_libraries in #(
19311   no,* | *,no | *\'*)
19312     # Didn't find X, or a directory has "'" in its name.
19313     ac_cv_have_x="have_x=no";; #(
19314   *)
19315     # Record where we found X for the cache.
19316     ac_cv_have_x="have_x=yes\
19317         ac_x_includes='$ac_x_includes'\
19318         ac_x_libraries='$ac_x_libraries'"
19319 esac
19320 fi
19321 ;; #(
19322     *) have_x=yes;;
19323   esac
19324   eval "$ac_cv_have_x"
19325 fi # $with_x != no
19326
19327 if test "$have_x" != yes; then
19328   { $as_echo "$as_me:$LINENO: result: $have_x" >&5
19329 $as_echo "$have_x" >&6; }
19330   no_x=yes
19331 else
19332   # If each of the values was on the command line, it overrides each guess.
19333   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19334   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19335   # Update the cache value to reflect the command line values.
19336   ac_cv_have_x="have_x=yes\
19337         ac_x_includes='$x_includes'\
19338         ac_x_libraries='$x_libraries'"
19339   { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19340 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19341 fi
19342
19343 if test "$no_x" = yes; then
19344   # Not all programs may use this symbol, but it does not hurt to define it.
19345
19346 cat >>confdefs.h <<\_ACEOF
19347 #define X_DISPLAY_MISSING 1
19348 _ACEOF
19349
19350   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19351 else
19352   if test -n "$x_includes"; then
19353     X_CFLAGS="$X_CFLAGS -I$x_includes"
19354   fi
19355
19356   # It would also be nice to do this for all -L options, not just this one.
19357   if test -n "$x_libraries"; then
19358     X_LIBS="$X_LIBS -L$x_libraries"
19359     # For Solaris; some versions of Sun CC require a space after -R and
19360     # others require no space.  Words are not sufficient . . . .
19361     { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19362 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19363     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19364     ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
19365     ac_cxx_werror_flag=yes
19366     cat >conftest.$ac_ext <<_ACEOF
19367 /* confdefs.h.  */
19368 _ACEOF
19369 cat confdefs.h >>conftest.$ac_ext
19370 cat >>conftest.$ac_ext <<_ACEOF
19371 /* end confdefs.h.  */
19372
19373 int
19374 main ()
19375 {
19376
19377   ;
19378   return 0;
19379 }
19380 _ACEOF
19381 rm -f conftest.$ac_objext conftest$ac_exeext
19382 if { (ac_try="$ac_link"
19383 case "(($ac_try" in
19384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385   *) ac_try_echo=$ac_try;;
19386 esac
19387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19388 $as_echo "$ac_try_echo") >&5
19389   (eval "$ac_link") 2>conftest.er1
19390   ac_status=$?
19391   grep -v '^ *+' conftest.er1 >conftest.err
19392   rm -f conftest.er1
19393   cat conftest.err >&5
19394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395   (exit $ac_status); } && {
19396          test -z "$ac_cxx_werror_flag" ||
19397          test ! -s conftest.err
19398        } && test -s conftest$ac_exeext && {
19399          test "$cross_compiling" = yes ||
19400          $as_test_x conftest$ac_exeext
19401        }; then
19402   { $as_echo "$as_me:$LINENO: result: no" >&5
19403 $as_echo "no" >&6; }
19404        X_LIBS="$X_LIBS -R$x_libraries"
19405 else
19406   $as_echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.$ac_ext >&5
19408
19409         LIBS="$ac_xsave_LIBS -R $x_libraries"
19410        cat >conftest.$ac_ext <<_ACEOF
19411 /* confdefs.h.  */
19412 _ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h.  */
19416
19417 int
19418 main ()
19419 {
19420
19421   ;
19422   return 0;
19423 }
19424 _ACEOF
19425 rm -f conftest.$ac_objext conftest$ac_exeext
19426 if { (ac_try="$ac_link"
19427 case "(($ac_try" in
19428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429   *) ac_try_echo=$ac_try;;
19430 esac
19431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19432 $as_echo "$ac_try_echo") >&5
19433   (eval "$ac_link") 2>conftest.er1
19434   ac_status=$?
19435   grep -v '^ *+' conftest.er1 >conftest.err
19436   rm -f conftest.er1
19437   cat conftest.err >&5
19438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439   (exit $ac_status); } && {
19440          test -z "$ac_cxx_werror_flag" ||
19441          test ! -s conftest.err
19442        } && test -s conftest$ac_exeext && {
19443          test "$cross_compiling" = yes ||
19444          $as_test_x conftest$ac_exeext
19445        }; then
19446   { $as_echo "$as_me:$LINENO: result: yes" >&5
19447 $as_echo "yes" >&6; }
19448           X_LIBS="$X_LIBS -R $x_libraries"
19449 else
19450   $as_echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19452
19453         { $as_echo "$as_me:$LINENO: result: neither works" >&5
19454 $as_echo "neither works" >&6; }
19455 fi
19456
19457 rm -rf conftest.dSYM
19458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19459       conftest$ac_exeext conftest.$ac_ext
19460 fi
19461
19462 rm -rf conftest.dSYM
19463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19464       conftest$ac_exeext conftest.$ac_ext
19465     ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
19466     LIBS=$ac_xsave_LIBS
19467   fi
19468
19469   # Check for system-dependent libraries X programs must link with.
19470   # Do this before checking for the system-independent R6 libraries
19471   # (-lICE), since we may need -lsocket or whatever for X linking.
19472
19473   if test "$ISC" = yes; then
19474     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19475   else
19476     # Martyn Johnson says this is needed for Ultrix, if the X
19477     # libraries were built with DECnet support.  And Karl Berry says
19478     # the Alpha needs dnet_stub (dnet does not exist).
19479     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19480     cat >conftest.$ac_ext <<_ACEOF
19481 /* confdefs.h.  */
19482 _ACEOF
19483 cat confdefs.h >>conftest.$ac_ext
19484 cat >>conftest.$ac_ext <<_ACEOF
19485 /* end confdefs.h.  */
19486
19487 /* Override any GCC internal prototype to avoid an error.
19488    Use char because int might match the return type of a GCC
19489    builtin and then its argument prototype would still apply.  */
19490 #ifdef __cplusplus
19491 extern "C"
19492 #endif
19493 char XOpenDisplay ();
19494 int
19495 main ()
19496 {
19497 return XOpenDisplay ();
19498   ;
19499   return 0;
19500 }
19501 _ACEOF
19502 rm -f conftest.$ac_objext conftest$ac_exeext
19503 if { (ac_try="$ac_link"
19504 case "(($ac_try" in
19505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506   *) ac_try_echo=$ac_try;;
19507 esac
19508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19509 $as_echo "$ac_try_echo") >&5
19510   (eval "$ac_link") 2>conftest.er1
19511   ac_status=$?
19512   grep -v '^ *+' conftest.er1 >conftest.err
19513   rm -f conftest.er1
19514   cat conftest.err >&5
19515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); } && {
19517          test -z "$ac_cxx_werror_flag" ||
19518          test ! -s conftest.err
19519        } && test -s conftest$ac_exeext && {
19520          test "$cross_compiling" = yes ||
19521          $as_test_x conftest$ac_exeext
19522        }; then
19523   :
19524 else
19525   $as_echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19527
19528         { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19529 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19530 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19531   $as_echo_n "(cached) " >&6
19532 else
19533   ac_check_lib_save_LIBS=$LIBS
19534 LIBS="-ldnet  $LIBS"
19535 cat >conftest.$ac_ext <<_ACEOF
19536 /* confdefs.h.  */
19537 _ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h.  */
19541
19542 /* Override any GCC internal prototype to avoid an error.
19543    Use char because int might match the return type of a GCC
19544    builtin and then its argument prototype would still apply.  */
19545 #ifdef __cplusplus
19546 extern "C"
19547 #endif
19548 char dnet_ntoa ();
19549 int
19550 main ()
19551 {
19552 return dnet_ntoa ();
19553   ;
19554   return 0;
19555 }
19556 _ACEOF
19557 rm -f conftest.$ac_objext conftest$ac_exeext
19558 if { (ac_try="$ac_link"
19559 case "(($ac_try" in
19560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561   *) ac_try_echo=$ac_try;;
19562 esac
19563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19564 $as_echo "$ac_try_echo") >&5
19565   (eval "$ac_link") 2>conftest.er1
19566   ac_status=$?
19567   grep -v '^ *+' conftest.er1 >conftest.err
19568   rm -f conftest.er1
19569   cat conftest.err >&5
19570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); } && {
19572          test -z "$ac_cxx_werror_flag" ||
19573          test ! -s conftest.err
19574        } && test -s conftest$ac_exeext && {
19575          test "$cross_compiling" = yes ||
19576          $as_test_x conftest$ac_exeext
19577        }; then
19578   ac_cv_lib_dnet_dnet_ntoa=yes
19579 else
19580   $as_echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19582
19583         ac_cv_lib_dnet_dnet_ntoa=no
19584 fi
19585
19586 rm -rf conftest.dSYM
19587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19588       conftest$ac_exeext conftest.$ac_ext
19589 LIBS=$ac_check_lib_save_LIBS
19590 fi
19591 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19592 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19593 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
19594   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19595 fi
19596
19597     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19598       { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19599 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19600 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19601   $as_echo_n "(cached) " >&6
19602 else
19603   ac_check_lib_save_LIBS=$LIBS
19604 LIBS="-ldnet_stub  $LIBS"
19605 cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h.  */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h.  */
19611
19612 /* Override any GCC internal prototype to avoid an error.
19613    Use char because int might match the return type of a GCC
19614    builtin and then its argument prototype would still apply.  */
19615 #ifdef __cplusplus
19616 extern "C"
19617 #endif
19618 char dnet_ntoa ();
19619 int
19620 main ()
19621 {
19622 return dnet_ntoa ();
19623   ;
19624   return 0;
19625 }
19626 _ACEOF
19627 rm -f conftest.$ac_objext conftest$ac_exeext
19628 if { (ac_try="$ac_link"
19629 case "(($ac_try" in
19630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631   *) ac_try_echo=$ac_try;;
19632 esac
19633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19634 $as_echo "$ac_try_echo") >&5
19635   (eval "$ac_link") 2>conftest.er1
19636   ac_status=$?
19637   grep -v '^ *+' conftest.er1 >conftest.err
19638   rm -f conftest.er1
19639   cat conftest.err >&5
19640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); } && {
19642          test -z "$ac_cxx_werror_flag" ||
19643          test ! -s conftest.err
19644        } && test -s conftest$ac_exeext && {
19645          test "$cross_compiling" = yes ||
19646          $as_test_x conftest$ac_exeext
19647        }; then
19648   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19649 else
19650   $as_echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19652
19653         ac_cv_lib_dnet_stub_dnet_ntoa=no
19654 fi
19655
19656 rm -rf conftest.dSYM
19657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19658       conftest$ac_exeext conftest.$ac_ext
19659 LIBS=$ac_check_lib_save_LIBS
19660 fi
19661 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19662 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19663 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
19664   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19665 fi
19666
19667     fi
19668 fi
19669
19670 rm -rf conftest.dSYM
19671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19672       conftest$ac_exeext conftest.$ac_ext
19673     LIBS="$ac_xsave_LIBS"
19674
19675     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19676     # to get the SysV transport functions.
19677     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19678     # needs -lnsl.
19679     # The nsl library prevents programs from opening the X display
19680     # on Irix 5.2, according to T.E. Dickey.
19681     # The functions gethostbyname, getservbyname, and inet_addr are
19682     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19683     { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
19684 $as_echo_n "checking for gethostbyname... " >&6; }
19685 if test "${ac_cv_func_gethostbyname+set}" = set; then
19686   $as_echo_n "(cached) " >&6
19687 else
19688   cat >conftest.$ac_ext <<_ACEOF
19689 /* confdefs.h.  */
19690 _ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h.  */
19694 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19696 #define gethostbyname innocuous_gethostbyname
19697
19698 /* System header to define __stub macros and hopefully few prototypes,
19699     which can conflict with char gethostbyname (); below.
19700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19701     <limits.h> exists even on freestanding compilers.  */
19702
19703 #ifdef __STDC__
19704 # include <limits.h>
19705 #else
19706 # include <assert.h>
19707 #endif
19708
19709 #undef gethostbyname
19710
19711 /* Override any GCC internal prototype to avoid an error.
19712    Use char because int might match the return type of a GCC
19713    builtin and then its argument prototype would still apply.  */
19714 #ifdef __cplusplus
19715 extern "C"
19716 #endif
19717 char gethostbyname ();
19718 /* The GNU C library defines this for functions which it implements
19719     to always fail with ENOSYS.  Some functions are actually named
19720     something starting with __ and the normal name is an alias.  */
19721 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19722 choke me
19723 #endif
19724
19725 int
19726 main ()
19727 {
19728 return gethostbyname ();
19729   ;
19730   return 0;
19731 }
19732 _ACEOF
19733 rm -f conftest.$ac_objext conftest$ac_exeext
19734 if { (ac_try="$ac_link"
19735 case "(($ac_try" in
19736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737   *) ac_try_echo=$ac_try;;
19738 esac
19739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19740 $as_echo "$ac_try_echo") >&5
19741   (eval "$ac_link") 2>conftest.er1
19742   ac_status=$?
19743   grep -v '^ *+' conftest.er1 >conftest.err
19744   rm -f conftest.er1
19745   cat conftest.err >&5
19746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); } && {
19748          test -z "$ac_cxx_werror_flag" ||
19749          test ! -s conftest.err
19750        } && test -s conftest$ac_exeext && {
19751          test "$cross_compiling" = yes ||
19752          $as_test_x conftest$ac_exeext
19753        }; then
19754   ac_cv_func_gethostbyname=yes
19755 else
19756   $as_echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19758
19759         ac_cv_func_gethostbyname=no
19760 fi
19761
19762 rm -rf conftest.dSYM
19763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19764       conftest$ac_exeext conftest.$ac_ext
19765 fi
19766 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19767 $as_echo "$ac_cv_func_gethostbyname" >&6; }
19768
19769     if test $ac_cv_func_gethostbyname = no; then
19770       { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19771 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19772 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19773   $as_echo_n "(cached) " >&6
19774 else
19775   ac_check_lib_save_LIBS=$LIBS
19776 LIBS="-lnsl  $LIBS"
19777 cat >conftest.$ac_ext <<_ACEOF
19778 /* confdefs.h.  */
19779 _ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h.  */
19783
19784 /* Override any GCC internal prototype to avoid an error.
19785    Use char because int might match the return type of a GCC
19786    builtin and then its argument prototype would still apply.  */
19787 #ifdef __cplusplus
19788 extern "C"
19789 #endif
19790 char gethostbyname ();
19791 int
19792 main ()
19793 {
19794 return gethostbyname ();
19795   ;
19796   return 0;
19797 }
19798 _ACEOF
19799 rm -f conftest.$ac_objext conftest$ac_exeext
19800 if { (ac_try="$ac_link"
19801 case "(($ac_try" in
19802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803   *) ac_try_echo=$ac_try;;
19804 esac
19805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19806 $as_echo "$ac_try_echo") >&5
19807   (eval "$ac_link") 2>conftest.er1
19808   ac_status=$?
19809   grep -v '^ *+' conftest.er1 >conftest.err
19810   rm -f conftest.er1
19811   cat conftest.err >&5
19812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813   (exit $ac_status); } && {
19814          test -z "$ac_cxx_werror_flag" ||
19815          test ! -s conftest.err
19816        } && test -s conftest$ac_exeext && {
19817          test "$cross_compiling" = yes ||
19818          $as_test_x conftest$ac_exeext
19819        }; then
19820   ac_cv_lib_nsl_gethostbyname=yes
19821 else
19822   $as_echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19824
19825         ac_cv_lib_nsl_gethostbyname=no
19826 fi
19827
19828 rm -rf conftest.dSYM
19829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19830       conftest$ac_exeext conftest.$ac_ext
19831 LIBS=$ac_check_lib_save_LIBS
19832 fi
19833 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19834 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19835 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
19836   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19837 fi
19838
19839       if test $ac_cv_lib_nsl_gethostbyname = no; then
19840         { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19841 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19842 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19843   $as_echo_n "(cached) " >&6
19844 else
19845   ac_check_lib_save_LIBS=$LIBS
19846 LIBS="-lbsd  $LIBS"
19847 cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h.  */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h.  */
19853
19854 /* Override any GCC internal prototype to avoid an error.
19855    Use char because int might match the return type of a GCC
19856    builtin and then its argument prototype would still apply.  */
19857 #ifdef __cplusplus
19858 extern "C"
19859 #endif
19860 char gethostbyname ();
19861 int
19862 main ()
19863 {
19864 return gethostbyname ();
19865   ;
19866   return 0;
19867 }
19868 _ACEOF
19869 rm -f conftest.$ac_objext conftest$ac_exeext
19870 if { (ac_try="$ac_link"
19871 case "(($ac_try" in
19872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873   *) ac_try_echo=$ac_try;;
19874 esac
19875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19876 $as_echo "$ac_try_echo") >&5
19877   (eval "$ac_link") 2>conftest.er1
19878   ac_status=$?
19879   grep -v '^ *+' conftest.er1 >conftest.err
19880   rm -f conftest.er1
19881   cat conftest.err >&5
19882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); } && {
19884          test -z "$ac_cxx_werror_flag" ||
19885          test ! -s conftest.err
19886        } && test -s conftest$ac_exeext && {
19887          test "$cross_compiling" = yes ||
19888          $as_test_x conftest$ac_exeext
19889        }; then
19890   ac_cv_lib_bsd_gethostbyname=yes
19891 else
19892   $as_echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19894
19895         ac_cv_lib_bsd_gethostbyname=no
19896 fi
19897
19898 rm -rf conftest.dSYM
19899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19900       conftest$ac_exeext conftest.$ac_ext
19901 LIBS=$ac_check_lib_save_LIBS
19902 fi
19903 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19904 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19905 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
19906   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19907 fi
19908
19909       fi
19910     fi
19911
19912     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19913     # socket/setsockopt and other routines are undefined under SCO ODT
19914     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19915     # on later versions), says Simon Leinen: it contains gethostby*
19916     # variants that don't use the name server (or something).  -lsocket
19917     # must be given before -lnsl if both are needed.  We assume that
19918     # if connect needs -lnsl, so does gethostbyname.
19919     { $as_echo "$as_me:$LINENO: checking for connect" >&5
19920 $as_echo_n "checking for connect... " >&6; }
19921 if test "${ac_cv_func_connect+set}" = set; then
19922   $as_echo_n "(cached) " >&6
19923 else
19924   cat >conftest.$ac_ext <<_ACEOF
19925 /* confdefs.h.  */
19926 _ACEOF
19927 cat confdefs.h >>conftest.$ac_ext
19928 cat >>conftest.$ac_ext <<_ACEOF
19929 /* end confdefs.h.  */
19930 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19932 #define connect innocuous_connect
19933
19934 /* System header to define __stub macros and hopefully few prototypes,
19935     which can conflict with char connect (); below.
19936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19937     <limits.h> exists even on freestanding compilers.  */
19938
19939 #ifdef __STDC__
19940 # include <limits.h>
19941 #else
19942 # include <assert.h>
19943 #endif
19944
19945 #undef connect
19946
19947 /* Override any GCC internal prototype to avoid an error.
19948    Use char because int might match the return type of a GCC
19949    builtin and then its argument prototype would still apply.  */
19950 #ifdef __cplusplus
19951 extern "C"
19952 #endif
19953 char connect ();
19954 /* The GNU C library defines this for functions which it implements
19955     to always fail with ENOSYS.  Some functions are actually named
19956     something starting with __ and the normal name is an alias.  */
19957 #if defined __stub_connect || defined __stub___connect
19958 choke me
19959 #endif
19960
19961 int
19962 main ()
19963 {
19964 return connect ();
19965   ;
19966   return 0;
19967 }
19968 _ACEOF
19969 rm -f conftest.$ac_objext conftest$ac_exeext
19970 if { (ac_try="$ac_link"
19971 case "(($ac_try" in
19972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973   *) ac_try_echo=$ac_try;;
19974 esac
19975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19976 $as_echo "$ac_try_echo") >&5
19977   (eval "$ac_link") 2>conftest.er1
19978   ac_status=$?
19979   grep -v '^ *+' conftest.er1 >conftest.err
19980   rm -f conftest.er1
19981   cat conftest.err >&5
19982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983   (exit $ac_status); } && {
19984          test -z "$ac_cxx_werror_flag" ||
19985          test ! -s conftest.err
19986        } && test -s conftest$ac_exeext && {
19987          test "$cross_compiling" = yes ||
19988          $as_test_x conftest$ac_exeext
19989        }; then
19990   ac_cv_func_connect=yes
19991 else
19992   $as_echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19994
19995         ac_cv_func_connect=no
19996 fi
19997
19998 rm -rf conftest.dSYM
19999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20000       conftest$ac_exeext conftest.$ac_ext
20001 fi
20002 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20003 $as_echo "$ac_cv_func_connect" >&6; }
20004
20005     if test $ac_cv_func_connect = no; then
20006       { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20007 $as_echo_n "checking for connect in -lsocket... " >&6; }
20008 if test "${ac_cv_lib_socket_connect+set}" = set; then
20009   $as_echo_n "(cached) " >&6
20010 else
20011   ac_check_lib_save_LIBS=$LIBS
20012 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20013 cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h.  */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h.  */
20019
20020 /* Override any GCC internal prototype to avoid an error.
20021    Use char because int might match the return type of a GCC
20022    builtin and then its argument prototype would still apply.  */
20023 #ifdef __cplusplus
20024 extern "C"
20025 #endif
20026 char connect ();
20027 int
20028 main ()
20029 {
20030 return connect ();
20031   ;
20032   return 0;
20033 }
20034 _ACEOF
20035 rm -f conftest.$ac_objext conftest$ac_exeext
20036 if { (ac_try="$ac_link"
20037 case "(($ac_try" in
20038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039   *) ac_try_echo=$ac_try;;
20040 esac
20041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20042 $as_echo "$ac_try_echo") >&5
20043   (eval "$ac_link") 2>conftest.er1
20044   ac_status=$?
20045   grep -v '^ *+' conftest.er1 >conftest.err
20046   rm -f conftest.er1
20047   cat conftest.err >&5
20048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049   (exit $ac_status); } && {
20050          test -z "$ac_cxx_werror_flag" ||
20051          test ! -s conftest.err
20052        } && test -s conftest$ac_exeext && {
20053          test "$cross_compiling" = yes ||
20054          $as_test_x conftest$ac_exeext
20055        }; then
20056   ac_cv_lib_socket_connect=yes
20057 else
20058   $as_echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20060
20061         ac_cv_lib_socket_connect=no
20062 fi
20063
20064 rm -rf conftest.dSYM
20065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20066       conftest$ac_exeext conftest.$ac_ext
20067 LIBS=$ac_check_lib_save_LIBS
20068 fi
20069 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20070 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20071 if test "x$ac_cv_lib_socket_connect" = x""yes; then
20072   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20073 fi
20074
20075     fi
20076
20077     # Guillermo Gomez says -lposix is necessary on A/UX.
20078     { $as_echo "$as_me:$LINENO: checking for remove" >&5
20079 $as_echo_n "checking for remove... " >&6; }
20080 if test "${ac_cv_func_remove+set}" = set; then
20081   $as_echo_n "(cached) " >&6
20082 else
20083   cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h.  */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h.  */
20089 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20091 #define remove innocuous_remove
20092
20093 /* System header to define __stub macros and hopefully few prototypes,
20094     which can conflict with char remove (); below.
20095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20096     <limits.h> exists even on freestanding compilers.  */
20097
20098 #ifdef __STDC__
20099 # include <limits.h>
20100 #else
20101 # include <assert.h>
20102 #endif
20103
20104 #undef remove
20105
20106 /* Override any GCC internal prototype to avoid an error.
20107    Use char because int might match the return type of a GCC
20108    builtin and then its argument prototype would still apply.  */
20109 #ifdef __cplusplus
20110 extern "C"
20111 #endif
20112 char remove ();
20113 /* The GNU C library defines this for functions which it implements
20114     to always fail with ENOSYS.  Some functions are actually named
20115     something starting with __ and the normal name is an alias.  */
20116 #if defined __stub_remove || defined __stub___remove
20117 choke me
20118 #endif
20119
20120 int
20121 main ()
20122 {
20123 return remove ();
20124   ;
20125   return 0;
20126 }
20127 _ACEOF
20128 rm -f conftest.$ac_objext conftest$ac_exeext
20129 if { (ac_try="$ac_link"
20130 case "(($ac_try" in
20131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132   *) ac_try_echo=$ac_try;;
20133 esac
20134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20135 $as_echo "$ac_try_echo") >&5
20136   (eval "$ac_link") 2>conftest.er1
20137   ac_status=$?
20138   grep -v '^ *+' conftest.er1 >conftest.err
20139   rm -f conftest.er1
20140   cat conftest.err >&5
20141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142   (exit $ac_status); } && {
20143          test -z "$ac_cxx_werror_flag" ||
20144          test ! -s conftest.err
20145        } && test -s conftest$ac_exeext && {
20146          test "$cross_compiling" = yes ||
20147          $as_test_x conftest$ac_exeext
20148        }; then
20149   ac_cv_func_remove=yes
20150 else
20151   $as_echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20153
20154         ac_cv_func_remove=no
20155 fi
20156
20157 rm -rf conftest.dSYM
20158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20159       conftest$ac_exeext conftest.$ac_ext
20160 fi
20161 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20162 $as_echo "$ac_cv_func_remove" >&6; }
20163
20164     if test $ac_cv_func_remove = no; then
20165       { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20166 $as_echo_n "checking for remove in -lposix... " >&6; }
20167 if test "${ac_cv_lib_posix_remove+set}" = set; then
20168   $as_echo_n "(cached) " >&6
20169 else
20170   ac_check_lib_save_LIBS=$LIBS
20171 LIBS="-lposix  $LIBS"
20172 cat >conftest.$ac_ext <<_ACEOF
20173 /* confdefs.h.  */
20174 _ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h.  */
20178
20179 /* Override any GCC internal prototype to avoid an error.
20180    Use char because int might match the return type of a GCC
20181    builtin and then its argument prototype would still apply.  */
20182 #ifdef __cplusplus
20183 extern "C"
20184 #endif
20185 char remove ();
20186 int
20187 main ()
20188 {
20189 return remove ();
20190   ;
20191   return 0;
20192 }
20193 _ACEOF
20194 rm -f conftest.$ac_objext conftest$ac_exeext
20195 if { (ac_try="$ac_link"
20196 case "(($ac_try" in
20197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198   *) ac_try_echo=$ac_try;;
20199 esac
20200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20201 $as_echo "$ac_try_echo") >&5
20202   (eval "$ac_link") 2>conftest.er1
20203   ac_status=$?
20204   grep -v '^ *+' conftest.er1 >conftest.err
20205   rm -f conftest.er1
20206   cat conftest.err >&5
20207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208   (exit $ac_status); } && {
20209          test -z "$ac_cxx_werror_flag" ||
20210          test ! -s conftest.err
20211        } && test -s conftest$ac_exeext && {
20212          test "$cross_compiling" = yes ||
20213          $as_test_x conftest$ac_exeext
20214        }; then
20215   ac_cv_lib_posix_remove=yes
20216 else
20217   $as_echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20219
20220         ac_cv_lib_posix_remove=no
20221 fi
20222
20223 rm -rf conftest.dSYM
20224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20225       conftest$ac_exeext conftest.$ac_ext
20226 LIBS=$ac_check_lib_save_LIBS
20227 fi
20228 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20229 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20230 if test "x$ac_cv_lib_posix_remove" = x""yes; then
20231   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20232 fi
20233
20234     fi
20235
20236     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20237     { $as_echo "$as_me:$LINENO: checking for shmat" >&5
20238 $as_echo_n "checking for shmat... " >&6; }
20239 if test "${ac_cv_func_shmat+set}" = set; then
20240   $as_echo_n "(cached) " >&6
20241 else
20242   cat >conftest.$ac_ext <<_ACEOF
20243 /* confdefs.h.  */
20244 _ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h.  */
20248 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20250 #define shmat innocuous_shmat
20251
20252 /* System header to define __stub macros and hopefully few prototypes,
20253     which can conflict with char shmat (); below.
20254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20255     <limits.h> exists even on freestanding compilers.  */
20256
20257 #ifdef __STDC__
20258 # include <limits.h>
20259 #else
20260 # include <assert.h>
20261 #endif
20262
20263 #undef shmat
20264
20265 /* Override any GCC internal prototype to avoid an error.
20266    Use char because int might match the return type of a GCC
20267    builtin and then its argument prototype would still apply.  */
20268 #ifdef __cplusplus
20269 extern "C"
20270 #endif
20271 char shmat ();
20272 /* The GNU C library defines this for functions which it implements
20273     to always fail with ENOSYS.  Some functions are actually named
20274     something starting with __ and the normal name is an alias.  */
20275 #if defined __stub_shmat || defined __stub___shmat
20276 choke me
20277 #endif
20278
20279 int
20280 main ()
20281 {
20282 return shmat ();
20283   ;
20284   return 0;
20285 }
20286 _ACEOF
20287 rm -f conftest.$ac_objext 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>conftest.er1
20296   ac_status=$?
20297   grep -v '^ *+' conftest.er1 >conftest.err
20298   rm -f conftest.er1
20299   cat conftest.err >&5
20300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); } && {
20302          test -z "$ac_cxx_werror_flag" ||
20303          test ! -s conftest.err
20304        } && test -s conftest$ac_exeext && {
20305          test "$cross_compiling" = yes ||
20306          $as_test_x conftest$ac_exeext
20307        }; then
20308   ac_cv_func_shmat=yes
20309 else
20310   $as_echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20312
20313         ac_cv_func_shmat=no
20314 fi
20315
20316 rm -rf conftest.dSYM
20317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20318       conftest$ac_exeext conftest.$ac_ext
20319 fi
20320 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20321 $as_echo "$ac_cv_func_shmat" >&6; }
20322
20323     if test $ac_cv_func_shmat = no; then
20324       { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20325 $as_echo_n "checking for shmat in -lipc... " >&6; }
20326 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20327   $as_echo_n "(cached) " >&6
20328 else
20329   ac_check_lib_save_LIBS=$LIBS
20330 LIBS="-lipc  $LIBS"
20331 cat >conftest.$ac_ext <<_ACEOF
20332 /* confdefs.h.  */
20333 _ACEOF
20334 cat confdefs.h >>conftest.$ac_ext
20335 cat >>conftest.$ac_ext <<_ACEOF
20336 /* end confdefs.h.  */
20337
20338 /* Override any GCC internal prototype to avoid an error.
20339    Use char because int might match the return type of a GCC
20340    builtin and then its argument prototype would still apply.  */
20341 #ifdef __cplusplus
20342 extern "C"
20343 #endif
20344 char shmat ();
20345 int
20346 main ()
20347 {
20348 return shmat ();
20349   ;
20350   return 0;
20351 }
20352 _ACEOF
20353 rm -f conftest.$ac_objext conftest$ac_exeext
20354 if { (ac_try="$ac_link"
20355 case "(($ac_try" in
20356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357   *) ac_try_echo=$ac_try;;
20358 esac
20359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20360 $as_echo "$ac_try_echo") >&5
20361   (eval "$ac_link") 2>conftest.er1
20362   ac_status=$?
20363   grep -v '^ *+' conftest.er1 >conftest.err
20364   rm -f conftest.er1
20365   cat conftest.err >&5
20366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367   (exit $ac_status); } && {
20368          test -z "$ac_cxx_werror_flag" ||
20369          test ! -s conftest.err
20370        } && test -s conftest$ac_exeext && {
20371          test "$cross_compiling" = yes ||
20372          $as_test_x conftest$ac_exeext
20373        }; then
20374   ac_cv_lib_ipc_shmat=yes
20375 else
20376   $as_echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20378
20379         ac_cv_lib_ipc_shmat=no
20380 fi
20381
20382 rm -rf conftest.dSYM
20383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20384       conftest$ac_exeext conftest.$ac_ext
20385 LIBS=$ac_check_lib_save_LIBS
20386 fi
20387 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20388 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20389 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
20390   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20391 fi
20392
20393     fi
20394   fi
20395
20396   # Check for libraries that X11R6 Xt/Xaw programs need.
20397   ac_save_LDFLAGS=$LDFLAGS
20398   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20399   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20400   # check for ICE first), but we must link in the order -lSM -lICE or
20401   # we get undefined symbols.  So assume we have SM if we have ICE.
20402   # These have to be linked with before -lX11, unlike the other
20403   # libraries we check for below, so use a different variable.
20404   # John Interrante, Karl Berry
20405   { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20406 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20407 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20408   $as_echo_n "(cached) " >&6
20409 else
20410   ac_check_lib_save_LIBS=$LIBS
20411 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20412 cat >conftest.$ac_ext <<_ACEOF
20413 /* confdefs.h.  */
20414 _ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h.  */
20418
20419 /* Override any GCC internal prototype to avoid an error.
20420    Use char because int might match the return type of a GCC
20421    builtin and then its argument prototype would still apply.  */
20422 #ifdef __cplusplus
20423 extern "C"
20424 #endif
20425 char IceConnectionNumber ();
20426 int
20427 main ()
20428 {
20429 return IceConnectionNumber ();
20430   ;
20431   return 0;
20432 }
20433 _ACEOF
20434 rm -f conftest.$ac_objext conftest$ac_exeext
20435 if { (ac_try="$ac_link"
20436 case "(($ac_try" in
20437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438   *) ac_try_echo=$ac_try;;
20439 esac
20440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20441 $as_echo "$ac_try_echo") >&5
20442   (eval "$ac_link") 2>conftest.er1
20443   ac_status=$?
20444   grep -v '^ *+' conftest.er1 >conftest.err
20445   rm -f conftest.er1
20446   cat conftest.err >&5
20447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448   (exit $ac_status); } && {
20449          test -z "$ac_cxx_werror_flag" ||
20450          test ! -s conftest.err
20451        } && test -s conftest$ac_exeext && {
20452          test "$cross_compiling" = yes ||
20453          $as_test_x conftest$ac_exeext
20454        }; then
20455   ac_cv_lib_ICE_IceConnectionNumber=yes
20456 else
20457   $as_echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20459
20460         ac_cv_lib_ICE_IceConnectionNumber=no
20461 fi
20462
20463 rm -rf conftest.dSYM
20464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20465       conftest$ac_exeext conftest.$ac_ext
20466 LIBS=$ac_check_lib_save_LIBS
20467 fi
20468 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20469 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20470 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
20471   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20472 fi
20473
20474   LDFLAGS=$ac_save_LDFLAGS
20475
20476 fi
20477
20478 ORIG_X_SAVE_LIBS="$LIBS"
20479 LIBS="$X_PRE_LIBS $LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
20480 X_LIBS="$LIBS"
20481
20482
20483 # Check whether --enable-gui was given.
20484 if test "${enable_gui+set}" = set; then
20485   enableval=$enable_gui;
20486 else
20487   enable_gui=qt3
20488 fi
20489
20490
20491 if test "x$enable_gui"  = "xqt3"  || test "x$enable_gui"  = "xyes"; then
20492         QT_VERSION=3
20493
20494                         FATAL=0
20495
20496
20497 # Check whether --with-qt-dir was given.
20498 if test "${with_qt_dir+set}" = set; then
20499   withval=$with_qt_dir;  qt_cv_dir=`eval echo "$withval"/`
20500 fi
20501
20502
20503
20504 # Check whether --with-qt-includes was given.
20505 if test "${with_qt_includes+set}" = set; then
20506   withval=$with_qt_includes;  qt_cv_includes=`eval echo "$withval"`
20507 fi
20508
20509
20510
20511 # Check whether --with-qt-libraries was given.
20512 if test "${with_qt_libraries+set}" = set; then
20513   withval=$with_qt_libraries;   qt_cv_libraries=`eval echo "$withval"`
20514 fi
20515
20516
20517                 if test -z "$qt_cv_dir"; then
20518                 qt_cv_dir=$QTDIR
20519         fi
20520
20521                 if test -n "$qt_cv_dir"; then
20522                 if test -z "$qt_cv_includes"; then
20523                         qt_cv_includes=$qt_cv_dir/include
20524                 fi
20525                 if test -z "$qt_cv_libraries"; then
20526                         qt_cv_libraries=$qt_cv_dir/lib
20527                 fi
20528         fi
20529
20530                 QT_INCLUDES=
20531         QT_LDFLAGS=
20532         if test -n "$qt_cv_includes"; then
20533                 QT_INCLUDES="-isystem $qt_cv_includes"
20534         fi
20535         if test -n "$qt_cv_libraries"; then
20536                 QT_LDFLAGS="-L$qt_cv_libraries"
20537         fi
20538
20539
20540
20541
20542
20543         { $as_echo "$as_me:$LINENO: checking for moc2" >&5
20544 $as_echo_n "checking for moc2... " >&6; }
20545         if test "${qt_cv_path_moc2+set}" = set; then
20546   $as_echo_n "(cached) " >&6
20547 else
20548
20549                 qt_cv_path_moc2="NONE"
20550                 if test -n "$ac_moc2"; then
20551                         qt_cv_path_moc2="$ac_moc2";
20552                 else
20553                         dirs="$qt_cv_dir/bin"
20554                         qt_save_IFS=$IFS
20555                         IFS=':'
20556                         for dir in $PATH; do
20557                                 dirs="$dirs $dir"
20558                         done
20559                         IFS=$qt_save_IFS
20560
20561                         for dir in $dirs; do
20562                                 if test -x "$dir/moc2"; then
20563                                         if test -n ""; then
20564                                                 evalstr="$dir/moc2  2>&1 "
20565                                                 if eval $evalstr; then
20566                                                         qt_cv_path_moc2="$dir/moc2"
20567                                                         break
20568                                                 fi
20569                                         else
20570                                                 qt_cv_path_moc2="$dir/moc2"
20571                                                 break
20572                                         fi
20573                                 fi
20574                         done
20575                 fi
20576
20577 fi
20578
20579
20580         if test -z "$qt_cv_path_moc2" || test "$qt_cv_path_moc2" = "NONE"; then
20581                 { $as_echo "$as_me:$LINENO: result: not found" >&5
20582 $as_echo "not found" >&6; }
20583
20584         else
20585                 { $as_echo "$as_me:$LINENO: result: $qt_cv_path_moc2" >&5
20586 $as_echo "$qt_cv_path_moc2" >&6; }
20587                 ac_moc2=$qt_cv_path_moc2
20588         fi
20589
20590
20591         { $as_echo "$as_me:$LINENO: checking for moc" >&5
20592 $as_echo_n "checking for moc... " >&6; }
20593         if test "${qt_cv_path_moc+set}" = set; then
20594   $as_echo_n "(cached) " >&6
20595 else
20596
20597                 qt_cv_path_moc="NONE"
20598                 if test -n "$ac_moc1"; then
20599                         qt_cv_path_moc="$ac_moc1";
20600                 else
20601                         dirs="$qt_cv_dir/bin"
20602                         qt_save_IFS=$IFS
20603                         IFS=':'
20604                         for dir in $PATH; do
20605                                 dirs="$dirs $dir"
20606                         done
20607                         IFS=$qt_save_IFS
20608
20609                         for dir in $dirs; do
20610                                 if test -x "$dir/moc"; then
20611                                         if test -n ""; then
20612                                                 evalstr="$dir/moc  2>&1 "
20613                                                 if eval $evalstr; then
20614                                                         qt_cv_path_moc="$dir/moc"
20615                                                         break
20616                                                 fi
20617                                         else
20618                                                 qt_cv_path_moc="$dir/moc"
20619                                                 break
20620                                         fi
20621                                 fi
20622                         done
20623                 fi
20624
20625 fi
20626
20627
20628         if test -z "$qt_cv_path_moc" || test "$qt_cv_path_moc" = "NONE"; then
20629                 { $as_echo "$as_me:$LINENO: result: not found" >&5
20630 $as_echo "not found" >&6; }
20631
20632         else
20633                 { $as_echo "$as_me:$LINENO: result: $qt_cv_path_moc" >&5
20634 $as_echo "$qt_cv_path_moc" >&6; }
20635                 ac_moc1=$qt_cv_path_moc
20636         fi
20637
20638
20639         if test -n "$ac_moc1" -a -n "$ac_moc2"; then
20640                                 $ac_moc1 -v 2>&1 | grep "Qt 3" >/dev/null
20641                 if test "$?" = 0; then
20642                         ac_moc=$ac_moc1;
20643                 else
20644                         ac_moc=$ac_moc2;
20645                 fi
20646         else
20647                 if test -n "$ac_moc1"; then
20648                         ac_moc=$ac_moc1;
20649                 else
20650                         ac_moc=$ac_moc2;
20651                 fi
20652         fi
20653
20654         if test -z "$ac_moc"  -a "$FATAL" = 1; then
20655                 { { $as_echo "$as_me:$LINENO: error: moc binary not found in \$PATH or $qt_cv_dir/bin !" >&5
20656 $as_echo "$as_me: error: moc binary not found in \$PATH or $qt_cv_dir/bin !" >&2;}
20657    { (exit 1); exit 1; }; }
20658         fi
20659
20660         MOC=$ac_moc
20661
20662
20663
20664         { $as_echo "$as_me:$LINENO: checking for uic" >&5
20665 $as_echo_n "checking for uic... " >&6; }
20666         if test "${qt_cv_path_uic+set}" = set; then
20667   $as_echo_n "(cached) " >&6
20668 else
20669
20670                 qt_cv_path_uic="NONE"
20671                 if test -n "$ac_uic"; then
20672                         qt_cv_path_uic="$ac_uic";
20673                 else
20674                         dirs="$qt_cv_dir/bin"
20675                         qt_save_IFS=$IFS
20676                         IFS=':'
20677                         for dir in $PATH; do
20678                                 dirs="$dirs $dir"
20679                         done
20680                         IFS=$qt_save_IFS
20681
20682                         for dir in $dirs; do
20683                                 if test -x "$dir/uic"; then
20684                                         if test -n ""; then
20685                                                 evalstr="$dir/uic  2>&1 "
20686                                                 if eval $evalstr; then
20687                                                         qt_cv_path_uic="$dir/uic"
20688                                                         break
20689                                                 fi
20690                                         else
20691                                                 qt_cv_path_uic="$dir/uic"
20692                                                 break
20693                                         fi
20694                                 fi
20695                         done
20696                 fi
20697
20698 fi
20699
20700
20701         if test -z "$qt_cv_path_uic" || test "$qt_cv_path_uic" = "NONE"; then
20702                 { $as_echo "$as_me:$LINENO: result: not found" >&5
20703 $as_echo "not found" >&6; }
20704
20705         else
20706                 { $as_echo "$as_me:$LINENO: result: $qt_cv_path_uic" >&5
20707 $as_echo "$qt_cv_path_uic" >&6; }
20708                 ac_uic=$qt_cv_path_uic
20709         fi
20710
20711         if test -z "$ac_uic" -a "$FATAL" = 1; then
20712                 { { $as_echo "$as_me:$LINENO: error: uic binary not found in \$PATH or $qt_cv_dir/bin !" >&5
20713 $as_echo "$as_me: error: uic binary not found in \$PATH or $qt_cv_dir/bin !" >&2;}
20714    { (exit 1); exit 1; }; }
20715         fi
20716
20717         UIC=$ac_uic
20718
20719
20720
20721         { $as_echo "$as_me:$LINENO: checking in lib for Qt library name" >&5
20722 $as_echo_n "checking in lib for Qt library name... " >&6; }
20723
20724         if test "${qt_cv_libname+set}" = set; then
20725   $as_echo_n "(cached) " >&6
20726 else
20727
20728                 ac_ext=cpp
20729 ac_cpp='$CXXCPP $CPPFLAGS'
20730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20733
20734                 SAVE_CXXFLAGS=$CXXFLAGS
20735                 CXXFLAGS="$CXXFLAGS $QT_INCLUDES $QT_LDFLAGS"
20736
20737                 for libname in -lqt-mt -lqt3 -lqt2 -lqt;
20738                 do
20739
20740         SAVE_LIBS="$LIBS"
20741         LIBS="$LIBS $libname"
20742         cat >conftest.$ac_ext <<_ACEOF
20743 /* confdefs.h.  */
20744 _ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h.  */
20748
20749         #include <qglobal.h>
20750         #include <qstring.h>
20751
20752 int
20753 main ()
20754 {
20755
20756         QString s("mangle_failure");
20757         #if (QT_VERSION < 221)
20758         break_me_(\\\);
20759         #endif
20760
20761   ;
20762   return 0;
20763 }
20764 _ACEOF
20765 rm -f conftest.$ac_objext conftest$ac_exeext
20766 if { (ac_try="$ac_link"
20767 case "(($ac_try" in
20768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769   *) ac_try_echo=$ac_try;;
20770 esac
20771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20772 $as_echo "$ac_try_echo") >&5
20773   (eval "$ac_link") 2>conftest.er1
20774   ac_status=$?
20775   grep -v '^ *+' conftest.er1 >conftest.err
20776   rm -f conftest.er1
20777   cat conftest.err >&5
20778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779   (exit $ac_status); } && {
20780          test -z "$ac_cxx_werror_flag" ||
20781          test ! -s conftest.err
20782        } && test -s conftest$ac_exeext && {
20783          test "$cross_compiling" = yes ||
20784          $as_test_x conftest$ac_exeext
20785        }; then
20786   qt_cv_libname=$libname
20787 else
20788   $as_echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20790
20791
20792 fi
20793
20794 rm -rf conftest.dSYM
20795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20796       conftest$ac_exeext conftest.$ac_ext
20797         LIBS="$SAVE_LIBS"
20798
20799                         if test -n "$qt_cv_libname"; then
20800                                 break;
20801                         fi
20802                 done
20803
20804                 CXXFLAGS=$SAVE_CXXFLAGS
20805
20806 fi
20807
20808
20809         if test -z "$qt_cv_libname"; then
20810                 { $as_echo "$as_me:$LINENO: result: failed" >&5
20811 $as_echo "failed" >&6; }
20812                 if test "$FATAL" = 1 ; then
20813                         { { $as_echo "$as_me:$LINENO: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&5
20814 $as_echo "$as_me: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&2;}
20815    { (exit 1); exit 1; }; }
20816                 fi
20817         else
20818                 { $as_echo "$as_me:$LINENO: result: $qt_cv_libname" >&5
20819 $as_echo "$qt_cv_libname" >&6; }
20820         fi
20821
20822         if test -z "$qt_cv_libname"; then
20823                 if test -n "$qt_cv_dir"; then
20824                                         qt_cv_libraries=$qt_cv_dir/lib64
20825                         QT_LDFLAGS="-L$qt_cv_libraries"
20826
20827         { $as_echo "$as_me:$LINENO: checking in lib64 for Qt library name" >&5
20828 $as_echo_n "checking in lib64 for Qt library name... " >&6; }
20829
20830         if test "${qt_cv_libname+set}" = set; then
20831   $as_echo_n "(cached) " >&6
20832 else
20833
20834                 ac_ext=cpp
20835 ac_cpp='$CXXCPP $CPPFLAGS'
20836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20839
20840                 SAVE_CXXFLAGS=$CXXFLAGS
20841                 CXXFLAGS="$CXXFLAGS $QT_INCLUDES $QT_LDFLAGS"
20842
20843                 for libname in -lqt-mt -lqt3 -lqt2 -lqt;
20844                 do
20845
20846         SAVE_LIBS="$LIBS"
20847         LIBS="$LIBS $libname"
20848         cat >conftest.$ac_ext <<_ACEOF
20849 /* confdefs.h.  */
20850 _ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h.  */
20854
20855         #include <qglobal.h>
20856         #include <qstring.h>
20857
20858 int
20859 main ()
20860 {
20861
20862         QString s("mangle_failure");
20863         #if (QT_VERSION < 221)
20864         break_me_(\\\);
20865         #endif
20866
20867   ;
20868   return 0;
20869 }
20870 _ACEOF
20871 rm -f conftest.$ac_objext conftest$ac_exeext
20872 if { (ac_try="$ac_link"
20873 case "(($ac_try" in
20874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875   *) ac_try_echo=$ac_try;;
20876 esac
20877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20878 $as_echo "$ac_try_echo") >&5
20879   (eval "$ac_link") 2>conftest.er1
20880   ac_status=$?
20881   grep -v '^ *+' conftest.er1 >conftest.err
20882   rm -f conftest.er1
20883   cat conftest.err >&5
20884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); } && {
20886          test -z "$ac_cxx_werror_flag" ||
20887          test ! -s conftest.err
20888        } && test -s conftest$ac_exeext && {
20889          test "$cross_compiling" = yes ||
20890          $as_test_x conftest$ac_exeext
20891        }; then
20892   qt_cv_libname=$libname
20893 else
20894   $as_echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20896
20897
20898 fi
20899
20900 rm -rf conftest.dSYM
20901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20902       conftest$ac_exeext conftest.$ac_ext
20903         LIBS="$SAVE_LIBS"
20904
20905                         if test -n "$qt_cv_libname"; then
20906                                 break;
20907                         fi
20908                 done
20909
20910                 CXXFLAGS=$SAVE_CXXFLAGS
20911
20912 fi
20913
20914
20915         if test -z "$qt_cv_libname"; then
20916                 { $as_echo "$as_me:$LINENO: result: failed" >&5
20917 $as_echo "failed" >&6; }
20918                 if test "$FATAL" = 1 ; then
20919                         { { $as_echo "$as_me:$LINENO: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&5
20920 $as_echo "$as_me: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&2;}
20921    { (exit 1); exit 1; }; }
20922                 fi
20923         else
20924                 { $as_echo "$as_me:$LINENO: result: $qt_cv_libname" >&5
20925 $as_echo "$qt_cv_libname" >&6; }
20926         fi
20927
20928                 fi
20929         fi
20930
20931         QT_LIB=$qt_cv_libname;
20932
20933
20934         if test -n "$qt_cv_libname"; then
20935
20936         { $as_echo "$as_me:$LINENO: checking Qt version" >&5
20937 $as_echo_n "checking Qt version... " >&6; }
20938 if test "${lyx_cv_qtversion+set}" = set; then
20939   $as_echo_n "(cached) " >&6
20940 else
20941
20942                 ac_ext=cpp
20943 ac_cpp='$CXXCPP $CPPFLAGS'
20944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20947
20948                 SAVE_CPPFLAGS=$CPPFLAGS
20949                 CPPFLAGS="$CPPFLAGS $QT_INCLUDES"
20950
20951                 cat > conftest.$ac_ext <<EOF
20952 #line 20952 "configure"
20953 #include "confdefs.h"
20954 #include <qglobal.h>
20955 "%%%"QT_VERSION_STR"%%%"
20956 EOF
20957                 lyx_cv_qtversion=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | \
20958                         grep '^"%%%"'  2>/dev/null | \
20959                         sed -e 's/"%%%"//g' -e 's/"//g'`
20960                 rm -f conftest.$ac_ext
20961                 CPPFLAGS=$SAVE_CPPFLAGS
20962
20963 fi
20964 { $as_echo "$as_me:$LINENO: result: $lyx_cv_qtversion" >&5
20965 $as_echo "$lyx_cv_qtversion" >&6; }
20966
20967         QT_VERSION=$lyx_cv_qtversion
20968
20969
20970         fi
20971
20972         if test -n "$QT_LIB"; then
20973                 QT_LIBS="$QT_LIB $QT_LDFLAGS"
20974         fi
20975         QT_CFLAGS="$QT_INCLUDES"
20976 fi
20977
20978 if test "x$enable_gui"  = "xqt4"; then
20979         QT_VERSION=4
20980
20981 pkg_failed=no
20982 { $as_echo "$as_me:$LINENO: checking for QT" >&5
20983 $as_echo_n "checking for QT... " >&6; }
20984
20985 if test -n "$QT_CFLAGS"; then
20986     pkg_cv_QT_CFLAGS="$QT_CFLAGS"
20987  elif test -n "$PKG_CONFIG"; then
20988     if test -n "$PKG_CONFIG" && \
20989     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"Qt3Support QtGui QtCore \"") >&5
20990   ($PKG_CONFIG --exists --print-errors "Qt3Support QtGui QtCore ") 2>&5
20991   ac_status=$?
20992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); }; then
20994   pkg_cv_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt3Support QtGui QtCore " 2>/dev/null`
20995 else
20996   pkg_failed=yes
20997 fi
20998  else
20999     pkg_failed=untried
21000 fi
21001 if test -n "$QT_LIBS"; then
21002     pkg_cv_QT_LIBS="$QT_LIBS"
21003  elif test -n "$PKG_CONFIG"; then
21004     if test -n "$PKG_CONFIG" && \
21005     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"Qt3Support QtGui QtCore \"") >&5
21006   ($PKG_CONFIG --exists --print-errors "Qt3Support QtGui QtCore ") 2>&5
21007   ac_status=$?
21008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009   (exit $ac_status); }; then
21010   pkg_cv_QT_LIBS=`$PKG_CONFIG --libs "Qt3Support QtGui QtCore " 2>/dev/null`
21011 else
21012   pkg_failed=yes
21013 fi
21014  else
21015     pkg_failed=untried
21016 fi
21017
21018
21019
21020 if test $pkg_failed = yes; then
21021
21022 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21023         _pkg_short_errors_supported=yes
21024 else
21025         _pkg_short_errors_supported=no
21026 fi
21027         if test $_pkg_short_errors_supported = yes; then
21028                 QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "Qt3Support QtGui QtCore " 2>&1`
21029         else
21030                 QT_PKG_ERRORS=`$PKG_CONFIG --print-errors "Qt3Support QtGui QtCore " 2>&1`
21031         fi
21032         # Put the nasty error message in config.log where it belongs
21033         echo "$QT_PKG_ERRORS" >&5
21034
21035         { $as_echo "$as_me:$LINENO: result: no" >&5
21036 $as_echo "no" >&6; }
21037
21038         echo "You requested QT4 but its build files are not available. Exiting now."
21039         exit
21040
21041 elif test $pkg_failed = untried; then
21042
21043         echo "You requested QT4 but its build files are not available. Exiting now."
21044         exit
21045
21046 else
21047         QT_CFLAGS=$pkg_cv_QT_CFLAGS
21048         QT_LIBS=$pkg_cv_QT_LIBS
21049         { $as_echo "$as_me:$LINENO: result: yes" >&5
21050 $as_echo "yes" >&6; }
21051         :
21052 fi
21053         MOC=$(pkg-config --variable=moc_location QtCore)
21054         UIC=$(dirname $(pkg-config --variable=uic_location QtCore))/uic3
21055         QT_VERSION=$(pkg-config --modversion QtCore)
21056
21057         if test "x$MOC" = "x"; then
21058                 echo "WARNING: Your QtCore.pc file is buggy, it doesn't provide the variable 'moc_location'"
21059                 echo "WARNING: I will try to find it in your PATH ..."
21060                 # Extract the first word of "moc", so it can be a program name with args.
21061 set dummy moc; ac_word=$2
21062 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21063 $as_echo_n "checking for $ac_word... " >&6; }
21064 if test "${ac_cv_prog_MOC+set}" = set; then
21065   $as_echo_n "(cached) " >&6
21066 else
21067   if test -n "$MOC"; then
21068   ac_cv_prog_MOC="$MOC" # Let the user override the test.
21069 else
21070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21071 for as_dir in $PATH
21072 do
21073   IFS=$as_save_IFS
21074   test -z "$as_dir" && as_dir=.
21075   for ac_exec_ext in '' $ac_executable_extensions; do
21076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21077     ac_cv_prog_MOC="moc"
21078     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21079     break 2
21080   fi
21081 done
21082 done
21083 IFS=$as_save_IFS
21084
21085 fi
21086 fi
21087 MOC=$ac_cv_prog_MOC
21088 if test -n "$MOC"; then
21089   { $as_echo "$as_me:$LINENO: result: $MOC" >&5
21090 $as_echo "$MOC" >&6; }
21091 else
21092   { $as_echo "$as_me:$LINENO: result: no" >&5
21093 $as_echo "no" >&6; }
21094 fi
21095
21096
21097                 if test "x$MOC" = "x"; then
21098                         echo "WARNING: You can fix this by adding the location of moc to your path."
21099                         echo "WARNING: Exiting now."
21100                         exit
21101                 fi
21102         fi
21103
21104         if test "x$UIC" = "x3"; then
21105                 echo "WARNING: Your QtCore.pc file is buggy, it doesn't provide the variable 'uic_location'"
21106                 echo "WARNING: I will try to find it in your PATH ..."
21107                 # Extract the first word of "uic3", so it can be a program name with args.
21108 set dummy uic3; ac_word=$2
21109 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21110 $as_echo_n "checking for $ac_word... " >&6; }
21111 if test "${ac_cv_prog_UIChelp+set}" = set; then
21112   $as_echo_n "(cached) " >&6
21113 else
21114   if test -n "$UIChelp"; then
21115   ac_cv_prog_UIChelp="$UIChelp" # Let the user override the test.
21116 else
21117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21118 for as_dir in $PATH
21119 do
21120   IFS=$as_save_IFS
21121   test -z "$as_dir" && as_dir=.
21122   for ac_exec_ext in '' $ac_executable_extensions; do
21123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21124     ac_cv_prog_UIChelp="uic3"
21125     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21126     break 2
21127   fi
21128 done
21129 done
21130 IFS=$as_save_IFS
21131
21132 fi
21133 fi
21134 UIChelp=$ac_cv_prog_UIChelp
21135 if test -n "$UIChelp"; then
21136   { $as_echo "$as_me:$LINENO: result: $UIChelp" >&5
21137 $as_echo "$UIChelp" >&6; }
21138 else
21139   { $as_echo "$as_me:$LINENO: result: no" >&5
21140 $as_echo "no" >&6; }
21141 fi
21142
21143
21144                 if test "x$UIChelp" = "x"; then
21145                         echo "WARNING: You can fix this by adding the location of uic3 to your path."
21146                         echo "WARNING: Exiting now."
21147                         exit
21148                 else
21149                         UIC="$UIChelp"
21150                 fi
21151         fi
21152
21153         flags_has_qt3support=$(echo $QT_CFLAGS | grep QT3_SUPPORT)
21154         if test "x$flags_has_qt3support" = "x" ; then
21155                 echo "WARNING: Your Qt3Support package is buggy; it dosn't include the 'QT3_SUPPORT' flag"
21156                 echo "WARNING: adding it manually"
21157                 QT_CFLAGS="$QT_CFLAGS -DQT3_SUPPORT"
21158         fi
21159 fi
21160  if test -n "$QT_LIBS"; then
21161   have_qt_TRUE=
21162   have_qt_FALSE='#'
21163 else
21164   have_qt_TRUE='#'
21165   have_qt_FALSE=
21166 fi
21167
21168
21169 LIBS="$ORIG_X_SAVE_LIBS"
21170
21171 # Check whether --enable-pch was given.
21172 if test "${enable_pch+set}" = set; then
21173   enableval=$enable_pch; enable_pch=$enableval
21174 else
21175   enable_pch=no
21176 fi
21177
21178 if test "$enable_pch" = yes; then
21179
21180 { $as_echo "$as_me:$LINENO: checking whether ${CXX} support precompiled header" >&5
21181 $as_echo_n "checking whether ${CXX} support precompiled header... " >&6; }
21182
21183 ac_ext=cpp
21184 ac_cpp='$CXXCPP $CPPFLAGS'
21185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21188
21189 SAVE_CXXFLAGS=$CXXFLAGS
21190 CXXFLAGS=-Winvalid-pch
21191 cat >conftest.$ac_ext <<_ACEOF
21192 /* confdefs.h.  */
21193 _ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h.  */
21197
21198 int
21199 main ()
21200 {
21201 ;
21202   ;
21203   return 0;
21204 }
21205 _ACEOF
21206 rm -f conftest.$ac_objext
21207 if { (ac_try="$ac_compile"
21208 case "(($ac_try" in
21209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210   *) ac_try_echo=$ac_try;;
21211 esac
21212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21213 $as_echo "$ac_try_echo") >&5
21214   (eval "$ac_compile") 2>conftest.er1
21215   ac_status=$?
21216   grep -v '^ *+' conftest.er1 >conftest.err
21217   rm -f conftest.er1
21218   cat conftest.err >&5
21219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220   (exit $ac_status); } && {
21221          test -z "$ac_cxx_werror_flag" ||
21222          test ! -s conftest.err
21223        } && test -s conftest.$ac_objext; then
21224   { $as_echo "$as_me:$LINENO: result: yes" >&5
21225 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -include bits/stdc++.h"
21226 else
21227   $as_echo "$as_me: failed program was:" >&5
21228 sed 's/^/| /' conftest.$ac_ext >&5
21229
21230         { $as_echo "$as_me:$LINENO: result: no" >&5
21231 $as_echo "no" >&6; }
21232 fi
21233
21234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21235 CXXFLAGS=$SAVE_CXXFLAGS
21236 ac_ext=cpp
21237 ac_cpp='$CXXCPP $CPPFLAGS'
21238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21241
21242
21243 fi
21244
21245
21246 # It's just rude to go over the net to build
21247 XSLTPROC_FLAGS=--nonet
21248 DOCBOOK_ROOT=
21249 if test ! -f /etc/xml/catalog; then
21250         for i in /usr/share/sgml/docbook/stylesheet/xsl/nwalsh /usr/share/sgml/docbook/xsl-stylesheets/;
21251         do
21252                 if test -d "$i"; then
21253                         DOCBOOK_ROOT=$i
21254                 fi
21255         done
21256
21257         # Last resort - try net
21258         if test -z "$DOCBOOK_ROOT"; then
21259                 XSLTPROC_FLAGS=
21260         fi
21261 else
21262         XML_CATALOG=/etc/xml/catalog
21263         CAT_ENTRY_START='<!--'
21264         CAT_ENTRY_END='-->'
21265 fi
21266
21267 # Extract the first word of "xsltproc", so it can be a program name with args.
21268 set dummy xsltproc; ac_word=$2
21269 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21270 $as_echo_n "checking for $ac_word... " >&6; }
21271 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
21272   $as_echo_n "(cached) " >&6
21273 else
21274   if test -n "$XSLTPROC"; then
21275   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
21276 else
21277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21278 for as_dir in $PATH
21279 do
21280   IFS=$as_save_IFS
21281   test -z "$as_dir" && as_dir=.
21282   for ac_exec_ext in '' $ac_executable_extensions; do
21283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21284     ac_cv_prog_XSLTPROC="xsltproc"
21285     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21286     break 2
21287   fi
21288 done
21289 done
21290 IFS=$as_save_IFS
21291
21292 fi
21293 fi
21294 XSLTPROC=$ac_cv_prog_XSLTPROC
21295 if test -n "$XSLTPROC"; then
21296   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
21297 $as_echo "$XSLTPROC" >&6; }
21298 else
21299   { $as_echo "$as_me:$LINENO: result: no" >&5
21300 $as_echo "no" >&6; }
21301 fi
21302
21303
21304 XSLTPROC_WORKS=no
21305 if test -n "$XSLTPROC"; then
21306         { $as_echo "$as_me:$LINENO: checking whether xsltproc works" >&5
21307 $as_echo_n "checking whether xsltproc works... " >&6; }
21308
21309         if test -n "$XML_CATALOG"; then
21310                 DB_FILE="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"
21311         else
21312                 DB_FILE="$DOCBOOK_ROOT/docbook.xsl"
21313         fi
21314
21315         $XSLTPROC $XSLTPROC_FLAGS $DB_FILE >/dev/null 2>&1 << END
21316 <?xml version="1.0" encoding='ISO-8859-1'?>
21317 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
21318 <book id="test">
21319 </book>
21320 END
21321         if test "$?" = 0; then
21322                 XSLTPROC_WORKS=yes
21323         fi
21324         { $as_echo "$as_me:$LINENO: result: $XSLTPROC_WORKS" >&5
21325 $as_echo "$XSLTPROC_WORKS" >&6; }
21326 fi
21327  if test "$XSLTPROC_WORKS" = "yes"; then
21328   have_xsltproc_TRUE=
21329   have_xsltproc_FALSE='#'
21330 else
21331   have_xsltproc_TRUE='#'
21332   have_xsltproc_FALSE=
21333 fi
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343 LIBS="$ORIG_SAVE_LIBS"
21344 LIBERTY_LIBS="-liberty $DL_LIB $INTL_LIB"
21345 BFD_LIBS="-lbfd -liberty $DL_LIB $INTL_LIB $Z_LIB"
21346 POPT_LIBS="-lpopt"
21347
21348
21349
21350
21351 # do NOT put tests here, they will fail in the case X is not installed !
21352
21353
21354
21355 { $as_echo "$as_me:$LINENO: checking whether ${CC} -W is understood" >&5
21356 $as_echo_n "checking whether ${CC} -W is understood... " >&6; }
21357
21358 ac_ext=c
21359 ac_cpp='$CPP $CPPFLAGS'
21360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21363
21364 SAVE_CFLAGS=$CFLAGS
21365 CFLAGS=-W
21366 cat >conftest.$ac_ext <<_ACEOF
21367 /* confdefs.h.  */
21368 _ACEOF
21369 cat confdefs.h >>conftest.$ac_ext
21370 cat >>conftest.$ac_ext <<_ACEOF
21371 /* end confdefs.h.  */
21372
21373 int
21374 main ()
21375 {
21376 ;
21377   ;
21378   return 0;
21379 }
21380 _ACEOF
21381 rm -f conftest.$ac_objext
21382 if { (ac_try="$ac_compile"
21383 case "(($ac_try" in
21384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21385   *) ac_try_echo=$ac_try;;
21386 esac
21387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21388 $as_echo "$ac_try_echo") >&5
21389   (eval "$ac_compile") 2>conftest.er1
21390   ac_status=$?
21391   grep -v '^ *+' conftest.er1 >conftest.err
21392   rm -f conftest.er1
21393   cat conftest.err >&5
21394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395   (exit $ac_status); } && {
21396          test -z "$ac_c_werror_flag" ||
21397          test ! -s conftest.err
21398        } && test -s conftest.$ac_objext; then
21399   { $as_echo "$as_me:$LINENO: result: yes" >&5
21400 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -W"
21401 else
21402   $as_echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21404
21405         { $as_echo "$as_me:$LINENO: result: no" >&5
21406 $as_echo "no" >&6; }
21407 fi
21408
21409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21410 CFLAGS=$SAVE_CFLAGS
21411 ac_ext=cpp
21412 ac_cpp='$CXXCPP $CPPFLAGS'
21413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21416
21417
21418
21419 { $as_echo "$as_me:$LINENO: checking whether ${CXX} -W is understood" >&5
21420 $as_echo_n "checking whether ${CXX} -W is understood... " >&6; }
21421
21422 ac_ext=cpp
21423 ac_cpp='$CXXCPP $CPPFLAGS'
21424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21427
21428 SAVE_CXXFLAGS=$CXXFLAGS
21429 CXXFLAGS=-W
21430 cat >conftest.$ac_ext <<_ACEOF
21431 /* confdefs.h.  */
21432 _ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h.  */
21436
21437 int
21438 main ()
21439 {
21440 ;
21441   ;
21442   return 0;
21443 }
21444 _ACEOF
21445 rm -f conftest.$ac_objext
21446 if { (ac_try="$ac_compile"
21447 case "(($ac_try" in
21448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449   *) ac_try_echo=$ac_try;;
21450 esac
21451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21452 $as_echo "$ac_try_echo") >&5
21453   (eval "$ac_compile") 2>conftest.er1
21454   ac_status=$?
21455   grep -v '^ *+' conftest.er1 >conftest.err
21456   rm -f conftest.er1
21457   cat conftest.err >&5
21458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); } && {
21460          test -z "$ac_cxx_werror_flag" ||
21461          test ! -s conftest.err
21462        } && test -s conftest.$ac_objext; then
21463   { $as_echo "$as_me:$LINENO: result: yes" >&5
21464 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -W"
21465 else
21466   $as_echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21468
21469         { $as_echo "$as_me:$LINENO: result: no" >&5
21470 $as_echo "no" >&6; }
21471 fi
21472
21473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21474 CXXFLAGS=$SAVE_CXXFLAGS
21475 ac_ext=cpp
21476 ac_cpp='$CXXCPP $CPPFLAGS'
21477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21480
21481
21482
21483 { $as_echo "$as_me:$LINENO: checking whether ${CC} -Wall is understood" >&5
21484 $as_echo_n "checking whether ${CC} -Wall is understood... " >&6; }
21485
21486 ac_ext=c
21487 ac_cpp='$CPP $CPPFLAGS'
21488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21491
21492 SAVE_CFLAGS=$CFLAGS
21493 CFLAGS=-Wall
21494 cat >conftest.$ac_ext <<_ACEOF
21495 /* confdefs.h.  */
21496 _ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h.  */
21500
21501 int
21502 main ()
21503 {
21504 ;
21505   ;
21506   return 0;
21507 }
21508 _ACEOF
21509 rm -f conftest.$ac_objext
21510 if { (ac_try="$ac_compile"
21511 case "(($ac_try" in
21512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21513   *) ac_try_echo=$ac_try;;
21514 esac
21515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21516 $as_echo "$ac_try_echo") >&5
21517   (eval "$ac_compile") 2>conftest.er1
21518   ac_status=$?
21519   grep -v '^ *+' conftest.er1 >conftest.err
21520   rm -f conftest.er1
21521   cat conftest.err >&5
21522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523   (exit $ac_status); } && {
21524          test -z "$ac_c_werror_flag" ||
21525          test ! -s conftest.err
21526        } && test -s conftest.$ac_objext; then
21527   { $as_echo "$as_me:$LINENO: result: yes" >&5
21528 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -Wall"
21529 else
21530   $as_echo "$as_me: failed program was:" >&5
21531 sed 's/^/| /' conftest.$ac_ext >&5
21532
21533         { $as_echo "$as_me:$LINENO: result: no" >&5
21534 $as_echo "no" >&6; }
21535 fi
21536
21537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21538 CFLAGS=$SAVE_CFLAGS
21539 ac_ext=cpp
21540 ac_cpp='$CXXCPP $CPPFLAGS'
21541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21544
21545
21546
21547 { $as_echo "$as_me:$LINENO: checking whether ${CXX} -Wall is understood" >&5
21548 $as_echo_n "checking whether ${CXX} -Wall is understood... " >&6; }
21549
21550 ac_ext=cpp
21551 ac_cpp='$CXXCPP $CPPFLAGS'
21552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21555
21556 SAVE_CXXFLAGS=$CXXFLAGS
21557 CXXFLAGS=-Wall
21558 cat >conftest.$ac_ext <<_ACEOF
21559 /* confdefs.h.  */
21560 _ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h.  */
21564
21565 int
21566 main ()
21567 {
21568 ;
21569   ;
21570   return 0;
21571 }
21572 _ACEOF
21573 rm -f conftest.$ac_objext
21574 if { (ac_try="$ac_compile"
21575 case "(($ac_try" in
21576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577   *) ac_try_echo=$ac_try;;
21578 esac
21579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21580 $as_echo "$ac_try_echo") >&5
21581   (eval "$ac_compile") 2>conftest.er1
21582   ac_status=$?
21583   grep -v '^ *+' conftest.er1 >conftest.err
21584   rm -f conftest.er1
21585   cat conftest.err >&5
21586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); } && {
21588          test -z "$ac_cxx_werror_flag" ||
21589          test ! -s conftest.err
21590        } && test -s conftest.$ac_objext; then
21591   { $as_echo "$as_me:$LINENO: result: yes" >&5
21592 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -Wall"
21593 else
21594   $as_echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21596
21597         { $as_echo "$as_me:$LINENO: result: no" >&5
21598 $as_echo "no" >&6; }
21599 fi
21600
21601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21602 CXXFLAGS=$SAVE_CXXFLAGS
21603 ac_ext=cpp
21604 ac_cpp='$CXXCPP $CPPFLAGS'
21605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21608
21609
21610
21611 { $as_echo "$as_me:$LINENO: checking whether ${CC} -fno-common is understood" >&5
21612 $as_echo_n "checking whether ${CC} -fno-common is understood... " >&6; }
21613
21614 ac_ext=c
21615 ac_cpp='$CPP $CPPFLAGS'
21616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21619
21620 SAVE_CFLAGS=$CFLAGS
21621 CFLAGS=-fno-common
21622 cat >conftest.$ac_ext <<_ACEOF
21623 /* confdefs.h.  */
21624 _ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h.  */
21628
21629 int
21630 main ()
21631 {
21632 ;
21633   ;
21634   return 0;
21635 }
21636 _ACEOF
21637 rm -f conftest.$ac_objext
21638 if { (ac_try="$ac_compile"
21639 case "(($ac_try" in
21640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21641   *) ac_try_echo=$ac_try;;
21642 esac
21643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21644 $as_echo "$ac_try_echo") >&5
21645   (eval "$ac_compile") 2>conftest.er1
21646   ac_status=$?
21647   grep -v '^ *+' conftest.er1 >conftest.err
21648   rm -f conftest.er1
21649   cat conftest.err >&5
21650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); } && {
21652          test -z "$ac_c_werror_flag" ||
21653          test ! -s conftest.err
21654        } && test -s conftest.$ac_objext; then
21655   { $as_echo "$as_me:$LINENO: result: yes" >&5
21656 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -fno-common"
21657 else
21658   $as_echo "$as_me: failed program was:" >&5
21659 sed 's/^/| /' conftest.$ac_ext >&5
21660
21661         { $as_echo "$as_me:$LINENO: result: no" >&5
21662 $as_echo "no" >&6; }
21663 fi
21664
21665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21666 CFLAGS=$SAVE_CFLAGS
21667 ac_ext=cpp
21668 ac_cpp='$CXXCPP $CPPFLAGS'
21669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21672
21673
21674
21675 { $as_echo "$as_me:$LINENO: checking whether ${CXX} -fno-common is understood" >&5
21676 $as_echo_n "checking whether ${CXX} -fno-common is understood... " >&6; }
21677
21678 ac_ext=cpp
21679 ac_cpp='$CXXCPP $CPPFLAGS'
21680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21683
21684 SAVE_CXXFLAGS=$CXXFLAGS
21685 CXXFLAGS=-fno-common
21686 cat >conftest.$ac_ext <<_ACEOF
21687 /* confdefs.h.  */
21688 _ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h.  */
21692
21693 int
21694 main ()
21695 {
21696 ;
21697   ;
21698   return 0;
21699 }
21700 _ACEOF
21701 rm -f conftest.$ac_objext
21702 if { (ac_try="$ac_compile"
21703 case "(($ac_try" in
21704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705   *) ac_try_echo=$ac_try;;
21706 esac
21707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21708 $as_echo "$ac_try_echo") >&5
21709   (eval "$ac_compile") 2>conftest.er1
21710   ac_status=$?
21711   grep -v '^ *+' conftest.er1 >conftest.err
21712   rm -f conftest.er1
21713   cat conftest.err >&5
21714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); } && {
21716          test -z "$ac_cxx_werror_flag" ||
21717          test ! -s conftest.err
21718        } && test -s conftest.$ac_objext; then
21719   { $as_echo "$as_me:$LINENO: result: yes" >&5
21720 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -fno-common"
21721 else
21722   $as_echo "$as_me: failed program was:" >&5
21723 sed 's/^/| /' conftest.$ac_ext >&5
21724
21725         { $as_echo "$as_me:$LINENO: result: no" >&5
21726 $as_echo "no" >&6; }
21727 fi
21728
21729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21730 CXXFLAGS=$SAVE_CXXFLAGS
21731 ac_ext=cpp
21732 ac_cpp='$CXXCPP $CPPFLAGS'
21733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21736
21737
21738
21739 { $as_echo "$as_me:$LINENO: checking whether ${CXX} -ftemplate-depth-50 is understood" >&5
21740 $as_echo_n "checking whether ${CXX} -ftemplate-depth-50 is understood... " >&6; }
21741
21742 ac_ext=cpp
21743 ac_cpp='$CXXCPP $CPPFLAGS'
21744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21747
21748 SAVE_CXXFLAGS=$CXXFLAGS
21749 CXXFLAGS=-ftemplate-depth-50
21750 cat >conftest.$ac_ext <<_ACEOF
21751 /* confdefs.h.  */
21752 _ACEOF
21753 cat confdefs.h >>conftest.$ac_ext
21754 cat >>conftest.$ac_ext <<_ACEOF
21755 /* end confdefs.h.  */
21756
21757 int
21758 main ()
21759 {
21760 ;
21761   ;
21762   return 0;
21763 }
21764 _ACEOF
21765 rm -f conftest.$ac_objext
21766 if { (ac_try="$ac_compile"
21767 case "(($ac_try" in
21768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21769   *) ac_try_echo=$ac_try;;
21770 esac
21771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21772 $as_echo "$ac_try_echo") >&5
21773   (eval "$ac_compile") 2>conftest.er1
21774   ac_status=$?
21775   grep -v '^ *+' conftest.er1 >conftest.err
21776   rm -f conftest.er1
21777   cat conftest.err >&5
21778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779   (exit $ac_status); } && {
21780          test -z "$ac_cxx_werror_flag" ||
21781          test ! -s conftest.err
21782        } && test -s conftest.$ac_objext; then
21783   { $as_echo "$as_me:$LINENO: result: yes" >&5
21784 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -ftemplate-depth-50"
21785 else
21786   $as_echo "$as_me: failed program was:" >&5
21787 sed 's/^/| /' conftest.$ac_ext >&5
21788
21789         { $as_echo "$as_me:$LINENO: result: no" >&5
21790 $as_echo "no" >&6; }
21791 fi
21792
21793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21794 CXXFLAGS=$SAVE_CXXFLAGS
21795 ac_ext=cpp
21796 ac_cpp='$CXXCPP $CPPFLAGS'
21797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21800
21801
21802
21803 { $as_echo "$as_me:$LINENO: checking whether ${CC} -Wdeclaration-after-statement is understood" >&5
21804 $as_echo_n "checking whether ${CC} -Wdeclaration-after-statement is understood... " >&6; }
21805
21806 ac_ext=c
21807 ac_cpp='$CPP $CPPFLAGS'
21808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21811
21812 SAVE_CFLAGS=$CFLAGS
21813 CFLAGS=-Wdeclaration-after-statement
21814 cat >conftest.$ac_ext <<_ACEOF
21815 /* confdefs.h.  */
21816 _ACEOF
21817 cat confdefs.h >>conftest.$ac_ext
21818 cat >>conftest.$ac_ext <<_ACEOF
21819 /* end confdefs.h.  */
21820
21821 int
21822 main ()
21823 {
21824 ;
21825   ;
21826   return 0;
21827 }
21828 _ACEOF
21829 rm -f conftest.$ac_objext
21830 if { (ac_try="$ac_compile"
21831 case "(($ac_try" in
21832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21833   *) ac_try_echo=$ac_try;;
21834 esac
21835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21836 $as_echo "$ac_try_echo") >&5
21837   (eval "$ac_compile") 2>conftest.er1
21838   ac_status=$?
21839   grep -v '^ *+' conftest.er1 >conftest.err
21840   rm -f conftest.er1
21841   cat conftest.err >&5
21842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); } && {
21844          test -z "$ac_c_werror_flag" ||
21845          test ! -s conftest.err
21846        } && test -s conftest.$ac_objext; then
21847   { $as_echo "$as_me:$LINENO: result: yes" >&5
21848 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -Wdeclaration-after-statement"
21849 else
21850   $as_echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21852
21853         { $as_echo "$as_me:$LINENO: result: no" >&5
21854 $as_echo "no" >&6; }
21855 fi
21856
21857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21858 CFLAGS=$SAVE_CFLAGS
21859 ac_ext=cpp
21860 ac_cpp='$CXXCPP $CPPFLAGS'
21861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21864
21865
21866
21867 # Check whether --enable-gcov was given.
21868 if test "${enable_gcov+set}" = set; then
21869   enableval=$enable_gcov; enable_gcov=$enableval
21870 else
21871   enable_gcov=no
21872 fi
21873
21874 if test "$enable_gcov" = yes; then
21875
21876 { $as_echo "$as_me:$LINENO: checking whether ${CC} -fprofile-arcs is understood" >&5
21877 $as_echo_n "checking whether ${CC} -fprofile-arcs is understood... " >&6; }
21878
21879 ac_ext=c
21880 ac_cpp='$CPP $CPPFLAGS'
21881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21884
21885 SAVE_CFLAGS=$CFLAGS
21886 CFLAGS=-fprofile-arcs
21887 cat >conftest.$ac_ext <<_ACEOF
21888 /* confdefs.h.  */
21889 _ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h.  */
21893
21894 int
21895 main ()
21896 {
21897 ;
21898   ;
21899   return 0;
21900 }
21901 _ACEOF
21902 rm -f conftest.$ac_objext
21903 if { (ac_try="$ac_compile"
21904 case "(($ac_try" in
21905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906   *) ac_try_echo=$ac_try;;
21907 esac
21908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21909 $as_echo "$ac_try_echo") >&5
21910   (eval "$ac_compile") 2>conftest.er1
21911   ac_status=$?
21912   grep -v '^ *+' conftest.er1 >conftest.err
21913   rm -f conftest.er1
21914   cat conftest.err >&5
21915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916   (exit $ac_status); } && {
21917          test -z "$ac_c_werror_flag" ||
21918          test ! -s conftest.err
21919        } && test -s conftest.$ac_objext; then
21920   { $as_echo "$as_me:$LINENO: result: yes" >&5
21921 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -fprofile-arcs"
21922 else
21923   $as_echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21925
21926         { $as_echo "$as_me:$LINENO: result: no" >&5
21927 $as_echo "no" >&6; }
21928 fi
21929
21930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21931 CFLAGS=$SAVE_CFLAGS
21932 ac_ext=cpp
21933 ac_cpp='$CXXCPP $CPPFLAGS'
21934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21937
21938
21939
21940 { $as_echo "$as_me:$LINENO: checking whether ${CXX} -fprofile-arcs is understood" >&5
21941 $as_echo_n "checking whether ${CXX} -fprofile-arcs is understood... " >&6; }
21942
21943 ac_ext=cpp
21944 ac_cpp='$CXXCPP $CPPFLAGS'
21945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21948
21949 SAVE_CXXFLAGS=$CXXFLAGS
21950 CXXFLAGS=-fprofile-arcs
21951 cat >conftest.$ac_ext <<_ACEOF
21952 /* confdefs.h.  */
21953 _ACEOF
21954 cat confdefs.h >>conftest.$ac_ext
21955 cat >>conftest.$ac_ext <<_ACEOF
21956 /* end confdefs.h.  */
21957
21958 int
21959 main ()
21960 {
21961 ;
21962   ;
21963   return 0;
21964 }
21965 _ACEOF
21966 rm -f conftest.$ac_objext
21967 if { (ac_try="$ac_compile"
21968 case "(($ac_try" in
21969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970   *) ac_try_echo=$ac_try;;
21971 esac
21972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21973 $as_echo "$ac_try_echo") >&5
21974   (eval "$ac_compile") 2>conftest.er1
21975   ac_status=$?
21976   grep -v '^ *+' conftest.er1 >conftest.err
21977   rm -f conftest.er1
21978   cat conftest.err >&5
21979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980   (exit $ac_status); } && {
21981          test -z "$ac_cxx_werror_flag" ||
21982          test ! -s conftest.err
21983        } && test -s conftest.$ac_objext; then
21984   { $as_echo "$as_me:$LINENO: result: yes" >&5
21985 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -fprofile-arcs"
21986 else
21987   $as_echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21989
21990         { $as_echo "$as_me:$LINENO: result: no" >&5
21991 $as_echo "no" >&6; }
21992 fi
21993
21994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21995 CXXFLAGS=$SAVE_CXXFLAGS
21996 ac_ext=cpp
21997 ac_cpp='$CXXCPP $CPPFLAGS'
21998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22001
22002
22003
22004 { $as_echo "$as_me:$LINENO: checking whether ${CC} -ftest-coverage is understood" >&5
22005 $as_echo_n "checking whether ${CC} -ftest-coverage is understood... " >&6; }
22006
22007 ac_ext=c
22008 ac_cpp='$CPP $CPPFLAGS'
22009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22012
22013 SAVE_CFLAGS=$CFLAGS
22014 CFLAGS=-ftest-coverage
22015 cat >conftest.$ac_ext <<_ACEOF
22016 /* confdefs.h.  */
22017 _ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h.  */
22021
22022 int
22023 main ()
22024 {
22025 ;
22026   ;
22027   return 0;
22028 }
22029 _ACEOF
22030 rm -f conftest.$ac_objext
22031 if { (ac_try="$ac_compile"
22032 case "(($ac_try" in
22033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034   *) ac_try_echo=$ac_try;;
22035 esac
22036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22037 $as_echo "$ac_try_echo") >&5
22038   (eval "$ac_compile") 2>conftest.er1
22039   ac_status=$?
22040   grep -v '^ *+' conftest.er1 >conftest.err
22041   rm -f conftest.er1
22042   cat conftest.err >&5
22043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044   (exit $ac_status); } && {
22045          test -z "$ac_c_werror_flag" ||
22046          test ! -s conftest.err
22047        } && test -s conftest.$ac_objext; then
22048   { $as_echo "$as_me:$LINENO: result: yes" >&5
22049 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -ftest-coverage"
22050 else
22051   $as_echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22053
22054         { $as_echo "$as_me:$LINENO: result: no" >&5
22055 $as_echo "no" >&6; }
22056 fi
22057
22058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22059 CFLAGS=$SAVE_CFLAGS
22060 ac_ext=cpp
22061 ac_cpp='$CXXCPP $CPPFLAGS'
22062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22065
22066
22067
22068 { $as_echo "$as_me:$LINENO: checking whether ${CXX} -ftest-coverage is understood" >&5
22069 $as_echo_n "checking whether ${CXX} -ftest-coverage is understood... " >&6; }
22070
22071 ac_ext=cpp
22072 ac_cpp='$CXXCPP $CPPFLAGS'
22073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22076
22077 SAVE_CXXFLAGS=$CXXFLAGS
22078 CXXFLAGS=-ftest-coverage
22079 cat >conftest.$ac_ext <<_ACEOF
22080 /* confdefs.h.  */
22081 _ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h.  */
22085
22086 int
22087 main ()
22088 {
22089 ;
22090   ;
22091   return 0;
22092 }
22093 _ACEOF
22094 rm -f conftest.$ac_objext
22095 if { (ac_try="$ac_compile"
22096 case "(($ac_try" in
22097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098   *) ac_try_echo=$ac_try;;
22099 esac
22100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22101 $as_echo "$ac_try_echo") >&5
22102   (eval "$ac_compile") 2>conftest.er1
22103   ac_status=$?
22104   grep -v '^ *+' conftest.er1 >conftest.err
22105   rm -f conftest.er1
22106   cat conftest.err >&5
22107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); } && {
22109          test -z "$ac_cxx_werror_flag" ||
22110          test ! -s conftest.err
22111        } && test -s conftest.$ac_objext; then
22112   { $as_echo "$as_me:$LINENO: result: yes" >&5
22113 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -ftest-coverage"
22114 else
22115   $as_echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22117
22118         { $as_echo "$as_me:$LINENO: result: no" >&5
22119 $as_echo "no" >&6; }
22120 fi
22121
22122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22123 CXXFLAGS=$SAVE_CXXFLAGS
22124 ac_ext=cpp
22125 ac_cpp='$CXXCPP $CPPFLAGS'
22126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22129
22130
22131 fi
22132
22133 # Check whether --enable-werror was given.
22134 if test "${enable_werror+set}" = set; then
22135   enableval=$enable_werror; enable_werror=$enableval
22136 else
22137   enable_werror=yes
22138 fi
22139
22140 if test "$enable_werror" = yes; then
22141         # enable -Werror for non-release versions.
22142         if echo "$VERSION" | grep git >/dev/null; then
22143
22144 { $as_echo "$as_me:$LINENO: checking whether ${CC} -Werror is understood" >&5
22145 $as_echo_n "checking whether ${CC} -Werror is understood... " >&6; }
22146
22147 ac_ext=c
22148 ac_cpp='$CPP $CPPFLAGS'
22149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22152
22153 SAVE_CFLAGS=$CFLAGS
22154 CFLAGS=-Werror
22155 cat >conftest.$ac_ext <<_ACEOF
22156 /* confdefs.h.  */
22157 _ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h.  */
22161
22162 int
22163 main ()
22164 {
22165 ;
22166   ;
22167   return 0;
22168 }
22169 _ACEOF
22170 rm -f conftest.$ac_objext
22171 if { (ac_try="$ac_compile"
22172 case "(($ac_try" in
22173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174   *) ac_try_echo=$ac_try;;
22175 esac
22176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22177 $as_echo "$ac_try_echo") >&5
22178   (eval "$ac_compile") 2>conftest.er1
22179   ac_status=$?
22180   grep -v '^ *+' conftest.er1 >conftest.err
22181   rm -f conftest.er1
22182   cat conftest.err >&5
22183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); } && {
22185          test -z "$ac_c_werror_flag" ||
22186          test ! -s conftest.err
22187        } && test -s conftest.$ac_objext; then
22188   { $as_echo "$as_me:$LINENO: result: yes" >&5
22189 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -Werror"
22190 else
22191   $as_echo "$as_me: failed program was:" >&5
22192 sed 's/^/| /' conftest.$ac_ext >&5
22193
22194         { $as_echo "$as_me:$LINENO: result: no" >&5
22195 $as_echo "no" >&6; }
22196 fi
22197
22198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22199 CFLAGS=$SAVE_CFLAGS
22200 ac_ext=cpp
22201 ac_cpp='$CXXCPP $CPPFLAGS'
22202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22205
22206
22207
22208 { $as_echo "$as_me:$LINENO: checking whether ${CXX} -Werror is understood" >&5
22209 $as_echo_n "checking whether ${CXX} -Werror is understood... " >&6; }
22210
22211 ac_ext=cpp
22212 ac_cpp='$CXXCPP $CPPFLAGS'
22213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22216
22217 SAVE_CXXFLAGS=$CXXFLAGS
22218 CXXFLAGS=-Werror
22219 cat >conftest.$ac_ext <<_ACEOF
22220 /* confdefs.h.  */
22221 _ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h.  */
22225
22226 int
22227 main ()
22228 {
22229 ;
22230   ;
22231   return 0;
22232 }
22233 _ACEOF
22234 rm -f conftest.$ac_objext
22235 if { (ac_try="$ac_compile"
22236 case "(($ac_try" in
22237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238   *) ac_try_echo=$ac_try;;
22239 esac
22240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22241 $as_echo "$ac_try_echo") >&5
22242   (eval "$ac_compile") 2>conftest.er1
22243   ac_status=$?
22244   grep -v '^ *+' conftest.er1 >conftest.err
22245   rm -f conftest.er1
22246   cat conftest.err >&5
22247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248   (exit $ac_status); } && {
22249          test -z "$ac_cxx_werror_flag" ||
22250          test ! -s conftest.err
22251        } && test -s conftest.$ac_objext; then
22252   { $as_echo "$as_me:$LINENO: result: yes" >&5
22253 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -Werror"
22254 else
22255   $as_echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.$ac_ext >&5
22257
22258         { $as_echo "$as_me:$LINENO: result: no" >&5
22259 $as_echo "no" >&6; }
22260 fi
22261
22262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22263 CXXFLAGS=$SAVE_CXXFLAGS
22264 ac_ext=cpp
22265 ac_cpp='$CXXCPP $CPPFLAGS'
22266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22269
22270
22271         fi
22272 fi
22273
22274 # Check whether --enable-optimization was given.
22275 if test "${enable_optimization+set}" = set; then
22276   enableval=$enable_optimization; enable_optimization=$enableval
22277 else
22278   enable_optimisation=yes
22279 fi
22280
22281 if test "$enable_optimization" = "no"; then
22282         CFLAGS=`echo $CFLAGS | sed 's/-O2//g'`
22283         CXXFLAGS=`echo $CXXFLAGS | sed 's/-O2//g'`
22284 fi
22285
22286 # Check whether --enable-account-check was given.
22287 if test "${enable_account_check+set}" = set; then
22288   enableval=$enable_account_check; enable_account_check=$enableval
22289 else
22290   enable_account_check=yes
22291 fi
22292
22293
22294  if test "x$enable_account_check" = "xyes"; then
22295   CHECK_ACCOUNT_TRUE=
22296   CHECK_ACCOUNT_FALSE='#'
22297 else
22298   CHECK_ACCOUNT_TRUE='#'
22299   CHECK_ACCOUNT_FALSE=
22300 fi
22301
22302
22303
22304
22305
22306 # fixups for config.h
22307 if test "$prefix" = "NONE"; then
22308         my_op_prefix="$ac_default_prefix"
22309 else
22310         my_op_prefix="$prefix"
22311 fi
22312 my_op_datadir="$my_op_prefix/share"
22313
22314 if test "$exec_prefix" = "NONE"; then
22315         my_op_exec_prefix="$my_op_prefix"
22316 else
22317         my_op_exec_prefix="$exec_prefix"
22318 fi
22319 my_op_bindir="$my_op_exec_prefix/bin"
22320
22321 OP_DATADIR=`eval echo "$my_op_datadir/$PACKAGE/"`
22322
22323 cat >>confdefs.h <<_ACEOF
22324 #define OP_DATADIR "$OP_DATADIR"
22325 _ACEOF
22326
22327 OP_BINDIR=`eval echo "$my_op_bindir/"`
22328
22329 cat >>confdefs.h <<_ACEOF
22330 #define OP_BINDIR "$OP_BINDIR"
22331 _ACEOF
22332
22333 OP_DOCDIR=`eval echo "${my_op_prefix}/share/doc/$PACKAGE/"`
22334
22335
22336 ac_config_files="$ac_config_files Makefile pe_profiling/Makefile libperf_events/Makefile m4/Makefile libutil/Makefile libutil/tests/Makefile libutil++/Makefile libutil++/tests/Makefile libop/Makefile libop/tests/Makefile libopagent/Makefile libopt++/Makefile libdb/Makefile libdb/tests/Makefile libabi/Makefile libabi/tests/Makefile libregex/Makefile libregex/tests/Makefile libregex/stl.pat libregex/tests/mangled-name daemon/Makefile daemon/liblegacy/Makefile events/Makefile utils/Makefile doc/Makefile doc/xsl/catalog-1.xml doc/oprofile.1 doc/opcontrol.1 doc/ophelp.1 doc/opreport.1 doc/opannotate.1 doc/opgprof.1 doc/oparchive.1 doc/opimport.1 doc/operf.1 doc/srcdoc/Doxyfile libpp/Makefile opjitconv/Makefile pp/Makefile gui/Makefile gui/ui/Makefile agents/Makefile agents/jvmti/Makefile agents/jvmpi/Makefile"
22337
22338 cat >confcache <<\_ACEOF
22339 # This file is a shell script that caches the results of configure
22340 # tests run on this system so they can be shared between configure
22341 # scripts and configure runs, see configure's option --config-cache.
22342 # It is not useful on other systems.  If it contains results you don't
22343 # want to keep, you may remove or edit it.
22344 #
22345 # config.status only pays attention to the cache file if you give it
22346 # the --recheck option to rerun configure.
22347 #
22348 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22349 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22350 # following values.
22351
22352 _ACEOF
22353
22354 # The following way of writing the cache mishandles newlines in values,
22355 # but we know of no workaround that is simple, portable, and efficient.
22356 # So, we kill variables containing newlines.
22357 # Ultrix sh set writes to stderr and can't be redirected directly,
22358 # and sets the high bit in the cache file unless we assign to the vars.
22359 (
22360   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22361     eval ac_val=\$$ac_var
22362     case $ac_val in #(
22363     *${as_nl}*)
22364       case $ac_var in #(
22365       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22366 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22367       esac
22368       case $ac_var in #(
22369       _ | IFS | as_nl) ;; #(
22370       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22371       *) $as_unset $ac_var ;;
22372       esac ;;
22373     esac
22374   done
22375
22376   (set) 2>&1 |
22377     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22378     *${as_nl}ac_space=\ *)
22379       # `set' does not quote correctly, so add quotes (double-quote
22380       # substitution turns \\\\ into \\, and sed turns \\ into \).
22381       sed -n \
22382         "s/'/'\\\\''/g;
22383           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22384       ;; #(
22385     *)
22386       # `set' quotes correctly as required by POSIX, so do not add quotes.
22387       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22388       ;;
22389     esac |
22390     sort
22391 ) |
22392   sed '
22393      /^ac_cv_env_/b end
22394      t clear
22395      :clear
22396      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22397      t end
22398      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22399      :end' >>confcache
22400 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22401   if test -w "$cache_file"; then
22402     test "x$cache_file" != "x/dev/null" &&
22403       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22404 $as_echo "$as_me: updating cache $cache_file" >&6;}
22405     cat confcache >$cache_file
22406   else
22407     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22408 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22409   fi
22410 fi
22411 rm -f confcache
22412
22413 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22414 # Let make expand exec_prefix.
22415 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22416
22417 DEFS=-DHAVE_CONFIG_H
22418
22419 ac_libobjs=
22420 ac_ltlibobjs=
22421 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22422   # 1. Remove the extension, and $U if already installed.
22423   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22424   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22425   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22426   #    will be set to the directory where LIBOBJS objects are built.
22427   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22428   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22429 done
22430 LIBOBJS=$ac_libobjs
22431
22432 LTLIBOBJS=$ac_ltlibobjs
22433
22434
22435  if test -n "$EXEEXT"; then
22436   am__EXEEXT_TRUE=
22437   am__EXEEXT_FALSE='#'
22438 else
22439   am__EXEEXT_TRUE='#'
22440   am__EXEEXT_FALSE=
22441 fi
22442
22443 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22444   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22445 Usually this means the macro was only invoked conditionally." >&5
22446 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22447 Usually this means the macro was only invoked conditionally." >&2;}
22448    { (exit 1); exit 1; }; }
22449 fi
22450 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22451   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22452 Usually this means the macro was only invoked conditionally." >&5
22453 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22454 Usually this means the macro was only invoked conditionally." >&2;}
22455    { (exit 1); exit 1; }; }
22456 fi
22457 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22458   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22459 Usually this means the macro was only invoked conditionally." >&5
22460 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22461 Usually this means the macro was only invoked conditionally." >&2;}
22462    { (exit 1); exit 1; }; }
22463 fi
22464 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22465   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22466 Usually this means the macro was only invoked conditionally." >&5
22467 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22468 Usually this means the macro was only invoked conditionally." >&2;}
22469    { (exit 1); exit 1; }; }
22470 fi
22471 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22472   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22473 Usually this means the macro was only invoked conditionally." >&5
22474 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22475 Usually this means the macro was only invoked conditionally." >&2;}
22476    { (exit 1); exit 1; }; }
22477 fi
22478 if test -z "${BUILD_FOR_PERF_EVENT_TRUE}" && test -z "${BUILD_FOR_PERF_EVENT_FALSE}"; then
22479   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_FOR_PERF_EVENT\" was never defined.
22480 Usually this means the macro was only invoked conditionally." >&5
22481 $as_echo "$as_me: error: conditional \"BUILD_FOR_PERF_EVENT\" was never defined.
22482 Usually this means the macro was only invoked conditionally." >&2;}
22483    { (exit 1); exit 1; }; }
22484 fi
22485 if test -z "${BUILD_JVMTI_AGENT_TRUE}" && test -z "${BUILD_JVMTI_AGENT_FALSE}"; then
22486   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_JVMTI_AGENT\" was never defined.
22487 Usually this means the macro was only invoked conditionally." >&5
22488 $as_echo "$as_me: error: conditional \"BUILD_JVMTI_AGENT\" was never defined.
22489 Usually this means the macro was only invoked conditionally." >&2;}
22490    { (exit 1); exit 1; }; }
22491 fi
22492 if test -z "${BUILD_JVMPI_AGENT_TRUE}" && test -z "${BUILD_JVMPI_AGENT_FALSE}"; then
22493   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_JVMPI_AGENT\" was never defined.
22494 Usually this means the macro was only invoked conditionally." >&5
22495 $as_echo "$as_me: error: conditional \"BUILD_JVMPI_AGENT\" was never defined.
22496 Usually this means the macro was only invoked conditionally." >&2;}
22497    { (exit 1); exit 1; }; }
22498 fi
22499 if test -z "${have_qt_TRUE}" && test -z "${have_qt_FALSE}"; then
22500   { { $as_echo "$as_me:$LINENO: error: conditional \"have_qt\" was never defined.
22501 Usually this means the macro was only invoked conditionally." >&5
22502 $as_echo "$as_me: error: conditional \"have_qt\" was never defined.
22503 Usually this means the macro was only invoked conditionally." >&2;}
22504    { (exit 1); exit 1; }; }
22505 fi
22506 if test -z "${have_xsltproc_TRUE}" && test -z "${have_xsltproc_FALSE}"; then
22507   { { $as_echo "$as_me:$LINENO: error: conditional \"have_xsltproc\" was never defined.
22508 Usually this means the macro was only invoked conditionally." >&5
22509 $as_echo "$as_me: error: conditional \"have_xsltproc\" was never defined.
22510 Usually this means the macro was only invoked conditionally." >&2;}
22511    { (exit 1); exit 1; }; }
22512 fi
22513 if test -z "${CHECK_ACCOUNT_TRUE}" && test -z "${CHECK_ACCOUNT_FALSE}"; then
22514   { { $as_echo "$as_me:$LINENO: error: conditional \"CHECK_ACCOUNT\" was never defined.
22515 Usually this means the macro was only invoked conditionally." >&5
22516 $as_echo "$as_me: error: conditional \"CHECK_ACCOUNT\" was never defined.
22517 Usually this means the macro was only invoked conditionally." >&2;}
22518    { (exit 1); exit 1; }; }
22519 fi
22520
22521 : ${CONFIG_STATUS=./config.status}
22522 ac_write_fail=0
22523 ac_clean_files_save=$ac_clean_files
22524 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22525 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22526 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22527 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22528 #! $SHELL
22529 # Generated by $as_me.
22530 # Run this file to recreate the current configuration.
22531 # Compiler output produced by configure, useful for debugging
22532 # configure, is in config.log if it exists.
22533
22534 debug=false
22535 ac_cs_recheck=false
22536 ac_cs_silent=false
22537 SHELL=\${CONFIG_SHELL-$SHELL}
22538 _ACEOF
22539
22540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22541 ## --------------------- ##
22542 ## M4sh Initialization.  ##
22543 ## --------------------- ##
22544
22545 # Be more Bourne compatible
22546 DUALCASE=1; export DUALCASE # for MKS sh
22547 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22548   emulate sh
22549   NULLCMD=:
22550   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22551   # is contrary to our usage.  Disable this feature.
22552   alias -g '${1+"$@"}'='"$@"'
22553   setopt NO_GLOB_SUBST
22554 else
22555   case `(set -o) 2>/dev/null` in
22556   *posix*) set -o posix ;;
22557 esac
22558
22559 fi
22560
22561
22562
22563
22564 # PATH needs CR
22565 # Avoid depending upon Character Ranges.
22566 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22567 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22568 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22569 as_cr_digits='0123456789'
22570 as_cr_alnum=$as_cr_Letters$as_cr_digits
22571
22572 as_nl='
22573 '
22574 export as_nl
22575 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22576 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22577 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22578 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22579 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22580   as_echo='printf %s\n'
22581   as_echo_n='printf %s'
22582 else
22583   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22584     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22585     as_echo_n='/usr/ucb/echo -n'
22586   else
22587     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22588     as_echo_n_body='eval
22589       arg=$1;
22590       case $arg in
22591       *"$as_nl"*)
22592         expr "X$arg" : "X\\(.*\\)$as_nl";
22593         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22594       esac;
22595       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22596     '
22597     export as_echo_n_body
22598     as_echo_n='sh -c $as_echo_n_body as_echo'
22599   fi
22600   export as_echo_body
22601   as_echo='sh -c $as_echo_body as_echo'
22602 fi
22603
22604 # The user is always right.
22605 if test "${PATH_SEPARATOR+set}" != set; then
22606   PATH_SEPARATOR=:
22607   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22608     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22609       PATH_SEPARATOR=';'
22610   }
22611 fi
22612
22613 # Support unset when possible.
22614 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22615   as_unset=unset
22616 else
22617   as_unset=false
22618 fi
22619
22620
22621 # IFS
22622 # We need space, tab and new line, in precisely that order.  Quoting is
22623 # there to prevent editors from complaining about space-tab.
22624 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22625 # splitting by setting IFS to empty value.)
22626 IFS=" ""        $as_nl"
22627
22628 # Find who we are.  Look in the path if we contain no directory separator.
22629 case $0 in
22630   *[\\/]* ) as_myself=$0 ;;
22631   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22632 for as_dir in $PATH
22633 do
22634   IFS=$as_save_IFS
22635   test -z "$as_dir" && as_dir=.
22636   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22637 done
22638 IFS=$as_save_IFS
22639
22640      ;;
22641 esac
22642 # We did not find ourselves, most probably we were run as `sh COMMAND'
22643 # in which case we are not to be found in the path.
22644 if test "x$as_myself" = x; then
22645   as_myself=$0
22646 fi
22647 if test ! -f "$as_myself"; then
22648   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22649   { (exit 1); exit 1; }
22650 fi
22651
22652 # Work around bugs in pre-3.0 UWIN ksh.
22653 for as_var in ENV MAIL MAILPATH
22654 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22655 done
22656 PS1='$ '
22657 PS2='> '
22658 PS4='+ '
22659
22660 # NLS nuisances.
22661 LC_ALL=C
22662 export LC_ALL
22663 LANGUAGE=C
22664 export LANGUAGE
22665
22666 # Required to use basename.
22667 if expr a : '\(a\)' >/dev/null 2>&1 &&
22668    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22669   as_expr=expr
22670 else
22671   as_expr=false
22672 fi
22673
22674 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22675   as_basename=basename
22676 else
22677   as_basename=false
22678 fi
22679
22680
22681 # Name of the executable.
22682 as_me=`$as_basename -- "$0" ||
22683 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22684          X"$0" : 'X\(//\)$' \| \
22685          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22686 $as_echo X/"$0" |
22687     sed '/^.*\/\([^/][^/]*\)\/*$/{
22688             s//\1/
22689             q
22690           }
22691           /^X\/\(\/\/\)$/{
22692             s//\1/
22693             q
22694           }
22695           /^X\/\(\/\).*/{
22696             s//\1/
22697             q
22698           }
22699           s/.*/./; q'`
22700
22701 # CDPATH.
22702 $as_unset CDPATH
22703
22704
22705
22706   as_lineno_1=$LINENO
22707   as_lineno_2=$LINENO
22708   test "x$as_lineno_1" != "x$as_lineno_2" &&
22709   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22710
22711   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22712   # uniformly replaced by the line number.  The first 'sed' inserts a
22713   # line-number line after each line using $LINENO; the second 'sed'
22714   # does the real work.  The second script uses 'N' to pair each
22715   # line-number line with the line containing $LINENO, and appends
22716   # trailing '-' during substitution so that $LINENO is not a special
22717   # case at line end.
22718   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22719   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22720   # E. McMahon (1931-1989) for sed's syntax.  :-)
22721   sed -n '
22722     p
22723     /[$]LINENO/=
22724   ' <$as_myself |
22725     sed '
22726       s/[$]LINENO.*/&-/
22727       t lineno
22728       b
22729       :lineno
22730       N
22731       :loop
22732       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22733       t loop
22734       s/-\n.*//
22735     ' >$as_me.lineno &&
22736   chmod +x "$as_me.lineno" ||
22737     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22738    { (exit 1); exit 1; }; }
22739
22740   # Don't try to exec as it changes $[0], causing all sort of problems
22741   # (the dirname of $[0] is not the place where we might find the
22742   # original and so on.  Autoconf is especially sensitive to this).
22743   . "./$as_me.lineno"
22744   # Exit status is that of the last command.
22745   exit
22746 }
22747
22748
22749 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22750   as_dirname=dirname
22751 else
22752   as_dirname=false
22753 fi
22754
22755 ECHO_C= ECHO_N= ECHO_T=
22756 case `echo -n x` in
22757 -n*)
22758   case `echo 'x\c'` in
22759   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22760   *)   ECHO_C='\c';;
22761   esac;;
22762 *)
22763   ECHO_N='-n';;
22764 esac
22765 if expr a : '\(a\)' >/dev/null 2>&1 &&
22766    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22767   as_expr=expr
22768 else
22769   as_expr=false
22770 fi
22771
22772 rm -f conf$$ conf$$.exe conf$$.file
22773 if test -d conf$$.dir; then
22774   rm -f conf$$.dir/conf$$.file
22775 else
22776   rm -f conf$$.dir
22777   mkdir conf$$.dir 2>/dev/null
22778 fi
22779 if (echo >conf$$.file) 2>/dev/null; then
22780   if ln -s conf$$.file conf$$ 2>/dev/null; then
22781     as_ln_s='ln -s'
22782     # ... but there are two gotchas:
22783     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22784     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22785     # In both cases, we have to default to `cp -p'.
22786     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22787       as_ln_s='cp -p'
22788   elif ln conf$$.file conf$$ 2>/dev/null; then
22789     as_ln_s=ln
22790   else
22791     as_ln_s='cp -p'
22792   fi
22793 else
22794   as_ln_s='cp -p'
22795 fi
22796 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22797 rmdir conf$$.dir 2>/dev/null
22798
22799 if mkdir -p . 2>/dev/null; then
22800   as_mkdir_p=:
22801 else
22802   test -d ./-p && rmdir ./-p
22803   as_mkdir_p=false
22804 fi
22805
22806 if test -x / >/dev/null 2>&1; then
22807   as_test_x='test -x'
22808 else
22809   if ls -dL / >/dev/null 2>&1; then
22810     as_ls_L_option=L
22811   else
22812     as_ls_L_option=
22813   fi
22814   as_test_x='
22815     eval sh -c '\''
22816       if test -d "$1"; then
22817         test -d "$1/.";
22818       else
22819         case $1 in
22820         -*)set "./$1";;
22821         esac;
22822         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22823         ???[sx]*):;;*)false;;esac;fi
22824     '\'' sh
22825   '
22826 fi
22827 as_executable_p=$as_test_x
22828
22829 # Sed expression to map a string onto a valid CPP name.
22830 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22831
22832 # Sed expression to map a string onto a valid variable name.
22833 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22834
22835
22836 exec 6>&1
22837
22838 # Save the log message, to keep $[0] and so on meaningful, and to
22839 # report actual input values of CONFIG_FILES etc. instead of their
22840 # values after options handling.
22841 ac_log="
22842 This file was extended by $as_me, which was
22843 generated by GNU Autoconf 2.63.  Invocation command line was
22844
22845   CONFIG_FILES    = $CONFIG_FILES
22846   CONFIG_HEADERS  = $CONFIG_HEADERS
22847   CONFIG_LINKS    = $CONFIG_LINKS
22848   CONFIG_COMMANDS = $CONFIG_COMMANDS
22849   $ $0 $@
22850
22851 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22852 "
22853
22854 _ACEOF
22855
22856 case $ac_config_files in *"
22857 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22858 esac
22859
22860 case $ac_config_headers in *"
22861 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22862 esac
22863
22864
22865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22866 # Files that config.status was made for.
22867 config_files="$ac_config_files"
22868 config_headers="$ac_config_headers"
22869 config_commands="$ac_config_commands"
22870
22871 _ACEOF
22872
22873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22874 ac_cs_usage="\
22875 \`$as_me' instantiates files from templates according to the
22876 current configuration.
22877
22878 Usage: $0 [OPTION]... [FILE]...
22879
22880   -h, --help       print this help, then exit
22881   -V, --version    print version number and configuration settings, then exit
22882   -q, --quiet, --silent
22883                    do not print progress messages
22884   -d, --debug      don't remove temporary files
22885       --recheck    update $as_me by reconfiguring in the same conditions
22886       --file=FILE[:TEMPLATE]
22887                    instantiate the configuration file FILE
22888       --header=FILE[:TEMPLATE]
22889                    instantiate the configuration header FILE
22890
22891 Configuration files:
22892 $config_files
22893
22894 Configuration headers:
22895 $config_headers
22896
22897 Configuration commands:
22898 $config_commands
22899
22900 Report bugs to <bug-autoconf@gnu.org>."
22901
22902 _ACEOF
22903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22904 ac_cs_version="\\
22905 config.status
22906 configured by $0, generated by GNU Autoconf 2.63,
22907   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22908
22909 Copyright (C) 2008 Free Software Foundation, Inc.
22910 This config.status script is free software; the Free Software Foundation
22911 gives unlimited permission to copy, distribute and modify it."
22912
22913 ac_pwd='$ac_pwd'
22914 srcdir='$srcdir'
22915 INSTALL='$INSTALL'
22916 MKDIR_P='$MKDIR_P'
22917 AWK='$AWK'
22918 test -n "\$AWK" || AWK=awk
22919 _ACEOF
22920
22921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22922 # The default lists apply if the user does not specify any file.
22923 ac_need_defaults=:
22924 while test $# != 0
22925 do
22926   case $1 in
22927   --*=*)
22928     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22929     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22930     ac_shift=:
22931     ;;
22932   *)
22933     ac_option=$1
22934     ac_optarg=$2
22935     ac_shift=shift
22936     ;;
22937   esac
22938
22939   case $ac_option in
22940   # Handling of the options.
22941   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22942     ac_cs_recheck=: ;;
22943   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22944     $as_echo "$ac_cs_version"; exit ;;
22945   --debug | --debu | --deb | --de | --d | -d )
22946     debug=: ;;
22947   --file | --fil | --fi | --f )
22948     $ac_shift
22949     case $ac_optarg in
22950     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22951     esac
22952     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22953     ac_need_defaults=false;;
22954   --header | --heade | --head | --hea )
22955     $ac_shift
22956     case $ac_optarg in
22957     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22958     esac
22959     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22960     ac_need_defaults=false;;
22961   --he | --h)
22962     # Conflict between --help and --header
22963     { $as_echo "$as_me: error: ambiguous option: $1
22964 Try \`$0 --help' for more information." >&2
22965    { (exit 1); exit 1; }; };;
22966   --help | --hel | -h )
22967     $as_echo "$ac_cs_usage"; exit ;;
22968   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22969   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22970     ac_cs_silent=: ;;
22971
22972   # This is an error.
22973   -*) { $as_echo "$as_me: error: unrecognized option: $1
22974 Try \`$0 --help' for more information." >&2
22975    { (exit 1); exit 1; }; } ;;
22976
22977   *) ac_config_targets="$ac_config_targets $1"
22978      ac_need_defaults=false ;;
22979
22980   esac
22981   shift
22982 done
22983
22984 ac_configure_extra_args=
22985
22986 if $ac_cs_silent; then
22987   exec 6>/dev/null
22988   ac_configure_extra_args="$ac_configure_extra_args --silent"
22989 fi
22990
22991 _ACEOF
22992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22993 if \$ac_cs_recheck; then
22994   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22995   shift
22996   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22997   CONFIG_SHELL='$SHELL'
22998   export CONFIG_SHELL
22999   exec "\$@"
23000 fi
23001
23002 _ACEOF
23003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23004 exec 5>>config.log
23005 {
23006   echo
23007   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23008 ## Running $as_me. ##
23009 _ASBOX
23010   $as_echo "$ac_log"
23011 } >&5
23012
23013 _ACEOF
23014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23015 #
23016 # INIT-COMMANDS
23017 #
23018 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23019
23020
23021 # The HP-UX ksh and POSIX shell print the target directory to stdout
23022 # if CDPATH is set.
23023 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23024
23025 sed_quote_subst='$sed_quote_subst'
23026 double_quote_subst='$double_quote_subst'
23027 delay_variable_subst='$delay_variable_subst'
23028 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
23029 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
23030 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
23031 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
23032 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
23033 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
23034 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
23035 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
23036 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
23037 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
23038 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
23039 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
23040 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
23041 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
23042 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
23043 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
23044 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
23045 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
23046 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
23047 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
23048 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
23049 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
23050 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
23051 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
23052 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
23053 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
23054 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
23055 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23056 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
23057 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
23058 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
23059 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
23060 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23061 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
23062 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
23063 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23064 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23065 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23066 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
23067 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23068 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
23069 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
23070 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
23071 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
23072 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"`'
23073 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"`'
23074 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
23075 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
23076 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
23077 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
23078 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
23079 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
23080 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
23081 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
23082 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
23083 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
23084 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
23085 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
23086 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
23087 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
23088 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
23089 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
23090 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23091 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23092 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
23093 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
23094 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23095 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23096 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
23097 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23098 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23099 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23100 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23101 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23102 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23103 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
23104 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23105 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23106 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23107 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
23108 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
23109 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
23110 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
23111 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
23112 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23113 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
23114 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
23115 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
23116 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
23117 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
23118 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23119 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23120 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23121 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23122 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
23123 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
23124 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23125 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
23126 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
23127 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23128 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23129 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
23130 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23131 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
23132 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23133 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23134 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23135 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23136 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
23137 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
23138 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23139 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23140 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
23141 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
23142 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
23143 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
23144 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
23145 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
23146 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
23147 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
23148 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
23149 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
23150 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
23151 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
23152 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23153 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23154 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23155 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23156 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23157 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23158 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23159 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23160 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23161 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23162 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23163 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23164 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23165 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23166 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23167 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23168 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23169 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23170 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23171 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23172 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23173 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23174 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23175 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23176 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23177 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23178 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23179 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23180 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23181 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23182 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23183 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23184 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23185 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23186 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23187 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23188 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23189 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23190 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23191 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23192 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23193 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23194 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23195 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23196 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23197 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23198 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
23199
23200 LTCC='$LTCC'
23201 LTCFLAGS='$LTCFLAGS'
23202 compiler='$compiler_DEFAULT'
23203
23204 # Quote evaled strings.
23205 for var in SED \
23206 GREP \
23207 EGREP \
23208 FGREP \
23209 LD \
23210 NM \
23211 LN_S \
23212 lt_SP2NL \
23213 lt_NL2SP \
23214 reload_flag \
23215 OBJDUMP \
23216 deplibs_check_method \
23217 file_magic_cmd \
23218 AR \
23219 AR_FLAGS \
23220 STRIP \
23221 RANLIB \
23222 CC \
23223 CFLAGS \
23224 compiler \
23225 lt_cv_sys_global_symbol_pipe \
23226 lt_cv_sys_global_symbol_to_cdecl \
23227 lt_cv_sys_global_symbol_to_c_name_address \
23228 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23229 SHELL \
23230 ECHO \
23231 lt_prog_compiler_no_builtin_flag \
23232 lt_prog_compiler_wl \
23233 lt_prog_compiler_pic \
23234 lt_prog_compiler_static \
23235 lt_cv_prog_compiler_c_o \
23236 need_locks \
23237 DSYMUTIL \
23238 NMEDIT \
23239 LIPO \
23240 OTOOL \
23241 OTOOL64 \
23242 shrext_cmds \
23243 export_dynamic_flag_spec \
23244 whole_archive_flag_spec \
23245 compiler_needs_object \
23246 with_gnu_ld \
23247 allow_undefined_flag \
23248 no_undefined_flag \
23249 hardcode_libdir_flag_spec \
23250 hardcode_libdir_flag_spec_ld \
23251 hardcode_libdir_separator \
23252 fix_srcfile_path \
23253 exclude_expsyms \
23254 include_expsyms \
23255 file_list_spec \
23256 variables_saved_for_relink \
23257 libname_spec \
23258 library_names_spec \
23259 soname_spec \
23260 finish_eval \
23261 old_striplib \
23262 striplib \
23263 compiler_lib_search_dirs \
23264 predep_objects \
23265 postdep_objects \
23266 predeps \
23267 postdeps \
23268 compiler_lib_search_path \
23269 LD_CXX \
23270 compiler_CXX \
23271 lt_prog_compiler_no_builtin_flag_CXX \
23272 lt_prog_compiler_wl_CXX \
23273 lt_prog_compiler_pic_CXX \
23274 lt_prog_compiler_static_CXX \
23275 lt_cv_prog_compiler_c_o_CXX \
23276 export_dynamic_flag_spec_CXX \
23277 whole_archive_flag_spec_CXX \
23278 compiler_needs_object_CXX \
23279 with_gnu_ld_CXX \
23280 allow_undefined_flag_CXX \
23281 no_undefined_flag_CXX \
23282 hardcode_libdir_flag_spec_CXX \
23283 hardcode_libdir_flag_spec_ld_CXX \
23284 hardcode_libdir_separator_CXX \
23285 fix_srcfile_path_CXX \
23286 exclude_expsyms_CXX \
23287 include_expsyms_CXX \
23288 file_list_spec_CXX \
23289 compiler_lib_search_dirs_CXX \
23290 predep_objects_CXX \
23291 postdep_objects_CXX \
23292 predeps_CXX \
23293 postdeps_CXX \
23294 compiler_lib_search_path_CXX; do
23295     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23296     *[\\\\\\\`\\"\\\$]*)
23297       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23298       ;;
23299     *)
23300       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23301       ;;
23302     esac
23303 done
23304
23305 # Double-quote double-evaled strings.
23306 for var in reload_cmds \
23307 old_postinstall_cmds \
23308 old_postuninstall_cmds \
23309 old_archive_cmds \
23310 extract_expsyms_cmds \
23311 old_archive_from_new_cmds \
23312 old_archive_from_expsyms_cmds \
23313 archive_cmds \
23314 archive_expsym_cmds \
23315 module_cmds \
23316 module_expsym_cmds \
23317 export_symbols_cmds \
23318 prelink_cmds \
23319 postinstall_cmds \
23320 postuninstall_cmds \
23321 finish_cmds \
23322 sys_lib_search_path_spec \
23323 sys_lib_dlsearch_path_spec \
23324 old_archive_cmds_CXX \
23325 old_archive_from_new_cmds_CXX \
23326 old_archive_from_expsyms_cmds_CXX \
23327 archive_cmds_CXX \
23328 archive_expsym_cmds_CXX \
23329 module_cmds_CXX \
23330 module_expsym_cmds_CXX \
23331 export_symbols_cmds_CXX \
23332 prelink_cmds_CXX; do
23333     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23334     *[\\\\\\\`\\"\\\$]*)
23335       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23336       ;;
23337     *)
23338       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23339       ;;
23340     esac
23341 done
23342
23343 # Fix-up fallback echo if it was mangled by the above quoting rules.
23344 case \$lt_ECHO in
23345 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
23346   ;;
23347 esac
23348
23349 ac_aux_dir='$ac_aux_dir'
23350 xsi_shell='$xsi_shell'
23351 lt_shell_append='$lt_shell_append'
23352
23353 # See if we are running on zsh, and set the options which allow our
23354 # commands through without removal of \ escapes INIT.
23355 if test -n "\${ZSH_VERSION+set}" ; then
23356    setopt NO_GLOB_SUBST
23357 fi
23358
23359
23360     PACKAGE='$PACKAGE'
23361     VERSION='$VERSION'
23362     TIMESTAMP='$TIMESTAMP'
23363     RM='$RM'
23364     ofile='$ofile'
23365
23366
23367
23368
23369
23370
23371 _ACEOF
23372
23373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23374
23375 # Handling of arguments.
23376 for ac_config_target in $ac_config_targets
23377 do
23378   case $ac_config_target in
23379     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23380     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23381     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23382     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23383     "pe_profiling/Makefile") CONFIG_FILES="$CONFIG_FILES pe_profiling/Makefile" ;;
23384     "libperf_events/Makefile") CONFIG_FILES="$CONFIG_FILES libperf_events/Makefile" ;;
23385     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
23386     "libutil/Makefile") CONFIG_FILES="$CONFIG_FILES libutil/Makefile" ;;
23387     "libutil/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libutil/tests/Makefile" ;;
23388     "libutil++/Makefile") CONFIG_FILES="$CONFIG_FILES libutil++/Makefile" ;;
23389     "libutil++/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libutil++/tests/Makefile" ;;
23390     "libop/Makefile") CONFIG_FILES="$CONFIG_FILES libop/Makefile" ;;
23391     "libop/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libop/tests/Makefile" ;;
23392     "libopagent/Makefile") CONFIG_FILES="$CONFIG_FILES libopagent/Makefile" ;;
23393     "libopt++/Makefile") CONFIG_FILES="$CONFIG_FILES libopt++/Makefile" ;;
23394     "libdb/Makefile") CONFIG_FILES="$CONFIG_FILES libdb/Makefile" ;;
23395     "libdb/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libdb/tests/Makefile" ;;
23396     "libabi/Makefile") CONFIG_FILES="$CONFIG_FILES libabi/Makefile" ;;
23397     "libabi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libabi/tests/Makefile" ;;
23398     "libregex/Makefile") CONFIG_FILES="$CONFIG_FILES libregex/Makefile" ;;
23399     "libregex/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libregex/tests/Makefile" ;;
23400     "libregex/stl.pat") CONFIG_FILES="$CONFIG_FILES libregex/stl.pat" ;;
23401     "libregex/tests/mangled-name") CONFIG_FILES="$CONFIG_FILES libregex/tests/mangled-name" ;;
23402     "daemon/Makefile") CONFIG_FILES="$CONFIG_FILES daemon/Makefile" ;;
23403     "daemon/liblegacy/Makefile") CONFIG_FILES="$CONFIG_FILES daemon/liblegacy/Makefile" ;;
23404     "events/Makefile") CONFIG_FILES="$CONFIG_FILES events/Makefile" ;;
23405     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
23406     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23407     "doc/xsl/catalog-1.xml") CONFIG_FILES="$CONFIG_FILES doc/xsl/catalog-1.xml" ;;
23408     "doc/oprofile.1") CONFIG_FILES="$CONFIG_FILES doc/oprofile.1" ;;
23409     "doc/opcontrol.1") CONFIG_FILES="$CONFIG_FILES doc/opcontrol.1" ;;
23410     "doc/ophelp.1") CONFIG_FILES="$CONFIG_FILES doc/ophelp.1" ;;
23411     "doc/opreport.1") CONFIG_FILES="$CONFIG_FILES doc/opreport.1" ;;
23412     "doc/opannotate.1") CONFIG_FILES="$CONFIG_FILES doc/opannotate.1" ;;
23413     "doc/opgprof.1") CONFIG_FILES="$CONFIG_FILES doc/opgprof.1" ;;
23414     "doc/oparchive.1") CONFIG_FILES="$CONFIG_FILES doc/oparchive.1" ;;
23415     "doc/opimport.1") CONFIG_FILES="$CONFIG_FILES doc/opimport.1" ;;
23416     "doc/operf.1") CONFIG_FILES="$CONFIG_FILES doc/operf.1" ;;
23417     "doc/srcdoc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/srcdoc/Doxyfile" ;;
23418     "libpp/Makefile") CONFIG_FILES="$CONFIG_FILES libpp/Makefile" ;;
23419     "opjitconv/Makefile") CONFIG_FILES="$CONFIG_FILES opjitconv/Makefile" ;;
23420     "pp/Makefile") CONFIG_FILES="$CONFIG_FILES pp/Makefile" ;;
23421     "gui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
23422     "gui/ui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/ui/Makefile" ;;
23423     "agents/Makefile") CONFIG_FILES="$CONFIG_FILES agents/Makefile" ;;
23424     "agents/jvmti/Makefile") CONFIG_FILES="$CONFIG_FILES agents/jvmti/Makefile" ;;
23425     "agents/jvmpi/Makefile") CONFIG_FILES="$CONFIG_FILES agents/jvmpi/Makefile" ;;
23426
23427   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23428 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23429    { (exit 1); exit 1; }; };;
23430   esac
23431 done
23432
23433
23434 # If the user did not use the arguments to specify the items to instantiate,
23435 # then the envvar interface is used.  Set only those that are not.
23436 # We use the long form for the default assignment because of an extremely
23437 # bizarre bug on SunOS 4.1.3.
23438 if $ac_need_defaults; then
23439   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23440   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23441   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23442 fi
23443
23444 # Have a temporary directory for convenience.  Make it in the build tree
23445 # simply because there is no reason against having it here, and in addition,
23446 # creating and moving files from /tmp can sometimes cause problems.
23447 # Hook for its removal unless debugging.
23448 # Note that there is a small window in which the directory will not be cleaned:
23449 # after its creation but before its name has been assigned to `$tmp'.
23450 $debug ||
23451 {
23452   tmp=
23453   trap 'exit_status=$?
23454   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23455 ' 0
23456   trap '{ (exit 1); exit 1; }' 1 2 13 15
23457 }
23458 # Create a (secure) tmp directory for tmp files.
23459
23460 {
23461   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23462   test -n "$tmp" && test -d "$tmp"
23463 }  ||
23464 {
23465   tmp=./conf$$-$RANDOM
23466   (umask 077 && mkdir "$tmp")
23467 } ||
23468 {
23469    $as_echo "$as_me: cannot create a temporary directory in ." >&2
23470    { (exit 1); exit 1; }
23471 }
23472
23473 # Set up the scripts for CONFIG_FILES section.
23474 # No need to generate them if there are no CONFIG_FILES.
23475 # This happens for instance with `./config.status config.h'.
23476 if test -n "$CONFIG_FILES"; then
23477
23478
23479 ac_cr='\r'
23480 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23481 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23482   ac_cs_awk_cr='\\r'
23483 else
23484   ac_cs_awk_cr=$ac_cr
23485 fi
23486
23487 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23488 _ACEOF
23489
23490
23491 {
23492   echo "cat >conf$$subs.awk <<_ACEOF" &&
23493   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23494   echo "_ACEOF"
23495 } >conf$$subs.sh ||
23496   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23497 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23498    { (exit 1); exit 1; }; }
23499 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23500 ac_delim='%!_!# '
23501 for ac_last_try in false false false false false :; do
23502   . ./conf$$subs.sh ||
23503     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23504 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23505    { (exit 1); exit 1; }; }
23506
23507   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23508   if test $ac_delim_n = $ac_delim_num; then
23509     break
23510   elif $ac_last_try; then
23511     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23512 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23513    { (exit 1); exit 1; }; }
23514   else
23515     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23516   fi
23517 done
23518 rm -f conf$$subs.sh
23519
23520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23521 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23522 _ACEOF
23523 sed -n '
23524 h
23525 s/^/S["/; s/!.*/"]=/
23526 p
23527 g
23528 s/^[^!]*!//
23529 :repl
23530 t repl
23531 s/'"$ac_delim"'$//
23532 t delim
23533 :nl
23534 h
23535 s/\(.\{148\}\).*/\1/
23536 t more1
23537 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23538 p
23539 n
23540 b repl
23541 :more1
23542 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23543 p
23544 g
23545 s/.\{148\}//
23546 t nl
23547 :delim
23548 h
23549 s/\(.\{148\}\).*/\1/
23550 t more2
23551 s/["\\]/\\&/g; s/^/"/; s/$/"/
23552 p
23553 b
23554 :more2
23555 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23556 p
23557 g
23558 s/.\{148\}//
23559 t delim
23560 ' <conf$$subs.awk | sed '
23561 /^[^""]/{
23562   N
23563   s/\n//
23564 }
23565 ' >>$CONFIG_STATUS || ac_write_fail=1
23566 rm -f conf$$subs.awk
23567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23568 _ACAWK
23569 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23570   for (key in S) S_is_set[key] = 1
23571   FS = "\a"
23572
23573 }
23574 {
23575   line = $ 0
23576   nfields = split(line, field, "@")
23577   substed = 0
23578   len = length(field[1])
23579   for (i = 2; i < nfields; i++) {
23580     key = field[i]
23581     keylen = length(key)
23582     if (S_is_set[key]) {
23583       value = S[key]
23584       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23585       len += length(value) + length(field[++i])
23586       substed = 1
23587     } else
23588       len += 1 + keylen
23589   }
23590
23591   print line
23592 }
23593
23594 _ACAWK
23595 _ACEOF
23596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23597 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23598   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23599 else
23600   cat
23601 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23602   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23603 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
23604    { (exit 1); exit 1; }; }
23605 _ACEOF
23606
23607 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23608 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23609 # trailing colons and then remove the whole line if VPATH becomes empty
23610 # (actually we leave an empty line to preserve line numbers).
23611 if test "x$srcdir" = x.; then
23612   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23613 s/:*\$(srcdir):*/:/
23614 s/:*\${srcdir}:*/:/
23615 s/:*@srcdir@:*/:/
23616 s/^\([^=]*=[     ]*\):*/\1/
23617 s/:*$//
23618 s/^[^=]*=[       ]*$//
23619 }'
23620 fi
23621
23622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23623 fi # test -n "$CONFIG_FILES"
23624
23625 # Set up the scripts for CONFIG_HEADERS section.
23626 # No need to generate them if there are no CONFIG_HEADERS.
23627 # This happens for instance with `./config.status Makefile'.
23628 if test -n "$CONFIG_HEADERS"; then
23629 cat >"$tmp/defines.awk" <<\_ACAWK ||
23630 BEGIN {
23631 _ACEOF
23632
23633 # Transform confdefs.h into an awk script `defines.awk', embedded as
23634 # here-document in config.status, that substitutes the proper values into
23635 # config.h.in to produce config.h.
23636
23637 # Create a delimiter string that does not exist in confdefs.h, to ease
23638 # handling of long lines.
23639 ac_delim='%!_!# '
23640 for ac_last_try in false false :; do
23641   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23642   if test -z "$ac_t"; then
23643     break
23644   elif $ac_last_try; then
23645     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23646 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23647    { (exit 1); exit 1; }; }
23648   else
23649     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23650   fi
23651 done
23652
23653 # For the awk script, D is an array of macro values keyed by name,
23654 # likewise P contains macro parameters if any.  Preserve backslash
23655 # newline sequences.
23656
23657 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23658 sed -n '
23659 s/.\{148\}/&'"$ac_delim"'/g
23660 t rset
23661 :rset
23662 s/^[     ]*#[    ]*define[       ][      ]*/ /
23663 t def
23664 d
23665 :def
23666 s/\\$//
23667 t bsnl
23668 s/["\\]/\\&/g
23669 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23670 D["\1"]=" \3"/p
23671 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
23672 d
23673 :bsnl
23674 s/["\\]/\\&/g
23675 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23676 D["\1"]=" \3\\\\\\n"\\/p
23677 t cont
23678 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23679 t cont
23680 d
23681 :cont
23682 n
23683 s/.\{148\}/&'"$ac_delim"'/g
23684 t clear
23685 :clear
23686 s/\\$//
23687 t bsnlc
23688 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23689 d
23690 :bsnlc
23691 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23692 b cont
23693 ' <confdefs.h | sed '
23694 s/'"$ac_delim"'/"\\\
23695 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23696
23697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23698   for (key in D) D_is_set[key] = 1
23699   FS = "\a"
23700 }
23701 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23702   line = \$ 0
23703   split(line, arg, " ")
23704   if (arg[1] == "#") {
23705     defundef = arg[2]
23706     mac1 = arg[3]
23707   } else {
23708     defundef = substr(arg[1], 2)
23709     mac1 = arg[2]
23710   }
23711   split(mac1, mac2, "(") #)
23712   macro = mac2[1]
23713   prefix = substr(line, 1, index(line, defundef) - 1)
23714   if (D_is_set[macro]) {
23715     # Preserve the white space surrounding the "#".
23716     print prefix "define", macro P[macro] D[macro]
23717     next
23718   } else {
23719     # Replace #undef with comments.  This is necessary, for example,
23720     # in the case of _POSIX_SOURCE, which is predefined and required
23721     # on some systems where configure will not decide to define it.
23722     if (defundef == "undef") {
23723       print "/*", prefix defundef, macro, "*/"
23724       next
23725     }
23726   }
23727 }
23728 { print }
23729 _ACAWK
23730 _ACEOF
23731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23732   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23733 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23734    { (exit 1); exit 1; }; }
23735 fi # test -n "$CONFIG_HEADERS"
23736
23737
23738 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23739 shift
23740 for ac_tag
23741 do
23742   case $ac_tag in
23743   :[FHLC]) ac_mode=$ac_tag; continue;;
23744   esac
23745   case $ac_mode$ac_tag in
23746   :[FHL]*:*);;
23747   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23748 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23749    { (exit 1); exit 1; }; };;
23750   :[FH]-) ac_tag=-:-;;
23751   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23752   esac
23753   ac_save_IFS=$IFS
23754   IFS=:
23755   set x $ac_tag
23756   IFS=$ac_save_IFS
23757   shift
23758   ac_file=$1
23759   shift
23760
23761   case $ac_mode in
23762   :L) ac_source=$1;;
23763   :[FH])
23764     ac_file_inputs=
23765     for ac_f
23766     do
23767       case $ac_f in
23768       -) ac_f="$tmp/stdin";;
23769       *) # Look for the file first in the build tree, then in the source tree
23770          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23771          # because $ac_f cannot contain `:'.
23772          test -f "$ac_f" ||
23773            case $ac_f in
23774            [\\/$]*) false;;
23775            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23776            esac ||
23777            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23778 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23779    { (exit 1); exit 1; }; };;
23780       esac
23781       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23782       ac_file_inputs="$ac_file_inputs '$ac_f'"
23783     done
23784
23785     # Let's still pretend it is `configure' which instantiates (i.e., don't
23786     # use $as_me), people would be surprised to read:
23787     #    /* config.h.  Generated by config.status.  */
23788     configure_input='Generated from '`
23789           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23790         `' by configure.'
23791     if test x"$ac_file" != x-; then
23792       configure_input="$ac_file.  $configure_input"
23793       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23794 $as_echo "$as_me: creating $ac_file" >&6;}
23795     fi
23796     # Neutralize special characters interpreted by sed in replacement strings.
23797     case $configure_input in #(
23798     *\&* | *\|* | *\\* )
23799        ac_sed_conf_input=`$as_echo "$configure_input" |
23800        sed 's/[\\\\&|]/\\\\&/g'`;; #(
23801     *) ac_sed_conf_input=$configure_input;;
23802     esac
23803
23804     case $ac_tag in
23805     *:-:* | *:-) cat >"$tmp/stdin" \
23806       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23807 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23808    { (exit 1); exit 1; }; } ;;
23809     esac
23810     ;;
23811   esac
23812
23813   ac_dir=`$as_dirname -- "$ac_file" ||
23814 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23815          X"$ac_file" : 'X\(//\)[^/]' \| \
23816          X"$ac_file" : 'X\(//\)$' \| \
23817          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23818 $as_echo X"$ac_file" |
23819     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23820             s//\1/
23821             q
23822           }
23823           /^X\(\/\/\)[^/].*/{
23824             s//\1/
23825             q
23826           }
23827           /^X\(\/\/\)$/{
23828             s//\1/
23829             q
23830           }
23831           /^X\(\/\).*/{
23832             s//\1/
23833             q
23834           }
23835           s/.*/./; q'`
23836   { as_dir="$ac_dir"
23837   case $as_dir in #(
23838   -*) as_dir=./$as_dir;;
23839   esac
23840   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23841     as_dirs=
23842     while :; do
23843       case $as_dir in #(
23844       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23845       *) as_qdir=$as_dir;;
23846       esac
23847       as_dirs="'$as_qdir' $as_dirs"
23848       as_dir=`$as_dirname -- "$as_dir" ||
23849 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23850          X"$as_dir" : 'X\(//\)[^/]' \| \
23851          X"$as_dir" : 'X\(//\)$' \| \
23852          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23853 $as_echo X"$as_dir" |
23854     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23855             s//\1/
23856             q
23857           }
23858           /^X\(\/\/\)[^/].*/{
23859             s//\1/
23860             q
23861           }
23862           /^X\(\/\/\)$/{
23863             s//\1/
23864             q
23865           }
23866           /^X\(\/\).*/{
23867             s//\1/
23868             q
23869           }
23870           s/.*/./; q'`
23871       test -d "$as_dir" && break
23872     done
23873     test -z "$as_dirs" || eval "mkdir $as_dirs"
23874   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23875 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23876    { (exit 1); exit 1; }; }; }
23877   ac_builddir=.
23878
23879 case "$ac_dir" in
23880 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23881 *)
23882   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23883   # A ".." for each directory in $ac_dir_suffix.
23884   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23885   case $ac_top_builddir_sub in
23886   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23887   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23888   esac ;;
23889 esac
23890 ac_abs_top_builddir=$ac_pwd
23891 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23892 # for backward compatibility:
23893 ac_top_builddir=$ac_top_build_prefix
23894
23895 case $srcdir in
23896   .)  # We are building in place.
23897     ac_srcdir=.
23898     ac_top_srcdir=$ac_top_builddir_sub
23899     ac_abs_top_srcdir=$ac_pwd ;;
23900   [\\/]* | ?:[\\/]* )  # Absolute name.
23901     ac_srcdir=$srcdir$ac_dir_suffix;
23902     ac_top_srcdir=$srcdir
23903     ac_abs_top_srcdir=$srcdir ;;
23904   *) # Relative name.
23905     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23906     ac_top_srcdir=$ac_top_build_prefix$srcdir
23907     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23908 esac
23909 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23910
23911
23912   case $ac_mode in
23913   :F)
23914   #
23915   # CONFIG_FILE
23916   #
23917
23918   case $INSTALL in
23919   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23920   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23921   esac
23922   ac_MKDIR_P=$MKDIR_P
23923   case $MKDIR_P in
23924   [\\/$]* | ?:[\\/]* ) ;;
23925   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23926   esac
23927 _ACEOF
23928
23929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23930 # If the template does not know about datarootdir, expand it.
23931 # FIXME: This hack should be removed a few years after 2.60.
23932 ac_datarootdir_hack=; ac_datarootdir_seen=
23933
23934 ac_sed_dataroot='
23935 /datarootdir/ {
23936   p
23937   q
23938 }
23939 /@datadir@/p
23940 /@docdir@/p
23941 /@infodir@/p
23942 /@localedir@/p
23943 /@mandir@/p
23944 '
23945 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23946 *datarootdir*) ac_datarootdir_seen=yes;;
23947 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23948   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23949 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23950 _ACEOF
23951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23952   ac_datarootdir_hack='
23953   s&@datadir@&$datadir&g
23954   s&@docdir@&$docdir&g
23955   s&@infodir@&$infodir&g
23956   s&@localedir@&$localedir&g
23957   s&@mandir@&$mandir&g
23958     s&\\\${datarootdir}&$datarootdir&g' ;;
23959 esac
23960 _ACEOF
23961
23962 # Neutralize VPATH when `$srcdir' = `.'.
23963 # Shell code in configure.ac might set extrasub.
23964 # FIXME: do we really want to maintain this feature?
23965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23966 ac_sed_extra="$ac_vpsub
23967 $extrasub
23968 _ACEOF
23969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23970 :t
23971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23972 s|@configure_input@|$ac_sed_conf_input|;t t
23973 s&@top_builddir@&$ac_top_builddir_sub&;t t
23974 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23975 s&@srcdir@&$ac_srcdir&;t t
23976 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23977 s&@top_srcdir@&$ac_top_srcdir&;t t
23978 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23979 s&@builddir@&$ac_builddir&;t t
23980 s&@abs_builddir@&$ac_abs_builddir&;t t
23981 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23982 s&@INSTALL@&$ac_INSTALL&;t t
23983 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23984 $ac_datarootdir_hack
23985 "
23986 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23987   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23988 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23989    { (exit 1); exit 1; }; }
23990
23991 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23992   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23993   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23994   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23995 which seems to be undefined.  Please make sure it is defined." >&5
23996 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23997 which seems to be undefined.  Please make sure it is defined." >&2;}
23998
23999   rm -f "$tmp/stdin"
24000   case $ac_file in
24001   -) cat "$tmp/out" && rm -f "$tmp/out";;
24002   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24003   esac \
24004   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24005 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24006    { (exit 1); exit 1; }; }
24007  ;;
24008   :H)
24009   #
24010   # CONFIG_HEADER
24011   #
24012   if test x"$ac_file" != x-; then
24013     {
24014       $as_echo "/* $configure_input  */" \
24015       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24016     } >"$tmp/config.h" \
24017       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24018 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24019    { (exit 1); exit 1; }; }
24020     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24021       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24022 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24023     else
24024       rm -f "$ac_file"
24025       mv "$tmp/config.h" "$ac_file" \
24026         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24027 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24028    { (exit 1); exit 1; }; }
24029     fi
24030   else
24031     $as_echo "/* $configure_input  */" \
24032       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24033       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
24034 $as_echo "$as_me: error: could not create -" >&2;}
24035    { (exit 1); exit 1; }; }
24036   fi
24037 # Compute "$ac_file"'s index in $config_headers.
24038 _am_arg="$ac_file"
24039 _am_stamp_count=1
24040 for _am_header in $config_headers :; do
24041   case $_am_header in
24042     $_am_arg | $_am_arg:* )
24043       break ;;
24044     * )
24045       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24046   esac
24047 done
24048 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24049 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24050          X"$_am_arg" : 'X\(//\)[^/]' \| \
24051          X"$_am_arg" : 'X\(//\)$' \| \
24052          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24053 $as_echo X"$_am_arg" |
24054     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24055             s//\1/
24056             q
24057           }
24058           /^X\(\/\/\)[^/].*/{
24059             s//\1/
24060             q
24061           }
24062           /^X\(\/\/\)$/{
24063             s//\1/
24064             q
24065           }
24066           /^X\(\/\).*/{
24067             s//\1/
24068             q
24069           }
24070           s/.*/./; q'`/stamp-h$_am_stamp_count
24071  ;;
24072
24073   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
24074 $as_echo "$as_me: executing $ac_file commands" >&6;}
24075  ;;
24076   esac
24077
24078
24079   case $ac_file$ac_mode in
24080     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24081   # Autoconf 2.62 quotes --file arguments for eval, but not when files
24082   # are listed without --file.  Let's play safe and only enable the eval
24083   # if we detect the quoting.
24084   case $CONFIG_FILES in
24085   *\'*) eval set x "$CONFIG_FILES" ;;
24086   *)   set x $CONFIG_FILES ;;
24087   esac
24088   shift
24089   for mf
24090   do
24091     # Strip MF so we end up with the name of the file.
24092     mf=`echo "$mf" | sed -e 's/:.*$//'`
24093     # Check whether this is an Automake generated Makefile or not.
24094     # We used to match only the files named `Makefile.in', but
24095     # some people rename them; so instead we look at the file content.
24096     # Grep'ing the first line is not enough: some people post-process
24097     # each Makefile.in and add a new line on top of each file to say so.
24098     # Grep'ing the whole file is not good either: AIX grep has a line
24099     # limit of 2048, but all sed's we know have understand at least 4000.
24100     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24101       dirpart=`$as_dirname -- "$mf" ||
24102 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24103          X"$mf" : 'X\(//\)[^/]' \| \
24104          X"$mf" : 'X\(//\)$' \| \
24105          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24106 $as_echo X"$mf" |
24107     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24108             s//\1/
24109             q
24110           }
24111           /^X\(\/\/\)[^/].*/{
24112             s//\1/
24113             q
24114           }
24115           /^X\(\/\/\)$/{
24116             s//\1/
24117             q
24118           }
24119           /^X\(\/\).*/{
24120             s//\1/
24121             q
24122           }
24123           s/.*/./; q'`
24124     else
24125       continue
24126     fi
24127     # Extract the definition of DEPDIR, am__include, and am__quote
24128     # from the Makefile without running `make'.
24129     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24130     test -z "$DEPDIR" && continue
24131     am__include=`sed -n 's/^am__include = //p' < "$mf"`
24132     test -z "am__include" && continue
24133     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24134     # When using ansi2knr, U may be empty or an underscore; expand it
24135     U=`sed -n 's/^U = //p' < "$mf"`
24136     # Find all dependency output files, they are included files with
24137     # $(DEPDIR) in their names.  We invoke sed twice because it is the
24138     # simplest approach to changing $(DEPDIR) to its actual value in the
24139     # expansion.
24140     for file in `sed -n "
24141       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24142          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24143       # Make sure the directory exists.
24144       test -f "$dirpart/$file" && continue
24145       fdir=`$as_dirname -- "$file" ||
24146 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24147          X"$file" : 'X\(//\)[^/]' \| \
24148          X"$file" : 'X\(//\)$' \| \
24149          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24150 $as_echo X"$file" |
24151     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24152             s//\1/
24153             q
24154           }
24155           /^X\(\/\/\)[^/].*/{
24156             s//\1/
24157             q
24158           }
24159           /^X\(\/\/\)$/{
24160             s//\1/
24161             q
24162           }
24163           /^X\(\/\).*/{
24164             s//\1/
24165             q
24166           }
24167           s/.*/./; q'`
24168       { as_dir=$dirpart/$fdir
24169   case $as_dir in #(
24170   -*) as_dir=./$as_dir;;
24171   esac
24172   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24173     as_dirs=
24174     while :; do
24175       case $as_dir in #(
24176       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24177       *) as_qdir=$as_dir;;
24178       esac
24179       as_dirs="'$as_qdir' $as_dirs"
24180       as_dir=`$as_dirname -- "$as_dir" ||
24181 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24182          X"$as_dir" : 'X\(//\)[^/]' \| \
24183          X"$as_dir" : 'X\(//\)$' \| \
24184          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24185 $as_echo X"$as_dir" |
24186     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24187             s//\1/
24188             q
24189           }
24190           /^X\(\/\/\)[^/].*/{
24191             s//\1/
24192             q
24193           }
24194           /^X\(\/\/\)$/{
24195             s//\1/
24196             q
24197           }
24198           /^X\(\/\).*/{
24199             s//\1/
24200             q
24201           }
24202           s/.*/./; q'`
24203       test -d "$as_dir" && break
24204     done
24205     test -z "$as_dirs" || eval "mkdir $as_dirs"
24206   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24207 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24208    { (exit 1); exit 1; }; }; }
24209       # echo "creating $dirpart/$file"
24210       echo '# dummy' > "$dirpart/$file"
24211     done
24212   done
24213 }
24214  ;;
24215     "libtool":C)
24216
24217     # See if we are running on zsh, and set the options which allow our
24218     # commands through without removal of \ escapes.
24219     if test -n "${ZSH_VERSION+set}" ; then
24220       setopt NO_GLOB_SUBST
24221     fi
24222
24223     cfgfile="${ofile}T"
24224     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24225     $RM "$cfgfile"
24226
24227     cat <<_LT_EOF >> "$cfgfile"
24228 #! $SHELL
24229
24230 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24231 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24232 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24233 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24234 #
24235 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24236 #                 2006, 2007, 2008 Free Software Foundation, Inc.
24237 #   Written by Gordon Matzigkeit, 1996
24238 #
24239 #   This file is part of GNU Libtool.
24240 #
24241 # GNU Libtool is free software; you can redistribute it and/or
24242 # modify it under the terms of the GNU General Public License as
24243 # published by the Free Software Foundation; either version 2 of
24244 # the License, or (at your option) any later version.
24245 #
24246 # As a special exception to the GNU General Public License,
24247 # if you distribute this file as part of a program or library that
24248 # is built using GNU Libtool, you may include this file under the
24249 # same distribution terms that you use for the rest of that program.
24250 #
24251 # GNU Libtool is distributed in the hope that it will be useful,
24252 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24253 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24254 # GNU General Public License for more details.
24255 #
24256 # You should have received a copy of the GNU General Public License
24257 # along with GNU Libtool; see the file COPYING.  If not, a copy
24258 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24259 # obtained by writing to the Free Software Foundation, Inc.,
24260 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24261
24262
24263 # The names of the tagged configurations supported by this script.
24264 available_tags="CXX "
24265
24266 # ### BEGIN LIBTOOL CONFIG
24267
24268 # Which release of libtool.m4 was used?
24269 macro_version=$macro_version
24270 macro_revision=$macro_revision
24271
24272 # Whether or not to build shared libraries.
24273 build_libtool_libs=$enable_shared
24274
24275 # Whether or not to build static libraries.
24276 build_old_libs=$enable_static
24277
24278 # What type of objects to build.
24279 pic_mode=$pic_mode
24280
24281 # Whether or not to optimize for fast installation.
24282 fast_install=$enable_fast_install
24283
24284 # The host system.
24285 host_alias=$host_alias
24286 host=$host
24287 host_os=$host_os
24288
24289 # The build system.
24290 build_alias=$build_alias
24291 build=$build
24292 build_os=$build_os
24293
24294 # A sed program that does not truncate output.
24295 SED=$lt_SED
24296
24297 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24298 Xsed="\$SED -e 1s/^X//"
24299
24300 # A grep program that handles long lines.
24301 GREP=$lt_GREP
24302
24303 # An ERE matcher.
24304 EGREP=$lt_EGREP
24305
24306 # A literal string matcher.
24307 FGREP=$lt_FGREP
24308
24309 # A BSD- or MS-compatible name lister.
24310 NM=$lt_NM
24311
24312 # Whether we need soft or hard links.
24313 LN_S=$lt_LN_S
24314
24315 # What is the maximum length of a command?
24316 max_cmd_len=$max_cmd_len
24317
24318 # Object file suffix (normally "o").
24319 objext=$ac_objext
24320
24321 # Executable file suffix (normally "").
24322 exeext=$exeext
24323
24324 # whether the shell understands "unset".
24325 lt_unset=$lt_unset
24326
24327 # turn spaces into newlines.
24328 SP2NL=$lt_lt_SP2NL
24329
24330 # turn newlines into spaces.
24331 NL2SP=$lt_lt_NL2SP
24332
24333 # How to create reloadable object files.
24334 reload_flag=$lt_reload_flag
24335 reload_cmds=$lt_reload_cmds
24336
24337 # An object symbol dumper.
24338 OBJDUMP=$lt_OBJDUMP
24339
24340 # Method to check whether dependent libraries are shared objects.
24341 deplibs_check_method=$lt_deplibs_check_method
24342
24343 # Command to use when deplibs_check_method == "file_magic".
24344 file_magic_cmd=$lt_file_magic_cmd
24345
24346 # The archiver.
24347 AR=$lt_AR
24348 AR_FLAGS=$lt_AR_FLAGS
24349
24350 # A symbol stripping program.
24351 STRIP=$lt_STRIP
24352
24353 # Commands used to install an old-style archive.
24354 RANLIB=$lt_RANLIB
24355 old_postinstall_cmds=$lt_old_postinstall_cmds
24356 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24357
24358 # A C compiler.
24359 LTCC=$lt_CC
24360
24361 # LTCC compiler flags.
24362 LTCFLAGS=$lt_CFLAGS
24363
24364 # Take the output of nm and produce a listing of raw symbols and C names.
24365 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24366
24367 # Transform the output of nm in a proper C declaration.
24368 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24369
24370 # Transform the output of nm in a C name address pair.
24371 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24372
24373 # Transform the output of nm in a C name address pair when lib prefix is needed.
24374 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24375
24376 # The name of the directory that contains temporary libtool files.
24377 objdir=$objdir
24378
24379 # Shell to use when invoking shell scripts.
24380 SHELL=$lt_SHELL
24381
24382 # An echo program that does not interpret backslashes.
24383 ECHO=$lt_ECHO
24384
24385 # Used to examine libraries when file_magic_cmd begins with "file".
24386 MAGIC_CMD=$MAGIC_CMD
24387
24388 # Must we lock files when doing compilation?
24389 need_locks=$lt_need_locks
24390
24391 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24392 DSYMUTIL=$lt_DSYMUTIL
24393
24394 # Tool to change global to local symbols on Mac OS X.
24395 NMEDIT=$lt_NMEDIT
24396
24397 # Tool to manipulate fat objects and archives on Mac OS X.
24398 LIPO=$lt_LIPO
24399
24400 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24401 OTOOL=$lt_OTOOL
24402
24403 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24404 OTOOL64=$lt_OTOOL64
24405
24406 # Old archive suffix (normally "a").
24407 libext=$libext
24408
24409 # Shared library suffix (normally ".so").
24410 shrext_cmds=$lt_shrext_cmds
24411
24412 # The commands to extract the exported symbol list from a shared archive.
24413 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24414
24415 # Variables whose values should be saved in libtool wrapper scripts and
24416 # restored at link time.
24417 variables_saved_for_relink=$lt_variables_saved_for_relink
24418
24419 # Do we need the "lib" prefix for modules?
24420 need_lib_prefix=$need_lib_prefix
24421
24422 # Do we need a version for libraries?
24423 need_version=$need_version
24424
24425 # Library versioning type.
24426 version_type=$version_type
24427
24428 # Shared library runtime path variable.
24429 runpath_var=$runpath_var
24430
24431 # Shared library path variable.
24432 shlibpath_var=$shlibpath_var
24433
24434 # Is shlibpath searched before the hard-coded library search path?
24435 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24436
24437 # Format of library name prefix.
24438 libname_spec=$lt_libname_spec
24439
24440 # List of archive names.  First name is the real one, the rest are links.
24441 # The last name is the one that the linker finds with -lNAME
24442 library_names_spec=$lt_library_names_spec
24443
24444 # The coded name of the library, if different from the real name.
24445 soname_spec=$lt_soname_spec
24446
24447 # Command to use after installation of a shared archive.
24448 postinstall_cmds=$lt_postinstall_cmds
24449
24450 # Command to use after uninstallation of a shared archive.
24451 postuninstall_cmds=$lt_postuninstall_cmds
24452
24453 # Commands used to finish a libtool library installation in a directory.
24454 finish_cmds=$lt_finish_cmds
24455
24456 # As "finish_cmds", except a single script fragment to be evaled but
24457 # not shown.
24458 finish_eval=$lt_finish_eval
24459
24460 # Whether we should hardcode library paths into libraries.
24461 hardcode_into_libs=$hardcode_into_libs
24462
24463 # Compile-time system search path for libraries.
24464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24465
24466 # Run-time system search path for libraries.
24467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24468
24469 # Whether dlopen is supported.
24470 dlopen_support=$enable_dlopen
24471
24472 # Whether dlopen of programs is supported.
24473 dlopen_self=$enable_dlopen_self
24474
24475 # Whether dlopen of statically linked programs is supported.
24476 dlopen_self_static=$enable_dlopen_self_static
24477
24478 # Commands to strip libraries.
24479 old_striplib=$lt_old_striplib
24480 striplib=$lt_striplib
24481
24482
24483 # The linker used to build libraries.
24484 LD=$lt_LD
24485
24486 # Commands used to build an old-style archive.
24487 old_archive_cmds=$lt_old_archive_cmds
24488
24489 # A language specific compiler.
24490 CC=$lt_compiler
24491
24492 # Is the compiler the GNU compiler?
24493 with_gcc=$GCC
24494
24495 # Compiler flag to turn off builtin functions.
24496 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24497
24498 # How to pass a linker flag through the compiler.
24499 wl=$lt_lt_prog_compiler_wl
24500
24501 # Additional compiler flags for building library objects.
24502 pic_flag=$lt_lt_prog_compiler_pic
24503
24504 # Compiler flag to prevent dynamic linking.
24505 link_static_flag=$lt_lt_prog_compiler_static
24506
24507 # Does compiler simultaneously support -c and -o options?
24508 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24509
24510 # Whether or not to add -lc for building shared libraries.
24511 build_libtool_need_lc=$archive_cmds_need_lc
24512
24513 # Whether or not to disallow shared libs when runtime libs are static.
24514 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24515
24516 # Compiler flag to allow reflexive dlopens.
24517 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24518
24519 # Compiler flag to generate shared objects directly from archives.
24520 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24521
24522 # Whether the compiler copes with passing no objects directly.
24523 compiler_needs_object=$lt_compiler_needs_object
24524
24525 # Create an old-style archive from a shared archive.
24526 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24527
24528 # Create a temporary old-style archive to link instead of a shared archive.
24529 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24530
24531 # Commands used to build a shared archive.
24532 archive_cmds=$lt_archive_cmds
24533 archive_expsym_cmds=$lt_archive_expsym_cmds
24534
24535 # Commands used to build a loadable module if different from building
24536 # a shared archive.
24537 module_cmds=$lt_module_cmds
24538 module_expsym_cmds=$lt_module_expsym_cmds
24539
24540 # Whether we are building with GNU ld or not.
24541 with_gnu_ld=$lt_with_gnu_ld
24542
24543 # Flag that allows shared libraries with undefined symbols to be built.
24544 allow_undefined_flag=$lt_allow_undefined_flag
24545
24546 # Flag that enforces no undefined symbols.
24547 no_undefined_flag=$lt_no_undefined_flag
24548
24549 # Flag to hardcode \$libdir into a binary during linking.
24550 # This must work even if \$libdir does not exist
24551 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24552
24553 # If ld is used when linking, flag to hardcode \$libdir into a binary
24554 # during linking.  This must work even if \$libdir does not exist.
24555 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24556
24557 # Whether we need a single "-rpath" flag with a separated argument.
24558 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24559
24560 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24561 # DIR into the resulting binary.
24562 hardcode_direct=$hardcode_direct
24563
24564 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24565 # DIR into the resulting binary and the resulting library dependency is
24566 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24567 # library is relocated.
24568 hardcode_direct_absolute=$hardcode_direct_absolute
24569
24570 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24571 # into the resulting binary.
24572 hardcode_minus_L=$hardcode_minus_L
24573
24574 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24575 # into the resulting binary.
24576 hardcode_shlibpath_var=$hardcode_shlibpath_var
24577
24578 # Set to "yes" if building a shared library automatically hardcodes DIR
24579 # into the library and all subsequent libraries and executables linked
24580 # against it.
24581 hardcode_automatic=$hardcode_automatic
24582
24583 # Set to yes if linker adds runtime paths of dependent libraries
24584 # to runtime path list.
24585 inherit_rpath=$inherit_rpath
24586
24587 # Whether libtool must link a program against all its dependency libraries.
24588 link_all_deplibs=$link_all_deplibs
24589
24590 # Fix the shell variable \$srcfile for the compiler.
24591 fix_srcfile_path=$lt_fix_srcfile_path
24592
24593 # Set to "yes" if exported symbols are required.
24594 always_export_symbols=$always_export_symbols
24595
24596 # The commands to list exported symbols.
24597 export_symbols_cmds=$lt_export_symbols_cmds
24598
24599 # Symbols that should not be listed in the preloaded symbols.
24600 exclude_expsyms=$lt_exclude_expsyms
24601
24602 # Symbols that must always be exported.
24603 include_expsyms=$lt_include_expsyms
24604
24605 # Commands necessary for linking programs (against libraries) with templates.
24606 prelink_cmds=$lt_prelink_cmds
24607
24608 # Specify filename containing input files.
24609 file_list_spec=$lt_file_list_spec
24610
24611 # How to hardcode a shared library path into an executable.
24612 hardcode_action=$hardcode_action
24613
24614 # The directories searched by this compiler when creating a shared library.
24615 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24616
24617 # Dependencies to place before and after the objects being linked to
24618 # create a shared library.
24619 predep_objects=$lt_predep_objects
24620 postdep_objects=$lt_postdep_objects
24621 predeps=$lt_predeps
24622 postdeps=$lt_postdeps
24623
24624 # The library search path used internally by the compiler when linking
24625 # a shared library.
24626 compiler_lib_search_path=$lt_compiler_lib_search_path
24627
24628 # ### END LIBTOOL CONFIG
24629
24630 _LT_EOF
24631
24632   case $host_os in
24633   aix3*)
24634     cat <<\_LT_EOF >> "$cfgfile"
24635 # AIX sometimes has problems with the GCC collect2 program.  For some
24636 # reason, if we set the COLLECT_NAMES environment variable, the problems
24637 # vanish in a puff of smoke.
24638 if test "X${COLLECT_NAMES+set}" != Xset; then
24639   COLLECT_NAMES=
24640   export COLLECT_NAMES
24641 fi
24642 _LT_EOF
24643     ;;
24644   esac
24645
24646
24647 ltmain="$ac_aux_dir/ltmain.sh"
24648
24649
24650   # We use sed instead of cat because bash on DJGPP gets confused if
24651   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24652   # text mode, it properly converts lines to CR/LF.  This bash problem
24653   # is reportedly fixed, but why not run on old versions too?
24654   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24655     || (rm -f "$cfgfile"; exit 1)
24656
24657   case $xsi_shell in
24658   yes)
24659     cat << \_LT_EOF >> "$cfgfile"
24660
24661 # func_dirname file append nondir_replacement
24662 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
24663 # otherwise set result to NONDIR_REPLACEMENT.
24664 func_dirname ()
24665 {
24666   case ${1} in
24667     */*) func_dirname_result="${1%/*}${2}" ;;
24668     *  ) func_dirname_result="${3}" ;;
24669   esac
24670 }
24671
24672 # func_basename file
24673 func_basename ()
24674 {
24675   func_basename_result="${1##*/}"
24676 }
24677
24678 # func_dirname_and_basename file append nondir_replacement
24679 # perform func_basename and func_dirname in a single function
24680 # call:
24681 #   dirname:  Compute the dirname of FILE.  If nonempty,
24682 #             add APPEND to the result, otherwise set result
24683 #             to NONDIR_REPLACEMENT.
24684 #             value returned in "$func_dirname_result"
24685 #   basename: Compute filename of FILE.
24686 #             value retuned in "$func_basename_result"
24687 # Implementation must be kept synchronized with func_dirname
24688 # and func_basename. For efficiency, we do not delegate to
24689 # those functions but instead duplicate the functionality here.
24690 func_dirname_and_basename ()
24691 {
24692   case ${1} in
24693     */*) func_dirname_result="${1%/*}${2}" ;;
24694     *  ) func_dirname_result="${3}" ;;
24695   esac
24696   func_basename_result="${1##*/}"
24697 }
24698
24699 # func_stripname prefix suffix name
24700 # strip PREFIX and SUFFIX off of NAME.
24701 # PREFIX and SUFFIX must not contain globbing or regex special
24702 # characters, hashes, percent signs, but SUFFIX may contain a leading
24703 # dot (in which case that matches only a dot).
24704 func_stripname ()
24705 {
24706   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24707   # positional parameters, so assign one to ordinary parameter first.
24708   func_stripname_result=${3}
24709   func_stripname_result=${func_stripname_result#"${1}"}
24710   func_stripname_result=${func_stripname_result%"${2}"}
24711 }
24712
24713 # func_opt_split
24714 func_opt_split ()
24715 {
24716   func_opt_split_opt=${1%%=*}
24717   func_opt_split_arg=${1#*=}
24718 }
24719
24720 # func_lo2o object
24721 func_lo2o ()
24722 {
24723   case ${1} in
24724     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24725     *)    func_lo2o_result=${1} ;;
24726   esac
24727 }
24728
24729 # func_xform libobj-or-source
24730 func_xform ()
24731 {
24732   func_xform_result=${1%.*}.lo
24733 }
24734
24735 # func_arith arithmetic-term...
24736 func_arith ()
24737 {
24738   func_arith_result=$(( $* ))
24739 }
24740
24741 # func_len string
24742 # STRING may not start with a hyphen.
24743 func_len ()
24744 {
24745   func_len_result=${#1}
24746 }
24747
24748 _LT_EOF
24749     ;;
24750   *) # Bourne compatible functions.
24751     cat << \_LT_EOF >> "$cfgfile"
24752
24753 # func_dirname file append nondir_replacement
24754 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
24755 # otherwise set result to NONDIR_REPLACEMENT.
24756 func_dirname ()
24757 {
24758   # Extract subdirectory from the argument.
24759   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24760   if test "X$func_dirname_result" = "X${1}"; then
24761     func_dirname_result="${3}"
24762   else
24763     func_dirname_result="$func_dirname_result${2}"
24764   fi
24765 }
24766
24767 # func_basename file
24768 func_basename ()
24769 {
24770   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24771 }
24772
24773
24774 # func_stripname prefix suffix name
24775 # strip PREFIX and SUFFIX off of NAME.
24776 # PREFIX and SUFFIX must not contain globbing or regex special
24777 # characters, hashes, percent signs, but SUFFIX may contain a leading
24778 # dot (in which case that matches only a dot).
24779 # func_strip_suffix prefix name
24780 func_stripname ()
24781 {
24782   case ${2} in
24783     .*) func_stripname_result=`$ECHO "X${3}" \
24784            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24785     *)  func_stripname_result=`$ECHO "X${3}" \
24786            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24787   esac
24788 }
24789
24790 # sed scripts:
24791 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24792 my_sed_long_arg='1s/^-[^=]*=//'
24793
24794 # func_opt_split
24795 func_opt_split ()
24796 {
24797   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24798   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24799 }
24800
24801 # func_lo2o object
24802 func_lo2o ()
24803 {
24804   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24805 }
24806
24807 # func_xform libobj-or-source
24808 func_xform ()
24809 {
24810   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24811 }
24812
24813 # func_arith arithmetic-term...
24814 func_arith ()
24815 {
24816   func_arith_result=`expr "$@"`
24817 }
24818
24819 # func_len string
24820 # STRING may not start with a hyphen.
24821 func_len ()
24822 {
24823   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24824 }
24825
24826 _LT_EOF
24827 esac
24828
24829 case $lt_shell_append in
24830   yes)
24831     cat << \_LT_EOF >> "$cfgfile"
24832
24833 # func_append var value
24834 # Append VALUE to the end of shell variable VAR.
24835 func_append ()
24836 {
24837   eval "$1+=\$2"
24838 }
24839 _LT_EOF
24840     ;;
24841   *)
24842     cat << \_LT_EOF >> "$cfgfile"
24843
24844 # func_append var value
24845 # Append VALUE to the end of shell variable VAR.
24846 func_append ()
24847 {
24848   eval "$1=\$$1\$2"
24849 }
24850
24851 _LT_EOF
24852     ;;
24853   esac
24854
24855
24856   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24857     || (rm -f "$cfgfile"; exit 1)
24858
24859   mv -f "$cfgfile" "$ofile" ||
24860     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24861   chmod +x "$ofile"
24862
24863
24864     cat <<_LT_EOF >> "$ofile"
24865
24866 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24867
24868 # The linker used to build libraries.
24869 LD=$lt_LD_CXX
24870
24871 # Commands used to build an old-style archive.
24872 old_archive_cmds=$lt_old_archive_cmds_CXX
24873
24874 # A language specific compiler.
24875 CC=$lt_compiler_CXX
24876
24877 # Is the compiler the GNU compiler?
24878 with_gcc=$GCC_CXX
24879
24880 # Compiler flag to turn off builtin functions.
24881 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24882
24883 # How to pass a linker flag through the compiler.
24884 wl=$lt_lt_prog_compiler_wl_CXX
24885
24886 # Additional compiler flags for building library objects.
24887 pic_flag=$lt_lt_prog_compiler_pic_CXX
24888
24889 # Compiler flag to prevent dynamic linking.
24890 link_static_flag=$lt_lt_prog_compiler_static_CXX
24891
24892 # Does compiler simultaneously support -c and -o options?
24893 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24894
24895 # Whether or not to add -lc for building shared libraries.
24896 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24897
24898 # Whether or not to disallow shared libs when runtime libs are static.
24899 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24900
24901 # Compiler flag to allow reflexive dlopens.
24902 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24903
24904 # Compiler flag to generate shared objects directly from archives.
24905 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24906
24907 # Whether the compiler copes with passing no objects directly.
24908 compiler_needs_object=$lt_compiler_needs_object_CXX
24909
24910 # Create an old-style archive from a shared archive.
24911 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24912
24913 # Create a temporary old-style archive to link instead of a shared archive.
24914 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24915
24916 # Commands used to build a shared archive.
24917 archive_cmds=$lt_archive_cmds_CXX
24918 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24919
24920 # Commands used to build a loadable module if different from building
24921 # a shared archive.
24922 module_cmds=$lt_module_cmds_CXX
24923 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24924
24925 # Whether we are building with GNU ld or not.
24926 with_gnu_ld=$lt_with_gnu_ld_CXX
24927
24928 # Flag that allows shared libraries with undefined symbols to be built.
24929 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24930
24931 # Flag that enforces no undefined symbols.
24932 no_undefined_flag=$lt_no_undefined_flag_CXX
24933
24934 # Flag to hardcode \$libdir into a binary during linking.
24935 # This must work even if \$libdir does not exist
24936 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24937
24938 # If ld is used when linking, flag to hardcode \$libdir into a binary
24939 # during linking.  This must work even if \$libdir does not exist.
24940 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
24941
24942 # Whether we need a single "-rpath" flag with a separated argument.
24943 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24944
24945 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24946 # DIR into the resulting binary.
24947 hardcode_direct=$hardcode_direct_CXX
24948
24949 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24950 # DIR into the resulting binary and the resulting library dependency is
24951 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24952 # library is relocated.
24953 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24954
24955 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24956 # into the resulting binary.
24957 hardcode_minus_L=$hardcode_minus_L_CXX
24958
24959 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24960 # into the resulting binary.
24961 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24962
24963 # Set to "yes" if building a shared library automatically hardcodes DIR
24964 # into the library and all subsequent libraries and executables linked
24965 # against it.
24966 hardcode_automatic=$hardcode_automatic_CXX
24967
24968 # Set to yes if linker adds runtime paths of dependent libraries
24969 # to runtime path list.
24970 inherit_rpath=$inherit_rpath_CXX
24971
24972 # Whether libtool must link a program against all its dependency libraries.
24973 link_all_deplibs=$link_all_deplibs_CXX
24974
24975 # Fix the shell variable \$srcfile for the compiler.
24976 fix_srcfile_path=$lt_fix_srcfile_path_CXX
24977
24978 # Set to "yes" if exported symbols are required.
24979 always_export_symbols=$always_export_symbols_CXX
24980
24981 # The commands to list exported symbols.
24982 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24983
24984 # Symbols that should not be listed in the preloaded symbols.
24985 exclude_expsyms=$lt_exclude_expsyms_CXX
24986
24987 # Symbols that must always be exported.
24988 include_expsyms=$lt_include_expsyms_CXX
24989
24990 # Commands necessary for linking programs (against libraries) with templates.
24991 prelink_cmds=$lt_prelink_cmds_CXX
24992
24993 # Specify filename containing input files.
24994 file_list_spec=$lt_file_list_spec_CXX
24995
24996 # How to hardcode a shared library path into an executable.
24997 hardcode_action=$hardcode_action_CXX
24998
24999 # The directories searched by this compiler when creating a shared library.
25000 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25001
25002 # Dependencies to place before and after the objects being linked to
25003 # create a shared library.
25004 predep_objects=$lt_predep_objects_CXX
25005 postdep_objects=$lt_postdep_objects_CXX
25006 predeps=$lt_predeps_CXX
25007 postdeps=$lt_postdeps_CXX
25008
25009 # The library search path used internally by the compiler when linking
25010 # a shared library.
25011 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25012
25013 # ### END LIBTOOL TAG CONFIG: CXX
25014 _LT_EOF
25015
25016  ;;
25017
25018   esac
25019 done # for ac_tag
25020
25021
25022 { (exit 0); exit 0; }
25023 _ACEOF
25024 chmod +x $CONFIG_STATUS
25025 ac_clean_files=$ac_clean_files_save
25026
25027 test $ac_write_fail = 0 ||
25028   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
25029 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
25030    { (exit 1); exit 1; }; }
25031
25032
25033 # configure is writing to config.log, and then calls config.status.
25034 # config.status does its own redirection, appending to config.log.
25035 # Unfortunately, on DOS this fails, as config.log is still kept open
25036 # by configure, so config.status won't be able to write to it; its
25037 # output is simply discarded.  So we exec the FD to /dev/null,
25038 # effectively closing config.log, so it can be properly (re)opened and
25039 # appended to by config.status.  When coming back to configure, we
25040 # need to make the FD available again.
25041 if test "$no_create" != yes; then
25042   ac_cs_success=:
25043   ac_config_status_args=
25044   test "$silent" = yes &&
25045     ac_config_status_args="$ac_config_status_args --quiet"
25046   exec 5>/dev/null
25047   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25048   exec 5>>config.log
25049   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25050   # would make configure fail if this is the last instruction.
25051   $ac_cs_success || { (exit 1); exit 1; }
25052 fi
25053 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25054   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25055 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25056 fi
25057
25058
25059
25060 if test -r doc/xsl/catalog.xml; then
25061         if cmp doc/xsl/catalog-1.xml doc/xsl/catalog.xml > /dev/null; then
25062                 echo doc/xsl/catalog.xml is unchanged
25063         else
25064                 cp -f doc/xsl/catalog-1.xml doc/xsl/catalog.xml
25065         fi
25066 else
25067         cp -f doc/xsl/catalog-1.xml doc/xsl/catalog.xml
25068 fi
25069
25070
25071 if test "x$enable_gui" = "xno" ; then
25072         echo "No GUI will be built as it was explicitly disabled."
25073 else
25074         if test -z "$QT_LIBS"; then
25075                 echo "Warning: QT version $QT_VERSION was requested but not found. No GUI will be built."
25076         else
25077                 echo "Building GUI with QT $QT_VERSION"
25078          fi
25079 fi
25080
25081 if ! test "x$enable_account_check" = "xyes"; then
25082         :
25083 elif test "`getent passwd oprofile 2>/dev/null`" == "" || \
25084      test "`getent group oprofile 2>/dev/null`" == ""; then
25085         if test `id -u` != "0"; then
25086                 echo "Warning: The user account 'oprofile:oprofile' does not exist on the system."
25087                 echo "         To profile JITed code, this special user account must exist."
25088                 echo "         Please ask your system administrator to add the following user and group:"
25089                 echo "             user name : 'oprofile'"
25090                 echo "             group name: 'oprofile'"
25091                 echo "         The 'oprofile' group must be the default group for the 'oprofile' user."
25092         else
25093                 echo "Warning: The user account 'oprofile:oprofile' does not exist on the system."
25094                 echo "         To profile JITed code, this special user account must exist."
25095                 echo "         Please add the following user and group:"
25096                 echo "             user name : 'oprofile'"
25097                 echo "             group name: 'oprofile'"
25098                 echo "         The 'oprofile' group must be the default group for the 'oprofile' user."
25099         fi
25100 fi
25101
25102 if  test "$PERF_EVENT_H_EXISTS" != "yes" && test "$kernel_has_perf_events_support" = "yes"; then
25103         echo "Warning: perf_event.h not found.  Please install the kernel headers package if you"
25104         echo "         want non-root support built into OProfile."
25105 fi
25106