Tizen 2.0 Release
[framework/multimedia/libcamsrcjpegenc-sw-libjpeg.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libcamsrcjpegenc-sw 0.1.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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   # Zsh 3.x and 4.x performs 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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME='libcamsrcjpegenc-sw'
723 PACKAGE_TARNAME='libcamsrcjpegenc-sw'
724 PACKAGE_VERSION='0.1'
725 PACKAGE_STRING='libcamsrcjpegenc-sw 0.1'
726 PACKAGE_BUGREPORT=''
727
728 ac_unique_file="src/camsrcjpegenc-sw-libjpeg.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 INSTALL_PROGRAM
803 INSTALL_SCRIPT
804 INSTALL_DATA
805 am__isrc
806 CYGPATH_W
807 PACKAGE
808 VERSION
809 ACLOCAL
810 AUTOCONF
811 AUTOMAKE
812 AUTOHEADER
813 MAKEINFO
814 install_sh
815 STRIP
816 INSTALL_STRIP_PROGRAM
817 mkdir_p
818 AWK
819 SET_MAKE
820 am__leading_dot
821 AMTAR
822 am__tar
823 am__untar
824 CXX
825 CXXFLAGS
826 LDFLAGS
827 CPPFLAGS
828 ac_ct_CXX
829 EXEEXT
830 OBJEXT
831 DEPDIR
832 am__include
833 am__quote
834 AMDEP_TRUE
835 AMDEP_FALSE
836 AMDEPBACKSLASH
837 CXXDEPMODE
838 am__fastdepCXX_TRUE
839 am__fastdepCXX_FALSE
840 CC
841 CFLAGS
842 ac_ct_CC
843 CCDEPMODE
844 am__fastdepCC_TRUE
845 am__fastdepCC_FALSE
846 CPP
847 LN_S
848 LIBTOOL
849 build
850 build_cpu
851 build_vendor
852 build_os
853 host
854 host_cpu
855 host_vendor
856 host_os
857 SED
858 GREP
859 EGREP
860 FGREP
861 LD
862 DUMPBIN
863 ac_ct_DUMPBIN
864 NM
865 AR
866 RANLIB
867 lt_ECHO
868 DSYMUTIL
869 NMEDIT
870 LIPO
871 OTOOL
872 OTOOL64
873 CXXCPP
874 PKG_CONFIG
875 DLOG_CFLAGS
876 DLOG_LIBS
877 USE_DLOG_TRUE
878 USE_DLOG_FALSE
879 LIBOBJS
880 GLIB_CFLAGS
881 GLIB_LIBS
882 LTLIBOBJS'
883 ac_subst_files=''
884       ac_precious_vars='build_alias
885 host_alias
886 target_alias
887 CXX
888 CXXFLAGS
889 LDFLAGS
890 LIBS
891 CPPFLAGS
892 CCC
893 CC
894 CFLAGS
895 CPP
896 CXXCPP
897 PKG_CONFIG
898 DLOG_CFLAGS
899 DLOG_LIBS
900 GLIB_CFLAGS
901 GLIB_LIBS'
902
903
904 # Initialize some variables set by options.
905 ac_init_help=
906 ac_init_version=false
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
909 cache_file=/dev/null
910 exec_prefix=NONE
911 no_create=
912 no_recursion=
913 prefix=NONE
914 program_prefix=NONE
915 program_suffix=NONE
916 program_transform_name=s,x,x,
917 silent=
918 site=
919 srcdir=
920 verbose=
921 x_includes=NONE
922 x_libraries=NONE
923
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941 infodir='${datarootdir}/info'
942 htmldir='${docdir}'
943 dvidir='${docdir}'
944 pdfdir='${docdir}'
945 psdir='${docdir}'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
949
950 ac_prev=
951 ac_dashdash=
952 for ac_option
953 do
954   # If the previous option needs an argument, assign it.
955   if test -n "$ac_prev"; then
956     eval $ac_prev=\$ac_option
957     ac_prev=
958     continue
959   fi
960
961   case $ac_option in
962   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963   *)    ac_optarg=yes ;;
964   esac
965
966   # Accept the important Cygnus configure options, so we can diagnose typos.
967
968   case $ac_dashdash$ac_option in
969   --)
970     ac_dashdash=yes ;;
971
972   -bindir | --bindir | --bindi | --bind | --bin | --bi)
973     ac_prev=bindir ;;
974   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975     bindir=$ac_optarg ;;
976
977   -build | --build | --buil | --bui | --bu)
978     ac_prev=build_alias ;;
979   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980     build_alias=$ac_optarg ;;
981
982   -cache-file | --cache-file | --cache-fil | --cache-fi \
983   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984     ac_prev=cache_file ;;
985   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987     cache_file=$ac_optarg ;;
988
989   --config-cache | -C)
990     cache_file=config.cache ;;
991
992   -datadir | --datadir | --datadi | --datad)
993     ac_prev=datadir ;;
994   -datadir=* | --datadir=* | --datadi=* | --datad=*)
995     datadir=$ac_optarg ;;
996
997   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998   | --dataroo | --dataro | --datar)
999     ac_prev=datarootdir ;;
1000   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002     datarootdir=$ac_optarg ;;
1003
1004   -disable-* | --disable-*)
1005     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006     # Reject names that are not valid shell variable names.
1007     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1008       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1009    { (exit 1); exit 1; }; }
1010     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1011     eval enable_$ac_feature=no ;;
1012
1013   -docdir | --docdir | --docdi | --doc | --do)
1014     ac_prev=docdir ;;
1015   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016     docdir=$ac_optarg ;;
1017
1018   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019     ac_prev=dvidir ;;
1020   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021     dvidir=$ac_optarg ;;
1022
1023   -enable-* | --enable-*)
1024     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025     # Reject names that are not valid shell variable names.
1026     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1027       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1028    { (exit 1); exit 1; }; }
1029     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1030     eval enable_$ac_feature=\$ac_optarg ;;
1031
1032   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034   | --exec | --exe | --ex)
1035     ac_prev=exec_prefix ;;
1036   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038   | --exec=* | --exe=* | --ex=*)
1039     exec_prefix=$ac_optarg ;;
1040
1041   -gas | --gas | --ga | --g)
1042     # Obsolete; use --with-gas.
1043     with_gas=yes ;;
1044
1045   -help | --help | --hel | --he | -h)
1046     ac_init_help=long ;;
1047   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048     ac_init_help=recursive ;;
1049   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050     ac_init_help=short ;;
1051
1052   -host | --host | --hos | --ho)
1053     ac_prev=host_alias ;;
1054   -host=* | --host=* | --hos=* | --ho=*)
1055     host_alias=$ac_optarg ;;
1056
1057   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058     ac_prev=htmldir ;;
1059   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060   | --ht=*)
1061     htmldir=$ac_optarg ;;
1062
1063   -includedir | --includedir | --includedi | --included | --include \
1064   | --includ | --inclu | --incl | --inc)
1065     ac_prev=includedir ;;
1066   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067   | --includ=* | --inclu=* | --incl=* | --inc=*)
1068     includedir=$ac_optarg ;;
1069
1070   -infodir | --infodir | --infodi | --infod | --info | --inf)
1071     ac_prev=infodir ;;
1072   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073     infodir=$ac_optarg ;;
1074
1075   -libdir | --libdir | --libdi | --libd)
1076     ac_prev=libdir ;;
1077   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078     libdir=$ac_optarg ;;
1079
1080   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081   | --libexe | --libex | --libe)
1082     ac_prev=libexecdir ;;
1083   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084   | --libexe=* | --libex=* | --libe=*)
1085     libexecdir=$ac_optarg ;;
1086
1087   -localedir | --localedir | --localedi | --localed | --locale)
1088     ac_prev=localedir ;;
1089   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090     localedir=$ac_optarg ;;
1091
1092   -localstatedir | --localstatedir | --localstatedi | --localstated \
1093   | --localstate | --localstat | --localsta | --localst | --locals)
1094     ac_prev=localstatedir ;;
1095   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097     localstatedir=$ac_optarg ;;
1098
1099   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100     ac_prev=mandir ;;
1101   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102     mandir=$ac_optarg ;;
1103
1104   -nfp | --nfp | --nf)
1105     # Obsolete; use --without-fp.
1106     with_fp=no ;;
1107
1108   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109   | --no-cr | --no-c | -n)
1110     no_create=yes ;;
1111
1112   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114     no_recursion=yes ;;
1115
1116   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118   | --oldin | --oldi | --old | --ol | --o)
1119     ac_prev=oldincludedir ;;
1120   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123     oldincludedir=$ac_optarg ;;
1124
1125   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126     ac_prev=prefix ;;
1127   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128     prefix=$ac_optarg ;;
1129
1130   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131   | --program-pre | --program-pr | --program-p)
1132     ac_prev=program_prefix ;;
1133   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135     program_prefix=$ac_optarg ;;
1136
1137   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138   | --program-suf | --program-su | --program-s)
1139     ac_prev=program_suffix ;;
1140   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142     program_suffix=$ac_optarg ;;
1143
1144   -program-transform-name | --program-transform-name \
1145   | --program-transform-nam | --program-transform-na \
1146   | --program-transform-n | --program-transform- \
1147   | --program-transform | --program-transfor \
1148   | --program-transfo | --program-transf \
1149   | --program-trans | --program-tran \
1150   | --progr-tra | --program-tr | --program-t)
1151     ac_prev=program_transform_name ;;
1152   -program-transform-name=* | --program-transform-name=* \
1153   | --program-transform-nam=* | --program-transform-na=* \
1154   | --program-transform-n=* | --program-transform-=* \
1155   | --program-transform=* | --program-transfor=* \
1156   | --program-transfo=* | --program-transf=* \
1157   | --program-trans=* | --program-tran=* \
1158   | --progr-tra=* | --program-tr=* | --program-t=*)
1159     program_transform_name=$ac_optarg ;;
1160
1161   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162     ac_prev=pdfdir ;;
1163   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164     pdfdir=$ac_optarg ;;
1165
1166   -psdir | --psdir | --psdi | --psd | --ps)
1167     ac_prev=psdir ;;
1168   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169     psdir=$ac_optarg ;;
1170
1171   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172   | -silent | --silent | --silen | --sile | --sil)
1173     silent=yes ;;
1174
1175   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176     ac_prev=sbindir ;;
1177   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178   | --sbi=* | --sb=*)
1179     sbindir=$ac_optarg ;;
1180
1181   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183   | --sharedst | --shareds | --shared | --share | --shar \
1184   | --sha | --sh)
1185     ac_prev=sharedstatedir ;;
1186   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189   | --sha=* | --sh=*)
1190     sharedstatedir=$ac_optarg ;;
1191
1192   -site | --site | --sit)
1193     ac_prev=site ;;
1194   -site=* | --site=* | --sit=*)
1195     site=$ac_optarg ;;
1196
1197   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198     ac_prev=srcdir ;;
1199   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200     srcdir=$ac_optarg ;;
1201
1202   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203   | --syscon | --sysco | --sysc | --sys | --sy)
1204     ac_prev=sysconfdir ;;
1205   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207     sysconfdir=$ac_optarg ;;
1208
1209   -target | --target | --targe | --targ | --tar | --ta | --t)
1210     ac_prev=target_alias ;;
1211   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212     target_alias=$ac_optarg ;;
1213
1214   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215     verbose=yes ;;
1216
1217   -version | --version | --versio | --versi | --vers | -V)
1218     ac_init_version=: ;;
1219
1220   -with-* | --with-*)
1221     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222     # Reject names that are not valid shell variable names.
1223     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224       { echo "$as_me: error: invalid package name: $ac_package" >&2
1225    { (exit 1); exit 1; }; }
1226     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227     eval with_$ac_package=\$ac_optarg ;;
1228
1229   -without-* | --without-*)
1230     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231     # Reject names that are not valid shell variable names.
1232     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233       { echo "$as_me: error: invalid package name: $ac_package" >&2
1234    { (exit 1); exit 1; }; }
1235     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1236     eval with_$ac_package=no ;;
1237
1238   --x)
1239     # Obsolete; use --with-x.
1240     with_x=yes ;;
1241
1242   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243   | --x-incl | --x-inc | --x-in | --x-i)
1244     ac_prev=x_includes ;;
1245   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247     x_includes=$ac_optarg ;;
1248
1249   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251     ac_prev=x_libraries ;;
1252   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254     x_libraries=$ac_optarg ;;
1255
1256   -*) { echo "$as_me: error: unrecognized option: $ac_option
1257 Try \`$0 --help' for more information." >&2
1258    { (exit 1); exit 1; }; }
1259     ;;
1260
1261   *=*)
1262     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263     # Reject names that are not valid shell variable names.
1264     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1265       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1266    { (exit 1); exit 1; }; }
1267     eval $ac_envvar=\$ac_optarg
1268     export $ac_envvar ;;
1269
1270   *)
1271     # FIXME: should be removed in autoconf 3.0.
1272     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276     ;;
1277
1278   esac
1279 done
1280
1281 if test -n "$ac_prev"; then
1282   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283   { echo "$as_me: error: missing argument to $ac_option" >&2
1284    { (exit 1); exit 1; }; }
1285 fi
1286
1287 # Be sure to have absolute directory names.
1288 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289                 datadir sysconfdir sharedstatedir localstatedir includedir \
1290                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291                 libdir localedir mandir
1292 do
1293   eval ac_val=\$$ac_var
1294   case $ac_val in
1295     [\\/$]* | ?:[\\/]* )  continue;;
1296     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297   esac
1298   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1299    { (exit 1); exit 1; }; }
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311   if test "x$build_alias" = x; then
1312     cross_compiling=maybe
1313     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1314     If a cross compiler is detected then cross compile mode will be used." >&2
1315   elif test "x$build_alias" != "x$host_alias"; then
1316     cross_compiling=yes
1317   fi
1318 fi
1319
1320 ac_tool_prefix=
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323 test "$silent" = yes && exec 6>/dev/null
1324
1325
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329   { echo "$as_me: error: Working directory cannot be determined" >&2
1330    { (exit 1); exit 1; }; }
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332   { echo "$as_me: error: pwd does not report name of working directory" >&2
1333    { (exit 1); exit 1; }; }
1334
1335
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338   ac_srcdir_defaulted=yes
1339   # Try the directory containing this script, then the parent directory.
1340   ac_confdir=`$as_dirname -- "$0" ||
1341 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342          X"$0" : 'X\(//\)[^/]' \| \
1343          X"$0" : 'X\(//\)$' \| \
1344          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1345 echo X"$0" |
1346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347             s//\1/
1348             q
1349           }
1350           /^X\(\/\/\)[^/].*/{
1351             s//\1/
1352             q
1353           }
1354           /^X\(\/\/\)$/{
1355             s//\1/
1356             q
1357           }
1358           /^X\(\/\).*/{
1359             s//\1/
1360             q
1361           }
1362           s/.*/./; q'`
1363   srcdir=$ac_confdir
1364   if test ! -r "$srcdir/$ac_unique_file"; then
1365     srcdir=..
1366   fi
1367 else
1368   ac_srcdir_defaulted=no
1369 fi
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1373    { (exit 1); exit 1; }; }
1374 fi
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1378    { (exit 1); exit 1; }; }
1379         pwd)`
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382   srcdir=.
1383 fi
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1387 case $srcdir in
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 esac
1390 for ac_var in $ac_precious_vars; do
1391   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392   eval ac_env_${ac_var}_value=\$${ac_var}
1393   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 done
1396
1397 #
1398 # Report the --help message.
1399 #
1400 if test "$ac_init_help" = "long"; then
1401   # Omit some internal or obsolete options to make the list less imposing.
1402   # This message is too long to be a string in the A/UX 3.1 sh.
1403   cat <<_ACEOF
1404 \`configure' configures libcamsrcjpegenc-sw 0.1 to adapt to many kinds of systems.
1405
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE.  See below for descriptions of some of the useful variables.
1410
1411 Defaults for the options are specified in brackets.
1412
1413 Configuration:
1414   -h, --help              display this help and exit
1415       --help=short        display options specific to this package
1416       --help=recursive    display the short help of all the included packages
1417   -V, --version           display version information and exit
1418   -q, --quiet, --silent   do not print \`checking...' messages
1419       --cache-file=FILE   cache test results in FILE [disabled]
1420   -C, --config-cache      alias for \`--cache-file=config.cache'
1421   -n, --no-create         do not create output files
1422       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1423
1424 Installation directories:
1425   --prefix=PREFIX         install architecture-independent files in PREFIX
1426                           [$ac_default_prefix]
1427   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1428                           [PREFIX]
1429
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1434
1435 For better control, use the options below.
1436
1437 Fine tuning of the installation directories:
1438   --bindir=DIR           user executables [EPREFIX/bin]
1439   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1440   --libexecdir=DIR       program executables [EPREFIX/libexec]
1441   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1442   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1443   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1444   --libdir=DIR           object code libraries [EPREFIX/lib]
1445   --includedir=DIR       C header files [PREFIX/include]
1446   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1447   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1448   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1449   --infodir=DIR          info documentation [DATAROOTDIR/info]
1450   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1451   --mandir=DIR           man documentation [DATAROOTDIR/man]
1452   --docdir=DIR           documentation root [DATAROOTDIR/doc/libcamsrcjpegenc-sw]
1453   --htmldir=DIR          html documentation [DOCDIR]
1454   --dvidir=DIR           dvi documentation [DOCDIR]
1455   --pdfdir=DIR           pdf documentation [DOCDIR]
1456   --psdir=DIR            ps documentation [DOCDIR]
1457 _ACEOF
1458
1459   cat <<\_ACEOF
1460
1461 Program names:
1462   --program-prefix=PREFIX            prepend PREFIX to installed program names
1463   --program-suffix=SUFFIX            append SUFFIX to installed program names
1464   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1465
1466 System types:
1467   --build=BUILD     configure for building on BUILD [guessed]
1468   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1469 _ACEOF
1470 fi
1471
1472 if test -n "$ac_init_help"; then
1473   case $ac_init_help in
1474      short | recursive ) echo "Configuration of libcamsrcjpegenc-sw 0.1:";;
1475    esac
1476   cat <<\_ACEOF
1477
1478 Optional Features:
1479   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1480   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1481   --disable-dependency-tracking  speeds up one-time build
1482   --enable-dependency-tracking   do not reject slow dependency extractors
1483   --enable-shared[=PKGS]  build shared libraries [default=yes]
1484   --enable-static[=PKGS]  build static libraries [default=yes]
1485   --enable-fast-install[=PKGS]
1486                           optimize for fast installation [default=yes]
1487   --disable-libtool-lock  avoid locking (might break parallel builds)
1488   --enable-dlog           using dlog
1489
1490 Optional Packages:
1491   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1492   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1493   --with-pic              try to use only PIC/non-PIC objects [default=use
1494                           both]
1495   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1496
1497 Some influential environment variables:
1498   CXX         C++ compiler command
1499   CXXFLAGS    C++ compiler flags
1500   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1501               nonstandard directory <lib dir>
1502   LIBS        libraries to pass to the linker, e.g. -l<library>
1503   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504               you have headers in a nonstandard directory <include dir>
1505   CC          C compiler command
1506   CFLAGS      C compiler flags
1507   CPP         C preprocessor
1508   CXXCPP      C++ preprocessor
1509   PKG_CONFIG  path to pkg-config utility
1510   DLOG_CFLAGS C compiler flags for DLOG, overriding pkg-config
1511   DLOG_LIBS   linker flags for DLOG, overriding pkg-config
1512   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1513   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1514
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1517
1518 _ACEOF
1519 ac_status=$?
1520 fi
1521
1522 if test "$ac_init_help" = "recursive"; then
1523   # If there are subdirs, report their specific --help.
1524   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525     test -d "$ac_dir" || continue
1526     ac_builddir=.
1527
1528 case "$ac_dir" in
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *)
1531   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1532   # A ".." for each directory in $ac_dir_suffix.
1533   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1534   case $ac_top_builddir_sub in
1535   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537   esac ;;
1538 esac
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1543
1544 case $srcdir in
1545   .)  # We are building in place.
1546     ac_srcdir=.
1547     ac_top_srcdir=$ac_top_builddir_sub
1548     ac_abs_top_srcdir=$ac_pwd ;;
1549   [\\/]* | ?:[\\/]* )  # Absolute name.
1550     ac_srcdir=$srcdir$ac_dir_suffix;
1551     ac_top_srcdir=$srcdir
1552     ac_abs_top_srcdir=$srcdir ;;
1553   *) # Relative name.
1554     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555     ac_top_srcdir=$ac_top_build_prefix$srcdir
1556     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 esac
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560     cd "$ac_dir" || { ac_status=$?; continue; }
1561     # Check for guested configure.
1562     if test -f "$ac_srcdir/configure.gnu"; then
1563       echo &&
1564       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565     elif test -f "$ac_srcdir/configure"; then
1566       echo &&
1567       $SHELL "$ac_srcdir/configure" --help=recursive
1568     else
1569       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570     fi || ac_status=$?
1571     cd "$ac_pwd" || { ac_status=$?; break; }
1572   done
1573 fi
1574
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1577   cat <<\_ACEOF
1578 libcamsrcjpegenc-sw configure 0.1
1579 generated by GNU Autoconf 2.61
1580
1581 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1582 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1585 _ACEOF
1586   exit
1587 fi
1588 cat >config.log <<_ACEOF
1589 This file contains any messages produced by compilers while
1590 running configure, to aid debugging if configure makes a mistake.
1591
1592 It was created by libcamsrcjpegenc-sw $as_me 0.1, which was
1593 generated by GNU Autoconf 2.61.  Invocation command line was
1594
1595   $ $0 $@
1596
1597 _ACEOF
1598 exec 5>>config.log
1599 {
1600 cat <<_ASUNAME
1601 ## --------- ##
1602 ## Platform. ##
1603 ## --------- ##
1604
1605 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1606 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1607 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1608 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1609 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1610
1611 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1612 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1613
1614 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1615 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1616 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1617 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1618 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1619 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1620 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1621
1622 _ASUNAME
1623
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1626 do
1627   IFS=$as_save_IFS
1628   test -z "$as_dir" && as_dir=.
1629   echo "PATH: $as_dir"
1630 done
1631 IFS=$as_save_IFS
1632
1633 } >&5
1634
1635 cat >&5 <<_ACEOF
1636
1637
1638 ## ----------- ##
1639 ## Core tests. ##
1640 ## ----------- ##
1641
1642 _ACEOF
1643
1644
1645 # Keep a trace of the command line.
1646 # Strip out --no-create and --no-recursion so they do not pile up.
1647 # Strip out --silent because we don't want to record it for future runs.
1648 # Also quote any args containing shell meta-characters.
1649 # Make two passes to allow for proper duplicate-argument suppression.
1650 ac_configure_args=
1651 ac_configure_args0=
1652 ac_configure_args1=
1653 ac_must_keep_next=false
1654 for ac_pass in 1 2
1655 do
1656   for ac_arg
1657   do
1658     case $ac_arg in
1659     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1660     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1661     | -silent | --silent | --silen | --sile | --sil)
1662       continue ;;
1663     *\'*)
1664       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1665     esac
1666     case $ac_pass in
1667     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1668     2)
1669       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1670       if test $ac_must_keep_next = true; then
1671         ac_must_keep_next=false # Got value, back to normal.
1672       else
1673         case $ac_arg in
1674           *=* | --config-cache | -C | -disable-* | --disable-* \
1675           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1676           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1677           | -with-* | --with-* | -without-* | --without-* | --x)
1678             case "$ac_configure_args0 " in
1679               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1680             esac
1681             ;;
1682           -* ) ac_must_keep_next=true ;;
1683         esac
1684       fi
1685       ac_configure_args="$ac_configure_args '$ac_arg'"
1686       ;;
1687     esac
1688   done
1689 done
1690 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1691 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1692
1693 # When interrupted or exit'd, cleanup temporary files, and complete
1694 # config.log.  We remove comments because anyway the quotes in there
1695 # would cause problems or look ugly.
1696 # WARNING: Use '\'' to represent an apostrophe within the trap.
1697 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1698 trap 'exit_status=$?
1699   # Save into config.log some information that might help in debugging.
1700   {
1701     echo
1702
1703     cat <<\_ASBOX
1704 ## ---------------- ##
1705 ## Cache variables. ##
1706 ## ---------------- ##
1707 _ASBOX
1708     echo
1709     # The following way of writing the cache mishandles newlines in values,
1710 (
1711   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1712     eval ac_val=\$$ac_var
1713     case $ac_val in #(
1714     *${as_nl}*)
1715       case $ac_var in #(
1716       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1717 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1718       esac
1719       case $ac_var in #(
1720       _ | IFS | as_nl) ;; #(
1721       *) $as_unset $ac_var ;;
1722       esac ;;
1723     esac
1724   done
1725   (set) 2>&1 |
1726     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1727     *${as_nl}ac_space=\ *)
1728       sed -n \
1729         "s/'\''/'\''\\\\'\'''\''/g;
1730           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1731       ;; #(
1732     *)
1733       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1734       ;;
1735     esac |
1736     sort
1737 )
1738     echo
1739
1740     cat <<\_ASBOX
1741 ## ----------------- ##
1742 ## Output variables. ##
1743 ## ----------------- ##
1744 _ASBOX
1745     echo
1746     for ac_var in $ac_subst_vars
1747     do
1748       eval ac_val=\$$ac_var
1749       case $ac_val in
1750       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751       esac
1752       echo "$ac_var='\''$ac_val'\''"
1753     done | sort
1754     echo
1755
1756     if test -n "$ac_subst_files"; then
1757       cat <<\_ASBOX
1758 ## ------------------- ##
1759 ## File substitutions. ##
1760 ## ------------------- ##
1761 _ASBOX
1762       echo
1763       for ac_var in $ac_subst_files
1764       do
1765         eval ac_val=\$$ac_var
1766         case $ac_val in
1767         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768         esac
1769         echo "$ac_var='\''$ac_val'\''"
1770       done | sort
1771       echo
1772     fi
1773
1774     if test -s confdefs.h; then
1775       cat <<\_ASBOX
1776 ## ----------- ##
1777 ## confdefs.h. ##
1778 ## ----------- ##
1779 _ASBOX
1780       echo
1781       cat confdefs.h
1782       echo
1783     fi
1784     test "$ac_signal" != 0 &&
1785       echo "$as_me: caught signal $ac_signal"
1786     echo "$as_me: exit $exit_status"
1787   } >&5
1788   rm -f core *.core core.conftest.* &&
1789     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1790     exit $exit_status
1791 ' 0
1792 for ac_signal in 1 2 13 15; do
1793   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1794 done
1795 ac_signal=0
1796
1797 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1798 rm -f -r conftest* confdefs.h
1799
1800 # Predefined preprocessor variables.
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_NAME "$PACKAGE_NAME"
1804 _ACEOF
1805
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_STRING "$PACKAGE_STRING"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1824 _ACEOF
1825
1826
1827 # Let the site file select an alternate cache file if it wants to.
1828 # Prefer explicitly selected file to automatically selected ones.
1829 if test -n "$CONFIG_SITE"; then
1830   set x "$CONFIG_SITE"
1831 elif test "x$prefix" != xNONE; then
1832   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1833 else
1834   set x "$ac_default_prefix/share/config.site" \
1835         "$ac_default_prefix/etc/config.site"
1836 fi
1837 shift
1838 for ac_site_file
1839 do
1840   if test -r "$ac_site_file"; then
1841     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1842 echo "$as_me: loading site script $ac_site_file" >&6;}
1843     sed 's/^/| /' "$ac_site_file" >&5
1844     . "$ac_site_file"
1845   fi
1846 done
1847
1848 if test -r "$cache_file"; then
1849   # Some versions of bash will fail to source /dev/null (special
1850   # files actually), so we avoid doing that.
1851   if test -f "$cache_file"; then
1852     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1853 echo "$as_me: loading cache $cache_file" >&6;}
1854     case $cache_file in
1855       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1856       *)                      . "./$cache_file";;
1857     esac
1858   fi
1859 else
1860   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1861 echo "$as_me: creating cache $cache_file" >&6;}
1862   >$cache_file
1863 fi
1864
1865 # Check that the precious variables saved in the cache have kept the same
1866 # value.
1867 ac_cache_corrupted=false
1868 for ac_var in $ac_precious_vars; do
1869   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1870   eval ac_new_set=\$ac_env_${ac_var}_set
1871   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1872   eval ac_new_val=\$ac_env_${ac_var}_value
1873   case $ac_old_set,$ac_new_set in
1874     set,)
1875       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1876 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1877       ac_cache_corrupted=: ;;
1878     ,set)
1879       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1881       ac_cache_corrupted=: ;;
1882     ,);;
1883     *)
1884       if test "x$ac_old_val" != "x$ac_new_val"; then
1885         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1886 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1887         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1888 echo "$as_me:   former value:  $ac_old_val" >&2;}
1889         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1890 echo "$as_me:   current value: $ac_new_val" >&2;}
1891         ac_cache_corrupted=:
1892       fi;;
1893   esac
1894   # Pass precious variables to config.status.
1895   if test "$ac_new_set" = set; then
1896     case $ac_new_val in
1897     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1898     *) ac_arg=$ac_var=$ac_new_val ;;
1899     esac
1900     case " $ac_configure_args " in
1901       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1902       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1903     esac
1904   fi
1905 done
1906 if $ac_cache_corrupted; then
1907   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1908 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1909   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1910 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1911    { (exit 1); exit 1; }; }
1912 fi
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938 ac_ext=c
1939 ac_cpp='$CPP $CPPFLAGS'
1940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1943
1944
1945 am__api_version='1.10'
1946
1947 ac_aux_dir=
1948 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1949   if test -f "$ac_dir/install-sh"; then
1950     ac_aux_dir=$ac_dir
1951     ac_install_sh="$ac_aux_dir/install-sh -c"
1952     break
1953   elif test -f "$ac_dir/install.sh"; then
1954     ac_aux_dir=$ac_dir
1955     ac_install_sh="$ac_aux_dir/install.sh -c"
1956     break
1957   elif test -f "$ac_dir/shtool"; then
1958     ac_aux_dir=$ac_dir
1959     ac_install_sh="$ac_aux_dir/shtool install -c"
1960     break
1961   fi
1962 done
1963 if test -z "$ac_aux_dir"; then
1964   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1965 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1966    { (exit 1); exit 1; }; }
1967 fi
1968
1969 # These three variables are undocumented and unsupported,
1970 # and are intended to be withdrawn in a future Autoconf release.
1971 # They can cause serious problems if a builder's source tree is in a directory
1972 # whose full name contains unusual characters.
1973 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1974 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1975 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1976
1977
1978 # Find a good install program.  We prefer a C program (faster),
1979 # so one script is as good as another.  But avoid the broken or
1980 # incompatible versions:
1981 # SysV /etc/install, /usr/sbin/install
1982 # SunOS /usr/etc/install
1983 # IRIX /sbin/install
1984 # AIX /bin/install
1985 # AmigaOS /C/install, which installs bootblocks on floppy discs
1986 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1987 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1988 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1989 # OS/2's system install, which has a completely different semantic
1990 # ./install, which can be erroneously created by make from ./install.sh.
1991 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1992 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1993 if test -z "$INSTALL"; then
1994 if test "${ac_cv_path_install+set}" = set; then
1995   echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
1999 do
2000   IFS=$as_save_IFS
2001   test -z "$as_dir" && as_dir=.
2002   # Account for people who put trailing slashes in PATH elements.
2003 case $as_dir/ in
2004   ./ | .// | /cC/* | \
2005   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2006   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2007   /usr/ucb/* ) ;;
2008   *)
2009     # OSF1 and SCO ODT 3.0 have their own names for install.
2010     # Don't use installbsd from OSF since it installs stuff as root
2011     # by default.
2012     for ac_prog in ginstall scoinst install; do
2013       for ac_exec_ext in '' $ac_executable_extensions; do
2014         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2015           if test $ac_prog = install &&
2016             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2017             # AIX install.  It has an incompatible calling convention.
2018             :
2019           elif test $ac_prog = install &&
2020             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2021             # program-specific install script used by HP pwplus--don't use.
2022             :
2023           else
2024             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2025             break 3
2026           fi
2027         fi
2028       done
2029     done
2030     ;;
2031 esac
2032 done
2033 IFS=$as_save_IFS
2034
2035
2036 fi
2037   if test "${ac_cv_path_install+set}" = set; then
2038     INSTALL=$ac_cv_path_install
2039   else
2040     # As a last resort, use the slow shell script.  Don't cache a
2041     # value for INSTALL within a source directory, because that will
2042     # break other packages using the cache if that directory is
2043     # removed, or if the value is a relative name.
2044     INSTALL=$ac_install_sh
2045   fi
2046 fi
2047 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2048 echo "${ECHO_T}$INSTALL" >&6; }
2049
2050 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2051 # It thinks the first close brace ends the variable substitution.
2052 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2053
2054 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2055
2056 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2057
2058 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2059 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2060 # Just in case
2061 sleep 1
2062 echo timestamp > conftest.file
2063 # Do `set' in a subshell so we don't clobber the current shell's
2064 # arguments.  Must try -L first in case configure is actually a
2065 # symlink; some systems play weird games with the mod time of symlinks
2066 # (eg FreeBSD returns the mod time of the symlink's containing
2067 # directory).
2068 if (
2069    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2070    if test "$*" = "X"; then
2071       # -L didn't work.
2072       set X `ls -t $srcdir/configure conftest.file`
2073    fi
2074    rm -f conftest.file
2075    if test "$*" != "X $srcdir/configure conftest.file" \
2076       && test "$*" != "X conftest.file $srcdir/configure"; then
2077
2078       # If neither matched, then we have a broken ls.  This can happen
2079       # if, for instance, CONFIG_SHELL is bash and it inherits a
2080       # broken ls alias from the environment.  This has actually
2081       # happened.  Such a system could not be considered "sane".
2082       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2083 alias in your environment" >&5
2084 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2085 alias in your environment" >&2;}
2086    { (exit 1); exit 1; }; }
2087    fi
2088
2089    test "$2" = conftest.file
2090    )
2091 then
2092    # Ok.
2093    :
2094 else
2095    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2096 Check your system clock" >&5
2097 echo "$as_me: error: newly created file is older than distributed files!
2098 Check your system clock" >&2;}
2099    { (exit 1); exit 1; }; }
2100 fi
2101 { echo "$as_me:$LINENO: result: yes" >&5
2102 echo "${ECHO_T}yes" >&6; }
2103 test "$program_prefix" != NONE &&
2104   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2105 # Use a double $ so make ignores it.
2106 test "$program_suffix" != NONE &&
2107   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2108 # Double any \ or $.  echo might interpret backslashes.
2109 # By default was `s,x,x', remove it if useless.
2110 cat <<\_ACEOF >conftest.sed
2111 s/[\\$]/&&/g;s/;s,x,x,$//
2112 _ACEOF
2113 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2114 rm -f conftest.sed
2115
2116 # expand $ac_aux_dir to an absolute path
2117 am_aux_dir=`cd $ac_aux_dir && pwd`
2118
2119 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2120 # Use eval to expand $SHELL
2121 if eval "$MISSING --run true"; then
2122   am_missing_run="$MISSING --run "
2123 else
2124   am_missing_run=
2125   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2126 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2127 fi
2128
2129 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2130 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2131 if test -z "$MKDIR_P"; then
2132   if test "${ac_cv_path_mkdir+set}" = set; then
2133   echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2137 do
2138   IFS=$as_save_IFS
2139   test -z "$as_dir" && as_dir=.
2140   for ac_prog in mkdir gmkdir; do
2141          for ac_exec_ext in '' $ac_executable_extensions; do
2142            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2143            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2144              'mkdir (GNU coreutils) '* | \
2145              'mkdir (coreutils) '* | \
2146              'mkdir (fileutils) '4.1*)
2147                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2148                break 3;;
2149            esac
2150          done
2151        done
2152 done
2153 IFS=$as_save_IFS
2154
2155 fi
2156
2157   if test "${ac_cv_path_mkdir+set}" = set; then
2158     MKDIR_P="$ac_cv_path_mkdir -p"
2159   else
2160     # As a last resort, use the slow shell script.  Don't cache a
2161     # value for MKDIR_P within a source directory, because that will
2162     # break other packages using the cache if that directory is
2163     # removed, or if the value is a relative name.
2164     test -d ./--version && rmdir ./--version
2165     MKDIR_P="$ac_install_sh -d"
2166   fi
2167 fi
2168 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2169 echo "${ECHO_T}$MKDIR_P" >&6; }
2170
2171 mkdir_p="$MKDIR_P"
2172 case $mkdir_p in
2173   [\\/$]* | ?:[\\/]*) ;;
2174   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2175 esac
2176
2177 for ac_prog in gawk mawk nawk awk
2178 do
2179   # Extract the first word of "$ac_prog", so it can be a program name with args.
2180 set dummy $ac_prog; ac_word=$2
2181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2183 if test "${ac_cv_prog_AWK+set}" = set; then
2184   echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186   if test -n "$AWK"; then
2187   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2188 else
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192   IFS=$as_save_IFS
2193   test -z "$as_dir" && as_dir=.
2194   for ac_exec_ext in '' $ac_executable_extensions; do
2195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2196     ac_cv_prog_AWK="$ac_prog"
2197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198     break 2
2199   fi
2200 done
2201 done
2202 IFS=$as_save_IFS
2203
2204 fi
2205 fi
2206 AWK=$ac_cv_prog_AWK
2207 if test -n "$AWK"; then
2208   { echo "$as_me:$LINENO: result: $AWK" >&5
2209 echo "${ECHO_T}$AWK" >&6; }
2210 else
2211   { echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6; }
2213 fi
2214
2215
2216   test -n "$AWK" && break
2217 done
2218
2219 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2220 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2221 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2222 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2223   echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225   cat >conftest.make <<\_ACEOF
2226 SHELL = /bin/sh
2227 all:
2228         @echo '@@@%%%=$(MAKE)=@@@%%%'
2229 _ACEOF
2230 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2231 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2232   *@@@%%%=?*=@@@%%%*)
2233     eval ac_cv_prog_make_${ac_make}_set=yes;;
2234   *)
2235     eval ac_cv_prog_make_${ac_make}_set=no;;
2236 esac
2237 rm -f conftest.make
2238 fi
2239 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2240   { echo "$as_me:$LINENO: result: yes" >&5
2241 echo "${ECHO_T}yes" >&6; }
2242   SET_MAKE=
2243 else
2244   { echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6; }
2246   SET_MAKE="MAKE=${MAKE-make}"
2247 fi
2248
2249 rm -rf .tst 2>/dev/null
2250 mkdir .tst 2>/dev/null
2251 if test -d .tst; then
2252   am__leading_dot=.
2253 else
2254   am__leading_dot=_
2255 fi
2256 rmdir .tst 2>/dev/null
2257
2258 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2259   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2260   # is not polluted with repeated "-I."
2261   am__isrc=' -I$(srcdir)'
2262   # test to see if srcdir already configured
2263   if test -f $srcdir/config.status; then
2264     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2265 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2266    { (exit 1); exit 1; }; }
2267   fi
2268 fi
2269
2270 # test whether we have cygpath
2271 if test -z "$CYGPATH_W"; then
2272   if (cygpath --version) >/dev/null 2>/dev/null; then
2273     CYGPATH_W='cygpath -w'
2274   else
2275     CYGPATH_W=echo
2276   fi
2277 fi
2278
2279
2280 # Define the identity of the package.
2281  PACKAGE='libcamsrcjpegenc-sw'
2282  VERSION='0.1'
2283
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE "$PACKAGE"
2287 _ACEOF
2288
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define VERSION "$VERSION"
2292 _ACEOF
2293
2294 # Some tools Automake needs.
2295
2296 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2297
2298
2299 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2300
2301
2302 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2303
2304
2305 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2306
2307
2308 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2309
2310 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2311
2312 # Installed binaries are usually stripped using `strip' when the user
2313 # run `make install-strip'.  However `strip' might not be the right
2314 # tool to use in cross-compilation environments, therefore Automake
2315 # will honor the `STRIP' environment variable to overrule this program.
2316 if test "$cross_compiling" != no; then
2317   if test -n "$ac_tool_prefix"; then
2318   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}strip; ac_word=$2
2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_STRIP+set}" = set; then
2323   echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325   if test -n "$STRIP"; then
2326   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331   IFS=$as_save_IFS
2332   test -z "$as_dir" && as_dir=.
2333   for ac_exec_ext in '' $ac_executable_extensions; do
2334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337     break 2
2338   fi
2339 done
2340 done
2341 IFS=$as_save_IFS
2342
2343 fi
2344 fi
2345 STRIP=$ac_cv_prog_STRIP
2346 if test -n "$STRIP"; then
2347   { echo "$as_me:$LINENO: result: $STRIP" >&5
2348 echo "${ECHO_T}$STRIP" >&6; }
2349 else
2350   { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2352 fi
2353
2354
2355 fi
2356 if test -z "$ac_cv_prog_STRIP"; then
2357   ac_ct_STRIP=$STRIP
2358   # Extract the first word of "strip", so it can be a program name with args.
2359 set dummy strip; ac_word=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   if test -n "$ac_ct_STRIP"; then
2366   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373   for ac_exec_ext in '' $ac_executable_extensions; do
2374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375     ac_cv_prog_ac_ct_STRIP="strip"
2376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377     break 2
2378   fi
2379 done
2380 done
2381 IFS=$as_save_IFS
2382
2383 fi
2384 fi
2385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2386 if test -n "$ac_ct_STRIP"; then
2387   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2388 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2389 else
2390   { echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6; }
2392 fi
2393
2394   if test "x$ac_ct_STRIP" = x; then
2395     STRIP=":"
2396   else
2397     case $cross_compiling:$ac_tool_warned in
2398 yes:)
2399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet.  If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&5
2402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2403 whose name does not start with the host triplet.  If you think this
2404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2405 ac_tool_warned=yes ;;
2406 esac
2407     STRIP=$ac_ct_STRIP
2408   fi
2409 else
2410   STRIP="$ac_cv_prog_STRIP"
2411 fi
2412
2413 fi
2414 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2415
2416 # We need awk for the "check" target.  The system "awk" is bad on
2417 # some platforms.
2418 # Always define AMTAR for backward compatibility.
2419
2420 AMTAR=${AMTAR-"${am_missing_run}tar"}
2421
2422 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2423
2424
2425
2426
2427
2428
2429 ac_config_headers="$ac_config_headers config.h"
2430
2431
2432
2433
2434 # Checks for programs.
2435 ac_ext=cpp
2436 ac_cpp='$CXXCPP $CPPFLAGS'
2437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2440 if test -z "$CXX"; then
2441   if test -n "$CCC"; then
2442     CXX=$CCC
2443   else
2444     if test -n "$ac_tool_prefix"; then
2445   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2446   do
2447     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2451 if test "${ac_cv_prog_CXX+set}" = set; then
2452   echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454   if test -n "$CXX"; then
2455   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2456 else
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH
2459 do
2460   IFS=$as_save_IFS
2461   test -z "$as_dir" && as_dir=.
2462   for ac_exec_ext in '' $ac_executable_extensions; do
2463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2464     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466     break 2
2467   fi
2468 done
2469 done
2470 IFS=$as_save_IFS
2471
2472 fi
2473 fi
2474 CXX=$ac_cv_prog_CXX
2475 if test -n "$CXX"; then
2476   { echo "$as_me:$LINENO: result: $CXX" >&5
2477 echo "${ECHO_T}$CXX" >&6; }
2478 else
2479   { echo "$as_me:$LINENO: result: no" >&5
2480 echo "${ECHO_T}no" >&6; }
2481 fi
2482
2483
2484     test -n "$CXX" && break
2485   done
2486 fi
2487 if test -z "$CXX"; then
2488   ac_ct_CXX=$CXX
2489   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2490 do
2491   # Extract the first word of "$ac_prog", so it can be a program name with args.
2492 set dummy $ac_prog; ac_word=$2
2493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2495 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   if test -n "$ac_ct_CXX"; then
2499   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2500 else
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504   IFS=$as_save_IFS
2505   test -z "$as_dir" && as_dir=.
2506   for ac_exec_ext in '' $ac_executable_extensions; do
2507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2508     ac_cv_prog_ac_ct_CXX="$ac_prog"
2509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510     break 2
2511   fi
2512 done
2513 done
2514 IFS=$as_save_IFS
2515
2516 fi
2517 fi
2518 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2519 if test -n "$ac_ct_CXX"; then
2520   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2521 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2522 else
2523   { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2525 fi
2526
2527
2528   test -n "$ac_ct_CXX" && break
2529 done
2530
2531   if test "x$ac_ct_CXX" = x; then
2532     CXX="g++"
2533   else
2534     case $cross_compiling:$ac_tool_warned in
2535 yes:)
2536 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2537 whose name does not start with the host triplet.  If you think this
2538 configuration is useful to you, please write to autoconf@gnu.org." >&5
2539 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2540 whose name does not start with the host triplet.  If you think this
2541 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2542 ac_tool_warned=yes ;;
2543 esac
2544     CXX=$ac_ct_CXX
2545   fi
2546 fi
2547
2548   fi
2549 fi
2550 # Provide some information about the compiler.
2551 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2552 ac_compiler=`set X $ac_compile; echo $2`
2553 { (ac_try="$ac_compiler --version >&5"
2554 case "(($ac_try" in
2555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556   *) ac_try_echo=$ac_try;;
2557 esac
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559   (eval "$ac_compiler --version >&5") 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }
2563 { (ac_try="$ac_compiler -v >&5"
2564 case "(($ac_try" in
2565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566   *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569   (eval "$ac_compiler -v >&5") 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }
2573 { (ac_try="$ac_compiler -V >&5"
2574 case "(($ac_try" in
2575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576   *) ac_try_echo=$ac_try;;
2577 esac
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579   (eval "$ac_compiler -V >&5") 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }
2583
2584 cat >conftest.$ac_ext <<_ACEOF
2585 /* confdefs.h.  */
2586 _ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h.  */
2590
2591 int
2592 main ()
2593 {
2594
2595   ;
2596   return 0;
2597 }
2598 _ACEOF
2599 ac_clean_files_save=$ac_clean_files
2600 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2601 # Try to create an executable without -o first, disregard a.out.
2602 # It will help us diagnose broken compilers, and finding out an intuition
2603 # of exeext.
2604 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2605 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2606 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2607 #
2608 # List of possible output files, starting from the most likely.
2609 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2610 # only as a last resort.  b.out is created by i960 compilers.
2611 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2612 #
2613 # The IRIX 6 linker writes into existing files which may not be
2614 # executable, retaining their permissions.  Remove them first so a
2615 # subsequent execution test works.
2616 ac_rmfiles=
2617 for ac_file in $ac_files
2618 do
2619   case $ac_file in
2620     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2621     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2622   esac
2623 done
2624 rm -f $ac_rmfiles
2625
2626 if { (ac_try="$ac_link_default"
2627 case "(($ac_try" in
2628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629   *) ac_try_echo=$ac_try;;
2630 esac
2631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2632   (eval "$ac_link_default") 2>&5
2633   ac_status=$?
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); }; then
2636   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2637 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2638 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2639 # so that the user can short-circuit this test for compilers unknown to
2640 # Autoconf.
2641 for ac_file in $ac_files ''
2642 do
2643   test -f "$ac_file" || continue
2644   case $ac_file in
2645     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2646         ;;
2647     [ab].out )
2648         # We found the default executable, but exeext='' is most
2649         # certainly right.
2650         break;;
2651     *.* )
2652         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2653         then :; else
2654            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2655         fi
2656         # We set ac_cv_exeext here because the later test for it is not
2657         # safe: cross compilers may not add the suffix if given an `-o'
2658         # argument, so we may need to know it at that point already.
2659         # Even if this section looks crufty: it has the advantage of
2660         # actually working.
2661         break;;
2662     * )
2663         break;;
2664   esac
2665 done
2666 test "$ac_cv_exeext" = no && ac_cv_exeext=
2667
2668 else
2669   ac_file=''
2670 fi
2671
2672 { echo "$as_me:$LINENO: result: $ac_file" >&5
2673 echo "${ECHO_T}$ac_file" >&6; }
2674 if test -z "$ac_file"; then
2675   echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2677
2678 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2679 See \`config.log' for more details." >&5
2680 echo "$as_me: error: C++ compiler cannot create executables
2681 See \`config.log' for more details." >&2;}
2682    { (exit 77); exit 77; }; }
2683 fi
2684
2685 ac_exeext=$ac_cv_exeext
2686
2687 # Check that the compiler produces executables we can run.  If not, either
2688 # the compiler is broken, or we cross compile.
2689 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2690 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2691 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2692 # If not cross compiling, check that we can run a simple program.
2693 if test "$cross_compiling" != yes; then
2694   if { ac_try='./$ac_file'
2695   { (case "(($ac_try" in
2696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697   *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700   (eval "$ac_try") 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); }; }; then
2704     cross_compiling=no
2705   else
2706     if test "$cross_compiling" = maybe; then
2707         cross_compiling=yes
2708     else
2709         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2710 If you meant to cross compile, use \`--host'.
2711 See \`config.log' for more details." >&5
2712 echo "$as_me: error: cannot run C++ compiled programs.
2713 If you meant to cross compile, use \`--host'.
2714 See \`config.log' for more details." >&2;}
2715    { (exit 1); exit 1; }; }
2716     fi
2717   fi
2718 fi
2719 { echo "$as_me:$LINENO: result: yes" >&5
2720 echo "${ECHO_T}yes" >&6; }
2721
2722 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2723 ac_clean_files=$ac_clean_files_save
2724 # Check that the compiler produces executables we can run.  If not, either
2725 # the compiler is broken, or we cross compile.
2726 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2727 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2728 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2729 echo "${ECHO_T}$cross_compiling" >&6; }
2730
2731 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2732 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2733 if { (ac_try="$ac_link"
2734 case "(($ac_try" in
2735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736   *) ac_try_echo=$ac_try;;
2737 esac
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739   (eval "$ac_link") 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }; then
2743   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2744 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2745 # work properly (i.e., refer to `conftest.exe'), while it won't with
2746 # `rm'.
2747 for ac_file in conftest.exe conftest conftest.*; do
2748   test -f "$ac_file" || continue
2749   case $ac_file in
2750     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2751     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2752           break;;
2753     * ) break;;
2754   esac
2755 done
2756 else
2757   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2758 See \`config.log' for more details." >&5
2759 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2760 See \`config.log' for more details." >&2;}
2761    { (exit 1); exit 1; }; }
2762 fi
2763
2764 rm -f conftest$ac_cv_exeext
2765 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2766 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2767
2768 rm -f conftest.$ac_ext
2769 EXEEXT=$ac_cv_exeext
2770 ac_exeext=$EXEEXT
2771 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2772 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2773 if test "${ac_cv_objext+set}" = set; then
2774   echo $ECHO_N "(cached) $ECHO_C" >&6
2775 else
2776   cat >conftest.$ac_ext <<_ACEOF
2777 /* confdefs.h.  */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h.  */
2782
2783 int
2784 main ()
2785 {
2786
2787   ;
2788   return 0;
2789 }
2790 _ACEOF
2791 rm -f conftest.o conftest.obj
2792 if { (ac_try="$ac_compile"
2793 case "(($ac_try" in
2794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795   *) ac_try_echo=$ac_try;;
2796 esac
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798   (eval "$ac_compile") 2>&5
2799   ac_status=$?
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); }; then
2802   for ac_file in conftest.o conftest.obj conftest.*; do
2803   test -f "$ac_file" || continue;
2804   case $ac_file in
2805     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2806     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2807        break;;
2808   esac
2809 done
2810 else
2811   echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2815 See \`config.log' for more details." >&5
2816 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2817 See \`config.log' for more details." >&2;}
2818    { (exit 1); exit 1; }; }
2819 fi
2820
2821 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2822 fi
2823 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2824 echo "${ECHO_T}$ac_cv_objext" >&6; }
2825 OBJEXT=$ac_cv_objext
2826 ac_objext=$OBJEXT
2827 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2828 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2829 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2830   echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832   cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h.  */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h.  */
2838
2839 int
2840 main ()
2841 {
2842 #ifndef __GNUC__
2843        choke me
2844 #endif
2845
2846   ;
2847   return 0;
2848 }
2849 _ACEOF
2850 rm -f conftest.$ac_objext
2851 if { (ac_try="$ac_compile"
2852 case "(($ac_try" in
2853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854   *) ac_try_echo=$ac_try;;
2855 esac
2856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857   (eval "$ac_compile") 2>conftest.er1
2858   ac_status=$?
2859   grep -v '^ *+' conftest.er1 >conftest.err
2860   rm -f conftest.er1
2861   cat conftest.err >&5
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); } && {
2864          test -z "$ac_cxx_werror_flag" ||
2865          test ! -s conftest.err
2866        } && test -s conftest.$ac_objext; then
2867   ac_compiler_gnu=yes
2868 else
2869   echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2871
2872         ac_compiler_gnu=no
2873 fi
2874
2875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2876 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2877
2878 fi
2879 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2880 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2881 GXX=`test $ac_compiler_gnu = yes && echo yes`
2882 ac_test_CXXFLAGS=${CXXFLAGS+set}
2883 ac_save_CXXFLAGS=$CXXFLAGS
2884 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2885 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2886 if test "${ac_cv_prog_cxx_g+set}" = set; then
2887   echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2890    ac_cxx_werror_flag=yes
2891    ac_cv_prog_cxx_g=no
2892    CXXFLAGS="-g"
2893    cat >conftest.$ac_ext <<_ACEOF
2894 /* confdefs.h.  */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h.  */
2899
2900 int
2901 main ()
2902 {
2903
2904   ;
2905   return 0;
2906 }
2907 _ACEOF
2908 rm -f conftest.$ac_objext
2909 if { (ac_try="$ac_compile"
2910 case "(($ac_try" in
2911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912   *) ac_try_echo=$ac_try;;
2913 esac
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915   (eval "$ac_compile") 2>conftest.er1
2916   ac_status=$?
2917   grep -v '^ *+' conftest.er1 >conftest.err
2918   rm -f conftest.er1
2919   cat conftest.err >&5
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); } && {
2922          test -z "$ac_cxx_werror_flag" ||
2923          test ! -s conftest.err
2924        } && test -s conftest.$ac_objext; then
2925   ac_cv_prog_cxx_g=yes
2926 else
2927   echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2929
2930         CXXFLAGS=""
2931       cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937
2938 int
2939 main ()
2940 {
2941
2942   ;
2943   return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953   (eval "$ac_compile") 2>conftest.er1
2954   ac_status=$?
2955   grep -v '^ *+' conftest.er1 >conftest.err
2956   rm -f conftest.er1
2957   cat conftest.err >&5
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); } && {
2960          test -z "$ac_cxx_werror_flag" ||
2961          test ! -s conftest.err
2962        } && test -s conftest.$ac_objext; then
2963   :
2964 else
2965   echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2969          CXXFLAGS="-g"
2970          cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h.  */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h.  */
2976
2977 int
2978 main ()
2979 {
2980
2981   ;
2982   return 0;
2983 }
2984 _ACEOF
2985 rm -f conftest.$ac_objext
2986 if { (ac_try="$ac_compile"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_compile") 2>conftest.er1
2993   ac_status=$?
2994   grep -v '^ *+' conftest.er1 >conftest.err
2995   rm -f conftest.er1
2996   cat conftest.err >&5
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); } && {
2999          test -z "$ac_cxx_werror_flag" ||
3000          test ! -s conftest.err
3001        } && test -s conftest.$ac_objext; then
3002   ac_cv_prog_cxx_g=yes
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007
3008 fi
3009
3010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011 fi
3012
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 fi
3015
3016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3017    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3018 fi
3019 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3020 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3021 if test "$ac_test_CXXFLAGS" = set; then
3022   CXXFLAGS=$ac_save_CXXFLAGS
3023 elif test $ac_cv_prog_cxx_g = yes; then
3024   if test "$GXX" = yes; then
3025     CXXFLAGS="-g -O2"
3026   else
3027     CXXFLAGS="-g"
3028   fi
3029 else
3030   if test "$GXX" = yes; then
3031     CXXFLAGS="-O2"
3032   else
3033     CXXFLAGS=
3034   fi
3035 fi
3036 ac_ext=c
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041 DEPDIR="${am__leading_dot}deps"
3042
3043 ac_config_commands="$ac_config_commands depfiles"
3044
3045
3046 am_make=${MAKE-make}
3047 cat > confinc << 'END'
3048 am__doit:
3049         @echo done
3050 .PHONY: am__doit
3051 END
3052 # If we don't find an include directive, just comment out the code.
3053 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3054 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3055 am__include="#"
3056 am__quote=
3057 _am_result=none
3058 # First try GNU make style include.
3059 echo "include confinc" > confmf
3060 # We grep out `Entering directory' and `Leaving directory'
3061 # messages which can occur if `w' ends up in MAKEFLAGS.
3062 # In particular we don't look at `^make:' because GNU make might
3063 # be invoked under some other name (usually "gmake"), in which
3064 # case it prints its new name instead of `make'.
3065 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3066    am__include=include
3067    am__quote=
3068    _am_result=GNU
3069 fi
3070 # Now try BSD make style include.
3071 if test "$am__include" = "#"; then
3072    echo '.include "confinc"' > confmf
3073    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3074       am__include=.include
3075       am__quote="\""
3076       _am_result=BSD
3077    fi
3078 fi
3079
3080
3081 { echo "$as_me:$LINENO: result: $_am_result" >&5
3082 echo "${ECHO_T}$_am_result" >&6; }
3083 rm -f confinc confmf
3084
3085 # Check whether --enable-dependency-tracking was given.
3086 if test "${enable_dependency_tracking+set}" = set; then
3087   enableval=$enable_dependency_tracking;
3088 fi
3089
3090 if test "x$enable_dependency_tracking" != xno; then
3091   am_depcomp="$ac_aux_dir/depcomp"
3092   AMDEPBACKSLASH='\'
3093 fi
3094  if test "x$enable_dependency_tracking" != xno; then
3095   AMDEP_TRUE=
3096   AMDEP_FALSE='#'
3097 else
3098   AMDEP_TRUE='#'
3099   AMDEP_FALSE=
3100 fi
3101
3102
3103
3104 depcc="$CXX"  am_compiler_list=
3105
3106 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3107 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3108 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3109   echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3112   # We make a subdir and do the tests there.  Otherwise we can end up
3113   # making bogus files that we don't know about and never remove.  For
3114   # instance it was reported that on HP-UX the gcc test will end up
3115   # making a dummy file named `D' -- because `-MD' means `put the output
3116   # in D'.
3117   mkdir conftest.dir
3118   # Copy depcomp to subdir because otherwise we won't find it if we're
3119   # using a relative directory.
3120   cp "$am_depcomp" conftest.dir
3121   cd conftest.dir
3122   # We will build objects and dependencies in a subdirectory because
3123   # it helps to detect inapplicable dependency modes.  For instance
3124   # both Tru64's cc and ICC support -MD to output dependencies as a
3125   # side effect of compilation, but ICC will put the dependencies in
3126   # the current directory while Tru64 will put them in the object
3127   # directory.
3128   mkdir sub
3129
3130   am_cv_CXX_dependencies_compiler_type=none
3131   if test "$am_compiler_list" = ""; then
3132      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3133   fi
3134   for depmode in $am_compiler_list; do
3135     # Setup a source with many dependencies, because some compilers
3136     # like to wrap large dependency lists on column 80 (with \), and
3137     # we should not choose a depcomp mode which is confused by this.
3138     #
3139     # We need to recreate these files for each test, as the compiler may
3140     # overwrite some of them when testing with obscure command lines.
3141     # This happens at least with the AIX C compiler.
3142     : > sub/conftest.c
3143     for i in 1 2 3 4 5 6; do
3144       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3145       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3146       # Solaris 8's {/usr,}/bin/sh.
3147       touch sub/conftst$i.h
3148     done
3149     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3150
3151     case $depmode in
3152     nosideeffect)
3153       # after this tag, mechanisms are not by side-effect, so they'll
3154       # only be used when explicitly requested
3155       if test "x$enable_dependency_tracking" = xyes; then
3156         continue
3157       else
3158         break
3159       fi
3160       ;;
3161     none) break ;;
3162     esac
3163     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3164     # mode.  It turns out that the SunPro C++ compiler does not properly
3165     # handle `-M -o', and we need to detect this.
3166     if depmode=$depmode \
3167        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3168        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3169        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3170          >/dev/null 2>conftest.err &&
3171        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3172        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3173        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3174        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3175       # icc doesn't choke on unknown options, it will just issue warnings
3176       # or remarks (even with -Werror).  So we grep stderr for any message
3177       # that says an option was ignored or not supported.
3178       # When given -MP, icc 7.0 and 7.1 complain thusly:
3179       #   icc: Command line warning: ignoring option '-M'; no argument required
3180       # The diagnosis changed in icc 8.0:
3181       #   icc: Command line remark: option '-MP' not supported
3182       if (grep 'ignoring option' conftest.err ||
3183           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3184         am_cv_CXX_dependencies_compiler_type=$depmode
3185         break
3186       fi
3187     fi
3188   done
3189
3190   cd ..
3191   rm -rf conftest.dir
3192 else
3193   am_cv_CXX_dependencies_compiler_type=none
3194 fi
3195
3196 fi
3197 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3198 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3199 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3200
3201  if
3202   test "x$enable_dependency_tracking" != xno \
3203   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3204   am__fastdepCXX_TRUE=
3205   am__fastdepCXX_FALSE='#'
3206 else
3207   am__fastdepCXX_TRUE='#'
3208   am__fastdepCXX_FALSE=
3209 fi
3210
3211
3212 for ac_prog in gawk mawk nawk awk
3213 do
3214   # Extract the first word of "$ac_prog", so it can be a program name with args.
3215 set dummy $ac_prog; ac_word=$2
3216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3218 if test "${ac_cv_prog_AWK+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   if test -n "$AWK"; then
3222   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227   IFS=$as_save_IFS
3228   test -z "$as_dir" && as_dir=.
3229   for ac_exec_ext in '' $ac_executable_extensions; do
3230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231     ac_cv_prog_AWK="$ac_prog"
3232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233     break 2
3234   fi
3235 done
3236 done
3237 IFS=$as_save_IFS
3238
3239 fi
3240 fi
3241 AWK=$ac_cv_prog_AWK
3242 if test -n "$AWK"; then
3243   { echo "$as_me:$LINENO: result: $AWK" >&5
3244 echo "${ECHO_T}$AWK" >&6; }
3245 else
3246   { echo "$as_me:$LINENO: result: no" >&5
3247 echo "${ECHO_T}no" >&6; }
3248 fi
3249
3250
3251   test -n "$AWK" && break
3252 done
3253
3254 ac_ext=c
3255 ac_cpp='$CPP $CPPFLAGS'
3256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259 if test -n "$ac_tool_prefix"; then
3260   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3261 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3264 if test "${ac_cv_prog_CC+set}" = set; then
3265   echo $ECHO_N "(cached) $ECHO_C" >&6
3266 else
3267   if test -n "$CC"; then
3268   ac_cv_prog_CC="$CC" # Let the user override the test.
3269 else
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275   for ac_exec_ext in '' $ac_executable_extensions; do
3276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279     break 2
3280   fi
3281 done
3282 done
3283 IFS=$as_save_IFS
3284
3285 fi
3286 fi
3287 CC=$ac_cv_prog_CC
3288 if test -n "$CC"; then
3289   { echo "$as_me:$LINENO: result: $CC" >&5
3290 echo "${ECHO_T}$CC" >&6; }
3291 else
3292   { echo "$as_me:$LINENO: result: no" >&5
3293 echo "${ECHO_T}no" >&6; }
3294 fi
3295
3296
3297 fi
3298 if test -z "$ac_cv_prog_CC"; then
3299   ac_ct_CC=$CC
3300   # Extract the first word of "gcc", so it can be a program name with args.
3301 set dummy gcc; ac_word=$2
3302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3304 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3305   echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307   if test -n "$ac_ct_CC"; then
3308   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315   for ac_exec_ext in '' $ac_executable_extensions; do
3316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317     ac_cv_prog_ac_ct_CC="gcc"
3318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319     break 2
3320   fi
3321 done
3322 done
3323 IFS=$as_save_IFS
3324
3325 fi
3326 fi
3327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3328 if test -n "$ac_ct_CC"; then
3329   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3330 echo "${ECHO_T}$ac_ct_CC" >&6; }
3331 else
3332   { echo "$as_me:$LINENO: result: no" >&5
3333 echo "${ECHO_T}no" >&6; }
3334 fi
3335
3336   if test "x$ac_ct_CC" = x; then
3337     CC=""
3338   else
3339     case $cross_compiling:$ac_tool_warned in
3340 yes:)
3341 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3342 whose name does not start with the host triplet.  If you think this
3343 configuration is useful to you, please write to autoconf@gnu.org." >&5
3344 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3345 whose name does not start with the host triplet.  If you think this
3346 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3347 ac_tool_warned=yes ;;
3348 esac
3349     CC=$ac_ct_CC
3350   fi
3351 else
3352   CC="$ac_cv_prog_CC"
3353 fi
3354
3355 if test -z "$CC"; then
3356           if test -n "$ac_tool_prefix"; then
3357     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3358 set dummy ${ac_tool_prefix}cc; ac_word=$2
3359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3361 if test "${ac_cv_prog_CC+set}" = set; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364   if test -n "$CC"; then
3365   ac_cv_prog_CC="$CC" # Let the user override the test.
3366 else
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370   IFS=$as_save_IFS
3371   test -z "$as_dir" && as_dir=.
3372   for ac_exec_ext in '' $ac_executable_extensions; do
3373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3374     ac_cv_prog_CC="${ac_tool_prefix}cc"
3375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376     break 2
3377   fi
3378 done
3379 done
3380 IFS=$as_save_IFS
3381
3382 fi
3383 fi
3384 CC=$ac_cv_prog_CC
3385 if test -n "$CC"; then
3386   { echo "$as_me:$LINENO: result: $CC" >&5
3387 echo "${ECHO_T}$CC" >&6; }
3388 else
3389   { echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6; }
3391 fi
3392
3393
3394   fi
3395 fi
3396 if test -z "$CC"; then
3397   # Extract the first word of "cc", so it can be a program name with args.
3398 set dummy cc; ac_word=$2
3399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3401 if test "${ac_cv_prog_CC+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   if test -n "$CC"; then
3405   ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407   ac_prog_rejected=no
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411   IFS=$as_save_IFS
3412   test -z "$as_dir" && as_dir=.
3413   for ac_exec_ext in '' $ac_executable_extensions; do
3414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3416        ac_prog_rejected=yes
3417        continue
3418      fi
3419     ac_cv_prog_CC="cc"
3420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3421     break 2
3422   fi
3423 done
3424 done
3425 IFS=$as_save_IFS
3426
3427 if test $ac_prog_rejected = yes; then
3428   # We found a bogon in the path, so make sure we never use it.
3429   set dummy $ac_cv_prog_CC
3430   shift
3431   if test $# != 0; then
3432     # We chose a different compiler from the bogus one.
3433     # However, it has the same basename, so the bogon will be chosen
3434     # first if we set CC to just the basename; use the full file name.
3435     shift
3436     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3437   fi
3438 fi
3439 fi
3440 fi
3441 CC=$ac_cv_prog_CC
3442 if test -n "$CC"; then
3443   { echo "$as_me:$LINENO: result: $CC" >&5
3444 echo "${ECHO_T}$CC" >&6; }
3445 else
3446   { echo "$as_me:$LINENO: result: no" >&5
3447 echo "${ECHO_T}no" >&6; }
3448 fi
3449
3450
3451 fi
3452 if test -z "$CC"; then
3453   if test -n "$ac_tool_prefix"; then
3454   for ac_prog in cl.exe
3455   do
3456     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3460 if test "${ac_cv_prog_CC+set}" = set; then
3461   echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463   if test -n "$CC"; then
3464   ac_cv_prog_CC="$CC" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469   IFS=$as_save_IFS
3470   test -z "$as_dir" && as_dir=.
3471   for ac_exec_ext in '' $ac_executable_extensions; do
3472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3473     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475     break 2
3476   fi
3477 done
3478 done
3479 IFS=$as_save_IFS
3480
3481 fi
3482 fi
3483 CC=$ac_cv_prog_CC
3484 if test -n "$CC"; then
3485   { echo "$as_me:$LINENO: result: $CC" >&5
3486 echo "${ECHO_T}$CC" >&6; }
3487 else
3488   { echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6; }
3490 fi
3491
3492
3493     test -n "$CC" && break
3494   done
3495 fi
3496 if test -z "$CC"; then
3497   ac_ct_CC=$CC
3498   for ac_prog in cl.exe
3499 do
3500   # Extract the first word of "$ac_prog", so it can be a program name with args.
3501 set dummy $ac_prog; ac_word=$2
3502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3505   echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507   if test -n "$ac_ct_CC"; then
3508   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515   for ac_exec_ext in '' $ac_executable_extensions; do
3516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517     ac_cv_prog_ac_ct_CC="$ac_prog"
3518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522 done
3523 IFS=$as_save_IFS
3524
3525 fi
3526 fi
3527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528 if test -n "$ac_ct_CC"; then
3529   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3530 echo "${ECHO_T}$ac_ct_CC" >&6; }
3531 else
3532   { echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6; }
3534 fi
3535
3536
3537   test -n "$ac_ct_CC" && break
3538 done
3539
3540   if test "x$ac_ct_CC" = x; then
3541     CC=""
3542   else
3543     case $cross_compiling:$ac_tool_warned in
3544 yes:)
3545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3546 whose name does not start with the host triplet.  If you think this
3547 configuration is useful to you, please write to autoconf@gnu.org." >&5
3548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3549 whose name does not start with the host triplet.  If you think this
3550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3551 ac_tool_warned=yes ;;
3552 esac
3553     CC=$ac_ct_CC
3554   fi
3555 fi
3556
3557 fi
3558
3559
3560 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3561 See \`config.log' for more details." >&5
3562 echo "$as_me: error: no acceptable C compiler found in \$PATH
3563 See \`config.log' for more details." >&2;}
3564    { (exit 1); exit 1; }; }
3565
3566 # Provide some information about the compiler.
3567 echo "$as_me:$LINENO: checking for C compiler version" >&5
3568 ac_compiler=`set X $ac_compile; echo $2`
3569 { (ac_try="$ac_compiler --version >&5"
3570 case "(($ac_try" in
3571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572   *) ac_try_echo=$ac_try;;
3573 esac
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575   (eval "$ac_compiler --version >&5") 2>&5
3576   ac_status=$?
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); }
3579 { (ac_try="$ac_compiler -v >&5"
3580 case "(($ac_try" in
3581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582   *) ac_try_echo=$ac_try;;
3583 esac
3584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585   (eval "$ac_compiler -v >&5") 2>&5
3586   ac_status=$?
3587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588   (exit $ac_status); }
3589 { (ac_try="$ac_compiler -V >&5"
3590 case "(($ac_try" in
3591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592   *) ac_try_echo=$ac_try;;
3593 esac
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595   (eval "$ac_compiler -V >&5") 2>&5
3596   ac_status=$?
3597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598   (exit $ac_status); }
3599
3600 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3601 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3602 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3603   echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605   cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h.  */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h.  */
3611
3612 int
3613 main ()
3614 {
3615 #ifndef __GNUC__
3616        choke me
3617 #endif
3618
3619   ;
3620   return 0;
3621 }
3622 _ACEOF
3623 rm -f conftest.$ac_objext
3624 if { (ac_try="$ac_compile"
3625 case "(($ac_try" in
3626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627   *) ac_try_echo=$ac_try;;
3628 esac
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630   (eval "$ac_compile") 2>conftest.er1
3631   ac_status=$?
3632   grep -v '^ *+' conftest.er1 >conftest.err
3633   rm -f conftest.er1
3634   cat conftest.err >&5
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); } && {
3637          test -z "$ac_c_werror_flag" ||
3638          test ! -s conftest.err
3639        } && test -s conftest.$ac_objext; then
3640   ac_compiler_gnu=yes
3641 else
3642   echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3644
3645         ac_compiler_gnu=no
3646 fi
3647
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3650
3651 fi
3652 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3653 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3654 GCC=`test $ac_compiler_gnu = yes && echo yes`
3655 ac_test_CFLAGS=${CFLAGS+set}
3656 ac_save_CFLAGS=$CFLAGS
3657 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3658 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3659 if test "${ac_cv_prog_cc_g+set}" = set; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662   ac_save_c_werror_flag=$ac_c_werror_flag
3663    ac_c_werror_flag=yes
3664    ac_cv_prog_cc_g=no
3665    CFLAGS="-g"
3666    cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h.  */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h.  */
3672
3673 int
3674 main ()
3675 {
3676
3677   ;
3678   return 0;
3679 }
3680 _ACEOF
3681 rm -f conftest.$ac_objext
3682 if { (ac_try="$ac_compile"
3683 case "(($ac_try" in
3684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685   *) ac_try_echo=$ac_try;;
3686 esac
3687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3688   (eval "$ac_compile") 2>conftest.er1
3689   ac_status=$?
3690   grep -v '^ *+' conftest.er1 >conftest.err
3691   rm -f conftest.er1
3692   cat conftest.err >&5
3693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694   (exit $ac_status); } && {
3695          test -z "$ac_c_werror_flag" ||
3696          test ! -s conftest.err
3697        } && test -s conftest.$ac_objext; then
3698   ac_cv_prog_cc_g=yes
3699 else
3700   echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3702
3703         CFLAGS=""
3704       cat >conftest.$ac_ext <<_ACEOF
3705 /* confdefs.h.  */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h.  */
3710
3711 int
3712 main ()
3713 {
3714
3715   ;
3716   return 0;
3717 }
3718 _ACEOF
3719 rm -f conftest.$ac_objext
3720 if { (ac_try="$ac_compile"
3721 case "(($ac_try" in
3722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723   *) ac_try_echo=$ac_try;;
3724 esac
3725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3726   (eval "$ac_compile") 2>conftest.er1
3727   ac_status=$?
3728   grep -v '^ *+' conftest.er1 >conftest.err
3729   rm -f conftest.er1
3730   cat conftest.err >&5
3731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732   (exit $ac_status); } && {
3733          test -z "$ac_c_werror_flag" ||
3734          test ! -s conftest.err
3735        } && test -s conftest.$ac_objext; then
3736   :
3737 else
3738   echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741         ac_c_werror_flag=$ac_save_c_werror_flag
3742          CFLAGS="-g"
3743          cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h.  */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h.  */
3749
3750 int
3751 main ()
3752 {
3753
3754   ;
3755   return 0;
3756 }
3757 _ACEOF
3758 rm -f conftest.$ac_objext
3759 if { (ac_try="$ac_compile"
3760 case "(($ac_try" in
3761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762   *) ac_try_echo=$ac_try;;
3763 esac
3764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3765   (eval "$ac_compile") 2>conftest.er1
3766   ac_status=$?
3767   grep -v '^ *+' conftest.er1 >conftest.err
3768   rm -f conftest.er1
3769   cat conftest.err >&5
3770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771   (exit $ac_status); } && {
3772          test -z "$ac_c_werror_flag" ||
3773          test ! -s conftest.err
3774        } && test -s conftest.$ac_objext; then
3775   ac_cv_prog_cc_g=yes
3776 else
3777   echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3779
3780
3781 fi
3782
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 fi
3785
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 fi
3788
3789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790    ac_c_werror_flag=$ac_save_c_werror_flag
3791 fi
3792 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3793 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3794 if test "$ac_test_CFLAGS" = set; then
3795   CFLAGS=$ac_save_CFLAGS
3796 elif test $ac_cv_prog_cc_g = yes; then
3797   if test "$GCC" = yes; then
3798     CFLAGS="-g -O2"
3799   else
3800     CFLAGS="-g"
3801   fi
3802 else
3803   if test "$GCC" = yes; then
3804     CFLAGS="-O2"
3805   else
3806     CFLAGS=
3807   fi
3808 fi
3809 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3810 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3811 if test "${ac_cv_prog_cc_c89+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814   ac_cv_prog_cc_c89=no
3815 ac_save_CC=$CC
3816 cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h.  */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h.  */
3822 #include <stdarg.h>
3823 #include <stdio.h>
3824 #include <sys/types.h>
3825 #include <sys/stat.h>
3826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3827 struct buf { int x; };
3828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3829 static char *e (p, i)
3830      char **p;
3831      int i;
3832 {
3833   return p[i];
3834 }
3835 static char *f (char * (*g) (char **, int), char **p, ...)
3836 {
3837   char *s;
3838   va_list v;
3839   va_start (v,p);
3840   s = g (p, va_arg (v,int));
3841   va_end (v);
3842   return s;
3843 }
3844
3845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3846    function prototypes and stuff, but not '\xHH' hex character constants.
3847    These don't provoke an error unfortunately, instead are silently treated
3848    as 'x'.  The following induces an error, until -std is added to get
3849    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3850    array size at least.  It's necessary to write '\x00'==0 to get something
3851    that's true only with -std.  */
3852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3853
3854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3855    inside strings and character constants.  */
3856 #define FOO(x) 'x'
3857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3858
3859 int test (int i, double x);
3860 struct s1 {int (*f) (int a);};
3861 struct s2 {int (*f) (double a);};
3862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3863 int argc;
3864 char **argv;
3865 int
3866 main ()
3867 {
3868 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3869   ;
3870   return 0;
3871 }
3872 _ACEOF
3873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3874         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3875 do
3876   CC="$ac_save_CC $ac_arg"
3877   rm -f conftest.$ac_objext
3878 if { (ac_try="$ac_compile"
3879 case "(($ac_try" in
3880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881   *) ac_try_echo=$ac_try;;
3882 esac
3883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3884   (eval "$ac_compile") 2>conftest.er1
3885   ac_status=$?
3886   grep -v '^ *+' conftest.er1 >conftest.err
3887   rm -f conftest.er1
3888   cat conftest.err >&5
3889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890   (exit $ac_status); } && {
3891          test -z "$ac_c_werror_flag" ||
3892          test ! -s conftest.err
3893        } && test -s conftest.$ac_objext; then
3894   ac_cv_prog_cc_c89=$ac_arg
3895 else
3896   echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899
3900 fi
3901
3902 rm -f core conftest.err conftest.$ac_objext
3903   test "x$ac_cv_prog_cc_c89" != "xno" && break
3904 done
3905 rm -f conftest.$ac_ext
3906 CC=$ac_save_CC
3907
3908 fi
3909 # AC_CACHE_VAL
3910 case "x$ac_cv_prog_cc_c89" in
3911   x)
3912     { echo "$as_me:$LINENO: result: none needed" >&5
3913 echo "${ECHO_T}none needed" >&6; } ;;
3914   xno)
3915     { echo "$as_me:$LINENO: result: unsupported" >&5
3916 echo "${ECHO_T}unsupported" >&6; } ;;
3917   *)
3918     CC="$CC $ac_cv_prog_cc_c89"
3919     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3920 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3921 esac
3922
3923
3924 ac_ext=c
3925 ac_cpp='$CPP $CPPFLAGS'
3926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3929
3930 depcc="$CC"   am_compiler_list=
3931
3932 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3933 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3934 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3935   echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3938   # We make a subdir and do the tests there.  Otherwise we can end up
3939   # making bogus files that we don't know about and never remove.  For
3940   # instance it was reported that on HP-UX the gcc test will end up
3941   # making a dummy file named `D' -- because `-MD' means `put the output
3942   # in D'.
3943   mkdir conftest.dir
3944   # Copy depcomp to subdir because otherwise we won't find it if we're
3945   # using a relative directory.
3946   cp "$am_depcomp" conftest.dir
3947   cd conftest.dir
3948   # We will build objects and dependencies in a subdirectory because
3949   # it helps to detect inapplicable dependency modes.  For instance
3950   # both Tru64's cc and ICC support -MD to output dependencies as a
3951   # side effect of compilation, but ICC will put the dependencies in
3952   # the current directory while Tru64 will put them in the object
3953   # directory.
3954   mkdir sub
3955
3956   am_cv_CC_dependencies_compiler_type=none
3957   if test "$am_compiler_list" = ""; then
3958      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3959   fi
3960   for depmode in $am_compiler_list; do
3961     # Setup a source with many dependencies, because some compilers
3962     # like to wrap large dependency lists on column 80 (with \), and
3963     # we should not choose a depcomp mode which is confused by this.
3964     #
3965     # We need to recreate these files for each test, as the compiler may
3966     # overwrite some of them when testing with obscure command lines.
3967     # This happens at least with the AIX C compiler.
3968     : > sub/conftest.c
3969     for i in 1 2 3 4 5 6; do
3970       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3971       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3972       # Solaris 8's {/usr,}/bin/sh.
3973       touch sub/conftst$i.h
3974     done
3975     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3976
3977     case $depmode in
3978     nosideeffect)
3979       # after this tag, mechanisms are not by side-effect, so they'll
3980       # only be used when explicitly requested
3981       if test "x$enable_dependency_tracking" = xyes; then
3982         continue
3983       else
3984         break
3985       fi
3986       ;;
3987     none) break ;;
3988     esac
3989     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3990     # mode.  It turns out that the SunPro C++ compiler does not properly
3991     # handle `-M -o', and we need to detect this.
3992     if depmode=$depmode \
3993        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3994        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3995        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3996          >/dev/null 2>conftest.err &&
3997        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3998        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3999        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4000        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4001       # icc doesn't choke on unknown options, it will just issue warnings
4002       # or remarks (even with -Werror).  So we grep stderr for any message
4003       # that says an option was ignored or not supported.
4004       # When given -MP, icc 7.0 and 7.1 complain thusly:
4005       #   icc: Command line warning: ignoring option '-M'; no argument required
4006       # The diagnosis changed in icc 8.0:
4007       #   icc: Command line remark: option '-MP' not supported
4008       if (grep 'ignoring option' conftest.err ||
4009           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4010         am_cv_CC_dependencies_compiler_type=$depmode
4011         break
4012       fi
4013     fi
4014   done
4015
4016   cd ..
4017   rm -rf conftest.dir
4018 else
4019   am_cv_CC_dependencies_compiler_type=none
4020 fi
4021
4022 fi
4023 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4024 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4025 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4026
4027  if
4028   test "x$enable_dependency_tracking" != xno \
4029   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4030   am__fastdepCC_TRUE=
4031   am__fastdepCC_FALSE='#'
4032 else
4033   am__fastdepCC_TRUE='#'
4034   am__fastdepCC_FALSE=
4035 fi
4036
4037
4038 ac_ext=c
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4044 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4045 # On Suns, sometimes $CPP names a directory.
4046 if test -n "$CPP" && test -d "$CPP"; then
4047   CPP=
4048 fi
4049 if test -z "$CPP"; then
4050   if test "${ac_cv_prog_CPP+set}" = set; then
4051   echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053       # Double quotes because CPP needs to be expanded
4054     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4055     do
4056       ac_preproc_ok=false
4057 for ac_c_preproc_warn_flag in '' yes
4058 do
4059   # Use a header file that comes with gcc, so configuring glibc
4060   # with a fresh cross-compiler works.
4061   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4062   # <limits.h> exists even on freestanding compilers.
4063   # On the NeXT, cc -E runs the code through the compiler's parser,
4064   # not just through cpp. "Syntax error" is here to catch this case.
4065   cat >conftest.$ac_ext <<_ACEOF
4066 /* confdefs.h.  */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h.  */
4071 #ifdef __STDC__
4072 # include <limits.h>
4073 #else
4074 # include <assert.h>
4075 #endif
4076                      Syntax error
4077 _ACEOF
4078 if { (ac_try="$ac_cpp conftest.$ac_ext"
4079 case "(($ac_try" in
4080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081   *) ac_try_echo=$ac_try;;
4082 esac
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4085   ac_status=$?
4086   grep -v '^ *+' conftest.er1 >conftest.err
4087   rm -f conftest.er1
4088   cat conftest.err >&5
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); } >/dev/null && {
4091          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4092          test ! -s conftest.err
4093        }; then
4094   :
4095 else
4096   echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4098
4099   # Broken: fails on valid input.
4100 continue
4101 fi
4102
4103 rm -f conftest.err conftest.$ac_ext
4104
4105   # OK, works on sane cases.  Now check whether nonexistent headers
4106   # can be detected and how.
4107   cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h.  */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h.  */
4113 #include <ac_nonexistent.h>
4114 _ACEOF
4115 if { (ac_try="$ac_cpp conftest.$ac_ext"
4116 case "(($ac_try" in
4117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118   *) ac_try_echo=$ac_try;;
4119 esac
4120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4122   ac_status=$?
4123   grep -v '^ *+' conftest.er1 >conftest.err
4124   rm -f conftest.er1
4125   cat conftest.err >&5
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); } >/dev/null && {
4128          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4129          test ! -s conftest.err
4130        }; then
4131   # Broken: success on invalid input.
4132 continue
4133 else
4134   echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4136
4137   # Passes both tests.
4138 ac_preproc_ok=:
4139 break
4140 fi
4141
4142 rm -f conftest.err conftest.$ac_ext
4143
4144 done
4145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4146 rm -f conftest.err conftest.$ac_ext
4147 if $ac_preproc_ok; then
4148   break
4149 fi
4150
4151     done
4152     ac_cv_prog_CPP=$CPP
4153
4154 fi
4155   CPP=$ac_cv_prog_CPP
4156 else
4157   ac_cv_prog_CPP=$CPP
4158 fi
4159 { echo "$as_me:$LINENO: result: $CPP" >&5
4160 echo "${ECHO_T}$CPP" >&6; }
4161 ac_preproc_ok=false
4162 for ac_c_preproc_warn_flag in '' yes
4163 do
4164   # Use a header file that comes with gcc, so configuring glibc
4165   # with a fresh cross-compiler works.
4166   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4167   # <limits.h> exists even on freestanding compilers.
4168   # On the NeXT, cc -E runs the code through the compiler's parser,
4169   # not just through cpp. "Syntax error" is here to catch this case.
4170   cat >conftest.$ac_ext <<_ACEOF
4171 /* confdefs.h.  */
4172 _ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h.  */
4176 #ifdef __STDC__
4177 # include <limits.h>
4178 #else
4179 # include <assert.h>
4180 #endif
4181                      Syntax error
4182 _ACEOF
4183 if { (ac_try="$ac_cpp conftest.$ac_ext"
4184 case "(($ac_try" in
4185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186   *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4190   ac_status=$?
4191   grep -v '^ *+' conftest.er1 >conftest.err
4192   rm -f conftest.er1
4193   cat conftest.err >&5
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); } >/dev/null && {
4196          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4197          test ! -s conftest.err
4198        }; then
4199   :
4200 else
4201   echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4203
4204   # Broken: fails on valid input.
4205 continue
4206 fi
4207
4208 rm -f conftest.err conftest.$ac_ext
4209
4210   # OK, works on sane cases.  Now check whether nonexistent headers
4211   # can be detected and how.
4212   cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h.  */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h.  */
4218 #include <ac_nonexistent.h>
4219 _ACEOF
4220 if { (ac_try="$ac_cpp conftest.$ac_ext"
4221 case "(($ac_try" in
4222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223   *) ac_try_echo=$ac_try;;
4224 esac
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4227   ac_status=$?
4228   grep -v '^ *+' conftest.er1 >conftest.err
4229   rm -f conftest.er1
4230   cat conftest.err >&5
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); } >/dev/null && {
4233          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4234          test ! -s conftest.err
4235        }; then
4236   # Broken: success on invalid input.
4237 continue
4238 else
4239   echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242   # Passes both tests.
4243 ac_preproc_ok=:
4244 break
4245 fi
4246
4247 rm -f conftest.err conftest.$ac_ext
4248
4249 done
4250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4251 rm -f conftest.err conftest.$ac_ext
4252 if $ac_preproc_ok; then
4253   :
4254 else
4255   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4256 See \`config.log' for more details." >&5
4257 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4258 See \`config.log' for more details." >&2;}
4259    { (exit 1); exit 1; }; }
4260 fi
4261
4262 ac_ext=c
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267
4268 # Find a good install program.  We prefer a C program (faster),
4269 # so one script is as good as another.  But avoid the broken or
4270 # incompatible versions:
4271 # SysV /etc/install, /usr/sbin/install
4272 # SunOS /usr/etc/install
4273 # IRIX /sbin/install
4274 # AIX /bin/install
4275 # AmigaOS /C/install, which installs bootblocks on floppy discs
4276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4279 # OS/2's system install, which has a completely different semantic
4280 # ./install, which can be erroneously created by make from ./install.sh.
4281 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4282 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4283 if test -z "$INSTALL"; then
4284 if test "${ac_cv_path_install+set}" = set; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292   # Account for people who put trailing slashes in PATH elements.
4293 case $as_dir/ in
4294   ./ | .// | /cC/* | \
4295   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4296   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4297   /usr/ucb/* ) ;;
4298   *)
4299     # OSF1 and SCO ODT 3.0 have their own names for install.
4300     # Don't use installbsd from OSF since it installs stuff as root
4301     # by default.
4302     for ac_prog in ginstall scoinst install; do
4303       for ac_exec_ext in '' $ac_executable_extensions; do
4304         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4305           if test $ac_prog = install &&
4306             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4307             # AIX install.  It has an incompatible calling convention.
4308             :
4309           elif test $ac_prog = install &&
4310             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4311             # program-specific install script used by HP pwplus--don't use.
4312             :
4313           else
4314             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4315             break 3
4316           fi
4317         fi
4318       done
4319     done
4320     ;;
4321 esac
4322 done
4323 IFS=$as_save_IFS
4324
4325
4326 fi
4327   if test "${ac_cv_path_install+set}" = set; then
4328     INSTALL=$ac_cv_path_install
4329   else
4330     # As a last resort, use the slow shell script.  Don't cache a
4331     # value for INSTALL within a source directory, because that will
4332     # break other packages using the cache if that directory is
4333     # removed, or if the value is a relative name.
4334     INSTALL=$ac_install_sh
4335   fi
4336 fi
4337 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4338 echo "${ECHO_T}$INSTALL" >&6; }
4339
4340 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4341 # It thinks the first close brace ends the variable substitution.
4342 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4343
4344 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4345
4346 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4347
4348 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4349 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4350 LN_S=$as_ln_s
4351 if test "$LN_S" = "ln -s"; then
4352   { echo "$as_me:$LINENO: result: yes" >&5
4353 echo "${ECHO_T}yes" >&6; }
4354 else
4355   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4356 echo "${ECHO_T}no, using $LN_S" >&6; }
4357 fi
4358
4359 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4360 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4361 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4362 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365   cat >conftest.make <<\_ACEOF
4366 SHELL = /bin/sh
4367 all:
4368         @echo '@@@%%%=$(MAKE)=@@@%%%'
4369 _ACEOF
4370 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4371 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4372   *@@@%%%=?*=@@@%%%*)
4373     eval ac_cv_prog_make_${ac_make}_set=yes;;
4374   *)
4375     eval ac_cv_prog_make_${ac_make}_set=no;;
4376 esac
4377 rm -f conftest.make
4378 fi
4379 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4380   { echo "$as_me:$LINENO: result: yes" >&5
4381 echo "${ECHO_T}yes" >&6; }
4382   SET_MAKE=
4383 else
4384   { echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6; }
4386   SET_MAKE="MAKE=${MAKE-make}"
4387 fi
4388
4389 case `pwd` in
4390   *\ * | *\     *)
4391     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4392 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4393 esac
4394
4395
4396
4397 macro_version='2.2.4'
4398 macro_revision='1.2976'
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412 ltmain="$ac_aux_dir/ltmain.sh"
4413
4414 # Make sure we can run config.sub.
4415 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4416   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4417 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4418    { (exit 1); exit 1; }; }
4419
4420 { echo "$as_me:$LINENO: checking build system type" >&5
4421 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4422 if test "${ac_cv_build+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   ac_build_alias=$build_alias
4426 test "x$ac_build_alias" = x &&
4427   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4428 test "x$ac_build_alias" = x &&
4429   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4430 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4431    { (exit 1); exit 1; }; }
4432 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4433   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4434 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4435    { (exit 1); exit 1; }; }
4436
4437 fi
4438 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4439 echo "${ECHO_T}$ac_cv_build" >&6; }
4440 case $ac_cv_build in
4441 *-*-*) ;;
4442 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4443 echo "$as_me: error: invalid value of canonical build" >&2;}
4444    { (exit 1); exit 1; }; };;
4445 esac
4446 build=$ac_cv_build
4447 ac_save_IFS=$IFS; IFS='-'
4448 set x $ac_cv_build
4449 shift
4450 build_cpu=$1
4451 build_vendor=$2
4452 shift; shift
4453 # Remember, the first character of IFS is used to create $*,
4454 # except with old shells:
4455 build_os=$*
4456 IFS=$ac_save_IFS
4457 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4458
4459
4460 { echo "$as_me:$LINENO: checking host system type" >&5
4461 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4462 if test "${ac_cv_host+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   if test "x$host_alias" = x; then
4466   ac_cv_host=$ac_cv_build
4467 else
4468   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4469     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4470 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4471    { (exit 1); exit 1; }; }
4472 fi
4473
4474 fi
4475 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4476 echo "${ECHO_T}$ac_cv_host" >&6; }
4477 case $ac_cv_host in
4478 *-*-*) ;;
4479 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4480 echo "$as_me: error: invalid value of canonical host" >&2;}
4481    { (exit 1); exit 1; }; };;
4482 esac
4483 host=$ac_cv_host
4484 ac_save_IFS=$IFS; IFS='-'
4485 set x $ac_cv_host
4486 shift
4487 host_cpu=$1
4488 host_vendor=$2
4489 shift; shift
4490 # Remember, the first character of IFS is used to create $*,
4491 # except with old shells:
4492 host_os=$*
4493 IFS=$ac_save_IFS
4494 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4495
4496
4497 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4498 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4499 if test "${ac_cv_path_SED+set}" = set; then
4500   echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4503      for ac_i in 1 2 3 4 5 6 7; do
4504        ac_script="$ac_script$as_nl$ac_script"
4505      done
4506      echo "$ac_script" | sed 99q >conftest.sed
4507      $as_unset ac_script || ac_script=
4508      # Extract the first word of "sed gsed" to use in msg output
4509 if test -z "$SED"; then
4510 set dummy sed gsed; ac_prog_name=$2
4511 if test "${ac_cv_path_SED+set}" = set; then
4512   echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514   ac_path_SED_found=false
4515 # Loop through the user's path and test for each of PROGNAME-LIST
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4518 do
4519   IFS=$as_save_IFS
4520   test -z "$as_dir" && as_dir=.
4521   for ac_prog in sed gsed; do
4522   for ac_exec_ext in '' $ac_executable_extensions; do
4523     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4524     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4525     # Check for GNU ac_path_SED and select it if it is found.
4526   # Check for GNU $ac_path_SED
4527 case `"$ac_path_SED" --version 2>&1` in
4528 *GNU*)
4529   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4530 *)
4531   ac_count=0
4532   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4533   while :
4534   do
4535     cat "conftest.in" "conftest.in" >"conftest.tmp"
4536     mv "conftest.tmp" "conftest.in"
4537     cp "conftest.in" "conftest.nl"
4538     echo '' >> "conftest.nl"
4539     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4540     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4541     ac_count=`expr $ac_count + 1`
4542     if test $ac_count -gt ${ac_path_SED_max-0}; then
4543       # Best one so far, save it but keep looking for a better one
4544       ac_cv_path_SED="$ac_path_SED"
4545       ac_path_SED_max=$ac_count
4546     fi
4547     # 10*(2^10) chars as input seems more than enough
4548     test $ac_count -gt 10 && break
4549   done
4550   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4551 esac
4552
4553
4554     $ac_path_SED_found && break 3
4555   done
4556 done
4557
4558 done
4559 IFS=$as_save_IFS
4560
4561
4562 fi
4563
4564 SED="$ac_cv_path_SED"
4565 if test -z "$SED"; then
4566   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4567 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4568    { (exit 1); exit 1; }; }
4569 fi
4570
4571 else
4572   ac_cv_path_SED=$SED
4573 fi
4574
4575 fi
4576 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4577 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4578  SED="$ac_cv_path_SED"
4579   rm -f conftest.sed
4580
4581 test -z "$SED" && SED=sed
4582 Xsed="$SED -e 1s/^X//"
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4595 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4596 if test "${ac_cv_path_GREP+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   # Extract the first word of "grep ggrep" to use in msg output
4600 if test -z "$GREP"; then
4601 set dummy grep ggrep; ac_prog_name=$2
4602 if test "${ac_cv_path_GREP+set}" = set; then
4603   echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605   ac_path_GREP_found=false
4606 # Loop through the user's path and test for each of PROGNAME-LIST
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4609 do
4610   IFS=$as_save_IFS
4611   test -z "$as_dir" && as_dir=.
4612   for ac_prog in grep ggrep; do
4613   for ac_exec_ext in '' $ac_executable_extensions; do
4614     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4615     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4616     # Check for GNU ac_path_GREP and select it if it is found.
4617   # Check for GNU $ac_path_GREP
4618 case `"$ac_path_GREP" --version 2>&1` in
4619 *GNU*)
4620   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4621 *)
4622   ac_count=0
4623   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4624   while :
4625   do
4626     cat "conftest.in" "conftest.in" >"conftest.tmp"
4627     mv "conftest.tmp" "conftest.in"
4628     cp "conftest.in" "conftest.nl"
4629     echo 'GREP' >> "conftest.nl"
4630     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4631     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4632     ac_count=`expr $ac_count + 1`
4633     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4634       # Best one so far, save it but keep looking for a better one
4635       ac_cv_path_GREP="$ac_path_GREP"
4636       ac_path_GREP_max=$ac_count
4637     fi
4638     # 10*(2^10) chars as input seems more than enough
4639     test $ac_count -gt 10 && break
4640   done
4641   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4642 esac
4643
4644
4645     $ac_path_GREP_found && break 3
4646   done
4647 done
4648
4649 done
4650 IFS=$as_save_IFS
4651
4652
4653 fi
4654
4655 GREP="$ac_cv_path_GREP"
4656 if test -z "$GREP"; then
4657   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4658 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4659    { (exit 1); exit 1; }; }
4660 fi
4661
4662 else
4663   ac_cv_path_GREP=$GREP
4664 fi
4665
4666
4667 fi
4668 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4669 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4670  GREP="$ac_cv_path_GREP"
4671
4672
4673 { echo "$as_me:$LINENO: checking for egrep" >&5
4674 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4675 if test "${ac_cv_path_EGREP+set}" = set; then
4676   echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4679    then ac_cv_path_EGREP="$GREP -E"
4680    else
4681      # Extract the first word of "egrep" to use in msg output
4682 if test -z "$EGREP"; then
4683 set dummy egrep; ac_prog_name=$2
4684 if test "${ac_cv_path_EGREP+set}" = set; then
4685   echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687   ac_path_EGREP_found=false
4688 # Loop through the user's path and test for each of PROGNAME-LIST
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4691 do
4692   IFS=$as_save_IFS
4693   test -z "$as_dir" && as_dir=.
4694   for ac_prog in egrep; do
4695   for ac_exec_ext in '' $ac_executable_extensions; do
4696     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4697     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4698     # Check for GNU ac_path_EGREP and select it if it is found.
4699   # Check for GNU $ac_path_EGREP
4700 case `"$ac_path_EGREP" --version 2>&1` in
4701 *GNU*)
4702   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4703 *)
4704   ac_count=0
4705   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4706   while :
4707   do
4708     cat "conftest.in" "conftest.in" >"conftest.tmp"
4709     mv "conftest.tmp" "conftest.in"
4710     cp "conftest.in" "conftest.nl"
4711     echo 'EGREP' >> "conftest.nl"
4712     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4713     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4714     ac_count=`expr $ac_count + 1`
4715     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4716       # Best one so far, save it but keep looking for a better one
4717       ac_cv_path_EGREP="$ac_path_EGREP"
4718       ac_path_EGREP_max=$ac_count
4719     fi
4720     # 10*(2^10) chars as input seems more than enough
4721     test $ac_count -gt 10 && break
4722   done
4723   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4724 esac
4725
4726
4727     $ac_path_EGREP_found && break 3
4728   done
4729 done
4730
4731 done
4732 IFS=$as_save_IFS
4733
4734
4735 fi
4736
4737 EGREP="$ac_cv_path_EGREP"
4738 if test -z "$EGREP"; then
4739   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4740 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4741    { (exit 1); exit 1; }; }
4742 fi
4743
4744 else
4745   ac_cv_path_EGREP=$EGREP
4746 fi
4747
4748
4749    fi
4750 fi
4751 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4752 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4753  EGREP="$ac_cv_path_EGREP"
4754
4755
4756 { echo "$as_me:$LINENO: checking for fgrep" >&5
4757 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4758 if test "${ac_cv_path_FGREP+set}" = set; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4762    then ac_cv_path_FGREP="$GREP -F"
4763    else
4764      # Extract the first word of "fgrep" to use in msg output
4765 if test -z "$FGREP"; then
4766 set dummy fgrep; ac_prog_name=$2
4767 if test "${ac_cv_path_FGREP+set}" = set; then
4768   echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770   ac_path_FGREP_found=false
4771 # Loop through the user's path and test for each of PROGNAME-LIST
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4774 do
4775   IFS=$as_save_IFS
4776   test -z "$as_dir" && as_dir=.
4777   for ac_prog in fgrep; do
4778   for ac_exec_ext in '' $ac_executable_extensions; do
4779     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4780     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4781     # Check for GNU ac_path_FGREP and select it if it is found.
4782   # Check for GNU $ac_path_FGREP
4783 case `"$ac_path_FGREP" --version 2>&1` in
4784 *GNU*)
4785   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4786 *)
4787   ac_count=0
4788   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4789   while :
4790   do
4791     cat "conftest.in" "conftest.in" >"conftest.tmp"
4792     mv "conftest.tmp" "conftest.in"
4793     cp "conftest.in" "conftest.nl"
4794     echo 'FGREP' >> "conftest.nl"
4795     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4796     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4797     ac_count=`expr $ac_count + 1`
4798     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4799       # Best one so far, save it but keep looking for a better one
4800       ac_cv_path_FGREP="$ac_path_FGREP"
4801       ac_path_FGREP_max=$ac_count
4802     fi
4803     # 10*(2^10) chars as input seems more than enough
4804     test $ac_count -gt 10 && break
4805   done
4806   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4807 esac
4808
4809
4810     $ac_path_FGREP_found && break 3
4811   done
4812 done
4813
4814 done
4815 IFS=$as_save_IFS
4816
4817
4818 fi
4819
4820 FGREP="$ac_cv_path_FGREP"
4821 if test -z "$FGREP"; then
4822   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4823 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4824    { (exit 1); exit 1; }; }
4825 fi
4826
4827 else
4828   ac_cv_path_FGREP=$FGREP
4829 fi
4830
4831
4832    fi
4833 fi
4834 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4835 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4836  FGREP="$ac_cv_path_FGREP"
4837
4838
4839 test -z "$GREP" && GREP=grep
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859 # Check whether --with-gnu-ld was given.
4860 if test "${with_gnu_ld+set}" = set; then
4861   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4862 else
4863   with_gnu_ld=no
4864 fi
4865
4866 ac_prog=ld
4867 if test "$GCC" = yes; then
4868   # Check if gcc -print-prog-name=ld gives a path.
4869   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4870 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4871   case $host in
4872   *-*-mingw*)
4873     # gcc leaves a trailing carriage return which upsets mingw
4874     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4875   *)
4876     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4877   esac
4878   case $ac_prog in
4879     # Accept absolute paths.
4880     [\\/]* | ?:[\\/]*)
4881       re_direlt='/[^/][^/]*/\.\./'
4882       # Canonicalize the pathname of ld
4883       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4884       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4885         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4886       done
4887       test -z "$LD" && LD="$ac_prog"
4888       ;;
4889   "")
4890     # If it fails, then pretend we aren't using GCC.
4891     ac_prog=ld
4892     ;;
4893   *)
4894     # If it is relative, then search for the first ld in PATH.
4895     with_gnu_ld=unknown
4896     ;;
4897   esac
4898 elif test "$with_gnu_ld" = yes; then
4899   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4900 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4901 else
4902   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4903 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4904 fi
4905 if test "${lt_cv_path_LD+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   if test -z "$LD"; then
4909   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4910   for ac_dir in $PATH; do
4911     IFS="$lt_save_ifs"
4912     test -z "$ac_dir" && ac_dir=.
4913     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4914       lt_cv_path_LD="$ac_dir/$ac_prog"
4915       # Check to see if the program is GNU ld.  I'd rather use --version,
4916       # but apparently some variants of GNU ld only accept -v.
4917       # Break only if it was the GNU/non-GNU ld that we prefer.
4918       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4919       *GNU* | *'with BFD'*)
4920         test "$with_gnu_ld" != no && break
4921         ;;
4922       *)
4923         test "$with_gnu_ld" != yes && break
4924         ;;
4925       esac
4926     fi
4927   done
4928   IFS="$lt_save_ifs"
4929 else
4930   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4931 fi
4932 fi
4933
4934 LD="$lt_cv_path_LD"
4935 if test -n "$LD"; then
4936   { echo "$as_me:$LINENO: result: $LD" >&5
4937 echo "${ECHO_T}$LD" >&6; }
4938 else
4939   { echo "$as_me:$LINENO: result: no" >&5
4940 echo "${ECHO_T}no" >&6; }
4941 fi
4942 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4943 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4944    { (exit 1); exit 1; }; }
4945 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4946 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4947 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4948   echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4951 case `$LD -v 2>&1 </dev/null` in
4952 *GNU* | *'with BFD'*)
4953   lt_cv_prog_gnu_ld=yes
4954   ;;
4955 *)
4956   lt_cv_prog_gnu_ld=no
4957   ;;
4958 esac
4959 fi
4960 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4961 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4962 with_gnu_ld=$lt_cv_prog_gnu_ld
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4973 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4974 if test "${lt_cv_path_NM+set}" = set; then
4975   echo $ECHO_N "(cached) $ECHO_C" >&6
4976 else
4977   if test -n "$NM"; then
4978   # Let the user override the test.
4979   lt_cv_path_NM="$NM"
4980 else
4981   lt_nm_to_check="${ac_tool_prefix}nm"
4982   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4983     lt_nm_to_check="$lt_nm_to_check nm"
4984   fi
4985   for lt_tmp_nm in $lt_nm_to_check; do
4986     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4987     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4988       IFS="$lt_save_ifs"
4989       test -z "$ac_dir" && ac_dir=.
4990       tmp_nm="$ac_dir/$lt_tmp_nm"
4991       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4992         # Check to see if the nm accepts a BSD-compat flag.
4993         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4994         #   nm: unknown option "B" ignored
4995         # Tru64's nm complains that /dev/null is an invalid object file
4996         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4997         */dev/null* | *'Invalid file or object type'*)
4998           lt_cv_path_NM="$tmp_nm -B"
4999           break
5000           ;;
5001         *)
5002           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5003           */dev/null*)
5004             lt_cv_path_NM="$tmp_nm -p"
5005             break
5006             ;;
5007           *)
5008             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5009             continue # so that we can try to find one that supports BSD flags
5010             ;;
5011           esac
5012           ;;
5013         esac
5014       fi
5015     done
5016     IFS="$lt_save_ifs"
5017   done
5018   : ${lt_cv_path_NM=no}
5019 fi
5020 fi
5021 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5022 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5023 if test "$lt_cv_path_NM" != "no"; then
5024   NM="$lt_cv_path_NM"
5025 else
5026   # Didn't find any BSD compatible name lister, look for dumpbin.
5027   if test -n "$ac_tool_prefix"; then
5028   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5029   do
5030     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5031 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5034 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037   if test -n "$DUMPBIN"; then
5038   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043   IFS=$as_save_IFS
5044   test -z "$as_dir" && as_dir=.
5045   for ac_exec_ext in '' $ac_executable_extensions; do
5046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049     break 2
5050   fi
5051 done
5052 done
5053 IFS=$as_save_IFS
5054
5055 fi
5056 fi
5057 DUMPBIN=$ac_cv_prog_DUMPBIN
5058 if test -n "$DUMPBIN"; then
5059   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5060 echo "${ECHO_T}$DUMPBIN" >&6; }
5061 else
5062   { echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6; }
5064 fi
5065
5066
5067     test -n "$DUMPBIN" && break
5068   done
5069 fi
5070 if test -z "$DUMPBIN"; then
5071   ac_ct_DUMPBIN=$DUMPBIN
5072   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5073 do
5074   # Extract the first word of "$ac_prog", so it can be a program name with args.
5075 set dummy $ac_prog; ac_word=$2
5076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5078 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5079   echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081   if test -n "$ac_ct_DUMPBIN"; then
5082   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5086 do
5087   IFS=$as_save_IFS
5088   test -z "$as_dir" && as_dir=.
5089   for ac_exec_ext in '' $ac_executable_extensions; do
5090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5093     break 2
5094   fi
5095 done
5096 done
5097 IFS=$as_save_IFS
5098
5099 fi
5100 fi
5101 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5102 if test -n "$ac_ct_DUMPBIN"; then
5103   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5104 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5105 else
5106   { echo "$as_me:$LINENO: result: no" >&5
5107 echo "${ECHO_T}no" >&6; }
5108 fi
5109
5110
5111   test -n "$ac_ct_DUMPBIN" && break
5112 done
5113
5114   if test "x$ac_ct_DUMPBIN" = x; then
5115     DUMPBIN=":"
5116   else
5117     case $cross_compiling:$ac_tool_warned in
5118 yes:)
5119 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5120 whose name does not start with the host triplet.  If you think this
5121 configuration is useful to you, please write to autoconf@gnu.org." >&5
5122 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5123 whose name does not start with the host triplet.  If you think this
5124 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5125 ac_tool_warned=yes ;;
5126 esac
5127     DUMPBIN=$ac_ct_DUMPBIN
5128   fi
5129 fi
5130
5131
5132   if test "$DUMPBIN" != ":"; then
5133     NM="$DUMPBIN"
5134   fi
5135 fi
5136 test -z "$NM" && NM=nm
5137
5138
5139
5140
5141
5142
5143 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5144 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5145 if test "${lt_cv_nm_interface+set}" = set; then
5146   echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148   lt_cv_nm_interface="BSD nm"
5149   echo "int some_variable = 0;" > conftest.$ac_ext
5150   (eval echo "\"\$as_me:5150: $ac_compile\"" >&5)
5151   (eval "$ac_compile" 2>conftest.err)
5152   cat conftest.err >&5
5153   (eval echo "\"\$as_me:5153: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5154   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5155   cat conftest.err >&5
5156   (eval echo "\"\$as_me:5156: output\"" >&5)
5157   cat conftest.out >&5
5158   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5159     lt_cv_nm_interface="MS dumpbin"
5160   fi
5161   rm -f conftest*
5162 fi
5163 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5164 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5165
5166 # find the maximum length of command line arguments
5167 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5168 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5169 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172     i=0
5173   teststring="ABCD"
5174
5175   case $build_os in
5176   msdosdjgpp*)
5177     # On DJGPP, this test can blow up pretty badly due to problems in libc
5178     # (any single argument exceeding 2000 bytes causes a buffer overrun
5179     # during glob expansion).  Even if it were fixed, the result of this
5180     # check would be larger than it should be.
5181     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5182     ;;
5183
5184   gnu*)
5185     # Under GNU Hurd, this test is not required because there is
5186     # no limit to the length of command line arguments.
5187     # Libtool will interpret -1 as no limit whatsoever
5188     lt_cv_sys_max_cmd_len=-1;
5189     ;;
5190
5191   cygwin* | mingw*)
5192     # On Win9x/ME, this test blows up -- it succeeds, but takes
5193     # about 5 minutes as the teststring grows exponentially.
5194     # Worse, since 9x/ME are not pre-emptively multitasking,
5195     # you end up with a "frozen" computer, even though with patience
5196     # the test eventually succeeds (with a max line length of 256k).
5197     # Instead, let's just punt: use the minimum linelength reported by
5198     # all of the supported platforms: 8192 (on NT/2K/XP).
5199     lt_cv_sys_max_cmd_len=8192;
5200     ;;
5201
5202   amigaos*)
5203     # On AmigaOS with pdksh, this test takes hours, literally.
5204     # So we just punt and use a minimum line length of 8192.
5205     lt_cv_sys_max_cmd_len=8192;
5206     ;;
5207
5208   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5209     # This has been around since 386BSD, at least.  Likely further.
5210     if test -x /sbin/sysctl; then
5211       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5212     elif test -x /usr/sbin/sysctl; then
5213       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5214     else
5215       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5216     fi
5217     # And add a safety zone
5218     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5219     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5220     ;;
5221
5222   interix*)
5223     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5224     lt_cv_sys_max_cmd_len=196608
5225     ;;
5226
5227   osf*)
5228     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5229     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5230     # nice to cause kernel panics so lets avoid the loop below.
5231     # First set a reasonable default.
5232     lt_cv_sys_max_cmd_len=16384
5233     #
5234     if test -x /sbin/sysconfig; then
5235       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5236         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5237       esac
5238     fi
5239     ;;
5240   sco3.2v5*)
5241     lt_cv_sys_max_cmd_len=102400
5242     ;;
5243   sysv5* | sco5v6* | sysv4.2uw2*)
5244     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5245     if test -n "$kargmax"; then
5246       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5247     else
5248       lt_cv_sys_max_cmd_len=32768
5249     fi
5250     ;;
5251   *)
5252     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5253     if test -n "$lt_cv_sys_max_cmd_len"; then
5254       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5255       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5256     else
5257       # Make teststring a little bigger before we do anything with it.
5258       # a 1K string should be a reasonable start.
5259       for i in 1 2 3 4 5 6 7 8 ; do
5260         teststring=$teststring$teststring
5261       done
5262       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5263       # If test is not a shell built-in, we'll probably end up computing a
5264       # maximum length that is only half of the actual maximum length, but
5265       # we can't tell.
5266       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5267                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5268               test $i != 17 # 1/2 MB should be enough
5269       do
5270         i=`expr $i + 1`
5271         teststring=$teststring$teststring
5272       done
5273       # Only check the string length outside the loop.
5274       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5275       teststring=
5276       # Add a significant safety factor because C++ compilers can tack on
5277       # massive amounts of additional arguments before passing them to the
5278       # linker.  It appears as though 1/2 is a usable value.
5279       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5280     fi
5281     ;;
5282   esac
5283
5284 fi
5285
5286 if test -n $lt_cv_sys_max_cmd_len ; then
5287   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5288 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5289 else
5290   { echo "$as_me:$LINENO: result: none" >&5
5291 echo "${ECHO_T}none" >&6; }
5292 fi
5293 max_cmd_len=$lt_cv_sys_max_cmd_len
5294
5295
5296
5297
5298
5299
5300 : ${CP="cp -f"}
5301 : ${MV="mv -f"}
5302 : ${RM="rm -f"}
5303
5304 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5305 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
5306 # Try some XSI features
5307 xsi_shell=no
5308 ( _lt_dummy="a/b/c"
5309   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5310       = c,a/b,, \
5311     && eval 'test $(( 1 + 1 )) -eq 2 \
5312     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5313   && xsi_shell=yes
5314 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
5315 echo "${ECHO_T}$xsi_shell" >&6; }
5316
5317
5318 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5319 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
5320 lt_shell_append=no
5321 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5322     >/dev/null 2>&1 \
5323   && lt_shell_append=yes
5324 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5325 echo "${ECHO_T}$lt_shell_append" >&6; }
5326
5327
5328 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5329   lt_unset=unset
5330 else
5331   lt_unset=false
5332 fi
5333
5334
5335
5336
5337
5338 # test EBCDIC or ASCII
5339 case `echo X|tr X '\101'` in
5340  A) # ASCII based system
5341     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5342   lt_SP2NL='tr \040 \012'
5343   lt_NL2SP='tr \015\012 \040\040'
5344   ;;
5345  *) # EBCDIC based system
5346   lt_SP2NL='tr \100 \n'
5347   lt_NL2SP='tr \r\n \100\100'
5348   ;;
5349 esac
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5360 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5361 if test "${lt_cv_ld_reload_flag+set}" = set; then
5362   echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364   lt_cv_ld_reload_flag='-r'
5365 fi
5366 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5367 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5368 reload_flag=$lt_cv_ld_reload_flag
5369 case $reload_flag in
5370 "" | " "*) ;;
5371 *) reload_flag=" $reload_flag" ;;
5372 esac
5373 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5374 case $host_os in
5375   darwin*)
5376     if test "$GCC" = yes; then
5377       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5378     else
5379       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5380     fi
5381     ;;
5382 esac
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5394 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5395 if test "${lt_cv_deplibs_check_method+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398   lt_cv_file_magic_cmd='$MAGIC_CMD'
5399 lt_cv_file_magic_test_file=
5400 lt_cv_deplibs_check_method='unknown'
5401 # Need to set the preceding variable on all platforms that support
5402 # interlibrary dependencies.
5403 # 'none' -- dependencies not supported.
5404 # `unknown' -- same as none, but documents that we really don't know.
5405 # 'pass_all' -- all dependencies passed with no checks.
5406 # 'test_compile' -- check by making test program.
5407 # 'file_magic [[regex]]' -- check by looking for files in library path
5408 # which responds to the $file_magic_cmd with a given extended regex.
5409 # If you have `file' or equivalent on your system and you're not sure
5410 # whether `pass_all' will *always* work, you probably want this one.
5411
5412 case $host_os in
5413 aix[4-9]*)
5414   lt_cv_deplibs_check_method=pass_all
5415   ;;
5416
5417 beos*)
5418   lt_cv_deplibs_check_method=pass_all
5419   ;;
5420
5421 bsdi[45]*)
5422   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5423   lt_cv_file_magic_cmd='/usr/bin/file -L'
5424   lt_cv_file_magic_test_file=/shlib/libc.so
5425   ;;
5426
5427 cygwin*)
5428   # func_win32_libid is a shell function defined in ltmain.sh
5429   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5430   lt_cv_file_magic_cmd='func_win32_libid'
5431   ;;
5432
5433 mingw* | pw32*)
5434   # Base MSYS/MinGW do not provide the 'file' command needed by
5435   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5436   # unless we find 'file', for example because we are cross-compiling.
5437   if ( file / ) >/dev/null 2>&1; then
5438     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5439     lt_cv_file_magic_cmd='func_win32_libid'
5440   else
5441     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5442     lt_cv_file_magic_cmd='$OBJDUMP -f'
5443   fi
5444   ;;
5445
5446 darwin* | rhapsody*)
5447   lt_cv_deplibs_check_method=pass_all
5448   ;;
5449
5450 freebsd* | dragonfly*)
5451   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5452     case $host_cpu in
5453     i*86 )
5454       # Not sure whether the presence of OpenBSD here was a mistake.
5455       # Let's accept both of them until this is cleared up.
5456       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5457       lt_cv_file_magic_cmd=/usr/bin/file
5458       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5459       ;;
5460     esac
5461   else
5462     lt_cv_deplibs_check_method=pass_all
5463   fi
5464   ;;
5465
5466 gnu*)
5467   lt_cv_deplibs_check_method=pass_all
5468   ;;
5469
5470 hpux10.20* | hpux11*)
5471   lt_cv_file_magic_cmd=/usr/bin/file
5472   case $host_cpu in
5473   ia64*)
5474     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5475     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5476     ;;
5477   hppa*64*)
5478     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]'
5479     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5480     ;;
5481   *)
5482     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5483     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5484     ;;
5485   esac
5486   ;;
5487
5488 interix[3-9]*)
5489   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5490   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5491   ;;
5492
5493 irix5* | irix6* | nonstopux*)
5494   case $LD in
5495   *-32|*"-32 ") libmagic=32-bit;;
5496   *-n32|*"-n32 ") libmagic=N32;;
5497   *-64|*"-64 ") libmagic=64-bit;;
5498   *) libmagic=never-match;;
5499   esac
5500   lt_cv_deplibs_check_method=pass_all
5501   ;;
5502
5503 # This must be Linux ELF.
5504 linux* | k*bsd*-gnu)
5505   lt_cv_deplibs_check_method=pass_all
5506   ;;
5507
5508 netbsd*)
5509   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5510     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5511   else
5512     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5513   fi
5514   ;;
5515
5516 newos6*)
5517   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5518   lt_cv_file_magic_cmd=/usr/bin/file
5519   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5520   ;;
5521
5522 *nto* | *qnx*)
5523   lt_cv_deplibs_check_method=pass_all
5524   ;;
5525
5526 openbsd*)
5527   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5528     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5529   else
5530     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5531   fi
5532   ;;
5533
5534 osf3* | osf4* | osf5*)
5535   lt_cv_deplibs_check_method=pass_all
5536   ;;
5537
5538 rdos*)
5539   lt_cv_deplibs_check_method=pass_all
5540   ;;
5541
5542 solaris*)
5543   lt_cv_deplibs_check_method=pass_all
5544   ;;
5545
5546 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5547   lt_cv_deplibs_check_method=pass_all
5548   ;;
5549
5550 sysv4 | sysv4.3*)
5551   case $host_vendor in
5552   motorola)
5553     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]'
5554     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5555     ;;
5556   ncr)
5557     lt_cv_deplibs_check_method=pass_all
5558     ;;
5559   sequent)
5560     lt_cv_file_magic_cmd='/bin/file'
5561     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5562     ;;
5563   sni)
5564     lt_cv_file_magic_cmd='/bin/file'
5565     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5566     lt_cv_file_magic_test_file=/lib/libc.so
5567     ;;
5568   siemens)
5569     lt_cv_deplibs_check_method=pass_all
5570     ;;
5571   pc)
5572     lt_cv_deplibs_check_method=pass_all
5573     ;;
5574   esac
5575   ;;
5576
5577 tpf*)
5578   lt_cv_deplibs_check_method=pass_all
5579   ;;
5580 esac
5581
5582 fi
5583 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5584 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5585 file_magic_cmd=$lt_cv_file_magic_cmd
5586 deplibs_check_method=$lt_cv_deplibs_check_method
5587 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600 if test -n "$ac_tool_prefix"; then
5601   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5602 set dummy ${ac_tool_prefix}ar; ac_word=$2
5603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5605 if test "${ac_cv_prog_AR+set}" = set; then
5606   echo $ECHO_N "(cached) $ECHO_C" >&6
5607 else
5608   if test -n "$AR"; then
5609   ac_cv_prog_AR="$AR" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5613 do
5614   IFS=$as_save_IFS
5615   test -z "$as_dir" && as_dir=.
5616   for ac_exec_ext in '' $ac_executable_extensions; do
5617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618     ac_cv_prog_AR="${ac_tool_prefix}ar"
5619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5620     break 2
5621   fi
5622 done
5623 done
5624 IFS=$as_save_IFS
5625
5626 fi
5627 fi
5628 AR=$ac_cv_prog_AR
5629 if test -n "$AR"; then
5630   { echo "$as_me:$LINENO: result: $AR" >&5
5631 echo "${ECHO_T}$AR" >&6; }
5632 else
5633   { echo "$as_me:$LINENO: result: no" >&5
5634 echo "${ECHO_T}no" >&6; }
5635 fi
5636
5637
5638 fi
5639 if test -z "$ac_cv_prog_AR"; then
5640   ac_ct_AR=$AR
5641   # Extract the first word of "ar", so it can be a program name with args.
5642 set dummy ar; ac_word=$2
5643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5645 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5646   echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648   if test -n "$ac_ct_AR"; then
5649   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5653 do
5654   IFS=$as_save_IFS
5655   test -z "$as_dir" && as_dir=.
5656   for ac_exec_ext in '' $ac_executable_extensions; do
5657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5658     ac_cv_prog_ac_ct_AR="ar"
5659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5660     break 2
5661   fi
5662 done
5663 done
5664 IFS=$as_save_IFS
5665
5666 fi
5667 fi
5668 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5669 if test -n "$ac_ct_AR"; then
5670   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5671 echo "${ECHO_T}$ac_ct_AR" >&6; }
5672 else
5673   { echo "$as_me:$LINENO: result: no" >&5
5674 echo "${ECHO_T}no" >&6; }
5675 fi
5676
5677   if test "x$ac_ct_AR" = x; then
5678     AR="false"
5679   else
5680     case $cross_compiling:$ac_tool_warned in
5681 yes:)
5682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5683 whose name does not start with the host triplet.  If you think this
5684 configuration is useful to you, please write to autoconf@gnu.org." >&5
5685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5686 whose name does not start with the host triplet.  If you think this
5687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5688 ac_tool_warned=yes ;;
5689 esac
5690     AR=$ac_ct_AR
5691   fi
5692 else
5693   AR="$ac_cv_prog_AR"
5694 fi
5695
5696 test -z "$AR" && AR=ar
5697 test -z "$AR_FLAGS" && AR_FLAGS=cru
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709 if test -n "$ac_tool_prefix"; then
5710   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5711 set dummy ${ac_tool_prefix}strip; ac_word=$2
5712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5714 if test "${ac_cv_prog_STRIP+set}" = set; then
5715   echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717   if test -n "$STRIP"; then
5718   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5719 else
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH
5722 do
5723   IFS=$as_save_IFS
5724   test -z "$as_dir" && as_dir=.
5725   for ac_exec_ext in '' $ac_executable_extensions; do
5726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5727     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729     break 2
5730   fi
5731 done
5732 done
5733 IFS=$as_save_IFS
5734
5735 fi
5736 fi
5737 STRIP=$ac_cv_prog_STRIP
5738 if test -n "$STRIP"; then
5739   { echo "$as_me:$LINENO: result: $STRIP" >&5
5740 echo "${ECHO_T}$STRIP" >&6; }
5741 else
5742   { echo "$as_me:$LINENO: result: no" >&5
5743 echo "${ECHO_T}no" >&6; }
5744 fi
5745
5746
5747 fi
5748 if test -z "$ac_cv_prog_STRIP"; then
5749   ac_ct_STRIP=$STRIP
5750   # Extract the first word of "strip", so it can be a program name with args.
5751 set dummy strip; ac_word=$2
5752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5754 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5755   echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757   if test -n "$ac_ct_STRIP"; then
5758   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5759 else
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5762 do
5763   IFS=$as_save_IFS
5764   test -z "$as_dir" && as_dir=.
5765   for ac_exec_ext in '' $ac_executable_extensions; do
5766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5767     ac_cv_prog_ac_ct_STRIP="strip"
5768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769     break 2
5770   fi
5771 done
5772 done
5773 IFS=$as_save_IFS
5774
5775 fi
5776 fi
5777 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5778 if test -n "$ac_ct_STRIP"; then
5779   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5780 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5781 else
5782   { echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6; }
5784 fi
5785
5786   if test "x$ac_ct_STRIP" = x; then
5787     STRIP=":"
5788   else
5789     case $cross_compiling:$ac_tool_warned in
5790 yes:)
5791 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5792 whose name does not start with the host triplet.  If you think this
5793 configuration is useful to you, please write to autoconf@gnu.org." >&5
5794 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5795 whose name does not start with the host triplet.  If you think this
5796 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5797 ac_tool_warned=yes ;;
5798 esac
5799     STRIP=$ac_ct_STRIP
5800   fi
5801 else
5802   STRIP="$ac_cv_prog_STRIP"
5803 fi
5804
5805 test -z "$STRIP" && STRIP=:
5806
5807
5808
5809
5810
5811
5812 if test -n "$ac_tool_prefix"; then
5813   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5814 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5817 if test "${ac_cv_prog_RANLIB+set}" = set; then
5818   echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820   if test -n "$RANLIB"; then
5821   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5822 else
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH
5825 do
5826   IFS=$as_save_IFS
5827   test -z "$as_dir" && as_dir=.
5828   for ac_exec_ext in '' $ac_executable_extensions; do
5829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5830     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832     break 2
5833   fi
5834 done
5835 done
5836 IFS=$as_save_IFS
5837
5838 fi
5839 fi
5840 RANLIB=$ac_cv_prog_RANLIB
5841 if test -n "$RANLIB"; then
5842   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5843 echo "${ECHO_T}$RANLIB" >&6; }
5844 else
5845   { echo "$as_me:$LINENO: result: no" >&5
5846 echo "${ECHO_T}no" >&6; }
5847 fi
5848
5849
5850 fi
5851 if test -z "$ac_cv_prog_RANLIB"; then
5852   ac_ct_RANLIB=$RANLIB
5853   # Extract the first word of "ranlib", so it can be a program name with args.
5854 set dummy ranlib; ac_word=$2
5855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5857 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5858   echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860   if test -n "$ac_ct_RANLIB"; then
5861   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866   IFS=$as_save_IFS
5867   test -z "$as_dir" && as_dir=.
5868   for ac_exec_ext in '' $ac_executable_extensions; do
5869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870     ac_cv_prog_ac_ct_RANLIB="ranlib"
5871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872     break 2
5873   fi
5874 done
5875 done
5876 IFS=$as_save_IFS
5877
5878 fi
5879 fi
5880 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5881 if test -n "$ac_ct_RANLIB"; then
5882   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5883 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5884 else
5885   { echo "$as_me:$LINENO: result: no" >&5
5886 echo "${ECHO_T}no" >&6; }
5887 fi
5888
5889   if test "x$ac_ct_RANLIB" = x; then
5890     RANLIB=":"
5891   else
5892     case $cross_compiling:$ac_tool_warned in
5893 yes:)
5894 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5895 whose name does not start with the host triplet.  If you think this
5896 configuration is useful to you, please write to autoconf@gnu.org." >&5
5897 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5898 whose name does not start with the host triplet.  If you think this
5899 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5900 ac_tool_warned=yes ;;
5901 esac
5902     RANLIB=$ac_ct_RANLIB
5903   fi
5904 else
5905   RANLIB="$ac_cv_prog_RANLIB"
5906 fi
5907
5908 test -z "$RANLIB" && RANLIB=:
5909
5910
5911
5912
5913
5914
5915 # Determine commands to create old-style static archives.
5916 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5917 old_postinstall_cmds='chmod 644 $oldlib'
5918 old_postuninstall_cmds=
5919
5920 if test -n "$RANLIB"; then
5921   case $host_os in
5922   openbsd*)
5923     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5924     ;;
5925   *)
5926     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5927     ;;
5928   esac
5929   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5930 fi
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965 # If no C compiler was specified, use CC.
5966 LTCC=${LTCC-"$CC"}
5967
5968 # If no C compiler flags were specified, use CFLAGS.
5969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5970
5971 # Allow CC to be a program name with arguments.
5972 compiler=$CC
5973
5974
5975 # Check for command to grab the raw symbol name followed by C symbol from nm.
5976 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5977 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5978 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5979   echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981
5982 # These are sane defaults that work on at least a few old systems.
5983 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5984
5985 # Character class describing NM global symbol codes.
5986 symcode='[BCDEGRST]'
5987
5988 # Regexp to match symbols that can be accessed directly from C.
5989 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5990
5991 # Define system-specific variables.
5992 case $host_os in
5993 aix*)
5994   symcode='[BCDT]'
5995   ;;
5996 cygwin* | mingw* | pw32*)
5997   symcode='[ABCDGISTW]'
5998   ;;
5999 hpux*)
6000   if test "$host_cpu" = ia64; then
6001     symcode='[ABCDEGRST]'
6002   fi
6003   ;;
6004 irix* | nonstopux*)
6005   symcode='[BCDEGRST]'
6006   ;;
6007 osf*)
6008   symcode='[BCDEGQRST]'
6009   ;;
6010 solaris*)
6011   symcode='[BDRT]'
6012   ;;
6013 sco3.2v5*)
6014   symcode='[DT]'
6015   ;;
6016 sysv4.2uw2*)
6017   symcode='[DT]'
6018   ;;
6019 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6020   symcode='[ABDT]'
6021   ;;
6022 sysv4)
6023   symcode='[DFNSTU]'
6024   ;;
6025 esac
6026
6027 # If we're using GNU nm, then use its standard symbol codes.
6028 case `$NM -V 2>&1` in
6029 *GNU* | *'with BFD'*)
6030   symcode='[ABCDGIRSTW]' ;;
6031 esac
6032
6033 # Transform an extracted symbol line into a proper C declaration.
6034 # Some systems (esp. on ia64) link data and code symbols differently,
6035 # so use this general approach.
6036 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6037
6038 # Transform an extracted symbol line into symbol name and symbol address
6039 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6040 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'"
6041
6042 # Handle CRLF in mingw tool chain
6043 opt_cr=
6044 case $build_os in
6045 mingw*)
6046   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6047   ;;
6048 esac
6049
6050 # Try without a prefix underscore, then with it.
6051 for ac_symprfx in "" "_"; do
6052
6053   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6054   symxfrm="\\1 $ac_symprfx\\2 \\2"
6055
6056   # Write the raw and C identifiers.
6057   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6058     # Fake it for dumpbin and say T for any non-static function
6059     # and D for any global variable.
6060     # Also find C++ and __fastcall symbols from MSVC++,
6061     # which start with @ or ?.
6062     lt_cv_sys_global_symbol_pipe="$AWK '"\
6063 "     {last_section=section; section=\$ 3};"\
6064 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6065 "     \$ 0!~/External *\|/{next};"\
6066 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6067 "     {if(hide[section]) next};"\
6068 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6069 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6070 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6071 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6072 "     ' prfx=^$ac_symprfx"
6073   else
6074     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6075   fi
6076
6077   # Check to see that the pipe works correctly.
6078   pipe_works=no
6079
6080   rm -f conftest*
6081   cat > conftest.$ac_ext <<_LT_EOF
6082 #ifdef __cplusplus
6083 extern "C" {
6084 #endif
6085 char nm_test_var;
6086 void nm_test_func(void);
6087 void nm_test_func(void){}
6088 #ifdef __cplusplus
6089 }
6090 #endif
6091 int main(){nm_test_var='a';nm_test_func();return(0);}
6092 _LT_EOF
6093
6094   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6095   (eval $ac_compile) 2>&5
6096   ac_status=$?
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); }; then
6099     # Now try to grab the symbols.
6100     nlist=conftest.nm
6101     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6102   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6103   ac_status=$?
6104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105   (exit $ac_status); } && test -s "$nlist"; then
6106       # Try sorting and uniquifying the output.
6107       if sort "$nlist" | uniq > "$nlist"T; then
6108         mv -f "$nlist"T "$nlist"
6109       else
6110         rm -f "$nlist"T
6111       fi
6112
6113       # Make sure that we snagged all the symbols we need.
6114       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6115         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6116           cat <<_LT_EOF > conftest.$ac_ext
6117 #ifdef __cplusplus
6118 extern "C" {
6119 #endif
6120
6121 _LT_EOF
6122           # Now generate the symbol file.
6123           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6124
6125           cat <<_LT_EOF >> conftest.$ac_ext
6126
6127 /* The mapping between symbol names and symbols.  */
6128 const struct {
6129   const char *name;
6130   void       *address;
6131 }
6132 lt__PROGRAM__LTX_preloaded_symbols[] =
6133 {
6134   { "@PROGRAM@", (void *) 0 },
6135 _LT_EOF
6136           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6137           cat <<\_LT_EOF >> conftest.$ac_ext
6138   {0, (void *) 0}
6139 };
6140
6141 /* This works around a problem in FreeBSD linker */
6142 #ifdef FREEBSD_WORKAROUND
6143 static const void *lt_preloaded_setup() {
6144   return lt__PROGRAM__LTX_preloaded_symbols;
6145 }
6146 #endif
6147
6148 #ifdef __cplusplus
6149 }
6150 #endif
6151 _LT_EOF
6152           # Now try linking the two files.
6153           mv conftest.$ac_objext conftstm.$ac_objext
6154           lt_save_LIBS="$LIBS"
6155           lt_save_CFLAGS="$CFLAGS"
6156           LIBS="conftstm.$ac_objext"
6157           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6158           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6159   (eval $ac_link) 2>&5
6160   ac_status=$?
6161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6163             pipe_works=yes
6164           fi
6165           LIBS="$lt_save_LIBS"
6166           CFLAGS="$lt_save_CFLAGS"
6167         else
6168           echo "cannot find nm_test_func in $nlist" >&5
6169         fi
6170       else
6171         echo "cannot find nm_test_var in $nlist" >&5
6172       fi
6173     else
6174       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6175     fi
6176   else
6177     echo "$progname: failed program was:" >&5
6178     cat conftest.$ac_ext >&5
6179   fi
6180   rm -rf conftest* conftst*
6181
6182   # Do not use the global_symbol_pipe unless it works.
6183   if test "$pipe_works" = yes; then
6184     break
6185   else
6186     lt_cv_sys_global_symbol_pipe=
6187   fi
6188 done
6189
6190 fi
6191
6192 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6193   lt_cv_sys_global_symbol_to_cdecl=
6194 fi
6195 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6196   { echo "$as_me:$LINENO: result: failed" >&5
6197 echo "${ECHO_T}failed" >&6; }
6198 else
6199   { echo "$as_me:$LINENO: result: ok" >&5
6200 echo "${ECHO_T}ok" >&6; }
6201 fi
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225 # Check whether --enable-libtool-lock was given.
6226 if test "${enable_libtool_lock+set}" = set; then
6227   enableval=$enable_libtool_lock;
6228 fi
6229
6230 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6231
6232 # Some flags need to be propagated to the compiler or linker for good
6233 # libtool support.
6234 case $host in
6235 ia64-*-hpux*)
6236   # Find out which ABI we are using.
6237   echo 'int i;' > conftest.$ac_ext
6238   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6239   (eval $ac_compile) 2>&5
6240   ac_status=$?
6241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242   (exit $ac_status); }; then
6243     case `/usr/bin/file conftest.$ac_objext` in
6244       *ELF-32*)
6245         HPUX_IA64_MODE="32"
6246         ;;
6247       *ELF-64*)
6248         HPUX_IA64_MODE="64"
6249         ;;
6250     esac
6251   fi
6252   rm -rf conftest*
6253   ;;
6254 *-*-irix6*)
6255   # Find out which ABI we are using.
6256   echo '#line 6256 "configure"' > conftest.$ac_ext
6257   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6258   (eval $ac_compile) 2>&5
6259   ac_status=$?
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); }; then
6262     if test "$lt_cv_prog_gnu_ld" = yes; then
6263       case `/usr/bin/file conftest.$ac_objext` in
6264         *32-bit*)
6265           LD="${LD-ld} -melf32bsmip"
6266           ;;
6267         *N32*)
6268           LD="${LD-ld} -melf32bmipn32"
6269           ;;
6270         *64-bit*)
6271           LD="${LD-ld} -melf64bmip"
6272         ;;
6273       esac
6274     else
6275       case `/usr/bin/file conftest.$ac_objext` in
6276         *32-bit*)
6277           LD="${LD-ld} -32"
6278           ;;
6279         *N32*)
6280           LD="${LD-ld} -n32"
6281           ;;
6282         *64-bit*)
6283           LD="${LD-ld} -64"
6284           ;;
6285       esac
6286     fi
6287   fi
6288   rm -rf conftest*
6289   ;;
6290
6291 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6292 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6293   # Find out which ABI we are using.
6294   echo 'int i;' > conftest.$ac_ext
6295   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296   (eval $ac_compile) 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); }; then
6300     case `/usr/bin/file conftest.o` in
6301       *32-bit*)
6302         case $host in
6303           x86_64-*kfreebsd*-gnu)
6304             LD="${LD-ld} -m elf_i386_fbsd"
6305             ;;
6306           x86_64-*linux*)
6307             LD="${LD-ld} -m elf_i386"
6308             ;;
6309           ppc64-*linux*|powerpc64-*linux*)
6310             LD="${LD-ld} -m elf32ppclinux"
6311             ;;
6312           s390x-*linux*)
6313             LD="${LD-ld} -m elf_s390"
6314             ;;
6315           sparc64-*linux*)
6316             LD="${LD-ld} -m elf32_sparc"
6317             ;;
6318         esac
6319         ;;
6320       *64-bit*)
6321         case $host in
6322           x86_64-*kfreebsd*-gnu)
6323             LD="${LD-ld} -m elf_x86_64_fbsd"
6324             ;;
6325           x86_64-*linux*)
6326             LD="${LD-ld} -m elf_x86_64"
6327             ;;
6328           ppc*-*linux*|powerpc*-*linux*)
6329             LD="${LD-ld} -m elf64ppc"
6330             ;;
6331           s390*-*linux*|s390*-*tpf*)
6332             LD="${LD-ld} -m elf64_s390"
6333             ;;
6334           sparc*-*linux*)
6335             LD="${LD-ld} -m elf64_sparc"
6336             ;;
6337         esac
6338         ;;
6339     esac
6340   fi
6341   rm -rf conftest*
6342   ;;
6343
6344 *-*-sco3.2v5*)
6345   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6346   SAVE_CFLAGS="$CFLAGS"
6347   CFLAGS="$CFLAGS -belf"
6348   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6349 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6350 if test "${lt_cv_cc_needs_belf+set}" = set; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353   ac_ext=c
6354 ac_cpp='$CPP $CPPFLAGS'
6355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6358
6359      cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h.  */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h.  */
6365
6366 int
6367 main ()
6368 {
6369
6370   ;
6371   return 0;
6372 }
6373 _ACEOF
6374 rm -f conftest.$ac_objext conftest$ac_exeext
6375 if { (ac_try="$ac_link"
6376 case "(($ac_try" in
6377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378   *) ac_try_echo=$ac_try;;
6379 esac
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381   (eval "$ac_link") 2>conftest.er1
6382   ac_status=$?
6383   grep -v '^ *+' conftest.er1 >conftest.err
6384   rm -f conftest.er1
6385   cat conftest.err >&5
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); } && {
6388          test -z "$ac_c_werror_flag" ||
6389          test ! -s conftest.err
6390        } && test -s conftest$ac_exeext &&
6391        $as_test_x conftest$ac_exeext; then
6392   lt_cv_cc_needs_belf=yes
6393 else
6394   echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6396
6397         lt_cv_cc_needs_belf=no
6398 fi
6399
6400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6401       conftest$ac_exeext conftest.$ac_ext
6402      ac_ext=c
6403 ac_cpp='$CPP $CPPFLAGS'
6404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6407
6408 fi
6409 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6410 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6411   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6412     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6413     CFLAGS="$SAVE_CFLAGS"
6414   fi
6415   ;;
6416 sparc*-*solaris*)
6417   # Find out which ABI we are using.
6418   echo 'int i;' > conftest.$ac_ext
6419   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6420   (eval $ac_compile) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; then
6424     case `/usr/bin/file conftest.o` in
6425     *64-bit*)
6426       case $lt_cv_prog_gnu_ld in
6427       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6428       *)
6429         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6430           LD="${LD-ld} -64"
6431         fi
6432         ;;
6433       esac
6434       ;;
6435     esac
6436   fi
6437   rm -rf conftest*
6438   ;;
6439 esac
6440
6441 need_locks="$enable_libtool_lock"
6442
6443
6444   case $host_os in
6445     rhapsody* | darwin*)
6446     if test -n "$ac_tool_prefix"; then
6447   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6448 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6451 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6452   echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
6454   if test -n "$DSYMUTIL"; then
6455   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460   IFS=$as_save_IFS
6461   test -z "$as_dir" && as_dir=.
6462   for ac_exec_ext in '' $ac_executable_extensions; do
6463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466     break 2
6467   fi
6468 done
6469 done
6470 IFS=$as_save_IFS
6471
6472 fi
6473 fi
6474 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6475 if test -n "$DSYMUTIL"; then
6476   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6477 echo "${ECHO_T}$DSYMUTIL" >&6; }
6478 else
6479   { echo "$as_me:$LINENO: result: no" >&5
6480 echo "${ECHO_T}no" >&6; }
6481 fi
6482
6483
6484 fi
6485 if test -z "$ac_cv_prog_DSYMUTIL"; then
6486   ac_ct_DSYMUTIL=$DSYMUTIL
6487   # Extract the first word of "dsymutil", so it can be a program name with args.
6488 set dummy dsymutil; ac_word=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   if test -n "$ac_ct_DSYMUTIL"; then
6495   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500   IFS=$as_save_IFS
6501   test -z "$as_dir" && as_dir=.
6502   for ac_exec_ext in '' $ac_executable_extensions; do
6503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506     break 2
6507   fi
6508 done
6509 done
6510 IFS=$as_save_IFS
6511
6512 fi
6513 fi
6514 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6515 if test -n "$ac_ct_DSYMUTIL"; then
6516   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6517 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6518 else
6519   { echo "$as_me:$LINENO: result: no" >&5
6520 echo "${ECHO_T}no" >&6; }
6521 fi
6522
6523   if test "x$ac_ct_DSYMUTIL" = x; then
6524     DSYMUTIL=":"
6525   else
6526     case $cross_compiling:$ac_tool_warned in
6527 yes:)
6528 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6529 whose name does not start with the host triplet.  If you think this
6530 configuration is useful to you, please write to autoconf@gnu.org." >&5
6531 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6532 whose name does not start with the host triplet.  If you think this
6533 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6534 ac_tool_warned=yes ;;
6535 esac
6536     DSYMUTIL=$ac_ct_DSYMUTIL
6537   fi
6538 else
6539   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6540 fi
6541
6542     if test -n "$ac_tool_prefix"; then
6543   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6544 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550   if test -n "$NMEDIT"; then
6551   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556   IFS=$as_save_IFS
6557   test -z "$as_dir" && as_dir=.
6558   for ac_exec_ext in '' $ac_executable_extensions; do
6559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6562     break 2
6563   fi
6564 done
6565 done
6566 IFS=$as_save_IFS
6567
6568 fi
6569 fi
6570 NMEDIT=$ac_cv_prog_NMEDIT
6571 if test -n "$NMEDIT"; then
6572   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6573 echo "${ECHO_T}$NMEDIT" >&6; }
6574 else
6575   { echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6; }
6577 fi
6578
6579
6580 fi
6581 if test -z "$ac_cv_prog_NMEDIT"; then
6582   ac_ct_NMEDIT=$NMEDIT
6583   # Extract the first word of "nmedit", so it can be a program name with args.
6584 set dummy nmedit; ac_word=$2
6585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6588   echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590   if test -n "$ac_ct_NMEDIT"; then
6591   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6592 else
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596   IFS=$as_save_IFS
6597   test -z "$as_dir" && as_dir=.
6598   for ac_exec_ext in '' $ac_executable_extensions; do
6599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602     break 2
6603   fi
6604 done
6605 done
6606 IFS=$as_save_IFS
6607
6608 fi
6609 fi
6610 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6611 if test -n "$ac_ct_NMEDIT"; then
6612   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6613 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6614 else
6615   { echo "$as_me:$LINENO: result: no" >&5
6616 echo "${ECHO_T}no" >&6; }
6617 fi
6618
6619   if test "x$ac_ct_NMEDIT" = x; then
6620     NMEDIT=":"
6621   else
6622     case $cross_compiling:$ac_tool_warned in
6623 yes:)
6624 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6625 whose name does not start with the host triplet.  If you think this
6626 configuration is useful to you, please write to autoconf@gnu.org." >&5
6627 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6628 whose name does not start with the host triplet.  If you think this
6629 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6630 ac_tool_warned=yes ;;
6631 esac
6632     NMEDIT=$ac_ct_NMEDIT
6633   fi
6634 else
6635   NMEDIT="$ac_cv_prog_NMEDIT"
6636 fi
6637
6638     if test -n "$ac_tool_prefix"; then
6639   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6640 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643 if test "${ac_cv_prog_LIPO+set}" = set; then
6644   echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646   if test -n "$LIPO"; then
6647   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652   IFS=$as_save_IFS
6653   test -z "$as_dir" && as_dir=.
6654   for ac_exec_ext in '' $ac_executable_extensions; do
6655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658     break 2
6659   fi
6660 done
6661 done
6662 IFS=$as_save_IFS
6663
6664 fi
6665 fi
6666 LIPO=$ac_cv_prog_LIPO
6667 if test -n "$LIPO"; then
6668   { echo "$as_me:$LINENO: result: $LIPO" >&5
6669 echo "${ECHO_T}$LIPO" >&6; }
6670 else
6671   { echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6; }
6673 fi
6674
6675
6676 fi
6677 if test -z "$ac_cv_prog_LIPO"; then
6678   ac_ct_LIPO=$LIPO
6679   # Extract the first word of "lipo", so it can be a program name with args.
6680 set dummy lipo; ac_word=$2
6681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6683 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6684   echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686   if test -n "$ac_ct_LIPO"; then
6687   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692   IFS=$as_save_IFS
6693   test -z "$as_dir" && as_dir=.
6694   for ac_exec_ext in '' $ac_executable_extensions; do
6695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696     ac_cv_prog_ac_ct_LIPO="lipo"
6697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698     break 2
6699   fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6707 if test -n "$ac_ct_LIPO"; then
6708   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6709 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6710 else
6711   { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6713 fi
6714
6715   if test "x$ac_ct_LIPO" = x; then
6716     LIPO=":"
6717   else
6718     case $cross_compiling:$ac_tool_warned in
6719 yes:)
6720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6721 whose name does not start with the host triplet.  If you think this
6722 configuration is useful to you, please write to autoconf@gnu.org." >&5
6723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6724 whose name does not start with the host triplet.  If you think this
6725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6726 ac_tool_warned=yes ;;
6727 esac
6728     LIPO=$ac_ct_LIPO
6729   fi
6730 else
6731   LIPO="$ac_cv_prog_LIPO"
6732 fi
6733
6734     if test -n "$ac_tool_prefix"; then
6735   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6736 set dummy ${ac_tool_prefix}otool; ac_word=$2
6737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739 if test "${ac_cv_prog_OTOOL+set}" = set; then
6740   echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742   if test -n "$OTOOL"; then
6743   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748   IFS=$as_save_IFS
6749   test -z "$as_dir" && as_dir=.
6750   for ac_exec_ext in '' $ac_executable_extensions; do
6751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754     break 2
6755   fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760 fi
6761 fi
6762 OTOOL=$ac_cv_prog_OTOOL
6763 if test -n "$OTOOL"; then
6764   { echo "$as_me:$LINENO: result: $OTOOL" >&5
6765 echo "${ECHO_T}$OTOOL" >&6; }
6766 else
6767   { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6769 fi
6770
6771
6772 fi
6773 if test -z "$ac_cv_prog_OTOOL"; then
6774   ac_ct_OTOOL=$OTOOL
6775   # Extract the first word of "otool", so it can be a program name with args.
6776 set dummy otool; ac_word=$2
6777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6779 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6780   echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782   if test -n "$ac_ct_OTOOL"; then
6783   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6787 do
6788   IFS=$as_save_IFS
6789   test -z "$as_dir" && as_dir=.
6790   for ac_exec_ext in '' $ac_executable_extensions; do
6791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792     ac_cv_prog_ac_ct_OTOOL="otool"
6793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794     break 2
6795   fi
6796 done
6797 done
6798 IFS=$as_save_IFS
6799
6800 fi
6801 fi
6802 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6803 if test -n "$ac_ct_OTOOL"; then
6804   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6805 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6806 else
6807   { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6809 fi
6810
6811   if test "x$ac_ct_OTOOL" = x; then
6812     OTOOL=":"
6813   else
6814     case $cross_compiling:$ac_tool_warned in
6815 yes:)
6816 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6817 whose name does not start with the host triplet.  If you think this
6818 configuration is useful to you, please write to autoconf@gnu.org." >&5
6819 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6820 whose name does not start with the host triplet.  If you think this
6821 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6822 ac_tool_warned=yes ;;
6823 esac
6824     OTOOL=$ac_ct_OTOOL
6825   fi
6826 else
6827   OTOOL="$ac_cv_prog_OTOOL"
6828 fi
6829
6830     if test -n "$ac_tool_prefix"; then
6831   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6832 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6836   echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838   if test -n "$OTOOL64"; then
6839   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844   IFS=$as_save_IFS
6845   test -z "$as_dir" && as_dir=.
6846   for ac_exec_ext in '' $ac_executable_extensions; do
6847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850     break 2
6851   fi
6852 done
6853 done
6854 IFS=$as_save_IFS
6855
6856 fi
6857 fi
6858 OTOOL64=$ac_cv_prog_OTOOL64
6859 if test -n "$OTOOL64"; then
6860   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6861 echo "${ECHO_T}$OTOOL64" >&6; }
6862 else
6863   { echo "$as_me:$LINENO: result: no" >&5
6864 echo "${ECHO_T}no" >&6; }
6865 fi
6866
6867
6868 fi
6869 if test -z "$ac_cv_prog_OTOOL64"; then
6870   ac_ct_OTOOL64=$OTOOL64
6871   # Extract the first word of "otool64", so it can be a program name with args.
6872 set dummy otool64; ac_word=$2
6873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6875 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6876   echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878   if test -n "$ac_ct_OTOOL64"; then
6879   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884   IFS=$as_save_IFS
6885   test -z "$as_dir" && as_dir=.
6886   for ac_exec_ext in '' $ac_executable_extensions; do
6887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888     ac_cv_prog_ac_ct_OTOOL64="otool64"
6889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890     break 2
6891   fi
6892 done
6893 done
6894 IFS=$as_save_IFS
6895
6896 fi
6897 fi
6898 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6899 if test -n "$ac_ct_OTOOL64"; then
6900   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6901 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6902 else
6903   { echo "$as_me:$LINENO: result: no" >&5
6904 echo "${ECHO_T}no" >&6; }
6905 fi
6906
6907   if test "x$ac_ct_OTOOL64" = x; then
6908     OTOOL64=":"
6909   else
6910     case $cross_compiling:$ac_tool_warned in
6911 yes:)
6912 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6913 whose name does not start with the host triplet.  If you think this
6914 configuration is useful to you, please write to autoconf@gnu.org." >&5
6915 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6916 whose name does not start with the host triplet.  If you think this
6917 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6918 ac_tool_warned=yes ;;
6919 esac
6920     OTOOL64=$ac_ct_OTOOL64
6921   fi
6922 else
6923   OTOOL64="$ac_cv_prog_OTOOL64"
6924 fi
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6953 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6954 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6955   echo $ECHO_N "(cached) $ECHO_C" >&6
6956 else
6957   lt_cv_apple_cc_single_mod=no
6958       if test -z "${LT_MULTI_MODULE}"; then
6959         # By default we will add the -single_module flag. You can override
6960         # by either setting the environment variable LT_MULTI_MODULE
6961         # non-empty at configure time, or by adding -multi_module to the
6962         # link flags.
6963         rm -rf libconftest.dylib*
6964         echo "int foo(void){return 1;}" > conftest.c
6965         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6966 -dynamiclib -Wl,-single_module conftest.c" >&5
6967         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6968           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6969         _lt_result=$?
6970         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6971           lt_cv_apple_cc_single_mod=yes
6972         else
6973           cat conftest.err >&5
6974         fi
6975         rm -rf libconftest.dylib*
6976         rm -f conftest.*
6977       fi
6978 fi
6979 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6980 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6981     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6982 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6983 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6984   echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986   lt_cv_ld_exported_symbols_list=no
6987       save_LDFLAGS=$LDFLAGS
6988       echo "_main" > conftest.sym
6989       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6990       cat >conftest.$ac_ext <<_ACEOF
6991 /* confdefs.h.  */
6992 _ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h.  */
6996
6997 int
6998 main ()
6999 {
7000
7001   ;
7002   return 0;
7003 }
7004 _ACEOF
7005 rm -f conftest.$ac_objext conftest$ac_exeext
7006 if { (ac_try="$ac_link"
7007 case "(($ac_try" in
7008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009   *) ac_try_echo=$ac_try;;
7010 esac
7011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7012   (eval "$ac_link") 2>conftest.er1
7013   ac_status=$?
7014   grep -v '^ *+' conftest.er1 >conftest.err
7015   rm -f conftest.er1
7016   cat conftest.err >&5
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); } && {
7019          test -z "$ac_c_werror_flag" ||
7020          test ! -s conftest.err
7021        } && test -s conftest$ac_exeext &&
7022        $as_test_x conftest$ac_exeext; then
7023   lt_cv_ld_exported_symbols_list=yes
7024 else
7025   echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7027
7028         lt_cv_ld_exported_symbols_list=no
7029 fi
7030
7031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7032       conftest$ac_exeext conftest.$ac_ext
7033         LDFLAGS="$save_LDFLAGS"
7034
7035 fi
7036 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7037 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7038     case $host_os in
7039     rhapsody* | darwin1.[012])
7040       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7041     darwin1.*)
7042       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7043     darwin*) # darwin 5.x on
7044       # if running on 10.5 or later, the deployment target defaults
7045       # to the OS version, if on x86, and 10.4, the deployment
7046       # target defaults to 10.4. Don't you love it?
7047       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7048         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7049           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7050         10.[012]*)
7051           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7052         10.*)
7053           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7054       esac
7055     ;;
7056   esac
7057     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7058       _lt_dar_single_mod='$single_module'
7059     fi
7060     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7061       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7062     else
7063       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7064     fi
7065     if test "$DSYMUTIL" != ":"; then
7066       _lt_dsymutil='~$DSYMUTIL $lib || :'
7067     else
7068       _lt_dsymutil=
7069     fi
7070     ;;
7071   esac
7072
7073
7074 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7075 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7076 if test "${ac_cv_header_stdc+set}" = set; then
7077   echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079   cat >conftest.$ac_ext <<_ACEOF
7080 /* confdefs.h.  */
7081 _ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h.  */
7085 #include <stdlib.h>
7086 #include <stdarg.h>
7087 #include <string.h>
7088 #include <float.h>
7089
7090 int
7091 main ()
7092 {
7093
7094   ;
7095   return 0;
7096 }
7097 _ACEOF
7098 rm -f conftest.$ac_objext
7099 if { (ac_try="$ac_compile"
7100 case "(($ac_try" in
7101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7102   *) ac_try_echo=$ac_try;;
7103 esac
7104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7105   (eval "$ac_compile") 2>conftest.er1
7106   ac_status=$?
7107   grep -v '^ *+' conftest.er1 >conftest.err
7108   rm -f conftest.er1
7109   cat conftest.err >&5
7110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111   (exit $ac_status); } && {
7112          test -z "$ac_c_werror_flag" ||
7113          test ! -s conftest.err
7114        } && test -s conftest.$ac_objext; then
7115   ac_cv_header_stdc=yes
7116 else
7117   echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7119
7120         ac_cv_header_stdc=no
7121 fi
7122
7123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7124
7125 if test $ac_cv_header_stdc = yes; then
7126   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7127   cat >conftest.$ac_ext <<_ACEOF
7128 /* confdefs.h.  */
7129 _ACEOF
7130 cat confdefs.h >>conftest.$ac_ext
7131 cat >>conftest.$ac_ext <<_ACEOF
7132 /* end confdefs.h.  */
7133 #include <string.h>
7134
7135 _ACEOF
7136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7137   $EGREP "memchr" >/dev/null 2>&1; then
7138   :
7139 else
7140   ac_cv_header_stdc=no
7141 fi
7142 rm -f conftest*
7143
7144 fi
7145
7146 if test $ac_cv_header_stdc = yes; then
7147   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7148   cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h.  */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h.  */
7154 #include <stdlib.h>
7155
7156 _ACEOF
7157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7158   $EGREP "free" >/dev/null 2>&1; then
7159   :
7160 else
7161   ac_cv_header_stdc=no
7162 fi
7163 rm -f conftest*
7164
7165 fi
7166
7167 if test $ac_cv_header_stdc = yes; then
7168   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7169   if test "$cross_compiling" = yes; then
7170   :
7171 else
7172   cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h.  */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h.  */
7178 #include <ctype.h>
7179 #include <stdlib.h>
7180 #if ((' ' & 0x0FF) == 0x020)
7181 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7182 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7183 #else
7184 # define ISLOWER(c) \
7185                    (('a' <= (c) && (c) <= 'i') \
7186                      || ('j' <= (c) && (c) <= 'r') \
7187                      || ('s' <= (c) && (c) <= 'z'))
7188 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7189 #endif
7190
7191 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7192 int
7193 main ()
7194 {
7195   int i;
7196   for (i = 0; i < 256; i++)
7197     if (XOR (islower (i), ISLOWER (i))
7198         || toupper (i) != TOUPPER (i))
7199       return 2;
7200   return 0;
7201 }
7202 _ACEOF
7203 rm -f conftest$ac_exeext
7204 if { (ac_try="$ac_link"
7205 case "(($ac_try" in
7206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207   *) ac_try_echo=$ac_try;;
7208 esac
7209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210   (eval "$ac_link") 2>&5
7211   ac_status=$?
7212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7214   { (case "(($ac_try" in
7215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216   *) ac_try_echo=$ac_try;;
7217 esac
7218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219   (eval "$ac_try") 2>&5
7220   ac_status=$?
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); }; }; then
7223   :
7224 else
7225   echo "$as_me: program exited with status $ac_status" >&5
7226 echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.$ac_ext >&5
7228
7229 ( exit $ac_status )
7230 ac_cv_header_stdc=no
7231 fi
7232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7233 fi
7234
7235
7236 fi
7237 fi
7238 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7239 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7240 if test $ac_cv_header_stdc = yes; then
7241
7242 cat >>confdefs.h <<\_ACEOF
7243 #define STDC_HEADERS 1
7244 _ACEOF
7245
7246 fi
7247
7248 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7259                   inttypes.h stdint.h unistd.h
7260 do
7261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   cat >conftest.$ac_ext <<_ACEOF
7268 /* confdefs.h.  */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h.  */
7273 $ac_includes_default
7274
7275 #include <$ac_header>
7276 _ACEOF
7277 rm -f conftest.$ac_objext
7278 if { (ac_try="$ac_compile"
7279 case "(($ac_try" in
7280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281   *) ac_try_echo=$ac_try;;
7282 esac
7283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284   (eval "$ac_compile") 2>conftest.er1
7285   ac_status=$?
7286   grep -v '^ *+' conftest.er1 >conftest.err
7287   rm -f conftest.er1
7288   cat conftest.err >&5
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); } && {
7291          test -z "$ac_c_werror_flag" ||
7292          test ! -s conftest.err
7293        } && test -s conftest.$ac_objext; then
7294   eval "$as_ac_Header=yes"
7295 else
7296   echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7298
7299         eval "$as_ac_Header=no"
7300 fi
7301
7302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303 fi
7304 ac_res=`eval echo '${'$as_ac_Header'}'`
7305                { echo "$as_me:$LINENO: result: $ac_res" >&5
7306 echo "${ECHO_T}$ac_res" >&6; }
7307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7308   cat >>confdefs.h <<_ACEOF
7309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7310 _ACEOF
7311
7312 fi
7313
7314 done
7315
7316
7317
7318 for ac_header in dlfcn.h
7319 do
7320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7324   echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326   cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h.  */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h.  */
7332 $ac_includes_default
7333
7334 #include <$ac_header>
7335 _ACEOF
7336 rm -f conftest.$ac_objext
7337 if { (ac_try="$ac_compile"
7338 case "(($ac_try" in
7339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340   *) ac_try_echo=$ac_try;;
7341 esac
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343   (eval "$ac_compile") 2>conftest.er1
7344   ac_status=$?
7345   grep -v '^ *+' conftest.er1 >conftest.err
7346   rm -f conftest.er1
7347   cat conftest.err >&5
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); } && {
7350          test -z "$ac_c_werror_flag" ||
7351          test ! -s conftest.err
7352        } && test -s conftest.$ac_objext; then
7353   eval "$as_ac_Header=yes"
7354 else
7355   echo "$as_me: failed program was:" >&5
7356 sed 's/^/| /' conftest.$ac_ext >&5
7357
7358         eval "$as_ac_Header=no"
7359 fi
7360
7361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7362 fi
7363 ac_res=`eval echo '${'$as_ac_Header'}'`
7364                { echo "$as_me:$LINENO: result: $ac_res" >&5
7365 echo "${ECHO_T}$ac_res" >&6; }
7366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7367   cat >>confdefs.h <<_ACEOF
7368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7369 _ACEOF
7370
7371 fi
7372
7373 done
7374
7375
7376
7377 ac_ext=cpp
7378 ac_cpp='$CXXCPP $CPPFLAGS'
7379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7382 if test -z "$CXX"; then
7383   if test -n "$CCC"; then
7384     CXX=$CCC
7385   else
7386     if test -n "$ac_tool_prefix"; then
7387   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7388   do
7389     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7393 if test "${ac_cv_prog_CXX+set}" = set; then
7394   echo $ECHO_N "(cached) $ECHO_C" >&6
7395 else
7396   if test -n "$CXX"; then
7397   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7398 else
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402   IFS=$as_save_IFS
7403   test -z "$as_dir" && as_dir=.
7404   for ac_exec_ext in '' $ac_executable_extensions; do
7405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408     break 2
7409   fi
7410 done
7411 done
7412 IFS=$as_save_IFS
7413
7414 fi
7415 fi
7416 CXX=$ac_cv_prog_CXX
7417 if test -n "$CXX"; then
7418   { echo "$as_me:$LINENO: result: $CXX" >&5
7419 echo "${ECHO_T}$CXX" >&6; }
7420 else
7421   { echo "$as_me:$LINENO: result: no" >&5
7422 echo "${ECHO_T}no" >&6; }
7423 fi
7424
7425
7426     test -n "$CXX" && break
7427   done
7428 fi
7429 if test -z "$CXX"; then
7430   ac_ct_CXX=$CXX
7431   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7432 do
7433   # Extract the first word of "$ac_prog", so it can be a program name with args.
7434 set dummy $ac_prog; ac_word=$2
7435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7438   echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440   if test -n "$ac_ct_CXX"; then
7441   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446   IFS=$as_save_IFS
7447   test -z "$as_dir" && as_dir=.
7448   for ac_exec_ext in '' $ac_executable_extensions; do
7449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7450     ac_cv_prog_ac_ct_CXX="$ac_prog"
7451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7452     break 2
7453   fi
7454 done
7455 done
7456 IFS=$as_save_IFS
7457
7458 fi
7459 fi
7460 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7461 if test -n "$ac_ct_CXX"; then
7462   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7463 echo "${ECHO_T}$ac_ct_CXX" >&6; }
7464 else
7465   { echo "$as_me:$LINENO: result: no" >&5
7466 echo "${ECHO_T}no" >&6; }
7467 fi
7468
7469
7470   test -n "$ac_ct_CXX" && break
7471 done
7472
7473   if test "x$ac_ct_CXX" = x; then
7474     CXX="g++"
7475   else
7476     case $cross_compiling:$ac_tool_warned in
7477 yes:)
7478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7479 whose name does not start with the host triplet.  If you think this
7480 configuration is useful to you, please write to autoconf@gnu.org." >&5
7481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7482 whose name does not start with the host triplet.  If you think this
7483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7484 ac_tool_warned=yes ;;
7485 esac
7486     CXX=$ac_ct_CXX
7487   fi
7488 fi
7489
7490   fi
7491 fi
7492 # Provide some information about the compiler.
7493 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7494 ac_compiler=`set X $ac_compile; echo $2`
7495 { (ac_try="$ac_compiler --version >&5"
7496 case "(($ac_try" in
7497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7498   *) ac_try_echo=$ac_try;;
7499 esac
7500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7501   (eval "$ac_compiler --version >&5") 2>&5
7502   ac_status=$?
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); }
7505 { (ac_try="$ac_compiler -v >&5"
7506 case "(($ac_try" in
7507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508   *) ac_try_echo=$ac_try;;
7509 esac
7510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7511   (eval "$ac_compiler -v >&5") 2>&5
7512   ac_status=$?
7513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514   (exit $ac_status); }
7515 { (ac_try="$ac_compiler -V >&5"
7516 case "(($ac_try" in
7517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518   *) ac_try_echo=$ac_try;;
7519 esac
7520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7521   (eval "$ac_compiler -V >&5") 2>&5
7522   ac_status=$?
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   (exit $ac_status); }
7525
7526 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7527 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
7528 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7529   echo $ECHO_N "(cached) $ECHO_C" >&6
7530 else
7531   cat >conftest.$ac_ext <<_ACEOF
7532 /* confdefs.h.  */
7533 _ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h.  */
7537
7538 int
7539 main ()
7540 {
7541 #ifndef __GNUC__
7542        choke me
7543 #endif
7544
7545   ;
7546   return 0;
7547 }
7548 _ACEOF
7549 rm -f conftest.$ac_objext
7550 if { (ac_try="$ac_compile"
7551 case "(($ac_try" in
7552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7553   *) ac_try_echo=$ac_try;;
7554 esac
7555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7556   (eval "$ac_compile") 2>conftest.er1
7557   ac_status=$?
7558   grep -v '^ *+' conftest.er1 >conftest.err
7559   rm -f conftest.er1
7560   cat conftest.err >&5
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); } && {
7563          test -z "$ac_cxx_werror_flag" ||
7564          test ! -s conftest.err
7565        } && test -s conftest.$ac_objext; then
7566   ac_compiler_gnu=yes
7567 else
7568   echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7570
7571         ac_compiler_gnu=no
7572 fi
7573
7574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7576
7577 fi
7578 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7579 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
7580 GXX=`test $ac_compiler_gnu = yes && echo yes`
7581 ac_test_CXXFLAGS=${CXXFLAGS+set}
7582 ac_save_CXXFLAGS=$CXXFLAGS
7583 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7584 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
7585 if test "${ac_cv_prog_cxx_g+set}" = set; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7589    ac_cxx_werror_flag=yes
7590    ac_cv_prog_cxx_g=no
7591    CXXFLAGS="-g"
7592    cat >conftest.$ac_ext <<_ACEOF
7593 /* confdefs.h.  */
7594 _ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h.  */
7598
7599 int
7600 main ()
7601 {
7602
7603   ;
7604   return 0;
7605 }
7606 _ACEOF
7607 rm -f conftest.$ac_objext
7608 if { (ac_try="$ac_compile"
7609 case "(($ac_try" in
7610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611   *) ac_try_echo=$ac_try;;
7612 esac
7613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7614   (eval "$ac_compile") 2>conftest.er1
7615   ac_status=$?
7616   grep -v '^ *+' conftest.er1 >conftest.err
7617   rm -f conftest.er1
7618   cat conftest.err >&5
7619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620   (exit $ac_status); } && {
7621          test -z "$ac_cxx_werror_flag" ||
7622          test ! -s conftest.err
7623        } && test -s conftest.$ac_objext; then
7624   ac_cv_prog_cxx_g=yes
7625 else
7626   echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7628
7629         CXXFLAGS=""
7630       cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h.  */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h.  */
7636
7637 int
7638 main ()
7639 {
7640
7641   ;
7642   return 0;
7643 }
7644 _ACEOF
7645 rm -f conftest.$ac_objext
7646 if { (ac_try="$ac_compile"
7647 case "(($ac_try" in
7648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7649   *) ac_try_echo=$ac_try;;
7650 esac
7651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7652   (eval "$ac_compile") 2>conftest.er1
7653   ac_status=$?
7654   grep -v '^ *+' conftest.er1 >conftest.err
7655   rm -f conftest.er1
7656   cat conftest.err >&5
7657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658   (exit $ac_status); } && {
7659          test -z "$ac_cxx_werror_flag" ||
7660          test ! -s conftest.err
7661        } && test -s conftest.$ac_objext; then
7662   :
7663 else
7664   echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.$ac_ext >&5
7666
7667         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7668          CXXFLAGS="-g"
7669          cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h.  */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h.  */
7675
7676 int
7677 main ()
7678 {
7679
7680   ;
7681   return 0;
7682 }
7683 _ACEOF
7684 rm -f conftest.$ac_objext
7685 if { (ac_try="$ac_compile"
7686 case "(($ac_try" in
7687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7688   *) ac_try_echo=$ac_try;;
7689 esac
7690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7691   (eval "$ac_compile") 2>conftest.er1
7692   ac_status=$?
7693   grep -v '^ *+' conftest.er1 >conftest.err
7694   rm -f conftest.er1
7695   cat conftest.err >&5
7696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697   (exit $ac_status); } && {
7698          test -z "$ac_cxx_werror_flag" ||
7699          test ! -s conftest.err
7700        } && test -s conftest.$ac_objext; then
7701   ac_cv_prog_cxx_g=yes
7702 else
7703   echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7705
7706
7707 fi
7708
7709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7710 fi
7711
7712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7713 fi
7714
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7717 fi
7718 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7719 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
7720 if test "$ac_test_CXXFLAGS" = set; then
7721   CXXFLAGS=$ac_save_CXXFLAGS
7722 elif test $ac_cv_prog_cxx_g = yes; then
7723   if test "$GXX" = yes; then
7724     CXXFLAGS="-g -O2"
7725   else
7726     CXXFLAGS="-g"
7727   fi
7728 else
7729   if test "$GXX" = yes; then
7730     CXXFLAGS="-O2"
7731   else
7732     CXXFLAGS=
7733   fi
7734 fi
7735 ac_ext=c
7736 ac_cpp='$CPP $CPPFLAGS'
7737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7740
7741 depcc="$CXX"  am_compiler_list=
7742
7743 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7744 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
7745 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7749   # We make a subdir and do the tests there.  Otherwise we can end up
7750   # making bogus files that we don't know about and never remove.  For
7751   # instance it was reported that on HP-UX the gcc test will end up
7752   # making a dummy file named `D' -- because `-MD' means `put the output
7753   # in D'.
7754   mkdir conftest.dir
7755   # Copy depcomp to subdir because otherwise we won't find it if we're
7756   # using a relative directory.
7757   cp "$am_depcomp" conftest.dir
7758   cd conftest.dir
7759   # We will build objects and dependencies in a subdirectory because
7760   # it helps to detect inapplicable dependency modes.  For instance
7761   # both Tru64's cc and ICC support -MD to output dependencies as a
7762   # side effect of compilation, but ICC will put the dependencies in
7763   # the current directory while Tru64 will put them in the object
7764   # directory.
7765   mkdir sub
7766
7767   am_cv_CXX_dependencies_compiler_type=none
7768   if test "$am_compiler_list" = ""; then
7769      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7770   fi
7771   for depmode in $am_compiler_list; do
7772     # Setup a source with many dependencies, because some compilers
7773     # like to wrap large dependency lists on column 80 (with \), and
7774     # we should not choose a depcomp mode which is confused by this.
7775     #
7776     # We need to recreate these files for each test, as the compiler may
7777     # overwrite some of them when testing with obscure command lines.
7778     # This happens at least with the AIX C compiler.
7779     : > sub/conftest.c
7780     for i in 1 2 3 4 5 6; do
7781       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7782       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7783       # Solaris 8's {/usr,}/bin/sh.
7784       touch sub/conftst$i.h
7785     done
7786     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7787
7788     case $depmode in
7789     nosideeffect)
7790       # after this tag, mechanisms are not by side-effect, so they'll
7791       # only be used when explicitly requested
7792       if test "x$enable_dependency_tracking" = xyes; then
7793         continue
7794       else
7795         break
7796       fi
7797       ;;
7798     none) break ;;
7799     esac
7800     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7801     # mode.  It turns out that the SunPro C++ compiler does not properly
7802     # handle `-M -o', and we need to detect this.
7803     if depmode=$depmode \
7804        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7805        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7806        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7807          >/dev/null 2>conftest.err &&
7808        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7809        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7810        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7811        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7812       # icc doesn't choke on unknown options, it will just issue warnings
7813       # or remarks (even with -Werror).  So we grep stderr for any message
7814       # that says an option was ignored or not supported.
7815       # When given -MP, icc 7.0 and 7.1 complain thusly:
7816       #   icc: Command line warning: ignoring option '-M'; no argument required
7817       # The diagnosis changed in icc 8.0:
7818       #   icc: Command line remark: option '-MP' not supported
7819       if (grep 'ignoring option' conftest.err ||
7820           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7821         am_cv_CXX_dependencies_compiler_type=$depmode
7822         break
7823       fi
7824     fi
7825   done
7826
7827   cd ..
7828   rm -rf conftest.dir
7829 else
7830   am_cv_CXX_dependencies_compiler_type=none
7831 fi
7832
7833 fi
7834 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7835 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
7836 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7837
7838  if
7839   test "x$enable_dependency_tracking" != xno \
7840   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7841   am__fastdepCXX_TRUE=
7842   am__fastdepCXX_FALSE='#'
7843 else
7844   am__fastdepCXX_TRUE='#'
7845   am__fastdepCXX_FALSE=
7846 fi
7847
7848
7849 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7850     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7851     (test "X$CXX" != "Xg++"))) ; then
7852   ac_ext=cpp
7853 ac_cpp='$CXXCPP $CPPFLAGS'
7854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7857 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7858 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7859 if test -z "$CXXCPP"; then
7860   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7861   echo $ECHO_N "(cached) $ECHO_C" >&6
7862 else
7863       # Double quotes because CXXCPP needs to be expanded
7864     for CXXCPP in "$CXX -E" "/lib/cpp"
7865     do
7866       ac_preproc_ok=false
7867 for ac_cxx_preproc_warn_flag in '' yes
7868 do
7869   # Use a header file that comes with gcc, so configuring glibc
7870   # with a fresh cross-compiler works.
7871   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7872   # <limits.h> exists even on freestanding compilers.
7873   # On the NeXT, cc -E runs the code through the compiler's parser,
7874   # not just through cpp. "Syntax error" is here to catch this case.
7875   cat >conftest.$ac_ext <<_ACEOF
7876 /* confdefs.h.  */
7877 _ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h.  */
7881 #ifdef __STDC__
7882 # include <limits.h>
7883 #else
7884 # include <assert.h>
7885 #endif
7886                      Syntax error
7887 _ACEOF
7888 if { (ac_try="$ac_cpp conftest.$ac_ext"
7889 case "(($ac_try" in
7890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891   *) ac_try_echo=$ac_try;;
7892 esac
7893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7894   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7895   ac_status=$?
7896   grep -v '^ *+' conftest.er1 >conftest.err
7897   rm -f conftest.er1
7898   cat conftest.err >&5
7899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900   (exit $ac_status); } >/dev/null && {
7901          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7902          test ! -s conftest.err
7903        }; then
7904   :
7905 else
7906   echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7908
7909   # Broken: fails on valid input.
7910 continue
7911 fi
7912
7913 rm -f conftest.err conftest.$ac_ext
7914
7915   # OK, works on sane cases.  Now check whether nonexistent headers
7916   # can be detected and how.
7917   cat >conftest.$ac_ext <<_ACEOF
7918 /* confdefs.h.  */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h.  */
7923 #include <ac_nonexistent.h>
7924 _ACEOF
7925 if { (ac_try="$ac_cpp conftest.$ac_ext"
7926 case "(($ac_try" in
7927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928   *) ac_try_echo=$ac_try;;
7929 esac
7930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7932   ac_status=$?
7933   grep -v '^ *+' conftest.er1 >conftest.err
7934   rm -f conftest.er1
7935   cat conftest.err >&5
7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); } >/dev/null && {
7938          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7939          test ! -s conftest.err
7940        }; then
7941   # Broken: success on invalid input.
7942 continue
7943 else
7944   echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7946
7947   # Passes both tests.
7948 ac_preproc_ok=:
7949 break
7950 fi
7951
7952 rm -f conftest.err conftest.$ac_ext
7953
7954 done
7955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7956 rm -f conftest.err conftest.$ac_ext
7957 if $ac_preproc_ok; then
7958   break
7959 fi
7960
7961     done
7962     ac_cv_prog_CXXCPP=$CXXCPP
7963
7964 fi
7965   CXXCPP=$ac_cv_prog_CXXCPP
7966 else
7967   ac_cv_prog_CXXCPP=$CXXCPP
7968 fi
7969 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7970 echo "${ECHO_T}$CXXCPP" >&6; }
7971 ac_preproc_ok=false
7972 for ac_cxx_preproc_warn_flag in '' yes
7973 do
7974   # Use a header file that comes with gcc, so configuring glibc
7975   # with a fresh cross-compiler works.
7976   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7977   # <limits.h> exists even on freestanding compilers.
7978   # On the NeXT, cc -E runs the code through the compiler's parser,
7979   # not just through cpp. "Syntax error" is here to catch this case.
7980   cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h.  */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h.  */
7986 #ifdef __STDC__
7987 # include <limits.h>
7988 #else
7989 # include <assert.h>
7990 #endif
7991                      Syntax error
7992 _ACEOF
7993 if { (ac_try="$ac_cpp conftest.$ac_ext"
7994 case "(($ac_try" in
7995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996   *) ac_try_echo=$ac_try;;
7997 esac
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8000   ac_status=$?
8001   grep -v '^ *+' conftest.er1 >conftest.err
8002   rm -f conftest.er1
8003   cat conftest.err >&5
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); } >/dev/null && {
8006          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8007          test ! -s conftest.err
8008        }; then
8009   :
8010 else
8011   echo "$as_me: failed program was:" >&5
8012 sed 's/^/| /' conftest.$ac_ext >&5
8013
8014   # Broken: fails on valid input.
8015 continue
8016 fi
8017
8018 rm -f conftest.err conftest.$ac_ext
8019
8020   # OK, works on sane cases.  Now check whether nonexistent headers
8021   # can be detected and how.
8022   cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h.  */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h.  */
8028 #include <ac_nonexistent.h>
8029 _ACEOF
8030 if { (ac_try="$ac_cpp conftest.$ac_ext"
8031 case "(($ac_try" in
8032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033   *) ac_try_echo=$ac_try;;
8034 esac
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8037   ac_status=$?
8038   grep -v '^ *+' conftest.er1 >conftest.err
8039   rm -f conftest.er1
8040   cat conftest.err >&5
8041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042   (exit $ac_status); } >/dev/null && {
8043          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8044          test ! -s conftest.err
8045        }; then
8046   # Broken: success on invalid input.
8047 continue
8048 else
8049   echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8051
8052   # Passes both tests.
8053 ac_preproc_ok=:
8054 break
8055 fi
8056
8057 rm -f conftest.err conftest.$ac_ext
8058
8059 done
8060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8061 rm -f conftest.err conftest.$ac_ext
8062 if $ac_preproc_ok; then
8063   :
8064 else
8065   _lt_caught_CXX_error=yes
8066 fi
8067
8068 ac_ext=c
8069 ac_cpp='$CPP $CPPFLAGS'
8070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8073
8074 else
8075   _lt_caught_CXX_error=yes
8076 fi
8077
8078
8079
8080
8081
8082 # Set options
8083
8084
8085
8086         enable_dlopen=no
8087
8088
8089   enable_win32_dll=no
8090
8091
8092             # Check whether --enable-shared was given.
8093 if test "${enable_shared+set}" = set; then
8094   enableval=$enable_shared; p=${PACKAGE-default}
8095     case $enableval in
8096     yes) enable_shared=yes ;;
8097     no) enable_shared=no ;;
8098     *)
8099       enable_shared=no
8100       # Look at the argument we got.  We use all the common list separators.
8101       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8102       for pkg in $enableval; do
8103         IFS="$lt_save_ifs"
8104         if test "X$pkg" = "X$p"; then
8105           enable_shared=yes
8106         fi
8107       done
8108       IFS="$lt_save_ifs"
8109       ;;
8110     esac
8111 else
8112   enable_shared=yes
8113 fi
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123   # Check whether --enable-static was given.
8124 if test "${enable_static+set}" = set; then
8125   enableval=$enable_static; p=${PACKAGE-default}
8126     case $enableval in
8127     yes) enable_static=yes ;;
8128     no) enable_static=no ;;
8129     *)
8130      enable_static=no
8131       # Look at the argument we got.  We use all the common list separators.
8132       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8133       for pkg in $enableval; do
8134         IFS="$lt_save_ifs"
8135         if test "X$pkg" = "X$p"; then
8136           enable_static=yes
8137         fi
8138       done
8139       IFS="$lt_save_ifs"
8140       ;;
8141     esac
8142 else
8143   enable_static=yes
8144 fi
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155 # Check whether --with-pic was given.
8156 if test "${with_pic+set}" = set; then
8157   withval=$with_pic; pic_mode="$withval"
8158 else
8159   pic_mode=default
8160 fi
8161
8162
8163 test -z "$pic_mode" && pic_mode=default
8164
8165
8166
8167
8168
8169
8170
8171   # Check whether --enable-fast-install was given.
8172 if test "${enable_fast_install+set}" = set; then
8173   enableval=$enable_fast_install; p=${PACKAGE-default}
8174     case $enableval in
8175     yes) enable_fast_install=yes ;;
8176     no) enable_fast_install=no ;;
8177     *)
8178       enable_fast_install=no
8179       # Look at the argument we got.  We use all the common list separators.
8180       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8181       for pkg in $enableval; do
8182         IFS="$lt_save_ifs"
8183         if test "X$pkg" = "X$p"; then
8184           enable_fast_install=yes
8185         fi
8186       done
8187       IFS="$lt_save_ifs"
8188       ;;
8189     esac
8190 else
8191   enable_fast_install=yes
8192 fi
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204 # This can be used to rebuild libtool when needed
8205 LIBTOOL_DEPS="$ltmain"
8206
8207 # Always use our own libtool.
8208 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234 test -z "$LN_S" && LN_S="ln -s"
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249 if test -n "${ZSH_VERSION+set}" ; then
8250    setopt NO_GLOB_SUBST
8251 fi
8252
8253 { echo "$as_me:$LINENO: checking for objdir" >&5
8254 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8255 if test "${lt_cv_objdir+set}" = set; then
8256   echo $ECHO_N "(cached) $ECHO_C" >&6
8257 else
8258   rm -f .libs 2>/dev/null
8259 mkdir .libs 2>/dev/null
8260 if test -d .libs; then
8261   lt_cv_objdir=.libs
8262 else
8263   # MS-DOS does not allow filenames that begin with a dot.
8264   lt_cv_objdir=_libs
8265 fi
8266 rmdir .libs 2>/dev/null
8267 fi
8268 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8269 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8270 objdir=$lt_cv_objdir
8271
8272
8273
8274
8275
8276 cat >>confdefs.h <<_ACEOF
8277 #define LT_OBJDIR "$lt_cv_objdir/"
8278 _ACEOF
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296 case $host_os in
8297 aix3*)
8298   # AIX sometimes has problems with the GCC collect2 program.  For some
8299   # reason, if we set the COLLECT_NAMES environment variable, the problems
8300   # vanish in a puff of smoke.
8301   if test "X${COLLECT_NAMES+set}" != Xset; then
8302     COLLECT_NAMES=
8303     export COLLECT_NAMES
8304   fi
8305   ;;
8306 esac
8307
8308 # Sed substitution that helps us do robust quoting.  It backslashifies
8309 # metacharacters that are still active within double-quoted strings.
8310 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8311
8312 # Same as above, but do not quote variable references.
8313 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8314
8315 # Sed substitution to delay expansion of an escaped shell variable in a
8316 # double_quote_subst'ed string.
8317 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8318
8319 # Sed substitution to delay expansion of an escaped single quote.
8320 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8321
8322 # Sed substitution to avoid accidental globbing in evaled expressions
8323 no_glob_subst='s/\*/\\\*/g'
8324
8325 # Global variables:
8326 ofile=libtool
8327 can_build_shared=yes
8328
8329 # All known linkers require a `.a' archive for static linking (except MSVC,
8330 # which needs '.lib').
8331 libext=a
8332
8333 with_gnu_ld="$lt_cv_prog_gnu_ld"
8334
8335 old_CC="$CC"
8336 old_CFLAGS="$CFLAGS"
8337
8338 # Set sane defaults for various variables
8339 test -z "$CC" && CC=cc
8340 test -z "$LTCC" && LTCC=$CC
8341 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8342 test -z "$LD" && LD=ld
8343 test -z "$ac_objext" && ac_objext=o
8344
8345 for cc_temp in $compiler""; do
8346   case $cc_temp in
8347     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8348     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8349     \-*) ;;
8350     *) break;;
8351   esac
8352 done
8353 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8354
8355
8356 # Only perform the check for file, if the check method requires it
8357 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8358 case $deplibs_check_method in
8359 file_magic*)
8360   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8361     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8362 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8363 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8364   echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366   case $MAGIC_CMD in
8367 [\\/*] |  ?:[\\/]*)
8368   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8369   ;;
8370 *)
8371   lt_save_MAGIC_CMD="$MAGIC_CMD"
8372   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8373   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8374   for ac_dir in $ac_dummy; do
8375     IFS="$lt_save_ifs"
8376     test -z "$ac_dir" && ac_dir=.
8377     if test -f $ac_dir/${ac_tool_prefix}file; then
8378       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8379       if test -n "$file_magic_test_file"; then
8380         case $deplibs_check_method in
8381         "file_magic "*)
8382           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8383           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8384           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8385             $EGREP "$file_magic_regex" > /dev/null; then
8386             :
8387           else
8388             cat <<_LT_EOF 1>&2
8389
8390 *** Warning: the command libtool uses to detect shared libraries,
8391 *** $file_magic_cmd, produces output that libtool cannot recognize.
8392 *** The result is that libtool may fail to recognize shared libraries
8393 *** as such.  This will affect the creation of libtool libraries that
8394 *** depend on shared libraries, but programs linked with such libtool
8395 *** libraries will work regardless of this problem.  Nevertheless, you
8396 *** may want to report the problem to your system manager and/or to
8397 *** bug-libtool@gnu.org
8398
8399 _LT_EOF
8400           fi ;;
8401         esac
8402       fi
8403       break
8404     fi
8405   done
8406   IFS="$lt_save_ifs"
8407   MAGIC_CMD="$lt_save_MAGIC_CMD"
8408   ;;
8409 esac
8410 fi
8411
8412 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8413 if test -n "$MAGIC_CMD"; then
8414   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8415 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8416 else
8417   { echo "$as_me:$LINENO: result: no" >&5
8418 echo "${ECHO_T}no" >&6; }
8419 fi
8420
8421
8422
8423
8424
8425 if test -z "$lt_cv_path_MAGIC_CMD"; then
8426   if test -n "$ac_tool_prefix"; then
8427     { echo "$as_me:$LINENO: checking for file" >&5
8428 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8429 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8430   echo $ECHO_N "(cached) $ECHO_C" >&6
8431 else
8432   case $MAGIC_CMD in
8433 [\\/*] |  ?:[\\/]*)
8434   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8435   ;;
8436 *)
8437   lt_save_MAGIC_CMD="$MAGIC_CMD"
8438   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8439   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8440   for ac_dir in $ac_dummy; do
8441     IFS="$lt_save_ifs"
8442     test -z "$ac_dir" && ac_dir=.
8443     if test -f $ac_dir/file; then
8444       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8445       if test -n "$file_magic_test_file"; then
8446         case $deplibs_check_method in
8447         "file_magic "*)
8448           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8449           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8450           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8451             $EGREP "$file_magic_regex" > /dev/null; then
8452             :
8453           else
8454             cat <<_LT_EOF 1>&2
8455
8456 *** Warning: the command libtool uses to detect shared libraries,
8457 *** $file_magic_cmd, produces output that libtool cannot recognize.
8458 *** The result is that libtool may fail to recognize shared libraries
8459 *** as such.  This will affect the creation of libtool libraries that
8460 *** depend on shared libraries, but programs linked with such libtool
8461 *** libraries will work regardless of this problem.  Nevertheless, you
8462 *** may want to report the problem to your system manager and/or to
8463 *** bug-libtool@gnu.org
8464
8465 _LT_EOF
8466           fi ;;
8467         esac
8468       fi
8469       break
8470     fi
8471   done
8472   IFS="$lt_save_ifs"
8473   MAGIC_CMD="$lt_save_MAGIC_CMD"
8474   ;;
8475 esac
8476 fi
8477
8478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8479 if test -n "$MAGIC_CMD"; then
8480   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8481 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8482 else
8483   { echo "$as_me:$LINENO: result: no" >&5
8484 echo "${ECHO_T}no" >&6; }
8485 fi
8486
8487
8488   else
8489     MAGIC_CMD=:
8490   fi
8491 fi
8492
8493   fi
8494   ;;
8495 esac
8496
8497 # Use C for the default configuration in the libtool script
8498
8499 lt_save_CC="$CC"
8500 ac_ext=c
8501 ac_cpp='$CPP $CPPFLAGS'
8502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8505
8506
8507 # Source file extension for C test sources.
8508 ac_ext=c
8509
8510 # Object file extension for compiled C test sources.
8511 objext=o
8512 objext=$objext
8513
8514 # Code to be used in simple compile tests
8515 lt_simple_compile_test_code="int some_variable = 0;"
8516
8517 # Code to be used in simple link tests
8518 lt_simple_link_test_code='int main(){return(0);}'
8519
8520
8521
8522
8523
8524
8525
8526 # If no C compiler was specified, use CC.
8527 LTCC=${LTCC-"$CC"}
8528
8529 # If no C compiler flags were specified, use CFLAGS.
8530 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8531
8532 # Allow CC to be a program name with arguments.
8533 compiler=$CC
8534
8535 # Save the default compiler, since it gets overwritten when the other
8536 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8537 compiler_DEFAULT=$CC
8538
8539 # save warnings/boilerplate of simple test code
8540 ac_outfile=conftest.$ac_objext
8541 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8542 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8543 _lt_compiler_boilerplate=`cat conftest.err`
8544 $RM conftest*
8545
8546 ac_outfile=conftest.$ac_objext
8547 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8548 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8549 _lt_linker_boilerplate=`cat conftest.err`
8550 $RM -r conftest*
8551
8552
8553 if test -n "$compiler"; then
8554
8555 lt_prog_compiler_no_builtin_flag=
8556
8557 if test "$GCC" = yes; then
8558   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8559
8560   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8561 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8562 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8563   echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565   lt_cv_prog_compiler_rtti_exceptions=no
8566    ac_outfile=conftest.$ac_objext
8567    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8568    lt_compiler_flag="-fno-rtti -fno-exceptions"
8569    # Insert the option either (1) after the last *FLAGS variable, or
8570    # (2) before a word containing "conftest.", or (3) at the end.
8571    # Note that $ac_compile itself does not contain backslashes and begins
8572    # with a dollar sign (not a hyphen), so the echo should work correctly.
8573    # The option is referenced via a variable to avoid confusing sed.
8574    lt_compile=`echo "$ac_compile" | $SED \
8575    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8576    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8577    -e 's:$: $lt_compiler_flag:'`
8578    (eval echo "\"\$as_me:8578: $lt_compile\"" >&5)
8579    (eval "$lt_compile" 2>conftest.err)
8580    ac_status=$?
8581    cat conftest.err >&5
8582    echo "$as_me:8582: \$? = $ac_status" >&5
8583    if (exit $ac_status) && test -s "$ac_outfile"; then
8584      # The compiler can only warn and ignore the option if not recognized
8585      # So say no if there are warnings other than the usual output.
8586      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8587      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8588      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8589        lt_cv_prog_compiler_rtti_exceptions=yes
8590      fi
8591    fi
8592    $RM conftest*
8593
8594 fi
8595 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8596 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8597
8598 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8599     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8600 else
8601     :
8602 fi
8603
8604 fi
8605
8606
8607
8608
8609
8610
8611   lt_prog_compiler_wl=
8612 lt_prog_compiler_pic=
8613 lt_prog_compiler_static=
8614
8615 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8616 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8617
8618   if test "$GCC" = yes; then
8619     lt_prog_compiler_wl='-Wl,'
8620     lt_prog_compiler_static='-static'
8621
8622     case $host_os in
8623       aix*)
8624       # All AIX code is PIC.
8625       if test "$host_cpu" = ia64; then
8626         # AIX 5 now supports IA64 processor
8627         lt_prog_compiler_static='-Bstatic'
8628       fi
8629       ;;
8630
8631     amigaos*)
8632       case $host_cpu in
8633       powerpc)
8634             # see comment about AmigaOS4 .so support
8635             lt_prog_compiler_pic='-fPIC'
8636         ;;
8637       m68k)
8638             # FIXME: we need at least 68020 code to build shared libraries, but
8639             # adding the `-m68020' flag to GCC prevents building anything better,
8640             # like `-m68040'.
8641             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8642         ;;
8643       esac
8644       ;;
8645
8646     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8647       # PIC is the default for these OSes.
8648       ;;
8649
8650     mingw* | cygwin* | pw32* | os2*)
8651       # This hack is so that the source file can tell whether it is being
8652       # built for inclusion in a dll (and should export symbols for example).
8653       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8654       # (--disable-auto-import) libraries
8655       lt_prog_compiler_pic='-DDLL_EXPORT'
8656       ;;
8657
8658     darwin* | rhapsody*)
8659       # PIC is the default on this platform
8660       # Common symbols not allowed in MH_DYLIB files
8661       lt_prog_compiler_pic='-fno-common'
8662       ;;
8663
8664     hpux*)
8665       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8666       # not for PA HP-UX.
8667       case $host_cpu in
8668       hppa*64*|ia64*)
8669         # +Z the default
8670         ;;
8671       *)
8672         lt_prog_compiler_pic='-fPIC'
8673         ;;
8674       esac
8675       ;;
8676
8677     interix[3-9]*)
8678       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8679       # Instead, we relocate shared libraries at runtime.
8680       ;;
8681
8682     msdosdjgpp*)
8683       # Just because we use GCC doesn't mean we suddenly get shared libraries
8684       # on systems that don't support them.
8685       lt_prog_compiler_can_build_shared=no
8686       enable_shared=no
8687       ;;
8688
8689     *nto* | *qnx*)
8690       # QNX uses GNU C++, but need to define -shared option too, otherwise
8691       # it will coredump.
8692       lt_prog_compiler_pic='-fPIC -shared'
8693       ;;
8694
8695     sysv4*MP*)
8696       if test -d /usr/nec; then
8697         lt_prog_compiler_pic=-Kconform_pic
8698       fi
8699       ;;
8700
8701     *)
8702       lt_prog_compiler_pic='-fPIC'
8703       ;;
8704     esac
8705   else
8706     # PORTME Check for flag to pass linker flags through the system compiler.
8707     case $host_os in
8708     aix*)
8709       lt_prog_compiler_wl='-Wl,'
8710       if test "$host_cpu" = ia64; then
8711         # AIX 5 now supports IA64 processor
8712         lt_prog_compiler_static='-Bstatic'
8713       else
8714         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8715       fi
8716       ;;
8717
8718     mingw* | cygwin* | pw32* | os2*)
8719       # This hack is so that the source file can tell whether it is being
8720       # built for inclusion in a dll (and should export symbols for example).
8721       lt_prog_compiler_pic='-DDLL_EXPORT'
8722       ;;
8723
8724     hpux9* | hpux10* | hpux11*)
8725       lt_prog_compiler_wl='-Wl,'
8726       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8727       # not for PA HP-UX.
8728       case $host_cpu in
8729       hppa*64*|ia64*)
8730         # +Z the default
8731         ;;
8732       *)
8733         lt_prog_compiler_pic='+Z'
8734         ;;
8735       esac
8736       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8737       lt_prog_compiler_static='${wl}-a ${wl}archive'
8738       ;;
8739
8740     irix5* | irix6* | nonstopux*)
8741       lt_prog_compiler_wl='-Wl,'
8742       # PIC (with -KPIC) is the default.
8743       lt_prog_compiler_static='-non_shared'
8744       ;;
8745
8746     linux* | k*bsd*-gnu)
8747       case $cc_basename in
8748       icc* | ecc* | ifort*)
8749         lt_prog_compiler_wl='-Wl,'
8750         lt_prog_compiler_pic='-KPIC'
8751         lt_prog_compiler_static='-static'
8752         ;;
8753       pgcc* | pgf77* | pgf90* | pgf95*)
8754         # Portland Group compilers (*not* the Pentium gcc compiler,
8755         # which looks to be a dead project)
8756         lt_prog_compiler_wl='-Wl,'
8757         lt_prog_compiler_pic='-fpic'
8758         lt_prog_compiler_static='-Bstatic'
8759         ;;
8760       ccc*)
8761         lt_prog_compiler_wl='-Wl,'
8762         # All Alpha code is PIC.
8763         lt_prog_compiler_static='-non_shared'
8764         ;;
8765       xl*)
8766         # IBM XL C 8.0/Fortran 10.1 on PPC
8767         lt_prog_compiler_wl='-Wl,'
8768         lt_prog_compiler_pic='-qpic'
8769         lt_prog_compiler_static='-qstaticlink'
8770         ;;
8771       *)
8772         case `$CC -V 2>&1 | sed 5q` in
8773         *Sun\ C*)
8774           # Sun C 5.9
8775           lt_prog_compiler_pic='-KPIC'
8776           lt_prog_compiler_static='-Bstatic'
8777           lt_prog_compiler_wl='-Wl,'
8778           ;;
8779         *Sun\ F*)
8780           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8781           lt_prog_compiler_pic='-KPIC'
8782           lt_prog_compiler_static='-Bstatic'
8783           lt_prog_compiler_wl=''
8784           ;;
8785         esac
8786         ;;
8787       esac
8788       ;;
8789
8790     newsos6)
8791       lt_prog_compiler_pic='-KPIC'
8792       lt_prog_compiler_static='-Bstatic'
8793       ;;
8794
8795     *nto* | *qnx*)
8796       # QNX uses GNU C++, but need to define -shared option too, otherwise
8797       # it will coredump.
8798       lt_prog_compiler_pic='-fPIC -shared'
8799       ;;
8800
8801     osf3* | osf4* | osf5*)
8802       lt_prog_compiler_wl='-Wl,'
8803       # All OSF/1 code is PIC.
8804       lt_prog_compiler_static='-non_shared'
8805       ;;
8806
8807     rdos*)
8808       lt_prog_compiler_static='-non_shared'
8809       ;;
8810
8811     solaris*)
8812       lt_prog_compiler_pic='-KPIC'
8813       lt_prog_compiler_static='-Bstatic'
8814       case $cc_basename in
8815       f77* | f90* | f95*)
8816         lt_prog_compiler_wl='-Qoption ld ';;
8817       *)
8818         lt_prog_compiler_wl='-Wl,';;
8819       esac
8820       ;;
8821
8822     sunos4*)
8823       lt_prog_compiler_wl='-Qoption ld '
8824       lt_prog_compiler_pic='-PIC'
8825       lt_prog_compiler_static='-Bstatic'
8826       ;;
8827
8828     sysv4 | sysv4.2uw2* | sysv4.3*)
8829       lt_prog_compiler_wl='-Wl,'
8830       lt_prog_compiler_pic='-KPIC'
8831       lt_prog_compiler_static='-Bstatic'
8832       ;;
8833
8834     sysv4*MP*)
8835       if test -d /usr/nec ;then
8836         lt_prog_compiler_pic='-Kconform_pic'
8837         lt_prog_compiler_static='-Bstatic'
8838       fi
8839       ;;
8840
8841     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8842       lt_prog_compiler_wl='-Wl,'
8843       lt_prog_compiler_pic='-KPIC'
8844       lt_prog_compiler_static='-Bstatic'
8845       ;;
8846
8847     unicos*)
8848       lt_prog_compiler_wl='-Wl,'
8849       lt_prog_compiler_can_build_shared=no
8850       ;;
8851
8852     uts4*)
8853       lt_prog_compiler_pic='-pic'
8854       lt_prog_compiler_static='-Bstatic'
8855       ;;
8856
8857     *)
8858       lt_prog_compiler_can_build_shared=no
8859       ;;
8860     esac
8861   fi
8862
8863 case $host_os in
8864   # For platforms which do not support PIC, -DPIC is meaningless:
8865   *djgpp*)
8866     lt_prog_compiler_pic=
8867     ;;
8868   *)
8869     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8870     ;;
8871 esac
8872 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8873 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8874
8875
8876
8877
8878
8879
8880 #
8881 # Check to make sure the PIC flag actually works.
8882 #
8883 if test -n "$lt_prog_compiler_pic"; then
8884   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8885 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8886 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8887   echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889   lt_cv_prog_compiler_pic_works=no
8890    ac_outfile=conftest.$ac_objext
8891    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8892    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8893    # Insert the option either (1) after the last *FLAGS variable, or
8894    # (2) before a word containing "conftest.", or (3) at the end.
8895    # Note that $ac_compile itself does not contain backslashes and begins
8896    # with a dollar sign (not a hyphen), so the echo should work correctly.
8897    # The option is referenced via a variable to avoid confusing sed.
8898    lt_compile=`echo "$ac_compile" | $SED \
8899    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8900    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8901    -e 's:$: $lt_compiler_flag:'`
8902    (eval echo "\"\$as_me:8902: $lt_compile\"" >&5)
8903    (eval "$lt_compile" 2>conftest.err)
8904    ac_status=$?
8905    cat conftest.err >&5
8906    echo "$as_me:8906: \$? = $ac_status" >&5
8907    if (exit $ac_status) && test -s "$ac_outfile"; then
8908      # The compiler can only warn and ignore the option if not recognized
8909      # So say no if there are warnings other than the usual output.
8910      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8911      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8912      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8913        lt_cv_prog_compiler_pic_works=yes
8914      fi
8915    fi
8916    $RM conftest*
8917
8918 fi
8919 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8920 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8921
8922 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8923     case $lt_prog_compiler_pic in
8924      "" | " "*) ;;
8925      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8926      esac
8927 else
8928     lt_prog_compiler_pic=
8929      lt_prog_compiler_can_build_shared=no
8930 fi
8931
8932 fi
8933
8934
8935
8936
8937
8938
8939 #
8940 # Check to make sure the static flag actually works.
8941 #
8942 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8943 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8944 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8945 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8946   echo $ECHO_N "(cached) $ECHO_C" >&6
8947 else
8948   lt_cv_prog_compiler_static_works=no
8949    save_LDFLAGS="$LDFLAGS"
8950    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8951    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8952    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8953      # The linker can only warn and ignore the option if not recognized
8954      # So say no if there are warnings
8955      if test -s conftest.err; then
8956        # Append any errors to the config.log.
8957        cat conftest.err 1>&5
8958        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8959        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8960        if diff conftest.exp conftest.er2 >/dev/null; then
8961          lt_cv_prog_compiler_static_works=yes
8962        fi
8963      else
8964        lt_cv_prog_compiler_static_works=yes
8965      fi
8966    fi
8967    $RM -r conftest*
8968    LDFLAGS="$save_LDFLAGS"
8969
8970 fi
8971 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8972 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8973
8974 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8975     :
8976 else
8977     lt_prog_compiler_static=
8978 fi
8979
8980
8981
8982
8983
8984
8985
8986   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8987 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8988 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8989   echo $ECHO_N "(cached) $ECHO_C" >&6
8990 else
8991   lt_cv_prog_compiler_c_o=no
8992    $RM -r conftest 2>/dev/null
8993    mkdir conftest
8994    cd conftest
8995    mkdir out
8996    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8997
8998    lt_compiler_flag="-o out/conftest2.$ac_objext"
8999    # Insert the option either (1) after the last *FLAGS variable, or
9000    # (2) before a word containing "conftest.", or (3) at the end.
9001    # Note that $ac_compile itself does not contain backslashes and begins
9002    # with a dollar sign (not a hyphen), so the echo should work correctly.
9003    lt_compile=`echo "$ac_compile" | $SED \
9004    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9005    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9006    -e 's:$: $lt_compiler_flag:'`
9007    (eval echo "\"\$as_me:9007: $lt_compile\"" >&5)
9008    (eval "$lt_compile" 2>out/conftest.err)
9009    ac_status=$?
9010    cat out/conftest.err >&5
9011    echo "$as_me:9011: \$? = $ac_status" >&5
9012    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9013    then
9014      # The compiler can only warn and ignore the option if not recognized
9015      # So say no if there are warnings
9016      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9017      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9018      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9019        lt_cv_prog_compiler_c_o=yes
9020      fi
9021    fi
9022    chmod u+w . 2>&5
9023    $RM conftest*
9024    # SGI C++ compiler will create directory out/ii_files/ for
9025    # template instantiation
9026    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9027    $RM out/* && rmdir out
9028    cd ..
9029    $RM -r conftest
9030    $RM conftest*
9031
9032 fi
9033 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9034 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9035
9036
9037
9038
9039
9040
9041   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9042 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9043 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9044   echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046   lt_cv_prog_compiler_c_o=no
9047    $RM -r conftest 2>/dev/null
9048    mkdir conftest
9049    cd conftest
9050    mkdir out
9051    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9052
9053    lt_compiler_flag="-o out/conftest2.$ac_objext"
9054    # Insert the option either (1) after the last *FLAGS variable, or
9055    # (2) before a word containing "conftest.", or (3) at the end.
9056    # Note that $ac_compile itself does not contain backslashes and begins
9057    # with a dollar sign (not a hyphen), so the echo should work correctly.
9058    lt_compile=`echo "$ac_compile" | $SED \
9059    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9060    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9061    -e 's:$: $lt_compiler_flag:'`
9062    (eval echo "\"\$as_me:9062: $lt_compile\"" >&5)
9063    (eval "$lt_compile" 2>out/conftest.err)
9064    ac_status=$?
9065    cat out/conftest.err >&5
9066    echo "$as_me:9066: \$? = $ac_status" >&5
9067    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9068    then
9069      # The compiler can only warn and ignore the option if not recognized
9070      # So say no if there are warnings
9071      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9072      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9073      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9074        lt_cv_prog_compiler_c_o=yes
9075      fi
9076    fi
9077    chmod u+w . 2>&5
9078    $RM conftest*
9079    # SGI C++ compiler will create directory out/ii_files/ for
9080    # template instantiation
9081    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9082    $RM out/* && rmdir out
9083    cd ..
9084    $RM -r conftest
9085    $RM conftest*
9086
9087 fi
9088 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9089 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9090
9091
9092
9093
9094 hard_links="nottested"
9095 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9096   # do not overwrite the value of need_locks provided by the user
9097   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9098 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9099   hard_links=yes
9100   $RM conftest*
9101   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9102   touch conftest.a
9103   ln conftest.a conftest.b 2>&5 || hard_links=no
9104   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9105   { echo "$as_me:$LINENO: result: $hard_links" >&5
9106 echo "${ECHO_T}$hard_links" >&6; }
9107   if test "$hard_links" = no; then
9108     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9109 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9110     need_locks=warn
9111   fi
9112 else
9113   need_locks=no
9114 fi
9115
9116
9117
9118
9119
9120
9121   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9123
9124   runpath_var=
9125   allow_undefined_flag=
9126   always_export_symbols=no
9127   archive_cmds=
9128   archive_expsym_cmds=
9129   compiler_needs_object=no
9130   enable_shared_with_static_runtimes=no
9131   export_dynamic_flag_spec=
9132   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9133   hardcode_automatic=no
9134   hardcode_direct=no
9135   hardcode_direct_absolute=no
9136   hardcode_libdir_flag_spec=
9137   hardcode_libdir_flag_spec_ld=
9138   hardcode_libdir_separator=
9139   hardcode_minus_L=no
9140   hardcode_shlibpath_var=unsupported
9141   inherit_rpath=no
9142   link_all_deplibs=unknown
9143   module_cmds=
9144   module_expsym_cmds=
9145   old_archive_from_new_cmds=
9146   old_archive_from_expsyms_cmds=
9147   thread_safe_flag_spec=
9148   whole_archive_flag_spec=
9149   # include_expsyms should be a list of space-separated symbols to be *always*
9150   # included in the symbol list
9151   include_expsyms=
9152   # exclude_expsyms can be an extended regexp of symbols to exclude
9153   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9154   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9155   # as well as any symbol that contains `d'.
9156   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9157   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9158   # platforms (ab)use it in PIC code, but their linkers get confused if
9159   # the symbol is explicitly referenced.  Since portable code cannot
9160   # rely on this symbol name, it's probably fine to never include it in
9161   # preloaded symbol tables.
9162   # Exclude shared library initialization/finalization symbols.
9163   extract_expsyms_cmds=
9164
9165   case $host_os in
9166   cygwin* | mingw* | pw32*)
9167     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9168     # When not using gcc, we currently assume that we are using
9169     # Microsoft Visual C++.
9170     if test "$GCC" != yes; then
9171       with_gnu_ld=no
9172     fi
9173     ;;
9174   interix*)
9175     # we just hope/assume this is gcc and not c89 (= MSVC++)
9176     with_gnu_ld=yes
9177     ;;
9178   openbsd*)
9179     with_gnu_ld=no
9180     ;;
9181   esac
9182
9183   ld_shlibs=yes
9184   if test "$with_gnu_ld" = yes; then
9185     # If archive_cmds runs LD, not CC, wlarc should be empty
9186     wlarc='${wl}'
9187
9188     # Set some defaults for GNU ld with shared library support. These
9189     # are reset later if shared libraries are not supported. Putting them
9190     # here allows them to be overridden if necessary.
9191     runpath_var=LD_RUN_PATH
9192     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9193     export_dynamic_flag_spec='${wl}--export-dynamic'
9194     # ancient GNU ld didn't support --whole-archive et. al.
9195     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9196       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9197     else
9198       whole_archive_flag_spec=
9199     fi
9200     supports_anon_versioning=no
9201     case `$LD -v 2>&1` in
9202       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9203       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9204       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9205       *\ 2.11.*) ;; # other 2.11 versions
9206       *) supports_anon_versioning=yes ;;
9207     esac
9208
9209     # See if GNU ld supports shared libraries.
9210     case $host_os in
9211     aix[3-9]*)
9212       # On AIX/PPC, the GNU linker is very broken
9213       if test "$host_cpu" != ia64; then
9214         ld_shlibs=no
9215         cat <<_LT_EOF 1>&2
9216
9217 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9218 *** to be unable to reliably create shared libraries on AIX.
9219 *** Therefore, libtool is disabling shared libraries support.  If you
9220 *** really care for shared libraries, you may want to modify your PATH
9221 *** so that a non-GNU linker is found, and then restart.
9222
9223 _LT_EOF
9224       fi
9225       ;;
9226
9227     amigaos*)
9228       case $host_cpu in
9229       powerpc)
9230             # see comment about AmigaOS4 .so support
9231             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9232             archive_expsym_cmds=''
9233         ;;
9234       m68k)
9235             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)'
9236             hardcode_libdir_flag_spec='-L$libdir'
9237             hardcode_minus_L=yes
9238         ;;
9239       esac
9240       ;;
9241
9242     beos*)
9243       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9244         allow_undefined_flag=unsupported
9245         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9246         # support --undefined.  This deserves some investigation.  FIXME
9247         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9248       else
9249         ld_shlibs=no
9250       fi
9251       ;;
9252
9253     cygwin* | mingw* | pw32*)
9254       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9255       # as there is no search path for DLLs.
9256       hardcode_libdir_flag_spec='-L$libdir'
9257       allow_undefined_flag=unsupported
9258       always_export_symbols=no
9259       enable_shared_with_static_runtimes=yes
9260       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9261
9262       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9263         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9264         # If the export-symbols file already is a .def file (1st line
9265         # is EXPORTS), use it as is; otherwise, prepend...
9266         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9267           cp $export_symbols $output_objdir/$soname.def;
9268         else
9269           echo EXPORTS > $output_objdir/$soname.def;
9270           cat $export_symbols >> $output_objdir/$soname.def;
9271         fi~
9272         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9273       else
9274         ld_shlibs=no
9275       fi
9276       ;;
9277
9278     interix[3-9]*)
9279       hardcode_direct=no
9280       hardcode_shlibpath_var=no
9281       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9282       export_dynamic_flag_spec='${wl}-E'
9283       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9284       # Instead, shared libraries are loaded at an image base (0x10000000 by
9285       # default) and relocated if they conflict, which is a slow very memory
9286       # consuming and fragmenting process.  To avoid this, we pick a random,
9287       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9288       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9289       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9290       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'
9291       ;;
9292
9293     gnu* | linux* | tpf* | k*bsd*-gnu)
9294       tmp_diet=no
9295       if test "$host_os" = linux-dietlibc; then
9296         case $cc_basename in
9297           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9298         esac
9299       fi
9300       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9301          && test "$tmp_diet" = no
9302       then
9303         tmp_addflag=
9304         tmp_sharedflag='-shared'
9305         case $cc_basename,$host_cpu in
9306         pgcc*)                          # Portland Group C compiler
9307           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'
9308           tmp_addflag=' $pic_flag'
9309           ;;
9310         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9311           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'
9312           tmp_addflag=' $pic_flag -Mnomain' ;;
9313         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9314           tmp_addflag=' -i_dynamic' ;;
9315         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9316           tmp_addflag=' -i_dynamic -nofor_main' ;;
9317         ifc* | ifort*)                  # Intel Fortran compiler
9318           tmp_addflag=' -nofor_main' ;;
9319         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9320           tmp_sharedflag='-qmkshrobj'
9321           tmp_addflag= ;;
9322         esac
9323         case `$CC -V 2>&1 | sed 5q` in
9324         *Sun\ C*)                       # Sun C 5.9
9325           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'
9326           compiler_needs_object=yes
9327           tmp_sharedflag='-G' ;;
9328         *Sun\ F*)                       # Sun Fortran 8.3
9329           tmp_sharedflag='-G' ;;
9330         esac
9331         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9332
9333         if test "x$supports_anon_versioning" = xyes; then
9334           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9335             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9336             echo "local: *; };" >> $output_objdir/$libname.ver~
9337             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9338         fi
9339
9340         case $cc_basename in
9341         xlf*)
9342           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9343           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9344           hardcode_libdir_flag_spec=
9345           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9346           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9347           if test "x$supports_anon_versioning" = xyes; then
9348             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9349               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9350               echo "local: *; };" >> $output_objdir/$libname.ver~
9351               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9352           fi
9353           ;;
9354         esac
9355       else
9356         ld_shlibs=no
9357       fi
9358       ;;
9359
9360     netbsd*)
9361       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9362         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9363         wlarc=
9364       else
9365         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9366         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9367       fi
9368       ;;
9369
9370     solaris*)
9371       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9372         ld_shlibs=no
9373         cat <<_LT_EOF 1>&2
9374
9375 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9376 *** create shared libraries on Solaris systems.  Therefore, libtool
9377 *** is disabling shared libraries support.  We urge you to upgrade GNU
9378 *** binutils to release 2.9.1 or newer.  Another option is to modify
9379 *** your PATH or compiler configuration so that the native linker is
9380 *** used, and then restart.
9381
9382 _LT_EOF
9383       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9384         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9385         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9386       else
9387         ld_shlibs=no
9388       fi
9389       ;;
9390
9391     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9392       case `$LD -v 2>&1` in
9393         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9394         ld_shlibs=no
9395         cat <<_LT_EOF 1>&2
9396
9397 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9398 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9399 *** is disabling shared libraries support.  We urge you to upgrade GNU
9400 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9401 *** your PATH or compiler configuration so that the native linker is
9402 *** used, and then restart.
9403
9404 _LT_EOF
9405         ;;
9406         *)
9407           # For security reasons, it is highly recommended that you always
9408           # use absolute paths for naming shared libraries, and exclude the
9409           # DT_RUNPATH tag from executables and libraries.  But doing so
9410           # requires that you compile everything twice, which is a pain.
9411           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9412             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9413             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9414             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9415           else
9416             ld_shlibs=no
9417           fi
9418         ;;
9419       esac
9420       ;;
9421
9422     sunos4*)
9423       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9424       wlarc=
9425       hardcode_direct=yes
9426       hardcode_shlibpath_var=no
9427       ;;
9428
9429     *)
9430       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9431         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9432         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9433       else
9434         ld_shlibs=no
9435       fi
9436       ;;
9437     esac
9438
9439     if test "$ld_shlibs" = no; then
9440       runpath_var=
9441       hardcode_libdir_flag_spec=
9442       export_dynamic_flag_spec=
9443       whole_archive_flag_spec=
9444     fi
9445   else
9446     # PORTME fill in a description of your system's linker (not GNU ld)
9447     case $host_os in
9448     aix3*)
9449       allow_undefined_flag=unsupported
9450       always_export_symbols=yes
9451       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'
9452       # Note: this linker hardcodes the directories in LIBPATH if there
9453       # are no directories specified by -L.
9454       hardcode_minus_L=yes
9455       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9456         # Neither direct hardcoding nor static linking is supported with a
9457         # broken collect2.
9458         hardcode_direct=unsupported
9459       fi
9460       ;;
9461
9462     aix[4-9]*)
9463       if test "$host_cpu" = ia64; then
9464         # On IA64, the linker does run time linking by default, so we don't
9465         # have to do anything special.
9466         aix_use_runtimelinking=no
9467         exp_sym_flag='-Bexport'
9468         no_entry_flag=""
9469       else
9470         # If we're using GNU nm, then we don't want the "-C" option.
9471         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9472         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9473           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'
9474         else
9475           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'
9476         fi
9477         aix_use_runtimelinking=no
9478
9479         # Test if we are trying to use run time linking or normal
9480         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9481         # need to do runtime linking.
9482         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9483           for ld_flag in $LDFLAGS; do
9484           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9485             aix_use_runtimelinking=yes
9486             break
9487           fi
9488           done
9489           ;;
9490         esac
9491
9492         exp_sym_flag='-bexport'
9493         no_entry_flag='-bnoentry'
9494       fi
9495
9496       # When large executables or shared objects are built, AIX ld can
9497       # have problems creating the table of contents.  If linking a library
9498       # or program results in "error TOC overflow" add -mminimal-toc to
9499       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9500       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9501
9502       archive_cmds=''
9503       hardcode_direct=yes
9504       hardcode_direct_absolute=yes
9505       hardcode_libdir_separator=':'
9506       link_all_deplibs=yes
9507       file_list_spec='${wl}-f,'
9508
9509       if test "$GCC" = yes; then
9510         case $host_os in aix4.[012]|aix4.[012].*)
9511         # We only want to do this on AIX 4.2 and lower, the check
9512         # below for broken collect2 doesn't work under 4.3+
9513           collect2name=`${CC} -print-prog-name=collect2`
9514           if test -f "$collect2name" &&
9515            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9516           then
9517           # We have reworked collect2
9518           :
9519           else
9520           # We have old collect2
9521           hardcode_direct=unsupported
9522           # It fails to find uninstalled libraries when the uninstalled
9523           # path is not listed in the libpath.  Setting hardcode_minus_L
9524           # to unsupported forces relinking
9525           hardcode_minus_L=yes
9526           hardcode_libdir_flag_spec='-L$libdir'
9527           hardcode_libdir_separator=
9528           fi
9529           ;;
9530         esac
9531         shared_flag='-shared'
9532         if test "$aix_use_runtimelinking" = yes; then
9533           shared_flag="$shared_flag "'${wl}-G'
9534         fi
9535       else
9536         # not using gcc
9537         if test "$host_cpu" = ia64; then
9538         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9539         # chokes on -Wl,-G. The following line is correct:
9540           shared_flag='-G'
9541         else
9542           if test "$aix_use_runtimelinking" = yes; then
9543             shared_flag='${wl}-G'
9544           else
9545             shared_flag='${wl}-bM:SRE'
9546           fi
9547         fi
9548       fi
9549
9550       # It seems that -bexpall does not export symbols beginning with
9551       # underscore (_), so it is better to generate a list of symbols to export.
9552       always_export_symbols=yes
9553       if test "$aix_use_runtimelinking" = yes; then
9554         # Warning - without using the other runtime loading flags (-brtl),
9555         # -berok will link without error, but may produce a broken library.
9556         allow_undefined_flag='-berok'
9557         # Determine the default libpath from the value encoded in an
9558         # empty executable.
9559         cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h.  */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h.  */
9565
9566 int
9567 main ()
9568 {
9569
9570   ;
9571   return 0;
9572 }
9573 _ACEOF
9574 rm -f conftest.$ac_objext conftest$ac_exeext
9575 if { (ac_try="$ac_link"
9576 case "(($ac_try" in
9577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578   *) ac_try_echo=$ac_try;;
9579 esac
9580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581   (eval "$ac_link") 2>conftest.er1
9582   ac_status=$?
9583   grep -v '^ *+' conftest.er1 >conftest.err
9584   rm -f conftest.er1
9585   cat conftest.err >&5
9586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); } && {
9588          test -z "$ac_c_werror_flag" ||
9589          test ! -s conftest.err
9590        } && test -s conftest$ac_exeext &&
9591        $as_test_x conftest$ac_exeext; then
9592
9593 lt_aix_libpath_sed='
9594     /Import File Strings/,/^$/ {
9595         /^0/ {
9596             s/^0  *\(.*\)$/\1/
9597             p
9598         }
9599     }'
9600 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9601 # Check for a 64-bit object if we didn't find anything.
9602 if test -z "$aix_libpath"; then
9603   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9604 fi
9605 else
9606   echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9608
9609
9610 fi
9611
9612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9613       conftest$ac_exeext conftest.$ac_ext
9614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9615
9616         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9617         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"
9618       else
9619         if test "$host_cpu" = ia64; then
9620           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9621           allow_undefined_flag="-z nodefs"
9622           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"
9623         else
9624          # Determine the default libpath from the value encoded in an
9625          # empty executable.
9626          cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h.  */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h.  */
9632
9633 int
9634 main ()
9635 {
9636
9637   ;
9638   return 0;
9639 }
9640 _ACEOF
9641 rm -f conftest.$ac_objext conftest$ac_exeext
9642 if { (ac_try="$ac_link"
9643 case "(($ac_try" in
9644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645   *) ac_try_echo=$ac_try;;
9646 esac
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648   (eval "$ac_link") 2>conftest.er1
9649   ac_status=$?
9650   grep -v '^ *+' conftest.er1 >conftest.err
9651   rm -f conftest.er1
9652   cat conftest.err >&5
9653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654   (exit $ac_status); } && {
9655          test -z "$ac_c_werror_flag" ||
9656          test ! -s conftest.err
9657        } && test -s conftest$ac_exeext &&
9658        $as_test_x conftest$ac_exeext; then
9659
9660 lt_aix_libpath_sed='
9661     /Import File Strings/,/^$/ {
9662         /^0/ {
9663             s/^0  *\(.*\)$/\1/
9664             p
9665         }
9666     }'
9667 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9668 # Check for a 64-bit object if we didn't find anything.
9669 if test -z "$aix_libpath"; then
9670   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9671 fi
9672 else
9673   echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9675
9676
9677 fi
9678
9679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9680       conftest$ac_exeext conftest.$ac_ext
9681 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9682
9683          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9684           # Warning - without using the other run time loading flags,
9685           # -berok will link without error, but may produce a broken library.
9686           no_undefined_flag=' ${wl}-bernotok'
9687           allow_undefined_flag=' ${wl}-berok'
9688           # Exported symbols can be pulled into shared objects from archives
9689           whole_archive_flag_spec='$convenience'
9690           archive_cmds_need_lc=yes
9691           # This is similar to how AIX traditionally builds its shared libraries.
9692           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'
9693         fi
9694       fi
9695       ;;
9696
9697     amigaos*)
9698       case $host_cpu in
9699       powerpc)
9700             # see comment about AmigaOS4 .so support
9701             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9702             archive_expsym_cmds=''
9703         ;;
9704       m68k)
9705             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)'
9706             hardcode_libdir_flag_spec='-L$libdir'
9707             hardcode_minus_L=yes
9708         ;;
9709       esac
9710       ;;
9711
9712     bsdi[45]*)
9713       export_dynamic_flag_spec=-rdynamic
9714       ;;
9715
9716     cygwin* | mingw* | pw32*)
9717       # When not using gcc, we currently assume that we are using
9718       # Microsoft Visual C++.
9719       # hardcode_libdir_flag_spec is actually meaningless, as there is
9720       # no search path for DLLs.
9721       hardcode_libdir_flag_spec=' '
9722       allow_undefined_flag=unsupported
9723       # Tell ltmain to make .lib files, not .a files.
9724       libext=lib
9725       # Tell ltmain to make .dll files, not .so files.
9726       shrext_cmds=".dll"
9727       # FIXME: Setting linknames here is a bad hack.
9728       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9729       # The linker will automatically build a .lib file if we build a DLL.
9730       old_archive_from_new_cmds='true'
9731       # FIXME: Should let the user specify the lib program.
9732       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9733       fix_srcfile_path='`cygpath -w "$srcfile"`'
9734       enable_shared_with_static_runtimes=yes
9735       ;;
9736
9737     darwin* | rhapsody*)
9738
9739
9740   archive_cmds_need_lc=no
9741   hardcode_direct=no
9742   hardcode_automatic=yes
9743   hardcode_shlibpath_var=unsupported
9744   whole_archive_flag_spec=''
9745   link_all_deplibs=yes
9746   allow_undefined_flag="$_lt_dar_allow_undefined"
9747   if test "$GCC" = "yes"; then
9748     output_verbose_link_cmd=echo
9749     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9750     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9751     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}"
9752     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}"
9753
9754   else
9755   ld_shlibs=no
9756   fi
9757
9758       ;;
9759
9760     dgux*)
9761       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762       hardcode_libdir_flag_spec='-L$libdir'
9763       hardcode_shlibpath_var=no
9764       ;;
9765
9766     freebsd1*)
9767       ld_shlibs=no
9768       ;;
9769
9770     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9771     # support.  Future versions do this automatically, but an explicit c++rt0.o
9772     # does not break anything, and helps significantly (at the cost of a little
9773     # extra space).
9774     freebsd2.2*)
9775       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9776       hardcode_libdir_flag_spec='-R$libdir'
9777       hardcode_direct=yes
9778       hardcode_shlibpath_var=no
9779       ;;
9780
9781     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9782     freebsd2*)
9783       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9784       hardcode_direct=yes
9785       hardcode_minus_L=yes
9786       hardcode_shlibpath_var=no
9787       ;;
9788
9789     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9790     freebsd* | dragonfly*)
9791       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9792       hardcode_libdir_flag_spec='-R$libdir'
9793       hardcode_direct=yes
9794       hardcode_shlibpath_var=no
9795       ;;
9796
9797     hpux9*)
9798       if test "$GCC" = yes; then
9799         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'
9800       else
9801         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'
9802       fi
9803       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9804       hardcode_libdir_separator=:
9805       hardcode_direct=yes
9806
9807       # hardcode_minus_L: Not really in the search PATH,
9808       # but as the default location of the library.
9809       hardcode_minus_L=yes
9810       export_dynamic_flag_spec='${wl}-E'
9811       ;;
9812
9813     hpux10*)
9814       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9815         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9816       else
9817         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9818       fi
9819       if test "$with_gnu_ld" = no; then
9820         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9821         hardcode_libdir_flag_spec_ld='+b $libdir'
9822         hardcode_libdir_separator=:
9823         hardcode_direct=yes
9824         hardcode_direct_absolute=yes
9825         export_dynamic_flag_spec='${wl}-E'
9826         # hardcode_minus_L: Not really in the search PATH,
9827         # but as the default location of the library.
9828         hardcode_minus_L=yes
9829       fi
9830       ;;
9831
9832     hpux11*)
9833       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9834         case $host_cpu in
9835         hppa*64*)
9836           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9837           ;;
9838         ia64*)
9839           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9840           ;;
9841         *)
9842           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9843           ;;
9844         esac
9845       else
9846         case $host_cpu in
9847         hppa*64*)
9848           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9849           ;;
9850         ia64*)
9851           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9852           ;;
9853         *)
9854           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9855           ;;
9856         esac
9857       fi
9858       if test "$with_gnu_ld" = no; then
9859         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9860         hardcode_libdir_separator=:
9861
9862         case $host_cpu in
9863         hppa*64*|ia64*)
9864           hardcode_direct=no
9865           hardcode_shlibpath_var=no
9866           ;;
9867         *)
9868           hardcode_direct=yes
9869           hardcode_direct_absolute=yes
9870           export_dynamic_flag_spec='${wl}-E'
9871
9872           # hardcode_minus_L: Not really in the search PATH,
9873           # but as the default location of the library.
9874           hardcode_minus_L=yes
9875           ;;
9876         esac
9877       fi
9878       ;;
9879
9880     irix5* | irix6* | nonstopux*)
9881       if test "$GCC" = yes; then
9882         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'
9883         # Try to use the -exported_symbol ld option, if it does not
9884         # work, assume that -exports_file does not work either and
9885         # implicitly export all symbols.
9886         save_LDFLAGS="$LDFLAGS"
9887         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9888         cat >conftest.$ac_ext <<_ACEOF
9889 int foo(void) {}
9890 _ACEOF
9891 rm -f conftest.$ac_objext conftest$ac_exeext
9892 if { (ac_try="$ac_link"
9893 case "(($ac_try" in
9894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895   *) ac_try_echo=$ac_try;;
9896 esac
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898   (eval "$ac_link") 2>conftest.er1
9899   ac_status=$?
9900   grep -v '^ *+' conftest.er1 >conftest.err
9901   rm -f conftest.er1
9902   cat conftest.err >&5
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); } && {
9905          test -z "$ac_c_werror_flag" ||
9906          test ! -s conftest.err
9907        } && test -s conftest$ac_exeext &&
9908        $as_test_x conftest$ac_exeext; then
9909   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'
9910
9911 else
9912   echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9914
9915
9916 fi
9917
9918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9919       conftest$ac_exeext conftest.$ac_ext
9920         LDFLAGS="$save_LDFLAGS"
9921       else
9922         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'
9923         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'
9924       fi
9925       archive_cmds_need_lc='no'
9926       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9927       hardcode_libdir_separator=:
9928       inherit_rpath=yes
9929       link_all_deplibs=yes
9930       ;;
9931
9932     netbsd*)
9933       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9934         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9935       else
9936         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9937       fi
9938       hardcode_libdir_flag_spec='-R$libdir'
9939       hardcode_direct=yes
9940       hardcode_shlibpath_var=no
9941       ;;
9942
9943     newsos6)
9944       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945       hardcode_direct=yes
9946       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9947       hardcode_libdir_separator=:
9948       hardcode_shlibpath_var=no
9949       ;;
9950
9951     *nto* | *qnx*)
9952       ;;
9953
9954     openbsd*)
9955       if test -f /usr/libexec/ld.so; then
9956         hardcode_direct=yes
9957         hardcode_shlibpath_var=no
9958         hardcode_direct_absolute=yes
9959         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9960           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9961           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9962           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9963           export_dynamic_flag_spec='${wl}-E'
9964         else
9965           case $host_os in
9966            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9967              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9968              hardcode_libdir_flag_spec='-R$libdir'
9969              ;;
9970            *)
9971              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9972              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9973              ;;
9974           esac
9975         fi
9976       else
9977         ld_shlibs=no
9978       fi
9979       ;;
9980
9981     os2*)
9982       hardcode_libdir_flag_spec='-L$libdir'
9983       hardcode_minus_L=yes
9984       allow_undefined_flag=unsupported
9985       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'
9986       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9987       ;;
9988
9989     osf3*)
9990       if test "$GCC" = yes; then
9991         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9992         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'
9993       else
9994         allow_undefined_flag=' -expect_unresolved \*'
9995         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'
9996       fi
9997       archive_cmds_need_lc='no'
9998       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9999       hardcode_libdir_separator=:
10000       ;;
10001
10002     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10003       if test "$GCC" = yes; then
10004         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10005         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'
10006         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10007       else
10008         allow_undefined_flag=' -expect_unresolved \*'
10009         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'
10010         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~
10011         $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'
10012
10013         # Both c and cxx compiler support -rpath directly
10014         hardcode_libdir_flag_spec='-rpath $libdir'
10015       fi
10016       archive_cmds_need_lc='no'
10017       hardcode_libdir_separator=:
10018       ;;
10019
10020     solaris*)
10021       no_undefined_flag=' -z defs'
10022       if test "$GCC" = yes; then
10023         wlarc='${wl}'
10024         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10025         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10026           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10027       else
10028         case `$CC -V 2>&1` in
10029         *"Compilers 5.0"*)
10030           wlarc=''
10031           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10032           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10033           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10034           ;;
10035         *)
10036           wlarc='${wl}'
10037           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10038           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10039           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10040           ;;
10041         esac
10042       fi
10043       hardcode_libdir_flag_spec='-R$libdir'
10044       hardcode_shlibpath_var=no
10045       case $host_os in
10046       solaris2.[0-5] | solaris2.[0-5].*) ;;
10047       *)
10048         # The compiler driver will combine and reorder linker options,
10049         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10050         # but is careful enough not to reorder.
10051         # Supported since Solaris 2.6 (maybe 2.5.1?)
10052         if test "$GCC" = yes; then
10053           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10054         else
10055           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10056         fi
10057         ;;
10058       esac
10059       link_all_deplibs=yes
10060       ;;
10061
10062     sunos4*)
10063       if test "x$host_vendor" = xsequent; then
10064         # Use $CC to link under sequent, because it throws in some extra .o
10065         # files that make .init and .fini sections work.
10066         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10067       else
10068         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10069       fi
10070       hardcode_libdir_flag_spec='-L$libdir'
10071       hardcode_direct=yes
10072       hardcode_minus_L=yes
10073       hardcode_shlibpath_var=no
10074       ;;
10075
10076     sysv4)
10077       case $host_vendor in
10078         sni)
10079           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080           hardcode_direct=yes # is this really true???
10081         ;;
10082         siemens)
10083           ## LD is ld it makes a PLAMLIB
10084           ## CC just makes a GrossModule.
10085           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10086           reload_cmds='$CC -r -o $output$reload_objs'
10087           hardcode_direct=no
10088         ;;
10089         motorola)
10090           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10092         ;;
10093       esac
10094       runpath_var='LD_RUN_PATH'
10095       hardcode_shlibpath_var=no
10096       ;;
10097
10098     sysv4.3*)
10099       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10100       hardcode_shlibpath_var=no
10101       export_dynamic_flag_spec='-Bexport'
10102       ;;
10103
10104     sysv4*MP*)
10105       if test -d /usr/nec; then
10106         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107         hardcode_shlibpath_var=no
10108         runpath_var=LD_RUN_PATH
10109         hardcode_runpath_var=yes
10110         ld_shlibs=yes
10111       fi
10112       ;;
10113
10114     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10115       no_undefined_flag='${wl}-z,text'
10116       archive_cmds_need_lc=no
10117       hardcode_shlibpath_var=no
10118       runpath_var='LD_RUN_PATH'
10119
10120       if test "$GCC" = yes; then
10121         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123       else
10124         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10126       fi
10127       ;;
10128
10129     sysv5* | sco3.2v5* | sco5v6*)
10130       # Note: We can NOT use -z defs as we might desire, because we do not
10131       # link with -lc, and that would cause any symbols used from libc to
10132       # always be unresolved, which means just about no library would
10133       # ever link correctly.  If we're not using GNU ld we use -z text
10134       # though, which does catch some bad symbols but isn't as heavy-handed
10135       # as -z defs.
10136       no_undefined_flag='${wl}-z,text'
10137       allow_undefined_flag='${wl}-z,nodefs'
10138       archive_cmds_need_lc=no
10139       hardcode_shlibpath_var=no
10140       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10141       hardcode_libdir_separator=':'
10142       link_all_deplibs=yes
10143       export_dynamic_flag_spec='${wl}-Bexport'
10144       runpath_var='LD_RUN_PATH'
10145
10146       if test "$GCC" = yes; then
10147         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10148         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149       else
10150         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152       fi
10153       ;;
10154
10155     uts4*)
10156       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157       hardcode_libdir_flag_spec='-L$libdir'
10158       hardcode_shlibpath_var=no
10159       ;;
10160
10161     *)
10162       ld_shlibs=no
10163       ;;
10164     esac
10165
10166     if test x$host_vendor = xsni; then
10167       case $host in
10168       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10169         export_dynamic_flag_spec='${wl}-Blargedynsym'
10170         ;;
10171       esac
10172     fi
10173   fi
10174
10175 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10176 echo "${ECHO_T}$ld_shlibs" >&6; }
10177 test "$ld_shlibs" = no && can_build_shared=no
10178
10179 with_gnu_ld=$with_gnu_ld
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195 #
10196 # Do we need to explicitly link libc?
10197 #
10198 case "x$archive_cmds_need_lc" in
10199 x|xyes)
10200   # Assume -lc should be added
10201   archive_cmds_need_lc=yes
10202
10203   if test "$enable_shared" = yes && test "$GCC" = yes; then
10204     case $archive_cmds in
10205     *'~'*)
10206       # FIXME: we may have to deal with multi-command sequences.
10207       ;;
10208     '$CC '*)
10209       # Test whether the compiler implicitly links with -lc since on some
10210       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10211       # to ld, don't add -lc before -lgcc.
10212       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10213 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10214       $RM conftest*
10215       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10216
10217       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10218   (eval $ac_compile) 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); } 2>conftest.err; then
10222         soname=conftest
10223         lib=conftest
10224         libobjs=conftest.$ac_objext
10225         deplibs=
10226         wl=$lt_prog_compiler_wl
10227         pic_flag=$lt_prog_compiler_pic
10228         compiler_flags=-v
10229         linker_flags=-v
10230         verstring=
10231         output_objdir=.
10232         libname=conftest
10233         lt_save_allow_undefined_flag=$allow_undefined_flag
10234         allow_undefined_flag=
10235         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10236   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10237   ac_status=$?
10238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239   (exit $ac_status); }
10240         then
10241           archive_cmds_need_lc=no
10242         else
10243           archive_cmds_need_lc=yes
10244         fi
10245         allow_undefined_flag=$lt_save_allow_undefined_flag
10246       else
10247         cat conftest.err 1>&5
10248       fi
10249       $RM conftest*
10250       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10251 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10252       ;;
10253     esac
10254   fi
10255   ;;
10256 esac
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
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
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10415 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10416
10417 if test "$GCC" = yes; then
10418   case $host_os in
10419     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10420     *) lt_awk_arg="/^libraries:/" ;;
10421   esac
10422   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10423   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10424     # if the path contains ";" then we assume it to be the separator
10425     # otherwise default to the standard path separator (i.e. ":") - it is
10426     # assumed that no part of a normal pathname contains ";" but that should
10427     # okay in the real world where ";" in dirpaths is itself problematic.
10428     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10429   else
10430     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10431   fi
10432   # Ok, now we have the path, separated by spaces, we can step through it
10433   # and add multilib dir if necessary.
10434   lt_tmp_lt_search_path_spec=
10435   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10436   for lt_sys_path in $lt_search_path_spec; do
10437     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10438       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10439     else
10440       test -d "$lt_sys_path" && \
10441         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10442     fi
10443   done
10444   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10445 BEGIN {RS=" "; FS="/|\n";} {
10446   lt_foo="";
10447   lt_count=0;
10448   for (lt_i = NF; lt_i > 0; lt_i--) {
10449     if ($lt_i != "" && $lt_i != ".") {
10450       if ($lt_i == "..") {
10451         lt_count++;
10452       } else {
10453         if (lt_count == 0) {
10454           lt_foo="/" $lt_i lt_foo;
10455         } else {
10456           lt_count--;
10457         }
10458       }
10459     }
10460   }
10461   if (lt_foo != "") { lt_freq[lt_foo]++; }
10462   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10463 }'`
10464   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10465 else
10466   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10467 fi
10468 library_names_spec=
10469 libname_spec='lib$name'
10470 soname_spec=
10471 shrext_cmds=".so"
10472 postinstall_cmds=
10473 postuninstall_cmds=
10474 finish_cmds=
10475 finish_eval=
10476 shlibpath_var=
10477 shlibpath_overrides_runpath=unknown
10478 version_type=none
10479 dynamic_linker="$host_os ld.so"
10480 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10481 need_lib_prefix=unknown
10482 hardcode_into_libs=no
10483
10484 # when you set need_version to no, make sure it does not cause -set_version
10485 # flags to be left without arguments
10486 need_version=unknown
10487
10488 case $host_os in
10489 aix3*)
10490   version_type=linux
10491   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10492   shlibpath_var=LIBPATH
10493
10494   # AIX 3 has no versioning support, so we append a major version to the name.
10495   soname_spec='${libname}${release}${shared_ext}$major'
10496   ;;
10497
10498 aix[4-9]*)
10499   version_type=linux
10500   need_lib_prefix=no
10501   need_version=no
10502   hardcode_into_libs=yes
10503   if test "$host_cpu" = ia64; then
10504     # AIX 5 supports IA64
10505     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10506     shlibpath_var=LD_LIBRARY_PATH
10507   else
10508     # With GCC up to 2.95.x, collect2 would create an import file
10509     # for dependence libraries.  The import file would start with
10510     # the line `#! .'.  This would cause the generated library to
10511     # depend on `.', always an invalid library.  This was fixed in
10512     # development snapshots of GCC prior to 3.0.
10513     case $host_os in
10514       aix4 | aix4.[01] | aix4.[01].*)
10515       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10516            echo ' yes '
10517            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10518         :
10519       else
10520         can_build_shared=no
10521       fi
10522       ;;
10523     esac
10524     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10525     # soname into executable. Probably we can add versioning support to
10526     # collect2, so additional links can be useful in future.
10527     if test "$aix_use_runtimelinking" = yes; then
10528       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10529       # instead of lib<name>.a to let people know that these are not
10530       # typical AIX shared libraries.
10531       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532     else
10533       # We preserve .a as extension for shared libraries through AIX4.2
10534       # and later when we are not doing run time linking.
10535       library_names_spec='${libname}${release}.a $libname.a'
10536       soname_spec='${libname}${release}${shared_ext}$major'
10537     fi
10538     shlibpath_var=LIBPATH
10539   fi
10540   ;;
10541
10542 amigaos*)
10543   case $host_cpu in
10544   powerpc)
10545     # Since July 2007 AmigaOS4 officially supports .so libraries.
10546     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10547     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10548     ;;
10549   m68k)
10550     library_names_spec='$libname.ixlibrary $libname.a'
10551     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10552     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'
10553     ;;
10554   esac
10555   ;;
10556
10557 beos*)
10558   library_names_spec='${libname}${shared_ext}'
10559   dynamic_linker="$host_os ld.so"
10560   shlibpath_var=LIBRARY_PATH
10561   ;;
10562
10563 bsdi[45]*)
10564   version_type=linux
10565   need_version=no
10566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567   soname_spec='${libname}${release}${shared_ext}$major'
10568   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10569   shlibpath_var=LD_LIBRARY_PATH
10570   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10571   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10572   # the default ld.so.conf also contains /usr/contrib/lib and
10573   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10574   # libtool to hard-code these into programs
10575   ;;
10576
10577 cygwin* | mingw* | pw32*)
10578   version_type=windows
10579   shrext_cmds=".dll"
10580   need_version=no
10581   need_lib_prefix=no
10582
10583   case $GCC,$host_os in
10584   yes,cygwin* | yes,mingw* | yes,pw32*)
10585     library_names_spec='$libname.dll.a'
10586     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10587     postinstall_cmds='base_file=`basename \${file}`~
10588       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10589       dldir=$destdir/`dirname \$dlpath`~
10590       test -d \$dldir || mkdir -p \$dldir~
10591       $install_prog $dir/$dlname \$dldir/$dlname~
10592       chmod a+x \$dldir/$dlname~
10593       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10594         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10595       fi'
10596     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10597       dlpath=$dir/\$dldll~
10598        $RM \$dlpath'
10599     shlibpath_overrides_runpath=yes
10600
10601     case $host_os in
10602     cygwin*)
10603       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10604       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10605       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10606       ;;
10607     mingw*)
10608       # MinGW DLLs use traditional 'lib' prefix
10609       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10610       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10611       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10612         # It is most probably a Windows format PATH printed by
10613         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10614         # path with ; separators, and with drive letters. We can handle the
10615         # drive letters (cygwin fileutils understands them), so leave them,
10616         # especially as we might pass files found there to a mingw objdump,
10617         # which wouldn't understand a cygwinified path. Ahh.
10618         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10619       else
10620         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10621       fi
10622       ;;
10623     pw32*)
10624       # pw32 DLLs use 'pw' prefix rather than 'lib'
10625       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10626       ;;
10627     esac
10628     ;;
10629
10630   *)
10631     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10632     ;;
10633   esac
10634   dynamic_linker='Win32 ld.exe'
10635   # FIXME: first we should search . and the directory the executable is in
10636   shlibpath_var=PATH
10637   ;;
10638
10639 darwin* | rhapsody*)
10640   dynamic_linker="$host_os dyld"
10641   version_type=darwin
10642   need_lib_prefix=no
10643   need_version=no
10644   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10645   soname_spec='${libname}${release}${major}$shared_ext'
10646   shlibpath_overrides_runpath=yes
10647   shlibpath_var=DYLD_LIBRARY_PATH
10648   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10649
10650   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10651   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10652   ;;
10653
10654 dgux*)
10655   version_type=linux
10656   need_lib_prefix=no
10657   need_version=no
10658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10659   soname_spec='${libname}${release}${shared_ext}$major'
10660   shlibpath_var=LD_LIBRARY_PATH
10661   ;;
10662
10663 freebsd1*)
10664   dynamic_linker=no
10665   ;;
10666
10667 freebsd* | dragonfly*)
10668   # DragonFly does not have aout.  When/if they implement a new
10669   # versioning mechanism, adjust this.
10670   if test -x /usr/bin/objformat; then
10671     objformat=`/usr/bin/objformat`
10672   else
10673     case $host_os in
10674     freebsd[123]*) objformat=aout ;;
10675     *) objformat=elf ;;
10676     esac
10677   fi
10678   version_type=freebsd-$objformat
10679   case $version_type in
10680     freebsd-elf*)
10681       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10682       need_version=no
10683       need_lib_prefix=no
10684       ;;
10685     freebsd-*)
10686       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10687       need_version=yes
10688       ;;
10689   esac
10690   shlibpath_var=LD_LIBRARY_PATH
10691   case $host_os in
10692   freebsd2*)
10693     shlibpath_overrides_runpath=yes
10694     ;;
10695   freebsd3.[01]* | freebsdelf3.[01]*)
10696     shlibpath_overrides_runpath=yes
10697     hardcode_into_libs=yes
10698     ;;
10699   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10700   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10701     shlibpath_overrides_runpath=no
10702     hardcode_into_libs=yes
10703     ;;
10704   *) # from 4.6 on, and DragonFly
10705     shlibpath_overrides_runpath=yes
10706     hardcode_into_libs=yes
10707     ;;
10708   esac
10709   ;;
10710
10711 gnu*)
10712   version_type=linux
10713   need_lib_prefix=no
10714   need_version=no
10715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10716   soname_spec='${libname}${release}${shared_ext}$major'
10717   shlibpath_var=LD_LIBRARY_PATH
10718   hardcode_into_libs=yes
10719   ;;
10720
10721 hpux9* | hpux10* | hpux11*)
10722   # Give a soname corresponding to the major version so that dld.sl refuses to
10723   # link against other versions.
10724   version_type=sunos
10725   need_lib_prefix=no
10726   need_version=no
10727   case $host_cpu in
10728   ia64*)
10729     shrext_cmds='.so'
10730     hardcode_into_libs=yes
10731     dynamic_linker="$host_os dld.so"
10732     shlibpath_var=LD_LIBRARY_PATH
10733     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10734     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10735     soname_spec='${libname}${release}${shared_ext}$major'
10736     if test "X$HPUX_IA64_MODE" = X32; then
10737       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10738     else
10739       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10740     fi
10741     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10742     ;;
10743   hppa*64*)
10744     shrext_cmds='.sl'
10745     hardcode_into_libs=yes
10746     dynamic_linker="$host_os dld.sl"
10747     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10748     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10749     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750     soname_spec='${libname}${release}${shared_ext}$major'
10751     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10752     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10753     ;;
10754   *)
10755     shrext_cmds='.sl'
10756     dynamic_linker="$host_os dld.sl"
10757     shlibpath_var=SHLIB_PATH
10758     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10759     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760     soname_spec='${libname}${release}${shared_ext}$major'
10761     ;;
10762   esac
10763   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10764   postinstall_cmds='chmod 555 $lib'
10765   ;;
10766
10767 interix[3-9]*)
10768   version_type=linux
10769   need_lib_prefix=no
10770   need_version=no
10771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10772   soname_spec='${libname}${release}${shared_ext}$major'
10773   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10774   shlibpath_var=LD_LIBRARY_PATH
10775   shlibpath_overrides_runpath=no
10776   hardcode_into_libs=yes
10777   ;;
10778
10779 irix5* | irix6* | nonstopux*)
10780   case $host_os in
10781     nonstopux*) version_type=nonstopux ;;
10782     *)
10783         if test "$lt_cv_prog_gnu_ld" = yes; then
10784                 version_type=linux
10785         else
10786                 version_type=irix
10787         fi ;;
10788   esac
10789   need_lib_prefix=no
10790   need_version=no
10791   soname_spec='${libname}${release}${shared_ext}$major'
10792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10793   case $host_os in
10794   irix5* | nonstopux*)
10795     libsuff= shlibsuff=
10796     ;;
10797   *)
10798     case $LD in # libtool.m4 will add one of these switches to LD
10799     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10800       libsuff= shlibsuff= libmagic=32-bit;;
10801     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10802       libsuff=32 shlibsuff=N32 libmagic=N32;;
10803     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10804       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10805     *) libsuff= shlibsuff= libmagic=never-match;;
10806     esac
10807     ;;
10808   esac
10809   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10810   shlibpath_overrides_runpath=no
10811   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10812   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10813   hardcode_into_libs=yes
10814   ;;
10815
10816 # No shared lib support for Linux oldld, aout, or coff.
10817 linux*oldld* | linux*aout* | linux*coff*)
10818   dynamic_linker=no
10819   ;;
10820
10821 # This must be Linux ELF.
10822 linux* | k*bsd*-gnu)
10823   version_type=linux
10824   need_lib_prefix=no
10825   need_version=no
10826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10827   soname_spec='${libname}${release}${shared_ext}$major'
10828   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10829   shlibpath_var=LD_LIBRARY_PATH
10830   shlibpath_overrides_runpath=no
10831   # Some binutils ld are patched to set DT_RUNPATH
10832   save_LDFLAGS=$LDFLAGS
10833   save_libdir=$libdir
10834   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10835        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10836   cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h.  */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h.  */
10842
10843 int
10844 main ()
10845 {
10846
10847   ;
10848   return 0;
10849 }
10850 _ACEOF
10851 rm -f conftest.$ac_objext conftest$ac_exeext
10852 if { (ac_try="$ac_link"
10853 case "(($ac_try" in
10854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855   *) ac_try_echo=$ac_try;;
10856 esac
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858   (eval "$ac_link") 2>conftest.er1
10859   ac_status=$?
10860   grep -v '^ *+' conftest.er1 >conftest.err
10861   rm -f conftest.er1
10862   cat conftest.err >&5
10863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864   (exit $ac_status); } && {
10865          test -z "$ac_c_werror_flag" ||
10866          test ! -s conftest.err
10867        } && test -s conftest$ac_exeext &&
10868        $as_test_x conftest$ac_exeext; then
10869   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10870   shlibpath_overrides_runpath=yes
10871 fi
10872
10873 else
10874   echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10876
10877
10878 fi
10879
10880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10881       conftest$ac_exeext conftest.$ac_ext
10882   LDFLAGS=$save_LDFLAGS
10883   libdir=$save_libdir
10884
10885   # This implies no fast_install, which is unacceptable.
10886   # Some rework will be needed to allow for fast_install
10887   # before this can be enabled.
10888   hardcode_into_libs=yes
10889
10890   # Append ld.so.conf contents to the search path
10891   if test -f /etc/ld.so.conf; then
10892     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' ' '`
10893     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10894   fi
10895
10896   # We used to test for /lib/ld.so.1 and disable shared libraries on
10897   # powerpc, because MkLinux only supported shared libraries with the
10898   # GNU dynamic linker.  Since this was broken with cross compilers,
10899   # most powerpc-linux boxes support dynamic linking these days and
10900   # people can always --disable-shared, the test was removed, and we
10901   # assume the GNU/Linux dynamic linker is in use.
10902   dynamic_linker='GNU/Linux ld.so'
10903   ;;
10904
10905 netbsd*)
10906   version_type=sunos
10907   need_lib_prefix=no
10908   need_version=no
10909   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10910     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10911     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10912     dynamic_linker='NetBSD (a.out) ld.so'
10913   else
10914     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10915     soname_spec='${libname}${release}${shared_ext}$major'
10916     dynamic_linker='NetBSD ld.elf_so'
10917   fi
10918   shlibpath_var=LD_LIBRARY_PATH
10919   shlibpath_overrides_runpath=yes
10920   hardcode_into_libs=yes
10921   ;;
10922
10923 newsos6)
10924   version_type=linux
10925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926   shlibpath_var=LD_LIBRARY_PATH
10927   shlibpath_overrides_runpath=yes
10928   ;;
10929
10930 *nto* | *qnx*)
10931   version_type=qnx
10932   need_lib_prefix=no
10933   need_version=no
10934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10935   soname_spec='${libname}${release}${shared_ext}$major'
10936   shlibpath_var=LD_LIBRARY_PATH
10937   shlibpath_overrides_runpath=no
10938   hardcode_into_libs=yes
10939   dynamic_linker='ldqnx.so'
10940   ;;
10941
10942 openbsd*)
10943   version_type=sunos
10944   sys_lib_dlsearch_path_spec="/usr/lib"
10945   need_lib_prefix=no
10946   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10947   case $host_os in
10948     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10949     *)                          need_version=no  ;;
10950   esac
10951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10952   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10953   shlibpath_var=LD_LIBRARY_PATH
10954   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10955     case $host_os in
10956       openbsd2.[89] | openbsd2.[89].*)
10957         shlibpath_overrides_runpath=no
10958         ;;
10959       *)
10960         shlibpath_overrides_runpath=yes
10961         ;;
10962       esac
10963   else
10964     shlibpath_overrides_runpath=yes
10965   fi
10966   ;;
10967
10968 os2*)
10969   libname_spec='$name'
10970   shrext_cmds=".dll"
10971   need_lib_prefix=no
10972   library_names_spec='$libname${shared_ext} $libname.a'
10973   dynamic_linker='OS/2 ld.exe'
10974   shlibpath_var=LIBPATH
10975   ;;
10976
10977 osf3* | osf4* | osf5*)
10978   version_type=osf
10979   need_lib_prefix=no
10980   need_version=no
10981   soname_spec='${libname}${release}${shared_ext}$major'
10982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983   shlibpath_var=LD_LIBRARY_PATH
10984   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10985   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10986   ;;
10987
10988 rdos*)
10989   dynamic_linker=no
10990   ;;
10991
10992 solaris*)
10993   version_type=linux
10994   need_lib_prefix=no
10995   need_version=no
10996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10997   soname_spec='${libname}${release}${shared_ext}$major'
10998   shlibpath_var=LD_LIBRARY_PATH
10999   shlibpath_overrides_runpath=yes
11000   hardcode_into_libs=yes
11001   # ldd complains unless libraries are executable
11002   postinstall_cmds='chmod +x $lib'
11003   ;;
11004
11005 sunos4*)
11006   version_type=sunos
11007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11008   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11009   shlibpath_var=LD_LIBRARY_PATH
11010   shlibpath_overrides_runpath=yes
11011   if test "$with_gnu_ld" = yes; then
11012     need_lib_prefix=no
11013   fi
11014   need_version=yes
11015   ;;
11016
11017 sysv4 | sysv4.3*)
11018   version_type=linux
11019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11020   soname_spec='${libname}${release}${shared_ext}$major'
11021   shlibpath_var=LD_LIBRARY_PATH
11022   case $host_vendor in
11023     sni)
11024       shlibpath_overrides_runpath=no
11025       need_lib_prefix=no
11026       runpath_var=LD_RUN_PATH
11027       ;;
11028     siemens)
11029       need_lib_prefix=no
11030       ;;
11031     motorola)
11032       need_lib_prefix=no
11033       need_version=no
11034       shlibpath_overrides_runpath=no
11035       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11036       ;;
11037   esac
11038   ;;
11039
11040 sysv4*MP*)
11041   if test -d /usr/nec ;then
11042     version_type=linux
11043     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11044     soname_spec='$libname${shared_ext}.$major'
11045     shlibpath_var=LD_LIBRARY_PATH
11046   fi
11047   ;;
11048
11049 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11050   version_type=freebsd-elf
11051   need_lib_prefix=no
11052   need_version=no
11053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11054   soname_spec='${libname}${release}${shared_ext}$major'
11055   shlibpath_var=LD_LIBRARY_PATH
11056   shlibpath_overrides_runpath=yes
11057   hardcode_into_libs=yes
11058   if test "$with_gnu_ld" = yes; then
11059     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11060   else
11061     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11062     case $host_os in
11063       sco3.2v5*)
11064         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11065         ;;
11066     esac
11067   fi
11068   sys_lib_dlsearch_path_spec='/usr/lib'
11069   ;;
11070
11071 tpf*)
11072   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11073   version_type=linux
11074   need_lib_prefix=no
11075   need_version=no
11076   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077   shlibpath_var=LD_LIBRARY_PATH
11078   shlibpath_overrides_runpath=no
11079   hardcode_into_libs=yes
11080   ;;
11081
11082 uts4*)
11083   version_type=linux
11084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085   soname_spec='${libname}${release}${shared_ext}$major'
11086   shlibpath_var=LD_LIBRARY_PATH
11087   ;;
11088
11089 *)
11090   dynamic_linker=no
11091   ;;
11092 esac
11093 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11094 echo "${ECHO_T}$dynamic_linker" >&6; }
11095 test "$dynamic_linker" = no && can_build_shared=no
11096
11097 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11098 if test "$GCC" = yes; then
11099   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11100 fi
11101
11102 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11103   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11104 fi
11105 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11106   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11107 fi
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11196 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11197 hardcode_action=
11198 if test -n "$hardcode_libdir_flag_spec" ||
11199    test -n "$runpath_var" ||
11200    test "X$hardcode_automatic" = "Xyes" ; then
11201
11202   # We can hardcode non-existent directories.
11203   if test "$hardcode_direct" != no &&
11204      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11205      # have to relink, otherwise we might link with an installed library
11206      # when we should be linking with a yet-to-be-installed one
11207      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11208      test "$hardcode_minus_L" != no; then
11209     # Linking always hardcodes the temporary library directory.
11210     hardcode_action=relink
11211   else
11212     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11213     hardcode_action=immediate
11214   fi
11215 else
11216   # We cannot hardcode anything, or else we can only hardcode existing
11217   # directories.
11218   hardcode_action=unsupported
11219 fi
11220 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11221 echo "${ECHO_T}$hardcode_action" >&6; }
11222
11223 if test "$hardcode_action" = relink ||
11224    test "$inherit_rpath" = yes; then
11225   # Fast installation is not supported
11226   enable_fast_install=no
11227 elif test "$shlibpath_overrides_runpath" = yes ||
11228      test "$enable_shared" = no; then
11229   # Fast installation is not necessary
11230   enable_fast_install=needless
11231 fi
11232
11233
11234
11235
11236
11237
11238   if test "x$enable_dlopen" != xyes; then
11239   enable_dlopen=unknown
11240   enable_dlopen_self=unknown
11241   enable_dlopen_self_static=unknown
11242 else
11243   lt_cv_dlopen=no
11244   lt_cv_dlopen_libs=
11245
11246   case $host_os in
11247   beos*)
11248     lt_cv_dlopen="load_add_on"
11249     lt_cv_dlopen_libs=
11250     lt_cv_dlopen_self=yes
11251     ;;
11252
11253   mingw* | pw32*)
11254     lt_cv_dlopen="LoadLibrary"
11255     lt_cv_dlopen_libs=
11256     ;;
11257
11258   cygwin*)
11259     lt_cv_dlopen="dlopen"
11260     lt_cv_dlopen_libs=
11261     ;;
11262
11263   darwin*)
11264   # if libdl is installed we need to link against it
11265     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11266 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11267 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11268   echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270   ac_check_lib_save_LIBS=$LIBS
11271 LIBS="-ldl  $LIBS"
11272 cat >conftest.$ac_ext <<_ACEOF
11273 /* confdefs.h.  */
11274 _ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h.  */
11278
11279 /* Override any GCC internal prototype to avoid an error.
11280    Use char because int might match the return type of a GCC
11281    builtin and then its argument prototype would still apply.  */
11282 #ifdef __cplusplus
11283 extern "C"
11284 #endif
11285 char dlopen ();
11286 int
11287 main ()
11288 {
11289 return dlopen ();
11290   ;
11291   return 0;
11292 }
11293 _ACEOF
11294 rm -f conftest.$ac_objext conftest$ac_exeext
11295 if { (ac_try="$ac_link"
11296 case "(($ac_try" in
11297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298   *) ac_try_echo=$ac_try;;
11299 esac
11300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301   (eval "$ac_link") 2>conftest.er1
11302   ac_status=$?
11303   grep -v '^ *+' conftest.er1 >conftest.err
11304   rm -f conftest.er1
11305   cat conftest.err >&5
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); } && {
11308          test -z "$ac_c_werror_flag" ||
11309          test ! -s conftest.err
11310        } && test -s conftest$ac_exeext &&
11311        $as_test_x conftest$ac_exeext; then
11312   ac_cv_lib_dl_dlopen=yes
11313 else
11314   echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11316
11317         ac_cv_lib_dl_dlopen=no
11318 fi
11319
11320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11321       conftest$ac_exeext conftest.$ac_ext
11322 LIBS=$ac_check_lib_save_LIBS
11323 fi
11324 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11325 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11326 if test $ac_cv_lib_dl_dlopen = yes; then
11327   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11328 else
11329
11330     lt_cv_dlopen="dyld"
11331     lt_cv_dlopen_libs=
11332     lt_cv_dlopen_self=yes
11333
11334 fi
11335
11336     ;;
11337
11338   *)
11339     { echo "$as_me:$LINENO: checking for shl_load" >&5
11340 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11341 if test "${ac_cv_func_shl_load+set}" = set; then
11342   echo $ECHO_N "(cached) $ECHO_C" >&6
11343 else
11344   cat >conftest.$ac_ext <<_ACEOF
11345 /* confdefs.h.  */
11346 _ACEOF
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h.  */
11350 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11352 #define shl_load innocuous_shl_load
11353
11354 /* System header to define __stub macros and hopefully few prototypes,
11355     which can conflict with char shl_load (); below.
11356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11357     <limits.h> exists even on freestanding compilers.  */
11358
11359 #ifdef __STDC__
11360 # include <limits.h>
11361 #else
11362 # include <assert.h>
11363 #endif
11364
11365 #undef shl_load
11366
11367 /* Override any GCC internal prototype to avoid an error.
11368    Use char because int might match the return type of a GCC
11369    builtin and then its argument prototype would still apply.  */
11370 #ifdef __cplusplus
11371 extern "C"
11372 #endif
11373 char shl_load ();
11374 /* The GNU C library defines this for functions which it implements
11375     to always fail with ENOSYS.  Some functions are actually named
11376     something starting with __ and the normal name is an alias.  */
11377 #if defined __stub_shl_load || defined __stub___shl_load
11378 choke me
11379 #endif
11380
11381 int
11382 main ()
11383 {
11384 return shl_load ();
11385   ;
11386   return 0;
11387 }
11388 _ACEOF
11389 rm -f conftest.$ac_objext conftest$ac_exeext
11390 if { (ac_try="$ac_link"
11391 case "(($ac_try" in
11392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393   *) ac_try_echo=$ac_try;;
11394 esac
11395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396   (eval "$ac_link") 2>conftest.er1
11397   ac_status=$?
11398   grep -v '^ *+' conftest.er1 >conftest.err
11399   rm -f conftest.er1
11400   cat conftest.err >&5
11401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402   (exit $ac_status); } && {
11403          test -z "$ac_c_werror_flag" ||
11404          test ! -s conftest.err
11405        } && test -s conftest$ac_exeext &&
11406        $as_test_x conftest$ac_exeext; then
11407   ac_cv_func_shl_load=yes
11408 else
11409   echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11411
11412         ac_cv_func_shl_load=no
11413 fi
11414
11415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11416       conftest$ac_exeext conftest.$ac_ext
11417 fi
11418 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11419 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11420 if test $ac_cv_func_shl_load = yes; then
11421   lt_cv_dlopen="shl_load"
11422 else
11423   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11424 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11425 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11426   echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428   ac_check_lib_save_LIBS=$LIBS
11429 LIBS="-ldld  $LIBS"
11430 cat >conftest.$ac_ext <<_ACEOF
11431 /* confdefs.h.  */
11432 _ACEOF
11433 cat confdefs.h >>conftest.$ac_ext
11434 cat >>conftest.$ac_ext <<_ACEOF
11435 /* end confdefs.h.  */
11436
11437 /* Override any GCC internal prototype to avoid an error.
11438    Use char because int might match the return type of a GCC
11439    builtin and then its argument prototype would still apply.  */
11440 #ifdef __cplusplus
11441 extern "C"
11442 #endif
11443 char shl_load ();
11444 int
11445 main ()
11446 {
11447 return shl_load ();
11448   ;
11449   return 0;
11450 }
11451 _ACEOF
11452 rm -f conftest.$ac_objext conftest$ac_exeext
11453 if { (ac_try="$ac_link"
11454 case "(($ac_try" in
11455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456   *) ac_try_echo=$ac_try;;
11457 esac
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459   (eval "$ac_link") 2>conftest.er1
11460   ac_status=$?
11461   grep -v '^ *+' conftest.er1 >conftest.err
11462   rm -f conftest.er1
11463   cat conftest.err >&5
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); } && {
11466          test -z "$ac_c_werror_flag" ||
11467          test ! -s conftest.err
11468        } && test -s conftest$ac_exeext &&
11469        $as_test_x conftest$ac_exeext; then
11470   ac_cv_lib_dld_shl_load=yes
11471 else
11472   echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11474
11475         ac_cv_lib_dld_shl_load=no
11476 fi
11477
11478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11479       conftest$ac_exeext conftest.$ac_ext
11480 LIBS=$ac_check_lib_save_LIBS
11481 fi
11482 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11483 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11484 if test $ac_cv_lib_dld_shl_load = yes; then
11485   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11486 else
11487   { echo "$as_me:$LINENO: checking for dlopen" >&5
11488 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11489 if test "${ac_cv_func_dlopen+set}" = set; then
11490   echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492   cat >conftest.$ac_ext <<_ACEOF
11493 /* confdefs.h.  */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h.  */
11498 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11500 #define dlopen innocuous_dlopen
11501
11502 /* System header to define __stub macros and hopefully few prototypes,
11503     which can conflict with char dlopen (); below.
11504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11505     <limits.h> exists even on freestanding compilers.  */
11506
11507 #ifdef __STDC__
11508 # include <limits.h>
11509 #else
11510 # include <assert.h>
11511 #endif
11512
11513 #undef dlopen
11514
11515 /* Override any GCC internal prototype to avoid an error.
11516    Use char because int might match the return type of a GCC
11517    builtin and then its argument prototype would still apply.  */
11518 #ifdef __cplusplus
11519 extern "C"
11520 #endif
11521 char dlopen ();
11522 /* The GNU C library defines this for functions which it implements
11523     to always fail with ENOSYS.  Some functions are actually named
11524     something starting with __ and the normal name is an alias.  */
11525 #if defined __stub_dlopen || defined __stub___dlopen
11526 choke me
11527 #endif
11528
11529 int
11530 main ()
11531 {
11532 return dlopen ();
11533   ;
11534   return 0;
11535 }
11536 _ACEOF
11537 rm -f conftest.$ac_objext conftest$ac_exeext
11538 if { (ac_try="$ac_link"
11539 case "(($ac_try" in
11540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541   *) ac_try_echo=$ac_try;;
11542 esac
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544   (eval "$ac_link") 2>conftest.er1
11545   ac_status=$?
11546   grep -v '^ *+' conftest.er1 >conftest.err
11547   rm -f conftest.er1
11548   cat conftest.err >&5
11549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550   (exit $ac_status); } && {
11551          test -z "$ac_c_werror_flag" ||
11552          test ! -s conftest.err
11553        } && test -s conftest$ac_exeext &&
11554        $as_test_x conftest$ac_exeext; then
11555   ac_cv_func_dlopen=yes
11556 else
11557   echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560         ac_cv_func_dlopen=no
11561 fi
11562
11563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11564       conftest$ac_exeext conftest.$ac_ext
11565 fi
11566 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11567 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11568 if test $ac_cv_func_dlopen = yes; then
11569   lt_cv_dlopen="dlopen"
11570 else
11571   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11572 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11573 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11574   echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576   ac_check_lib_save_LIBS=$LIBS
11577 LIBS="-ldl  $LIBS"
11578 cat >conftest.$ac_ext <<_ACEOF
11579 /* confdefs.h.  */
11580 _ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h.  */
11584
11585 /* Override any GCC internal prototype to avoid an error.
11586    Use char because int might match the return type of a GCC
11587    builtin and then its argument prototype would still apply.  */
11588 #ifdef __cplusplus
11589 extern "C"
11590 #endif
11591 char dlopen ();
11592 int
11593 main ()
11594 {
11595 return dlopen ();
11596   ;
11597   return 0;
11598 }
11599 _ACEOF
11600 rm -f conftest.$ac_objext conftest$ac_exeext
11601 if { (ac_try="$ac_link"
11602 case "(($ac_try" in
11603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604   *) ac_try_echo=$ac_try;;
11605 esac
11606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11607   (eval "$ac_link") 2>conftest.er1
11608   ac_status=$?
11609   grep -v '^ *+' conftest.er1 >conftest.err
11610   rm -f conftest.er1
11611   cat conftest.err >&5
11612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613   (exit $ac_status); } && {
11614          test -z "$ac_c_werror_flag" ||
11615          test ! -s conftest.err
11616        } && test -s conftest$ac_exeext &&
11617        $as_test_x conftest$ac_exeext; then
11618   ac_cv_lib_dl_dlopen=yes
11619 else
11620   echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11622
11623         ac_cv_lib_dl_dlopen=no
11624 fi
11625
11626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11627       conftest$ac_exeext conftest.$ac_ext
11628 LIBS=$ac_check_lib_save_LIBS
11629 fi
11630 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11631 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11632 if test $ac_cv_lib_dl_dlopen = yes; then
11633   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11634 else
11635   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11636 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11637 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11638   echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640   ac_check_lib_save_LIBS=$LIBS
11641 LIBS="-lsvld  $LIBS"
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h.  */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h.  */
11648
11649 /* Override any GCC internal prototype to avoid an error.
11650    Use char because int might match the return type of a GCC
11651    builtin and then its argument prototype would still apply.  */
11652 #ifdef __cplusplus
11653 extern "C"
11654 #endif
11655 char dlopen ();
11656 int
11657 main ()
11658 {
11659 return dlopen ();
11660   ;
11661   return 0;
11662 }
11663 _ACEOF
11664 rm -f conftest.$ac_objext conftest$ac_exeext
11665 if { (ac_try="$ac_link"
11666 case "(($ac_try" in
11667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668   *) ac_try_echo=$ac_try;;
11669 esac
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671   (eval "$ac_link") 2>conftest.er1
11672   ac_status=$?
11673   grep -v '^ *+' conftest.er1 >conftest.err
11674   rm -f conftest.er1
11675   cat conftest.err >&5
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); } && {
11678          test -z "$ac_c_werror_flag" ||
11679          test ! -s conftest.err
11680        } && test -s conftest$ac_exeext &&
11681        $as_test_x conftest$ac_exeext; then
11682   ac_cv_lib_svld_dlopen=yes
11683 else
11684   echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11686
11687         ac_cv_lib_svld_dlopen=no
11688 fi
11689
11690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11691       conftest$ac_exeext conftest.$ac_ext
11692 LIBS=$ac_check_lib_save_LIBS
11693 fi
11694 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11695 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11696 if test $ac_cv_lib_svld_dlopen = yes; then
11697   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11698 else
11699   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11700 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11701 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11702   echo $ECHO_N "(cached) $ECHO_C" >&6
11703 else
11704   ac_check_lib_save_LIBS=$LIBS
11705 LIBS="-ldld  $LIBS"
11706 cat >conftest.$ac_ext <<_ACEOF
11707 /* confdefs.h.  */
11708 _ACEOF
11709 cat confdefs.h >>conftest.$ac_ext
11710 cat >>conftest.$ac_ext <<_ACEOF
11711 /* end confdefs.h.  */
11712
11713 /* Override any GCC internal prototype to avoid an error.
11714    Use char because int might match the return type of a GCC
11715    builtin and then its argument prototype would still apply.  */
11716 #ifdef __cplusplus
11717 extern "C"
11718 #endif
11719 char dld_link ();
11720 int
11721 main ()
11722 {
11723 return dld_link ();
11724   ;
11725   return 0;
11726 }
11727 _ACEOF
11728 rm -f conftest.$ac_objext conftest$ac_exeext
11729 if { (ac_try="$ac_link"
11730 case "(($ac_try" in
11731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11732   *) ac_try_echo=$ac_try;;
11733 esac
11734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11735   (eval "$ac_link") 2>conftest.er1
11736   ac_status=$?
11737   grep -v '^ *+' conftest.er1 >conftest.err
11738   rm -f conftest.er1
11739   cat conftest.err >&5
11740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741   (exit $ac_status); } && {
11742          test -z "$ac_c_werror_flag" ||
11743          test ! -s conftest.err
11744        } && test -s conftest$ac_exeext &&
11745        $as_test_x conftest$ac_exeext; then
11746   ac_cv_lib_dld_dld_link=yes
11747 else
11748   echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.$ac_ext >&5
11750
11751         ac_cv_lib_dld_dld_link=no
11752 fi
11753
11754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11755       conftest$ac_exeext conftest.$ac_ext
11756 LIBS=$ac_check_lib_save_LIBS
11757 fi
11758 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11759 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11760 if test $ac_cv_lib_dld_dld_link = yes; then
11761   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11762 fi
11763
11764
11765 fi
11766
11767
11768 fi
11769
11770
11771 fi
11772
11773
11774 fi
11775
11776
11777 fi
11778
11779     ;;
11780   esac
11781
11782   if test "x$lt_cv_dlopen" != xno; then
11783     enable_dlopen=yes
11784   else
11785     enable_dlopen=no
11786   fi
11787
11788   case $lt_cv_dlopen in
11789   dlopen)
11790     save_CPPFLAGS="$CPPFLAGS"
11791     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11792
11793     save_LDFLAGS="$LDFLAGS"
11794     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11795
11796     save_LIBS="$LIBS"
11797     LIBS="$lt_cv_dlopen_libs $LIBS"
11798
11799     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11800 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11801 if test "${lt_cv_dlopen_self+set}" = set; then
11802   echo $ECHO_N "(cached) $ECHO_C" >&6
11803 else
11804           if test "$cross_compiling" = yes; then :
11805   lt_cv_dlopen_self=cross
11806 else
11807   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11808   lt_status=$lt_dlunknown
11809   cat > conftest.$ac_ext <<_LT_EOF
11810 #line 11810 "configure"
11811 #include "confdefs.h"
11812
11813 #if HAVE_DLFCN_H
11814 #include <dlfcn.h>
11815 #endif
11816
11817 #include <stdio.h>
11818
11819 #ifdef RTLD_GLOBAL
11820 #  define LT_DLGLOBAL           RTLD_GLOBAL
11821 #else
11822 #  ifdef DL_GLOBAL
11823 #    define LT_DLGLOBAL         DL_GLOBAL
11824 #  else
11825 #    define LT_DLGLOBAL         0
11826 #  endif
11827 #endif
11828
11829 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11830    find out it does not work in some platform. */
11831 #ifndef LT_DLLAZY_OR_NOW
11832 #  ifdef RTLD_LAZY
11833 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11834 #  else
11835 #    ifdef DL_LAZY
11836 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11837 #    else
11838 #      ifdef RTLD_NOW
11839 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11840 #      else
11841 #        ifdef DL_NOW
11842 #          define LT_DLLAZY_OR_NOW      DL_NOW
11843 #        else
11844 #          define LT_DLLAZY_OR_NOW      0
11845 #        endif
11846 #      endif
11847 #    endif
11848 #  endif
11849 #endif
11850
11851 #ifdef __cplusplus
11852 extern "C" void exit (int);
11853 #endif
11854
11855 void fnord() { int i=42;}
11856 int main ()
11857 {
11858   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11859   int status = $lt_dlunknown;
11860
11861   if (self)
11862     {
11863       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11864       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11865       /* dlclose (self); */
11866     }
11867   else
11868     puts (dlerror ());
11869
11870     exit (status);
11871 }
11872 _LT_EOF
11873   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874   (eval $ac_link) 2>&5
11875   ac_status=$?
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11878     (./conftest; exit; ) >&5 2>/dev/null
11879     lt_status=$?
11880     case x$lt_status in
11881       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11882       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11883       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11884     esac
11885   else :
11886     # compilation failed
11887     lt_cv_dlopen_self=no
11888   fi
11889 fi
11890 rm -fr conftest*
11891
11892
11893 fi
11894 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11895 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11896
11897     if test "x$lt_cv_dlopen_self" = xyes; then
11898       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11899       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11900 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11901 if test "${lt_cv_dlopen_self_static+set}" = set; then
11902   echo $ECHO_N "(cached) $ECHO_C" >&6
11903 else
11904           if test "$cross_compiling" = yes; then :
11905   lt_cv_dlopen_self_static=cross
11906 else
11907   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11908   lt_status=$lt_dlunknown
11909   cat > conftest.$ac_ext <<_LT_EOF
11910 #line 11910 "configure"
11911 #include "confdefs.h"
11912
11913 #if HAVE_DLFCN_H
11914 #include <dlfcn.h>
11915 #endif
11916
11917 #include <stdio.h>
11918
11919 #ifdef RTLD_GLOBAL
11920 #  define LT_DLGLOBAL           RTLD_GLOBAL
11921 #else
11922 #  ifdef DL_GLOBAL
11923 #    define LT_DLGLOBAL         DL_GLOBAL
11924 #  else
11925 #    define LT_DLGLOBAL         0
11926 #  endif
11927 #endif
11928
11929 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11930    find out it does not work in some platform. */
11931 #ifndef LT_DLLAZY_OR_NOW
11932 #  ifdef RTLD_LAZY
11933 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11934 #  else
11935 #    ifdef DL_LAZY
11936 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11937 #    else
11938 #      ifdef RTLD_NOW
11939 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11940 #      else
11941 #        ifdef DL_NOW
11942 #          define LT_DLLAZY_OR_NOW      DL_NOW
11943 #        else
11944 #          define LT_DLLAZY_OR_NOW      0
11945 #        endif
11946 #      endif
11947 #    endif
11948 #  endif
11949 #endif
11950
11951 #ifdef __cplusplus
11952 extern "C" void exit (int);
11953 #endif
11954
11955 void fnord() { int i=42;}
11956 int main ()
11957 {
11958   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11959   int status = $lt_dlunknown;
11960
11961   if (self)
11962     {
11963       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11964       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11965       /* dlclose (self); */
11966     }
11967   else
11968     puts (dlerror ());
11969
11970     exit (status);
11971 }
11972 _LT_EOF
11973   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11974   (eval $ac_link) 2>&5
11975   ac_status=$?
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11978     (./conftest; exit; ) >&5 2>/dev/null
11979     lt_status=$?
11980     case x$lt_status in
11981       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11982       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11983       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11984     esac
11985   else :
11986     # compilation failed
11987     lt_cv_dlopen_self_static=no
11988   fi
11989 fi
11990 rm -fr conftest*
11991
11992
11993 fi
11994 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11995 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11996     fi
11997
11998     CPPFLAGS="$save_CPPFLAGS"
11999     LDFLAGS="$save_LDFLAGS"
12000     LIBS="$save_LIBS"
12001     ;;
12002   esac
12003
12004   case $lt_cv_dlopen_self in
12005   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12006   *) enable_dlopen_self=unknown ;;
12007   esac
12008
12009   case $lt_cv_dlopen_self_static in
12010   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12011   *) enable_dlopen_self_static=unknown ;;
12012   esac
12013 fi
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031 striplib=
12032 old_striplib=
12033 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12034 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12035 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12036   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12037   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12038   { echo "$as_me:$LINENO: result: yes" >&5
12039 echo "${ECHO_T}yes" >&6; }
12040 else
12041 # FIXME - insert some real tests, host_os isn't really good enough
12042   case $host_os in
12043   darwin*)
12044     if test -n "$STRIP" ; then
12045       striplib="$STRIP -x"
12046       old_striplib="$STRIP -S"
12047       { echo "$as_me:$LINENO: result: yes" >&5
12048 echo "${ECHO_T}yes" >&6; }
12049     else
12050       { echo "$as_me:$LINENO: result: no" >&5
12051 echo "${ECHO_T}no" >&6; }
12052     fi
12053     ;;
12054   *)
12055     { echo "$as_me:$LINENO: result: no" >&5
12056 echo "${ECHO_T}no" >&6; }
12057     ;;
12058   esac
12059 fi
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072   # Report which library types will actually be built
12073   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12074 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12075   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12076 echo "${ECHO_T}$can_build_shared" >&6; }
12077
12078   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12079 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12080   test "$can_build_shared" = "no" && enable_shared=no
12081
12082   # On AIX, shared libraries and static libraries use the same namespace, and
12083   # are all built from PIC.
12084   case $host_os in
12085   aix3*)
12086     test "$enable_shared" = yes && enable_static=no
12087     if test -n "$RANLIB"; then
12088       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12089       postinstall_cmds='$RANLIB $lib'
12090     fi
12091     ;;
12092
12093   aix[4-9]*)
12094     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12095       test "$enable_shared" = yes && enable_static=no
12096     fi
12097     ;;
12098   esac
12099   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12100 echo "${ECHO_T}$enable_shared" >&6; }
12101
12102   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12103 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12104   # Make sure either enable_shared or enable_static is yes.
12105   test "$enable_shared" = yes || enable_static=yes
12106   { echo "$as_me:$LINENO: result: $enable_static" >&5
12107 echo "${ECHO_T}$enable_static" >&6; }
12108
12109
12110
12111
12112 fi
12113 ac_ext=c
12114 ac_cpp='$CPP $CPPFLAGS'
12115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12118
12119 CC="$lt_save_CC"
12120
12121
12122 ac_ext=cpp
12123 ac_cpp='$CXXCPP $CPPFLAGS'
12124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12127
12128 archive_cmds_need_lc_CXX=no
12129 allow_undefined_flag_CXX=
12130 always_export_symbols_CXX=no
12131 archive_expsym_cmds_CXX=
12132 compiler_needs_object_CXX=no
12133 export_dynamic_flag_spec_CXX=
12134 hardcode_direct_CXX=no
12135 hardcode_direct_absolute_CXX=no
12136 hardcode_libdir_flag_spec_CXX=
12137 hardcode_libdir_flag_spec_ld_CXX=
12138 hardcode_libdir_separator_CXX=
12139 hardcode_minus_L_CXX=no
12140 hardcode_shlibpath_var_CXX=unsupported
12141 hardcode_automatic_CXX=no
12142 inherit_rpath_CXX=no
12143 module_cmds_CXX=
12144 module_expsym_cmds_CXX=
12145 link_all_deplibs_CXX=unknown
12146 old_archive_cmds_CXX=$old_archive_cmds
12147 no_undefined_flag_CXX=
12148 whole_archive_flag_spec_CXX=
12149 enable_shared_with_static_runtimes_CXX=no
12150
12151 # Source file extension for C++ test sources.
12152 ac_ext=cpp
12153
12154 # Object file extension for compiled C++ test sources.
12155 objext=o
12156 objext_CXX=$objext
12157
12158 # No sense in running all these tests if we already determined that
12159 # the CXX compiler isn't working.  Some variables (like enable_shared)
12160 # are currently assumed to apply to all compilers on this platform,
12161 # and will be corrupted by setting them based on a non-working compiler.
12162 if test "$_lt_caught_CXX_error" != yes; then
12163   # Code to be used in simple compile tests
12164   lt_simple_compile_test_code="int some_variable = 0;"
12165
12166   # Code to be used in simple link tests
12167   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12168
12169   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12170
12171
12172
12173
12174
12175
12176 # If no C compiler was specified, use CC.
12177 LTCC=${LTCC-"$CC"}
12178
12179 # If no C compiler flags were specified, use CFLAGS.
12180 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12181
12182 # Allow CC to be a program name with arguments.
12183 compiler=$CC
12184
12185
12186   # save warnings/boilerplate of simple test code
12187   ac_outfile=conftest.$ac_objext
12188 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12189 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12190 _lt_compiler_boilerplate=`cat conftest.err`
12191 $RM conftest*
12192
12193   ac_outfile=conftest.$ac_objext
12194 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12195 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12196 _lt_linker_boilerplate=`cat conftest.err`
12197 $RM -r conftest*
12198
12199
12200   # Allow CC to be a program name with arguments.
12201   lt_save_CC=$CC
12202   lt_save_LD=$LD
12203   lt_save_GCC=$GCC
12204   GCC=$GXX
12205   lt_save_with_gnu_ld=$with_gnu_ld
12206   lt_save_path_LD=$lt_cv_path_LD
12207   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12208     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12209   else
12210     $as_unset lt_cv_prog_gnu_ld
12211   fi
12212   if test -n "${lt_cv_path_LDCXX+set}"; then
12213     lt_cv_path_LD=$lt_cv_path_LDCXX
12214   else
12215     $as_unset lt_cv_path_LD
12216   fi
12217   test -z "${LDCXX+set}" || LD=$LDCXX
12218   CC=${CXX-"c++"}
12219   compiler=$CC
12220   compiler_CXX=$CC
12221   for cc_temp in $compiler""; do
12222   case $cc_temp in
12223     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12224     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12225     \-*) ;;
12226     *) break;;
12227   esac
12228 done
12229 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12230
12231
12232   if test -n "$compiler"; then
12233     # We don't want -fno-exception when compiling C++ code, so set the
12234     # no_builtin_flag separately
12235     if test "$GXX" = yes; then
12236       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12237     else
12238       lt_prog_compiler_no_builtin_flag_CXX=
12239     fi
12240
12241     if test "$GXX" = yes; then
12242       # Set up default GNU C++ configuration
12243
12244
12245
12246 # Check whether --with-gnu-ld was given.
12247 if test "${with_gnu_ld+set}" = set; then
12248   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12249 else
12250   with_gnu_ld=no
12251 fi
12252
12253 ac_prog=ld
12254 if test "$GCC" = yes; then
12255   # Check if gcc -print-prog-name=ld gives a path.
12256   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12257 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12258   case $host in
12259   *-*-mingw*)
12260     # gcc leaves a trailing carriage return which upsets mingw
12261     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12262   *)
12263     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12264   esac
12265   case $ac_prog in
12266     # Accept absolute paths.
12267     [\\/]* | ?:[\\/]*)
12268       re_direlt='/[^/][^/]*/\.\./'
12269       # Canonicalize the pathname of ld
12270       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12271       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12272         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12273       done
12274       test -z "$LD" && LD="$ac_prog"
12275       ;;
12276   "")
12277     # If it fails, then pretend we aren't using GCC.
12278     ac_prog=ld
12279     ;;
12280   *)
12281     # If it is relative, then search for the first ld in PATH.
12282     with_gnu_ld=unknown
12283     ;;
12284   esac
12285 elif test "$with_gnu_ld" = yes; then
12286   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12287 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12288 else
12289   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12290 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12291 fi
12292 if test "${lt_cv_path_LD+set}" = set; then
12293   echo $ECHO_N "(cached) $ECHO_C" >&6
12294 else
12295   if test -z "$LD"; then
12296   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12297   for ac_dir in $PATH; do
12298     IFS="$lt_save_ifs"
12299     test -z "$ac_dir" && ac_dir=.
12300     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12301       lt_cv_path_LD="$ac_dir/$ac_prog"
12302       # Check to see if the program is GNU ld.  I'd rather use --version,
12303       # but apparently some variants of GNU ld only accept -v.
12304       # Break only if it was the GNU/non-GNU ld that we prefer.
12305       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12306       *GNU* | *'with BFD'*)
12307         test "$with_gnu_ld" != no && break
12308         ;;
12309       *)
12310         test "$with_gnu_ld" != yes && break
12311         ;;
12312       esac
12313     fi
12314   done
12315   IFS="$lt_save_ifs"
12316 else
12317   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12318 fi
12319 fi
12320
12321 LD="$lt_cv_path_LD"
12322 if test -n "$LD"; then
12323   { echo "$as_me:$LINENO: result: $LD" >&5
12324 echo "${ECHO_T}$LD" >&6; }
12325 else
12326   { echo "$as_me:$LINENO: result: no" >&5
12327 echo "${ECHO_T}no" >&6; }
12328 fi
12329 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12330 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12331    { (exit 1); exit 1; }; }
12332 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12333 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12334 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12335   echo $ECHO_N "(cached) $ECHO_C" >&6
12336 else
12337   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12338 case `$LD -v 2>&1 </dev/null` in
12339 *GNU* | *'with BFD'*)
12340   lt_cv_prog_gnu_ld=yes
12341   ;;
12342 *)
12343   lt_cv_prog_gnu_ld=no
12344   ;;
12345 esac
12346 fi
12347 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12348 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12349 with_gnu_ld=$lt_cv_prog_gnu_ld
12350
12351
12352
12353
12354
12355
12356
12357       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12358       # archiving commands below assume that GNU ld is being used.
12359       if test "$with_gnu_ld" = yes; then
12360         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12361         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'
12362
12363         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12364         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12365
12366         # If archive_cmds runs LD, not CC, wlarc should be empty
12367         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12368         #     investigate it a little bit more. (MM)
12369         wlarc='${wl}'
12370
12371         # ancient GNU ld didn't support --whole-archive et. al.
12372         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12373           $GREP 'no-whole-archive' > /dev/null; then
12374           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12375         else
12376           whole_archive_flag_spec_CXX=
12377         fi
12378       else
12379         with_gnu_ld=no
12380         wlarc=
12381
12382         # A generic and very simple default shared library creation
12383         # command for GNU C++ for the case where it uses the native
12384         # linker, instead of GNU ld.  If possible, this setting should
12385         # overridden to take advantage of the native linker features on
12386         # the platform it is being used on.
12387         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12388       fi
12389
12390       # Commands to make compiler produce verbose output that lists
12391       # what "hidden" libraries, object files and flags are used when
12392       # linking a shared library.
12393       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12394
12395     else
12396       GXX=no
12397       with_gnu_ld=no
12398       wlarc=
12399     fi
12400
12401     # PORTME: fill in a description of your system's C++ link characteristics
12402     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12403 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12404     ld_shlibs_CXX=yes
12405     case $host_os in
12406       aix3*)
12407         # FIXME: insert proper C++ library support
12408         ld_shlibs_CXX=no
12409         ;;
12410       aix[4-9]*)
12411         if test "$host_cpu" = ia64; then
12412           # On IA64, the linker does run time linking by default, so we don't
12413           # have to do anything special.
12414           aix_use_runtimelinking=no
12415           exp_sym_flag='-Bexport'
12416           no_entry_flag=""
12417         else
12418           aix_use_runtimelinking=no
12419
12420           # Test if we are trying to use run time linking or normal
12421           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12422           # need to do runtime linking.
12423           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12424             for ld_flag in $LDFLAGS; do
12425               case $ld_flag in
12426               *-brtl*)
12427                 aix_use_runtimelinking=yes
12428                 break
12429                 ;;
12430               esac
12431             done
12432             ;;
12433           esac
12434
12435           exp_sym_flag='-bexport'
12436           no_entry_flag='-bnoentry'
12437         fi
12438
12439         # When large executables or shared objects are built, AIX ld can
12440         # have problems creating the table of contents.  If linking a library
12441         # or program results in "error TOC overflow" add -mminimal-toc to
12442         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12443         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12444
12445         archive_cmds_CXX=''
12446         hardcode_direct_CXX=yes
12447         hardcode_direct_absolute_CXX=yes
12448         hardcode_libdir_separator_CXX=':'
12449         link_all_deplibs_CXX=yes
12450         file_list_spec_CXX='${wl}-f,'
12451
12452         if test "$GXX" = yes; then
12453           case $host_os in aix4.[012]|aix4.[012].*)
12454           # We only want to do this on AIX 4.2 and lower, the check
12455           # below for broken collect2 doesn't work under 4.3+
12456           collect2name=`${CC} -print-prog-name=collect2`
12457           if test -f "$collect2name" &&
12458              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12459           then
12460             # We have reworked collect2
12461             :
12462           else
12463             # We have old collect2
12464             hardcode_direct_CXX=unsupported
12465             # It fails to find uninstalled libraries when the uninstalled
12466             # path is not listed in the libpath.  Setting hardcode_minus_L
12467             # to unsupported forces relinking
12468             hardcode_minus_L_CXX=yes
12469             hardcode_libdir_flag_spec_CXX='-L$libdir'
12470             hardcode_libdir_separator_CXX=
12471           fi
12472           esac
12473           shared_flag='-shared'
12474           if test "$aix_use_runtimelinking" = yes; then
12475             shared_flag="$shared_flag "'${wl}-G'
12476           fi
12477         else
12478           # not using gcc
12479           if test "$host_cpu" = ia64; then
12480           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12481           # chokes on -Wl,-G. The following line is correct:
12482           shared_flag='-G'
12483           else
12484             if test "$aix_use_runtimelinking" = yes; then
12485               shared_flag='${wl}-G'
12486             else
12487               shared_flag='${wl}-bM:SRE'
12488             fi
12489           fi
12490         fi
12491
12492         # It seems that -bexpall does not export symbols beginning with
12493         # underscore (_), so it is better to generate a list of symbols to
12494         # export.
12495         always_export_symbols_CXX=yes
12496         if test "$aix_use_runtimelinking" = yes; then
12497           # Warning - without using the other runtime loading flags (-brtl),
12498           # -berok will link without error, but may produce a broken library.
12499           allow_undefined_flag_CXX='-berok'
12500           # Determine the default libpath from the value encoded in an empty
12501           # executable.
12502           cat >conftest.$ac_ext <<_ACEOF
12503 /* confdefs.h.  */
12504 _ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h.  */
12508
12509 int
12510 main ()
12511 {
12512
12513   ;
12514   return 0;
12515 }
12516 _ACEOF
12517 rm -f conftest.$ac_objext conftest$ac_exeext
12518 if { (ac_try="$ac_link"
12519 case "(($ac_try" in
12520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521   *) ac_try_echo=$ac_try;;
12522 esac
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524   (eval "$ac_link") 2>conftest.er1
12525   ac_status=$?
12526   grep -v '^ *+' conftest.er1 >conftest.err
12527   rm -f conftest.er1
12528   cat conftest.err >&5
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); } && {
12531          test -z "$ac_cxx_werror_flag" ||
12532          test ! -s conftest.err
12533        } && test -s conftest$ac_exeext &&
12534        $as_test_x conftest$ac_exeext; then
12535
12536 lt_aix_libpath_sed='
12537     /Import File Strings/,/^$/ {
12538         /^0/ {
12539             s/^0  *\(.*\)$/\1/
12540             p
12541         }
12542     }'
12543 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12544 # Check for a 64-bit object if we didn't find anything.
12545 if test -z "$aix_libpath"; then
12546   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12547 fi
12548 else
12549   echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12551
12552
12553 fi
12554
12555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12556       conftest$ac_exeext conftest.$ac_ext
12557 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12558
12559           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12560
12561           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"
12562         else
12563           if test "$host_cpu" = ia64; then
12564             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12565             allow_undefined_flag_CXX="-z nodefs"
12566             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"
12567           else
12568             # Determine the default libpath from the value encoded in an
12569             # empty executable.
12570             cat >conftest.$ac_ext <<_ACEOF
12571 /* confdefs.h.  */
12572 _ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h.  */
12576
12577 int
12578 main ()
12579 {
12580
12581   ;
12582   return 0;
12583 }
12584 _ACEOF
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (ac_try="$ac_link"
12587 case "(($ac_try" in
12588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589   *) ac_try_echo=$ac_try;;
12590 esac
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592   (eval "$ac_link") 2>conftest.er1
12593   ac_status=$?
12594   grep -v '^ *+' conftest.er1 >conftest.err
12595   rm -f conftest.er1
12596   cat conftest.err >&5
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); } && {
12599          test -z "$ac_cxx_werror_flag" ||
12600          test ! -s conftest.err
12601        } && test -s conftest$ac_exeext &&
12602        $as_test_x conftest$ac_exeext; then
12603
12604 lt_aix_libpath_sed='
12605     /Import File Strings/,/^$/ {
12606         /^0/ {
12607             s/^0  *\(.*\)$/\1/
12608             p
12609         }
12610     }'
12611 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12612 # Check for a 64-bit object if we didn't find anything.
12613 if test -z "$aix_libpath"; then
12614   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12615 fi
12616 else
12617   echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12619
12620
12621 fi
12622
12623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12624       conftest$ac_exeext conftest.$ac_ext
12625 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12626
12627             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12628             # Warning - without using the other run time loading flags,
12629             # -berok will link without error, but may produce a broken library.
12630             no_undefined_flag_CXX=' ${wl}-bernotok'
12631             allow_undefined_flag_CXX=' ${wl}-berok'
12632             # Exported symbols can be pulled into shared objects from archives
12633             whole_archive_flag_spec_CXX='$convenience'
12634             archive_cmds_need_lc_CXX=yes
12635             # This is similar to how AIX traditionally builds its shared
12636             # libraries.
12637             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'
12638           fi
12639         fi
12640         ;;
12641
12642       beos*)
12643         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12644           allow_undefined_flag_CXX=unsupported
12645           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12646           # support --undefined.  This deserves some investigation.  FIXME
12647           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12648         else
12649           ld_shlibs_CXX=no
12650         fi
12651         ;;
12652
12653       chorus*)
12654         case $cc_basename in
12655           *)
12656           # FIXME: insert proper C++ library support
12657           ld_shlibs_CXX=no
12658           ;;
12659         esac
12660         ;;
12661
12662       cygwin* | mingw* | pw32*)
12663         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12664         # as there is no search path for DLLs.
12665         hardcode_libdir_flag_spec_CXX='-L$libdir'
12666         allow_undefined_flag_CXX=unsupported
12667         always_export_symbols_CXX=no
12668         enable_shared_with_static_runtimes_CXX=yes
12669
12670         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12671           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'
12672           # If the export-symbols file already is a .def file (1st line
12673           # is EXPORTS), use it as is; otherwise, prepend...
12674           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12675             cp $export_symbols $output_objdir/$soname.def;
12676           else
12677             echo EXPORTS > $output_objdir/$soname.def;
12678             cat $export_symbols >> $output_objdir/$soname.def;
12679           fi~
12680           $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'
12681         else
12682           ld_shlibs_CXX=no
12683         fi
12684         ;;
12685       darwin* | rhapsody*)
12686
12687
12688   archive_cmds_need_lc_CXX=no
12689   hardcode_direct_CXX=no
12690   hardcode_automatic_CXX=yes
12691   hardcode_shlibpath_var_CXX=unsupported
12692   whole_archive_flag_spec_CXX=''
12693   link_all_deplibs_CXX=yes
12694   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12695   if test "$GCC" = "yes"; then
12696     output_verbose_link_cmd=echo
12697     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}"
12698     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12699     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}"
12700     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}"
12701        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12702       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}"
12703       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}"
12704     fi
12705
12706   else
12707   ld_shlibs_CXX=no
12708   fi
12709
12710         ;;
12711
12712       dgux*)
12713         case $cc_basename in
12714           ec++*)
12715             # FIXME: insert proper C++ library support
12716             ld_shlibs_CXX=no
12717             ;;
12718           ghcx*)
12719             # Green Hills C++ Compiler
12720             # FIXME: insert proper C++ library support
12721             ld_shlibs_CXX=no
12722             ;;
12723           *)
12724             # FIXME: insert proper C++ library support
12725             ld_shlibs_CXX=no
12726             ;;
12727         esac
12728         ;;
12729
12730       freebsd[12]*)
12731         # C++ shared libraries reported to be fairly broken before
12732         # switch to ELF
12733         ld_shlibs_CXX=no
12734         ;;
12735
12736       freebsd-elf*)
12737         archive_cmds_need_lc_CXX=no
12738         ;;
12739
12740       freebsd* | dragonfly*)
12741         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12742         # conventions
12743         ld_shlibs_CXX=yes
12744         ;;
12745
12746       gnu*)
12747         ;;
12748
12749       hpux9*)
12750         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12751         hardcode_libdir_separator_CXX=:
12752         export_dynamic_flag_spec_CXX='${wl}-E'
12753         hardcode_direct_CXX=yes
12754         hardcode_minus_L_CXX=yes # Not in the search PATH,
12755                                              # but as the default
12756                                              # location of the library.
12757
12758         case $cc_basename in
12759           CC*)
12760             # FIXME: insert proper C++ library support
12761             ld_shlibs_CXX=no
12762             ;;
12763           aCC*)
12764             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'
12765             # Commands to make compiler produce verbose output that lists
12766             # what "hidden" libraries, object files and flags are used when
12767             # linking a shared library.
12768             #
12769             # There doesn't appear to be a way to prevent this compiler from
12770             # explicitly linking system object files so we need to strip them
12771             # from the output so that they don't get included in the library
12772             # dependencies.
12773             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'
12774             ;;
12775           *)
12776             if test "$GXX" = yes; then
12777               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'
12778             else
12779               # FIXME: insert proper C++ library support
12780               ld_shlibs_CXX=no
12781             fi
12782             ;;
12783         esac
12784         ;;
12785
12786       hpux10*|hpux11*)
12787         if test $with_gnu_ld = no; then
12788           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12789           hardcode_libdir_separator_CXX=:
12790
12791           case $host_cpu in
12792             hppa*64*|ia64*)
12793               ;;
12794             *)
12795               export_dynamic_flag_spec_CXX='${wl}-E'
12796               ;;
12797           esac
12798         fi
12799         case $host_cpu in
12800           hppa*64*|ia64*)
12801             hardcode_direct_CXX=no
12802             hardcode_shlibpath_var_CXX=no
12803             ;;
12804           *)
12805             hardcode_direct_CXX=yes
12806             hardcode_direct_absolute_CXX=yes
12807             hardcode_minus_L_CXX=yes # Not in the search PATH,
12808                                                  # but as the default
12809                                                  # location of the library.
12810             ;;
12811         esac
12812
12813         case $cc_basename in
12814           CC*)
12815             # FIXME: insert proper C++ library support
12816             ld_shlibs_CXX=no
12817             ;;
12818           aCC*)
12819             case $host_cpu in
12820               hppa*64*)
12821                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12822                 ;;
12823               ia64*)
12824                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12825                 ;;
12826               *)
12827                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12828                 ;;
12829             esac
12830             # Commands to make compiler produce verbose output that lists
12831             # what "hidden" libraries, object files and flags are used when
12832             # linking a shared library.
12833             #
12834             # There doesn't appear to be a way to prevent this compiler from
12835             # explicitly linking system object files so we need to strip them
12836             # from the output so that they don't get included in the library
12837             # dependencies.
12838             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'
12839             ;;
12840           *)
12841             if test "$GXX" = yes; then
12842               if test $with_gnu_ld = no; then
12843                 case $host_cpu in
12844                   hppa*64*)
12845                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12846                     ;;
12847                   ia64*)
12848                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12849                     ;;
12850                   *)
12851                     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'
12852                     ;;
12853                 esac
12854               fi
12855             else
12856               # FIXME: insert proper C++ library support
12857               ld_shlibs_CXX=no
12858             fi
12859             ;;
12860         esac
12861         ;;
12862
12863       interix[3-9]*)
12864         hardcode_direct_CXX=no
12865         hardcode_shlibpath_var_CXX=no
12866         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12867         export_dynamic_flag_spec_CXX='${wl}-E'
12868         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12869         # Instead, shared libraries are loaded at an image base (0x10000000 by
12870         # default) and relocated if they conflict, which is a slow very memory
12871         # consuming and fragmenting process.  To avoid this, we pick a random,
12872         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12873         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12874         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'
12875         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'
12876         ;;
12877       irix5* | irix6*)
12878         case $cc_basename in
12879           CC*)
12880             # SGI C++
12881             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'
12882
12883             # Archives containing C++ object files must be created using
12884             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12885             # necessary to make sure instantiated templates are included
12886             # in the archive.
12887             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12888             ;;
12889           *)
12890             if test "$GXX" = yes; then
12891               if test "$with_gnu_ld" = no; then
12892                 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'
12893               else
12894                 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'
12895               fi
12896             fi
12897             link_all_deplibs_CXX=yes
12898             ;;
12899         esac
12900         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12901         hardcode_libdir_separator_CXX=:
12902         inherit_rpath_CXX=yes
12903         ;;
12904
12905       linux* | k*bsd*-gnu)
12906         case $cc_basename in
12907           KCC*)
12908             # Kuck and Associates, Inc. (KAI) C++ Compiler
12909
12910             # KCC will only create a shared library if the output file
12911             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12912             # to its proper name (with version) after linking.
12913             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'
12914             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'
12915             # Commands to make compiler produce verbose output that lists
12916             # what "hidden" libraries, object files and flags are used when
12917             # linking a shared library.
12918             #
12919             # There doesn't appear to be a way to prevent this compiler from
12920             # explicitly linking system object files so we need to strip them
12921             # from the output so that they don't get included in the library
12922             # dependencies.
12923             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'
12924
12925             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12926             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12927
12928             # Archives containing C++ object files must be created using
12929             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12930             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12931             ;;
12932           icpc* | ecpc* )
12933             # Intel C++
12934             with_gnu_ld=yes
12935             # version 8.0 and above of icpc choke on multiply defined symbols
12936             # if we add $predep_objects and $postdep_objects, however 7.1 and
12937             # earlier do not add the objects themselves.
12938             case `$CC -V 2>&1` in
12939               *"Version 7."*)
12940                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12941                 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'
12942                 ;;
12943               *)  # Version 8.0 or newer
12944                 tmp_idyn=
12945                 case $host_cpu in
12946                   ia64*) tmp_idyn=' -i_dynamic';;
12947                 esac
12948                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12949                 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'
12950                 ;;
12951             esac
12952             archive_cmds_need_lc_CXX=no
12953             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12954             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12955             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12956             ;;
12957           pgCC* | pgcpp*)
12958             # Portland Group C++ compiler
12959             case `$CC -V` in
12960             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12961               prelink_cmds_CXX='tpldir=Template.dir~
12962                 rm -rf $tpldir~
12963                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12964                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12965               old_archive_cmds_CXX='tpldir=Template.dir~
12966                 rm -rf $tpldir~
12967                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12968                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12969                 $RANLIB $oldlib'
12970               archive_cmds_CXX='tpldir=Template.dir~
12971                 rm -rf $tpldir~
12972                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12973                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12974               archive_expsym_cmds_CXX='tpldir=Template.dir~
12975                 rm -rf $tpldir~
12976                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12977                 $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'
12978               ;;
12979             *) # Version 6 will use weak symbols
12980               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12981               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'
12982               ;;
12983             esac
12984
12985             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12986             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12987             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'
12988             ;;
12989           cxx*)
12990             # Compaq C++
12991             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12992             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'
12993
12994             runpath_var=LD_RUN_PATH
12995             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12996             hardcode_libdir_separator_CXX=:
12997
12998             # Commands to make compiler produce verbose output that lists
12999             # what "hidden" libraries, object files and flags are used when
13000             # linking a shared library.
13001             #
13002             # There doesn't appear to be a way to prevent this compiler from
13003             # explicitly linking system object files so we need to strip them
13004             # from the output so that they don't get included in the library
13005             # dependencies.
13006             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'
13007             ;;
13008           xl*)
13009             # IBM XL 8.0 on PPC, with GNU ld
13010             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13011             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13012             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13013             if test "x$supports_anon_versioning" = xyes; then
13014               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13015                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13016                 echo "local: *; };" >> $output_objdir/$libname.ver~
13017                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13018             fi
13019             ;;
13020           *)
13021             case `$CC -V 2>&1 | sed 5q` in
13022             *Sun\ C*)
13023               # Sun C++ 5.9
13024               no_undefined_flag_CXX=' -zdefs'
13025               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13026               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'
13027               hardcode_libdir_flag_spec_CXX='-R$libdir'
13028               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'
13029               compiler_needs_object_CXX=yes
13030
13031               # Not sure whether something based on
13032               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13033               # would be better.
13034               output_verbose_link_cmd='echo'
13035
13036               # Archives containing C++ object files must be created using
13037               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13038               # necessary to make sure instantiated templates are included
13039               # in the archive.
13040               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13041               ;;
13042             esac
13043             ;;
13044         esac
13045         ;;
13046
13047       lynxos*)
13048         # FIXME: insert proper C++ library support
13049         ld_shlibs_CXX=no
13050         ;;
13051
13052       m88k*)
13053         # FIXME: insert proper C++ library support
13054         ld_shlibs_CXX=no
13055         ;;
13056
13057       mvs*)
13058         case $cc_basename in
13059           cxx*)
13060             # FIXME: insert proper C++ library support
13061             ld_shlibs_CXX=no
13062             ;;
13063           *)
13064             # FIXME: insert proper C++ library support
13065             ld_shlibs_CXX=no
13066             ;;
13067         esac
13068         ;;
13069
13070       netbsd*)
13071         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13072           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13073           wlarc=
13074           hardcode_libdir_flag_spec_CXX='-R$libdir'
13075           hardcode_direct_CXX=yes
13076           hardcode_shlibpath_var_CXX=no
13077         fi
13078         # Workaround some broken pre-1.5 toolchains
13079         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13080         ;;
13081
13082       *nto* | *qnx*)
13083         ld_shlibs_CXX=yes
13084         ;;
13085
13086       openbsd2*)
13087         # C++ shared libraries are fairly broken
13088         ld_shlibs_CXX=no
13089         ;;
13090
13091       openbsd*)
13092         if test -f /usr/libexec/ld.so; then
13093           hardcode_direct_CXX=yes
13094           hardcode_shlibpath_var_CXX=no
13095           hardcode_direct_absolute_CXX=yes
13096           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13097           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13098           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13099             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13100             export_dynamic_flag_spec_CXX='${wl}-E'
13101             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13102           fi
13103           output_verbose_link_cmd=echo
13104         else
13105           ld_shlibs_CXX=no
13106         fi
13107         ;;
13108
13109       osf3* | osf4* | osf5*)
13110         case $cc_basename in
13111           KCC*)
13112             # Kuck and Associates, Inc. (KAI) C++ Compiler
13113
13114             # KCC will only create a shared library if the output file
13115             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13116             # to its proper name (with version) after linking.
13117             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'
13118
13119             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13120             hardcode_libdir_separator_CXX=:
13121
13122             # Archives containing C++ object files must be created using
13123             # the KAI C++ compiler.
13124             case $host in
13125               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13126               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13127             esac
13128             ;;
13129           RCC*)
13130             # Rational C++ 2.4.1
13131             # FIXME: insert proper C++ library support
13132             ld_shlibs_CXX=no
13133             ;;
13134           cxx*)
13135             case $host in
13136               osf3*)
13137                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13138                 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'
13139                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13140                 ;;
13141               *)
13142                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13143                 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'
13144                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13145                   echo "-hidden">> $lib.exp~
13146                   $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~
13147                   $RM $lib.exp'
13148                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13149                 ;;
13150             esac
13151
13152             hardcode_libdir_separator_CXX=:
13153
13154             # Commands to make compiler produce verbose output that lists
13155             # what "hidden" libraries, object files and flags are used when
13156             # linking a shared library.
13157             #
13158             # There doesn't appear to be a way to prevent this compiler from
13159             # explicitly linking system object files so we need to strip them
13160             # from the output so that they don't get included in the library
13161             # dependencies.
13162             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'
13163             ;;
13164           *)
13165             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13166               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13167               case $host in
13168                 osf3*)
13169                   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'
13170                   ;;
13171                 *)
13172                   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'
13173                   ;;
13174               esac
13175
13176               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13177               hardcode_libdir_separator_CXX=:
13178
13179               # Commands to make compiler produce verbose output that lists
13180               # what "hidden" libraries, object files and flags are used when
13181               # linking a shared library.
13182               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13183
13184             else
13185               # FIXME: insert proper C++ library support
13186               ld_shlibs_CXX=no
13187             fi
13188             ;;
13189         esac
13190         ;;
13191
13192       psos*)
13193         # FIXME: insert proper C++ library support
13194         ld_shlibs_CXX=no
13195         ;;
13196
13197       sunos4*)
13198         case $cc_basename in
13199           CC*)
13200             # Sun C++ 4.x
13201             # FIXME: insert proper C++ library support
13202             ld_shlibs_CXX=no
13203             ;;
13204           lcc*)
13205             # Lucid
13206             # FIXME: insert proper C++ library support
13207             ld_shlibs_CXX=no
13208             ;;
13209           *)
13210             # FIXME: insert proper C++ library support
13211             ld_shlibs_CXX=no
13212             ;;
13213         esac
13214         ;;
13215
13216       solaris*)
13217         case $cc_basename in
13218           CC*)
13219             # Sun C++ 4.2, 5.x and Centerline C++
13220             archive_cmds_need_lc_CXX=yes
13221             no_undefined_flag_CXX=' -zdefs'
13222             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13223             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13224               $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'
13225
13226             hardcode_libdir_flag_spec_CXX='-R$libdir'
13227             hardcode_shlibpath_var_CXX=no
13228             case $host_os in
13229               solaris2.[0-5] | solaris2.[0-5].*) ;;
13230               *)
13231                 # The compiler driver will combine and reorder linker options,
13232                 # but understands `-z linker_flag'.
13233                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13234                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13235                 ;;
13236             esac
13237             link_all_deplibs_CXX=yes
13238
13239             output_verbose_link_cmd='echo'
13240
13241             # Archives containing C++ object files must be created using
13242             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13243             # necessary to make sure instantiated templates are included
13244             # in the archive.
13245             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13246             ;;
13247           gcx*)
13248             # Green Hills C++ Compiler
13249             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13250
13251             # The C++ compiler must be used to create the archive.
13252             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13253             ;;
13254           *)
13255             # GNU C++ compiler with Solaris linker
13256             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13257               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13258               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13259                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13260                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13261                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13262
13263                 # Commands to make compiler produce verbose output that lists
13264                 # what "hidden" libraries, object files and flags are used when
13265                 # linking a shared library.
13266                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13267               else
13268                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13269                 # platform.
13270                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13271                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13272                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13273
13274                 # Commands to make compiler produce verbose output that lists
13275                 # what "hidden" libraries, object files and flags are used when
13276                 # linking a shared library.
13277                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13278               fi
13279
13280               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13281               case $host_os in
13282                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13283                 *)
13284                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13285                   ;;
13286               esac
13287             fi
13288             ;;
13289         esac
13290         ;;
13291
13292     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13293       no_undefined_flag_CXX='${wl}-z,text'
13294       archive_cmds_need_lc_CXX=no
13295       hardcode_shlibpath_var_CXX=no
13296       runpath_var='LD_RUN_PATH'
13297
13298       case $cc_basename in
13299         CC*)
13300           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13301           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13302           ;;
13303         *)
13304           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13305           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13306           ;;
13307       esac
13308       ;;
13309
13310       sysv5* | sco3.2v5* | sco5v6*)
13311         # Note: We can NOT use -z defs as we might desire, because we do not
13312         # link with -lc, and that would cause any symbols used from libc to
13313         # always be unresolved, which means just about no library would
13314         # ever link correctly.  If we're not using GNU ld we use -z text
13315         # though, which does catch some bad symbols but isn't as heavy-handed
13316         # as -z defs.
13317         no_undefined_flag_CXX='${wl}-z,text'
13318         allow_undefined_flag_CXX='${wl}-z,nodefs'
13319         archive_cmds_need_lc_CXX=no
13320         hardcode_shlibpath_var_CXX=no
13321         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13322         hardcode_libdir_separator_CXX=':'
13323         link_all_deplibs_CXX=yes
13324         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13325         runpath_var='LD_RUN_PATH'
13326
13327         case $cc_basename in
13328           CC*)
13329             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13330             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331             ;;
13332           *)
13333             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13334             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13335             ;;
13336         esac
13337       ;;
13338
13339       tandem*)
13340         case $cc_basename in
13341           NCC*)
13342             # NonStop-UX NCC 3.20
13343             # FIXME: insert proper C++ library support
13344             ld_shlibs_CXX=no
13345             ;;
13346           *)
13347             # FIXME: insert proper C++ library support
13348             ld_shlibs_CXX=no
13349             ;;
13350         esac
13351         ;;
13352
13353       vxworks*)
13354         # FIXME: insert proper C++ library support
13355         ld_shlibs_CXX=no
13356         ;;
13357
13358       *)
13359         # FIXME: insert proper C++ library support
13360         ld_shlibs_CXX=no
13361         ;;
13362     esac
13363
13364     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13365 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13366     test "$ld_shlibs_CXX" = no && can_build_shared=no
13367
13368     GCC_CXX="$GXX"
13369     LD_CXX="$LD"
13370
13371     ## CAVEAT EMPTOR:
13372     ## There is no encapsulation within the following macros, do not change
13373     ## the running order or otherwise move them around unless you know exactly
13374     ## what you are doing...
13375     # Dependencies to place before and after the object being linked:
13376 predep_objects_CXX=
13377 postdep_objects_CXX=
13378 predeps_CXX=
13379 postdeps_CXX=
13380 compiler_lib_search_path_CXX=
13381
13382 cat > conftest.$ac_ext <<_LT_EOF
13383 class Foo
13384 {
13385 public:
13386   Foo (void) { a = 0; }
13387 private:
13388   int a;
13389 };
13390 _LT_EOF
13391
13392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13393   (eval $ac_compile) 2>&5
13394   ac_status=$?
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); }; then
13397   # Parse the compiler output and extract the necessary
13398   # objects, libraries and library flags.
13399
13400   # Sentinel used to keep track of whether or not we are before
13401   # the conftest object file.
13402   pre_test_object_deps_done=no
13403
13404   for p in `eval "$output_verbose_link_cmd"`; do
13405     case $p in
13406
13407     -L* | -R* | -l*)
13408        # Some compilers place space between "-{L,R}" and the path.
13409        # Remove the space.
13410        if test $p = "-L" ||
13411           test $p = "-R"; then
13412          prev=$p
13413          continue
13414        else
13415          prev=
13416        fi
13417
13418        if test "$pre_test_object_deps_done" = no; then
13419          case $p in
13420          -L* | -R*)
13421            # Internal compiler library paths should come after those
13422            # provided the user.  The postdeps already come after the
13423            # user supplied libs so there is no need to process them.
13424            if test -z "$compiler_lib_search_path_CXX"; then
13425              compiler_lib_search_path_CXX="${prev}${p}"
13426            else
13427              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13428            fi
13429            ;;
13430          # The "-l" case would never come before the object being
13431          # linked, so don't bother handling this case.
13432          esac
13433        else
13434          if test -z "$postdeps_CXX"; then
13435            postdeps_CXX="${prev}${p}"
13436          else
13437            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13438          fi
13439        fi
13440        ;;
13441
13442     *.$objext)
13443        # This assumes that the test object file only shows up
13444        # once in the compiler output.
13445        if test "$p" = "conftest.$objext"; then
13446          pre_test_object_deps_done=yes
13447          continue
13448        fi
13449
13450        if test "$pre_test_object_deps_done" = no; then
13451          if test -z "$predep_objects_CXX"; then
13452            predep_objects_CXX="$p"
13453          else
13454            predep_objects_CXX="$predep_objects_CXX $p"
13455          fi
13456        else
13457          if test -z "$postdep_objects_CXX"; then
13458            postdep_objects_CXX="$p"
13459          else
13460            postdep_objects_CXX="$postdep_objects_CXX $p"
13461          fi
13462        fi
13463        ;;
13464
13465     *) ;; # Ignore the rest.
13466
13467     esac
13468   done
13469
13470   # Clean up.
13471   rm -f a.out a.exe
13472 else
13473   echo "libtool.m4: error: problem compiling CXX test program"
13474 fi
13475
13476 $RM -f confest.$objext
13477
13478 # PORTME: override above test on systems where it is broken
13479 case $host_os in
13480 interix[3-9]*)
13481   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13482   # hack all around it, let's just trust "g++" to DTRT.
13483   predep_objects_CXX=
13484   postdep_objects_CXX=
13485   postdeps_CXX=
13486   ;;
13487
13488 linux*)
13489   case `$CC -V 2>&1 | sed 5q` in
13490   *Sun\ C*)
13491     # Sun C++ 5.9
13492
13493     # The more standards-conforming stlport4 library is
13494     # incompatible with the Cstd library. Avoid specifying
13495     # it if it's in CXXFLAGS. Ignore libCrun as
13496     # -library=stlport4 depends on it.
13497     case " $CXX $CXXFLAGS " in
13498     *" -library=stlport4 "*)
13499       solaris_use_stlport4=yes
13500       ;;
13501     esac
13502
13503     if test "$solaris_use_stlport4" != yes; then
13504       postdeps_CXX='-library=Cstd -library=Crun'
13505     fi
13506     ;;
13507   esac
13508   ;;
13509
13510 solaris*)
13511   case $cc_basename in
13512   CC*)
13513     # The more standards-conforming stlport4 library is
13514     # incompatible with the Cstd library. Avoid specifying
13515     # it if it's in CXXFLAGS. Ignore libCrun as
13516     # -library=stlport4 depends on it.
13517     case " $CXX $CXXFLAGS " in
13518     *" -library=stlport4 "*)
13519       solaris_use_stlport4=yes
13520       ;;
13521     esac
13522
13523     # Adding this requires a known-good setup of shared libraries for
13524     # Sun compiler versions before 5.6, else PIC objects from an old
13525     # archive will be linked into the output, leading to subtle bugs.
13526     if test "$solaris_use_stlport4" != yes; then
13527       postdeps_CXX='-library=Cstd -library=Crun'
13528     fi
13529     ;;
13530   esac
13531   ;;
13532 esac
13533
13534
13535 case " $postdeps_CXX " in
13536 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13537 esac
13538  compiler_lib_search_dirs_CXX=
13539 if test -n "${compiler_lib_search_path_CXX}"; then
13540  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13541 fi
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573     lt_prog_compiler_wl_CXX=
13574 lt_prog_compiler_pic_CXX=
13575 lt_prog_compiler_static_CXX=
13576
13577 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13578 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13579
13580   # C++ specific cases for pic, static, wl, etc.
13581   if test "$GXX" = yes; then
13582     lt_prog_compiler_wl_CXX='-Wl,'
13583     lt_prog_compiler_static_CXX='-static'
13584
13585     case $host_os in
13586     aix*)
13587       # All AIX code is PIC.
13588       if test "$host_cpu" = ia64; then
13589         # AIX 5 now supports IA64 processor
13590         lt_prog_compiler_static_CXX='-Bstatic'
13591       fi
13592       ;;
13593
13594     amigaos*)
13595       case $host_cpu in
13596       powerpc)
13597             # see comment about AmigaOS4 .so support
13598             lt_prog_compiler_pic_CXX='-fPIC'
13599         ;;
13600       m68k)
13601             # FIXME: we need at least 68020 code to build shared libraries, but
13602             # adding the `-m68020' flag to GCC prevents building anything better,
13603             # like `-m68040'.
13604             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13605         ;;
13606       esac
13607       ;;
13608
13609     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13610       # PIC is the default for these OSes.
13611       ;;
13612     mingw* | cygwin* | os2* | pw32*)
13613       # This hack is so that the source file can tell whether it is being
13614       # built for inclusion in a dll (and should export symbols for example).
13615       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13616       # (--disable-auto-import) libraries
13617       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13618       ;;
13619     darwin* | rhapsody*)
13620       # PIC is the default on this platform
13621       # Common symbols not allowed in MH_DYLIB files
13622       lt_prog_compiler_pic_CXX='-fno-common'
13623       ;;
13624     *djgpp*)
13625       # DJGPP does not support shared libraries at all
13626       lt_prog_compiler_pic_CXX=
13627       ;;
13628     interix[3-9]*)
13629       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13630       # Instead, we relocate shared libraries at runtime.
13631       ;;
13632     sysv4*MP*)
13633       if test -d /usr/nec; then
13634         lt_prog_compiler_pic_CXX=-Kconform_pic
13635       fi
13636       ;;
13637     hpux*)
13638       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13639       # not for PA HP-UX.
13640       case $host_cpu in
13641       hppa*64*|ia64*)
13642         ;;
13643       *)
13644         lt_prog_compiler_pic_CXX='-fPIC'
13645         ;;
13646       esac
13647       ;;
13648     *qnx* | *nto*)
13649       # QNX uses GNU C++, but need to define -shared option too, otherwise
13650       # it will coredump.
13651       lt_prog_compiler_pic_CXX='-fPIC -shared'
13652       ;;
13653     *)
13654       lt_prog_compiler_pic_CXX='-fPIC'
13655       ;;
13656     esac
13657   else
13658     case $host_os in
13659       aix[4-9]*)
13660         # All AIX code is PIC.
13661         if test "$host_cpu" = ia64; then
13662           # AIX 5 now supports IA64 processor
13663           lt_prog_compiler_static_CXX='-Bstatic'
13664         else
13665           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13666         fi
13667         ;;
13668       chorus*)
13669         case $cc_basename in
13670         cxch68*)
13671           # Green Hills C++ Compiler
13672           # _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"
13673           ;;
13674         esac
13675         ;;
13676       dgux*)
13677         case $cc_basename in
13678           ec++*)
13679             lt_prog_compiler_pic_CXX='-KPIC'
13680             ;;
13681           ghcx*)
13682             # Green Hills C++ Compiler
13683             lt_prog_compiler_pic_CXX='-pic'
13684             ;;
13685           *)
13686             ;;
13687         esac
13688         ;;
13689       freebsd* | dragonfly*)
13690         # FreeBSD uses GNU C++
13691         ;;
13692       hpux9* | hpux10* | hpux11*)
13693         case $cc_basename in
13694           CC*)
13695             lt_prog_compiler_wl_CXX='-Wl,'
13696             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13697             if test "$host_cpu" != ia64; then
13698               lt_prog_compiler_pic_CXX='+Z'
13699             fi
13700             ;;
13701           aCC*)
13702             lt_prog_compiler_wl_CXX='-Wl,'
13703             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13704             case $host_cpu in
13705             hppa*64*|ia64*)
13706               # +Z the default
13707               ;;
13708             *)
13709               lt_prog_compiler_pic_CXX='+Z'
13710               ;;
13711             esac
13712             ;;
13713           *)
13714             ;;
13715         esac
13716         ;;
13717       interix*)
13718         # This is c89, which is MS Visual C++ (no shared libs)
13719         # Anyone wants to do a port?
13720         ;;
13721       irix5* | irix6* | nonstopux*)
13722         case $cc_basename in
13723           CC*)
13724             lt_prog_compiler_wl_CXX='-Wl,'
13725             lt_prog_compiler_static_CXX='-non_shared'
13726             # CC pic flag -KPIC is the default.
13727             ;;
13728           *)
13729             ;;
13730         esac
13731         ;;
13732       linux* | k*bsd*-gnu)
13733         case $cc_basename in
13734           KCC*)
13735             # KAI C++ Compiler
13736             lt_prog_compiler_wl_CXX='--backend -Wl,'
13737             lt_prog_compiler_pic_CXX='-fPIC'
13738             ;;
13739           icpc* | ecpc* )
13740             # Intel C++
13741             lt_prog_compiler_wl_CXX='-Wl,'
13742             lt_prog_compiler_pic_CXX='-KPIC'
13743             lt_prog_compiler_static_CXX='-static'
13744             ;;
13745           pgCC* | pgcpp*)
13746             # Portland Group C++ compiler
13747             lt_prog_compiler_wl_CXX='-Wl,'
13748             lt_prog_compiler_pic_CXX='-fpic'
13749             lt_prog_compiler_static_CXX='-Bstatic'
13750             ;;
13751           cxx*)
13752             # Compaq C++
13753             # Make sure the PIC flag is empty.  It appears that all Alpha
13754             # Linux and Compaq Tru64 Unix objects are PIC.
13755             lt_prog_compiler_pic_CXX=
13756             lt_prog_compiler_static_CXX='-non_shared'
13757             ;;
13758           xlc* | xlC*)
13759             # IBM XL 8.0 on PPC
13760             lt_prog_compiler_wl_CXX='-Wl,'
13761             lt_prog_compiler_pic_CXX='-qpic'
13762             lt_prog_compiler_static_CXX='-qstaticlink'
13763             ;;
13764           *)
13765             case `$CC -V 2>&1 | sed 5q` in
13766             *Sun\ C*)
13767               # Sun C++ 5.9
13768               lt_prog_compiler_pic_CXX='-KPIC'
13769               lt_prog_compiler_static_CXX='-Bstatic'
13770               lt_prog_compiler_wl_CXX='-Qoption ld '
13771               ;;
13772             esac
13773             ;;
13774         esac
13775         ;;
13776       lynxos*)
13777         ;;
13778       m88k*)
13779         ;;
13780       mvs*)
13781         case $cc_basename in
13782           cxx*)
13783             lt_prog_compiler_pic_CXX='-W c,exportall'
13784             ;;
13785           *)
13786             ;;
13787         esac
13788         ;;
13789       netbsd*)
13790         ;;
13791       *qnx* | *nto*)
13792         # QNX uses GNU C++, but need to define -shared option too, otherwise
13793         # it will coredump.
13794         lt_prog_compiler_pic_CXX='-fPIC -shared'
13795         ;;
13796       osf3* | osf4* | osf5*)
13797         case $cc_basename in
13798           KCC*)
13799             lt_prog_compiler_wl_CXX='--backend -Wl,'
13800             ;;
13801           RCC*)
13802             # Rational C++ 2.4.1
13803             lt_prog_compiler_pic_CXX='-pic'
13804             ;;
13805           cxx*)
13806             # Digital/Compaq C++
13807             lt_prog_compiler_wl_CXX='-Wl,'
13808             # Make sure the PIC flag is empty.  It appears that all Alpha
13809             # Linux and Compaq Tru64 Unix objects are PIC.
13810             lt_prog_compiler_pic_CXX=
13811             lt_prog_compiler_static_CXX='-non_shared'
13812             ;;
13813           *)
13814             ;;
13815         esac
13816         ;;
13817       psos*)
13818         ;;
13819       solaris*)
13820         case $cc_basename in
13821           CC*)
13822             # Sun C++ 4.2, 5.x and Centerline C++
13823             lt_prog_compiler_pic_CXX='-KPIC'
13824             lt_prog_compiler_static_CXX='-Bstatic'
13825             lt_prog_compiler_wl_CXX='-Qoption ld '
13826             ;;
13827           gcx*)
13828             # Green Hills C++ Compiler
13829             lt_prog_compiler_pic_CXX='-PIC'
13830             ;;
13831           *)
13832             ;;
13833         esac
13834         ;;
13835       sunos4*)
13836         case $cc_basename in
13837           CC*)
13838             # Sun C++ 4.x
13839             lt_prog_compiler_pic_CXX='-pic'
13840             lt_prog_compiler_static_CXX='-Bstatic'
13841             ;;
13842           lcc*)
13843             # Lucid
13844             lt_prog_compiler_pic_CXX='-pic'
13845             ;;
13846           *)
13847             ;;
13848         esac
13849         ;;
13850       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13851         case $cc_basename in
13852           CC*)
13853             lt_prog_compiler_wl_CXX='-Wl,'
13854             lt_prog_compiler_pic_CXX='-KPIC'
13855             lt_prog_compiler_static_CXX='-Bstatic'
13856             ;;
13857         esac
13858         ;;
13859       tandem*)
13860         case $cc_basename in
13861           NCC*)
13862             # NonStop-UX NCC 3.20
13863             lt_prog_compiler_pic_CXX='-KPIC'
13864             ;;
13865           *)
13866             ;;
13867         esac
13868         ;;
13869       vxworks*)
13870         ;;
13871       *)
13872         lt_prog_compiler_can_build_shared_CXX=no
13873         ;;
13874     esac
13875   fi
13876
13877 case $host_os in
13878   # For platforms which do not support PIC, -DPIC is meaningless:
13879   *djgpp*)
13880     lt_prog_compiler_pic_CXX=
13881     ;;
13882   *)
13883     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13884     ;;
13885 esac
13886 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13887 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13888
13889
13890
13891 #
13892 # Check to make sure the PIC flag actually works.
13893 #
13894 if test -n "$lt_prog_compiler_pic_CXX"; then
13895   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13896 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13897 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13898   echo $ECHO_N "(cached) $ECHO_C" >&6
13899 else
13900   lt_cv_prog_compiler_pic_works_CXX=no
13901    ac_outfile=conftest.$ac_objext
13902    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13903    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13904    # Insert the option either (1) after the last *FLAGS variable, or
13905    # (2) before a word containing "conftest.", or (3) at the end.
13906    # Note that $ac_compile itself does not contain backslashes and begins
13907    # with a dollar sign (not a hyphen), so the echo should work correctly.
13908    # The option is referenced via a variable to avoid confusing sed.
13909    lt_compile=`echo "$ac_compile" | $SED \
13910    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13911    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13912    -e 's:$: $lt_compiler_flag:'`
13913    (eval echo "\"\$as_me:13913: $lt_compile\"" >&5)
13914    (eval "$lt_compile" 2>conftest.err)
13915    ac_status=$?
13916    cat conftest.err >&5
13917    echo "$as_me:13917: \$? = $ac_status" >&5
13918    if (exit $ac_status) && test -s "$ac_outfile"; then
13919      # The compiler can only warn and ignore the option if not recognized
13920      # So say no if there are warnings other than the usual output.
13921      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13922      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13923      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13924        lt_cv_prog_compiler_pic_works_CXX=yes
13925      fi
13926    fi
13927    $RM conftest*
13928
13929 fi
13930 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13931 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13932
13933 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13934     case $lt_prog_compiler_pic_CXX in
13935      "" | " "*) ;;
13936      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13937      esac
13938 else
13939     lt_prog_compiler_pic_CXX=
13940      lt_prog_compiler_can_build_shared_CXX=no
13941 fi
13942
13943 fi
13944
13945
13946
13947 #
13948 # Check to make sure the static flag actually works.
13949 #
13950 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13951 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13952 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13953 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13954   echo $ECHO_N "(cached) $ECHO_C" >&6
13955 else
13956   lt_cv_prog_compiler_static_works_CXX=no
13957    save_LDFLAGS="$LDFLAGS"
13958    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13959    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13960    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13961      # The linker can only warn and ignore the option if not recognized
13962      # So say no if there are warnings
13963      if test -s conftest.err; then
13964        # Append any errors to the config.log.
13965        cat conftest.err 1>&5
13966        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13967        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13968        if diff conftest.exp conftest.er2 >/dev/null; then
13969          lt_cv_prog_compiler_static_works_CXX=yes
13970        fi
13971      else
13972        lt_cv_prog_compiler_static_works_CXX=yes
13973      fi
13974    fi
13975    $RM -r conftest*
13976    LDFLAGS="$save_LDFLAGS"
13977
13978 fi
13979 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13980 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13981
13982 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13983     :
13984 else
13985     lt_prog_compiler_static_CXX=
13986 fi
13987
13988
13989
13990
13991     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13992 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13993 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13994   echo $ECHO_N "(cached) $ECHO_C" >&6
13995 else
13996   lt_cv_prog_compiler_c_o_CXX=no
13997    $RM -r conftest 2>/dev/null
13998    mkdir conftest
13999    cd conftest
14000    mkdir out
14001    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14002
14003    lt_compiler_flag="-o out/conftest2.$ac_objext"
14004    # Insert the option either (1) after the last *FLAGS variable, or
14005    # (2) before a word containing "conftest.", or (3) at the end.
14006    # Note that $ac_compile itself does not contain backslashes and begins
14007    # with a dollar sign (not a hyphen), so the echo should work correctly.
14008    lt_compile=`echo "$ac_compile" | $SED \
14009    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14011    -e 's:$: $lt_compiler_flag:'`
14012    (eval echo "\"\$as_me:14012: $lt_compile\"" >&5)
14013    (eval "$lt_compile" 2>out/conftest.err)
14014    ac_status=$?
14015    cat out/conftest.err >&5
14016    echo "$as_me:14016: \$? = $ac_status" >&5
14017    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14018    then
14019      # The compiler can only warn and ignore the option if not recognized
14020      # So say no if there are warnings
14021      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14022      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14023      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14024        lt_cv_prog_compiler_c_o_CXX=yes
14025      fi
14026    fi
14027    chmod u+w . 2>&5
14028    $RM conftest*
14029    # SGI C++ compiler will create directory out/ii_files/ for
14030    # template instantiation
14031    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14032    $RM out/* && rmdir out
14033    cd ..
14034    $RM -r conftest
14035    $RM conftest*
14036
14037 fi
14038 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14039 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14040
14041
14042
14043     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14044 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14045 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14046   echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048   lt_cv_prog_compiler_c_o_CXX=no
14049    $RM -r conftest 2>/dev/null
14050    mkdir conftest
14051    cd conftest
14052    mkdir out
14053    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14054
14055    lt_compiler_flag="-o out/conftest2.$ac_objext"
14056    # Insert the option either (1) after the last *FLAGS variable, or
14057    # (2) before a word containing "conftest.", or (3) at the end.
14058    # Note that $ac_compile itself does not contain backslashes and begins
14059    # with a dollar sign (not a hyphen), so the echo should work correctly.
14060    lt_compile=`echo "$ac_compile" | $SED \
14061    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14062    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14063    -e 's:$: $lt_compiler_flag:'`
14064    (eval echo "\"\$as_me:14064: $lt_compile\"" >&5)
14065    (eval "$lt_compile" 2>out/conftest.err)
14066    ac_status=$?
14067    cat out/conftest.err >&5
14068    echo "$as_me:14068: \$? = $ac_status" >&5
14069    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14070    then
14071      # The compiler can only warn and ignore the option if not recognized
14072      # So say no if there are warnings
14073      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14074      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14075      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14076        lt_cv_prog_compiler_c_o_CXX=yes
14077      fi
14078    fi
14079    chmod u+w . 2>&5
14080    $RM conftest*
14081    # SGI C++ compiler will create directory out/ii_files/ for
14082    # template instantiation
14083    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14084    $RM out/* && rmdir out
14085    cd ..
14086    $RM -r conftest
14087    $RM conftest*
14088
14089 fi
14090 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14091 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14092
14093
14094
14095
14096 hard_links="nottested"
14097 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14098   # do not overwrite the value of need_locks provided by the user
14099   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14100 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14101   hard_links=yes
14102   $RM conftest*
14103   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14104   touch conftest.a
14105   ln conftest.a conftest.b 2>&5 || hard_links=no
14106   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14107   { echo "$as_me:$LINENO: result: $hard_links" >&5
14108 echo "${ECHO_T}$hard_links" >&6; }
14109   if test "$hard_links" = no; then
14110     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14111 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14112     need_locks=warn
14113   fi
14114 else
14115   need_locks=no
14116 fi
14117
14118
14119
14120     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14121 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14122
14123   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14124   case $host_os in
14125   aix[4-9]*)
14126     # If we're using GNU nm, then we don't want the "-C" option.
14127     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14128     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14129       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'
14130     else
14131       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'
14132     fi
14133     ;;
14134   pw32*)
14135     export_symbols_cmds_CXX="$ltdll_cmds"
14136   ;;
14137   cygwin* | mingw*)
14138     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'
14139   ;;
14140   *)
14141     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14142   ;;
14143   esac
14144   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14145
14146 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14147 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14148 test "$ld_shlibs_CXX" = no && can_build_shared=no
14149
14150 with_gnu_ld_CXX=$with_gnu_ld
14151
14152
14153
14154
14155
14156
14157 #
14158 # Do we need to explicitly link libc?
14159 #
14160 case "x$archive_cmds_need_lc_CXX" in
14161 x|xyes)
14162   # Assume -lc should be added
14163   archive_cmds_need_lc_CXX=yes
14164
14165   if test "$enable_shared" = yes && test "$GCC" = yes; then
14166     case $archive_cmds_CXX in
14167     *'~'*)
14168       # FIXME: we may have to deal with multi-command sequences.
14169       ;;
14170     '$CC '*)
14171       # Test whether the compiler implicitly links with -lc since on some
14172       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14173       # to ld, don't add -lc before -lgcc.
14174       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14175 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14176       $RM conftest*
14177       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14178
14179       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14180   (eval $ac_compile) 2>&5
14181   ac_status=$?
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); } 2>conftest.err; then
14184         soname=conftest
14185         lib=conftest
14186         libobjs=conftest.$ac_objext
14187         deplibs=
14188         wl=$lt_prog_compiler_wl_CXX
14189         pic_flag=$lt_prog_compiler_pic_CXX
14190         compiler_flags=-v
14191         linker_flags=-v
14192         verstring=
14193         output_objdir=.
14194         libname=conftest
14195         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14196         allow_undefined_flag_CXX=
14197         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14198   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14199   ac_status=$?
14200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201   (exit $ac_status); }
14202         then
14203           archive_cmds_need_lc_CXX=no
14204         else
14205           archive_cmds_need_lc_CXX=yes
14206         fi
14207         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14208       else
14209         cat conftest.err 1>&5
14210       fi
14211       $RM conftest*
14212       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14213 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14214       ;;
14215     esac
14216   fi
14217   ;;
14218 esac
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14284 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14285
14286 library_names_spec=
14287 libname_spec='lib$name'
14288 soname_spec=
14289 shrext_cmds=".so"
14290 postinstall_cmds=
14291 postuninstall_cmds=
14292 finish_cmds=
14293 finish_eval=
14294 shlibpath_var=
14295 shlibpath_overrides_runpath=unknown
14296 version_type=none
14297 dynamic_linker="$host_os ld.so"
14298 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14299 need_lib_prefix=unknown
14300 hardcode_into_libs=no
14301
14302 # when you set need_version to no, make sure it does not cause -set_version
14303 # flags to be left without arguments
14304 need_version=unknown
14305
14306 case $host_os in
14307 aix3*)
14308   version_type=linux
14309   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14310   shlibpath_var=LIBPATH
14311
14312   # AIX 3 has no versioning support, so we append a major version to the name.
14313   soname_spec='${libname}${release}${shared_ext}$major'
14314   ;;
14315
14316 aix[4-9]*)
14317   version_type=linux
14318   need_lib_prefix=no
14319   need_version=no
14320   hardcode_into_libs=yes
14321   if test "$host_cpu" = ia64; then
14322     # AIX 5 supports IA64
14323     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14324     shlibpath_var=LD_LIBRARY_PATH
14325   else
14326     # With GCC up to 2.95.x, collect2 would create an import file
14327     # for dependence libraries.  The import file would start with
14328     # the line `#! .'.  This would cause the generated library to
14329     # depend on `.', always an invalid library.  This was fixed in
14330     # development snapshots of GCC prior to 3.0.
14331     case $host_os in
14332       aix4 | aix4.[01] | aix4.[01].*)
14333       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14334            echo ' yes '
14335            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14336         :
14337       else
14338         can_build_shared=no
14339       fi
14340       ;;
14341     esac
14342     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14343     # soname into executable. Probably we can add versioning support to
14344     # collect2, so additional links can be useful in future.
14345     if test "$aix_use_runtimelinking" = yes; then
14346       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14347       # instead of lib<name>.a to let people know that these are not
14348       # typical AIX shared libraries.
14349       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14350     else
14351       # We preserve .a as extension for shared libraries through AIX4.2
14352       # and later when we are not doing run time linking.
14353       library_names_spec='${libname}${release}.a $libname.a'
14354       soname_spec='${libname}${release}${shared_ext}$major'
14355     fi
14356     shlibpath_var=LIBPATH
14357   fi
14358   ;;
14359
14360 amigaos*)
14361   case $host_cpu in
14362   powerpc)
14363     # Since July 2007 AmigaOS4 officially supports .so libraries.
14364     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14365     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14366     ;;
14367   m68k)
14368     library_names_spec='$libname.ixlibrary $libname.a'
14369     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14370     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'
14371     ;;
14372   esac
14373   ;;
14374
14375 beos*)
14376   library_names_spec='${libname}${shared_ext}'
14377   dynamic_linker="$host_os ld.so"
14378   shlibpath_var=LIBRARY_PATH
14379   ;;
14380
14381 bsdi[45]*)
14382   version_type=linux
14383   need_version=no
14384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14385   soname_spec='${libname}${release}${shared_ext}$major'
14386   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14387   shlibpath_var=LD_LIBRARY_PATH
14388   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14389   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14390   # the default ld.so.conf also contains /usr/contrib/lib and
14391   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14392   # libtool to hard-code these into programs
14393   ;;
14394
14395 cygwin* | mingw* | pw32*)
14396   version_type=windows
14397   shrext_cmds=".dll"
14398   need_version=no
14399   need_lib_prefix=no
14400
14401   case $GCC,$host_os in
14402   yes,cygwin* | yes,mingw* | yes,pw32*)
14403     library_names_spec='$libname.dll.a'
14404     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14405     postinstall_cmds='base_file=`basename \${file}`~
14406       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14407       dldir=$destdir/`dirname \$dlpath`~
14408       test -d \$dldir || mkdir -p \$dldir~
14409       $install_prog $dir/$dlname \$dldir/$dlname~
14410       chmod a+x \$dldir/$dlname~
14411       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14412         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14413       fi'
14414     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14415       dlpath=$dir/\$dldll~
14416        $RM \$dlpath'
14417     shlibpath_overrides_runpath=yes
14418
14419     case $host_os in
14420     cygwin*)
14421       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14422       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14423       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14424       ;;
14425     mingw*)
14426       # MinGW DLLs use traditional 'lib' prefix
14427       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14428       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14429       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14430         # It is most probably a Windows format PATH printed by
14431         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14432         # path with ; separators, and with drive letters. We can handle the
14433         # drive letters (cygwin fileutils understands them), so leave them,
14434         # especially as we might pass files found there to a mingw objdump,
14435         # which wouldn't understand a cygwinified path. Ahh.
14436         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14437       else
14438         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14439       fi
14440       ;;
14441     pw32*)
14442       # pw32 DLLs use 'pw' prefix rather than 'lib'
14443       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14444       ;;
14445     esac
14446     ;;
14447
14448   *)
14449     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14450     ;;
14451   esac
14452   dynamic_linker='Win32 ld.exe'
14453   # FIXME: first we should search . and the directory the executable is in
14454   shlibpath_var=PATH
14455   ;;
14456
14457 darwin* | rhapsody*)
14458   dynamic_linker="$host_os dyld"
14459   version_type=darwin
14460   need_lib_prefix=no
14461   need_version=no
14462   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14463   soname_spec='${libname}${release}${major}$shared_ext'
14464   shlibpath_overrides_runpath=yes
14465   shlibpath_var=DYLD_LIBRARY_PATH
14466   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14467
14468   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14469   ;;
14470
14471 dgux*)
14472   version_type=linux
14473   need_lib_prefix=no
14474   need_version=no
14475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14476   soname_spec='${libname}${release}${shared_ext}$major'
14477   shlibpath_var=LD_LIBRARY_PATH
14478   ;;
14479
14480 freebsd1*)
14481   dynamic_linker=no
14482   ;;
14483
14484 freebsd* | dragonfly*)
14485   # DragonFly does not have aout.  When/if they implement a new
14486   # versioning mechanism, adjust this.
14487   if test -x /usr/bin/objformat; then
14488     objformat=`/usr/bin/objformat`
14489   else
14490     case $host_os in
14491     freebsd[123]*) objformat=aout ;;
14492     *) objformat=elf ;;
14493     esac
14494   fi
14495   version_type=freebsd-$objformat
14496   case $version_type in
14497     freebsd-elf*)
14498       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14499       need_version=no
14500       need_lib_prefix=no
14501       ;;
14502     freebsd-*)
14503       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14504       need_version=yes
14505       ;;
14506   esac
14507   shlibpath_var=LD_LIBRARY_PATH
14508   case $host_os in
14509   freebsd2*)
14510     shlibpath_overrides_runpath=yes
14511     ;;
14512   freebsd3.[01]* | freebsdelf3.[01]*)
14513     shlibpath_overrides_runpath=yes
14514     hardcode_into_libs=yes
14515     ;;
14516   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14517   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14518     shlibpath_overrides_runpath=no
14519     hardcode_into_libs=yes
14520     ;;
14521   *) # from 4.6 on, and DragonFly
14522     shlibpath_overrides_runpath=yes
14523     hardcode_into_libs=yes
14524     ;;
14525   esac
14526   ;;
14527
14528 gnu*)
14529   version_type=linux
14530   need_lib_prefix=no
14531   need_version=no
14532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14533   soname_spec='${libname}${release}${shared_ext}$major'
14534   shlibpath_var=LD_LIBRARY_PATH
14535   hardcode_into_libs=yes
14536   ;;
14537
14538 hpux9* | hpux10* | hpux11*)
14539   # Give a soname corresponding to the major version so that dld.sl refuses to
14540   # link against other versions.
14541   version_type=sunos
14542   need_lib_prefix=no
14543   need_version=no
14544   case $host_cpu in
14545   ia64*)
14546     shrext_cmds='.so'
14547     hardcode_into_libs=yes
14548     dynamic_linker="$host_os dld.so"
14549     shlibpath_var=LD_LIBRARY_PATH
14550     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14551     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14552     soname_spec='${libname}${release}${shared_ext}$major'
14553     if test "X$HPUX_IA64_MODE" = X32; then
14554       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14555     else
14556       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14557     fi
14558     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14559     ;;
14560   hppa*64*)
14561     shrext_cmds='.sl'
14562     hardcode_into_libs=yes
14563     dynamic_linker="$host_os dld.sl"
14564     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14565     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14566     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14567     soname_spec='${libname}${release}${shared_ext}$major'
14568     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14569     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14570     ;;
14571   *)
14572     shrext_cmds='.sl'
14573     dynamic_linker="$host_os dld.sl"
14574     shlibpath_var=SHLIB_PATH
14575     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14577     soname_spec='${libname}${release}${shared_ext}$major'
14578     ;;
14579   esac
14580   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14581   postinstall_cmds='chmod 555 $lib'
14582   ;;
14583
14584 interix[3-9]*)
14585   version_type=linux
14586   need_lib_prefix=no
14587   need_version=no
14588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14589   soname_spec='${libname}${release}${shared_ext}$major'
14590   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14591   shlibpath_var=LD_LIBRARY_PATH
14592   shlibpath_overrides_runpath=no
14593   hardcode_into_libs=yes
14594   ;;
14595
14596 irix5* | irix6* | nonstopux*)
14597   case $host_os in
14598     nonstopux*) version_type=nonstopux ;;
14599     *)
14600         if test "$lt_cv_prog_gnu_ld" = yes; then
14601                 version_type=linux
14602         else
14603                 version_type=irix
14604         fi ;;
14605   esac
14606   need_lib_prefix=no
14607   need_version=no
14608   soname_spec='${libname}${release}${shared_ext}$major'
14609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14610   case $host_os in
14611   irix5* | nonstopux*)
14612     libsuff= shlibsuff=
14613     ;;
14614   *)
14615     case $LD in # libtool.m4 will add one of these switches to LD
14616     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14617       libsuff= shlibsuff= libmagic=32-bit;;
14618     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14619       libsuff=32 shlibsuff=N32 libmagic=N32;;
14620     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14621       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14622     *) libsuff= shlibsuff= libmagic=never-match;;
14623     esac
14624     ;;
14625   esac
14626   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14627   shlibpath_overrides_runpath=no
14628   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14629   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14630   hardcode_into_libs=yes
14631   ;;
14632
14633 # No shared lib support for Linux oldld, aout, or coff.
14634 linux*oldld* | linux*aout* | linux*coff*)
14635   dynamic_linker=no
14636   ;;
14637
14638 # This must be Linux ELF.
14639 linux* | k*bsd*-gnu)
14640   version_type=linux
14641   need_lib_prefix=no
14642   need_version=no
14643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14644   soname_spec='${libname}${release}${shared_ext}$major'
14645   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14646   shlibpath_var=LD_LIBRARY_PATH
14647   shlibpath_overrides_runpath=no
14648   # Some binutils ld are patched to set DT_RUNPATH
14649   save_LDFLAGS=$LDFLAGS
14650   save_libdir=$libdir
14651   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14652        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14653   cat >conftest.$ac_ext <<_ACEOF
14654 /* confdefs.h.  */
14655 _ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h.  */
14659
14660 int
14661 main ()
14662 {
14663
14664   ;
14665   return 0;
14666 }
14667 _ACEOF
14668 rm -f conftest.$ac_objext conftest$ac_exeext
14669 if { (ac_try="$ac_link"
14670 case "(($ac_try" in
14671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672   *) ac_try_echo=$ac_try;;
14673 esac
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675   (eval "$ac_link") 2>conftest.er1
14676   ac_status=$?
14677   grep -v '^ *+' conftest.er1 >conftest.err
14678   rm -f conftest.er1
14679   cat conftest.err >&5
14680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681   (exit $ac_status); } && {
14682          test -z "$ac_cxx_werror_flag" ||
14683          test ! -s conftest.err
14684        } && test -s conftest$ac_exeext &&
14685        $as_test_x conftest$ac_exeext; then
14686   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14687   shlibpath_overrides_runpath=yes
14688 fi
14689
14690 else
14691   echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14693
14694
14695 fi
14696
14697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14698       conftest$ac_exeext conftest.$ac_ext
14699   LDFLAGS=$save_LDFLAGS
14700   libdir=$save_libdir
14701
14702   # This implies no fast_install, which is unacceptable.
14703   # Some rework will be needed to allow for fast_install
14704   # before this can be enabled.
14705   hardcode_into_libs=yes
14706
14707   # Append ld.so.conf contents to the search path
14708   if test -f /etc/ld.so.conf; then
14709     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' ' '`
14710     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14711   fi
14712
14713   # We used to test for /lib/ld.so.1 and disable shared libraries on
14714   # powerpc, because MkLinux only supported shared libraries with the
14715   # GNU dynamic linker.  Since this was broken with cross compilers,
14716   # most powerpc-linux boxes support dynamic linking these days and
14717   # people can always --disable-shared, the test was removed, and we
14718   # assume the GNU/Linux dynamic linker is in use.
14719   dynamic_linker='GNU/Linux ld.so'
14720   ;;
14721
14722 netbsd*)
14723   version_type=sunos
14724   need_lib_prefix=no
14725   need_version=no
14726   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14728     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14729     dynamic_linker='NetBSD (a.out) ld.so'
14730   else
14731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14732     soname_spec='${libname}${release}${shared_ext}$major'
14733     dynamic_linker='NetBSD ld.elf_so'
14734   fi
14735   shlibpath_var=LD_LIBRARY_PATH
14736   shlibpath_overrides_runpath=yes
14737   hardcode_into_libs=yes
14738   ;;
14739
14740 newsos6)
14741   version_type=linux
14742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14743   shlibpath_var=LD_LIBRARY_PATH
14744   shlibpath_overrides_runpath=yes
14745   ;;
14746
14747 *nto* | *qnx*)
14748   version_type=qnx
14749   need_lib_prefix=no
14750   need_version=no
14751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14752   soname_spec='${libname}${release}${shared_ext}$major'
14753   shlibpath_var=LD_LIBRARY_PATH
14754   shlibpath_overrides_runpath=no
14755   hardcode_into_libs=yes
14756   dynamic_linker='ldqnx.so'
14757   ;;
14758
14759 openbsd*)
14760   version_type=sunos
14761   sys_lib_dlsearch_path_spec="/usr/lib"
14762   need_lib_prefix=no
14763   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14764   case $host_os in
14765     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14766     *)                          need_version=no  ;;
14767   esac
14768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14769   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14770   shlibpath_var=LD_LIBRARY_PATH
14771   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14772     case $host_os in
14773       openbsd2.[89] | openbsd2.[89].*)
14774         shlibpath_overrides_runpath=no
14775         ;;
14776       *)
14777         shlibpath_overrides_runpath=yes
14778         ;;
14779       esac
14780   else
14781     shlibpath_overrides_runpath=yes
14782   fi
14783   ;;
14784
14785 os2*)
14786   libname_spec='$name'
14787   shrext_cmds=".dll"
14788   need_lib_prefix=no
14789   library_names_spec='$libname${shared_ext} $libname.a'
14790   dynamic_linker='OS/2 ld.exe'
14791   shlibpath_var=LIBPATH
14792   ;;
14793
14794 osf3* | osf4* | osf5*)
14795   version_type=osf
14796   need_lib_prefix=no
14797   need_version=no
14798   soname_spec='${libname}${release}${shared_ext}$major'
14799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14800   shlibpath_var=LD_LIBRARY_PATH
14801   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14802   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14803   ;;
14804
14805 rdos*)
14806   dynamic_linker=no
14807   ;;
14808
14809 solaris*)
14810   version_type=linux
14811   need_lib_prefix=no
14812   need_version=no
14813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14814   soname_spec='${libname}${release}${shared_ext}$major'
14815   shlibpath_var=LD_LIBRARY_PATH
14816   shlibpath_overrides_runpath=yes
14817   hardcode_into_libs=yes
14818   # ldd complains unless libraries are executable
14819   postinstall_cmds='chmod +x $lib'
14820   ;;
14821
14822 sunos4*)
14823   version_type=sunos
14824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14825   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14826   shlibpath_var=LD_LIBRARY_PATH
14827   shlibpath_overrides_runpath=yes
14828   if test "$with_gnu_ld" = yes; then
14829     need_lib_prefix=no
14830   fi
14831   need_version=yes
14832   ;;
14833
14834 sysv4 | sysv4.3*)
14835   version_type=linux
14836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14837   soname_spec='${libname}${release}${shared_ext}$major'
14838   shlibpath_var=LD_LIBRARY_PATH
14839   case $host_vendor in
14840     sni)
14841       shlibpath_overrides_runpath=no
14842       need_lib_prefix=no
14843       runpath_var=LD_RUN_PATH
14844       ;;
14845     siemens)
14846       need_lib_prefix=no
14847       ;;
14848     motorola)
14849       need_lib_prefix=no
14850       need_version=no
14851       shlibpath_overrides_runpath=no
14852       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14853       ;;
14854   esac
14855   ;;
14856
14857 sysv4*MP*)
14858   if test -d /usr/nec ;then
14859     version_type=linux
14860     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14861     soname_spec='$libname${shared_ext}.$major'
14862     shlibpath_var=LD_LIBRARY_PATH
14863   fi
14864   ;;
14865
14866 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14867   version_type=freebsd-elf
14868   need_lib_prefix=no
14869   need_version=no
14870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14871   soname_spec='${libname}${release}${shared_ext}$major'
14872   shlibpath_var=LD_LIBRARY_PATH
14873   shlibpath_overrides_runpath=yes
14874   hardcode_into_libs=yes
14875   if test "$with_gnu_ld" = yes; then
14876     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14877   else
14878     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14879     case $host_os in
14880       sco3.2v5*)
14881         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14882         ;;
14883     esac
14884   fi
14885   sys_lib_dlsearch_path_spec='/usr/lib'
14886   ;;
14887
14888 tpf*)
14889   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14890   version_type=linux
14891   need_lib_prefix=no
14892   need_version=no
14893   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894   shlibpath_var=LD_LIBRARY_PATH
14895   shlibpath_overrides_runpath=no
14896   hardcode_into_libs=yes
14897   ;;
14898
14899 uts4*)
14900   version_type=linux
14901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14902   soname_spec='${libname}${release}${shared_ext}$major'
14903   shlibpath_var=LD_LIBRARY_PATH
14904   ;;
14905
14906 *)
14907   dynamic_linker=no
14908   ;;
14909 esac
14910 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14911 echo "${ECHO_T}$dynamic_linker" >&6; }
14912 test "$dynamic_linker" = no && can_build_shared=no
14913
14914 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14915 if test "$GCC" = yes; then
14916   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14917 fi
14918
14919 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14920   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14921 fi
14922 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14923   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14924 fi
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14962 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14963 hardcode_action_CXX=
14964 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14965    test -n "$runpath_var_CXX" ||
14966    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14967
14968   # We can hardcode non-existent directories.
14969   if test "$hardcode_direct_CXX" != no &&
14970      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14971      # have to relink, otherwise we might link with an installed library
14972      # when we should be linking with a yet-to-be-installed one
14973      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14974      test "$hardcode_minus_L_CXX" != no; then
14975     # Linking always hardcodes the temporary library directory.
14976     hardcode_action_CXX=relink
14977   else
14978     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14979     hardcode_action_CXX=immediate
14980   fi
14981 else
14982   # We cannot hardcode anything, or else we can only hardcode existing
14983   # directories.
14984   hardcode_action_CXX=unsupported
14985 fi
14986 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14987 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14988
14989 if test "$hardcode_action_CXX" = relink ||
14990    test "$inherit_rpath_CXX" = yes; then
14991   # Fast installation is not supported
14992   enable_fast_install=no
14993 elif test "$shlibpath_overrides_runpath" = yes ||
14994      test "$enable_shared" = no; then
14995   # Fast installation is not necessary
14996   enable_fast_install=needless
14997 fi
14998
14999
15000
15001
15002
15003
15004
15005   fi # test -n "$compiler"
15006
15007   CC=$lt_save_CC
15008   LDCXX=$LD
15009   LD=$lt_save_LD
15010   GCC=$lt_save_GCC
15011   with_gnu_ld=$lt_save_with_gnu_ld
15012   lt_cv_path_LDCXX=$lt_cv_path_LD
15013   lt_cv_path_LD=$lt_save_path_LD
15014   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15015   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15016 fi # test "$_lt_caught_CXX_error" != yes
15017
15018 ac_ext=c
15019 ac_cpp='$CPP $CPPFLAGS'
15020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036         ac_config_commands="$ac_config_commands libtool"
15037
15038
15039
15040
15041 # Only expand once:
15042
15043
15044
15045 # Checks for libraries.
15046
15047 # Check whether --enable-dlog was given.
15048 if test "${enable_dlog+set}" = set; then
15049   enableval=$enable_dlog;
15050  case "${enableval}" in
15051           yes) USE_DLOG=yes ;;
15052           no)  USE_DLOG=no ;;
15053           *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dlog" >&5
15054 echo "$as_me: error: bad value ${enableval} for --enable-dlog" >&2;}
15055    { (exit 1); exit 1; }; } ;;
15056  esac
15057
15058 else
15059   USE_DLOG=yes
15060 fi
15061
15062
15063 if test "x$USE_DLOG" = "xyes"; then
15064
15065
15066 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15067         if test -n "$ac_tool_prefix"; then
15068   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15069 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15072 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
15073   echo $ECHO_N "(cached) $ECHO_C" >&6
15074 else
15075   case $PKG_CONFIG in
15076   [\\/]* | ?:[\\/]*)
15077   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15078   ;;
15079   *)
15080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15081 for as_dir in $PATH
15082 do
15083   IFS=$as_save_IFS
15084   test -z "$as_dir" && as_dir=.
15085   for ac_exec_ext in '' $ac_executable_extensions; do
15086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15087     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15089     break 2
15090   fi
15091 done
15092 done
15093 IFS=$as_save_IFS
15094
15095   ;;
15096 esac
15097 fi
15098 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15099 if test -n "$PKG_CONFIG"; then
15100   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
15101 echo "${ECHO_T}$PKG_CONFIG" >&6; }
15102 else
15103   { echo "$as_me:$LINENO: result: no" >&5
15104 echo "${ECHO_T}no" >&6; }
15105 fi
15106
15107
15108 fi
15109 if test -z "$ac_cv_path_PKG_CONFIG"; then
15110   ac_pt_PKG_CONFIG=$PKG_CONFIG
15111   # Extract the first word of "pkg-config", so it can be a program name with args.
15112 set dummy pkg-config; ac_word=$2
15113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15115 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
15116   echo $ECHO_N "(cached) $ECHO_C" >&6
15117 else
15118   case $ac_pt_PKG_CONFIG in
15119   [\\/]* | ?:[\\/]*)
15120   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15121   ;;
15122   *)
15123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15124 for as_dir in $PATH
15125 do
15126   IFS=$as_save_IFS
15127   test -z "$as_dir" && as_dir=.
15128   for ac_exec_ext in '' $ac_executable_extensions; do
15129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15130     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15132     break 2
15133   fi
15134 done
15135 done
15136 IFS=$as_save_IFS
15137
15138   ;;
15139 esac
15140 fi
15141 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15142 if test -n "$ac_pt_PKG_CONFIG"; then
15143   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
15144 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
15145 else
15146   { echo "$as_me:$LINENO: result: no" >&5
15147 echo "${ECHO_T}no" >&6; }
15148 fi
15149
15150   if test "x$ac_pt_PKG_CONFIG" = x; then
15151     PKG_CONFIG=""
15152   else
15153     case $cross_compiling:$ac_tool_warned in
15154 yes:)
15155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15156 whose name does not start with the host triplet.  If you think this
15157 configuration is useful to you, please write to autoconf@gnu.org." >&5
15158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15159 whose name does not start with the host triplet.  If you think this
15160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15161 ac_tool_warned=yes ;;
15162 esac
15163     PKG_CONFIG=$ac_pt_PKG_CONFIG
15164   fi
15165 else
15166   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15167 fi
15168
15169 fi
15170 if test -n "$PKG_CONFIG"; then
15171         _pkg_min_version=0.9.0
15172         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
15173 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
15174         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15175                 { echo "$as_me:$LINENO: result: yes" >&5
15176 echo "${ECHO_T}yes" >&6; }
15177         else
15178                 { echo "$as_me:$LINENO: result: no" >&5
15179 echo "${ECHO_T}no" >&6; }
15180                 PKG_CONFIG=""
15181         fi
15182
15183 fi
15184
15185 pkg_failed=no
15186 { echo "$as_me:$LINENO: checking for DLOG" >&5
15187 echo $ECHO_N "checking for DLOG... $ECHO_C" >&6; }
15188
15189 if test -n "$PKG_CONFIG"; then
15190     if test -n "$DLOG_CFLAGS"; then
15191         pkg_cv_DLOG_CFLAGS="$DLOG_CFLAGS"
15192     else
15193         if test -n "$PKG_CONFIG" && \
15194     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dlog\"") >&5
15195   ($PKG_CONFIG --exists --print-errors "dlog") 2>&5
15196   ac_status=$?
15197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198   (exit $ac_status); }; then
15199   pkg_cv_DLOG_CFLAGS=`$PKG_CONFIG --cflags "dlog" 2>/dev/null`
15200 else
15201   pkg_failed=yes
15202 fi
15203     fi
15204 else
15205         pkg_failed=untried
15206 fi
15207 if test -n "$PKG_CONFIG"; then
15208     if test -n "$DLOG_LIBS"; then
15209         pkg_cv_DLOG_LIBS="$DLOG_LIBS"
15210     else
15211         if test -n "$PKG_CONFIG" && \
15212     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dlog\"") >&5
15213   ($PKG_CONFIG --exists --print-errors "dlog") 2>&5
15214   ac_status=$?
15215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216   (exit $ac_status); }; then
15217   pkg_cv_DLOG_LIBS=`$PKG_CONFIG --libs "dlog" 2>/dev/null`
15218 else
15219   pkg_failed=yes
15220 fi
15221     fi
15222 else
15223         pkg_failed=untried
15224 fi
15225
15226
15227
15228 if test $pkg_failed = yes; then
15229
15230 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15231         _pkg_short_errors_supported=yes
15232 else
15233         _pkg_short_errors_supported=no
15234 fi
15235         if test $_pkg_short_errors_supported = yes; then
15236                 DLOG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dlog"`
15237         else
15238                 DLOG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dlog"`
15239         fi
15240         # Put the nasty error message in config.log where it belongs
15241         echo "$DLOG_PKG_ERRORS" >&5
15242
15243         { { echo "$as_me:$LINENO: error: Package requirements (dlog) were not met:
15244
15245 $DLOG_PKG_ERRORS
15246
15247 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15248 installed software in a non-standard prefix.
15249
15250 Alternatively, you may set the environment variables DLOG_CFLAGS
15251 and DLOG_LIBS to avoid the need to call pkg-config.
15252 See the pkg-config man page for more details.
15253 " >&5
15254 echo "$as_me: error: Package requirements (dlog) were not met:
15255
15256 $DLOG_PKG_ERRORS
15257
15258 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15259 installed software in a non-standard prefix.
15260
15261 Alternatively, you may set the environment variables DLOG_CFLAGS
15262 and DLOG_LIBS to avoid the need to call pkg-config.
15263 See the pkg-config man page for more details.
15264 " >&2;}
15265    { (exit 1); exit 1; }; }
15266 elif test $pkg_failed = untried; then
15267         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
15268 is in your PATH or set the PKG_CONFIG environment variable to the full
15269 path to pkg-config.
15270
15271 Alternatively, you may set the environment variables DLOG_CFLAGS
15272 and DLOG_LIBS to avoid the need to call pkg-config.
15273 See the pkg-config man page for more details.
15274
15275 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15276 See \`config.log' for more details." >&5
15277 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
15278 is in your PATH or set the PKG_CONFIG environment variable to the full
15279 path to pkg-config.
15280
15281 Alternatively, you may set the environment variables DLOG_CFLAGS
15282 and DLOG_LIBS to avoid the need to call pkg-config.
15283 See the pkg-config man page for more details.
15284
15285 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15286 See \`config.log' for more details." >&2;}
15287    { (exit 1); exit 1; }; }
15288 else
15289         DLOG_CFLAGS=$pkg_cv_DLOG_CFLAGS
15290         DLOG_LIBS=$pkg_cv_DLOG_LIBS
15291         { echo "$as_me:$LINENO: result: yes" >&5
15292 echo "${ECHO_T}yes" >&6; }
15293         :
15294 fi
15295
15296
15297 fi
15298  if test "x$USE_DLOG" = "xyes"; then
15299   USE_DLOG_TRUE=
15300   USE_DLOG_FALSE='#'
15301 else
15302   USE_DLOG_TRUE='#'
15303   USE_DLOG_FALSE=
15304 fi
15305
15306
15307 # Checks for header files.
15308 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15309 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15310 if test "${ac_cv_header_stdc+set}" = set; then
15311   echo $ECHO_N "(cached) $ECHO_C" >&6
15312 else
15313   cat >conftest.$ac_ext <<_ACEOF
15314 /* confdefs.h.  */
15315 _ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h.  */
15319 #include <stdlib.h>
15320 #include <stdarg.h>
15321 #include <string.h>
15322 #include <float.h>
15323
15324 int
15325 main ()
15326 {
15327
15328   ;
15329   return 0;
15330 }
15331 _ACEOF
15332 rm -f conftest.$ac_objext
15333 if { (ac_try="$ac_compile"
15334 case "(($ac_try" in
15335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336   *) ac_try_echo=$ac_try;;
15337 esac
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339   (eval "$ac_compile") 2>conftest.er1
15340   ac_status=$?
15341   grep -v '^ *+' conftest.er1 >conftest.err
15342   rm -f conftest.er1
15343   cat conftest.err >&5
15344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345   (exit $ac_status); } && {
15346          test -z "$ac_c_werror_flag" ||
15347          test ! -s conftest.err
15348        } && test -s conftest.$ac_objext; then
15349   ac_cv_header_stdc=yes
15350 else
15351   echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15353
15354         ac_cv_header_stdc=no
15355 fi
15356
15357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15358
15359 if test $ac_cv_header_stdc = yes; then
15360   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15361   cat >conftest.$ac_ext <<_ACEOF
15362 /* confdefs.h.  */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h.  */
15367 #include <string.h>
15368
15369 _ACEOF
15370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15371   $EGREP "memchr" >/dev/null 2>&1; then
15372   :
15373 else
15374   ac_cv_header_stdc=no
15375 fi
15376 rm -f conftest*
15377
15378 fi
15379
15380 if test $ac_cv_header_stdc = yes; then
15381   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15382   cat >conftest.$ac_ext <<_ACEOF
15383 /* confdefs.h.  */
15384 _ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h.  */
15388 #include <stdlib.h>
15389
15390 _ACEOF
15391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15392   $EGREP "free" >/dev/null 2>&1; then
15393   :
15394 else
15395   ac_cv_header_stdc=no
15396 fi
15397 rm -f conftest*
15398
15399 fi
15400
15401 if test $ac_cv_header_stdc = yes; then
15402   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15403   if test "$cross_compiling" = yes; then
15404   :
15405 else
15406   cat >conftest.$ac_ext <<_ACEOF
15407 /* confdefs.h.  */
15408 _ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h.  */
15412 #include <ctype.h>
15413 #include <stdlib.h>
15414 #if ((' ' & 0x0FF) == 0x020)
15415 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15416 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15417 #else
15418 # define ISLOWER(c) \
15419                    (('a' <= (c) && (c) <= 'i') \
15420                      || ('j' <= (c) && (c) <= 'r') \
15421                      || ('s' <= (c) && (c) <= 'z'))
15422 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15423 #endif
15424
15425 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15426 int
15427 main ()
15428 {
15429   int i;
15430   for (i = 0; i < 256; i++)
15431     if (XOR (islower (i), ISLOWER (i))
15432         || toupper (i) != TOUPPER (i))
15433       return 2;
15434   return 0;
15435 }
15436 _ACEOF
15437 rm -f conftest$ac_exeext
15438 if { (ac_try="$ac_link"
15439 case "(($ac_try" in
15440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441   *) ac_try_echo=$ac_try;;
15442 esac
15443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444   (eval "$ac_link") 2>&5
15445   ac_status=$?
15446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15448   { (case "(($ac_try" in
15449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15450   *) ac_try_echo=$ac_try;;
15451 esac
15452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15453   (eval "$ac_try") 2>&5
15454   ac_status=$?
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); }; }; then
15457   :
15458 else
15459   echo "$as_me: program exited with status $ac_status" >&5
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15462
15463 ( exit $ac_status )
15464 ac_cv_header_stdc=no
15465 fi
15466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15467 fi
15468
15469
15470 fi
15471 fi
15472 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15473 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15474 if test $ac_cv_header_stdc = yes; then
15475
15476 cat >>confdefs.h <<\_ACEOF
15477 #define STDC_HEADERS 1
15478 _ACEOF
15479
15480 fi
15481
15482
15483
15484
15485 for ac_header in malloc.h sys/mman.h sys/ioctl.h
15486 do
15487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15489   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15492   echo $ECHO_N "(cached) $ECHO_C" >&6
15493 fi
15494 ac_res=`eval echo '${'$as_ac_Header'}'`
15495                { echo "$as_me:$LINENO: result: $ac_res" >&5
15496 echo "${ECHO_T}$ac_res" >&6; }
15497 else
15498   # Is the header compilable?
15499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15501 cat >conftest.$ac_ext <<_ACEOF
15502 /* confdefs.h.  */
15503 _ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h.  */
15507 $ac_includes_default
15508 #include <$ac_header>
15509 _ACEOF
15510 rm -f conftest.$ac_objext
15511 if { (ac_try="$ac_compile"
15512 case "(($ac_try" in
15513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514   *) ac_try_echo=$ac_try;;
15515 esac
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517   (eval "$ac_compile") 2>conftest.er1
15518   ac_status=$?
15519   grep -v '^ *+' conftest.er1 >conftest.err
15520   rm -f conftest.er1
15521   cat conftest.err >&5
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); } && {
15524          test -z "$ac_c_werror_flag" ||
15525          test ! -s conftest.err
15526        } && test -s conftest.$ac_objext; then
15527   ac_header_compiler=yes
15528 else
15529   echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15531
15532         ac_header_compiler=no
15533 fi
15534
15535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15537 echo "${ECHO_T}$ac_header_compiler" >&6; }
15538
15539 # Is the header present?
15540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15542 cat >conftest.$ac_ext <<_ACEOF
15543 /* confdefs.h.  */
15544 _ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h.  */
15548 #include <$ac_header>
15549 _ACEOF
15550 if { (ac_try="$ac_cpp conftest.$ac_ext"
15551 case "(($ac_try" in
15552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553   *) ac_try_echo=$ac_try;;
15554 esac
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15557   ac_status=$?
15558   grep -v '^ *+' conftest.er1 >conftest.err
15559   rm -f conftest.er1
15560   cat conftest.err >&5
15561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562   (exit $ac_status); } >/dev/null && {
15563          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15564          test ! -s conftest.err
15565        }; then
15566   ac_header_preproc=yes
15567 else
15568   echo "$as_me: failed program was:" >&5
15569 sed 's/^/| /' conftest.$ac_ext >&5
15570
15571   ac_header_preproc=no
15572 fi
15573
15574 rm -f conftest.err conftest.$ac_ext
15575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15576 echo "${ECHO_T}$ac_header_preproc" >&6; }
15577
15578 # So?  What about this header?
15579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15580   yes:no: )
15581     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15585     ac_header_preproc=yes
15586     ;;
15587   no:yes:* )
15588     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15590     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15591 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15592     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15594     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15595 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15598     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15600
15601     ;;
15602 esac
15603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15606   echo $ECHO_N "(cached) $ECHO_C" >&6
15607 else
15608   eval "$as_ac_Header=\$ac_header_preproc"
15609 fi
15610 ac_res=`eval echo '${'$as_ac_Header'}'`
15611                { echo "$as_me:$LINENO: result: $ac_res" >&5
15612 echo "${ECHO_T}$ac_res" >&6; }
15613
15614 fi
15615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15616   cat >>confdefs.h <<_ACEOF
15617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15618 _ACEOF
15619
15620 fi
15621
15622 done
15623
15624
15625 # Checks for typedefs, structures, and compiler characteristics.
15626 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15627 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
15628 if test "${ac_cv_c_const+set}" = set; then
15629   echo $ECHO_N "(cached) $ECHO_C" >&6
15630 else
15631   cat >conftest.$ac_ext <<_ACEOF
15632 /* confdefs.h.  */
15633 _ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h.  */
15637
15638 int
15639 main ()
15640 {
15641 /* FIXME: Include the comments suggested by Paul. */
15642 #ifndef __cplusplus
15643   /* Ultrix mips cc rejects this.  */
15644   typedef int charset[2];
15645   const charset cs;
15646   /* SunOS 4.1.1 cc rejects this.  */
15647   char const *const *pcpcc;
15648   char **ppc;
15649   /* NEC SVR4.0.2 mips cc rejects this.  */
15650   struct point {int x, y;};
15651   static struct point const zero = {0,0};
15652   /* AIX XL C 1.02.0.0 rejects this.
15653      It does not let you subtract one const X* pointer from another in
15654      an arm of an if-expression whose if-part is not a constant
15655      expression */
15656   const char *g = "string";
15657   pcpcc = &g + (g ? g-g : 0);
15658   /* HPUX 7.0 cc rejects these. */
15659   ++pcpcc;
15660   ppc = (char**) pcpcc;
15661   pcpcc = (char const *const *) ppc;
15662   { /* SCO 3.2v4 cc rejects this.  */
15663     char *t;
15664     char const *s = 0 ? (char *) 0 : (char const *) 0;
15665
15666     *t++ = 0;
15667     if (s) return 0;
15668   }
15669   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15670     int x[] = {25, 17};
15671     const int *foo = &x[0];
15672     ++foo;
15673   }
15674   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15675     typedef const int *iptr;
15676     iptr p = 0;
15677     ++p;
15678   }
15679   { /* AIX XL C 1.02.0.0 rejects this saying
15680        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15681     struct s { int j; const int *ap[3]; };
15682     struct s *b; b->j = 5;
15683   }
15684   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15685     const int foo = 10;
15686     if (!foo) return 0;
15687   }
15688   return !cs[0] && !zero.x;
15689 #endif
15690
15691   ;
15692   return 0;
15693 }
15694 _ACEOF
15695 rm -f conftest.$ac_objext
15696 if { (ac_try="$ac_compile"
15697 case "(($ac_try" in
15698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699   *) ac_try_echo=$ac_try;;
15700 esac
15701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702   (eval "$ac_compile") 2>conftest.er1
15703   ac_status=$?
15704   grep -v '^ *+' conftest.er1 >conftest.err
15705   rm -f conftest.er1
15706   cat conftest.err >&5
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); } && {
15709          test -z "$ac_c_werror_flag" ||
15710          test ! -s conftest.err
15711        } && test -s conftest.$ac_objext; then
15712   ac_cv_c_const=yes
15713 else
15714   echo "$as_me: failed program was:" >&5
15715 sed 's/^/| /' conftest.$ac_ext >&5
15716
15717         ac_cv_c_const=no
15718 fi
15719
15720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15721 fi
15722 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15723 echo "${ECHO_T}$ac_cv_c_const" >&6; }
15724 if test $ac_cv_c_const = no; then
15725
15726 cat >>confdefs.h <<\_ACEOF
15727 #define const
15728 _ACEOF
15729
15730 fi
15731
15732 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15733 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15734 if test "${ac_cv_header_time+set}" = set; then
15735   echo $ECHO_N "(cached) $ECHO_C" >&6
15736 else
15737   cat >conftest.$ac_ext <<_ACEOF
15738 /* confdefs.h.  */
15739 _ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h.  */
15743 #include <sys/types.h>
15744 #include <sys/time.h>
15745 #include <time.h>
15746
15747 int
15748 main ()
15749 {
15750 if ((struct tm *) 0)
15751 return 0;
15752   ;
15753   return 0;
15754 }
15755 _ACEOF
15756 rm -f conftest.$ac_objext
15757 if { (ac_try="$ac_compile"
15758 case "(($ac_try" in
15759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760   *) ac_try_echo=$ac_try;;
15761 esac
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763   (eval "$ac_compile") 2>conftest.er1
15764   ac_status=$?
15765   grep -v '^ *+' conftest.er1 >conftest.err
15766   rm -f conftest.er1
15767   cat conftest.err >&5
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); } && {
15770          test -z "$ac_c_werror_flag" ||
15771          test ! -s conftest.err
15772        } && test -s conftest.$ac_objext; then
15773   ac_cv_header_time=yes
15774 else
15775   echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15777
15778         ac_cv_header_time=no
15779 fi
15780
15781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782 fi
15783 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15784 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15785 if test $ac_cv_header_time = yes; then
15786
15787 cat >>confdefs.h <<\_ACEOF
15788 #define TIME_WITH_SYS_TIME 1
15789 _ACEOF
15790
15791 fi
15792
15793
15794 # Checks for library functions.
15795
15796 for ac_header in stdlib.h
15797 do
15798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15800   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15803   echo $ECHO_N "(cached) $ECHO_C" >&6
15804 fi
15805 ac_res=`eval echo '${'$as_ac_Header'}'`
15806                { echo "$as_me:$LINENO: result: $ac_res" >&5
15807 echo "${ECHO_T}$ac_res" >&6; }
15808 else
15809   # Is the header compilable?
15810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15812 cat >conftest.$ac_ext <<_ACEOF
15813 /* confdefs.h.  */
15814 _ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h.  */
15818 $ac_includes_default
15819 #include <$ac_header>
15820 _ACEOF
15821 rm -f conftest.$ac_objext
15822 if { (ac_try="$ac_compile"
15823 case "(($ac_try" in
15824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825   *) ac_try_echo=$ac_try;;
15826 esac
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828   (eval "$ac_compile") 2>conftest.er1
15829   ac_status=$?
15830   grep -v '^ *+' conftest.er1 >conftest.err
15831   rm -f conftest.er1
15832   cat conftest.err >&5
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); } && {
15835          test -z "$ac_c_werror_flag" ||
15836          test ! -s conftest.err
15837        } && test -s conftest.$ac_objext; then
15838   ac_header_compiler=yes
15839 else
15840   echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15842
15843         ac_header_compiler=no
15844 fi
15845
15846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15848 echo "${ECHO_T}$ac_header_compiler" >&6; }
15849
15850 # Is the header present?
15851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15853 cat >conftest.$ac_ext <<_ACEOF
15854 /* confdefs.h.  */
15855 _ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h.  */
15859 #include <$ac_header>
15860 _ACEOF
15861 if { (ac_try="$ac_cpp conftest.$ac_ext"
15862 case "(($ac_try" in
15863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864   *) ac_try_echo=$ac_try;;
15865 esac
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15868   ac_status=$?
15869   grep -v '^ *+' conftest.er1 >conftest.err
15870   rm -f conftest.er1
15871   cat conftest.err >&5
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); } >/dev/null && {
15874          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15875          test ! -s conftest.err
15876        }; then
15877   ac_header_preproc=yes
15878 else
15879   echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15881
15882   ac_header_preproc=no
15883 fi
15884
15885 rm -f conftest.err conftest.$ac_ext
15886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15887 echo "${ECHO_T}$ac_header_preproc" >&6; }
15888
15889 # So?  What about this header?
15890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15891   yes:no: )
15892     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15896     ac_header_preproc=yes
15897     ;;
15898   no:yes:* )
15899     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15901     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15902 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15903     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15905     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15906 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15909     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15911
15912     ;;
15913 esac
15914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15917   echo $ECHO_N "(cached) $ECHO_C" >&6
15918 else
15919   eval "$as_ac_Header=\$ac_header_preproc"
15920 fi
15921 ac_res=`eval echo '${'$as_ac_Header'}'`
15922                { echo "$as_me:$LINENO: result: $ac_res" >&5
15923 echo "${ECHO_T}$ac_res" >&6; }
15924
15925 fi
15926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15927   cat >>confdefs.h <<_ACEOF
15928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15929 _ACEOF
15930
15931 fi
15932
15933 done
15934
15935 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
15936 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
15937 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
15938   echo $ECHO_N "(cached) $ECHO_C" >&6
15939 else
15940   if test "$cross_compiling" = yes; then
15941   ac_cv_func_malloc_0_nonnull=no
15942 else
15943   cat >conftest.$ac_ext <<_ACEOF
15944 /* confdefs.h.  */
15945 _ACEOF
15946 cat confdefs.h >>conftest.$ac_ext
15947 cat >>conftest.$ac_ext <<_ACEOF
15948 /* end confdefs.h.  */
15949 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15950 # include <stdlib.h>
15951 #else
15952 char *malloc ();
15953 #endif
15954
15955 int
15956 main ()
15957 {
15958 return ! malloc (0);
15959   ;
15960   return 0;
15961 }
15962 _ACEOF
15963 rm -f conftest$ac_exeext
15964 if { (ac_try="$ac_link"
15965 case "(($ac_try" in
15966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15967   *) ac_try_echo=$ac_try;;
15968 esac
15969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15970   (eval "$ac_link") 2>&5
15971   ac_status=$?
15972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15974   { (case "(($ac_try" in
15975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15976   *) ac_try_echo=$ac_try;;
15977 esac
15978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15979   (eval "$ac_try") 2>&5
15980   ac_status=$?
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); }; }; then
15983   ac_cv_func_malloc_0_nonnull=yes
15984 else
15985   echo "$as_me: program exited with status $ac_status" >&5
15986 echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.$ac_ext >&5
15988
15989 ( exit $ac_status )
15990 ac_cv_func_malloc_0_nonnull=no
15991 fi
15992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15993 fi
15994
15995
15996 fi
15997 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
15998 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
15999 if test $ac_cv_func_malloc_0_nonnull = yes; then
16000
16001 cat >>confdefs.h <<\_ACEOF
16002 #define HAVE_MALLOC 1
16003 _ACEOF
16004
16005 else
16006   cat >>confdefs.h <<\_ACEOF
16007 #define HAVE_MALLOC 0
16008 _ACEOF
16009
16010    case " $LIBOBJS " in
16011   *" malloc.$ac_objext "* ) ;;
16012   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16013  ;;
16014 esac
16015
16016
16017 cat >>confdefs.h <<\_ACEOF
16018 #define malloc rpl_malloc
16019 _ACEOF
16020
16021 fi
16022
16023
16024
16025
16026
16027
16028
16029 for ac_func in gethostname gettimeofday memset uname
16030 do
16031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16032 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16034 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16035   echo $ECHO_N "(cached) $ECHO_C" >&6
16036 else
16037   cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h.  */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h.  */
16043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16044    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16045 #define $ac_func innocuous_$ac_func
16046
16047 /* System header to define __stub macros and hopefully few prototypes,
16048     which can conflict with char $ac_func (); below.
16049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16050     <limits.h> exists even on freestanding compilers.  */
16051
16052 #ifdef __STDC__
16053 # include <limits.h>
16054 #else
16055 # include <assert.h>
16056 #endif
16057
16058 #undef $ac_func
16059
16060 /* Override any GCC internal prototype to avoid an error.
16061    Use char because int might match the return type of a GCC
16062    builtin and then its argument prototype would still apply.  */
16063 #ifdef __cplusplus
16064 extern "C"
16065 #endif
16066 char $ac_func ();
16067 /* The GNU C library defines this for functions which it implements
16068     to always fail with ENOSYS.  Some functions are actually named
16069     something starting with __ and the normal name is an alias.  */
16070 #if defined __stub_$ac_func || defined __stub___$ac_func
16071 choke me
16072 #endif
16073
16074 int
16075 main ()
16076 {
16077 return $ac_func ();
16078   ;
16079   return 0;
16080 }
16081 _ACEOF
16082 rm -f conftest.$ac_objext conftest$ac_exeext
16083 if { (ac_try="$ac_link"
16084 case "(($ac_try" in
16085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086   *) ac_try_echo=$ac_try;;
16087 esac
16088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089   (eval "$ac_link") 2>conftest.er1
16090   ac_status=$?
16091   grep -v '^ *+' conftest.er1 >conftest.err
16092   rm -f conftest.er1
16093   cat conftest.err >&5
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   (exit $ac_status); } && {
16096          test -z "$ac_c_werror_flag" ||
16097          test ! -s conftest.err
16098        } && test -s conftest$ac_exeext &&
16099        $as_test_x conftest$ac_exeext; then
16100   eval "$as_ac_var=yes"
16101 else
16102   echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16104
16105         eval "$as_ac_var=no"
16106 fi
16107
16108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16109       conftest$ac_exeext conftest.$ac_ext
16110 fi
16111 ac_res=`eval echo '${'$as_ac_var'}'`
16112                { echo "$as_me:$LINENO: result: $ac_res" >&5
16113 echo "${ECHO_T}$ac_res" >&6; }
16114 if test `eval echo '${'$as_ac_var'}'` = yes; then
16115   cat >>confdefs.h <<_ACEOF
16116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16117 _ACEOF
16118
16119 fi
16120 done
16121
16122
16123
16124 pkg_failed=no
16125 { echo "$as_me:$LINENO: checking for GLIB" >&5
16126 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
16127
16128 if test -n "$PKG_CONFIG"; then
16129     if test -n "$GLIB_CFLAGS"; then
16130         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
16131     else
16132         if test -n "$PKG_CONFIG" && \
16133     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
16134   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
16135   ac_status=$?
16136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137   (exit $ac_status); }; then
16138   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
16139 else
16140   pkg_failed=yes
16141 fi
16142     fi
16143 else
16144         pkg_failed=untried
16145 fi
16146 if test -n "$PKG_CONFIG"; then
16147     if test -n "$GLIB_LIBS"; then
16148         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
16149     else
16150         if test -n "$PKG_CONFIG" && \
16151     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
16152   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
16153   ac_status=$?
16154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155   (exit $ac_status); }; then
16156   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
16157 else
16158   pkg_failed=yes
16159 fi
16160     fi
16161 else
16162         pkg_failed=untried
16163 fi
16164
16165
16166
16167 if test $pkg_failed = yes; then
16168
16169 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16170         _pkg_short_errors_supported=yes
16171 else
16172         _pkg_short_errors_supported=no
16173 fi
16174         if test $_pkg_short_errors_supported = yes; then
16175                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
16176         else
16177                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
16178         fi
16179         # Put the nasty error message in config.log where it belongs
16180         echo "$GLIB_PKG_ERRORS" >&5
16181
16182         { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
16183
16184 $GLIB_PKG_ERRORS
16185
16186 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16187 installed software in a non-standard prefix.
16188
16189 Alternatively, you may set the environment variables GLIB_CFLAGS
16190 and GLIB_LIBS to avoid the need to call pkg-config.
16191 See the pkg-config man page for more details.
16192 " >&5
16193 echo "$as_me: error: Package requirements (glib-2.0) were not met:
16194
16195 $GLIB_PKG_ERRORS
16196
16197 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16198 installed software in a non-standard prefix.
16199
16200 Alternatively, you may set the environment variables GLIB_CFLAGS
16201 and GLIB_LIBS to avoid the need to call pkg-config.
16202 See the pkg-config man page for more details.
16203 " >&2;}
16204    { (exit 1); exit 1; }; }
16205 elif test $pkg_failed = untried; then
16206         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
16207 is in your PATH or set the PKG_CONFIG environment variable to the full
16208 path to pkg-config.
16209
16210 Alternatively, you may set the environment variables GLIB_CFLAGS
16211 and GLIB_LIBS to avoid the need to call pkg-config.
16212 See the pkg-config man page for more details.
16213
16214 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16215 See \`config.log' for more details." >&5
16216 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
16217 is in your PATH or set the PKG_CONFIG environment variable to the full
16218 path to pkg-config.
16219
16220 Alternatively, you may set the environment variables GLIB_CFLAGS
16221 and GLIB_LIBS to avoid the need to call pkg-config.
16222 See the pkg-config man page for more details.
16223
16224 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16225 See \`config.log' for more details." >&2;}
16226    { (exit 1); exit 1; }; }
16227 else
16228         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
16229         GLIB_LIBS=$pkg_cv_GLIB_LIBS
16230         { echo "$as_me:$LINENO: result: yes" >&5
16231 echo "${ECHO_T}yes" >&6; }
16232         :
16233 fi
16234
16235
16236
16237 ac_config_files="$ac_config_files Makefile src/Makefile camsrcjpegenc-sw.pc"
16238
16239 cat >confcache <<\_ACEOF
16240 # This file is a shell script that caches the results of configure
16241 # tests run on this system so they can be shared between configure
16242 # scripts and configure runs, see configure's option --config-cache.
16243 # It is not useful on other systems.  If it contains results you don't
16244 # want to keep, you may remove or edit it.
16245 #
16246 # config.status only pays attention to the cache file if you give it
16247 # the --recheck option to rerun configure.
16248 #
16249 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16250 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16251 # following values.
16252
16253 _ACEOF
16254
16255 # The following way of writing the cache mishandles newlines in values,
16256 # but we know of no workaround that is simple, portable, and efficient.
16257 # So, we kill variables containing newlines.
16258 # Ultrix sh set writes to stderr and can't be redirected directly,
16259 # and sets the high bit in the cache file unless we assign to the vars.
16260 (
16261   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16262     eval ac_val=\$$ac_var
16263     case $ac_val in #(
16264     *${as_nl}*)
16265       case $ac_var in #(
16266       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16267 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16268       esac
16269       case $ac_var in #(
16270       _ | IFS | as_nl) ;; #(
16271       *) $as_unset $ac_var ;;
16272       esac ;;
16273     esac
16274   done
16275
16276   (set) 2>&1 |
16277     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16278     *${as_nl}ac_space=\ *)
16279       # `set' does not quote correctly, so add quotes (double-quote
16280       # substitution turns \\\\ into \\, and sed turns \\ into \).
16281       sed -n \
16282         "s/'/'\\\\''/g;
16283           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16284       ;; #(
16285     *)
16286       # `set' quotes correctly as required by POSIX, so do not add quotes.
16287       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16288       ;;
16289     esac |
16290     sort
16291 ) |
16292   sed '
16293      /^ac_cv_env_/b end
16294      t clear
16295      :clear
16296      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16297      t end
16298      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16299      :end' >>confcache
16300 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16301   if test -w "$cache_file"; then
16302     test "x$cache_file" != "x/dev/null" &&
16303       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16304 echo "$as_me: updating cache $cache_file" >&6;}
16305     cat confcache >$cache_file
16306   else
16307     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16308 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16309   fi
16310 fi
16311 rm -f confcache
16312
16313 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16314 # Let make expand exec_prefix.
16315 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16316
16317 DEFS=-DHAVE_CONFIG_H
16318
16319 ac_libobjs=
16320 ac_ltlibobjs=
16321 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16322   # 1. Remove the extension, and $U if already installed.
16323   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16324   ac_i=`echo "$ac_i" | sed "$ac_script"`
16325   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16326   #    will be set to the directory where LIBOBJS objects are built.
16327   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16328   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16329 done
16330 LIBOBJS=$ac_libobjs
16331
16332 LTLIBOBJS=$ac_ltlibobjs
16333
16334
16335 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16336   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16337 Usually this means the macro was only invoked conditionally." >&5
16338 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16339 Usually this means the macro was only invoked conditionally." >&2;}
16340    { (exit 1); exit 1; }; }
16341 fi
16342 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16343   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16344 Usually this means the macro was only invoked conditionally." >&5
16345 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16346 Usually this means the macro was only invoked conditionally." >&2;}
16347    { (exit 1); exit 1; }; }
16348 fi
16349 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16350   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16351 Usually this means the macro was only invoked conditionally." >&5
16352 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16353 Usually this means the macro was only invoked conditionally." >&2;}
16354    { (exit 1); exit 1; }; }
16355 fi
16356 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16357   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16358 Usually this means the macro was only invoked conditionally." >&5
16359 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16360 Usually this means the macro was only invoked conditionally." >&2;}
16361    { (exit 1); exit 1; }; }
16362 fi
16363 if test -z "${USE_DLOG_TRUE}" && test -z "${USE_DLOG_FALSE}"; then
16364   { { echo "$as_me:$LINENO: error: conditional \"USE_DLOG\" was never defined.
16365 Usually this means the macro was only invoked conditionally." >&5
16366 echo "$as_me: error: conditional \"USE_DLOG\" was never defined.
16367 Usually this means the macro was only invoked conditionally." >&2;}
16368    { (exit 1); exit 1; }; }
16369 fi
16370
16371 : ${CONFIG_STATUS=./config.status}
16372 ac_clean_files_save=$ac_clean_files
16373 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16374 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16375 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16376 cat >$CONFIG_STATUS <<_ACEOF
16377 #! $SHELL
16378 # Generated by $as_me.
16379 # Run this file to recreate the current configuration.
16380 # Compiler output produced by configure, useful for debugging
16381 # configure, is in config.log if it exists.
16382
16383 debug=false
16384 ac_cs_recheck=false
16385 ac_cs_silent=false
16386 SHELL=\${CONFIG_SHELL-$SHELL}
16387 _ACEOF
16388
16389 cat >>$CONFIG_STATUS <<\_ACEOF
16390 ## --------------------- ##
16391 ## M4sh Initialization.  ##
16392 ## --------------------- ##
16393
16394 # Be more Bourne compatible
16395 DUALCASE=1; export DUALCASE # for MKS sh
16396 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16397   emulate sh
16398   NULLCMD=:
16399   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16400   # is contrary to our usage.  Disable this feature.
16401   alias -g '${1+"$@"}'='"$@"'
16402   setopt NO_GLOB_SUBST
16403 else
16404   case `(set -o) 2>/dev/null` in
16405   *posix*) set -o posix ;;
16406 esac
16407
16408 fi
16409
16410
16411
16412
16413 # PATH needs CR
16414 # Avoid depending upon Character Ranges.
16415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16418 as_cr_digits='0123456789'
16419 as_cr_alnum=$as_cr_Letters$as_cr_digits
16420
16421 # The user is always right.
16422 if test "${PATH_SEPARATOR+set}" != set; then
16423   echo "#! /bin/sh" >conf$$.sh
16424   echo  "exit 0"   >>conf$$.sh
16425   chmod +x conf$$.sh
16426   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16427     PATH_SEPARATOR=';'
16428   else
16429     PATH_SEPARATOR=:
16430   fi
16431   rm -f conf$$.sh
16432 fi
16433
16434 # Support unset when possible.
16435 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16436   as_unset=unset
16437 else
16438   as_unset=false
16439 fi
16440
16441
16442 # IFS
16443 # We need space, tab and new line, in precisely that order.  Quoting is
16444 # there to prevent editors from complaining about space-tab.
16445 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16446 # splitting by setting IFS to empty value.)
16447 as_nl='
16448 '
16449 IFS=" ""        $as_nl"
16450
16451 # Find who we are.  Look in the path if we contain no directory separator.
16452 case $0 in
16453   *[\\/]* ) as_myself=$0 ;;
16454   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16455 for as_dir in $PATH
16456 do
16457   IFS=$as_save_IFS
16458   test -z "$as_dir" && as_dir=.
16459   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16460 done
16461 IFS=$as_save_IFS
16462
16463      ;;
16464 esac
16465 # We did not find ourselves, most probably we were run as `sh COMMAND'
16466 # in which case we are not to be found in the path.
16467 if test "x$as_myself" = x; then
16468   as_myself=$0
16469 fi
16470 if test ! -f "$as_myself"; then
16471   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16472   { (exit 1); exit 1; }
16473 fi
16474
16475 # Work around bugs in pre-3.0 UWIN ksh.
16476 for as_var in ENV MAIL MAILPATH
16477 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16478 done
16479 PS1='$ '
16480 PS2='> '
16481 PS4='+ '
16482
16483 # NLS nuisances.
16484 for as_var in \
16485   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16486   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16487   LC_TELEPHONE LC_TIME
16488 do
16489   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16490     eval $as_var=C; export $as_var
16491   else
16492     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16493   fi
16494 done
16495
16496 # Required to use basename.
16497 if expr a : '\(a\)' >/dev/null 2>&1 &&
16498    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16499   as_expr=expr
16500 else
16501   as_expr=false
16502 fi
16503
16504 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16505   as_basename=basename
16506 else
16507   as_basename=false
16508 fi
16509
16510
16511 # Name of the executable.
16512 as_me=`$as_basename -- "$0" ||
16513 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16514          X"$0" : 'X\(//\)$' \| \
16515          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16516 echo X/"$0" |
16517     sed '/^.*\/\([^/][^/]*\)\/*$/{
16518             s//\1/
16519             q
16520           }
16521           /^X\/\(\/\/\)$/{
16522             s//\1/
16523             q
16524           }
16525           /^X\/\(\/\).*/{
16526             s//\1/
16527             q
16528           }
16529           s/.*/./; q'`
16530
16531 # CDPATH.
16532 $as_unset CDPATH
16533
16534
16535
16536   as_lineno_1=$LINENO
16537   as_lineno_2=$LINENO
16538   test "x$as_lineno_1" != "x$as_lineno_2" &&
16539   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16540
16541   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16542   # uniformly replaced by the line number.  The first 'sed' inserts a
16543   # line-number line after each line using $LINENO; the second 'sed'
16544   # does the real work.  The second script uses 'N' to pair each
16545   # line-number line with the line containing $LINENO, and appends
16546   # trailing '-' during substitution so that $LINENO is not a special
16547   # case at line end.
16548   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16549   # scripts with optimization help from Paolo Bonzini.  Blame Lee
16550   # E. McMahon (1931-1989) for sed's syntax.  :-)
16551   sed -n '
16552     p
16553     /[$]LINENO/=
16554   ' <$as_myself |
16555     sed '
16556       s/[$]LINENO.*/&-/
16557       t lineno
16558       b
16559       :lineno
16560       N
16561       :loop
16562       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16563       t loop
16564       s/-\n.*//
16565     ' >$as_me.lineno &&
16566   chmod +x "$as_me.lineno" ||
16567     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16568    { (exit 1); exit 1; }; }
16569
16570   # Don't try to exec as it changes $[0], causing all sort of problems
16571   # (the dirname of $[0] is not the place where we might find the
16572   # original and so on.  Autoconf is especially sensitive to this).
16573   . "./$as_me.lineno"
16574   # Exit status is that of the last command.
16575   exit
16576 }
16577
16578
16579 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16580   as_dirname=dirname
16581 else
16582   as_dirname=false
16583 fi
16584
16585 ECHO_C= ECHO_N= ECHO_T=
16586 case `echo -n x` in
16587 -n*)
16588   case `echo 'x\c'` in
16589   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16590   *)   ECHO_C='\c';;
16591   esac;;
16592 *)
16593   ECHO_N='-n';;
16594 esac
16595
16596 if expr a : '\(a\)' >/dev/null 2>&1 &&
16597    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16598   as_expr=expr
16599 else
16600   as_expr=false
16601 fi
16602
16603 rm -f conf$$ conf$$.exe conf$$.file
16604 if test -d conf$$.dir; then
16605   rm -f conf$$.dir/conf$$.file
16606 else
16607   rm -f conf$$.dir
16608   mkdir conf$$.dir
16609 fi
16610 echo >conf$$.file
16611 if ln -s conf$$.file conf$$ 2>/dev/null; then
16612   as_ln_s='ln -s'
16613   # ... but there are two gotchas:
16614   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16615   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16616   # In both cases, we have to default to `cp -p'.
16617   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16618     as_ln_s='cp -p'
16619 elif ln conf$$.file conf$$ 2>/dev/null; then
16620   as_ln_s=ln
16621 else
16622   as_ln_s='cp -p'
16623 fi
16624 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16625 rmdir conf$$.dir 2>/dev/null
16626
16627 if mkdir -p . 2>/dev/null; then
16628   as_mkdir_p=:
16629 else
16630   test -d ./-p && rmdir ./-p
16631   as_mkdir_p=false
16632 fi
16633
16634 if test -x / >/dev/null 2>&1; then
16635   as_test_x='test -x'
16636 else
16637   if ls -dL / >/dev/null 2>&1; then
16638     as_ls_L_option=L
16639   else
16640     as_ls_L_option=
16641   fi
16642   as_test_x='
16643     eval sh -c '\''
16644       if test -d "$1"; then
16645         test -d "$1/.";
16646       else
16647         case $1 in
16648         -*)set "./$1";;
16649         esac;
16650         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16651         ???[sx]*):;;*)false;;esac;fi
16652     '\'' sh
16653   '
16654 fi
16655 as_executable_p=$as_test_x
16656
16657 # Sed expression to map a string onto a valid CPP name.
16658 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16659
16660 # Sed expression to map a string onto a valid variable name.
16661 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16662
16663
16664 exec 6>&1
16665
16666 # Save the log message, to keep $[0] and so on meaningful, and to
16667 # report actual input values of CONFIG_FILES etc. instead of their
16668 # values after options handling.
16669 ac_log="
16670 This file was extended by libcamsrcjpegenc-sw $as_me 0.1, which was
16671 generated by GNU Autoconf 2.61.  Invocation command line was
16672
16673   CONFIG_FILES    = $CONFIG_FILES
16674   CONFIG_HEADERS  = $CONFIG_HEADERS
16675   CONFIG_LINKS    = $CONFIG_LINKS
16676   CONFIG_COMMANDS = $CONFIG_COMMANDS
16677   $ $0 $@
16678
16679 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16680 "
16681
16682 _ACEOF
16683
16684 cat >>$CONFIG_STATUS <<_ACEOF
16685 # Files that config.status was made for.
16686 config_files="$ac_config_files"
16687 config_headers="$ac_config_headers"
16688 config_commands="$ac_config_commands"
16689
16690 _ACEOF
16691
16692 cat >>$CONFIG_STATUS <<\_ACEOF
16693 ac_cs_usage="\
16694 \`$as_me' instantiates files from templates according to the
16695 current configuration.
16696
16697 Usage: $0 [OPTIONS] [FILE]...
16698
16699   -h, --help       print this help, then exit
16700   -V, --version    print version number and configuration settings, then exit
16701   -q, --quiet      do not print progress messages
16702   -d, --debug      don't remove temporary files
16703       --recheck    update $as_me by reconfiguring in the same conditions
16704   --file=FILE[:TEMPLATE]
16705                    instantiate the configuration file FILE
16706   --header=FILE[:TEMPLATE]
16707                    instantiate the configuration header FILE
16708
16709 Configuration files:
16710 $config_files
16711
16712 Configuration headers:
16713 $config_headers
16714
16715 Configuration commands:
16716 $config_commands
16717
16718 Report bugs to <bug-autoconf@gnu.org>."
16719
16720 _ACEOF
16721 cat >>$CONFIG_STATUS <<_ACEOF
16722 ac_cs_version="\\
16723 libcamsrcjpegenc-sw config.status 0.1
16724 configured by $0, generated by GNU Autoconf 2.61,
16725   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16726
16727 Copyright (C) 2006 Free Software Foundation, Inc.
16728 This config.status script is free software; the Free Software Foundation
16729 gives unlimited permission to copy, distribute and modify it."
16730
16731 ac_pwd='$ac_pwd'
16732 srcdir='$srcdir'
16733 INSTALL='$INSTALL'
16734 MKDIR_P='$MKDIR_P'
16735 _ACEOF
16736
16737 cat >>$CONFIG_STATUS <<\_ACEOF
16738 # If no file are specified by the user, then we need to provide default
16739 # value.  By we need to know if files were specified by the user.
16740 ac_need_defaults=:
16741 while test $# != 0
16742 do
16743   case $1 in
16744   --*=*)
16745     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16746     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16747     ac_shift=:
16748     ;;
16749   *)
16750     ac_option=$1
16751     ac_optarg=$2
16752     ac_shift=shift
16753     ;;
16754   esac
16755
16756   case $ac_option in
16757   # Handling of the options.
16758   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16759     ac_cs_recheck=: ;;
16760   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16761     echo "$ac_cs_version"; exit ;;
16762   --debug | --debu | --deb | --de | --d | -d )
16763     debug=: ;;
16764   --file | --fil | --fi | --f )
16765     $ac_shift
16766     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16767     ac_need_defaults=false;;
16768   --header | --heade | --head | --hea )
16769     $ac_shift
16770     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16771     ac_need_defaults=false;;
16772   --he | --h)
16773     # Conflict between --help and --header
16774     { echo "$as_me: error: ambiguous option: $1
16775 Try \`$0 --help' for more information." >&2
16776    { (exit 1); exit 1; }; };;
16777   --help | --hel | -h )
16778     echo "$ac_cs_usage"; exit ;;
16779   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16780   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16781     ac_cs_silent=: ;;
16782
16783   # This is an error.
16784   -*) { echo "$as_me: error: unrecognized option: $1
16785 Try \`$0 --help' for more information." >&2
16786    { (exit 1); exit 1; }; } ;;
16787
16788   *) ac_config_targets="$ac_config_targets $1"
16789      ac_need_defaults=false ;;
16790
16791   esac
16792   shift
16793 done
16794
16795 ac_configure_extra_args=
16796
16797 if $ac_cs_silent; then
16798   exec 6>/dev/null
16799   ac_configure_extra_args="$ac_configure_extra_args --silent"
16800 fi
16801
16802 _ACEOF
16803 cat >>$CONFIG_STATUS <<_ACEOF
16804 if \$ac_cs_recheck; then
16805   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16806   CONFIG_SHELL=$SHELL
16807   export CONFIG_SHELL
16808   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16809 fi
16810
16811 _ACEOF
16812 cat >>$CONFIG_STATUS <<\_ACEOF
16813 exec 5>>config.log
16814 {
16815   echo
16816   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16817 ## Running $as_me. ##
16818 _ASBOX
16819   echo "$ac_log"
16820 } >&5
16821
16822 _ACEOF
16823 cat >>$CONFIG_STATUS <<_ACEOF
16824 #
16825 # INIT-COMMANDS
16826 #
16827 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16828
16829
16830 # The HP-UX ksh and POSIX shell print the target directory to stdout
16831 # if CDPATH is set.
16832 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16833
16834 sed_quote_subst='$sed_quote_subst'
16835 double_quote_subst='$double_quote_subst'
16836 delay_variable_subst='$delay_variable_subst'
16837 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16838 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16839 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16840 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16841 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16842 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16843 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16844 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16845 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16846 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16847 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16848 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16849 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16850 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16851 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16852 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16853 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16854 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16855 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16856 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16857 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16858 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16859 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16860 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16861 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16862 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16863 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16864 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16865 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16866 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16867 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16868 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16869 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16870 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16871 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16872 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16873 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16874 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16875 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16876 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16877 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16878 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16879 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16880 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"`'
16881 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"`'
16882 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16883 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16884 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16885 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16886 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16887 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16888 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16889 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16890 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16891 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16892 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16893 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16894 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16895 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16896 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16897 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16898 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16899 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16900 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16901 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16902 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16903 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16904 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16905 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16906 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16907 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16908 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16909 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16910 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16911 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16912 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16913 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16914 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16915 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16916 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16917 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16918 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16919 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16920 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16921 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16922 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16923 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16924 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16925 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16926 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16927 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16928 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16929 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16930 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16931 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16932 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16933 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16934 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16935 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16936 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16937 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16938 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16939 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16940 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16941 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16942 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16943 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16944 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16945 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16946 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16947 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16948 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16949 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16950 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16951 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16952 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16953 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16954 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16955 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16956 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16957 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16958 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16959 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16960 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16961 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16962 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16963 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16964 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16965 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16966 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16967 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16968 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16969 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16970 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16971 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16972 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16973 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16974 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16975 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16976 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16977 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16978 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16979 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16980 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16981 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16982 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16983 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16984 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16985 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16986 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16987 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16988 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16989 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16990 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16991 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16992 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16993 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16994 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16995 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16996 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16997 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16998 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16999 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17000 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17001 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17002 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17003 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17004 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17005 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17006 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17007
17008 LTCC='$LTCC'
17009 LTCFLAGS='$LTCFLAGS'
17010 compiler='$compiler_DEFAULT'
17011
17012 # Quote evaled strings.
17013 for var in SED \
17014 GREP \
17015 EGREP \
17016 FGREP \
17017 LD \
17018 NM \
17019 LN_S \
17020 lt_SP2NL \
17021 lt_NL2SP \
17022 reload_flag \
17023 deplibs_check_method \
17024 file_magic_cmd \
17025 AR \
17026 AR_FLAGS \
17027 STRIP \
17028 RANLIB \
17029 CC \
17030 CFLAGS \
17031 compiler \
17032 lt_cv_sys_global_symbol_pipe \
17033 lt_cv_sys_global_symbol_to_cdecl \
17034 lt_cv_sys_global_symbol_to_c_name_address \
17035 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17036 SHELL \
17037 ECHO \
17038 lt_prog_compiler_no_builtin_flag \
17039 lt_prog_compiler_wl \
17040 lt_prog_compiler_pic \
17041 lt_prog_compiler_static \
17042 lt_cv_prog_compiler_c_o \
17043 need_locks \
17044 DSYMUTIL \
17045 NMEDIT \
17046 LIPO \
17047 OTOOL \
17048 OTOOL64 \
17049 shrext_cmds \
17050 export_dynamic_flag_spec \
17051 whole_archive_flag_spec \
17052 compiler_needs_object \
17053 with_gnu_ld \
17054 allow_undefined_flag \
17055 no_undefined_flag \
17056 hardcode_libdir_flag_spec \
17057 hardcode_libdir_flag_spec_ld \
17058 hardcode_libdir_separator \
17059 fix_srcfile_path \
17060 exclude_expsyms \
17061 include_expsyms \
17062 file_list_spec \
17063 variables_saved_for_relink \
17064 libname_spec \
17065 library_names_spec \
17066 soname_spec \
17067 finish_eval \
17068 old_striplib \
17069 striplib \
17070 compiler_lib_search_dirs \
17071 predep_objects \
17072 postdep_objects \
17073 predeps \
17074 postdeps \
17075 compiler_lib_search_path \
17076 LD_CXX \
17077 compiler_CXX \
17078 lt_prog_compiler_no_builtin_flag_CXX \
17079 lt_prog_compiler_wl_CXX \
17080 lt_prog_compiler_pic_CXX \
17081 lt_prog_compiler_static_CXX \
17082 lt_cv_prog_compiler_c_o_CXX \
17083 export_dynamic_flag_spec_CXX \
17084 whole_archive_flag_spec_CXX \
17085 compiler_needs_object_CXX \
17086 with_gnu_ld_CXX \
17087 allow_undefined_flag_CXX \
17088 no_undefined_flag_CXX \
17089 hardcode_libdir_flag_spec_CXX \
17090 hardcode_libdir_flag_spec_ld_CXX \
17091 hardcode_libdir_separator_CXX \
17092 fix_srcfile_path_CXX \
17093 exclude_expsyms_CXX \
17094 include_expsyms_CXX \
17095 file_list_spec_CXX \
17096 compiler_lib_search_dirs_CXX \
17097 predep_objects_CXX \
17098 postdep_objects_CXX \
17099 predeps_CXX \
17100 postdeps_CXX \
17101 compiler_lib_search_path_CXX; do
17102     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17103     *[\\\\\\\`\\"\\\$]*)
17104       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17105       ;;
17106     *)
17107       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17108       ;;
17109     esac
17110 done
17111
17112 # Double-quote double-evaled strings.
17113 for var in reload_cmds \
17114 old_postinstall_cmds \
17115 old_postuninstall_cmds \
17116 old_archive_cmds \
17117 extract_expsyms_cmds \
17118 old_archive_from_new_cmds \
17119 old_archive_from_expsyms_cmds \
17120 archive_cmds \
17121 archive_expsym_cmds \
17122 module_cmds \
17123 module_expsym_cmds \
17124 export_symbols_cmds \
17125 prelink_cmds \
17126 postinstall_cmds \
17127 postuninstall_cmds \
17128 finish_cmds \
17129 sys_lib_search_path_spec \
17130 sys_lib_dlsearch_path_spec \
17131 old_archive_cmds_CXX \
17132 old_archive_from_new_cmds_CXX \
17133 old_archive_from_expsyms_cmds_CXX \
17134 archive_cmds_CXX \
17135 archive_expsym_cmds_CXX \
17136 module_cmds_CXX \
17137 module_expsym_cmds_CXX \
17138 export_symbols_cmds_CXX \
17139 prelink_cmds_CXX; do
17140     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17141     *[\\\\\\\`\\"\\\$]*)
17142       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17143       ;;
17144     *)
17145       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17146       ;;
17147     esac
17148 done
17149
17150 # Fix-up fallback echo if it was mangled by the above quoting rules.
17151 case \$lt_ECHO in
17152 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17153   ;;
17154 esac
17155
17156 ac_aux_dir='$ac_aux_dir'
17157 xsi_shell='$xsi_shell'
17158 lt_shell_append='$lt_shell_append'
17159
17160 # See if we are running on zsh, and set the options which allow our
17161 # commands through without removal of \ escapes INIT.
17162 if test -n "\${ZSH_VERSION+set}" ; then
17163    setopt NO_GLOB_SUBST
17164 fi
17165
17166
17167     PACKAGE='$PACKAGE'
17168     VERSION='$VERSION'
17169     TIMESTAMP='$TIMESTAMP'
17170     RM='$RM'
17171     ofile='$ofile'
17172
17173
17174
17175
17176
17177
17178 _ACEOF
17179
17180 cat >>$CONFIG_STATUS <<\_ACEOF
17181
17182 # Handling of arguments.
17183 for ac_config_target in $ac_config_targets
17184 do
17185   case $ac_config_target in
17186     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17187     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17188     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17189     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17190     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17191     "camsrcjpegenc-sw.pc") CONFIG_FILES="$CONFIG_FILES camsrcjpegenc-sw.pc" ;;
17192
17193   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17194 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17195    { (exit 1); exit 1; }; };;
17196   esac
17197 done
17198
17199
17200 # If the user did not use the arguments to specify the items to instantiate,
17201 # then the envvar interface is used.  Set only those that are not.
17202 # We use the long form for the default assignment because of an extremely
17203 # bizarre bug on SunOS 4.1.3.
17204 if $ac_need_defaults; then
17205   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17206   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17207   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17208 fi
17209
17210 # Have a temporary directory for convenience.  Make it in the build tree
17211 # simply because there is no reason against having it here, and in addition,
17212 # creating and moving files from /tmp can sometimes cause problems.
17213 # Hook for its removal unless debugging.
17214 # Note that there is a small window in which the directory will not be cleaned:
17215 # after its creation but before its name has been assigned to `$tmp'.
17216 $debug ||
17217 {
17218   tmp=
17219   trap 'exit_status=$?
17220   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17221 ' 0
17222   trap '{ (exit 1); exit 1; }' 1 2 13 15
17223 }
17224 # Create a (secure) tmp directory for tmp files.
17225
17226 {
17227   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17228   test -n "$tmp" && test -d "$tmp"
17229 }  ||
17230 {
17231   tmp=./conf$$-$RANDOM
17232   (umask 077 && mkdir "$tmp")
17233 } ||
17234 {
17235    echo "$me: cannot create a temporary directory in ." >&2
17236    { (exit 1); exit 1; }
17237 }
17238
17239 #
17240 # Set up the sed scripts for CONFIG_FILES section.
17241 #
17242
17243 # No need to generate the scripts if there are no CONFIG_FILES.
17244 # This happens for instance when ./config.status config.h
17245 if test -n "$CONFIG_FILES"; then
17246
17247 _ACEOF
17248
17249
17250
17251 ac_delim='%!_!# '
17252 for ac_last_try in false false false false false :; do
17253   cat >conf$$subs.sed <<_ACEOF
17254 SHELL!$SHELL$ac_delim
17255 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17256 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17257 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17258 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17259 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17260 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17261 exec_prefix!$exec_prefix$ac_delim
17262 prefix!$prefix$ac_delim
17263 program_transform_name!$program_transform_name$ac_delim
17264 bindir!$bindir$ac_delim
17265 sbindir!$sbindir$ac_delim
17266 libexecdir!$libexecdir$ac_delim
17267 datarootdir!$datarootdir$ac_delim
17268 datadir!$datadir$ac_delim
17269 sysconfdir!$sysconfdir$ac_delim
17270 sharedstatedir!$sharedstatedir$ac_delim
17271 localstatedir!$localstatedir$ac_delim
17272 includedir!$includedir$ac_delim
17273 oldincludedir!$oldincludedir$ac_delim
17274 docdir!$docdir$ac_delim
17275 infodir!$infodir$ac_delim
17276 htmldir!$htmldir$ac_delim
17277 dvidir!$dvidir$ac_delim
17278 pdfdir!$pdfdir$ac_delim
17279 psdir!$psdir$ac_delim
17280 libdir!$libdir$ac_delim
17281 localedir!$localedir$ac_delim
17282 mandir!$mandir$ac_delim
17283 DEFS!$DEFS$ac_delim
17284 ECHO_C!$ECHO_C$ac_delim
17285 ECHO_N!$ECHO_N$ac_delim
17286 ECHO_T!$ECHO_T$ac_delim
17287 LIBS!$LIBS$ac_delim
17288 build_alias!$build_alias$ac_delim
17289 host_alias!$host_alias$ac_delim
17290 target_alias!$target_alias$ac_delim
17291 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
17292 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
17293 INSTALL_DATA!$INSTALL_DATA$ac_delim
17294 am__isrc!$am__isrc$ac_delim
17295 CYGPATH_W!$CYGPATH_W$ac_delim
17296 PACKAGE!$PACKAGE$ac_delim
17297 VERSION!$VERSION$ac_delim
17298 ACLOCAL!$ACLOCAL$ac_delim
17299 AUTOCONF!$AUTOCONF$ac_delim
17300 AUTOMAKE!$AUTOMAKE$ac_delim
17301 AUTOHEADER!$AUTOHEADER$ac_delim
17302 MAKEINFO!$MAKEINFO$ac_delim
17303 install_sh!$install_sh$ac_delim
17304 STRIP!$STRIP$ac_delim
17305 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
17306 mkdir_p!$mkdir_p$ac_delim
17307 AWK!$AWK$ac_delim
17308 SET_MAKE!$SET_MAKE$ac_delim
17309 am__leading_dot!$am__leading_dot$ac_delim
17310 AMTAR!$AMTAR$ac_delim
17311 am__tar!$am__tar$ac_delim
17312 am__untar!$am__untar$ac_delim
17313 CXX!$CXX$ac_delim
17314 CXXFLAGS!$CXXFLAGS$ac_delim
17315 LDFLAGS!$LDFLAGS$ac_delim
17316 CPPFLAGS!$CPPFLAGS$ac_delim
17317 ac_ct_CXX!$ac_ct_CXX$ac_delim
17318 EXEEXT!$EXEEXT$ac_delim
17319 OBJEXT!$OBJEXT$ac_delim
17320 DEPDIR!$DEPDIR$ac_delim
17321 am__include!$am__include$ac_delim
17322 am__quote!$am__quote$ac_delim
17323 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
17324 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
17325 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
17326 CXXDEPMODE!$CXXDEPMODE$ac_delim
17327 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
17328 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
17329 CC!$CC$ac_delim
17330 CFLAGS!$CFLAGS$ac_delim
17331 ac_ct_CC!$ac_ct_CC$ac_delim
17332 CCDEPMODE!$CCDEPMODE$ac_delim
17333 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
17334 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
17335 CPP!$CPP$ac_delim
17336 LN_S!$LN_S$ac_delim
17337 LIBTOOL!$LIBTOOL$ac_delim
17338 build!$build$ac_delim
17339 build_cpu!$build_cpu$ac_delim
17340 build_vendor!$build_vendor$ac_delim
17341 build_os!$build_os$ac_delim
17342 host!$host$ac_delim
17343 host_cpu!$host_cpu$ac_delim
17344 host_vendor!$host_vendor$ac_delim
17345 host_os!$host_os$ac_delim
17346 SED!$SED$ac_delim
17347 GREP!$GREP$ac_delim
17348 EGREP!$EGREP$ac_delim
17349 FGREP!$FGREP$ac_delim
17350 LD!$LD$ac_delim
17351 _ACEOF
17352
17353   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17354     break
17355   elif $ac_last_try; then
17356     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17357 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17358    { (exit 1); exit 1; }; }
17359   else
17360     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17361   fi
17362 done
17363
17364 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17365 if test -n "$ac_eof"; then
17366   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17367   ac_eof=`expr $ac_eof + 1`
17368 fi
17369
17370 cat >>$CONFIG_STATUS <<_ACEOF
17371 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17372 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17373 _ACEOF
17374 sed '
17375 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17376 s/^/s,@/; s/!/@,|#_!!_#|/
17377 :n
17378 t n
17379 s/'"$ac_delim"'$/,g/; t
17380 s/$/\\/; p
17381 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17382 ' >>$CONFIG_STATUS <conf$$subs.sed
17383 rm -f conf$$subs.sed
17384 cat >>$CONFIG_STATUS <<_ACEOF
17385 CEOF$ac_eof
17386 _ACEOF
17387
17388
17389 ac_delim='%!_!# '
17390 for ac_last_try in false false false false false :; do
17391   cat >conf$$subs.sed <<_ACEOF
17392 DUMPBIN!$DUMPBIN$ac_delim
17393 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
17394 NM!$NM$ac_delim
17395 AR!$AR$ac_delim
17396 RANLIB!$RANLIB$ac_delim
17397 lt_ECHO!$lt_ECHO$ac_delim
17398 DSYMUTIL!$DSYMUTIL$ac_delim
17399 NMEDIT!$NMEDIT$ac_delim
17400 LIPO!$LIPO$ac_delim
17401 OTOOL!$OTOOL$ac_delim
17402 OTOOL64!$OTOOL64$ac_delim
17403 CXXCPP!$CXXCPP$ac_delim
17404 PKG_CONFIG!$PKG_CONFIG$ac_delim
17405 DLOG_CFLAGS!$DLOG_CFLAGS$ac_delim
17406 DLOG_LIBS!$DLOG_LIBS$ac_delim
17407 USE_DLOG_TRUE!$USE_DLOG_TRUE$ac_delim
17408 USE_DLOG_FALSE!$USE_DLOG_FALSE$ac_delim
17409 LIBOBJS!$LIBOBJS$ac_delim
17410 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
17411 GLIB_LIBS!$GLIB_LIBS$ac_delim
17412 LTLIBOBJS!$LTLIBOBJS$ac_delim
17413 _ACEOF
17414
17415   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
17416     break
17417   elif $ac_last_try; then
17418     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17419 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17420    { (exit 1); exit 1; }; }
17421   else
17422     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17423   fi
17424 done
17425
17426 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17427 if test -n "$ac_eof"; then
17428   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17429   ac_eof=`expr $ac_eof + 1`
17430 fi
17431
17432 cat >>$CONFIG_STATUS <<_ACEOF
17433 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17435 _ACEOF
17436 sed '
17437 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17438 s/^/s,@/; s/!/@,|#_!!_#|/
17439 :n
17440 t n
17441 s/'"$ac_delim"'$/,g/; t
17442 s/$/\\/; p
17443 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17444 ' >>$CONFIG_STATUS <conf$$subs.sed
17445 rm -f conf$$subs.sed
17446 cat >>$CONFIG_STATUS <<_ACEOF
17447 :end
17448 s/|#_!!_#|//g
17449 CEOF$ac_eof
17450 _ACEOF
17451
17452
17453 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17454 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17455 # trailing colons and then remove the whole line if VPATH becomes empty
17456 # (actually we leave an empty line to preserve line numbers).
17457 if test "x$srcdir" = x.; then
17458   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17459 s/:*\$(srcdir):*/:/
17460 s/:*\${srcdir}:*/:/
17461 s/:*@srcdir@:*/:/
17462 s/^\([^=]*=[     ]*\):*/\1/
17463 s/:*$//
17464 s/^[^=]*=[       ]*$//
17465 }'
17466 fi
17467
17468 cat >>$CONFIG_STATUS <<\_ACEOF
17469 fi # test -n "$CONFIG_FILES"
17470
17471
17472 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
17473 do
17474   case $ac_tag in
17475   :[FHLC]) ac_mode=$ac_tag; continue;;
17476   esac
17477   case $ac_mode$ac_tag in
17478   :[FHL]*:*);;
17479   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17480 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17481    { (exit 1); exit 1; }; };;
17482   :[FH]-) ac_tag=-:-;;
17483   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17484   esac
17485   ac_save_IFS=$IFS
17486   IFS=:
17487   set x $ac_tag
17488   IFS=$ac_save_IFS
17489   shift
17490   ac_file=$1
17491   shift
17492
17493   case $ac_mode in
17494   :L) ac_source=$1;;
17495   :[FH])
17496     ac_file_inputs=
17497     for ac_f
17498     do
17499       case $ac_f in
17500       -) ac_f="$tmp/stdin";;
17501       *) # Look for the file first in the build tree, then in the source tree
17502          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17503          # because $ac_f cannot contain `:'.
17504          test -f "$ac_f" ||
17505            case $ac_f in
17506            [\\/$]*) false;;
17507            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17508            esac ||
17509            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17510 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17511    { (exit 1); exit 1; }; };;
17512       esac
17513       ac_file_inputs="$ac_file_inputs $ac_f"
17514     done
17515
17516     # Let's still pretend it is `configure' which instantiates (i.e., don't
17517     # use $as_me), people would be surprised to read:
17518     #    /* config.h.  Generated by config.status.  */
17519     configure_input="Generated from "`IFS=:
17520           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17521     if test x"$ac_file" != x-; then
17522       configure_input="$ac_file.  $configure_input"
17523       { echo "$as_me:$LINENO: creating $ac_file" >&5
17524 echo "$as_me: creating $ac_file" >&6;}
17525     fi
17526
17527     case $ac_tag in
17528     *:-:* | *:-) cat >"$tmp/stdin";;
17529     esac
17530     ;;
17531   esac
17532
17533   ac_dir=`$as_dirname -- "$ac_file" ||
17534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17535          X"$ac_file" : 'X\(//\)[^/]' \| \
17536          X"$ac_file" : 'X\(//\)$' \| \
17537          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17538 echo X"$ac_file" |
17539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17540             s//\1/
17541             q
17542           }
17543           /^X\(\/\/\)[^/].*/{
17544             s//\1/
17545             q
17546           }
17547           /^X\(\/\/\)$/{
17548             s//\1/
17549             q
17550           }
17551           /^X\(\/\).*/{
17552             s//\1/
17553             q
17554           }
17555           s/.*/./; q'`
17556   { as_dir="$ac_dir"
17557   case $as_dir in #(
17558   -*) as_dir=./$as_dir;;
17559   esac
17560   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17561     as_dirs=
17562     while :; do
17563       case $as_dir in #(
17564       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17565       *) as_qdir=$as_dir;;
17566       esac
17567       as_dirs="'$as_qdir' $as_dirs"
17568       as_dir=`$as_dirname -- "$as_dir" ||
17569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17570          X"$as_dir" : 'X\(//\)[^/]' \| \
17571          X"$as_dir" : 'X\(//\)$' \| \
17572          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17573 echo X"$as_dir" |
17574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17575             s//\1/
17576             q
17577           }
17578           /^X\(\/\/\)[^/].*/{
17579             s//\1/
17580             q
17581           }
17582           /^X\(\/\/\)$/{
17583             s//\1/
17584             q
17585           }
17586           /^X\(\/\).*/{
17587             s//\1/
17588             q
17589           }
17590           s/.*/./; q'`
17591       test -d "$as_dir" && break
17592     done
17593     test -z "$as_dirs" || eval "mkdir $as_dirs"
17594   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17595 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17596    { (exit 1); exit 1; }; }; }
17597   ac_builddir=.
17598
17599 case "$ac_dir" in
17600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17601 *)
17602   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17603   # A ".." for each directory in $ac_dir_suffix.
17604   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17605   case $ac_top_builddir_sub in
17606   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17607   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17608   esac ;;
17609 esac
17610 ac_abs_top_builddir=$ac_pwd
17611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17612 # for backward compatibility:
17613 ac_top_builddir=$ac_top_build_prefix
17614
17615 case $srcdir in
17616   .)  # We are building in place.
17617     ac_srcdir=.
17618     ac_top_srcdir=$ac_top_builddir_sub
17619     ac_abs_top_srcdir=$ac_pwd ;;
17620   [\\/]* | ?:[\\/]* )  # Absolute name.
17621     ac_srcdir=$srcdir$ac_dir_suffix;
17622     ac_top_srcdir=$srcdir
17623     ac_abs_top_srcdir=$srcdir ;;
17624   *) # Relative name.
17625     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17626     ac_top_srcdir=$ac_top_build_prefix$srcdir
17627     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17628 esac
17629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17630
17631
17632   case $ac_mode in
17633   :F)
17634   #
17635   # CONFIG_FILE
17636   #
17637
17638   case $INSTALL in
17639   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17640   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17641   esac
17642   ac_MKDIR_P=$MKDIR_P
17643   case $MKDIR_P in
17644   [\\/$]* | ?:[\\/]* ) ;;
17645   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17646   esac
17647 _ACEOF
17648
17649 cat >>$CONFIG_STATUS <<\_ACEOF
17650 # If the template does not know about datarootdir, expand it.
17651 # FIXME: This hack should be removed a few years after 2.60.
17652 ac_datarootdir_hack=; ac_datarootdir_seen=
17653
17654 case `sed -n '/datarootdir/ {
17655   p
17656   q
17657 }
17658 /@datadir@/p
17659 /@docdir@/p
17660 /@infodir@/p
17661 /@localedir@/p
17662 /@mandir@/p
17663 ' $ac_file_inputs` in
17664 *datarootdir*) ac_datarootdir_seen=yes;;
17665 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17666   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17667 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17668 _ACEOF
17669 cat >>$CONFIG_STATUS <<_ACEOF
17670   ac_datarootdir_hack='
17671   s&@datadir@&$datadir&g
17672   s&@docdir@&$docdir&g
17673   s&@infodir@&$infodir&g
17674   s&@localedir@&$localedir&g
17675   s&@mandir@&$mandir&g
17676     s&\\\${datarootdir}&$datarootdir&g' ;;
17677 esac
17678 _ACEOF
17679
17680 # Neutralize VPATH when `$srcdir' = `.'.
17681 # Shell code in configure.ac might set extrasub.
17682 # FIXME: do we really want to maintain this feature?
17683 cat >>$CONFIG_STATUS <<_ACEOF
17684   sed "$ac_vpsub
17685 $extrasub
17686 _ACEOF
17687 cat >>$CONFIG_STATUS <<\_ACEOF
17688 :t
17689 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17690 s&@configure_input@&$configure_input&;t t
17691 s&@top_builddir@&$ac_top_builddir_sub&;t t
17692 s&@srcdir@&$ac_srcdir&;t t
17693 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17694 s&@top_srcdir@&$ac_top_srcdir&;t t
17695 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17696 s&@builddir@&$ac_builddir&;t t
17697 s&@abs_builddir@&$ac_abs_builddir&;t t
17698 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17699 s&@INSTALL@&$ac_INSTALL&;t t
17700 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17701 $ac_datarootdir_hack
17702 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17703
17704 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17705   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17706   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17707   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17708 which seems to be undefined.  Please make sure it is defined." >&5
17709 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17710 which seems to be undefined.  Please make sure it is defined." >&2;}
17711
17712   rm -f "$tmp/stdin"
17713   case $ac_file in
17714   -) cat "$tmp/out"; rm -f "$tmp/out";;
17715   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17716   esac
17717  ;;
17718   :H)
17719   #
17720   # CONFIG_HEADER
17721   #
17722 _ACEOF
17723
17724 # Transform confdefs.h into a sed script `conftest.defines', that
17725 # substitutes the proper values into config.h.in to produce config.h.
17726 rm -f conftest.defines conftest.tail
17727 # First, append a space to every undef/define line, to ease matching.
17728 echo 's/$/ /' >conftest.defines
17729 # Then, protect against being on the right side of a sed subst, or in
17730 # an unquoted here document, in config.status.  If some macros were
17731 # called several times there might be several #defines for the same
17732 # symbol, which is useless.  But do not sort them, since the last
17733 # AC_DEFINE must be honored.
17734 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17735 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17736 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17737 # PARAMS is the parameter list in the macro definition--in most cases, it's
17738 # just an empty string.
17739 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
17740 ac_dB='\\)[      (].*,\\1define\\2'
17741 ac_dC=' '
17742 ac_dD=' ,'
17743
17744 uniq confdefs.h |
17745   sed -n '
17746         t rset
17747         :rset
17748         s/^[     ]*#[    ]*define[       ][      ]*//
17749         t ok
17750         d
17751         :ok
17752         s/[\\&,]/\\&/g
17753         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17754         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17755   ' >>conftest.defines
17756
17757 # Remove the space that was appended to ease matching.
17758 # Then replace #undef with comments.  This is necessary, for
17759 # example, in the case of _POSIX_SOURCE, which is predefined and required
17760 # on some systems where configure will not decide to define it.
17761 # (The regexp can be short, since the line contains either #define or #undef.)
17762 echo 's/ $//
17763 s,^[     #]*u.*,/* & */,' >>conftest.defines
17764
17765 # Break up conftest.defines:
17766 ac_max_sed_lines=50
17767
17768 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17769 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17770 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17771 # et cetera.
17772 ac_in='$ac_file_inputs'
17773 ac_out='"$tmp/out1"'
17774 ac_nxt='"$tmp/out2"'
17775
17776 while :
17777 do
17778   # Write a here document:
17779     cat >>$CONFIG_STATUS <<_ACEOF
17780     # First, check the format of the line:
17781     cat >"\$tmp/defines.sed" <<\\CEOF
17782 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
17783 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
17784 b
17785 :def
17786 _ACEOF
17787   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17788   echo 'CEOF
17789     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17790   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17791   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17792   grep . conftest.tail >/dev/null || break
17793   rm -f conftest.defines
17794   mv conftest.tail conftest.defines
17795 done
17796 rm -f conftest.defines conftest.tail
17797
17798 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17799 cat >>$CONFIG_STATUS <<\_ACEOF
17800   if test x"$ac_file" != x-; then
17801     echo "/* $configure_input  */" >"$tmp/config.h"
17802     cat "$ac_result" >>"$tmp/config.h"
17803     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17804       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17805 echo "$as_me: $ac_file is unchanged" >&6;}
17806     else
17807       rm -f $ac_file
17808       mv "$tmp/config.h" $ac_file
17809     fi
17810   else
17811     echo "/* $configure_input  */"
17812     cat "$ac_result"
17813   fi
17814   rm -f "$tmp/out12"
17815 # Compute $ac_file's index in $config_headers.
17816 _am_arg=$ac_file
17817 _am_stamp_count=1
17818 for _am_header in $config_headers :; do
17819   case $_am_header in
17820     $_am_arg | $_am_arg:* )
17821       break ;;
17822     * )
17823       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17824   esac
17825 done
17826 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17827 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17828          X"$_am_arg" : 'X\(//\)[^/]' \| \
17829          X"$_am_arg" : 'X\(//\)$' \| \
17830          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17831 echo X"$_am_arg" |
17832     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17833             s//\1/
17834             q
17835           }
17836           /^X\(\/\/\)[^/].*/{
17837             s//\1/
17838             q
17839           }
17840           /^X\(\/\/\)$/{
17841             s//\1/
17842             q
17843           }
17844           /^X\(\/\).*/{
17845             s//\1/
17846             q
17847           }
17848           s/.*/./; q'`/stamp-h$_am_stamp_count
17849  ;;
17850
17851   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17852 echo "$as_me: executing $ac_file commands" >&6;}
17853  ;;
17854   esac
17855
17856
17857   case $ac_file$ac_mode in
17858     "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
17859 # are listed without --file.  Let's play safe and only enable the eval
17860 # if we detect the quoting.
17861 case $CONFIG_FILES in
17862 *\'*) eval set x "$CONFIG_FILES" ;;
17863 *)   set x $CONFIG_FILES ;;
17864 esac
17865 shift
17866 for mf
17867 do
17868   # Strip MF so we end up with the name of the file.
17869   mf=`echo "$mf" | sed -e 's/:.*$//'`
17870   # Check whether this is an Automake generated Makefile or not.
17871   # We used to match only the files named `Makefile.in', but
17872   # some people rename them; so instead we look at the file content.
17873   # Grep'ing the first line is not enough: some people post-process
17874   # each Makefile.in and add a new line on top of each file to say so.
17875   # Grep'ing the whole file is not good either: AIX grep has a line
17876   # limit of 2048, but all sed's we know have understand at least 4000.
17877   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17878     dirpart=`$as_dirname -- "$mf" ||
17879 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17880          X"$mf" : 'X\(//\)[^/]' \| \
17881          X"$mf" : 'X\(//\)$' \| \
17882          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17883 echo X"$mf" |
17884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17885             s//\1/
17886             q
17887           }
17888           /^X\(\/\/\)[^/].*/{
17889             s//\1/
17890             q
17891           }
17892           /^X\(\/\/\)$/{
17893             s//\1/
17894             q
17895           }
17896           /^X\(\/\).*/{
17897             s//\1/
17898             q
17899           }
17900           s/.*/./; q'`
17901   else
17902     continue
17903   fi
17904   # Extract the definition of DEPDIR, am__include, and am__quote
17905   # from the Makefile without running `make'.
17906   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17907   test -z "$DEPDIR" && continue
17908   am__include=`sed -n 's/^am__include = //p' < "$mf"`
17909   test -z "am__include" && continue
17910   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17911   # When using ansi2knr, U may be empty or an underscore; expand it
17912   U=`sed -n 's/^U = //p' < "$mf"`
17913   # Find all dependency output files, they are included files with
17914   # $(DEPDIR) in their names.  We invoke sed twice because it is the
17915   # simplest approach to changing $(DEPDIR) to its actual value in the
17916   # expansion.
17917   for file in `sed -n "
17918     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17919        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17920     # Make sure the directory exists.
17921     test -f "$dirpart/$file" && continue
17922     fdir=`$as_dirname -- "$file" ||
17923 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17924          X"$file" : 'X\(//\)[^/]' \| \
17925          X"$file" : 'X\(//\)$' \| \
17926          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17927 echo X"$file" |
17928     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17929             s//\1/
17930             q
17931           }
17932           /^X\(\/\/\)[^/].*/{
17933             s//\1/
17934             q
17935           }
17936           /^X\(\/\/\)$/{
17937             s//\1/
17938             q
17939           }
17940           /^X\(\/\).*/{
17941             s//\1/
17942             q
17943           }
17944           s/.*/./; q'`
17945     { as_dir=$dirpart/$fdir
17946   case $as_dir in #(
17947   -*) as_dir=./$as_dir;;
17948   esac
17949   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17950     as_dirs=
17951     while :; do
17952       case $as_dir in #(
17953       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17954       *) as_qdir=$as_dir;;
17955       esac
17956       as_dirs="'$as_qdir' $as_dirs"
17957       as_dir=`$as_dirname -- "$as_dir" ||
17958 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17959          X"$as_dir" : 'X\(//\)[^/]' \| \
17960          X"$as_dir" : 'X\(//\)$' \| \
17961          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17962 echo X"$as_dir" |
17963     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17964             s//\1/
17965             q
17966           }
17967           /^X\(\/\/\)[^/].*/{
17968             s//\1/
17969             q
17970           }
17971           /^X\(\/\/\)$/{
17972             s//\1/
17973             q
17974           }
17975           /^X\(\/\).*/{
17976             s//\1/
17977             q
17978           }
17979           s/.*/./; q'`
17980       test -d "$as_dir" && break
17981     done
17982     test -z "$as_dirs" || eval "mkdir $as_dirs"
17983   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17984 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17985    { (exit 1); exit 1; }; }; }
17986     # echo "creating $dirpart/$file"
17987     echo '# dummy' > "$dirpart/$file"
17988   done
17989 done
17990  ;;
17991     "libtool":C)
17992
17993     # See if we are running on zsh, and set the options which allow our
17994     # commands through without removal of \ escapes.
17995     if test -n "${ZSH_VERSION+set}" ; then
17996       setopt NO_GLOB_SUBST
17997     fi
17998
17999     cfgfile="${ofile}T"
18000     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18001     $RM "$cfgfile"
18002
18003     cat <<_LT_EOF >> "$cfgfile"
18004 #! $SHELL
18005
18006 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18007 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18008 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18009 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18010 #
18011 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18012 #                 2006, 2007, 2008 Free Software Foundation, Inc.
18013 #   Written by Gordon Matzigkeit, 1996
18014 #
18015 #   This file is part of GNU Libtool.
18016 #
18017 # GNU Libtool is free software; you can redistribute it and/or
18018 # modify it under the terms of the GNU General Public License as
18019 # published by the Free Software Foundation; either version 2 of
18020 # the License, or (at your option) any later version.
18021 #
18022 # As a special exception to the GNU General Public License,
18023 # if you distribute this file as part of a program or library that
18024 # is built using GNU Libtool, you may include this file under the
18025 # same distribution terms that you use for the rest of that program.
18026 #
18027 # GNU Libtool is distributed in the hope that it will be useful,
18028 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18029 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18030 # GNU General Public License for more details.
18031 #
18032 # You should have received a copy of the GNU General Public License
18033 # along with GNU Libtool; see the file COPYING.  If not, a copy
18034 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18035 # obtained by writing to the Free Software Foundation, Inc.,
18036 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18037
18038
18039 # The names of the tagged configurations supported by this script.
18040 available_tags="CXX "
18041
18042 # ### BEGIN LIBTOOL CONFIG
18043
18044 # Which release of libtool.m4 was used?
18045 macro_version=$macro_version
18046 macro_revision=$macro_revision
18047
18048 # Whether or not to build shared libraries.
18049 build_libtool_libs=$enable_shared
18050
18051 # Whether or not to build static libraries.
18052 build_old_libs=$enable_static
18053
18054 # What type of objects to build.
18055 pic_mode=$pic_mode
18056
18057 # Whether or not to optimize for fast installation.
18058 fast_install=$enable_fast_install
18059
18060 # The host system.
18061 host_alias=$host_alias
18062 host=$host
18063 host_os=$host_os
18064
18065 # The build system.
18066 build_alias=$build_alias
18067 build=$build
18068 build_os=$build_os
18069
18070 # A sed program that does not truncate output.
18071 SED=$lt_SED
18072
18073 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18074 Xsed="\$SED -e 1s/^X//"
18075
18076 # A grep program that handles long lines.
18077 GREP=$lt_GREP
18078
18079 # An ERE matcher.
18080 EGREP=$lt_EGREP
18081
18082 # A literal string matcher.
18083 FGREP=$lt_FGREP
18084
18085 # A BSD- or MS-compatible name lister.
18086 NM=$lt_NM
18087
18088 # Whether we need soft or hard links.
18089 LN_S=$lt_LN_S
18090
18091 # What is the maximum length of a command?
18092 max_cmd_len=$max_cmd_len
18093
18094 # Object file suffix (normally "o").
18095 objext=$ac_objext
18096
18097 # Executable file suffix (normally "").
18098 exeext=$exeext
18099
18100 # whether the shell understands "unset".
18101 lt_unset=$lt_unset
18102
18103 # turn spaces into newlines.
18104 SP2NL=$lt_lt_SP2NL
18105
18106 # turn newlines into spaces.
18107 NL2SP=$lt_lt_NL2SP
18108
18109 # How to create reloadable object files.
18110 reload_flag=$lt_reload_flag
18111 reload_cmds=$lt_reload_cmds
18112
18113 # Method to check whether dependent libraries are shared objects.
18114 deplibs_check_method=$lt_deplibs_check_method
18115
18116 # Command to use when deplibs_check_method == "file_magic".
18117 file_magic_cmd=$lt_file_magic_cmd
18118
18119 # The archiver.
18120 AR=$lt_AR
18121 AR_FLAGS=$lt_AR_FLAGS
18122
18123 # A symbol stripping program.
18124 STRIP=$lt_STRIP
18125
18126 # Commands used to install an old-style archive.
18127 RANLIB=$lt_RANLIB
18128 old_postinstall_cmds=$lt_old_postinstall_cmds
18129 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18130
18131 # A C compiler.
18132 LTCC=$lt_CC
18133
18134 # LTCC compiler flags.
18135 LTCFLAGS=$lt_CFLAGS
18136
18137 # Take the output of nm and produce a listing of raw symbols and C names.
18138 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18139
18140 # Transform the output of nm in a proper C declaration.
18141 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18142
18143 # Transform the output of nm in a C name address pair.
18144 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18145
18146 # Transform the output of nm in a C name address pair when lib prefix is needed.
18147 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18148
18149 # The name of the directory that contains temporary libtool files.
18150 objdir=$objdir
18151
18152 # Shell to use when invoking shell scripts.
18153 SHELL=$lt_SHELL
18154
18155 # An echo program that does not interpret backslashes.
18156 ECHO=$lt_ECHO
18157
18158 # Used to examine libraries when file_magic_cmd begins with "file".
18159 MAGIC_CMD=$MAGIC_CMD
18160
18161 # Must we lock files when doing compilation?
18162 need_locks=$lt_need_locks
18163
18164 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18165 DSYMUTIL=$lt_DSYMUTIL
18166
18167 # Tool to change global to local symbols on Mac OS X.
18168 NMEDIT=$lt_NMEDIT
18169
18170 # Tool to manipulate fat objects and archives on Mac OS X.
18171 LIPO=$lt_LIPO
18172
18173 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18174 OTOOL=$lt_OTOOL
18175
18176 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18177 OTOOL64=$lt_OTOOL64
18178
18179 # Old archive suffix (normally "a").
18180 libext=$libext
18181
18182 # Shared library suffix (normally ".so").
18183 shrext_cmds=$lt_shrext_cmds
18184
18185 # The commands to extract the exported symbol list from a shared archive.
18186 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18187
18188 # Variables whose values should be saved in libtool wrapper scripts and
18189 # restored at link time.
18190 variables_saved_for_relink=$lt_variables_saved_for_relink
18191
18192 # Do we need the "lib" prefix for modules?
18193 need_lib_prefix=$need_lib_prefix
18194
18195 # Do we need a version for libraries?
18196 need_version=$need_version
18197
18198 # Library versioning type.
18199 version_type=$version_type
18200
18201 # Shared library runtime path variable.
18202 runpath_var=$runpath_var
18203
18204 # Shared library path variable.
18205 shlibpath_var=$shlibpath_var
18206
18207 # Is shlibpath searched before the hard-coded library search path?
18208 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18209
18210 # Format of library name prefix.
18211 libname_spec=$lt_libname_spec
18212
18213 # List of archive names.  First name is the real one, the rest are links.
18214 # The last name is the one that the linker finds with -lNAME
18215 library_names_spec=$lt_library_names_spec
18216
18217 # The coded name of the library, if different from the real name.
18218 soname_spec=$lt_soname_spec
18219
18220 # Command to use after installation of a shared archive.
18221 postinstall_cmds=$lt_postinstall_cmds
18222
18223 # Command to use after uninstallation of a shared archive.
18224 postuninstall_cmds=$lt_postuninstall_cmds
18225
18226 # Commands used to finish a libtool library installation in a directory.
18227 finish_cmds=$lt_finish_cmds
18228
18229 # As "finish_cmds", except a single script fragment to be evaled but
18230 # not shown.
18231 finish_eval=$lt_finish_eval
18232
18233 # Whether we should hardcode library paths into libraries.
18234 hardcode_into_libs=$hardcode_into_libs
18235
18236 # Compile-time system search path for libraries.
18237 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18238
18239 # Run-time system search path for libraries.
18240 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18241
18242 # Whether dlopen is supported.
18243 dlopen_support=$enable_dlopen
18244
18245 # Whether dlopen of programs is supported.
18246 dlopen_self=$enable_dlopen_self
18247
18248 # Whether dlopen of statically linked programs is supported.
18249 dlopen_self_static=$enable_dlopen_self_static
18250
18251 # Commands to strip libraries.
18252 old_striplib=$lt_old_striplib
18253 striplib=$lt_striplib
18254
18255
18256 # The linker used to build libraries.
18257 LD=$lt_LD
18258
18259 # Commands used to build an old-style archive.
18260 old_archive_cmds=$lt_old_archive_cmds
18261
18262 # A language specific compiler.
18263 CC=$lt_compiler
18264
18265 # Is the compiler the GNU compiler?
18266 with_gcc=$GCC
18267
18268 # Compiler flag to turn off builtin functions.
18269 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18270
18271 # How to pass a linker flag through the compiler.
18272 wl=$lt_lt_prog_compiler_wl
18273
18274 # Additional compiler flags for building library objects.
18275 pic_flag=$lt_lt_prog_compiler_pic
18276
18277 # Compiler flag to prevent dynamic linking.
18278 link_static_flag=$lt_lt_prog_compiler_static
18279
18280 # Does compiler simultaneously support -c and -o options?
18281 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18282
18283 # Whether or not to add -lc for building shared libraries.
18284 build_libtool_need_lc=$archive_cmds_need_lc
18285
18286 # Whether or not to disallow shared libs when runtime libs are static.
18287 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18288
18289 # Compiler flag to allow reflexive dlopens.
18290 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18291
18292 # Compiler flag to generate shared objects directly from archives.
18293 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18294
18295 # Whether the compiler copes with passing no objects directly.
18296 compiler_needs_object=$lt_compiler_needs_object
18297
18298 # Create an old-style archive from a shared archive.
18299 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18300
18301 # Create a temporary old-style archive to link instead of a shared archive.
18302 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18303
18304 # Commands used to build a shared archive.
18305 archive_cmds=$lt_archive_cmds
18306 archive_expsym_cmds=$lt_archive_expsym_cmds
18307
18308 # Commands used to build a loadable module if different from building
18309 # a shared archive.
18310 module_cmds=$lt_module_cmds
18311 module_expsym_cmds=$lt_module_expsym_cmds
18312
18313 # Whether we are building with GNU ld or not.
18314 with_gnu_ld=$lt_with_gnu_ld
18315
18316 # Flag that allows shared libraries with undefined symbols to be built.
18317 allow_undefined_flag=$lt_allow_undefined_flag
18318
18319 # Flag that enforces no undefined symbols.
18320 no_undefined_flag=$lt_no_undefined_flag
18321
18322 # Flag to hardcode \$libdir into a binary during linking.
18323 # This must work even if \$libdir does not exist
18324 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18325
18326 # If ld is used when linking, flag to hardcode \$libdir into a binary
18327 # during linking.  This must work even if \$libdir does not exist.
18328 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18329
18330 # Whether we need a single "-rpath" flag with a separated argument.
18331 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18332
18333 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18334 # DIR into the resulting binary.
18335 hardcode_direct=$hardcode_direct
18336
18337 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18338 # DIR into the resulting binary and the resulting library dependency is
18339 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18340 # library is relocated.
18341 hardcode_direct_absolute=$hardcode_direct_absolute
18342
18343 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18344 # into the resulting binary.
18345 hardcode_minus_L=$hardcode_minus_L
18346
18347 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18348 # into the resulting binary.
18349 hardcode_shlibpath_var=$hardcode_shlibpath_var
18350
18351 # Set to "yes" if building a shared library automatically hardcodes DIR
18352 # into the library and all subsequent libraries and executables linked
18353 # against it.
18354 hardcode_automatic=$hardcode_automatic
18355
18356 # Set to yes if linker adds runtime paths of dependent libraries
18357 # to runtime path list.
18358 inherit_rpath=$inherit_rpath
18359
18360 # Whether libtool must link a program against all its dependency libraries.
18361 link_all_deplibs=$link_all_deplibs
18362
18363 # Fix the shell variable \$srcfile for the compiler.
18364 fix_srcfile_path=$lt_fix_srcfile_path
18365
18366 # Set to "yes" if exported symbols are required.
18367 always_export_symbols=$always_export_symbols
18368
18369 # The commands to list exported symbols.
18370 export_symbols_cmds=$lt_export_symbols_cmds
18371
18372 # Symbols that should not be listed in the preloaded symbols.
18373 exclude_expsyms=$lt_exclude_expsyms
18374
18375 # Symbols that must always be exported.
18376 include_expsyms=$lt_include_expsyms
18377
18378 # Commands necessary for linking programs (against libraries) with templates.
18379 prelink_cmds=$lt_prelink_cmds
18380
18381 # Specify filename containing input files.
18382 file_list_spec=$lt_file_list_spec
18383
18384 # How to hardcode a shared library path into an executable.
18385 hardcode_action=$hardcode_action
18386
18387 # The directories searched by this compiler when creating a shared library.
18388 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18389
18390 # Dependencies to place before and after the objects being linked to
18391 # create a shared library.
18392 predep_objects=$lt_predep_objects
18393 postdep_objects=$lt_postdep_objects
18394 predeps=$lt_predeps
18395 postdeps=$lt_postdeps
18396
18397 # The library search path used internally by the compiler when linking
18398 # a shared library.
18399 compiler_lib_search_path=$lt_compiler_lib_search_path
18400
18401 # ### END LIBTOOL CONFIG
18402
18403 _LT_EOF
18404
18405   case $host_os in
18406   aix3*)
18407     cat <<\_LT_EOF >> "$cfgfile"
18408 # AIX sometimes has problems with the GCC collect2 program.  For some
18409 # reason, if we set the COLLECT_NAMES environment variable, the problems
18410 # vanish in a puff of smoke.
18411 if test "X${COLLECT_NAMES+set}" != Xset; then
18412   COLLECT_NAMES=
18413   export COLLECT_NAMES
18414 fi
18415 _LT_EOF
18416     ;;
18417   esac
18418
18419
18420 ltmain="$ac_aux_dir/ltmain.sh"
18421
18422
18423   # We use sed instead of cat because bash on DJGPP gets confused if
18424   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18425   # text mode, it properly converts lines to CR/LF.  This bash problem
18426   # is reportedly fixed, but why not run on old versions too?
18427   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18428     || (rm -f "$cfgfile"; exit 1)
18429
18430   case $xsi_shell in
18431   yes)
18432     cat << \_LT_EOF >> "$cfgfile"
18433
18434 # func_dirname file append nondir_replacement
18435 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18436 # otherwise set result to NONDIR_REPLACEMENT.
18437 func_dirname ()
18438 {
18439   case ${1} in
18440     */*) func_dirname_result="${1%/*}${2}" ;;
18441     *  ) func_dirname_result="${3}" ;;
18442   esac
18443 }
18444
18445 # func_basename file
18446 func_basename ()
18447 {
18448   func_basename_result="${1##*/}"
18449 }
18450
18451 # func_dirname_and_basename file append nondir_replacement
18452 # perform func_basename and func_dirname in a single function
18453 # call:
18454 #   dirname:  Compute the dirname of FILE.  If nonempty,
18455 #             add APPEND to the result, otherwise set result
18456 #             to NONDIR_REPLACEMENT.
18457 #             value returned in "$func_dirname_result"
18458 #   basename: Compute filename of FILE.
18459 #             value retuned in "$func_basename_result"
18460 # Implementation must be kept synchronized with func_dirname
18461 # and func_basename. For efficiency, we do not delegate to
18462 # those functions but instead duplicate the functionality here.
18463 func_dirname_and_basename ()
18464 {
18465   case ${1} in
18466     */*) func_dirname_result="${1%/*}${2}" ;;
18467     *  ) func_dirname_result="${3}" ;;
18468   esac
18469   func_basename_result="${1##*/}"
18470 }
18471
18472 # func_stripname prefix suffix name
18473 # strip PREFIX and SUFFIX off of NAME.
18474 # PREFIX and SUFFIX must not contain globbing or regex special
18475 # characters, hashes, percent signs, but SUFFIX may contain a leading
18476 # dot (in which case that matches only a dot).
18477 func_stripname ()
18478 {
18479   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18480   # positional parameters, so assign one to ordinary parameter first.
18481   func_stripname_result=${3}
18482   func_stripname_result=${func_stripname_result#"${1}"}
18483   func_stripname_result=${func_stripname_result%"${2}"}
18484 }
18485
18486 # func_opt_split
18487 func_opt_split ()
18488 {
18489   func_opt_split_opt=${1%%=*}
18490   func_opt_split_arg=${1#*=}
18491 }
18492
18493 # func_lo2o object
18494 func_lo2o ()
18495 {
18496   case ${1} in
18497     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18498     *)    func_lo2o_result=${1} ;;
18499   esac
18500 }
18501
18502 # func_xform libobj-or-source
18503 func_xform ()
18504 {
18505   func_xform_result=${1%.*}.lo
18506 }
18507
18508 # func_arith arithmetic-term...
18509 func_arith ()
18510 {
18511   func_arith_result=$(( $* ))
18512 }
18513
18514 # func_len string
18515 # STRING may not start with a hyphen.
18516 func_len ()
18517 {
18518   func_len_result=${#1}
18519 }
18520
18521 _LT_EOF
18522     ;;
18523   *) # Bourne compatible functions.
18524     cat << \_LT_EOF >> "$cfgfile"
18525
18526 # func_dirname file append nondir_replacement
18527 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18528 # otherwise set result to NONDIR_REPLACEMENT.
18529 func_dirname ()
18530 {
18531   # Extract subdirectory from the argument.
18532   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18533   if test "X$func_dirname_result" = "X${1}"; then
18534     func_dirname_result="${3}"
18535   else
18536     func_dirname_result="$func_dirname_result${2}"
18537   fi
18538 }
18539
18540 # func_basename file
18541 func_basename ()
18542 {
18543   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18544 }
18545
18546
18547 # func_stripname prefix suffix name
18548 # strip PREFIX and SUFFIX off of NAME.
18549 # PREFIX and SUFFIX must not contain globbing or regex special
18550 # characters, hashes, percent signs, but SUFFIX may contain a leading
18551 # dot (in which case that matches only a dot).
18552 # func_strip_suffix prefix name
18553 func_stripname ()
18554 {
18555   case ${2} in
18556     .*) func_stripname_result=`$ECHO "X${3}" \
18557            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18558     *)  func_stripname_result=`$ECHO "X${3}" \
18559            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18560   esac
18561 }
18562
18563 # sed scripts:
18564 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18565 my_sed_long_arg='1s/^-[^=]*=//'
18566
18567 # func_opt_split
18568 func_opt_split ()
18569 {
18570   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18571   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18572 }
18573
18574 # func_lo2o object
18575 func_lo2o ()
18576 {
18577   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18578 }
18579
18580 # func_xform libobj-or-source
18581 func_xform ()
18582 {
18583   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18584 }
18585
18586 # func_arith arithmetic-term...
18587 func_arith ()
18588 {
18589   func_arith_result=`expr "$@"`
18590 }
18591
18592 # func_len string
18593 # STRING may not start with a hyphen.
18594 func_len ()
18595 {
18596   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18597 }
18598
18599 _LT_EOF
18600 esac
18601
18602 case $lt_shell_append in
18603   yes)
18604     cat << \_LT_EOF >> "$cfgfile"
18605
18606 # func_append var value
18607 # Append VALUE to the end of shell variable VAR.
18608 func_append ()
18609 {
18610   eval "$1+=\$2"
18611 }
18612 _LT_EOF
18613     ;;
18614   *)
18615     cat << \_LT_EOF >> "$cfgfile"
18616
18617 # func_append var value
18618 # Append VALUE to the end of shell variable VAR.
18619 func_append ()
18620 {
18621   eval "$1=\$$1\$2"
18622 }
18623
18624 _LT_EOF
18625     ;;
18626   esac
18627
18628
18629   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18630     || (rm -f "$cfgfile"; exit 1)
18631
18632   mv -f "$cfgfile" "$ofile" ||
18633     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18634   chmod +x "$ofile"
18635
18636
18637     cat <<_LT_EOF >> "$ofile"
18638
18639 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18640
18641 # The linker used to build libraries.
18642 LD=$lt_LD_CXX
18643
18644 # Commands used to build an old-style archive.
18645 old_archive_cmds=$lt_old_archive_cmds_CXX
18646
18647 # A language specific compiler.
18648 CC=$lt_compiler_CXX
18649
18650 # Is the compiler the GNU compiler?
18651 with_gcc=$GCC_CXX
18652
18653 # Compiler flag to turn off builtin functions.
18654 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18655
18656 # How to pass a linker flag through the compiler.
18657 wl=$lt_lt_prog_compiler_wl_CXX
18658
18659 # Additional compiler flags for building library objects.
18660 pic_flag=$lt_lt_prog_compiler_pic_CXX
18661
18662 # Compiler flag to prevent dynamic linking.
18663 link_static_flag=$lt_lt_prog_compiler_static_CXX
18664
18665 # Does compiler simultaneously support -c and -o options?
18666 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18667
18668 # Whether or not to add -lc for building shared libraries.
18669 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18670
18671 # Whether or not to disallow shared libs when runtime libs are static.
18672 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18673
18674 # Compiler flag to allow reflexive dlopens.
18675 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18676
18677 # Compiler flag to generate shared objects directly from archives.
18678 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18679
18680 # Whether the compiler copes with passing no objects directly.
18681 compiler_needs_object=$lt_compiler_needs_object_CXX
18682
18683 # Create an old-style archive from a shared archive.
18684 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18685
18686 # Create a temporary old-style archive to link instead of a shared archive.
18687 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18688
18689 # Commands used to build a shared archive.
18690 archive_cmds=$lt_archive_cmds_CXX
18691 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18692
18693 # Commands used to build a loadable module if different from building
18694 # a shared archive.
18695 module_cmds=$lt_module_cmds_CXX
18696 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18697
18698 # Whether we are building with GNU ld or not.
18699 with_gnu_ld=$lt_with_gnu_ld_CXX
18700
18701 # Flag that allows shared libraries with undefined symbols to be built.
18702 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18703
18704 # Flag that enforces no undefined symbols.
18705 no_undefined_flag=$lt_no_undefined_flag_CXX
18706
18707 # Flag to hardcode \$libdir into a binary during linking.
18708 # This must work even if \$libdir does not exist
18709 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18710
18711 # If ld is used when linking, flag to hardcode \$libdir into a binary
18712 # during linking.  This must work even if \$libdir does not exist.
18713 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18714
18715 # Whether we need a single "-rpath" flag with a separated argument.
18716 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18717
18718 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18719 # DIR into the resulting binary.
18720 hardcode_direct=$hardcode_direct_CXX
18721
18722 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18723 # DIR into the resulting binary and the resulting library dependency is
18724 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18725 # library is relocated.
18726 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18727
18728 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18729 # into the resulting binary.
18730 hardcode_minus_L=$hardcode_minus_L_CXX
18731
18732 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18733 # into the resulting binary.
18734 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18735
18736 # Set to "yes" if building a shared library automatically hardcodes DIR
18737 # into the library and all subsequent libraries and executables linked
18738 # against it.
18739 hardcode_automatic=$hardcode_automatic_CXX
18740
18741 # Set to yes if linker adds runtime paths of dependent libraries
18742 # to runtime path list.
18743 inherit_rpath=$inherit_rpath_CXX
18744
18745 # Whether libtool must link a program against all its dependency libraries.
18746 link_all_deplibs=$link_all_deplibs_CXX
18747
18748 # Fix the shell variable \$srcfile for the compiler.
18749 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18750
18751 # Set to "yes" if exported symbols are required.
18752 always_export_symbols=$always_export_symbols_CXX
18753
18754 # The commands to list exported symbols.
18755 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18756
18757 # Symbols that should not be listed in the preloaded symbols.
18758 exclude_expsyms=$lt_exclude_expsyms_CXX
18759
18760 # Symbols that must always be exported.
18761 include_expsyms=$lt_include_expsyms_CXX
18762
18763 # Commands necessary for linking programs (against libraries) with templates.
18764 prelink_cmds=$lt_prelink_cmds_CXX
18765
18766 # Specify filename containing input files.
18767 file_list_spec=$lt_file_list_spec_CXX
18768
18769 # How to hardcode a shared library path into an executable.
18770 hardcode_action=$hardcode_action_CXX
18771
18772 # The directories searched by this compiler when creating a shared library.
18773 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18774
18775 # Dependencies to place before and after the objects being linked to
18776 # create a shared library.
18777 predep_objects=$lt_predep_objects_CXX
18778 postdep_objects=$lt_postdep_objects_CXX
18779 predeps=$lt_predeps_CXX
18780 postdeps=$lt_postdeps_CXX
18781
18782 # The library search path used internally by the compiler when linking
18783 # a shared library.
18784 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18785
18786 # ### END LIBTOOL TAG CONFIG: CXX
18787 _LT_EOF
18788
18789  ;;
18790
18791   esac
18792 done # for ac_tag
18793
18794
18795 { (exit 0); exit 0; }
18796 _ACEOF
18797 chmod +x $CONFIG_STATUS
18798 ac_clean_files=$ac_clean_files_save
18799
18800
18801 # configure is writing to config.log, and then calls config.status.
18802 # config.status does its own redirection, appending to config.log.
18803 # Unfortunately, on DOS this fails, as config.log is still kept open
18804 # by configure, so config.status won't be able to write to it; its
18805 # output is simply discarded.  So we exec the FD to /dev/null,
18806 # effectively closing config.log, so it can be properly (re)opened and
18807 # appended to by config.status.  When coming back to configure, we
18808 # need to make the FD available again.
18809 if test "$no_create" != yes; then
18810   ac_cs_success=:
18811   ac_config_status_args=
18812   test "$silent" = yes &&
18813     ac_config_status_args="$ac_config_status_args --quiet"
18814   exec 5>/dev/null
18815   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18816   exec 5>>config.log
18817   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18818   # would make configure fail if this is the last instruction.
18819   $ac_cs_success || { (exit 1); exit 1; }
18820 fi
18821