]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/libsdl-image/contrib/configure
update
[l4.git] / l4 / pkg / libsdl-image / contrib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $ECHO works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601   # used as fallback echo
602   shift
603   cat <<_LT_EOF
604 $*
605 _LT_EOF
606   exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614   if test "X${echo_test_string+set}" != Xset; then
615     # find a string as large as possible, as long as the shell can cope with it
616     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620       then
621         break
622       fi
623     done
624   fi
625
626   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628      test "X$echo_testing_string" = "X$echo_test_string"; then
629     :
630   else
631     # The Solaris, AIX, and Digital Unix default echo programs unquote
632     # backslashes.  This makes it impossible to quote backslashes using
633     #   echo "$something" | sed 's/\\/\\\\/g'
634     #
635     # So, first we look for a working echo in the user's PATH.
636
637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638     for dir in $PATH /usr/ucb; do
639       IFS="$lt_save_ifs"
640       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643          test "X$echo_testing_string" = "X$echo_test_string"; then
644         ECHO="$dir/echo"
645         break
646       fi
647     done
648     IFS="$lt_save_ifs"
649
650     if test "X$ECHO" = Xecho; then
651       # We didn't find a better echo, so look for alternatives.
652       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # This shell has a builtin print -r that does the trick.
656         ECHO='print -r'
657       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658            test "X$CONFIG_SHELL" != X/bin/ksh; then
659         # If we have ksh, try running configure again with it.
660         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661         export ORIGINAL_CONFIG_SHELL
662         CONFIG_SHELL=/bin/ksh
663         export CONFIG_SHELL
664         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665       else
666         # Try using printf.
667         ECHO='printf %s\n'
668         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670            test "X$echo_testing_string" = "X$echo_test_string"; then
671           # Cool, printf works
672           :
673         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674              test "X$echo_testing_string" = 'X\t' &&
675              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676              test "X$echo_testing_string" = "X$echo_test_string"; then
677           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678           export CONFIG_SHELL
679           SHELL="$CONFIG_SHELL"
680           export SHELL
681           ECHO="$CONFIG_SHELL $0 --fallback-echo"
682         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683              test "X$echo_testing_string" = 'X\t' &&
684              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685              test "X$echo_testing_string" = "X$echo_test_string"; then
686           ECHO="$CONFIG_SHELL $0 --fallback-echo"
687         else
688           # maybe with a smaller string...
689           prev=:
690
691           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693             then
694               break
695             fi
696             prev="$cmd"
697           done
698
699           if test "$prev" != 'sed 50q "$0"'; then
700             echo_test_string=`eval $prev`
701             export echo_test_string
702             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703           else
704             # Oops.  We lost completely, so just stick with echo.
705             ECHO=echo
706           fi
707         fi
708       fi
709     fi
710   fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 ac_unique_file="README"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 #  include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 #  include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
786
787 ac_subst_vars='am__EXEEXT_FALSE
788 am__EXEEXT_TRUE
789 LTLIBOBJS
790 LIBOBJS
791 IMG_LIBS
792 LIBPNG_LIBS
793 LIBPNG_CFLAGS
794 SDL_CONFIG
795 SDL_LIBS
796 SDL_CFLAGS
797 PKG_CONFIG
798 SDL_VERSION
799 USE_VERSION_RC_FALSE
800 USE_VERSION_RC_TRUE
801 WINDRES
802 am__fastdepCC_FALSE
803 am__fastdepCC_TRUE
804 CCDEPMODE
805 AMDEPBACKSLASH
806 AMDEP_FALSE
807 AMDEP_TRUE
808 am__quote
809 am__include
810 DEPDIR
811 am__untar
812 am__tar
813 AMTAR
814 am__leading_dot
815 SET_MAKE
816 AWK
817 mkdir_p
818 MKDIR_P
819 INSTALL_STRIP_PROGRAM
820 install_sh
821 MAKEINFO
822 AUTOHEADER
823 AUTOMAKE
824 AUTOCONF
825 ACLOCAL
826 PACKAGE
827 CYGPATH_W
828 am__isrc
829 INSTALL_DATA
830 INSTALL_SCRIPT
831 INSTALL_PROGRAM
832 LT_AGE
833 LT_REVISION
834 LT_CURRENT
835 LT_RELEASE
836 CPP
837 OTOOL64
838 OTOOL
839 LIPO
840 NMEDIT
841 DSYMUTIL
842 lt_ECHO
843 RANLIB
844 STRIP
845 AR
846 LN_S
847 NM
848 ac_ct_DUMPBIN
849 DUMPBIN
850 LD
851 FGREP
852 EGREP
853 GREP
854 SED
855 OBJEXT
856 EXEEXT
857 ac_ct_CC
858 CPPFLAGS
859 LDFLAGS
860 CFLAGS
861 CC
862 host_os
863 host_vendor
864 host_cpu
865 host
866 build_os
867 build_vendor
868 build_cpu
869 build
870 LIBTOOL
871 OBJDUMP
872 DLLTOOL
873 AS
874 VERSION
875 BINARY_AGE
876 INTERFACE_AGE
877 MICRO_VERSION
878 MINOR_VERSION
879 MAJOR_VERSION
880 target_alias
881 host_alias
882 build_alias
883 LIBS
884 ECHO_T
885 ECHO_N
886 ECHO_C
887 DEFS
888 mandir
889 localedir
890 libdir
891 psdir
892 pdfdir
893 dvidir
894 htmldir
895 infodir
896 docdir
897 oldincludedir
898 includedir
899 localstatedir
900 sharedstatedir
901 sysconfdir
902 datadir
903 datarootdir
904 libexecdir
905 sbindir
906 bindir
907 program_transform_name
908 prefix
909 exec_prefix
910 PACKAGE_BUGREPORT
911 PACKAGE_STRING
912 PACKAGE_VERSION
913 PACKAGE_TARNAME
914 PACKAGE_NAME
915 PATH_SEPARATOR
916 SHELL'
917 ac_subst_files=''
918 ac_user_opts='
919 enable_option_checking
920 enable_shared
921 enable_static
922 with_pic
923 enable_fast_install
924 with_gnu_ld
925 enable_libtool_lock
926 enable_dependency_tracking
927 with_sdl_prefix
928 with_sdl_exec_prefix
929 enable_sdltest
930 enable_bmp
931 enable_gif
932 enable_jpg
933 enable_jpg_shared
934 enable_lbm
935 enable_pcx
936 enable_png
937 enable_png_shared
938 enable_pnm
939 enable_tga
940 enable_tif
941 enable_tif_shared
942 enable_xcf
943 enable_xpm
944 enable_xv
945 '
946       ac_precious_vars='build_alias
947 host_alias
948 target_alias
949 CC
950 CFLAGS
951 LDFLAGS
952 LIBS
953 CPPFLAGS
954 CPP
955 PKG_CONFIG
956 SDL_CFLAGS
957 SDL_LIBS
958 LIBPNG_CFLAGS
959 LIBPNG_LIBS'
960
961
962 # Initialize some variables set by options.
963 ac_init_help=
964 ac_init_version=false
965 ac_unrecognized_opts=
966 ac_unrecognized_sep=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
969 cache_file=/dev/null
970 exec_prefix=NONE
971 no_create=
972 no_recursion=
973 prefix=NONE
974 program_prefix=NONE
975 program_suffix=NONE
976 program_transform_name=s,x,x,
977 silent=
978 site=
979 srcdir=
980 verbose=
981 x_includes=NONE
982 x_libraries=NONE
983
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 includedir='${prefix}/include'
999 oldincludedir='/usr/include'
1000 docdir='${datarootdir}/doc/${PACKAGE}'
1001 infodir='${datarootdir}/info'
1002 htmldir='${docdir}'
1003 dvidir='${docdir}'
1004 pdfdir='${docdir}'
1005 psdir='${docdir}'
1006 libdir='${exec_prefix}/lib'
1007 localedir='${datarootdir}/locale'
1008 mandir='${datarootdir}/man'
1009
1010 ac_prev=
1011 ac_dashdash=
1012 for ac_option
1013 do
1014   # If the previous option needs an argument, assign it.
1015   if test -n "$ac_prev"; then
1016     eval $ac_prev=\$ac_option
1017     ac_prev=
1018     continue
1019   fi
1020
1021   case $ac_option in
1022   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023   *)    ac_optarg=yes ;;
1024   esac
1025
1026   # Accept the important Cygnus configure options, so we can diagnose typos.
1027
1028   case $ac_dashdash$ac_option in
1029   --)
1030     ac_dashdash=yes ;;
1031
1032   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033     ac_prev=bindir ;;
1034   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035     bindir=$ac_optarg ;;
1036
1037   -build | --build | --buil | --bui | --bu)
1038     ac_prev=build_alias ;;
1039   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040     build_alias=$ac_optarg ;;
1041
1042   -cache-file | --cache-file | --cache-fil | --cache-fi \
1043   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044     ac_prev=cache_file ;;
1045   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047     cache_file=$ac_optarg ;;
1048
1049   --config-cache | -C)
1050     cache_file=config.cache ;;
1051
1052   -datadir | --datadir | --datadi | --datad)
1053     ac_prev=datadir ;;
1054   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055     datadir=$ac_optarg ;;
1056
1057   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058   | --dataroo | --dataro | --datar)
1059     ac_prev=datarootdir ;;
1060   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062     datarootdir=$ac_optarg ;;
1063
1064   -disable-* | --disable-*)
1065     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066     # Reject names that are not valid shell variable names.
1067     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1069    { (exit 1); exit 1; }; }
1070     ac_useropt_orig=$ac_useropt
1071     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072     case $ac_user_opts in
1073       *"
1074 "enable_$ac_useropt"
1075 "*) ;;
1076       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077          ac_unrecognized_sep=', ';;
1078     esac
1079     eval enable_$ac_useropt=no ;;
1080
1081   -docdir | --docdir | --docdi | --doc | --do)
1082     ac_prev=docdir ;;
1083   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084     docdir=$ac_optarg ;;
1085
1086   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087     ac_prev=dvidir ;;
1088   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089     dvidir=$ac_optarg ;;
1090
1091   -enable-* | --enable-*)
1092     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093     # Reject names that are not valid shell variable names.
1094     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1096    { (exit 1); exit 1; }; }
1097     ac_useropt_orig=$ac_useropt
1098     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099     case $ac_user_opts in
1100       *"
1101 "enable_$ac_useropt"
1102 "*) ;;
1103       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1104          ac_unrecognized_sep=', ';;
1105     esac
1106     eval enable_$ac_useropt=\$ac_optarg ;;
1107
1108   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1109   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1110   | --exec | --exe | --ex)
1111     ac_prev=exec_prefix ;;
1112   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1113   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1114   | --exec=* | --exe=* | --ex=*)
1115     exec_prefix=$ac_optarg ;;
1116
1117   -gas | --gas | --ga | --g)
1118     # Obsolete; use --with-gas.
1119     with_gas=yes ;;
1120
1121   -help | --help | --hel | --he | -h)
1122     ac_init_help=long ;;
1123   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1124     ac_init_help=recursive ;;
1125   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1126     ac_init_help=short ;;
1127
1128   -host | --host | --hos | --ho)
1129     ac_prev=host_alias ;;
1130   -host=* | --host=* | --hos=* | --ho=*)
1131     host_alias=$ac_optarg ;;
1132
1133   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134     ac_prev=htmldir ;;
1135   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136   | --ht=*)
1137     htmldir=$ac_optarg ;;
1138
1139   -includedir | --includedir | --includedi | --included | --include \
1140   | --includ | --inclu | --incl | --inc)
1141     ac_prev=includedir ;;
1142   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1143   | --includ=* | --inclu=* | --incl=* | --inc=*)
1144     includedir=$ac_optarg ;;
1145
1146   -infodir | --infodir | --infodi | --infod | --info | --inf)
1147     ac_prev=infodir ;;
1148   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1149     infodir=$ac_optarg ;;
1150
1151   -libdir | --libdir | --libdi | --libd)
1152     ac_prev=libdir ;;
1153   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1154     libdir=$ac_optarg ;;
1155
1156   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1157   | --libexe | --libex | --libe)
1158     ac_prev=libexecdir ;;
1159   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1160   | --libexe=* | --libex=* | --libe=*)
1161     libexecdir=$ac_optarg ;;
1162
1163   -localedir | --localedir | --localedi | --localed | --locale)
1164     ac_prev=localedir ;;
1165   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1166     localedir=$ac_optarg ;;
1167
1168   -localstatedir | --localstatedir | --localstatedi | --localstated \
1169   | --localstate | --localstat | --localsta | --localst | --locals)
1170     ac_prev=localstatedir ;;
1171   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1172   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1173     localstatedir=$ac_optarg ;;
1174
1175   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176     ac_prev=mandir ;;
1177   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1178     mandir=$ac_optarg ;;
1179
1180   -nfp | --nfp | --nf)
1181     # Obsolete; use --without-fp.
1182     with_fp=no ;;
1183
1184   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185   | --no-cr | --no-c | -n)
1186     no_create=yes ;;
1187
1188   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1189   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1190     no_recursion=yes ;;
1191
1192   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1193   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1194   | --oldin | --oldi | --old | --ol | --o)
1195     ac_prev=oldincludedir ;;
1196   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1197   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1198   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1199     oldincludedir=$ac_optarg ;;
1200
1201   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202     ac_prev=prefix ;;
1203   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1204     prefix=$ac_optarg ;;
1205
1206   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1207   | --program-pre | --program-pr | --program-p)
1208     ac_prev=program_prefix ;;
1209   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1210   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1211     program_prefix=$ac_optarg ;;
1212
1213   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1214   | --program-suf | --program-su | --program-s)
1215     ac_prev=program_suffix ;;
1216   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1217   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1218     program_suffix=$ac_optarg ;;
1219
1220   -program-transform-name | --program-transform-name \
1221   | --program-transform-nam | --program-transform-na \
1222   | --program-transform-n | --program-transform- \
1223   | --program-transform | --program-transfor \
1224   | --program-transfo | --program-transf \
1225   | --program-trans | --program-tran \
1226   | --progr-tra | --program-tr | --program-t)
1227     ac_prev=program_transform_name ;;
1228   -program-transform-name=* | --program-transform-name=* \
1229   | --program-transform-nam=* | --program-transform-na=* \
1230   | --program-transform-n=* | --program-transform-=* \
1231   | --program-transform=* | --program-transfor=* \
1232   | --program-transfo=* | --program-transf=* \
1233   | --program-trans=* | --program-tran=* \
1234   | --progr-tra=* | --program-tr=* | --program-t=*)
1235     program_transform_name=$ac_optarg ;;
1236
1237   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238     ac_prev=pdfdir ;;
1239   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1240     pdfdir=$ac_optarg ;;
1241
1242   -psdir | --psdir | --psdi | --psd | --ps)
1243     ac_prev=psdir ;;
1244   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1245     psdir=$ac_optarg ;;
1246
1247   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248   | -silent | --silent | --silen | --sile | --sil)
1249     silent=yes ;;
1250
1251   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1252     ac_prev=sbindir ;;
1253   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1254   | --sbi=* | --sb=*)
1255     sbindir=$ac_optarg ;;
1256
1257   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1258   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1259   | --sharedst | --shareds | --shared | --share | --shar \
1260   | --sha | --sh)
1261     ac_prev=sharedstatedir ;;
1262   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1263   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1264   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1265   | --sha=* | --sh=*)
1266     sharedstatedir=$ac_optarg ;;
1267
1268   -site | --site | --sit)
1269     ac_prev=site ;;
1270   -site=* | --site=* | --sit=*)
1271     site=$ac_optarg ;;
1272
1273   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1274     ac_prev=srcdir ;;
1275   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1276     srcdir=$ac_optarg ;;
1277
1278   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1279   | --syscon | --sysco | --sysc | --sys | --sy)
1280     ac_prev=sysconfdir ;;
1281   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1282   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1283     sysconfdir=$ac_optarg ;;
1284
1285   -target | --target | --targe | --targ | --tar | --ta | --t)
1286     ac_prev=target_alias ;;
1287   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1288     target_alias=$ac_optarg ;;
1289
1290   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1291     verbose=yes ;;
1292
1293   -version | --version | --versio | --versi | --vers | -V)
1294     ac_init_version=: ;;
1295
1296   -with-* | --with-*)
1297     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1298     # Reject names that are not valid shell variable names.
1299     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1301    { (exit 1); exit 1; }; }
1302     ac_useropt_orig=$ac_useropt
1303     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304     case $ac_user_opts in
1305       *"
1306 "with_$ac_useropt"
1307 "*) ;;
1308       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309          ac_unrecognized_sep=', ';;
1310     esac
1311     eval with_$ac_useropt=\$ac_optarg ;;
1312
1313   -without-* | --without-*)
1314     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315     # Reject names that are not valid shell variable names.
1316     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1318    { (exit 1); exit 1; }; }
1319     ac_useropt_orig=$ac_useropt
1320     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321     case $ac_user_opts in
1322       *"
1323 "with_$ac_useropt"
1324 "*) ;;
1325       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1326          ac_unrecognized_sep=', ';;
1327     esac
1328     eval with_$ac_useropt=no ;;
1329
1330   --x)
1331     # Obsolete; use --with-x.
1332     with_x=yes ;;
1333
1334   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1335   | --x-incl | --x-inc | --x-in | --x-i)
1336     ac_prev=x_includes ;;
1337   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1338   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1339     x_includes=$ac_optarg ;;
1340
1341   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1342   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1343     ac_prev=x_libraries ;;
1344   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1345   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1346     x_libraries=$ac_optarg ;;
1347
1348   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1349 Try \`$0 --help' for more information." >&2
1350    { (exit 1); exit 1; }; }
1351     ;;
1352
1353   *=*)
1354     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355     # Reject names that are not valid shell variable names.
1356     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1357       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1358    { (exit 1); exit 1; }; }
1359     eval $ac_envvar=\$ac_optarg
1360     export $ac_envvar ;;
1361
1362   *)
1363     # FIXME: should be removed in autoconf 3.0.
1364     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1365     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1366       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1367     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1368     ;;
1369
1370   esac
1371 done
1372
1373 if test -n "$ac_prev"; then
1374   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1375   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1376    { (exit 1); exit 1; }; }
1377 fi
1378
1379 if test -n "$ac_unrecognized_opts"; then
1380   case $enable_option_checking in
1381     no) ;;
1382     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1383    { (exit 1); exit 1; }; } ;;
1384     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1385   esac
1386 fi
1387
1388 # Check all directory arguments for consistency.
1389 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1390                 datadir sysconfdir sharedstatedir localstatedir includedir \
1391                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1392                 libdir localedir mandir
1393 do
1394   eval ac_val=\$$ac_var
1395   # Remove trailing slashes.
1396   case $ac_val in
1397     */ )
1398       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1399       eval $ac_var=\$ac_val;;
1400   esac
1401   # Be sure to have absolute directory names.
1402   case $ac_val in
1403     [\\/$]* | ?:[\\/]* )  continue;;
1404     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1405   esac
1406   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1407    { (exit 1); exit 1; }; }
1408 done
1409
1410 # There might be people who depend on the old broken behavior: `$host'
1411 # used to hold the argument of --host etc.
1412 # FIXME: To remove some day.
1413 build=$build_alias
1414 host=$host_alias
1415 target=$target_alias
1416
1417 # FIXME: To remove some day.
1418 if test "x$host_alias" != x; then
1419   if test "x$build_alias" = x; then
1420     cross_compiling=maybe
1421     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1422     If a cross compiler is detected then cross compile mode will be used." >&2
1423   elif test "x$build_alias" != "x$host_alias"; then
1424     cross_compiling=yes
1425   fi
1426 fi
1427
1428 ac_tool_prefix=
1429 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1430
1431 test "$silent" = yes && exec 6>/dev/null
1432
1433
1434 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1435 ac_ls_di=`ls -di .` &&
1436 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1437   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1438    { (exit 1); exit 1; }; }
1439 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1440   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1441    { (exit 1); exit 1; }; }
1442
1443
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446   ac_srcdir_defaulted=yes
1447   # Try the directory containing this script, then the parent directory.
1448   ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450          X"$as_myself" : 'X\(//\)[^/]' \| \
1451          X"$as_myself" : 'X\(//\)$' \| \
1452          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455             s//\1/
1456             q
1457           }
1458           /^X\(\/\/\)[^/].*/{
1459             s//\1/
1460             q
1461           }
1462           /^X\(\/\/\)$/{
1463             s//\1/
1464             q
1465           }
1466           /^X\(\/\).*/{
1467             s//\1/
1468             q
1469           }
1470           s/.*/./; q'`
1471   srcdir=$ac_confdir
1472   if test ! -r "$srcdir/$ac_unique_file"; then
1473     srcdir=..
1474   fi
1475 else
1476   ac_srcdir_defaulted=no
1477 fi
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1481    { (exit 1); exit 1; }; }
1482 fi
1483 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1484 ac_abs_confdir=`(
1485         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1486    { (exit 1); exit 1; }; }
1487         pwd)`
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490   srcdir=.
1491 fi
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1495 case $srcdir in
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497 esac
1498 for ac_var in $ac_precious_vars; do
1499   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500   eval ac_env_${ac_var}_value=\$${ac_var}
1501   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503 done
1504
1505 #
1506 # Report the --help message.
1507 #
1508 if test "$ac_init_help" = "long"; then
1509   # Omit some internal or obsolete options to make the list less imposing.
1510   # This message is too long to be a string in the A/UX 3.1 sh.
1511   cat <<_ACEOF
1512 \`configure' configures this package to adapt to many kinds of systems.
1513
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1515
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE.  See below for descriptions of some of the useful variables.
1518
1519 Defaults for the options are specified in brackets.
1520
1521 Configuration:
1522   -h, --help              display this help and exit
1523       --help=short        display options specific to this package
1524       --help=recursive    display the short help of all the included packages
1525   -V, --version           display version information and exit
1526   -q, --quiet, --silent   do not print \`checking...' messages
1527       --cache-file=FILE   cache test results in FILE [disabled]
1528   -C, --config-cache      alias for \`--cache-file=config.cache'
1529   -n, --no-create         do not create output files
1530       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1531
1532 Installation directories:
1533   --prefix=PREFIX         install architecture-independent files in PREFIX
1534                           [$ac_default_prefix]
1535   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1536                           [PREFIX]
1537
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1542
1543 For better control, use the options below.
1544
1545 Fine tuning of the installation directories:
1546   --bindir=DIR            user executables [EPREFIX/bin]
1547   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1548   --libexecdir=DIR        program executables [EPREFIX/libexec]
1549   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1550   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1551   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1552   --libdir=DIR            object code libraries [EPREFIX/lib]
1553   --includedir=DIR        C header files [PREFIX/include]
1554   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1555   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1556   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1557   --infodir=DIR           info documentation [DATAROOTDIR/info]
1558   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1559   --mandir=DIR            man documentation [DATAROOTDIR/man]
1560   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1561   --htmldir=DIR           html documentation [DOCDIR]
1562   --dvidir=DIR            dvi documentation [DOCDIR]
1563   --pdfdir=DIR            pdf documentation [DOCDIR]
1564   --psdir=DIR             ps documentation [DOCDIR]
1565 _ACEOF
1566
1567   cat <<\_ACEOF
1568
1569 Program names:
1570   --program-prefix=PREFIX            prepend PREFIX to installed program names
1571   --program-suffix=SUFFIX            append SUFFIX to installed program names
1572   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1573
1574 System types:
1575   --build=BUILD     configure for building on BUILD [guessed]
1576   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1577 _ACEOF
1578 fi
1579
1580 if test -n "$ac_init_help"; then
1581
1582   cat <<\_ACEOF
1583
1584 Optional Features:
1585   --disable-option-checking  ignore unrecognized --enable/--with options
1586   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1587   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1588   --enable-shared[=PKGS]  build shared libraries [default=yes]
1589   --enable-static[=PKGS]  build static libraries [default=yes]
1590   --enable-fast-install[=PKGS]
1591                           optimize for fast installation [default=yes]
1592   --disable-libtool-lock  avoid locking (might break parallel builds)
1593   --disable-dependency-tracking  speeds up one-time build
1594   --enable-dependency-tracking   do not reject slow dependency extractors
1595   --disable-sdltest       Do not try to compile and run a test SDL program
1596   --enable-bmp            support loading BMP/ICO/CUR images [default=yes]
1597   --enable-gif            support loading GIF images [default=yes]
1598   --enable-jpg            support loading JPG images [default=yes]
1599   --enable-jpg-shared     dynamically load JPG support [default=yes]
1600   --enable-lbm            support loading LBM images [default=yes]
1601   --enable-pcx            support loading PCX images [default=yes]
1602   --enable-png            support loading PNG images [default=yes]
1603   --enable-png-shared     dynamically load PNG support [default=yes]
1604   --enable-pnm            support loading PNM images [default=yes]
1605   --enable-tga            support loading TGA images [default=yes]
1606   --enable-tif            support loading TIFF images [default=yes]
1607   --enable-tif-shared     dynamically load TIFF support [default=yes]
1608   --enable-xcf            support loading XCF images [default=yes]
1609   --enable-xpm            support loading XPM images [default=yes]
1610   --enable-xv             support loading XV images [default=yes]
1611
1612 Optional Packages:
1613   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1614   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1615   --with-pic              try to use only PIC/non-PIC objects [default=use
1616                           both]
1617   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1618   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1619   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1620
1621 Some influential environment variables:
1622   CC          C compiler command
1623   CFLAGS      C compiler flags
1624   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1625               nonstandard directory <lib dir>
1626   LIBS        libraries to pass to the linker, e.g. -l<library>
1627   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1628               you have headers in a nonstandard directory <include dir>
1629   CPP         C preprocessor
1630   PKG_CONFIG  path to pkg-config utility
1631   SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
1632   SDL_LIBS    linker flags for SDL, overriding pkg-config
1633   LIBPNG_CFLAGS
1634               C compiler flags for LIBPNG, overriding pkg-config
1635   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1636
1637 Use these variables to override the choices made by `configure' or to help
1638 it to find libraries and programs with nonstandard names/locations.
1639
1640 _ACEOF
1641 ac_status=$?
1642 fi
1643
1644 if test "$ac_init_help" = "recursive"; then
1645   # If there are subdirs, report their specific --help.
1646   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647     test -d "$ac_dir" ||
1648       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649       continue
1650     ac_builddir=.
1651
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *)
1655   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656   # A ".." for each directory in $ac_dir_suffix.
1657   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658   case $ac_top_builddir_sub in
1659   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661   esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1667
1668 case $srcdir in
1669   .)  # We are building in place.
1670     ac_srcdir=.
1671     ac_top_srcdir=$ac_top_builddir_sub
1672     ac_abs_top_srcdir=$ac_pwd ;;
1673   [\\/]* | ?:[\\/]* )  # Absolute name.
1674     ac_srcdir=$srcdir$ac_dir_suffix;
1675     ac_top_srcdir=$srcdir
1676     ac_abs_top_srcdir=$srcdir ;;
1677   *) # Relative name.
1678     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679     ac_top_srcdir=$ac_top_build_prefix$srcdir
1680     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684     cd "$ac_dir" || { ac_status=$?; continue; }
1685     # Check for guested configure.
1686     if test -f "$ac_srcdir/configure.gnu"; then
1687       echo &&
1688       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689     elif test -f "$ac_srcdir/configure"; then
1690       echo &&
1691       $SHELL "$ac_srcdir/configure" --help=recursive
1692     else
1693       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694     fi || ac_status=$?
1695     cd "$ac_pwd" || { ac_status=$?; break; }
1696   done
1697 fi
1698
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701   cat <<\_ACEOF
1702 configure
1703 generated by GNU Autoconf 2.63
1704
1705 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1706 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1707 This configure script is free software; the Free Software Foundation
1708 gives unlimited permission to copy, distribute and modify it.
1709 _ACEOF
1710   exit
1711 fi
1712 cat >config.log <<_ACEOF
1713 This file contains any messages produced by compilers while
1714 running configure, to aid debugging if configure makes a mistake.
1715
1716 It was created by $as_me, which was
1717 generated by GNU Autoconf 2.63.  Invocation command line was
1718
1719   $ $0 $@
1720
1721 _ACEOF
1722 exec 5>>config.log
1723 {
1724 cat <<_ASUNAME
1725 ## --------- ##
1726 ## Platform. ##
1727 ## --------- ##
1728
1729 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1730 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1731 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1732 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1733 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1734
1735 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1736 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1737
1738 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1739 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1740 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1741 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1742 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1743 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1744 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1745
1746 _ASUNAME
1747
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751   IFS=$as_save_IFS
1752   test -z "$as_dir" && as_dir=.
1753   $as_echo "PATH: $as_dir"
1754 done
1755 IFS=$as_save_IFS
1756
1757 } >&5
1758
1759 cat >&5 <<_ACEOF
1760
1761
1762 ## ----------- ##
1763 ## Core tests. ##
1764 ## ----------- ##
1765
1766 _ACEOF
1767
1768
1769 # Keep a trace of the command line.
1770 # Strip out --no-create and --no-recursion so they do not pile up.
1771 # Strip out --silent because we don't want to record it for future runs.
1772 # Also quote any args containing shell meta-characters.
1773 # Make two passes to allow for proper duplicate-argument suppression.
1774 ac_configure_args=
1775 ac_configure_args0=
1776 ac_configure_args1=
1777 ac_must_keep_next=false
1778 for ac_pass in 1 2
1779 do
1780   for ac_arg
1781   do
1782     case $ac_arg in
1783     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1784     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1785     | -silent | --silent | --silen | --sile | --sil)
1786       continue ;;
1787     *\'*)
1788       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1789     esac
1790     case $ac_pass in
1791     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1792     2)
1793       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1794       if test $ac_must_keep_next = true; then
1795         ac_must_keep_next=false # Got value, back to normal.
1796       else
1797         case $ac_arg in
1798           *=* | --config-cache | -C | -disable-* | --disable-* \
1799           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1800           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1801           | -with-* | --with-* | -without-* | --without-* | --x)
1802             case "$ac_configure_args0 " in
1803               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1804             esac
1805             ;;
1806           -* ) ac_must_keep_next=true ;;
1807         esac
1808       fi
1809       ac_configure_args="$ac_configure_args '$ac_arg'"
1810       ;;
1811     esac
1812   done
1813 done
1814 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1815 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1816
1817 # When interrupted or exit'd, cleanup temporary files, and complete
1818 # config.log.  We remove comments because anyway the quotes in there
1819 # would cause problems or look ugly.
1820 # WARNING: Use '\'' to represent an apostrophe within the trap.
1821 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1822 trap 'exit_status=$?
1823   # Save into config.log some information that might help in debugging.
1824   {
1825     echo
1826
1827     cat <<\_ASBOX
1828 ## ---------------- ##
1829 ## Cache variables. ##
1830 ## ---------------- ##
1831 _ASBOX
1832     echo
1833     # The following way of writing the cache mishandles newlines in values,
1834 (
1835   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1836     eval ac_val=\$$ac_var
1837     case $ac_val in #(
1838     *${as_nl}*)
1839       case $ac_var in #(
1840       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1841 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1842       esac
1843       case $ac_var in #(
1844       _ | IFS | as_nl) ;; #(
1845       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1846       *) $as_unset $ac_var ;;
1847       esac ;;
1848     esac
1849   done
1850   (set) 2>&1 |
1851     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1852     *${as_nl}ac_space=\ *)
1853       sed -n \
1854         "s/'\''/'\''\\\\'\'''\''/g;
1855           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1856       ;; #(
1857     *)
1858       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1859       ;;
1860     esac |
1861     sort
1862 )
1863     echo
1864
1865     cat <<\_ASBOX
1866 ## ----------------- ##
1867 ## Output variables. ##
1868 ## ----------------- ##
1869 _ASBOX
1870     echo
1871     for ac_var in $ac_subst_vars
1872     do
1873       eval ac_val=\$$ac_var
1874       case $ac_val in
1875       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876       esac
1877       $as_echo "$ac_var='\''$ac_val'\''"
1878     done | sort
1879     echo
1880
1881     if test -n "$ac_subst_files"; then
1882       cat <<\_ASBOX
1883 ## ------------------- ##
1884 ## File substitutions. ##
1885 ## ------------------- ##
1886 _ASBOX
1887       echo
1888       for ac_var in $ac_subst_files
1889       do
1890         eval ac_val=\$$ac_var
1891         case $ac_val in
1892         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1893         esac
1894         $as_echo "$ac_var='\''$ac_val'\''"
1895       done | sort
1896       echo
1897     fi
1898
1899     if test -s confdefs.h; then
1900       cat <<\_ASBOX
1901 ## ----------- ##
1902 ## confdefs.h. ##
1903 ## ----------- ##
1904 _ASBOX
1905       echo
1906       cat confdefs.h
1907       echo
1908     fi
1909     test "$ac_signal" != 0 &&
1910       $as_echo "$as_me: caught signal $ac_signal"
1911     $as_echo "$as_me: exit $exit_status"
1912   } >&5
1913   rm -f core *.core core.conftest.* &&
1914     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1915     exit $exit_status
1916 ' 0
1917 for ac_signal in 1 2 13 15; do
1918   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1919 done
1920 ac_signal=0
1921
1922 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1923 rm -f -r conftest* confdefs.h
1924
1925 # Predefined preprocessor variables.
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_NAME "$PACKAGE_NAME"
1929 _ACEOF
1930
1931
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1939 _ACEOF
1940
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_STRING "$PACKAGE_STRING"
1944 _ACEOF
1945
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1949 _ACEOF
1950
1951
1952 # Let the site file select an alternate cache file if it wants to.
1953 # Prefer an explicitly selected file to automatically selected ones.
1954 ac_site_file1=NONE
1955 ac_site_file2=NONE
1956 if test -n "$CONFIG_SITE"; then
1957   ac_site_file1=$CONFIG_SITE
1958 elif test "x$prefix" != xNONE; then
1959   ac_site_file1=$prefix/share/config.site
1960   ac_site_file2=$prefix/etc/config.site
1961 else
1962   ac_site_file1=$ac_default_prefix/share/config.site
1963   ac_site_file2=$ac_default_prefix/etc/config.site
1964 fi
1965 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1966 do
1967   test "x$ac_site_file" = xNONE && continue
1968   if test -r "$ac_site_file"; then
1969     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1970 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1971     sed 's/^/| /' "$ac_site_file" >&5
1972     . "$ac_site_file"
1973   fi
1974 done
1975
1976 if test -r "$cache_file"; then
1977   # Some versions of bash will fail to source /dev/null (special
1978   # files actually), so we avoid doing that.
1979   if test -f "$cache_file"; then
1980     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1981 $as_echo "$as_me: loading cache $cache_file" >&6;}
1982     case $cache_file in
1983       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1984       *)                      . "./$cache_file";;
1985     esac
1986   fi
1987 else
1988   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1989 $as_echo "$as_me: creating cache $cache_file" >&6;}
1990   >$cache_file
1991 fi
1992
1993 # Check that the precious variables saved in the cache have kept the same
1994 # value.
1995 ac_cache_corrupted=false
1996 for ac_var in $ac_precious_vars; do
1997   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1998   eval ac_new_set=\$ac_env_${ac_var}_set
1999   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2000   eval ac_new_val=\$ac_env_${ac_var}_value
2001   case $ac_old_set,$ac_new_set in
2002     set,)
2003       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2004 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2005       ac_cache_corrupted=: ;;
2006     ,set)
2007       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2008 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2009       ac_cache_corrupted=: ;;
2010     ,);;
2011     *)
2012       if test "x$ac_old_val" != "x$ac_new_val"; then
2013         # differences in whitespace do not lead to failure.
2014         ac_old_val_w=`echo x $ac_old_val`
2015         ac_new_val_w=`echo x $ac_new_val`
2016         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2017           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2018 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2019           ac_cache_corrupted=:
2020         else
2021           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2022 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2023           eval $ac_var=\$ac_old_val
2024         fi
2025         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2026 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2027         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2028 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2029       fi;;
2030   esac
2031   # Pass precious variables to config.status.
2032   if test "$ac_new_set" = set; then
2033     case $ac_new_val in
2034     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2035     *) ac_arg=$ac_var=$ac_new_val ;;
2036     esac
2037     case " $ac_configure_args " in
2038       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2039       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2040     esac
2041   fi
2042 done
2043 if $ac_cache_corrupted; then
2044   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2046   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2047 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2048   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2049 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2050    { (exit 1); exit 1; }; }
2051 fi
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069 ac_ext=c
2070 ac_cpp='$CPP $CPPFLAGS'
2071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2074
2075
2076
2077
2078 # Making releases:
2079 #   MICRO_VERSION += 1;
2080 #   INTERFACE_AGE += 1;
2081 #   BINARY_AGE += 1;
2082 # if any functions have been added, set INTERFACE_AGE to 0.
2083 # if backwards compatibility has been broken,
2084 # set BINARY_AGE and INTERFACE_AGE to 0.
2085
2086 MAJOR_VERSION=1
2087 MINOR_VERSION=2
2088 MICRO_VERSION=8
2089 INTERFACE_AGE=0
2090 BINARY_AGE=8
2091 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
2092
2093
2094
2095
2096
2097
2098
2099
2100 # libtool versioning
2101 case `pwd` in
2102   *\ * | *\     *)
2103     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2104 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2105 esac
2106
2107
2108
2109 macro_version='2.2.6'
2110 macro_revision='1.3012'
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124 ltmain="$ac_aux_dir/ltmain.sh"
2125
2126 ac_aux_dir=
2127 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2128   if test -f "$ac_dir/install-sh"; then
2129     ac_aux_dir=$ac_dir
2130     ac_install_sh="$ac_aux_dir/install-sh -c"
2131     break
2132   elif test -f "$ac_dir/install.sh"; then
2133     ac_aux_dir=$ac_dir
2134     ac_install_sh="$ac_aux_dir/install.sh -c"
2135     break
2136   elif test -f "$ac_dir/shtool"; then
2137     ac_aux_dir=$ac_dir
2138     ac_install_sh="$ac_aux_dir/shtool install -c"
2139     break
2140   fi
2141 done
2142 if test -z "$ac_aux_dir"; then
2143   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2144 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2145    { (exit 1); exit 1; }; }
2146 fi
2147
2148 # These three variables are undocumented and unsupported,
2149 # and are intended to be withdrawn in a future Autoconf release.
2150 # They can cause serious problems if a builder's source tree is in a directory
2151 # whose full name contains unusual characters.
2152 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2153 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2154 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2155
2156
2157 # Make sure we can run config.sub.
2158 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2159   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2160 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2161    { (exit 1); exit 1; }; }
2162
2163 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2164 $as_echo_n "checking build system type... " >&6; }
2165 if test "${ac_cv_build+set}" = set; then
2166   $as_echo_n "(cached) " >&6
2167 else
2168   ac_build_alias=$build_alias
2169 test "x$ac_build_alias" = x &&
2170   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2171 test "x$ac_build_alias" = x &&
2172   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2173 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2174    { (exit 1); exit 1; }; }
2175 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2176   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2177 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2178    { (exit 1); exit 1; }; }
2179
2180 fi
2181 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2182 $as_echo "$ac_cv_build" >&6; }
2183 case $ac_cv_build in
2184 *-*-*) ;;
2185 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2186 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2187    { (exit 1); exit 1; }; };;
2188 esac
2189 build=$ac_cv_build
2190 ac_save_IFS=$IFS; IFS='-'
2191 set x $ac_cv_build
2192 shift
2193 build_cpu=$1
2194 build_vendor=$2
2195 shift; shift
2196 # Remember, the first character of IFS is used to create $*,
2197 # except with old shells:
2198 build_os=$*
2199 IFS=$ac_save_IFS
2200 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2201
2202
2203 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2204 $as_echo_n "checking host system type... " >&6; }
2205 if test "${ac_cv_host+set}" = set; then
2206   $as_echo_n "(cached) " >&6
2207 else
2208   if test "x$host_alias" = x; then
2209   ac_cv_host=$ac_cv_build
2210 else
2211   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2212     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2213 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2214    { (exit 1); exit 1; }; }
2215 fi
2216
2217 fi
2218 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2219 $as_echo "$ac_cv_host" >&6; }
2220 case $ac_cv_host in
2221 *-*-*) ;;
2222 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2223 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2224    { (exit 1); exit 1; }; };;
2225 esac
2226 host=$ac_cv_host
2227 ac_save_IFS=$IFS; IFS='-'
2228 set x $ac_cv_host
2229 shift
2230 host_cpu=$1
2231 host_vendor=$2
2232 shift; shift
2233 # Remember, the first character of IFS is used to create $*,
2234 # except with old shells:
2235 host_os=$*
2236 IFS=$ac_save_IFS
2237 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2238
2239
2240 ac_ext=c
2241 ac_cpp='$CPP $CPPFLAGS'
2242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245 if test -n "$ac_tool_prefix"; then
2246   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2247 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 $as_echo_n "checking for $ac_word... " >&6; }
2250 if test "${ac_cv_prog_CC+set}" = set; then
2251   $as_echo_n "(cached) " >&6
2252 else
2253   if test -n "$CC"; then
2254   ac_cv_prog_CC="$CC" # Let the user override the test.
2255 else
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2258 do
2259   IFS=$as_save_IFS
2260   test -z "$as_dir" && as_dir=.
2261   for ac_exec_ext in '' $ac_executable_extensions; do
2262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2264     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265     break 2
2266   fi
2267 done
2268 done
2269 IFS=$as_save_IFS
2270
2271 fi
2272 fi
2273 CC=$ac_cv_prog_CC
2274 if test -n "$CC"; then
2275   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2276 $as_echo "$CC" >&6; }
2277 else
2278   { $as_echo "$as_me:$LINENO: result: no" >&5
2279 $as_echo "no" >&6; }
2280 fi
2281
2282
2283 fi
2284 if test -z "$ac_cv_prog_CC"; then
2285   ac_ct_CC=$CC
2286   # Extract the first word of "gcc", so it can be a program name with args.
2287 set dummy gcc; ac_word=$2
2288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 $as_echo_n "checking for $ac_word... " >&6; }
2290 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2291   $as_echo_n "(cached) " >&6
2292 else
2293   if test -n "$ac_ct_CC"; then
2294   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2295 else
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2298 do
2299   IFS=$as_save_IFS
2300   test -z "$as_dir" && as_dir=.
2301   for ac_exec_ext in '' $ac_executable_extensions; do
2302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303     ac_cv_prog_ac_ct_CC="gcc"
2304     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305     break 2
2306   fi
2307 done
2308 done
2309 IFS=$as_save_IFS
2310
2311 fi
2312 fi
2313 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2314 if test -n "$ac_ct_CC"; then
2315   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2316 $as_echo "$ac_ct_CC" >&6; }
2317 else
2318   { $as_echo "$as_me:$LINENO: result: no" >&5
2319 $as_echo "no" >&6; }
2320 fi
2321
2322   if test "x$ac_ct_CC" = x; then
2323     CC=""
2324   else
2325     case $cross_compiling:$ac_tool_warned in
2326 yes:)
2327 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2329 ac_tool_warned=yes ;;
2330 esac
2331     CC=$ac_ct_CC
2332   fi
2333 else
2334   CC="$ac_cv_prog_CC"
2335 fi
2336
2337 if test -z "$CC"; then
2338           if test -n "$ac_tool_prefix"; then
2339     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2340 set dummy ${ac_tool_prefix}cc; ac_word=$2
2341 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 $as_echo_n "checking for $ac_word... " >&6; }
2343 if test "${ac_cv_prog_CC+set}" = set; then
2344   $as_echo_n "(cached) " >&6
2345 else
2346   if test -n "$CC"; then
2347   ac_cv_prog_CC="$CC" # Let the user override the test.
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2351 do
2352   IFS=$as_save_IFS
2353   test -z "$as_dir" && as_dir=.
2354   for ac_exec_ext in '' $ac_executable_extensions; do
2355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356     ac_cv_prog_CC="${ac_tool_prefix}cc"
2357     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358     break 2
2359   fi
2360 done
2361 done
2362 IFS=$as_save_IFS
2363
2364 fi
2365 fi
2366 CC=$ac_cv_prog_CC
2367 if test -n "$CC"; then
2368   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2369 $as_echo "$CC" >&6; }
2370 else
2371   { $as_echo "$as_me:$LINENO: result: no" >&5
2372 $as_echo "no" >&6; }
2373 fi
2374
2375
2376   fi
2377 fi
2378 if test -z "$CC"; then
2379   # Extract the first word of "cc", so it can be a program name with args.
2380 set dummy cc; ac_word=$2
2381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 $as_echo_n "checking for $ac_word... " >&6; }
2383 if test "${ac_cv_prog_CC+set}" = set; then
2384   $as_echo_n "(cached) " >&6
2385 else
2386   if test -n "$CC"; then
2387   ac_cv_prog_CC="$CC" # Let the user override the test.
2388 else
2389   ac_prog_rejected=no
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2392 do
2393   IFS=$as_save_IFS
2394   test -z "$as_dir" && as_dir=.
2395   for ac_exec_ext in '' $ac_executable_extensions; do
2396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2398        ac_prog_rejected=yes
2399        continue
2400      fi
2401     ac_cv_prog_CC="cc"
2402     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403     break 2
2404   fi
2405 done
2406 done
2407 IFS=$as_save_IFS
2408
2409 if test $ac_prog_rejected = yes; then
2410   # We found a bogon in the path, so make sure we never use it.
2411   set dummy $ac_cv_prog_CC
2412   shift
2413   if test $# != 0; then
2414     # We chose a different compiler from the bogus one.
2415     # However, it has the same basename, so the bogon will be chosen
2416     # first if we set CC to just the basename; use the full file name.
2417     shift
2418     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2419   fi
2420 fi
2421 fi
2422 fi
2423 CC=$ac_cv_prog_CC
2424 if test -n "$CC"; then
2425   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2426 $as_echo "$CC" >&6; }
2427 else
2428   { $as_echo "$as_me:$LINENO: result: no" >&5
2429 $as_echo "no" >&6; }
2430 fi
2431
2432
2433 fi
2434 if test -z "$CC"; then
2435   if test -n "$ac_tool_prefix"; then
2436   for ac_prog in cl.exe
2437   do
2438     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 $as_echo_n "checking for $ac_word... " >&6; }
2442 if test "${ac_cv_prog_CC+set}" = set; then
2443   $as_echo_n "(cached) " >&6
2444 else
2445   if test -n "$CC"; then
2446   ac_cv_prog_CC="$CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453   for ac_exec_ext in '' $ac_executable_extensions; do
2454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2456     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460 done
2461 IFS=$as_save_IFS
2462
2463 fi
2464 fi
2465 CC=$ac_cv_prog_CC
2466 if test -n "$CC"; then
2467   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2468 $as_echo "$CC" >&6; }
2469 else
2470   { $as_echo "$as_me:$LINENO: result: no" >&5
2471 $as_echo "no" >&6; }
2472 fi
2473
2474
2475     test -n "$CC" && break
2476   done
2477 fi
2478 if test -z "$CC"; then
2479   ac_ct_CC=$CC
2480   for ac_prog in cl.exe
2481 do
2482   # Extract the first word of "$ac_prog", so it can be a program name with args.
2483 set dummy $ac_prog; ac_word=$2
2484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 $as_echo_n "checking for $ac_word... " >&6; }
2486 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2487   $as_echo_n "(cached) " >&6
2488 else
2489   if test -n "$ac_ct_CC"; then
2490   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495   IFS=$as_save_IFS
2496   test -z "$as_dir" && as_dir=.
2497   for ac_exec_ext in '' $ac_executable_extensions; do
2498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499     ac_cv_prog_ac_ct_CC="$ac_prog"
2500     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501     break 2
2502   fi
2503 done
2504 done
2505 IFS=$as_save_IFS
2506
2507 fi
2508 fi
2509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510 if test -n "$ac_ct_CC"; then
2511   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2512 $as_echo "$ac_ct_CC" >&6; }
2513 else
2514   { $as_echo "$as_me:$LINENO: result: no" >&5
2515 $as_echo "no" >&6; }
2516 fi
2517
2518
2519   test -n "$ac_ct_CC" && break
2520 done
2521
2522   if test "x$ac_ct_CC" = x; then
2523     CC=""
2524   else
2525     case $cross_compiling:$ac_tool_warned in
2526 yes:)
2527 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2529 ac_tool_warned=yes ;;
2530 esac
2531     CC=$ac_ct_CC
2532   fi
2533 fi
2534
2535 fi
2536
2537
2538 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2541 See \`config.log' for more details." >&5
2542 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2543 See \`config.log' for more details." >&2;}
2544    { (exit 1); exit 1; }; }; }
2545
2546 # Provide some information about the compiler.
2547 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2548 set X $ac_compile
2549 ac_compiler=$2
2550 { (ac_try="$ac_compiler --version >&5"
2551 case "(($ac_try" in
2552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553   *) ac_try_echo=$ac_try;;
2554 esac
2555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2556 $as_echo "$ac_try_echo") >&5
2557   (eval "$ac_compiler --version >&5") 2>&5
2558   ac_status=$?
2559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }
2561 { (ac_try="$ac_compiler -v >&5"
2562 case "(($ac_try" in
2563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564   *) ac_try_echo=$ac_try;;
2565 esac
2566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2567 $as_echo "$ac_try_echo") >&5
2568   (eval "$ac_compiler -v >&5") 2>&5
2569   ac_status=$?
2570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }
2572 { (ac_try="$ac_compiler -V >&5"
2573 case "(($ac_try" in
2574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575   *) ac_try_echo=$ac_try;;
2576 esac
2577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2578 $as_echo "$ac_try_echo") >&5
2579   (eval "$ac_compiler -V >&5") 2>&5
2580   ac_status=$?
2581   $as_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.out.dSYM 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 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2605 $as_echo_n "checking for C compiler default output file name... " >&6; }
2606 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2607
2608 # The possible output files:
2609 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2610
2611 ac_rmfiles=
2612 for ac_file in $ac_files
2613 do
2614   case $ac_file in
2615     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2616     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2617   esac
2618 done
2619 rm -f $ac_rmfiles
2620
2621 if { (ac_try="$ac_link_default"
2622 case "(($ac_try" in
2623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624   *) ac_try_echo=$ac_try;;
2625 esac
2626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2627 $as_echo "$ac_try_echo") >&5
2628   (eval "$ac_link_default") 2>&5
2629   ac_status=$?
2630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; then
2632   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2633 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2634 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2635 # so that the user can short-circuit this test for compilers unknown to
2636 # Autoconf.
2637 for ac_file in $ac_files ''
2638 do
2639   test -f "$ac_file" || continue
2640   case $ac_file in
2641     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2642         ;;
2643     [ab].out )
2644         # We found the default executable, but exeext='' is most
2645         # certainly right.
2646         break;;
2647     *.* )
2648         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2649         then :; else
2650            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2651         fi
2652         # We set ac_cv_exeext here because the later test for it is not
2653         # safe: cross compilers may not add the suffix if given an `-o'
2654         # argument, so we may need to know it at that point already.
2655         # Even if this section looks crufty: it has the advantage of
2656         # actually working.
2657         break;;
2658     * )
2659         break;;
2660   esac
2661 done
2662 test "$ac_cv_exeext" = no && ac_cv_exeext=
2663
2664 else
2665   ac_file=''
2666 fi
2667
2668 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2669 $as_echo "$ac_file" >&6; }
2670 if test -z "$ac_file"; then
2671   $as_echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2673
2674 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2677 See \`config.log' for more details." >&5
2678 $as_echo "$as_me: error: C compiler cannot create executables
2679 See \`config.log' for more details." >&2;}
2680    { (exit 77); exit 77; }; }; }
2681 fi
2682
2683 ac_exeext=$ac_cv_exeext
2684
2685 # Check that the compiler produces executables we can run.  If not, either
2686 # the compiler is broken, or we cross compile.
2687 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2688 $as_echo_n "checking whether the C compiler works... " >&6; }
2689 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2690 # If not cross compiling, check that we can run a simple program.
2691 if test "$cross_compiling" != yes; then
2692   if { ac_try='./$ac_file'
2693   { (case "(($ac_try" in
2694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695   *) ac_try_echo=$ac_try;;
2696 esac
2697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2698 $as_echo "$ac_try_echo") >&5
2699   (eval "$ac_try") 2>&5
2700   ac_status=$?
2701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); }; }; then
2703     cross_compiling=no
2704   else
2705     if test "$cross_compiling" = maybe; then
2706         cross_compiling=yes
2707     else
2708         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2711 If you meant to cross compile, use \`--host'.
2712 See \`config.log' for more details." >&5
2713 $as_echo "$as_me: error: cannot run C compiled programs.
2714 If you meant to cross compile, use \`--host'.
2715 See \`config.log' for more details." >&2;}
2716    { (exit 1); exit 1; }; }; }
2717     fi
2718   fi
2719 fi
2720 { $as_echo "$as_me:$LINENO: result: yes" >&5
2721 $as_echo "yes" >&6; }
2722
2723 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2724 ac_clean_files=$ac_clean_files_save
2725 # Check that the compiler produces executables we can run.  If not, either
2726 # the compiler is broken, or we cross compile.
2727 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2728 $as_echo_n "checking whether we are cross compiling... " >&6; }
2729 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2730 $as_echo "$cross_compiling" >&6; }
2731
2732 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2733 $as_echo_n "checking for suffix of executables... " >&6; }
2734 if { (ac_try="$ac_link"
2735 case "(($ac_try" in
2736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737   *) ac_try_echo=$ac_try;;
2738 esac
2739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2740 $as_echo "$ac_try_echo") >&5
2741   (eval "$ac_link") 2>&5
2742   ac_status=$?
2743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; then
2745   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2746 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2747 # work properly (i.e., refer to `conftest.exe'), while it won't with
2748 # `rm'.
2749 for ac_file in conftest.exe conftest conftest.*; do
2750   test -f "$ac_file" || continue
2751   case $ac_file in
2752     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2753     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2754           break;;
2755     * ) break;;
2756   esac
2757 done
2758 else
2759   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2761 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2762 See \`config.log' for more details." >&5
2763 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2764 See \`config.log' for more details." >&2;}
2765    { (exit 1); exit 1; }; }; }
2766 fi
2767
2768 rm -f conftest$ac_cv_exeext
2769 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2770 $as_echo "$ac_cv_exeext" >&6; }
2771
2772 rm -f conftest.$ac_ext
2773 EXEEXT=$ac_cv_exeext
2774 ac_exeext=$EXEEXT
2775 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2776 $as_echo_n "checking for suffix of object files... " >&6; }
2777 if test "${ac_cv_objext+set}" = set; then
2778   $as_echo_n "(cached) " >&6
2779 else
2780   cat >conftest.$ac_ext <<_ACEOF
2781 /* confdefs.h.  */
2782 _ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h.  */
2786
2787 int
2788 main ()
2789 {
2790
2791   ;
2792   return 0;
2793 }
2794 _ACEOF
2795 rm -f conftest.o conftest.obj
2796 if { (ac_try="$ac_compile"
2797 case "(($ac_try" in
2798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799   *) ac_try_echo=$ac_try;;
2800 esac
2801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2802 $as_echo "$ac_try_echo") >&5
2803   (eval "$ac_compile") 2>&5
2804   ac_status=$?
2805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806   (exit $ac_status); }; then
2807   for ac_file in conftest.o conftest.obj conftest.*; do
2808   test -f "$ac_file" || continue;
2809   case $ac_file in
2810     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2811     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2812        break;;
2813   esac
2814 done
2815 else
2816   $as_echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2818
2819 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2822 See \`config.log' for more details." >&5
2823 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2824 See \`config.log' for more details." >&2;}
2825    { (exit 1); exit 1; }; }; }
2826 fi
2827
2828 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2829 fi
2830 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2831 $as_echo "$ac_cv_objext" >&6; }
2832 OBJEXT=$ac_cv_objext
2833 ac_objext=$OBJEXT
2834 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2835 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2836 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2837   $as_echo_n "(cached) " >&6
2838 else
2839   cat >conftest.$ac_ext <<_ACEOF
2840 /* confdefs.h.  */
2841 _ACEOF
2842 cat confdefs.h >>conftest.$ac_ext
2843 cat >>conftest.$ac_ext <<_ACEOF
2844 /* end confdefs.h.  */
2845
2846 int
2847 main ()
2848 {
2849 #ifndef __GNUC__
2850        choke me
2851 #endif
2852
2853   ;
2854   return 0;
2855 }
2856 _ACEOF
2857 rm -f conftest.$ac_objext
2858 if { (ac_try="$ac_compile"
2859 case "(($ac_try" in
2860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861   *) ac_try_echo=$ac_try;;
2862 esac
2863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2864 $as_echo "$ac_try_echo") >&5
2865   (eval "$ac_compile") 2>conftest.er1
2866   ac_status=$?
2867   grep -v '^ *+' conftest.er1 >conftest.err
2868   rm -f conftest.er1
2869   cat conftest.err >&5
2870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); } && {
2872          test -z "$ac_c_werror_flag" ||
2873          test ! -s conftest.err
2874        } && test -s conftest.$ac_objext; then
2875   ac_compiler_gnu=yes
2876 else
2877   $as_echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2879
2880         ac_compiler_gnu=no
2881 fi
2882
2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2884 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2885
2886 fi
2887 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2888 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2889 if test $ac_compiler_gnu = yes; then
2890   GCC=yes
2891 else
2892   GCC=
2893 fi
2894 ac_test_CFLAGS=${CFLAGS+set}
2895 ac_save_CFLAGS=$CFLAGS
2896 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2897 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2898 if test "${ac_cv_prog_cc_g+set}" = set; then
2899   $as_echo_n "(cached) " >&6
2900 else
2901   ac_save_c_werror_flag=$ac_c_werror_flag
2902    ac_c_werror_flag=yes
2903    ac_cv_prog_cc_g=no
2904    CFLAGS="-g"
2905    cat >conftest.$ac_ext <<_ACEOF
2906 /* confdefs.h.  */
2907 _ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h.  */
2911
2912 int
2913 main ()
2914 {
2915
2916   ;
2917   return 0;
2918 }
2919 _ACEOF
2920 rm -f conftest.$ac_objext
2921 if { (ac_try="$ac_compile"
2922 case "(($ac_try" in
2923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924   *) ac_try_echo=$ac_try;;
2925 esac
2926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2927 $as_echo "$ac_try_echo") >&5
2928   (eval "$ac_compile") 2>conftest.er1
2929   ac_status=$?
2930   grep -v '^ *+' conftest.er1 >conftest.err
2931   rm -f conftest.er1
2932   cat conftest.err >&5
2933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); } && {
2935          test -z "$ac_c_werror_flag" ||
2936          test ! -s conftest.err
2937        } && test -s conftest.$ac_objext; then
2938   ac_cv_prog_cc_g=yes
2939 else
2940   $as_echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943         CFLAGS=""
2944       cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h.  */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h.  */
2950
2951 int
2952 main ()
2953 {
2954
2955   ;
2956   return 0;
2957 }
2958 _ACEOF
2959 rm -f conftest.$ac_objext
2960 if { (ac_try="$ac_compile"
2961 case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2966 $as_echo "$ac_try_echo") >&5
2967   (eval "$ac_compile") 2>conftest.er1
2968   ac_status=$?
2969   grep -v '^ *+' conftest.er1 >conftest.err
2970   rm -f conftest.er1
2971   cat conftest.err >&5
2972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); } && {
2974          test -z "$ac_c_werror_flag" ||
2975          test ! -s conftest.err
2976        } && test -s conftest.$ac_objext; then
2977   :
2978 else
2979   $as_echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982         ac_c_werror_flag=$ac_save_c_werror_flag
2983          CFLAGS="-g"
2984          cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h.  */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h.  */
2990
2991 int
2992 main ()
2993 {
2994
2995   ;
2996   return 0;
2997 }
2998 _ACEOF
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3001 case "(($ac_try" in
3002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003   *) ac_try_echo=$ac_try;;
3004 esac
3005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3006 $as_echo "$ac_try_echo") >&5
3007   (eval "$ac_compile") 2>conftest.er1
3008   ac_status=$?
3009   grep -v '^ *+' conftest.er1 >conftest.err
3010   rm -f conftest.er1
3011   cat conftest.err >&5
3012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); } && {
3014          test -z "$ac_c_werror_flag" ||
3015          test ! -s conftest.err
3016        } && test -s conftest.$ac_objext; then
3017   ac_cv_prog_cc_g=yes
3018 else
3019   $as_echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022
3023 fi
3024
3025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3026 fi
3027
3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3029 fi
3030
3031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032    ac_c_werror_flag=$ac_save_c_werror_flag
3033 fi
3034 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3035 $as_echo "$ac_cv_prog_cc_g" >&6; }
3036 if test "$ac_test_CFLAGS" = set; then
3037   CFLAGS=$ac_save_CFLAGS
3038 elif test $ac_cv_prog_cc_g = yes; then
3039   if test "$GCC" = yes; then
3040     CFLAGS="-g -O2"
3041   else
3042     CFLAGS="-g"
3043   fi
3044 else
3045   if test "$GCC" = yes; then
3046     CFLAGS="-O2"
3047   else
3048     CFLAGS=
3049   fi
3050 fi
3051 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3052 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3053 if test "${ac_cv_prog_cc_c89+set}" = set; then
3054   $as_echo_n "(cached) " >&6
3055 else
3056   ac_cv_prog_cc_c89=no
3057 ac_save_CC=$CC
3058 cat >conftest.$ac_ext <<_ACEOF
3059 /* confdefs.h.  */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h.  */
3064 #include <stdarg.h>
3065 #include <stdio.h>
3066 #include <sys/types.h>
3067 #include <sys/stat.h>
3068 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3069 struct buf { int x; };
3070 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3071 static char *e (p, i)
3072      char **p;
3073      int i;
3074 {
3075   return p[i];
3076 }
3077 static char *f (char * (*g) (char **, int), char **p, ...)
3078 {
3079   char *s;
3080   va_list v;
3081   va_start (v,p);
3082   s = g (p, va_arg (v,int));
3083   va_end (v);
3084   return s;
3085 }
3086
3087 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3088    function prototypes and stuff, but not '\xHH' hex character constants.
3089    These don't provoke an error unfortunately, instead are silently treated
3090    as 'x'.  The following induces an error, until -std is added to get
3091    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3092    array size at least.  It's necessary to write '\x00'==0 to get something
3093    that's true only with -std.  */
3094 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3095
3096 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3097    inside strings and character constants.  */
3098 #define FOO(x) 'x'
3099 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3100
3101 int test (int i, double x);
3102 struct s1 {int (*f) (int a);};
3103 struct s2 {int (*f) (double a);};
3104 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3105 int argc;
3106 char **argv;
3107 int
3108 main ()
3109 {
3110 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3111   ;
3112   return 0;
3113 }
3114 _ACEOF
3115 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3116         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3117 do
3118   CC="$ac_save_CC $ac_arg"
3119   rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3121 case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3126 $as_echo "$ac_try_echo") >&5
3127   (eval "$ac_compile") 2>conftest.er1
3128   ac_status=$?
3129   grep -v '^ *+' conftest.er1 >conftest.err
3130   rm -f conftest.er1
3131   cat conftest.err >&5
3132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); } && {
3134          test -z "$ac_c_werror_flag" ||
3135          test ! -s conftest.err
3136        } && test -s conftest.$ac_objext; then
3137   ac_cv_prog_cc_c89=$ac_arg
3138 else
3139   $as_echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142
3143 fi
3144
3145 rm -f core conftest.err conftest.$ac_objext
3146   test "x$ac_cv_prog_cc_c89" != "xno" && break
3147 done
3148 rm -f conftest.$ac_ext
3149 CC=$ac_save_CC
3150
3151 fi
3152 # AC_CACHE_VAL
3153 case "x$ac_cv_prog_cc_c89" in
3154   x)
3155     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3156 $as_echo "none needed" >&6; } ;;
3157   xno)
3158     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3159 $as_echo "unsupported" >&6; } ;;
3160   *)
3161     CC="$CC $ac_cv_prog_cc_c89"
3162     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3163 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3164 esac
3165
3166
3167 ac_ext=c
3168 ac_cpp='$CPP $CPPFLAGS'
3169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172
3173 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3174 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3175 if test "${ac_cv_path_SED+set}" = set; then
3176   $as_echo_n "(cached) " >&6
3177 else
3178             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3179      for ac_i in 1 2 3 4 5 6 7; do
3180        ac_script="$ac_script$as_nl$ac_script"
3181      done
3182      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3183      $as_unset ac_script || ac_script=
3184      if test -z "$SED"; then
3185   ac_path_SED_found=false
3186   # Loop through the user's path and test for each of PROGNAME-LIST
3187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192   for ac_prog in sed gsed; do
3193     for ac_exec_ext in '' $ac_executable_extensions; do
3194       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3195       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3196 # Check for GNU ac_path_SED and select it if it is found.
3197   # Check for GNU $ac_path_SED
3198 case `"$ac_path_SED" --version 2>&1` in
3199 *GNU*)
3200   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3201 *)
3202   ac_count=0
3203   $as_echo_n 0123456789 >"conftest.in"
3204   while :
3205   do
3206     cat "conftest.in" "conftest.in" >"conftest.tmp"
3207     mv "conftest.tmp" "conftest.in"
3208     cp "conftest.in" "conftest.nl"
3209     $as_echo '' >> "conftest.nl"
3210     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3211     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3212     ac_count=`expr $ac_count + 1`
3213     if test $ac_count -gt ${ac_path_SED_max-0}; then
3214       # Best one so far, save it but keep looking for a better one
3215       ac_cv_path_SED="$ac_path_SED"
3216       ac_path_SED_max=$ac_count
3217     fi
3218     # 10*(2^10) chars as input seems more than enough
3219     test $ac_count -gt 10 && break
3220   done
3221   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3222 esac
3223
3224       $ac_path_SED_found && break 3
3225     done
3226   done
3227 done
3228 IFS=$as_save_IFS
3229   if test -z "$ac_cv_path_SED"; then
3230     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3231 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3232    { (exit 1); exit 1; }; }
3233   fi
3234 else
3235   ac_cv_path_SED=$SED
3236 fi
3237
3238 fi
3239 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3240 $as_echo "$ac_cv_path_SED" >&6; }
3241  SED="$ac_cv_path_SED"
3242   rm -f conftest.sed
3243
3244 test -z "$SED" && SED=sed
3245 Xsed="$SED -e 1s/^X//"
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3258 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3259 if test "${ac_cv_path_GREP+set}" = set; then
3260   $as_echo_n "(cached) " >&6
3261 else
3262   if test -z "$GREP"; then
3263   ac_path_GREP_found=false
3264   # Loop through the user's path and test for each of PROGNAME-LIST
3265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3267 do
3268   IFS=$as_save_IFS
3269   test -z "$as_dir" && as_dir=.
3270   for ac_prog in grep ggrep; do
3271     for ac_exec_ext in '' $ac_executable_extensions; do
3272       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3273       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3274 # Check for GNU ac_path_GREP and select it if it is found.
3275   # Check for GNU $ac_path_GREP
3276 case `"$ac_path_GREP" --version 2>&1` in
3277 *GNU*)
3278   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3279 *)
3280   ac_count=0
3281   $as_echo_n 0123456789 >"conftest.in"
3282   while :
3283   do
3284     cat "conftest.in" "conftest.in" >"conftest.tmp"
3285     mv "conftest.tmp" "conftest.in"
3286     cp "conftest.in" "conftest.nl"
3287     $as_echo 'GREP' >> "conftest.nl"
3288     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3289     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3290     ac_count=`expr $ac_count + 1`
3291     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3292       # Best one so far, save it but keep looking for a better one
3293       ac_cv_path_GREP="$ac_path_GREP"
3294       ac_path_GREP_max=$ac_count
3295     fi
3296     # 10*(2^10) chars as input seems more than enough
3297     test $ac_count -gt 10 && break
3298   done
3299   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3300 esac
3301
3302       $ac_path_GREP_found && break 3
3303     done
3304   done
3305 done
3306 IFS=$as_save_IFS
3307   if test -z "$ac_cv_path_GREP"; then
3308     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3309 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3310    { (exit 1); exit 1; }; }
3311   fi
3312 else
3313   ac_cv_path_GREP=$GREP
3314 fi
3315
3316 fi
3317 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3318 $as_echo "$ac_cv_path_GREP" >&6; }
3319  GREP="$ac_cv_path_GREP"
3320
3321
3322 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3323 $as_echo_n "checking for egrep... " >&6; }
3324 if test "${ac_cv_path_EGREP+set}" = set; then
3325   $as_echo_n "(cached) " >&6
3326 else
3327   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3328    then ac_cv_path_EGREP="$GREP -E"
3329    else
3330      if test -z "$EGREP"; then
3331   ac_path_EGREP_found=false
3332   # Loop through the user's path and test for each of PROGNAME-LIST
3333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3335 do
3336   IFS=$as_save_IFS
3337   test -z "$as_dir" && as_dir=.
3338   for ac_prog in egrep; do
3339     for ac_exec_ext in '' $ac_executable_extensions; do
3340       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3341       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3342 # Check for GNU ac_path_EGREP and select it if it is found.
3343   # Check for GNU $ac_path_EGREP
3344 case `"$ac_path_EGREP" --version 2>&1` in
3345 *GNU*)
3346   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3347 *)
3348   ac_count=0
3349   $as_echo_n 0123456789 >"conftest.in"
3350   while :
3351   do
3352     cat "conftest.in" "conftest.in" >"conftest.tmp"
3353     mv "conftest.tmp" "conftest.in"
3354     cp "conftest.in" "conftest.nl"
3355     $as_echo 'EGREP' >> "conftest.nl"
3356     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3357     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3358     ac_count=`expr $ac_count + 1`
3359     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3360       # Best one so far, save it but keep looking for a better one
3361       ac_cv_path_EGREP="$ac_path_EGREP"
3362       ac_path_EGREP_max=$ac_count
3363     fi
3364     # 10*(2^10) chars as input seems more than enough
3365     test $ac_count -gt 10 && break
3366   done
3367   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3368 esac
3369
3370       $ac_path_EGREP_found && break 3
3371     done
3372   done
3373 done
3374 IFS=$as_save_IFS
3375   if test -z "$ac_cv_path_EGREP"; then
3376     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3377 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3378    { (exit 1); exit 1; }; }
3379   fi
3380 else
3381   ac_cv_path_EGREP=$EGREP
3382 fi
3383
3384    fi
3385 fi
3386 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3387 $as_echo "$ac_cv_path_EGREP" >&6; }
3388  EGREP="$ac_cv_path_EGREP"
3389
3390
3391 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3392 $as_echo_n "checking for fgrep... " >&6; }
3393 if test "${ac_cv_path_FGREP+set}" = set; then
3394   $as_echo_n "(cached) " >&6
3395 else
3396   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3397    then ac_cv_path_FGREP="$GREP -F"
3398    else
3399      if test -z "$FGREP"; then
3400   ac_path_FGREP_found=false
3401   # Loop through the user's path and test for each of PROGNAME-LIST
3402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3404 do
3405   IFS=$as_save_IFS
3406   test -z "$as_dir" && as_dir=.
3407   for ac_prog in fgrep; do
3408     for ac_exec_ext in '' $ac_executable_extensions; do
3409       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3410       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3411 # Check for GNU ac_path_FGREP and select it if it is found.
3412   # Check for GNU $ac_path_FGREP
3413 case `"$ac_path_FGREP" --version 2>&1` in
3414 *GNU*)
3415   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3416 *)
3417   ac_count=0
3418   $as_echo_n 0123456789 >"conftest.in"
3419   while :
3420   do
3421     cat "conftest.in" "conftest.in" >"conftest.tmp"
3422     mv "conftest.tmp" "conftest.in"
3423     cp "conftest.in" "conftest.nl"
3424     $as_echo 'FGREP' >> "conftest.nl"
3425     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3426     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3427     ac_count=`expr $ac_count + 1`
3428     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3429       # Best one so far, save it but keep looking for a better one
3430       ac_cv_path_FGREP="$ac_path_FGREP"
3431       ac_path_FGREP_max=$ac_count
3432     fi
3433     # 10*(2^10) chars as input seems more than enough
3434     test $ac_count -gt 10 && break
3435   done
3436   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3437 esac
3438
3439       $ac_path_FGREP_found && break 3
3440     done
3441   done
3442 done
3443 IFS=$as_save_IFS
3444   if test -z "$ac_cv_path_FGREP"; then
3445     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3446 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3447    { (exit 1); exit 1; }; }
3448   fi
3449 else
3450   ac_cv_path_FGREP=$FGREP
3451 fi
3452
3453    fi
3454 fi
3455 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3456 $as_echo "$ac_cv_path_FGREP" >&6; }
3457  FGREP="$ac_cv_path_FGREP"
3458
3459
3460 test -z "$GREP" && GREP=grep
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480 # Check whether --with-gnu-ld was given.
3481 if test "${with_gnu_ld+set}" = set; then
3482   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3483 else
3484   with_gnu_ld=no
3485 fi
3486
3487 ac_prog=ld
3488 if test "$GCC" = yes; then
3489   # Check if gcc -print-prog-name=ld gives a path.
3490   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3491 $as_echo_n "checking for ld used by $CC... " >&6; }
3492   case $host in
3493   *-*-mingw*)
3494     # gcc leaves a trailing carriage return which upsets mingw
3495     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3496   *)
3497     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3498   esac
3499   case $ac_prog in
3500     # Accept absolute paths.
3501     [\\/]* | ?:[\\/]*)
3502       re_direlt='/[^/][^/]*/\.\./'
3503       # Canonicalize the pathname of ld
3504       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3505       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3506         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3507       done
3508       test -z "$LD" && LD="$ac_prog"
3509       ;;
3510   "")
3511     # If it fails, then pretend we aren't using GCC.
3512     ac_prog=ld
3513     ;;
3514   *)
3515     # If it is relative, then search for the first ld in PATH.
3516     with_gnu_ld=unknown
3517     ;;
3518   esac
3519 elif test "$with_gnu_ld" = yes; then
3520   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3521 $as_echo_n "checking for GNU ld... " >&6; }
3522 else
3523   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3524 $as_echo_n "checking for non-GNU ld... " >&6; }
3525 fi
3526 if test "${lt_cv_path_LD+set}" = set; then
3527   $as_echo_n "(cached) " >&6
3528 else
3529   if test -z "$LD"; then
3530   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3531   for ac_dir in $PATH; do
3532     IFS="$lt_save_ifs"
3533     test -z "$ac_dir" && ac_dir=.
3534     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3535       lt_cv_path_LD="$ac_dir/$ac_prog"
3536       # Check to see if the program is GNU ld.  I'd rather use --version,
3537       # but apparently some variants of GNU ld only accept -v.
3538       # Break only if it was the GNU/non-GNU ld that we prefer.
3539       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3540       *GNU* | *'with BFD'*)
3541         test "$with_gnu_ld" != no && break
3542         ;;
3543       *)
3544         test "$with_gnu_ld" != yes && break
3545         ;;
3546       esac
3547     fi
3548   done
3549   IFS="$lt_save_ifs"
3550 else
3551   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3552 fi
3553 fi
3554
3555 LD="$lt_cv_path_LD"
3556 if test -n "$LD"; then
3557   { $as_echo "$as_me:$LINENO: result: $LD" >&5
3558 $as_echo "$LD" >&6; }
3559 else
3560   { $as_echo "$as_me:$LINENO: result: no" >&5
3561 $as_echo "no" >&6; }
3562 fi
3563 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3564 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3565    { (exit 1); exit 1; }; }
3566 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3567 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3568 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3569   $as_echo_n "(cached) " >&6
3570 else
3571   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3572 case `$LD -v 2>&1 </dev/null` in
3573 *GNU* | *'with BFD'*)
3574   lt_cv_prog_gnu_ld=yes
3575   ;;
3576 *)
3577   lt_cv_prog_gnu_ld=no
3578   ;;
3579 esac
3580 fi
3581 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3582 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3583 with_gnu_ld=$lt_cv_prog_gnu_ld
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3594 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3595 if test "${lt_cv_path_NM+set}" = set; then
3596   $as_echo_n "(cached) " >&6
3597 else
3598   if test -n "$NM"; then
3599   # Let the user override the test.
3600   lt_cv_path_NM="$NM"
3601 else
3602   lt_nm_to_check="${ac_tool_prefix}nm"
3603   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3604     lt_nm_to_check="$lt_nm_to_check nm"
3605   fi
3606   for lt_tmp_nm in $lt_nm_to_check; do
3607     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3608     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3609       IFS="$lt_save_ifs"
3610       test -z "$ac_dir" && ac_dir=.
3611       tmp_nm="$ac_dir/$lt_tmp_nm"
3612       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3613         # Check to see if the nm accepts a BSD-compat flag.
3614         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3615         #   nm: unknown option "B" ignored
3616         # Tru64's nm complains that /dev/null is an invalid object file
3617         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3618         */dev/null* | *'Invalid file or object type'*)
3619           lt_cv_path_NM="$tmp_nm -B"
3620           break
3621           ;;
3622         *)
3623           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3624           */dev/null*)
3625             lt_cv_path_NM="$tmp_nm -p"
3626             break
3627             ;;
3628           *)
3629             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3630             continue # so that we can try to find one that supports BSD flags
3631             ;;
3632           esac
3633           ;;
3634         esac
3635       fi
3636     done
3637     IFS="$lt_save_ifs"
3638   done
3639   : ${lt_cv_path_NM=no}
3640 fi
3641 fi
3642 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3643 $as_echo "$lt_cv_path_NM" >&6; }
3644 if test "$lt_cv_path_NM" != "no"; then
3645   NM="$lt_cv_path_NM"
3646 else
3647   # Didn't find any BSD compatible name lister, look for dumpbin.
3648   if test -n "$ac_tool_prefix"; then
3649   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3650   do
3651     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3653 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3656   $as_echo_n "(cached) " >&6
3657 else
3658   if test -n "$DUMPBIN"; then
3659   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664   IFS=$as_save_IFS
3665   test -z "$as_dir" && as_dir=.
3666   for ac_exec_ext in '' $ac_executable_extensions; do
3667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3669     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670     break 2
3671   fi
3672 done
3673 done
3674 IFS=$as_save_IFS
3675
3676 fi
3677 fi
3678 DUMPBIN=$ac_cv_prog_DUMPBIN
3679 if test -n "$DUMPBIN"; then
3680   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3681 $as_echo "$DUMPBIN" >&6; }
3682 else
3683   { $as_echo "$as_me:$LINENO: result: no" >&5
3684 $as_echo "no" >&6; }
3685 fi
3686
3687
3688     test -n "$DUMPBIN" && break
3689   done
3690 fi
3691 if test -z "$DUMPBIN"; then
3692   ac_ct_DUMPBIN=$DUMPBIN
3693   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3694 do
3695   # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3700   $as_echo_n "(cached) " >&6
3701 else
3702   if test -n "$ac_ct_DUMPBIN"; then
3703   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708   IFS=$as_save_IFS
3709   test -z "$as_dir" && as_dir=.
3710   for ac_exec_ext in '' $ac_executable_extensions; do
3711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3713     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3714     break 2
3715   fi
3716 done
3717 done
3718 IFS=$as_save_IFS
3719
3720 fi
3721 fi
3722 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3723 if test -n "$ac_ct_DUMPBIN"; then
3724   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3725 $as_echo "$ac_ct_DUMPBIN" >&6; }
3726 else
3727   { $as_echo "$as_me:$LINENO: result: no" >&5
3728 $as_echo "no" >&6; }
3729 fi
3730
3731
3732   test -n "$ac_ct_DUMPBIN" && break
3733 done
3734
3735   if test "x$ac_ct_DUMPBIN" = x; then
3736     DUMPBIN=":"
3737   else
3738     case $cross_compiling:$ac_tool_warned in
3739 yes:)
3740 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3742 ac_tool_warned=yes ;;
3743 esac
3744     DUMPBIN=$ac_ct_DUMPBIN
3745   fi
3746 fi
3747
3748
3749   if test "$DUMPBIN" != ":"; then
3750     NM="$DUMPBIN"
3751   fi
3752 fi
3753 test -z "$NM" && NM=nm
3754
3755
3756
3757
3758
3759
3760 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3761 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3762 if test "${lt_cv_nm_interface+set}" = set; then
3763   $as_echo_n "(cached) " >&6
3764 else
3765   lt_cv_nm_interface="BSD nm"
3766   echo "int some_variable = 0;" > conftest.$ac_ext
3767   (eval echo "\"\$as_me:3767: $ac_compile\"" >&5)
3768   (eval "$ac_compile" 2>conftest.err)
3769   cat conftest.err >&5
3770   (eval echo "\"\$as_me:3770: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3771   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3772   cat conftest.err >&5
3773   (eval echo "\"\$as_me:3773: output\"" >&5)
3774   cat conftest.out >&5
3775   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3776     lt_cv_nm_interface="MS dumpbin"
3777   fi
3778   rm -f conftest*
3779 fi
3780 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3781 $as_echo "$lt_cv_nm_interface" >&6; }
3782
3783 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3784 $as_echo_n "checking whether ln -s works... " >&6; }
3785 LN_S=$as_ln_s
3786 if test "$LN_S" = "ln -s"; then
3787   { $as_echo "$as_me:$LINENO: result: yes" >&5
3788 $as_echo "yes" >&6; }
3789 else
3790   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3791 $as_echo "no, using $LN_S" >&6; }
3792 fi
3793
3794 # find the maximum length of command line arguments
3795 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3796 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3797 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3798   $as_echo_n "(cached) " >&6
3799 else
3800     i=0
3801   teststring="ABCD"
3802
3803   case $build_os in
3804   msdosdjgpp*)
3805     # On DJGPP, this test can blow up pretty badly due to problems in libc
3806     # (any single argument exceeding 2000 bytes causes a buffer overrun
3807     # during glob expansion).  Even if it were fixed, the result of this
3808     # check would be larger than it should be.
3809     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3810     ;;
3811
3812   gnu*)
3813     # Under GNU Hurd, this test is not required because there is
3814     # no limit to the length of command line arguments.
3815     # Libtool will interpret -1 as no limit whatsoever
3816     lt_cv_sys_max_cmd_len=-1;
3817     ;;
3818
3819   cygwin* | mingw* | cegcc*)
3820     # On Win9x/ME, this test blows up -- it succeeds, but takes
3821     # about 5 minutes as the teststring grows exponentially.
3822     # Worse, since 9x/ME are not pre-emptively multitasking,
3823     # you end up with a "frozen" computer, even though with patience
3824     # the test eventually succeeds (with a max line length of 256k).
3825     # Instead, let's just punt: use the minimum linelength reported by
3826     # all of the supported platforms: 8192 (on NT/2K/XP).
3827     lt_cv_sys_max_cmd_len=8192;
3828     ;;
3829
3830   beos*)
3831     # On BeOS, this test takes a really really long time.
3832     # So we just punt and use a minimum line length of 8192.
3833     lt_cv_sys_max_cmd_len=8192;
3834     ;;
3835
3836   amigaos*)
3837     # On AmigaOS with pdksh, this test takes hours, literally.
3838     # So we just punt and use a minimum line length of 8192.
3839     lt_cv_sys_max_cmd_len=8192;
3840     ;;
3841
3842   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3843     # This has been around since 386BSD, at least.  Likely further.
3844     if test -x /sbin/sysctl; then
3845       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3846     elif test -x /usr/sbin/sysctl; then
3847       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3848     else
3849       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3850     fi
3851     # And add a safety zone
3852     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3853     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3854     ;;
3855
3856   interix*)
3857     # We know the value 262144 and hardcode it with a safety zone (like BSD)
3858     lt_cv_sys_max_cmd_len=196608
3859     ;;
3860
3861   osf*)
3862     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3863     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3864     # nice to cause kernel panics so lets avoid the loop below.
3865     # First set a reasonable default.
3866     lt_cv_sys_max_cmd_len=16384
3867     #
3868     if test -x /sbin/sysconfig; then
3869       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3870         *1*) lt_cv_sys_max_cmd_len=-1 ;;
3871       esac
3872     fi
3873     ;;
3874   sco3.2v5*)
3875     lt_cv_sys_max_cmd_len=102400
3876     ;;
3877   sysv5* | sco5v6* | sysv4.2uw2*)
3878     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3879     if test -n "$kargmax"; then
3880       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3881     else
3882       lt_cv_sys_max_cmd_len=32768
3883     fi
3884     ;;
3885   *)
3886     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3887     if test -n "$lt_cv_sys_max_cmd_len"; then
3888       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3889       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3890     else
3891       # Make teststring a little bigger before we do anything with it.
3892       # a 1K string should be a reasonable start.
3893       for i in 1 2 3 4 5 6 7 8 ; do
3894         teststring=$teststring$teststring
3895       done
3896       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3897       # If test is not a shell built-in, we'll probably end up computing a
3898       # maximum length that is only half of the actual maximum length, but
3899       # we can't tell.
3900       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3901                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3902               test $i != 17 # 1/2 MB should be enough
3903       do
3904         i=`expr $i + 1`
3905         teststring=$teststring$teststring
3906       done
3907       # Only check the string length outside the loop.
3908       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3909       teststring=
3910       # Add a significant safety factor because C++ compilers can tack on
3911       # massive amounts of additional arguments before passing them to the
3912       # linker.  It appears as though 1/2 is a usable value.
3913       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3914     fi
3915     ;;
3916   esac
3917
3918 fi
3919
3920 if test -n $lt_cv_sys_max_cmd_len ; then
3921   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3922 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3923 else
3924   { $as_echo "$as_me:$LINENO: result: none" >&5
3925 $as_echo "none" >&6; }
3926 fi
3927 max_cmd_len=$lt_cv_sys_max_cmd_len
3928
3929
3930
3931
3932
3933
3934 : ${CP="cp -f"}
3935 : ${MV="mv -f"}
3936 : ${RM="rm -f"}
3937
3938 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3939 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3940 # Try some XSI features
3941 xsi_shell=no
3942 ( _lt_dummy="a/b/c"
3943   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3944       = c,a/b,, \
3945     && eval 'test $(( 1 + 1 )) -eq 2 \
3946     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3947   && xsi_shell=yes
3948 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
3949 $as_echo "$xsi_shell" >&6; }
3950
3951
3952 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3953 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3954 lt_shell_append=no
3955 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3956     >/dev/null 2>&1 \
3957   && lt_shell_append=yes
3958 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3959 $as_echo "$lt_shell_append" >&6; }
3960
3961
3962 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3963   lt_unset=unset
3964 else
3965   lt_unset=false
3966 fi
3967
3968
3969
3970
3971
3972 # test EBCDIC or ASCII
3973 case `echo X|tr X '\101'` in
3974  A) # ASCII based system
3975     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3976   lt_SP2NL='tr \040 \012'
3977   lt_NL2SP='tr \015\012 \040\040'
3978   ;;
3979  *) # EBCDIC based system
3980   lt_SP2NL='tr \100 \n'
3981   lt_NL2SP='tr \r\n \100\100'
3982   ;;
3983 esac
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3994 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3995 if test "${lt_cv_ld_reload_flag+set}" = set; then
3996   $as_echo_n "(cached) " >&6
3997 else
3998   lt_cv_ld_reload_flag='-r'
3999 fi
4000 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4001 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4002 reload_flag=$lt_cv_ld_reload_flag
4003 case $reload_flag in
4004 "" | " "*) ;;
4005 *) reload_flag=" $reload_flag" ;;
4006 esac
4007 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4008 case $host_os in
4009   darwin*)
4010     if test "$GCC" = yes; then
4011       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4012     else
4013       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4014     fi
4015     ;;
4016 esac
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026 if test -n "$ac_tool_prefix"; then
4027   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4028 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4029 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4030 $as_echo_n "checking for $ac_word... " >&6; }
4031 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4032   $as_echo_n "(cached) " >&6
4033 else
4034   if test -n "$OBJDUMP"; then
4035   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4036 else
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH
4039 do
4040   IFS=$as_save_IFS
4041   test -z "$as_dir" && as_dir=.
4042   for ac_exec_ext in '' $ac_executable_extensions; do
4043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4044     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4045     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4046     break 2
4047   fi
4048 done
4049 done
4050 IFS=$as_save_IFS
4051
4052 fi
4053 fi
4054 OBJDUMP=$ac_cv_prog_OBJDUMP
4055 if test -n "$OBJDUMP"; then
4056   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4057 $as_echo "$OBJDUMP" >&6; }
4058 else
4059   { $as_echo "$as_me:$LINENO: result: no" >&5
4060 $as_echo "no" >&6; }
4061 fi
4062
4063
4064 fi
4065 if test -z "$ac_cv_prog_OBJDUMP"; then
4066   ac_ct_OBJDUMP=$OBJDUMP
4067   # Extract the first word of "objdump", so it can be a program name with args.
4068 set dummy objdump; ac_word=$2
4069 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4070 $as_echo_n "checking for $ac_word... " >&6; }
4071 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4072   $as_echo_n "(cached) " >&6
4073 else
4074   if test -n "$ac_ct_OBJDUMP"; then
4075   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4076 else
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4079 do
4080   IFS=$as_save_IFS
4081   test -z "$as_dir" && as_dir=.
4082   for ac_exec_ext in '' $ac_executable_extensions; do
4083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4084     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4085     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086     break 2
4087   fi
4088 done
4089 done
4090 IFS=$as_save_IFS
4091
4092 fi
4093 fi
4094 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4095 if test -n "$ac_ct_OBJDUMP"; then
4096   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4097 $as_echo "$ac_ct_OBJDUMP" >&6; }
4098 else
4099   { $as_echo "$as_me:$LINENO: result: no" >&5
4100 $as_echo "no" >&6; }
4101 fi
4102
4103   if test "x$ac_ct_OBJDUMP" = x; then
4104     OBJDUMP="false"
4105   else
4106     case $cross_compiling:$ac_tool_warned in
4107 yes:)
4108 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4110 ac_tool_warned=yes ;;
4111 esac
4112     OBJDUMP=$ac_ct_OBJDUMP
4113   fi
4114 else
4115   OBJDUMP="$ac_cv_prog_OBJDUMP"
4116 fi
4117
4118 test -z "$OBJDUMP" && OBJDUMP=objdump
4119
4120
4121
4122
4123
4124
4125 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4126 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4127 if test "${lt_cv_deplibs_check_method+set}" = set; then
4128   $as_echo_n "(cached) " >&6
4129 else
4130   lt_cv_file_magic_cmd='$MAGIC_CMD'
4131 lt_cv_file_magic_test_file=
4132 lt_cv_deplibs_check_method='unknown'
4133 # Need to set the preceding variable on all platforms that support
4134 # interlibrary dependencies.
4135 # 'none' -- dependencies not supported.
4136 # `unknown' -- same as none, but documents that we really don't know.
4137 # 'pass_all' -- all dependencies passed with no checks.
4138 # 'test_compile' -- check by making test program.
4139 # 'file_magic [[regex]]' -- check by looking for files in library path
4140 # which responds to the $file_magic_cmd with a given extended regex.
4141 # If you have `file' or equivalent on your system and you're not sure
4142 # whether `pass_all' will *always* work, you probably want this one.
4143
4144 case $host_os in
4145 aix[4-9]*)
4146   lt_cv_deplibs_check_method=pass_all
4147   ;;
4148
4149 beos*)
4150   lt_cv_deplibs_check_method=pass_all
4151   ;;
4152
4153 bsdi[45]*)
4154   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4155   lt_cv_file_magic_cmd='/usr/bin/file -L'
4156   lt_cv_file_magic_test_file=/shlib/libc.so
4157   ;;
4158
4159 cygwin*)
4160   # func_win32_libid is a shell function defined in ltmain.sh
4161   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4162   lt_cv_deplibs_check_method=pass_all
4163   lt_cv_file_magic_cmd='func_win32_libid'
4164   ;;
4165
4166 mingw* | pw32*)
4167   # Base MSYS/MinGW do not provide the 'file' command needed by
4168   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4169   # unless we find 'file', for example because we are cross-compiling.
4170   if ( file / ) >/dev/null 2>&1; then
4171     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4172     lt_cv_file_magic_cmd='func_win32_libid'
4173   else
4174     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4175     lt_cv_file_magic_cmd='$OBJDUMP -f'
4176   fi
4177   lt_cv_deplibs_check_method=pass_all
4178   ;;
4179
4180 cegcc)
4181   # use the weaker test based on 'objdump'. See mingw*.
4182   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4183   lt_cv_file_magic_cmd='$OBJDUMP -f'
4184   ;;
4185
4186 darwin* | rhapsody*)
4187   lt_cv_deplibs_check_method=pass_all
4188   ;;
4189
4190 freebsd* | dragonfly*)
4191   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4192     case $host_cpu in
4193     i*86 )
4194       # Not sure whether the presence of OpenBSD here was a mistake.
4195       # Let's accept both of them until this is cleared up.
4196       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4197       lt_cv_file_magic_cmd=/usr/bin/file
4198       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4199       ;;
4200     esac
4201   else
4202     lt_cv_deplibs_check_method=pass_all
4203   fi
4204   ;;
4205
4206 gnu*)
4207   lt_cv_deplibs_check_method=pass_all
4208   ;;
4209
4210 hpux10.20* | hpux11*)
4211   lt_cv_file_magic_cmd=/usr/bin/file
4212   case $host_cpu in
4213   ia64*)
4214     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4215     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4216     ;;
4217   hppa*64*)
4218     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]'
4219     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4220     ;;
4221   *)
4222     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4223     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4224     ;;
4225   esac
4226   ;;
4227
4228 interix[3-9]*)
4229   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4230   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4231   ;;
4232
4233 irix5* | irix6* | nonstopux*)
4234   case $LD in
4235   *-32|*"-32 ") libmagic=32-bit;;
4236   *-n32|*"-n32 ") libmagic=N32;;
4237   *-64|*"-64 ") libmagic=64-bit;;
4238   *) libmagic=never-match;;
4239   esac
4240   lt_cv_deplibs_check_method=pass_all
4241   ;;
4242
4243 # This must be Linux ELF.
4244 linux* | k*bsd*-gnu)
4245   lt_cv_deplibs_check_method=pass_all
4246   ;;
4247
4248 netbsd*)
4249   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4250     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4251   else
4252     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4253   fi
4254   ;;
4255
4256 newos6*)
4257   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4258   lt_cv_file_magic_cmd=/usr/bin/file
4259   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4260   ;;
4261
4262 *nto* | *qnx*)
4263   lt_cv_deplibs_check_method=pass_all
4264   ;;
4265
4266 openbsd*)
4267   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4268     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4269   else
4270     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4271   fi
4272   ;;
4273
4274 osf3* | osf4* | osf5*)
4275   lt_cv_deplibs_check_method=pass_all
4276   ;;
4277
4278 rdos*)
4279   lt_cv_deplibs_check_method=pass_all
4280   ;;
4281
4282 solaris*)
4283   lt_cv_deplibs_check_method=pass_all
4284   ;;
4285
4286 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4287   lt_cv_deplibs_check_method=pass_all
4288   ;;
4289
4290 sysv4 | sysv4.3*)
4291   case $host_vendor in
4292   motorola)
4293     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]'
4294     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4295     ;;
4296   ncr)
4297     lt_cv_deplibs_check_method=pass_all
4298     ;;
4299   sequent)
4300     lt_cv_file_magic_cmd='/bin/file'
4301     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4302     ;;
4303   sni)
4304     lt_cv_file_magic_cmd='/bin/file'
4305     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4306     lt_cv_file_magic_test_file=/lib/libc.so
4307     ;;
4308   siemens)
4309     lt_cv_deplibs_check_method=pass_all
4310     ;;
4311   pc)
4312     lt_cv_deplibs_check_method=pass_all
4313     ;;
4314   esac
4315   ;;
4316
4317 tpf*)
4318   lt_cv_deplibs_check_method=pass_all
4319   ;;
4320 esac
4321
4322 fi
4323 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4324 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4325 file_magic_cmd=$lt_cv_file_magic_cmd
4326 deplibs_check_method=$lt_cv_deplibs_check_method
4327 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340 if test -n "$ac_tool_prefix"; then
4341   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4342 set dummy ${ac_tool_prefix}ar; ac_word=$2
4343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4344 $as_echo_n "checking for $ac_word... " >&6; }
4345 if test "${ac_cv_prog_AR+set}" = set; then
4346   $as_echo_n "(cached) " >&6
4347 else
4348   if test -n "$AR"; then
4349   ac_cv_prog_AR="$AR" # Let the user override the test.
4350 else
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4353 do
4354   IFS=$as_save_IFS
4355   test -z "$as_dir" && as_dir=.
4356   for ac_exec_ext in '' $ac_executable_extensions; do
4357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4358     ac_cv_prog_AR="${ac_tool_prefix}ar"
4359     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4360     break 2
4361   fi
4362 done
4363 done
4364 IFS=$as_save_IFS
4365
4366 fi
4367 fi
4368 AR=$ac_cv_prog_AR
4369 if test -n "$AR"; then
4370   { $as_echo "$as_me:$LINENO: result: $AR" >&5
4371 $as_echo "$AR" >&6; }
4372 else
4373   { $as_echo "$as_me:$LINENO: result: no" >&5
4374 $as_echo "no" >&6; }
4375 fi
4376
4377
4378 fi
4379 if test -z "$ac_cv_prog_AR"; then
4380   ac_ct_AR=$AR
4381   # Extract the first word of "ar", so it can be a program name with args.
4382 set dummy ar; ac_word=$2
4383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4386   $as_echo_n "(cached) " >&6
4387 else
4388   if test -n "$ac_ct_AR"; then
4389   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4390 else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH
4393 do
4394   IFS=$as_save_IFS
4395   test -z "$as_dir" && as_dir=.
4396   for ac_exec_ext in '' $ac_executable_extensions; do
4397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4398     ac_cv_prog_ac_ct_AR="ar"
4399     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400     break 2
4401   fi
4402 done
4403 done
4404 IFS=$as_save_IFS
4405
4406 fi
4407 fi
4408 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4409 if test -n "$ac_ct_AR"; then
4410   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4411 $as_echo "$ac_ct_AR" >&6; }
4412 else
4413   { $as_echo "$as_me:$LINENO: result: no" >&5
4414 $as_echo "no" >&6; }
4415 fi
4416
4417   if test "x$ac_ct_AR" = x; then
4418     AR="false"
4419   else
4420     case $cross_compiling:$ac_tool_warned in
4421 yes:)
4422 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424 ac_tool_warned=yes ;;
4425 esac
4426     AR=$ac_ct_AR
4427   fi
4428 else
4429   AR="$ac_cv_prog_AR"
4430 fi
4431
4432 test -z "$AR" && AR=ar
4433 test -z "$AR_FLAGS" && AR_FLAGS=cru
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445 if test -n "$ac_tool_prefix"; then
4446   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4447 set dummy ${ac_tool_prefix}strip; ac_word=$2
4448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4449 $as_echo_n "checking for $ac_word... " >&6; }
4450 if test "${ac_cv_prog_STRIP+set}" = set; then
4451   $as_echo_n "(cached) " >&6
4452 else
4453   if test -n "$STRIP"; then
4454   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4455 else
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459   IFS=$as_save_IFS
4460   test -z "$as_dir" && as_dir=.
4461   for ac_exec_ext in '' $ac_executable_extensions; do
4462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4464     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465     break 2
4466   fi
4467 done
4468 done
4469 IFS=$as_save_IFS
4470
4471 fi
4472 fi
4473 STRIP=$ac_cv_prog_STRIP
4474 if test -n "$STRIP"; then
4475   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4476 $as_echo "$STRIP" >&6; }
4477 else
4478   { $as_echo "$as_me:$LINENO: result: no" >&5
4479 $as_echo "no" >&6; }
4480 fi
4481
4482
4483 fi
4484 if test -z "$ac_cv_prog_STRIP"; then
4485   ac_ct_STRIP=$STRIP
4486   # Extract the first word of "strip", so it can be a program name with args.
4487 set dummy strip; ac_word=$2
4488 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4489 $as_echo_n "checking for $ac_word... " >&6; }
4490 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4491   $as_echo_n "(cached) " >&6
4492 else
4493   if test -n "$ac_ct_STRIP"; then
4494   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4495 else
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4498 do
4499   IFS=$as_save_IFS
4500   test -z "$as_dir" && as_dir=.
4501   for ac_exec_ext in '' $ac_executable_extensions; do
4502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503     ac_cv_prog_ac_ct_STRIP="strip"
4504     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505     break 2
4506   fi
4507 done
4508 done
4509 IFS=$as_save_IFS
4510
4511 fi
4512 fi
4513 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4514 if test -n "$ac_ct_STRIP"; then
4515   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4516 $as_echo "$ac_ct_STRIP" >&6; }
4517 else
4518   { $as_echo "$as_me:$LINENO: result: no" >&5
4519 $as_echo "no" >&6; }
4520 fi
4521
4522   if test "x$ac_ct_STRIP" = x; then
4523     STRIP=":"
4524   else
4525     case $cross_compiling:$ac_tool_warned in
4526 yes:)
4527 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4529 ac_tool_warned=yes ;;
4530 esac
4531     STRIP=$ac_ct_STRIP
4532   fi
4533 else
4534   STRIP="$ac_cv_prog_STRIP"
4535 fi
4536
4537 test -z "$STRIP" && STRIP=:
4538
4539
4540
4541
4542
4543
4544 if test -n "$ac_tool_prefix"; then
4545   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4546 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4547 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if test "${ac_cv_prog_RANLIB+set}" = set; then
4550   $as_echo_n "(cached) " >&6
4551 else
4552   if test -n "$RANLIB"; then
4553   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558   IFS=$as_save_IFS
4559   test -z "$as_dir" && as_dir=.
4560   for ac_exec_ext in '' $ac_executable_extensions; do
4561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4562     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4563     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564     break 2
4565   fi
4566 done
4567 done
4568 IFS=$as_save_IFS
4569
4570 fi
4571 fi
4572 RANLIB=$ac_cv_prog_RANLIB
4573 if test -n "$RANLIB"; then
4574   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4575 $as_echo "$RANLIB" >&6; }
4576 else
4577   { $as_echo "$as_me:$LINENO: result: no" >&5
4578 $as_echo "no" >&6; }
4579 fi
4580
4581
4582 fi
4583 if test -z "$ac_cv_prog_RANLIB"; then
4584   ac_ct_RANLIB=$RANLIB
4585   # Extract the first word of "ranlib", so it can be a program name with args.
4586 set dummy ranlib; ac_word=$2
4587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4590   $as_echo_n "(cached) " >&6
4591 else
4592   if test -n "$ac_ct_RANLIB"; then
4593   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4594 else
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598   IFS=$as_save_IFS
4599   test -z "$as_dir" && as_dir=.
4600   for ac_exec_ext in '' $ac_executable_extensions; do
4601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602     ac_cv_prog_ac_ct_RANLIB="ranlib"
4603     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604     break 2
4605   fi
4606 done
4607 done
4608 IFS=$as_save_IFS
4609
4610 fi
4611 fi
4612 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4613 if test -n "$ac_ct_RANLIB"; then
4614   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4615 $as_echo "$ac_ct_RANLIB" >&6; }
4616 else
4617   { $as_echo "$as_me:$LINENO: result: no" >&5
4618 $as_echo "no" >&6; }
4619 fi
4620
4621   if test "x$ac_ct_RANLIB" = x; then
4622     RANLIB=":"
4623   else
4624     case $cross_compiling:$ac_tool_warned in
4625 yes:)
4626 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628 ac_tool_warned=yes ;;
4629 esac
4630     RANLIB=$ac_ct_RANLIB
4631   fi
4632 else
4633   RANLIB="$ac_cv_prog_RANLIB"
4634 fi
4635
4636 test -z "$RANLIB" && RANLIB=:
4637
4638
4639
4640
4641
4642
4643 # Determine commands to create old-style static archives.
4644 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4645 old_postinstall_cmds='chmod 644 $oldlib'
4646 old_postuninstall_cmds=
4647
4648 if test -n "$RANLIB"; then
4649   case $host_os in
4650   openbsd*)
4651     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4652     ;;
4653   *)
4654     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4655     ;;
4656   esac
4657   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4658 fi
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693 # If no C compiler was specified, use CC.
4694 LTCC=${LTCC-"$CC"}
4695
4696 # If no C compiler flags were specified, use CFLAGS.
4697 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4698
4699 # Allow CC to be a program name with arguments.
4700 compiler=$CC
4701
4702
4703 # Check for command to grab the raw symbol name followed by C symbol from nm.
4704 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4705 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4706 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4707   $as_echo_n "(cached) " >&6
4708 else
4709
4710 # These are sane defaults that work on at least a few old systems.
4711 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4712
4713 # Character class describing NM global symbol codes.
4714 symcode='[BCDEGRST]'
4715
4716 # Regexp to match symbols that can be accessed directly from C.
4717 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4718
4719 # Define system-specific variables.
4720 case $host_os in
4721 aix*)
4722   symcode='[BCDT]'
4723   ;;
4724 cygwin* | mingw* | pw32* | cegcc*)
4725   symcode='[ABCDGISTW]'
4726   ;;
4727 hpux*)
4728   if test "$host_cpu" = ia64; then
4729     symcode='[ABCDEGRST]'
4730   fi
4731   ;;
4732 irix* | nonstopux*)
4733   symcode='[BCDEGRST]'
4734   ;;
4735 osf*)
4736   symcode='[BCDEGQRST]'
4737   ;;
4738 solaris*)
4739   symcode='[BDRT]'
4740   ;;
4741 sco3.2v5*)
4742   symcode='[DT]'
4743   ;;
4744 sysv4.2uw2*)
4745   symcode='[DT]'
4746   ;;
4747 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4748   symcode='[ABDT]'
4749   ;;
4750 sysv4)
4751   symcode='[DFNSTU]'
4752   ;;
4753 esac
4754
4755 # If we're using GNU nm, then use its standard symbol codes.
4756 case `$NM -V 2>&1` in
4757 *GNU* | *'with BFD'*)
4758   symcode='[ABCDGIRSTW]' ;;
4759 esac
4760
4761 # Transform an extracted symbol line into a proper C declaration.
4762 # Some systems (esp. on ia64) link data and code symbols differently,
4763 # so use this general approach.
4764 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4765
4766 # Transform an extracted symbol line into symbol name and symbol address
4767 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4768 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'"
4769
4770 # Handle CRLF in mingw tool chain
4771 opt_cr=
4772 case $build_os in
4773 mingw*)
4774   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4775   ;;
4776 esac
4777
4778 # Try without a prefix underscore, then with it.
4779 for ac_symprfx in "" "_"; do
4780
4781   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4782   symxfrm="\\1 $ac_symprfx\\2 \\2"
4783
4784   # Write the raw and C identifiers.
4785   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4786     # Fake it for dumpbin and say T for any non-static function
4787     # and D for any global variable.
4788     # Also find C++ and __fastcall symbols from MSVC++,
4789     # which start with @ or ?.
4790     lt_cv_sys_global_symbol_pipe="$AWK '"\
4791 "     {last_section=section; section=\$ 3};"\
4792 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4793 "     \$ 0!~/External *\|/{next};"\
4794 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4795 "     {if(hide[section]) next};"\
4796 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4797 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4798 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4799 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4800 "     ' prfx=^$ac_symprfx"
4801   else
4802     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4803   fi
4804
4805   # Check to see that the pipe works correctly.
4806   pipe_works=no
4807
4808   rm -f conftest*
4809   cat > conftest.$ac_ext <<_LT_EOF
4810 #ifdef __cplusplus
4811 extern "C" {
4812 #endif
4813 char nm_test_var;
4814 void nm_test_func(void);
4815 void nm_test_func(void){}
4816 #ifdef __cplusplus
4817 }
4818 #endif
4819 int main(){nm_test_var='a';nm_test_func();return(0);}
4820 _LT_EOF
4821
4822   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823   (eval $ac_compile) 2>&5
4824   ac_status=$?
4825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }; then
4827     # Now try to grab the symbols.
4828     nlist=conftest.nm
4829     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4830   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4831   ac_status=$?
4832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); } && test -s "$nlist"; then
4834       # Try sorting and uniquifying the output.
4835       if sort "$nlist" | uniq > "$nlist"T; then
4836         mv -f "$nlist"T "$nlist"
4837       else
4838         rm -f "$nlist"T
4839       fi
4840
4841       # Make sure that we snagged all the symbols we need.
4842       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4843         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4844           cat <<_LT_EOF > conftest.$ac_ext
4845 #ifdef __cplusplus
4846 extern "C" {
4847 #endif
4848
4849 _LT_EOF
4850           # Now generate the symbol file.
4851           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4852
4853           cat <<_LT_EOF >> conftest.$ac_ext
4854
4855 /* The mapping between symbol names and symbols.  */
4856 const struct {
4857   const char *name;
4858   void       *address;
4859 }
4860 lt__PROGRAM__LTX_preloaded_symbols[] =
4861 {
4862   { "@PROGRAM@", (void *) 0 },
4863 _LT_EOF
4864           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4865           cat <<\_LT_EOF >> conftest.$ac_ext
4866   {0, (void *) 0}
4867 };
4868
4869 /* This works around a problem in FreeBSD linker */
4870 #ifdef FREEBSD_WORKAROUND
4871 static const void *lt_preloaded_setup() {
4872   return lt__PROGRAM__LTX_preloaded_symbols;
4873 }
4874 #endif
4875
4876 #ifdef __cplusplus
4877 }
4878 #endif
4879 _LT_EOF
4880           # Now try linking the two files.
4881           mv conftest.$ac_objext conftstm.$ac_objext
4882           lt_save_LIBS="$LIBS"
4883           lt_save_CFLAGS="$CFLAGS"
4884           LIBS="conftstm.$ac_objext"
4885           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4886           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4887   (eval $ac_link) 2>&5
4888   ac_status=$?
4889   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); } && test -s conftest${ac_exeext}; then
4891             pipe_works=yes
4892           fi
4893           LIBS="$lt_save_LIBS"
4894           CFLAGS="$lt_save_CFLAGS"
4895         else
4896           echo "cannot find nm_test_func in $nlist" >&5
4897         fi
4898       else
4899         echo "cannot find nm_test_var in $nlist" >&5
4900       fi
4901     else
4902       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4903     fi
4904   else
4905     echo "$progname: failed program was:" >&5
4906     cat conftest.$ac_ext >&5
4907   fi
4908   rm -rf conftest* conftst*
4909
4910   # Do not use the global_symbol_pipe unless it works.
4911   if test "$pipe_works" = yes; then
4912     break
4913   else
4914     lt_cv_sys_global_symbol_pipe=
4915   fi
4916 done
4917
4918 fi
4919
4920 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4921   lt_cv_sys_global_symbol_to_cdecl=
4922 fi
4923 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4924   { $as_echo "$as_me:$LINENO: result: failed" >&5
4925 $as_echo "failed" >&6; }
4926 else
4927   { $as_echo "$as_me:$LINENO: result: ok" >&5
4928 $as_echo "ok" >&6; }
4929 fi
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953 # Check whether --enable-libtool-lock was given.
4954 if test "${enable_libtool_lock+set}" = set; then
4955   enableval=$enable_libtool_lock;
4956 fi
4957
4958 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4959
4960 # Some flags need to be propagated to the compiler or linker for good
4961 # libtool support.
4962 case $host in
4963 ia64-*-hpux*)
4964   # Find out which ABI we are using.
4965   echo 'int i;' > conftest.$ac_ext
4966   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967   (eval $ac_compile) 2>&5
4968   ac_status=$?
4969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); }; then
4971     case `/usr/bin/file conftest.$ac_objext` in
4972       *ELF-32*)
4973         HPUX_IA64_MODE="32"
4974         ;;
4975       *ELF-64*)
4976         HPUX_IA64_MODE="64"
4977         ;;
4978     esac
4979   fi
4980   rm -rf conftest*
4981   ;;
4982 *-*-irix6*)
4983   # Find out which ABI we are using.
4984   echo '#line 4984 "configure"' > conftest.$ac_ext
4985   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4986   (eval $ac_compile) 2>&5
4987   ac_status=$?
4988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); }; then
4990     if test "$lt_cv_prog_gnu_ld" = yes; then
4991       case `/usr/bin/file conftest.$ac_objext` in
4992         *32-bit*)
4993           LD="${LD-ld} -melf32bsmip"
4994           ;;
4995         *N32*)
4996           LD="${LD-ld} -melf32bmipn32"
4997           ;;
4998         *64-bit*)
4999           LD="${LD-ld} -melf64bmip"
5000         ;;
5001       esac
5002     else
5003       case `/usr/bin/file conftest.$ac_objext` in
5004         *32-bit*)
5005           LD="${LD-ld} -32"
5006           ;;
5007         *N32*)
5008           LD="${LD-ld} -n32"
5009           ;;
5010         *64-bit*)
5011           LD="${LD-ld} -64"
5012           ;;
5013       esac
5014     fi
5015   fi
5016   rm -rf conftest*
5017   ;;
5018
5019 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5020 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5021   # Find out which ABI we are using.
5022   echo 'int i;' > conftest.$ac_ext
5023   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024   (eval $ac_compile) 2>&5
5025   ac_status=$?
5026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); }; then
5028     case `/usr/bin/file conftest.o` in
5029       *32-bit*)
5030         case $host in
5031           x86_64-*kfreebsd*-gnu)
5032             LD="${LD-ld} -m elf_i386_fbsd"
5033             ;;
5034           x86_64-*linux*)
5035             LD="${LD-ld} -m elf_i386"
5036             ;;
5037           ppc64-*linux*|powerpc64-*linux*)
5038             LD="${LD-ld} -m elf32ppclinux"
5039             ;;
5040           s390x-*linux*)
5041             LD="${LD-ld} -m elf_s390"
5042             ;;
5043           sparc64-*linux*)
5044             LD="${LD-ld} -m elf32_sparc"
5045             ;;
5046         esac
5047         ;;
5048       *64-bit*)
5049         case $host in
5050           x86_64-*kfreebsd*-gnu)
5051             LD="${LD-ld} -m elf_x86_64_fbsd"
5052             ;;
5053           x86_64-*linux*)
5054             LD="${LD-ld} -m elf_x86_64"
5055             ;;
5056           ppc*-*linux*|powerpc*-*linux*)
5057             LD="${LD-ld} -m elf64ppc"
5058             ;;
5059           s390*-*linux*|s390*-*tpf*)
5060             LD="${LD-ld} -m elf64_s390"
5061             ;;
5062           sparc*-*linux*)
5063             LD="${LD-ld} -m elf64_sparc"
5064             ;;
5065         esac
5066         ;;
5067     esac
5068   fi
5069   rm -rf conftest*
5070   ;;
5071
5072 *-*-sco3.2v5*)
5073   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5074   SAVE_CFLAGS="$CFLAGS"
5075   CFLAGS="$CFLAGS -belf"
5076   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5077 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5078 if test "${lt_cv_cc_needs_belf+set}" = set; then
5079   $as_echo_n "(cached) " >&6
5080 else
5081   ac_ext=c
5082 ac_cpp='$CPP $CPPFLAGS'
5083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5086
5087      cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h.  */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h.  */
5093
5094 int
5095 main ()
5096 {
5097
5098   ;
5099   return 0;
5100 }
5101 _ACEOF
5102 rm -f conftest.$ac_objext conftest$ac_exeext
5103 if { (ac_try="$ac_link"
5104 case "(($ac_try" in
5105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106   *) ac_try_echo=$ac_try;;
5107 esac
5108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5109 $as_echo "$ac_try_echo") >&5
5110   (eval "$ac_link") 2>conftest.er1
5111   ac_status=$?
5112   grep -v '^ *+' conftest.er1 >conftest.err
5113   rm -f conftest.er1
5114   cat conftest.err >&5
5115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); } && {
5117          test -z "$ac_c_werror_flag" ||
5118          test ! -s conftest.err
5119        } && test -s conftest$ac_exeext && {
5120          test "$cross_compiling" = yes ||
5121          $as_test_x conftest$ac_exeext
5122        }; then
5123   lt_cv_cc_needs_belf=yes
5124 else
5125   $as_echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128         lt_cv_cc_needs_belf=no
5129 fi
5130
5131 rm -rf conftest.dSYM
5132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5133       conftest$ac_exeext conftest.$ac_ext
5134      ac_ext=c
5135 ac_cpp='$CPP $CPPFLAGS'
5136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139
5140 fi
5141 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5142 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5143   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5144     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5145     CFLAGS="$SAVE_CFLAGS"
5146   fi
5147   ;;
5148 sparc*-*solaris*)
5149   # Find out which ABI we are using.
5150   echo 'int i;' > conftest.$ac_ext
5151   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5152   (eval $ac_compile) 2>&5
5153   ac_status=$?
5154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155   (exit $ac_status); }; then
5156     case `/usr/bin/file conftest.o` in
5157     *64-bit*)
5158       case $lt_cv_prog_gnu_ld in
5159       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5160       *)
5161         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5162           LD="${LD-ld} -64"
5163         fi
5164         ;;
5165       esac
5166       ;;
5167     esac
5168   fi
5169   rm -rf conftest*
5170   ;;
5171 esac
5172
5173 need_locks="$enable_libtool_lock"
5174
5175
5176   case $host_os in
5177     rhapsody* | darwin*)
5178     if test -n "$ac_tool_prefix"; then
5179   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5180 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5181 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5184   $as_echo_n "(cached) " >&6
5185 else
5186   if test -n "$DSYMUTIL"; then
5187   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192   IFS=$as_save_IFS
5193   test -z "$as_dir" && as_dir=.
5194   for ac_exec_ext in '' $ac_executable_extensions; do
5195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5197     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198     break 2
5199   fi
5200 done
5201 done
5202 IFS=$as_save_IFS
5203
5204 fi
5205 fi
5206 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5207 if test -n "$DSYMUTIL"; then
5208   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5209 $as_echo "$DSYMUTIL" >&6; }
5210 else
5211   { $as_echo "$as_me:$LINENO: result: no" >&5
5212 $as_echo "no" >&6; }
5213 fi
5214
5215
5216 fi
5217 if test -z "$ac_cv_prog_DSYMUTIL"; then
5218   ac_ct_DSYMUTIL=$DSYMUTIL
5219   # Extract the first word of "dsymutil", so it can be a program name with args.
5220 set dummy dsymutil; ac_word=$2
5221 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5224   $as_echo_n "(cached) " >&6
5225 else
5226   if test -n "$ac_ct_DSYMUTIL"; then
5227   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232   IFS=$as_save_IFS
5233   test -z "$as_dir" && as_dir=.
5234   for ac_exec_ext in '' $ac_executable_extensions; do
5235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5237     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238     break 2
5239   fi
5240 done
5241 done
5242 IFS=$as_save_IFS
5243
5244 fi
5245 fi
5246 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5247 if test -n "$ac_ct_DSYMUTIL"; then
5248   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5249 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5250 else
5251   { $as_echo "$as_me:$LINENO: result: no" >&5
5252 $as_echo "no" >&6; }
5253 fi
5254
5255   if test "x$ac_ct_DSYMUTIL" = x; then
5256     DSYMUTIL=":"
5257   else
5258     case $cross_compiling:$ac_tool_warned in
5259 yes:)
5260 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5262 ac_tool_warned=yes ;;
5263 esac
5264     DSYMUTIL=$ac_ct_DSYMUTIL
5265   fi
5266 else
5267   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5268 fi
5269
5270     if test -n "$ac_tool_prefix"; then
5271   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5272 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5273 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5276   $as_echo_n "(cached) " >&6
5277 else
5278   if test -n "$NMEDIT"; then
5279   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5283 do
5284   IFS=$as_save_IFS
5285   test -z "$as_dir" && as_dir=.
5286   for ac_exec_ext in '' $ac_executable_extensions; do
5287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5289     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290     break 2
5291   fi
5292 done
5293 done
5294 IFS=$as_save_IFS
5295
5296 fi
5297 fi
5298 NMEDIT=$ac_cv_prog_NMEDIT
5299 if test -n "$NMEDIT"; then
5300   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5301 $as_echo "$NMEDIT" >&6; }
5302 else
5303   { $as_echo "$as_me:$LINENO: result: no" >&5
5304 $as_echo "no" >&6; }
5305 fi
5306
5307
5308 fi
5309 if test -z "$ac_cv_prog_NMEDIT"; then
5310   ac_ct_NMEDIT=$NMEDIT
5311   # Extract the first word of "nmedit", so it can be a program name with args.
5312 set dummy nmedit; ac_word=$2
5313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5316   $as_echo_n "(cached) " >&6
5317 else
5318   if test -n "$ac_ct_NMEDIT"; then
5319   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5320 else
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5323 do
5324   IFS=$as_save_IFS
5325   test -z "$as_dir" && as_dir=.
5326   for ac_exec_ext in '' $ac_executable_extensions; do
5327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328     ac_cv_prog_ac_ct_NMEDIT="nmedit"
5329     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5330     break 2
5331   fi
5332 done
5333 done
5334 IFS=$as_save_IFS
5335
5336 fi
5337 fi
5338 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5339 if test -n "$ac_ct_NMEDIT"; then
5340   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5341 $as_echo "$ac_ct_NMEDIT" >&6; }
5342 else
5343   { $as_echo "$as_me:$LINENO: result: no" >&5
5344 $as_echo "no" >&6; }
5345 fi
5346
5347   if test "x$ac_ct_NMEDIT" = x; then
5348     NMEDIT=":"
5349   else
5350     case $cross_compiling:$ac_tool_warned in
5351 yes:)
5352 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5354 ac_tool_warned=yes ;;
5355 esac
5356     NMEDIT=$ac_ct_NMEDIT
5357   fi
5358 else
5359   NMEDIT="$ac_cv_prog_NMEDIT"
5360 fi
5361
5362     if test -n "$ac_tool_prefix"; then
5363   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5364 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5365 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if test "${ac_cv_prog_LIPO+set}" = set; then
5368   $as_echo_n "(cached) " >&6
5369 else
5370   if test -n "$LIPO"; then
5371   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5372 else
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5375 do
5376   IFS=$as_save_IFS
5377   test -z "$as_dir" && as_dir=.
5378   for ac_exec_ext in '' $ac_executable_extensions; do
5379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5380     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5381     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382     break 2
5383   fi
5384 done
5385 done
5386 IFS=$as_save_IFS
5387
5388 fi
5389 fi
5390 LIPO=$ac_cv_prog_LIPO
5391 if test -n "$LIPO"; then
5392   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5393 $as_echo "$LIPO" >&6; }
5394 else
5395   { $as_echo "$as_me:$LINENO: result: no" >&5
5396 $as_echo "no" >&6; }
5397 fi
5398
5399
5400 fi
5401 if test -z "$ac_cv_prog_LIPO"; then
5402   ac_ct_LIPO=$LIPO
5403   # Extract the first word of "lipo", so it can be a program name with args.
5404 set dummy lipo; ac_word=$2
5405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5408   $as_echo_n "(cached) " >&6
5409 else
5410   if test -n "$ac_ct_LIPO"; then
5411   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5412 else
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5415 do
5416   IFS=$as_save_IFS
5417   test -z "$as_dir" && as_dir=.
5418   for ac_exec_ext in '' $ac_executable_extensions; do
5419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5420     ac_cv_prog_ac_ct_LIPO="lipo"
5421     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5422     break 2
5423   fi
5424 done
5425 done
5426 IFS=$as_save_IFS
5427
5428 fi
5429 fi
5430 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5431 if test -n "$ac_ct_LIPO"; then
5432   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5433 $as_echo "$ac_ct_LIPO" >&6; }
5434 else
5435   { $as_echo "$as_me:$LINENO: result: no" >&5
5436 $as_echo "no" >&6; }
5437 fi
5438
5439   if test "x$ac_ct_LIPO" = x; then
5440     LIPO=":"
5441   else
5442     case $cross_compiling:$ac_tool_warned in
5443 yes:)
5444 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5446 ac_tool_warned=yes ;;
5447 esac
5448     LIPO=$ac_ct_LIPO
5449   fi
5450 else
5451   LIPO="$ac_cv_prog_LIPO"
5452 fi
5453
5454     if test -n "$ac_tool_prefix"; then
5455   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5456 set dummy ${ac_tool_prefix}otool; ac_word=$2
5457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if test "${ac_cv_prog_OTOOL+set}" = set; then
5460   $as_echo_n "(cached) " >&6
5461 else
5462   if test -n "$OTOOL"; then
5463   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5467 do
5468   IFS=$as_save_IFS
5469   test -z "$as_dir" && as_dir=.
5470   for ac_exec_ext in '' $ac_executable_extensions; do
5471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5472     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5473     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5474     break 2
5475   fi
5476 done
5477 done
5478 IFS=$as_save_IFS
5479
5480 fi
5481 fi
5482 OTOOL=$ac_cv_prog_OTOOL
5483 if test -n "$OTOOL"; then
5484   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5485 $as_echo "$OTOOL" >&6; }
5486 else
5487   { $as_echo "$as_me:$LINENO: result: no" >&5
5488 $as_echo "no" >&6; }
5489 fi
5490
5491
5492 fi
5493 if test -z "$ac_cv_prog_OTOOL"; then
5494   ac_ct_OTOOL=$OTOOL
5495   # Extract the first word of "otool", so it can be a program name with args.
5496 set dummy otool; ac_word=$2
5497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5500   $as_echo_n "(cached) " >&6
5501 else
5502   if test -n "$ac_ct_OTOOL"; then
5503   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508   IFS=$as_save_IFS
5509   test -z "$as_dir" && as_dir=.
5510   for ac_exec_ext in '' $ac_executable_extensions; do
5511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512     ac_cv_prog_ac_ct_OTOOL="otool"
5513     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514     break 2
5515   fi
5516 done
5517 done
5518 IFS=$as_save_IFS
5519
5520 fi
5521 fi
5522 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5523 if test -n "$ac_ct_OTOOL"; then
5524   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5525 $as_echo "$ac_ct_OTOOL" >&6; }
5526 else
5527   { $as_echo "$as_me:$LINENO: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530
5531   if test "x$ac_ct_OTOOL" = x; then
5532     OTOOL=":"
5533   else
5534     case $cross_compiling:$ac_tool_warned in
5535 yes:)
5536 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5538 ac_tool_warned=yes ;;
5539 esac
5540     OTOOL=$ac_ct_OTOOL
5541   fi
5542 else
5543   OTOOL="$ac_cv_prog_OTOOL"
5544 fi
5545
5546     if test -n "$ac_tool_prefix"; then
5547   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5548 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5549 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5552   $as_echo_n "(cached) " >&6
5553 else
5554   if test -n "$OTOOL64"; then
5555   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5559 do
5560   IFS=$as_save_IFS
5561   test -z "$as_dir" && as_dir=.
5562   for ac_exec_ext in '' $ac_executable_extensions; do
5563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5564     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5565     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566     break 2
5567   fi
5568 done
5569 done
5570 IFS=$as_save_IFS
5571
5572 fi
5573 fi
5574 OTOOL64=$ac_cv_prog_OTOOL64
5575 if test -n "$OTOOL64"; then
5576   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5577 $as_echo "$OTOOL64" >&6; }
5578 else
5579   { $as_echo "$as_me:$LINENO: result: no" >&5
5580 $as_echo "no" >&6; }
5581 fi
5582
5583
5584 fi
5585 if test -z "$ac_cv_prog_OTOOL64"; then
5586   ac_ct_OTOOL64=$OTOOL64
5587   # Extract the first word of "otool64", so it can be a program name with args.
5588 set dummy otool64; ac_word=$2
5589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5590 $as_echo_n "checking for $ac_word... " >&6; }
5591 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5592   $as_echo_n "(cached) " >&6
5593 else
5594   if test -n "$ac_ct_OTOOL64"; then
5595   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5596 else
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 for as_dir in $PATH
5599 do
5600   IFS=$as_save_IFS
5601   test -z "$as_dir" && as_dir=.
5602   for ac_exec_ext in '' $ac_executable_extensions; do
5603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5604     ac_cv_prog_ac_ct_OTOOL64="otool64"
5605     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5606     break 2
5607   fi
5608 done
5609 done
5610 IFS=$as_save_IFS
5611
5612 fi
5613 fi
5614 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5615 if test -n "$ac_ct_OTOOL64"; then
5616   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5617 $as_echo "$ac_ct_OTOOL64" >&6; }
5618 else
5619   { $as_echo "$as_me:$LINENO: result: no" >&5
5620 $as_echo "no" >&6; }
5621 fi
5622
5623   if test "x$ac_ct_OTOOL64" = x; then
5624     OTOOL64=":"
5625   else
5626     case $cross_compiling:$ac_tool_warned in
5627 yes:)
5628 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5630 ac_tool_warned=yes ;;
5631 esac
5632     OTOOL64=$ac_ct_OTOOL64
5633   fi
5634 else
5635   OTOOL64="$ac_cv_prog_OTOOL64"
5636 fi
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5665 $as_echo_n "checking for -single_module linker flag... " >&6; }
5666 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5667   $as_echo_n "(cached) " >&6
5668 else
5669   lt_cv_apple_cc_single_mod=no
5670       if test -z "${LT_MULTI_MODULE}"; then
5671         # By default we will add the -single_module flag. You can override
5672         # by either setting the environment variable LT_MULTI_MODULE
5673         # non-empty at configure time, or by adding -multi_module to the
5674         # link flags.
5675         rm -rf libconftest.dylib*
5676         echo "int foo(void){return 1;}" > conftest.c
5677         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5678 -dynamiclib -Wl,-single_module conftest.c" >&5
5679         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5680           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5681         _lt_result=$?
5682         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5683           lt_cv_apple_cc_single_mod=yes
5684         else
5685           cat conftest.err >&5
5686         fi
5687         rm -rf libconftest.dylib*
5688         rm -f conftest.*
5689       fi
5690 fi
5691 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5692 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5693     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5694 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5695 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5696   $as_echo_n "(cached) " >&6
5697 else
5698   lt_cv_ld_exported_symbols_list=no
5699       save_LDFLAGS=$LDFLAGS
5700       echo "_main" > conftest.sym
5701       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5702       cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h.  */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h.  */
5708
5709 int
5710 main ()
5711 {
5712
5713   ;
5714   return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (ac_try="$ac_link"
5719 case "(($ac_try" in
5720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721   *) ac_try_echo=$ac_try;;
5722 esac
5723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5724 $as_echo "$ac_try_echo") >&5
5725   (eval "$ac_link") 2>conftest.er1
5726   ac_status=$?
5727   grep -v '^ *+' conftest.er1 >conftest.err
5728   rm -f conftest.er1
5729   cat conftest.err >&5
5730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); } && {
5732          test -z "$ac_c_werror_flag" ||
5733          test ! -s conftest.err
5734        } && test -s conftest$ac_exeext && {
5735          test "$cross_compiling" = yes ||
5736          $as_test_x conftest$ac_exeext
5737        }; then
5738   lt_cv_ld_exported_symbols_list=yes
5739 else
5740   $as_echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5742
5743         lt_cv_ld_exported_symbols_list=no
5744 fi
5745
5746 rm -rf conftest.dSYM
5747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5748       conftest$ac_exeext conftest.$ac_ext
5749         LDFLAGS="$save_LDFLAGS"
5750
5751 fi
5752 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5753 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5754     case $host_os in
5755     rhapsody* | darwin1.[012])
5756       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5757     darwin1.*)
5758       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5759     darwin*) # darwin 5.x on
5760       # if running on 10.5 or later, the deployment target defaults
5761       # to the OS version, if on x86, and 10.4, the deployment
5762       # target defaults to 10.4. Don't you love it?
5763       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5764         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5765           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5766         10.[012]*)
5767           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5768         10.*)
5769           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5770       esac
5771     ;;
5772   esac
5773     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5774       _lt_dar_single_mod='$single_module'
5775     fi
5776     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5777       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5778     else
5779       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5780     fi
5781     if test "$DSYMUTIL" != ":"; then
5782       _lt_dsymutil='~$DSYMUTIL $lib || :'
5783     else
5784       _lt_dsymutil=
5785     fi
5786     ;;
5787   esac
5788
5789 ac_ext=c
5790 ac_cpp='$CPP $CPPFLAGS'
5791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5794 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5795 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5796 # On Suns, sometimes $CPP names a directory.
5797 if test -n "$CPP" && test -d "$CPP"; then
5798   CPP=
5799 fi
5800 if test -z "$CPP"; then
5801   if test "${ac_cv_prog_CPP+set}" = set; then
5802   $as_echo_n "(cached) " >&6
5803 else
5804       # Double quotes because CPP needs to be expanded
5805     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5806     do
5807       ac_preproc_ok=false
5808 for ac_c_preproc_warn_flag in '' yes
5809 do
5810   # Use a header file that comes with gcc, so configuring glibc
5811   # with a fresh cross-compiler works.
5812   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5813   # <limits.h> exists even on freestanding compilers.
5814   # On the NeXT, cc -E runs the code through the compiler's parser,
5815   # not just through cpp. "Syntax error" is here to catch this case.
5816   cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h.  */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h.  */
5822 #ifdef __STDC__
5823 # include <limits.h>
5824 #else
5825 # include <assert.h>
5826 #endif
5827                      Syntax error
5828 _ACEOF
5829 if { (ac_try="$ac_cpp conftest.$ac_ext"
5830 case "(($ac_try" in
5831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832   *) ac_try_echo=$ac_try;;
5833 esac
5834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5835 $as_echo "$ac_try_echo") >&5
5836   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5837   ac_status=$?
5838   grep -v '^ *+' conftest.er1 >conftest.err
5839   rm -f conftest.er1
5840   cat conftest.err >&5
5841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); } >/dev/null && {
5843          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5844          test ! -s conftest.err
5845        }; then
5846   :
5847 else
5848   $as_echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5850
5851   # Broken: fails on valid input.
5852 continue
5853 fi
5854
5855 rm -f conftest.err conftest.$ac_ext
5856
5857   # OK, works on sane cases.  Now check whether nonexistent headers
5858   # can be detected and how.
5859   cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h.  */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h.  */
5865 #include <ac_nonexistent.h>
5866 _ACEOF
5867 if { (ac_try="$ac_cpp conftest.$ac_ext"
5868 case "(($ac_try" in
5869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870   *) ac_try_echo=$ac_try;;
5871 esac
5872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5873 $as_echo "$ac_try_echo") >&5
5874   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5875   ac_status=$?
5876   grep -v '^ *+' conftest.er1 >conftest.err
5877   rm -f conftest.er1
5878   cat conftest.err >&5
5879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); } >/dev/null && {
5881          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5882          test ! -s conftest.err
5883        }; then
5884   # Broken: success on invalid input.
5885 continue
5886 else
5887   $as_echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890   # Passes both tests.
5891 ac_preproc_ok=:
5892 break
5893 fi
5894
5895 rm -f conftest.err conftest.$ac_ext
5896
5897 done
5898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5899 rm -f conftest.err conftest.$ac_ext
5900 if $ac_preproc_ok; then
5901   break
5902 fi
5903
5904     done
5905     ac_cv_prog_CPP=$CPP
5906
5907 fi
5908   CPP=$ac_cv_prog_CPP
5909 else
5910   ac_cv_prog_CPP=$CPP
5911 fi
5912 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5913 $as_echo "$CPP" >&6; }
5914 ac_preproc_ok=false
5915 for ac_c_preproc_warn_flag in '' yes
5916 do
5917   # Use a header file that comes with gcc, so configuring glibc
5918   # with a fresh cross-compiler works.
5919   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5920   # <limits.h> exists even on freestanding compilers.
5921   # On the NeXT, cc -E runs the code through the compiler's parser,
5922   # not just through cpp. "Syntax error" is here to catch this case.
5923   cat >conftest.$ac_ext <<_ACEOF
5924 /* confdefs.h.  */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h.  */
5929 #ifdef __STDC__
5930 # include <limits.h>
5931 #else
5932 # include <assert.h>
5933 #endif
5934                      Syntax error
5935 _ACEOF
5936 if { (ac_try="$ac_cpp conftest.$ac_ext"
5937 case "(($ac_try" in
5938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939   *) ac_try_echo=$ac_try;;
5940 esac
5941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5942 $as_echo "$ac_try_echo") >&5
5943   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5944   ac_status=$?
5945   grep -v '^ *+' conftest.er1 >conftest.err
5946   rm -f conftest.er1
5947   cat conftest.err >&5
5948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949   (exit $ac_status); } >/dev/null && {
5950          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5951          test ! -s conftest.err
5952        }; then
5953   :
5954 else
5955   $as_echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5957
5958   # Broken: fails on valid input.
5959 continue
5960 fi
5961
5962 rm -f conftest.err conftest.$ac_ext
5963
5964   # OK, works on sane cases.  Now check whether nonexistent headers
5965   # can be detected and how.
5966   cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h.  */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h.  */
5972 #include <ac_nonexistent.h>
5973 _ACEOF
5974 if { (ac_try="$ac_cpp conftest.$ac_ext"
5975 case "(($ac_try" in
5976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977   *) ac_try_echo=$ac_try;;
5978 esac
5979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5980 $as_echo "$ac_try_echo") >&5
5981   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5982   ac_status=$?
5983   grep -v '^ *+' conftest.er1 >conftest.err
5984   rm -f conftest.er1
5985   cat conftest.err >&5
5986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); } >/dev/null && {
5988          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5989          test ! -s conftest.err
5990        }; then
5991   # Broken: success on invalid input.
5992 continue
5993 else
5994   $as_echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5996
5997   # Passes both tests.
5998 ac_preproc_ok=:
5999 break
6000 fi
6001
6002 rm -f conftest.err conftest.$ac_ext
6003
6004 done
6005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6006 rm -f conftest.err conftest.$ac_ext
6007 if $ac_preproc_ok; then
6008   :
6009 else
6010   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6012 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6013 See \`config.log' for more details." >&5
6014 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6015 See \`config.log' for more details." >&2;}
6016    { (exit 1); exit 1; }; }; }
6017 fi
6018
6019 ac_ext=c
6020 ac_cpp='$CPP $CPPFLAGS'
6021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6024
6025
6026 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6027 $as_echo_n "checking for ANSI C header files... " >&6; }
6028 if test "${ac_cv_header_stdc+set}" = set; then
6029   $as_echo_n "(cached) " >&6
6030 else
6031   cat >conftest.$ac_ext <<_ACEOF
6032 /* confdefs.h.  */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h.  */
6037 #include <stdlib.h>
6038 #include <stdarg.h>
6039 #include <string.h>
6040 #include <float.h>
6041
6042 int
6043 main ()
6044 {
6045
6046   ;
6047   return 0;
6048 }
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6052 case "(($ac_try" in
6053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054   *) ac_try_echo=$ac_try;;
6055 esac
6056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6057 $as_echo "$ac_try_echo") >&5
6058   (eval "$ac_compile") 2>conftest.er1
6059   ac_status=$?
6060   grep -v '^ *+' conftest.er1 >conftest.err
6061   rm -f conftest.er1
6062   cat conftest.err >&5
6063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); } && {
6065          test -z "$ac_c_werror_flag" ||
6066          test ! -s conftest.err
6067        } && test -s conftest.$ac_objext; then
6068   ac_cv_header_stdc=yes
6069 else
6070   $as_echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073         ac_cv_header_stdc=no
6074 fi
6075
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077
6078 if test $ac_cv_header_stdc = yes; then
6079   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6080   cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h.  */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h.  */
6086 #include <string.h>
6087
6088 _ACEOF
6089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6090   $EGREP "memchr" >/dev/null 2>&1; then
6091   :
6092 else
6093   ac_cv_header_stdc=no
6094 fi
6095 rm -f conftest*
6096
6097 fi
6098
6099 if test $ac_cv_header_stdc = yes; then
6100   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6101   cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h.  */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h.  */
6107 #include <stdlib.h>
6108
6109 _ACEOF
6110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6111   $EGREP "free" >/dev/null 2>&1; then
6112   :
6113 else
6114   ac_cv_header_stdc=no
6115 fi
6116 rm -f conftest*
6117
6118 fi
6119
6120 if test $ac_cv_header_stdc = yes; then
6121   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6122   if test "$cross_compiling" = yes; then
6123   :
6124 else
6125   cat >conftest.$ac_ext <<_ACEOF
6126 /* confdefs.h.  */
6127 _ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h.  */
6131 #include <ctype.h>
6132 #include <stdlib.h>
6133 #if ((' ' & 0x0FF) == 0x020)
6134 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6135 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6136 #else
6137 # define ISLOWER(c) \
6138                    (('a' <= (c) && (c) <= 'i') \
6139                      || ('j' <= (c) && (c) <= 'r') \
6140                      || ('s' <= (c) && (c) <= 'z'))
6141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6142 #endif
6143
6144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6145 int
6146 main ()
6147 {
6148   int i;
6149   for (i = 0; i < 256; i++)
6150     if (XOR (islower (i), ISLOWER (i))
6151         || toupper (i) != TOUPPER (i))
6152       return 2;
6153   return 0;
6154 }
6155 _ACEOF
6156 rm -f conftest$ac_exeext
6157 if { (ac_try="$ac_link"
6158 case "(($ac_try" in
6159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160   *) ac_try_echo=$ac_try;;
6161 esac
6162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6163 $as_echo "$ac_try_echo") >&5
6164   (eval "$ac_link") 2>&5
6165   ac_status=$?
6166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6168   { (case "(($ac_try" in
6169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170   *) ac_try_echo=$ac_try;;
6171 esac
6172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6173 $as_echo "$ac_try_echo") >&5
6174   (eval "$ac_try") 2>&5
6175   ac_status=$?
6176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177   (exit $ac_status); }; }; then
6178   :
6179 else
6180   $as_echo "$as_me: program exited with status $ac_status" >&5
6181 $as_echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6183
6184 ( exit $ac_status )
6185 ac_cv_header_stdc=no
6186 fi
6187 rm -rf conftest.dSYM
6188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6189 fi
6190
6191
6192 fi
6193 fi
6194 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6195 $as_echo "$ac_cv_header_stdc" >&6; }
6196 if test $ac_cv_header_stdc = yes; then
6197
6198 cat >>confdefs.h <<\_ACEOF
6199 #define STDC_HEADERS 1
6200 _ACEOF
6201
6202 fi
6203
6204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6215                   inttypes.h stdint.h unistd.h
6216 do
6217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6218 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6219 $as_echo_n "checking for $ac_header... " >&6; }
6220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6221   $as_echo_n "(cached) " >&6
6222 else
6223   cat >conftest.$ac_ext <<_ACEOF
6224 /* confdefs.h.  */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h.  */
6229 $ac_includes_default
6230
6231 #include <$ac_header>
6232 _ACEOF
6233 rm -f conftest.$ac_objext
6234 if { (ac_try="$ac_compile"
6235 case "(($ac_try" in
6236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237   *) ac_try_echo=$ac_try;;
6238 esac
6239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6240 $as_echo "$ac_try_echo") >&5
6241   (eval "$ac_compile") 2>conftest.er1
6242   ac_status=$?
6243   grep -v '^ *+' conftest.er1 >conftest.err
6244   rm -f conftest.er1
6245   cat conftest.err >&5
6246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); } && {
6248          test -z "$ac_c_werror_flag" ||
6249          test ! -s conftest.err
6250        } && test -s conftest.$ac_objext; then
6251   eval "$as_ac_Header=yes"
6252 else
6253   $as_echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256         eval "$as_ac_Header=no"
6257 fi
6258
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 fi
6261 ac_res=`eval 'as_val=${'$as_ac_Header'}
6262                  $as_echo "$as_val"'`
6263                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6264 $as_echo "$ac_res" >&6; }
6265 as_val=`eval 'as_val=${'$as_ac_Header'}
6266                  $as_echo "$as_val"'`
6267    if test "x$as_val" = x""yes; then
6268   cat >>confdefs.h <<_ACEOF
6269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6270 _ACEOF
6271
6272 fi
6273
6274 done
6275
6276
6277
6278 for ac_header in dlfcn.h
6279 do
6280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6281 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6282 $as_echo_n "checking for $ac_header... " >&6; }
6283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6284   $as_echo_n "(cached) " >&6
6285 else
6286   cat >conftest.$ac_ext <<_ACEOF
6287 /* confdefs.h.  */
6288 _ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h.  */
6292 $ac_includes_default
6293
6294 #include <$ac_header>
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (ac_try="$ac_compile"
6298 case "(($ac_try" in
6299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300   *) ac_try_echo=$ac_try;;
6301 esac
6302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6303 $as_echo "$ac_try_echo") >&5
6304   (eval "$ac_compile") 2>conftest.er1
6305   ac_status=$?
6306   grep -v '^ *+' conftest.er1 >conftest.err
6307   rm -f conftest.er1
6308   cat conftest.err >&5
6309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); } && {
6311          test -z "$ac_c_werror_flag" ||
6312          test ! -s conftest.err
6313        } && test -s conftest.$ac_objext; then
6314   eval "$as_ac_Header=yes"
6315 else
6316   $as_echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6318
6319         eval "$as_ac_Header=no"
6320 fi
6321
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323 fi
6324 ac_res=`eval 'as_val=${'$as_ac_Header'}
6325                  $as_echo "$as_val"'`
6326                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6327 $as_echo "$ac_res" >&6; }
6328 as_val=`eval 'as_val=${'$as_ac_Header'}
6329                  $as_echo "$as_val"'`
6330    if test "x$as_val" = x""yes; then
6331   cat >>confdefs.h <<_ACEOF
6332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6333 _ACEOF
6334
6335 fi
6336
6337 done
6338
6339
6340
6341 # Set options
6342 enable_win32_dll=yes
6343
6344 case $host in
6345 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6346   if test -n "$ac_tool_prefix"; then
6347   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6348 set dummy ${ac_tool_prefix}as; ac_word=$2
6349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if test "${ac_cv_prog_AS+set}" = set; then
6352   $as_echo_n "(cached) " >&6
6353 else
6354   if test -n "$AS"; then
6355   ac_cv_prog_AS="$AS" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6359 do
6360   IFS=$as_save_IFS
6361   test -z "$as_dir" && as_dir=.
6362   for ac_exec_ext in '' $ac_executable_extensions; do
6363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364     ac_cv_prog_AS="${ac_tool_prefix}as"
6365     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366     break 2
6367   fi
6368 done
6369 done
6370 IFS=$as_save_IFS
6371
6372 fi
6373 fi
6374 AS=$ac_cv_prog_AS
6375 if test -n "$AS"; then
6376   { $as_echo "$as_me:$LINENO: result: $AS" >&5
6377 $as_echo "$AS" >&6; }
6378 else
6379   { $as_echo "$as_me:$LINENO: result: no" >&5
6380 $as_echo "no" >&6; }
6381 fi
6382
6383
6384 fi
6385 if test -z "$ac_cv_prog_AS"; then
6386   ac_ct_AS=$AS
6387   # Extract the first word of "as", so it can be a program name with args.
6388 set dummy as; ac_word=$2
6389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6392   $as_echo_n "(cached) " >&6
6393 else
6394   if test -n "$ac_ct_AS"; then
6395   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6396 else
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6399 do
6400   IFS=$as_save_IFS
6401   test -z "$as_dir" && as_dir=.
6402   for ac_exec_ext in '' $ac_executable_extensions; do
6403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404     ac_cv_prog_ac_ct_AS="as"
6405     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406     break 2
6407   fi
6408 done
6409 done
6410 IFS=$as_save_IFS
6411
6412 fi
6413 fi
6414 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6415 if test -n "$ac_ct_AS"; then
6416   { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6417 $as_echo "$ac_ct_AS" >&6; }
6418 else
6419   { $as_echo "$as_me:$LINENO: result: no" >&5
6420 $as_echo "no" >&6; }
6421 fi
6422
6423   if test "x$ac_ct_AS" = x; then
6424     AS="false"
6425   else
6426     case $cross_compiling:$ac_tool_warned in
6427 yes:)
6428 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430 ac_tool_warned=yes ;;
6431 esac
6432     AS=$ac_ct_AS
6433   fi
6434 else
6435   AS="$ac_cv_prog_AS"
6436 fi
6437
6438   if test -n "$ac_tool_prefix"; then
6439   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6440 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6441 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6444   $as_echo_n "(cached) " >&6
6445 else
6446   if test -n "$DLLTOOL"; then
6447   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452   IFS=$as_save_IFS
6453   test -z "$as_dir" && as_dir=.
6454   for ac_exec_ext in '' $ac_executable_extensions; do
6455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6457     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458     break 2
6459   fi
6460 done
6461 done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 DLLTOOL=$ac_cv_prog_DLLTOOL
6467 if test -n "$DLLTOOL"; then
6468   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6469 $as_echo "$DLLTOOL" >&6; }
6470 else
6471   { $as_echo "$as_me:$LINENO: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475
6476 fi
6477 if test -z "$ac_cv_prog_DLLTOOL"; then
6478   ac_ct_DLLTOOL=$DLLTOOL
6479   # Extract the first word of "dlltool", so it can be a program name with args.
6480 set dummy dlltool; ac_word=$2
6481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6484   $as_echo_n "(cached) " >&6
6485 else
6486   if test -n "$ac_ct_DLLTOOL"; then
6487   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6491 do
6492   IFS=$as_save_IFS
6493   test -z "$as_dir" && as_dir=.
6494   for ac_exec_ext in '' $ac_executable_extensions; do
6495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6497     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498     break 2
6499   fi
6500 done
6501 done
6502 IFS=$as_save_IFS
6503
6504 fi
6505 fi
6506 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6507 if test -n "$ac_ct_DLLTOOL"; then
6508   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6509 $as_echo "$ac_ct_DLLTOOL" >&6; }
6510 else
6511   { $as_echo "$as_me:$LINENO: result: no" >&5
6512 $as_echo "no" >&6; }
6513 fi
6514
6515   if test "x$ac_ct_DLLTOOL" = x; then
6516     DLLTOOL="false"
6517   else
6518     case $cross_compiling:$ac_tool_warned in
6519 yes:)
6520 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522 ac_tool_warned=yes ;;
6523 esac
6524     DLLTOOL=$ac_ct_DLLTOOL
6525   fi
6526 else
6527   DLLTOOL="$ac_cv_prog_DLLTOOL"
6528 fi
6529
6530   if test -n "$ac_tool_prefix"; then
6531   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6533 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6536   $as_echo_n "(cached) " >&6
6537 else
6538   if test -n "$OBJDUMP"; then
6539   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6540 else
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6543 do
6544   IFS=$as_save_IFS
6545   test -z "$as_dir" && as_dir=.
6546   for ac_exec_ext in '' $ac_executable_extensions; do
6547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6549     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550     break 2
6551   fi
6552 done
6553 done
6554 IFS=$as_save_IFS
6555
6556 fi
6557 fi
6558 OBJDUMP=$ac_cv_prog_OBJDUMP
6559 if test -n "$OBJDUMP"; then
6560   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6561 $as_echo "$OBJDUMP" >&6; }
6562 else
6563   { $as_echo "$as_me:$LINENO: result: no" >&5
6564 $as_echo "no" >&6; }
6565 fi
6566
6567
6568 fi
6569 if test -z "$ac_cv_prog_OBJDUMP"; then
6570   ac_ct_OBJDUMP=$OBJDUMP
6571   # Extract the first word of "objdump", so it can be a program name with args.
6572 set dummy objdump; ac_word=$2
6573 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6576   $as_echo_n "(cached) " >&6
6577 else
6578   if test -n "$ac_ct_OBJDUMP"; then
6579   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584   IFS=$as_save_IFS
6585   test -z "$as_dir" && as_dir=.
6586   for ac_exec_ext in '' $ac_executable_extensions; do
6587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6589     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590     break 2
6591   fi
6592 done
6593 done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6599 if test -n "$ac_ct_OBJDUMP"; then
6600   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6601 $as_echo "$ac_ct_OBJDUMP" >&6; }
6602 else
6603   { $as_echo "$as_me:$LINENO: result: no" >&5
6604 $as_echo "no" >&6; }
6605 fi
6606
6607   if test "x$ac_ct_OBJDUMP" = x; then
6608     OBJDUMP="false"
6609   else
6610     case $cross_compiling:$ac_tool_warned in
6611 yes:)
6612 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614 ac_tool_warned=yes ;;
6615 esac
6616     OBJDUMP=$ac_ct_OBJDUMP
6617   fi
6618 else
6619   OBJDUMP="$ac_cv_prog_OBJDUMP"
6620 fi
6621
6622   ;;
6623 esac
6624
6625 test -z "$AS" && AS=as
6626
6627
6628
6629
6630
6631 test -z "$DLLTOOL" && DLLTOOL=dlltool
6632
6633
6634
6635
6636
6637 test -z "$OBJDUMP" && OBJDUMP=objdump
6638
6639
6640
6641
6642
6643
6644
6645         enable_dlopen=no
6646
6647
6648
6649             # Check whether --enable-shared was given.
6650 if test "${enable_shared+set}" = set; then
6651   enableval=$enable_shared; p=${PACKAGE-default}
6652     case $enableval in
6653     yes) enable_shared=yes ;;
6654     no) enable_shared=no ;;
6655     *)
6656       enable_shared=no
6657       # Look at the argument we got.  We use all the common list separators.
6658       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6659       for pkg in $enableval; do
6660         IFS="$lt_save_ifs"
6661         if test "X$pkg" = "X$p"; then
6662           enable_shared=yes
6663         fi
6664       done
6665       IFS="$lt_save_ifs"
6666       ;;
6667     esac
6668 else
6669   enable_shared=yes
6670 fi
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680   # Check whether --enable-static was given.
6681 if test "${enable_static+set}" = set; then
6682   enableval=$enable_static; p=${PACKAGE-default}
6683     case $enableval in
6684     yes) enable_static=yes ;;
6685     no) enable_static=no ;;
6686     *)
6687      enable_static=no
6688       # Look at the argument we got.  We use all the common list separators.
6689       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6690       for pkg in $enableval; do
6691         IFS="$lt_save_ifs"
6692         if test "X$pkg" = "X$p"; then
6693           enable_static=yes
6694         fi
6695       done
6696       IFS="$lt_save_ifs"
6697       ;;
6698     esac
6699 else
6700   enable_static=yes
6701 fi
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712 # Check whether --with-pic was given.
6713 if test "${with_pic+set}" = set; then
6714   withval=$with_pic; pic_mode="$withval"
6715 else
6716   pic_mode=default
6717 fi
6718
6719
6720 test -z "$pic_mode" && pic_mode=default
6721
6722
6723
6724
6725
6726
6727
6728   # Check whether --enable-fast-install was given.
6729 if test "${enable_fast_install+set}" = set; then
6730   enableval=$enable_fast_install; p=${PACKAGE-default}
6731     case $enableval in
6732     yes) enable_fast_install=yes ;;
6733     no) enable_fast_install=no ;;
6734     *)
6735       enable_fast_install=no
6736       # Look at the argument we got.  We use all the common list separators.
6737       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6738       for pkg in $enableval; do
6739         IFS="$lt_save_ifs"
6740         if test "X$pkg" = "X$p"; then
6741           enable_fast_install=yes
6742         fi
6743       done
6744       IFS="$lt_save_ifs"
6745       ;;
6746     esac
6747 else
6748   enable_fast_install=yes
6749 fi
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761 # This can be used to rebuild libtool when needed
6762 LIBTOOL_DEPS="$ltmain"
6763
6764 # Always use our own libtool.
6765 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791 test -z "$LN_S" && LN_S="ln -s"
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806 if test -n "${ZSH_VERSION+set}" ; then
6807    setopt NO_GLOB_SUBST
6808 fi
6809
6810 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6811 $as_echo_n "checking for objdir... " >&6; }
6812 if test "${lt_cv_objdir+set}" = set; then
6813   $as_echo_n "(cached) " >&6
6814 else
6815   rm -f .libs 2>/dev/null
6816 mkdir .libs 2>/dev/null
6817 if test -d .libs; then
6818   lt_cv_objdir=.libs
6819 else
6820   # MS-DOS does not allow filenames that begin with a dot.
6821   lt_cv_objdir=_libs
6822 fi
6823 rmdir .libs 2>/dev/null
6824 fi
6825 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6826 $as_echo "$lt_cv_objdir" >&6; }
6827 objdir=$lt_cv_objdir
6828
6829
6830
6831
6832
6833 cat >>confdefs.h <<_ACEOF
6834 #define LT_OBJDIR "$lt_cv_objdir/"
6835 _ACEOF
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853 case $host_os in
6854 aix3*)
6855   # AIX sometimes has problems with the GCC collect2 program.  For some
6856   # reason, if we set the COLLECT_NAMES environment variable, the problems
6857   # vanish in a puff of smoke.
6858   if test "X${COLLECT_NAMES+set}" != Xset; then
6859     COLLECT_NAMES=
6860     export COLLECT_NAMES
6861   fi
6862   ;;
6863 esac
6864
6865 # Sed substitution that helps us do robust quoting.  It backslashifies
6866 # metacharacters that are still active within double-quoted strings.
6867 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6868
6869 # Same as above, but do not quote variable references.
6870 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6871
6872 # Sed substitution to delay expansion of an escaped shell variable in a
6873 # double_quote_subst'ed string.
6874 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6875
6876 # Sed substitution to delay expansion of an escaped single quote.
6877 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6878
6879 # Sed substitution to avoid accidental globbing in evaled expressions
6880 no_glob_subst='s/\*/\\\*/g'
6881
6882 # Global variables:
6883 ofile=libtool
6884 can_build_shared=yes
6885
6886 # All known linkers require a `.a' archive for static linking (except MSVC,
6887 # which needs '.lib').
6888 libext=a
6889
6890 with_gnu_ld="$lt_cv_prog_gnu_ld"
6891
6892 old_CC="$CC"
6893 old_CFLAGS="$CFLAGS"
6894
6895 # Set sane defaults for various variables
6896 test -z "$CC" && CC=cc
6897 test -z "$LTCC" && LTCC=$CC
6898 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6899 test -z "$LD" && LD=ld
6900 test -z "$ac_objext" && ac_objext=o
6901
6902 for cc_temp in $compiler""; do
6903   case $cc_temp in
6904     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6905     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6906     \-*) ;;
6907     *) break;;
6908   esac
6909 done
6910 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6911
6912
6913 # Only perform the check for file, if the check method requires it
6914 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6915 case $deplibs_check_method in
6916 file_magic*)
6917   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6918     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6919 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6920 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6921   $as_echo_n "(cached) " >&6
6922 else
6923   case $MAGIC_CMD in
6924 [\\/*] |  ?:[\\/]*)
6925   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6926   ;;
6927 *)
6928   lt_save_MAGIC_CMD="$MAGIC_CMD"
6929   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6930   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6931   for ac_dir in $ac_dummy; do
6932     IFS="$lt_save_ifs"
6933     test -z "$ac_dir" && ac_dir=.
6934     if test -f $ac_dir/${ac_tool_prefix}file; then
6935       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6936       if test -n "$file_magic_test_file"; then
6937         case $deplibs_check_method in
6938         "file_magic "*)
6939           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6940           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6941           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6942             $EGREP "$file_magic_regex" > /dev/null; then
6943             :
6944           else
6945             cat <<_LT_EOF 1>&2
6946
6947 *** Warning: the command libtool uses to detect shared libraries,
6948 *** $file_magic_cmd, produces output that libtool cannot recognize.
6949 *** The result is that libtool may fail to recognize shared libraries
6950 *** as such.  This will affect the creation of libtool libraries that
6951 *** depend on shared libraries, but programs linked with such libtool
6952 *** libraries will work regardless of this problem.  Nevertheless, you
6953 *** may want to report the problem to your system manager and/or to
6954 *** bug-libtool@gnu.org
6955
6956 _LT_EOF
6957           fi ;;
6958         esac
6959       fi
6960       break
6961     fi
6962   done
6963   IFS="$lt_save_ifs"
6964   MAGIC_CMD="$lt_save_MAGIC_CMD"
6965   ;;
6966 esac
6967 fi
6968
6969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6970 if test -n "$MAGIC_CMD"; then
6971   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6972 $as_echo "$MAGIC_CMD" >&6; }
6973 else
6974   { $as_echo "$as_me:$LINENO: result: no" >&5
6975 $as_echo "no" >&6; }
6976 fi
6977
6978
6979
6980
6981
6982 if test -z "$lt_cv_path_MAGIC_CMD"; then
6983   if test -n "$ac_tool_prefix"; then
6984     { $as_echo "$as_me:$LINENO: checking for file" >&5
6985 $as_echo_n "checking for file... " >&6; }
6986 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6987   $as_echo_n "(cached) " >&6
6988 else
6989   case $MAGIC_CMD in
6990 [\\/*] |  ?:[\\/]*)
6991   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6992   ;;
6993 *)
6994   lt_save_MAGIC_CMD="$MAGIC_CMD"
6995   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6996   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6997   for ac_dir in $ac_dummy; do
6998     IFS="$lt_save_ifs"
6999     test -z "$ac_dir" && ac_dir=.
7000     if test -f $ac_dir/file; then
7001       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7002       if test -n "$file_magic_test_file"; then
7003         case $deplibs_check_method in
7004         "file_magic "*)
7005           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7006           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7007           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7008             $EGREP "$file_magic_regex" > /dev/null; then
7009             :
7010           else
7011             cat <<_LT_EOF 1>&2
7012
7013 *** Warning: the command libtool uses to detect shared libraries,
7014 *** $file_magic_cmd, produces output that libtool cannot recognize.
7015 *** The result is that libtool may fail to recognize shared libraries
7016 *** as such.  This will affect the creation of libtool libraries that
7017 *** depend on shared libraries, but programs linked with such libtool
7018 *** libraries will work regardless of this problem.  Nevertheless, you
7019 *** may want to report the problem to your system manager and/or to
7020 *** bug-libtool@gnu.org
7021
7022 _LT_EOF
7023           fi ;;
7024         esac
7025       fi
7026       break
7027     fi
7028   done
7029   IFS="$lt_save_ifs"
7030   MAGIC_CMD="$lt_save_MAGIC_CMD"
7031   ;;
7032 esac
7033 fi
7034
7035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7036 if test -n "$MAGIC_CMD"; then
7037   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7038 $as_echo "$MAGIC_CMD" >&6; }
7039 else
7040   { $as_echo "$as_me:$LINENO: result: no" >&5
7041 $as_echo "no" >&6; }
7042 fi
7043
7044
7045   else
7046     MAGIC_CMD=:
7047   fi
7048 fi
7049
7050   fi
7051   ;;
7052 esac
7053
7054 # Use C for the default configuration in the libtool script
7055
7056 lt_save_CC="$CC"
7057 ac_ext=c
7058 ac_cpp='$CPP $CPPFLAGS'
7059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7062
7063
7064 # Source file extension for C test sources.
7065 ac_ext=c
7066
7067 # Object file extension for compiled C test sources.
7068 objext=o
7069 objext=$objext
7070
7071 # Code to be used in simple compile tests
7072 lt_simple_compile_test_code="int some_variable = 0;"
7073
7074 # Code to be used in simple link tests
7075 lt_simple_link_test_code='int main(){return(0);}'
7076
7077
7078
7079
7080
7081
7082
7083 # If no C compiler was specified, use CC.
7084 LTCC=${LTCC-"$CC"}
7085
7086 # If no C compiler flags were specified, use CFLAGS.
7087 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7088
7089 # Allow CC to be a program name with arguments.
7090 compiler=$CC
7091
7092 # Save the default compiler, since it gets overwritten when the other
7093 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7094 compiler_DEFAULT=$CC
7095
7096 # save warnings/boilerplate of simple test code
7097 ac_outfile=conftest.$ac_objext
7098 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7099 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7100 _lt_compiler_boilerplate=`cat conftest.err`
7101 $RM conftest*
7102
7103 ac_outfile=conftest.$ac_objext
7104 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7105 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7106 _lt_linker_boilerplate=`cat conftest.err`
7107 $RM -r conftest*
7108
7109
7110 ## CAVEAT EMPTOR:
7111 ## There is no encapsulation within the following macros, do not change
7112 ## the running order or otherwise move them around unless you know exactly
7113 ## what you are doing...
7114 if test -n "$compiler"; then
7115
7116 lt_prog_compiler_no_builtin_flag=
7117
7118 if test "$GCC" = yes; then
7119   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7120
7121   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7122 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7123 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7124   $as_echo_n "(cached) " >&6
7125 else
7126   lt_cv_prog_compiler_rtti_exceptions=no
7127    ac_outfile=conftest.$ac_objext
7128    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7129    lt_compiler_flag="-fno-rtti -fno-exceptions"
7130    # Insert the option either (1) after the last *FLAGS variable, or
7131    # (2) before a word containing "conftest.", or (3) at the end.
7132    # Note that $ac_compile itself does not contain backslashes and begins
7133    # with a dollar sign (not a hyphen), so the echo should work correctly.
7134    # The option is referenced via a variable to avoid confusing sed.
7135    lt_compile=`echo "$ac_compile" | $SED \
7136    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7137    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7138    -e 's:$: $lt_compiler_flag:'`
7139    (eval echo "\"\$as_me:7139: $lt_compile\"" >&5)
7140    (eval "$lt_compile" 2>conftest.err)
7141    ac_status=$?
7142    cat conftest.err >&5
7143    echo "$as_me:7143: \$? = $ac_status" >&5
7144    if (exit $ac_status) && test -s "$ac_outfile"; then
7145      # The compiler can only warn and ignore the option if not recognized
7146      # So say no if there are warnings other than the usual output.
7147      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7148      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7149      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7150        lt_cv_prog_compiler_rtti_exceptions=yes
7151      fi
7152    fi
7153    $RM conftest*
7154
7155 fi
7156 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7157 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7158
7159 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7160     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7161 else
7162     :
7163 fi
7164
7165 fi
7166
7167
7168
7169
7170
7171
7172   lt_prog_compiler_wl=
7173 lt_prog_compiler_pic=
7174 lt_prog_compiler_static=
7175
7176 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7177 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7178
7179   if test "$GCC" = yes; then
7180     lt_prog_compiler_wl='-Wl,'
7181     lt_prog_compiler_static='-static'
7182
7183     case $host_os in
7184       aix*)
7185       # All AIX code is PIC.
7186       if test "$host_cpu" = ia64; then
7187         # AIX 5 now supports IA64 processor
7188         lt_prog_compiler_static='-Bstatic'
7189       fi
7190       ;;
7191
7192     amigaos*)
7193       case $host_cpu in
7194       powerpc)
7195             # see comment about AmigaOS4 .so support
7196             lt_prog_compiler_pic='-fPIC'
7197         ;;
7198       m68k)
7199             # FIXME: we need at least 68020 code to build shared libraries, but
7200             # adding the `-m68020' flag to GCC prevents building anything better,
7201             # like `-m68040'.
7202             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7203         ;;
7204       esac
7205       ;;
7206
7207     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7208       # PIC is the default for these OSes.
7209       ;;
7210
7211     mingw* | cygwin* | pw32* | os2* | cegcc*)
7212       # This hack is so that the source file can tell whether it is being
7213       # built for inclusion in a dll (and should export symbols for example).
7214       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7215       # (--disable-auto-import) libraries
7216       lt_prog_compiler_pic='-DDLL_EXPORT'
7217       ;;
7218
7219     darwin* | rhapsody*)
7220       # PIC is the default on this platform
7221       # Common symbols not allowed in MH_DYLIB files
7222       lt_prog_compiler_pic='-fno-common'
7223       ;;
7224
7225     hpux*)
7226       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7227       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7228       # sets the default TLS model and affects inlining.
7229       case $host_cpu in
7230       hppa*64*)
7231         # +Z the default
7232         ;;
7233       *)
7234         lt_prog_compiler_pic='-fPIC'
7235         ;;
7236       esac
7237       ;;
7238
7239     interix[3-9]*)
7240       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7241       # Instead, we relocate shared libraries at runtime.
7242       ;;
7243
7244     msdosdjgpp*)
7245       # Just because we use GCC doesn't mean we suddenly get shared libraries
7246       # on systems that don't support them.
7247       lt_prog_compiler_can_build_shared=no
7248       enable_shared=no
7249       ;;
7250
7251     *nto* | *qnx*)
7252       # QNX uses GNU C++, but need to define -shared option too, otherwise
7253       # it will coredump.
7254       lt_prog_compiler_pic='-fPIC -shared'
7255       ;;
7256
7257     sysv4*MP*)
7258       if test -d /usr/nec; then
7259         lt_prog_compiler_pic=-Kconform_pic
7260       fi
7261       ;;
7262
7263     *)
7264       lt_prog_compiler_pic='-fPIC'
7265       ;;
7266     esac
7267   else
7268     # PORTME Check for flag to pass linker flags through the system compiler.
7269     case $host_os in
7270     aix*)
7271       lt_prog_compiler_wl='-Wl,'
7272       if test "$host_cpu" = ia64; then
7273         # AIX 5 now supports IA64 processor
7274         lt_prog_compiler_static='-Bstatic'
7275       else
7276         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7277       fi
7278       ;;
7279
7280     mingw* | cygwin* | pw32* | os2* | cegcc*)
7281       # This hack is so that the source file can tell whether it is being
7282       # built for inclusion in a dll (and should export symbols for example).
7283       lt_prog_compiler_pic='-DDLL_EXPORT'
7284       ;;
7285
7286     hpux9* | hpux10* | hpux11*)
7287       lt_prog_compiler_wl='-Wl,'
7288       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7289       # not for PA HP-UX.
7290       case $host_cpu in
7291       hppa*64*|ia64*)
7292         # +Z the default
7293         ;;
7294       *)
7295         lt_prog_compiler_pic='+Z'
7296         ;;
7297       esac
7298       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7299       lt_prog_compiler_static='${wl}-a ${wl}archive'
7300       ;;
7301
7302     irix5* | irix6* | nonstopux*)
7303       lt_prog_compiler_wl='-Wl,'
7304       # PIC (with -KPIC) is the default.
7305       lt_prog_compiler_static='-non_shared'
7306       ;;
7307
7308     linux* | k*bsd*-gnu)
7309       case $cc_basename in
7310       # old Intel for x86_64 which still supported -KPIC.
7311       ecc*)
7312         lt_prog_compiler_wl='-Wl,'
7313         lt_prog_compiler_pic='-KPIC'
7314         lt_prog_compiler_static='-static'
7315         ;;
7316       # icc used to be incompatible with GCC.
7317       # ICC 10 doesn't accept -KPIC any more.
7318       icc* | ifort*)
7319         lt_prog_compiler_wl='-Wl,'
7320         lt_prog_compiler_pic='-fPIC'
7321         lt_prog_compiler_static='-static'
7322         ;;
7323       # Lahey Fortran 8.1.
7324       lf95*)
7325         lt_prog_compiler_wl='-Wl,'
7326         lt_prog_compiler_pic='--shared'
7327         lt_prog_compiler_static='--static'
7328         ;;
7329       pgcc* | pgf77* | pgf90* | pgf95*)
7330         # Portland Group compilers (*not* the Pentium gcc compiler,
7331         # which looks to be a dead project)
7332         lt_prog_compiler_wl='-Wl,'
7333         lt_prog_compiler_pic='-fpic'
7334         lt_prog_compiler_static='-Bstatic'
7335         ;;
7336       ccc*)
7337         lt_prog_compiler_wl='-Wl,'
7338         # All Alpha code is PIC.
7339         lt_prog_compiler_static='-non_shared'
7340         ;;
7341       xl*)
7342         # IBM XL C 8.0/Fortran 10.1 on PPC
7343         lt_prog_compiler_wl='-Wl,'
7344         lt_prog_compiler_pic='-qpic'
7345         lt_prog_compiler_static='-qstaticlink'
7346         ;;
7347       *)
7348         case `$CC -V 2>&1 | sed 5q` in
7349         *Sun\ C*)
7350           # Sun C 5.9
7351           lt_prog_compiler_pic='-KPIC'
7352           lt_prog_compiler_static='-Bstatic'
7353           lt_prog_compiler_wl='-Wl,'
7354           ;;
7355         *Sun\ F*)
7356           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7357           lt_prog_compiler_pic='-KPIC'
7358           lt_prog_compiler_static='-Bstatic'
7359           lt_prog_compiler_wl=''
7360           ;;
7361         esac
7362         ;;
7363       esac
7364       ;;
7365
7366     newsos6)
7367       lt_prog_compiler_pic='-KPIC'
7368       lt_prog_compiler_static='-Bstatic'
7369       ;;
7370
7371     *nto* | *qnx*)
7372       # QNX uses GNU C++, but need to define -shared option too, otherwise
7373       # it will coredump.
7374       lt_prog_compiler_pic='-fPIC -shared'
7375       ;;
7376
7377     osf3* | osf4* | osf5*)
7378       lt_prog_compiler_wl='-Wl,'
7379       # All OSF/1 code is PIC.
7380       lt_prog_compiler_static='-non_shared'
7381       ;;
7382
7383     rdos*)
7384       lt_prog_compiler_static='-non_shared'
7385       ;;
7386
7387     solaris*)
7388       lt_prog_compiler_pic='-KPIC'
7389       lt_prog_compiler_static='-Bstatic'
7390       case $cc_basename in
7391       f77* | f90* | f95*)
7392         lt_prog_compiler_wl='-Qoption ld ';;
7393       *)
7394         lt_prog_compiler_wl='-Wl,';;
7395       esac
7396       ;;
7397
7398     sunos4*)
7399       lt_prog_compiler_wl='-Qoption ld '
7400       lt_prog_compiler_pic='-PIC'
7401       lt_prog_compiler_static='-Bstatic'
7402       ;;
7403
7404     sysv4 | sysv4.2uw2* | sysv4.3*)
7405       lt_prog_compiler_wl='-Wl,'
7406       lt_prog_compiler_pic='-KPIC'
7407       lt_prog_compiler_static='-Bstatic'
7408       ;;
7409
7410     sysv4*MP*)
7411       if test -d /usr/nec ;then
7412         lt_prog_compiler_pic='-Kconform_pic'
7413         lt_prog_compiler_static='-Bstatic'
7414       fi
7415       ;;
7416
7417     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7418       lt_prog_compiler_wl='-Wl,'
7419       lt_prog_compiler_pic='-KPIC'
7420       lt_prog_compiler_static='-Bstatic'
7421       ;;
7422
7423     unicos*)
7424       lt_prog_compiler_wl='-Wl,'
7425       lt_prog_compiler_can_build_shared=no
7426       ;;
7427
7428     uts4*)
7429       lt_prog_compiler_pic='-pic'
7430       lt_prog_compiler_static='-Bstatic'
7431       ;;
7432
7433     *)
7434       lt_prog_compiler_can_build_shared=no
7435       ;;
7436     esac
7437   fi
7438
7439 case $host_os in
7440   # For platforms which do not support PIC, -DPIC is meaningless:
7441   *djgpp*)
7442     lt_prog_compiler_pic=
7443     ;;
7444   *)
7445     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7446     ;;
7447 esac
7448 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7449 $as_echo "$lt_prog_compiler_pic" >&6; }
7450
7451
7452
7453
7454
7455
7456 #
7457 # Check to make sure the PIC flag actually works.
7458 #
7459 if test -n "$lt_prog_compiler_pic"; then
7460   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7461 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7462 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7463   $as_echo_n "(cached) " >&6
7464 else
7465   lt_cv_prog_compiler_pic_works=no
7466    ac_outfile=conftest.$ac_objext
7467    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7468    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7469    # Insert the option either (1) after the last *FLAGS variable, or
7470    # (2) before a word containing "conftest.", or (3) at the end.
7471    # Note that $ac_compile itself does not contain backslashes and begins
7472    # with a dollar sign (not a hyphen), so the echo should work correctly.
7473    # The option is referenced via a variable to avoid confusing sed.
7474    lt_compile=`echo "$ac_compile" | $SED \
7475    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7476    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7477    -e 's:$: $lt_compiler_flag:'`
7478    (eval echo "\"\$as_me:7478: $lt_compile\"" >&5)
7479    (eval "$lt_compile" 2>conftest.err)
7480    ac_status=$?
7481    cat conftest.err >&5
7482    echo "$as_me:7482: \$? = $ac_status" >&5
7483    if (exit $ac_status) && test -s "$ac_outfile"; then
7484      # The compiler can only warn and ignore the option if not recognized
7485      # So say no if there are warnings other than the usual output.
7486      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7487      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7488      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7489        lt_cv_prog_compiler_pic_works=yes
7490      fi
7491    fi
7492    $RM conftest*
7493
7494 fi
7495 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7496 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7497
7498 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7499     case $lt_prog_compiler_pic in
7500      "" | " "*) ;;
7501      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7502      esac
7503 else
7504     lt_prog_compiler_pic=
7505      lt_prog_compiler_can_build_shared=no
7506 fi
7507
7508 fi
7509
7510
7511
7512
7513
7514
7515 #
7516 # Check to make sure the static flag actually works.
7517 #
7518 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7519 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7520 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7521 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7522   $as_echo_n "(cached) " >&6
7523 else
7524   lt_cv_prog_compiler_static_works=no
7525    save_LDFLAGS="$LDFLAGS"
7526    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7527    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7528    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7529      # The linker can only warn and ignore the option if not recognized
7530      # So say no if there are warnings
7531      if test -s conftest.err; then
7532        # Append any errors to the config.log.
7533        cat conftest.err 1>&5
7534        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7535        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7536        if diff conftest.exp conftest.er2 >/dev/null; then
7537          lt_cv_prog_compiler_static_works=yes
7538        fi
7539      else
7540        lt_cv_prog_compiler_static_works=yes
7541      fi
7542    fi
7543    $RM -r conftest*
7544    LDFLAGS="$save_LDFLAGS"
7545
7546 fi
7547 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7548 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7549
7550 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7551     :
7552 else
7553     lt_prog_compiler_static=
7554 fi
7555
7556
7557
7558
7559
7560
7561
7562   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7563 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7564 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7565   $as_echo_n "(cached) " >&6
7566 else
7567   lt_cv_prog_compiler_c_o=no
7568    $RM -r conftest 2>/dev/null
7569    mkdir conftest
7570    cd conftest
7571    mkdir out
7572    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7573
7574    lt_compiler_flag="-o out/conftest2.$ac_objext"
7575    # Insert the option either (1) after the last *FLAGS variable, or
7576    # (2) before a word containing "conftest.", or (3) at the end.
7577    # Note that $ac_compile itself does not contain backslashes and begins
7578    # with a dollar sign (not a hyphen), so the echo should work correctly.
7579    lt_compile=`echo "$ac_compile" | $SED \
7580    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7581    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7582    -e 's:$: $lt_compiler_flag:'`
7583    (eval echo "\"\$as_me:7583: $lt_compile\"" >&5)
7584    (eval "$lt_compile" 2>out/conftest.err)
7585    ac_status=$?
7586    cat out/conftest.err >&5
7587    echo "$as_me:7587: \$? = $ac_status" >&5
7588    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7589    then
7590      # The compiler can only warn and ignore the option if not recognized
7591      # So say no if there are warnings
7592      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7593      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7594      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7595        lt_cv_prog_compiler_c_o=yes
7596      fi
7597    fi
7598    chmod u+w . 2>&5
7599    $RM conftest*
7600    # SGI C++ compiler will create directory out/ii_files/ for
7601    # template instantiation
7602    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7603    $RM out/* && rmdir out
7604    cd ..
7605    $RM -r conftest
7606    $RM conftest*
7607
7608 fi
7609 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7610 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7611
7612
7613
7614
7615
7616
7617   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7618 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7619 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7620   $as_echo_n "(cached) " >&6
7621 else
7622   lt_cv_prog_compiler_c_o=no
7623    $RM -r conftest 2>/dev/null
7624    mkdir conftest
7625    cd conftest
7626    mkdir out
7627    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7628
7629    lt_compiler_flag="-o out/conftest2.$ac_objext"
7630    # Insert the option either (1) after the last *FLAGS variable, or
7631    # (2) before a word containing "conftest.", or (3) at the end.
7632    # Note that $ac_compile itself does not contain backslashes and begins
7633    # with a dollar sign (not a hyphen), so the echo should work correctly.
7634    lt_compile=`echo "$ac_compile" | $SED \
7635    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7636    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7637    -e 's:$: $lt_compiler_flag:'`
7638    (eval echo "\"\$as_me:7638: $lt_compile\"" >&5)
7639    (eval "$lt_compile" 2>out/conftest.err)
7640    ac_status=$?
7641    cat out/conftest.err >&5
7642    echo "$as_me:7642: \$? = $ac_status" >&5
7643    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7644    then
7645      # The compiler can only warn and ignore the option if not recognized
7646      # So say no if there are warnings
7647      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7648      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7649      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7650        lt_cv_prog_compiler_c_o=yes
7651      fi
7652    fi
7653    chmod u+w . 2>&5
7654    $RM conftest*
7655    # SGI C++ compiler will create directory out/ii_files/ for
7656    # template instantiation
7657    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7658    $RM out/* && rmdir out
7659    cd ..
7660    $RM -r conftest
7661    $RM conftest*
7662
7663 fi
7664 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7665 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7666
7667
7668
7669
7670 hard_links="nottested"
7671 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7672   # do not overwrite the value of need_locks provided by the user
7673   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7674 $as_echo_n "checking if we can lock with hard links... " >&6; }
7675   hard_links=yes
7676   $RM conftest*
7677   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7678   touch conftest.a
7679   ln conftest.a conftest.b 2>&5 || hard_links=no
7680   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7681   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7682 $as_echo "$hard_links" >&6; }
7683   if test "$hard_links" = no; then
7684     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7685 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7686     need_locks=warn
7687   fi
7688 else
7689   need_locks=no
7690 fi
7691
7692
7693
7694
7695
7696
7697   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7698 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7699
7700   runpath_var=
7701   allow_undefined_flag=
7702   always_export_symbols=no
7703   archive_cmds=
7704   archive_expsym_cmds=
7705   compiler_needs_object=no
7706   enable_shared_with_static_runtimes=no
7707   export_dynamic_flag_spec=
7708   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7709   hardcode_automatic=no
7710   hardcode_direct=no
7711   hardcode_direct_absolute=no
7712   hardcode_libdir_flag_spec=
7713   hardcode_libdir_flag_spec_ld=
7714   hardcode_libdir_separator=
7715   hardcode_minus_L=no
7716   hardcode_shlibpath_var=unsupported
7717   inherit_rpath=no
7718   link_all_deplibs=unknown
7719   module_cmds=
7720   module_expsym_cmds=
7721   old_archive_from_new_cmds=
7722   old_archive_from_expsyms_cmds=
7723   thread_safe_flag_spec=
7724   whole_archive_flag_spec=
7725   # include_expsyms should be a list of space-separated symbols to be *always*
7726   # included in the symbol list
7727   include_expsyms=
7728   # exclude_expsyms can be an extended regexp of symbols to exclude
7729   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7730   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7731   # as well as any symbol that contains `d'.
7732   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7733   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7734   # platforms (ab)use it in PIC code, but their linkers get confused if
7735   # the symbol is explicitly referenced.  Since portable code cannot
7736   # rely on this symbol name, it's probably fine to never include it in
7737   # preloaded symbol tables.
7738   # Exclude shared library initialization/finalization symbols.
7739   extract_expsyms_cmds=
7740
7741   case $host_os in
7742   cygwin* | mingw* | pw32* | cegcc*)
7743     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7744     # When not using gcc, we currently assume that we are using
7745     # Microsoft Visual C++.
7746     if test "$GCC" != yes; then
7747       with_gnu_ld=no
7748     fi
7749     ;;
7750   interix*)
7751     # we just hope/assume this is gcc and not c89 (= MSVC++)
7752     with_gnu_ld=yes
7753     ;;
7754   openbsd*)
7755     with_gnu_ld=no
7756     ;;
7757   esac
7758
7759   ld_shlibs=yes
7760   if test "$with_gnu_ld" = yes; then
7761     # If archive_cmds runs LD, not CC, wlarc should be empty
7762     wlarc='${wl}'
7763
7764     # Set some defaults for GNU ld with shared library support. These
7765     # are reset later if shared libraries are not supported. Putting them
7766     # here allows them to be overridden if necessary.
7767     runpath_var=LD_RUN_PATH
7768     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7769     export_dynamic_flag_spec='${wl}--export-dynamic'
7770     # ancient GNU ld didn't support --whole-archive et. al.
7771     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7772       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7773     else
7774       whole_archive_flag_spec=
7775     fi
7776     supports_anon_versioning=no
7777     case `$LD -v 2>&1` in
7778       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7779       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7780       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7781       *\ 2.11.*) ;; # other 2.11 versions
7782       *) supports_anon_versioning=yes ;;
7783     esac
7784
7785     # See if GNU ld supports shared libraries.
7786     case $host_os in
7787     aix[3-9]*)
7788       # On AIX/PPC, the GNU linker is very broken
7789       if test "$host_cpu" != ia64; then
7790         ld_shlibs=no
7791         cat <<_LT_EOF 1>&2
7792
7793 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7794 *** to be unable to reliably create shared libraries on AIX.
7795 *** Therefore, libtool is disabling shared libraries support.  If you
7796 *** really care for shared libraries, you may want to modify your PATH
7797 *** so that a non-GNU linker is found, and then restart.
7798
7799 _LT_EOF
7800       fi
7801       ;;
7802
7803     amigaos*)
7804       case $host_cpu in
7805       powerpc)
7806             # see comment about AmigaOS4 .so support
7807             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7808             archive_expsym_cmds=''
7809         ;;
7810       m68k)
7811             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)'
7812             hardcode_libdir_flag_spec='-L$libdir'
7813             hardcode_minus_L=yes
7814         ;;
7815       esac
7816       ;;
7817
7818     beos*)
7819       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7820         allow_undefined_flag=unsupported
7821         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7822         # support --undefined.  This deserves some investigation.  FIXME
7823         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7824       else
7825         ld_shlibs=no
7826       fi
7827       ;;
7828
7829     cygwin* | mingw* | pw32* | cegcc*)
7830       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7831       # as there is no search path for DLLs.
7832       hardcode_libdir_flag_spec='-L$libdir'
7833       allow_undefined_flag=unsupported
7834       always_export_symbols=no
7835       enable_shared_with_static_runtimes=yes
7836       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7837
7838       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7839         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7840         # If the export-symbols file already is a .def file (1st line
7841         # is EXPORTS), use it as is; otherwise, prepend...
7842         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7843           cp $export_symbols $output_objdir/$soname.def;
7844         else
7845           echo EXPORTS > $output_objdir/$soname.def;
7846           cat $export_symbols >> $output_objdir/$soname.def;
7847         fi~
7848         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7849       else
7850         ld_shlibs=no
7851       fi
7852       ;;
7853
7854     interix[3-9]*)
7855       hardcode_direct=no
7856       hardcode_shlibpath_var=no
7857       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7858       export_dynamic_flag_spec='${wl}-E'
7859       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7860       # Instead, shared libraries are loaded at an image base (0x10000000 by
7861       # default) and relocated if they conflict, which is a slow very memory
7862       # consuming and fragmenting process.  To avoid this, we pick a random,
7863       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7864       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7865       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7866       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'
7867       ;;
7868
7869     gnu* | linux* | tpf* | k*bsd*-gnu)
7870       tmp_diet=no
7871       if test "$host_os" = linux-dietlibc; then
7872         case $cc_basename in
7873           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7874         esac
7875       fi
7876       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7877          && test "$tmp_diet" = no
7878       then
7879         tmp_addflag=
7880         tmp_sharedflag='-shared'
7881         case $cc_basename,$host_cpu in
7882         pgcc*)                          # Portland Group C compiler
7883           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'
7884           tmp_addflag=' $pic_flag'
7885           ;;
7886         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7887           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'
7888           tmp_addflag=' $pic_flag -Mnomain' ;;
7889         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7890           tmp_addflag=' -i_dynamic' ;;
7891         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7892           tmp_addflag=' -i_dynamic -nofor_main' ;;
7893         ifc* | ifort*)                  # Intel Fortran compiler
7894           tmp_addflag=' -nofor_main' ;;
7895         lf95*)                          # Lahey Fortran 8.1
7896           whole_archive_flag_spec=
7897           tmp_sharedflag='--shared' ;;
7898         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7899           tmp_sharedflag='-qmkshrobj'
7900           tmp_addflag= ;;
7901         esac
7902         case `$CC -V 2>&1 | sed 5q` in
7903         *Sun\ C*)                       # Sun C 5.9
7904           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'
7905           compiler_needs_object=yes
7906           tmp_sharedflag='-G' ;;
7907         *Sun\ F*)                       # Sun Fortran 8.3
7908           tmp_sharedflag='-G' ;;
7909         esac
7910         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7911
7912         if test "x$supports_anon_versioning" = xyes; then
7913           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7914             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7915             echo "local: *; };" >> $output_objdir/$libname.ver~
7916             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7917         fi
7918
7919         case $cc_basename in
7920         xlf*)
7921           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7922           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7923           hardcode_libdir_flag_spec=
7924           hardcode_libdir_flag_spec_ld='-rpath $libdir'
7925           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7926           if test "x$supports_anon_versioning" = xyes; then
7927             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7928               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7929               echo "local: *; };" >> $output_objdir/$libname.ver~
7930               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7931           fi
7932           ;;
7933         esac
7934       else
7935         ld_shlibs=no
7936       fi
7937       ;;
7938
7939     netbsd*)
7940       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7941         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7942         wlarc=
7943       else
7944         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7945         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7946       fi
7947       ;;
7948
7949     solaris*)
7950       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7951         ld_shlibs=no
7952         cat <<_LT_EOF 1>&2
7953
7954 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7955 *** create shared libraries on Solaris systems.  Therefore, libtool
7956 *** is disabling shared libraries support.  We urge you to upgrade GNU
7957 *** binutils to release 2.9.1 or newer.  Another option is to modify
7958 *** your PATH or compiler configuration so that the native linker is
7959 *** used, and then restart.
7960
7961 _LT_EOF
7962       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7963         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7964         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7965       else
7966         ld_shlibs=no
7967       fi
7968       ;;
7969
7970     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7971       case `$LD -v 2>&1` in
7972         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7973         ld_shlibs=no
7974         cat <<_LT_EOF 1>&2
7975
7976 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7977 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7978 *** is disabling shared libraries support.  We urge you to upgrade GNU
7979 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7980 *** your PATH or compiler configuration so that the native linker is
7981 *** used, and then restart.
7982
7983 _LT_EOF
7984         ;;
7985         *)
7986           # For security reasons, it is highly recommended that you always
7987           # use absolute paths for naming shared libraries, and exclude the
7988           # DT_RUNPATH tag from executables and libraries.  But doing so
7989           # requires that you compile everything twice, which is a pain.
7990           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7991             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7992             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7993             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7994           else
7995             ld_shlibs=no
7996           fi
7997         ;;
7998       esac
7999       ;;
8000
8001     sunos4*)
8002       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8003       wlarc=
8004       hardcode_direct=yes
8005       hardcode_shlibpath_var=no
8006       ;;
8007
8008     *)
8009       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8010         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8011         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8012       else
8013         ld_shlibs=no
8014       fi
8015       ;;
8016     esac
8017
8018     if test "$ld_shlibs" = no; then
8019       runpath_var=
8020       hardcode_libdir_flag_spec=
8021       export_dynamic_flag_spec=
8022       whole_archive_flag_spec=
8023     fi
8024   else
8025     # PORTME fill in a description of your system's linker (not GNU ld)
8026     case $host_os in
8027     aix3*)
8028       allow_undefined_flag=unsupported
8029       always_export_symbols=yes
8030       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'
8031       # Note: this linker hardcodes the directories in LIBPATH if there
8032       # are no directories specified by -L.
8033       hardcode_minus_L=yes
8034       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8035         # Neither direct hardcoding nor static linking is supported with a
8036         # broken collect2.
8037         hardcode_direct=unsupported
8038       fi
8039       ;;
8040
8041     aix[4-9]*)
8042       if test "$host_cpu" = ia64; then
8043         # On IA64, the linker does run time linking by default, so we don't
8044         # have to do anything special.
8045         aix_use_runtimelinking=no
8046         exp_sym_flag='-Bexport'
8047         no_entry_flag=""
8048       else
8049         # If we're using GNU nm, then we don't want the "-C" option.
8050         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8051         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8052           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'
8053         else
8054           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'
8055         fi
8056         aix_use_runtimelinking=no
8057
8058         # Test if we are trying to use run time linking or normal
8059         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8060         # need to do runtime linking.
8061         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8062           for ld_flag in $LDFLAGS; do
8063           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8064             aix_use_runtimelinking=yes
8065             break
8066           fi
8067           done
8068           ;;
8069         esac
8070
8071         exp_sym_flag='-bexport'
8072         no_entry_flag='-bnoentry'
8073       fi
8074
8075       # When large executables or shared objects are built, AIX ld can
8076       # have problems creating the table of contents.  If linking a library
8077       # or program results in "error TOC overflow" add -mminimal-toc to
8078       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8079       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8080
8081       archive_cmds=''
8082       hardcode_direct=yes
8083       hardcode_direct_absolute=yes
8084       hardcode_libdir_separator=':'
8085       link_all_deplibs=yes
8086       file_list_spec='${wl}-f,'
8087
8088       if test "$GCC" = yes; then
8089         case $host_os in aix4.[012]|aix4.[012].*)
8090         # We only want to do this on AIX 4.2 and lower, the check
8091         # below for broken collect2 doesn't work under 4.3+
8092           collect2name=`${CC} -print-prog-name=collect2`
8093           if test -f "$collect2name" &&
8094            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8095           then
8096           # We have reworked collect2
8097           :
8098           else
8099           # We have old collect2
8100           hardcode_direct=unsupported
8101           # It fails to find uninstalled libraries when the uninstalled
8102           # path is not listed in the libpath.  Setting hardcode_minus_L
8103           # to unsupported forces relinking
8104           hardcode_minus_L=yes
8105           hardcode_libdir_flag_spec='-L$libdir'
8106           hardcode_libdir_separator=
8107           fi
8108           ;;
8109         esac
8110         shared_flag='-shared'
8111         if test "$aix_use_runtimelinking" = yes; then
8112           shared_flag="$shared_flag "'${wl}-G'
8113         fi
8114       else
8115         # not using gcc
8116         if test "$host_cpu" = ia64; then
8117         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8118         # chokes on -Wl,-G. The following line is correct:
8119           shared_flag='-G'
8120         else
8121           if test "$aix_use_runtimelinking" = yes; then
8122             shared_flag='${wl}-G'
8123           else
8124             shared_flag='${wl}-bM:SRE'
8125           fi
8126         fi
8127       fi
8128
8129       export_dynamic_flag_spec='${wl}-bexpall'
8130       # It seems that -bexpall does not export symbols beginning with
8131       # underscore (_), so it is better to generate a list of symbols to export.
8132       always_export_symbols=yes
8133       if test "$aix_use_runtimelinking" = yes; then
8134         # Warning - without using the other runtime loading flags (-brtl),
8135         # -berok will link without error, but may produce a broken library.
8136         allow_undefined_flag='-berok'
8137         # Determine the default libpath from the value encoded in an
8138         # empty executable.
8139         cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h.  */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h.  */
8145
8146 int
8147 main ()
8148 {
8149
8150   ;
8151   return 0;
8152 }
8153 _ACEOF
8154 rm -f conftest.$ac_objext conftest$ac_exeext
8155 if { (ac_try="$ac_link"
8156 case "(($ac_try" in
8157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158   *) ac_try_echo=$ac_try;;
8159 esac
8160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8161 $as_echo "$ac_try_echo") >&5
8162   (eval "$ac_link") 2>conftest.er1
8163   ac_status=$?
8164   grep -v '^ *+' conftest.er1 >conftest.err
8165   rm -f conftest.er1
8166   cat conftest.err >&5
8167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } && {
8169          test -z "$ac_c_werror_flag" ||
8170          test ! -s conftest.err
8171        } && test -s conftest$ac_exeext && {
8172          test "$cross_compiling" = yes ||
8173          $as_test_x conftest$ac_exeext
8174        }; then
8175
8176 lt_aix_libpath_sed='
8177     /Import File Strings/,/^$/ {
8178         /^0/ {
8179             s/^0  *\(.*\)$/\1/
8180             p
8181         }
8182     }'
8183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8184 # Check for a 64-bit object if we didn't find anything.
8185 if test -z "$aix_libpath"; then
8186   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8187 fi
8188 else
8189   $as_echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8191
8192
8193 fi
8194
8195 rm -rf conftest.dSYM
8196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8197       conftest$ac_exeext conftest.$ac_ext
8198 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8199
8200         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8201         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"
8202       else
8203         if test "$host_cpu" = ia64; then
8204           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8205           allow_undefined_flag="-z nodefs"
8206           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"
8207         else
8208          # Determine the default libpath from the value encoded in an
8209          # empty executable.
8210          cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h.  */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h.  */
8216
8217 int
8218 main ()
8219 {
8220
8221   ;
8222   return 0;
8223 }
8224 _ACEOF
8225 rm -f conftest.$ac_objext conftest$ac_exeext
8226 if { (ac_try="$ac_link"
8227 case "(($ac_try" in
8228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229   *) ac_try_echo=$ac_try;;
8230 esac
8231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8232 $as_echo "$ac_try_echo") >&5
8233   (eval "$ac_link") 2>conftest.er1
8234   ac_status=$?
8235   grep -v '^ *+' conftest.er1 >conftest.err
8236   rm -f conftest.er1
8237   cat conftest.err >&5
8238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); } && {
8240          test -z "$ac_c_werror_flag" ||
8241          test ! -s conftest.err
8242        } && test -s conftest$ac_exeext && {
8243          test "$cross_compiling" = yes ||
8244          $as_test_x conftest$ac_exeext
8245        }; then
8246
8247 lt_aix_libpath_sed='
8248     /Import File Strings/,/^$/ {
8249         /^0/ {
8250             s/^0  *\(.*\)$/\1/
8251             p
8252         }
8253     }'
8254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8255 # Check for a 64-bit object if we didn't find anything.
8256 if test -z "$aix_libpath"; then
8257   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8258 fi
8259 else
8260   $as_echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8262
8263
8264 fi
8265
8266 rm -rf conftest.dSYM
8267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8268       conftest$ac_exeext conftest.$ac_ext
8269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8270
8271          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8272           # Warning - without using the other run time loading flags,
8273           # -berok will link without error, but may produce a broken library.
8274           no_undefined_flag=' ${wl}-bernotok'
8275           allow_undefined_flag=' ${wl}-berok'
8276           # Exported symbols can be pulled into shared objects from archives
8277           whole_archive_flag_spec='$convenience'
8278           archive_cmds_need_lc=yes
8279           # This is similar to how AIX traditionally builds its shared libraries.
8280           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'
8281         fi
8282       fi
8283       ;;
8284
8285     amigaos*)
8286       case $host_cpu in
8287       powerpc)
8288             # see comment about AmigaOS4 .so support
8289             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290             archive_expsym_cmds=''
8291         ;;
8292       m68k)
8293             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)'
8294             hardcode_libdir_flag_spec='-L$libdir'
8295             hardcode_minus_L=yes
8296         ;;
8297       esac
8298       ;;
8299
8300     bsdi[45]*)
8301       export_dynamic_flag_spec=-rdynamic
8302       ;;
8303
8304     cygwin* | mingw* | pw32* | cegcc*)
8305       # When not using gcc, we currently assume that we are using
8306       # Microsoft Visual C++.
8307       # hardcode_libdir_flag_spec is actually meaningless, as there is
8308       # no search path for DLLs.
8309       hardcode_libdir_flag_spec=' '
8310       allow_undefined_flag=unsupported
8311       # Tell ltmain to make .lib files, not .a files.
8312       libext=lib
8313       # Tell ltmain to make .dll files, not .so files.
8314       shrext_cmds=".dll"
8315       # FIXME: Setting linknames here is a bad hack.
8316       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8317       # The linker will automatically build a .lib file if we build a DLL.
8318       old_archive_from_new_cmds='true'
8319       # FIXME: Should let the user specify the lib program.
8320       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8321       fix_srcfile_path='`cygpath -w "$srcfile"`'
8322       enable_shared_with_static_runtimes=yes
8323       ;;
8324
8325     darwin* | rhapsody*)
8326
8327
8328   archive_cmds_need_lc=no
8329   hardcode_direct=no
8330   hardcode_automatic=yes
8331   hardcode_shlibpath_var=unsupported
8332   whole_archive_flag_spec=''
8333   link_all_deplibs=yes
8334   allow_undefined_flag="$_lt_dar_allow_undefined"
8335   case $cc_basename in
8336      ifort*) _lt_dar_can_shared=yes ;;
8337      *) _lt_dar_can_shared=$GCC ;;
8338   esac
8339   if test "$_lt_dar_can_shared" = "yes"; then
8340     output_verbose_link_cmd=echo
8341     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8342     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8343     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}"
8344     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}"
8345
8346   else
8347   ld_shlibs=no
8348   fi
8349
8350       ;;
8351
8352     dgux*)
8353       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8354       hardcode_libdir_flag_spec='-L$libdir'
8355       hardcode_shlibpath_var=no
8356       ;;
8357
8358     freebsd1*)
8359       ld_shlibs=no
8360       ;;
8361
8362     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8363     # support.  Future versions do this automatically, but an explicit c++rt0.o
8364     # does not break anything, and helps significantly (at the cost of a little
8365     # extra space).
8366     freebsd2.2*)
8367       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8368       hardcode_libdir_flag_spec='-R$libdir'
8369       hardcode_direct=yes
8370       hardcode_shlibpath_var=no
8371       ;;
8372
8373     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8374     freebsd2*)
8375       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8376       hardcode_direct=yes
8377       hardcode_minus_L=yes
8378       hardcode_shlibpath_var=no
8379       ;;
8380
8381     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8382     freebsd* | dragonfly*)
8383       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8384       hardcode_libdir_flag_spec='-R$libdir'
8385       hardcode_direct=yes
8386       hardcode_shlibpath_var=no
8387       ;;
8388
8389     hpux9*)
8390       if test "$GCC" = yes; then
8391         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'
8392       else
8393         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'
8394       fi
8395       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8396       hardcode_libdir_separator=:
8397       hardcode_direct=yes
8398
8399       # hardcode_minus_L: Not really in the search PATH,
8400       # but as the default location of the library.
8401       hardcode_minus_L=yes
8402       export_dynamic_flag_spec='${wl}-E'
8403       ;;
8404
8405     hpux10*)
8406       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8407         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8408       else
8409         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8410       fi
8411       if test "$with_gnu_ld" = no; then
8412         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8413         hardcode_libdir_flag_spec_ld='+b $libdir'
8414         hardcode_libdir_separator=:
8415         hardcode_direct=yes
8416         hardcode_direct_absolute=yes
8417         export_dynamic_flag_spec='${wl}-E'
8418         # hardcode_minus_L: Not really in the search PATH,
8419         # but as the default location of the library.
8420         hardcode_minus_L=yes
8421       fi
8422       ;;
8423
8424     hpux11*)
8425       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8426         case $host_cpu in
8427         hppa*64*)
8428           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8429           ;;
8430         ia64*)
8431           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8432           ;;
8433         *)
8434           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8435           ;;
8436         esac
8437       else
8438         case $host_cpu in
8439         hppa*64*)
8440           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8441           ;;
8442         ia64*)
8443           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8444           ;;
8445         *)
8446           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8447           ;;
8448         esac
8449       fi
8450       if test "$with_gnu_ld" = no; then
8451         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8452         hardcode_libdir_separator=:
8453
8454         case $host_cpu in
8455         hppa*64*|ia64*)
8456           hardcode_direct=no
8457           hardcode_shlibpath_var=no
8458           ;;
8459         *)
8460           hardcode_direct=yes
8461           hardcode_direct_absolute=yes
8462           export_dynamic_flag_spec='${wl}-E'
8463
8464           # hardcode_minus_L: Not really in the search PATH,
8465           # but as the default location of the library.
8466           hardcode_minus_L=yes
8467           ;;
8468         esac
8469       fi
8470       ;;
8471
8472     irix5* | irix6* | nonstopux*)
8473       if test "$GCC" = yes; then
8474         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'
8475         # Try to use the -exported_symbol ld option, if it does not
8476         # work, assume that -exports_file does not work either and
8477         # implicitly export all symbols.
8478         save_LDFLAGS="$LDFLAGS"
8479         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8480         cat >conftest.$ac_ext <<_ACEOF
8481 int foo(void) {}
8482 _ACEOF
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (ac_try="$ac_link"
8485 case "(($ac_try" in
8486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487   *) ac_try_echo=$ac_try;;
8488 esac
8489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8490 $as_echo "$ac_try_echo") >&5
8491   (eval "$ac_link") 2>conftest.er1
8492   ac_status=$?
8493   grep -v '^ *+' conftest.er1 >conftest.err
8494   rm -f conftest.er1
8495   cat conftest.err >&5
8496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); } && {
8498          test -z "$ac_c_werror_flag" ||
8499          test ! -s conftest.err
8500        } && test -s conftest$ac_exeext && {
8501          test "$cross_compiling" = yes ||
8502          $as_test_x conftest$ac_exeext
8503        }; then
8504   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'
8505
8506 else
8507   $as_echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8509
8510
8511 fi
8512
8513 rm -rf conftest.dSYM
8514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8515       conftest$ac_exeext conftest.$ac_ext
8516         LDFLAGS="$save_LDFLAGS"
8517       else
8518         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'
8519         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'
8520       fi
8521       archive_cmds_need_lc='no'
8522       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8523       hardcode_libdir_separator=:
8524       inherit_rpath=yes
8525       link_all_deplibs=yes
8526       ;;
8527
8528     netbsd*)
8529       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8530         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8531       else
8532         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8533       fi
8534       hardcode_libdir_flag_spec='-R$libdir'
8535       hardcode_direct=yes
8536       hardcode_shlibpath_var=no
8537       ;;
8538
8539     newsos6)
8540       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8541       hardcode_direct=yes
8542       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8543       hardcode_libdir_separator=:
8544       hardcode_shlibpath_var=no
8545       ;;
8546
8547     *nto* | *qnx*)
8548       ;;
8549
8550     openbsd*)
8551       if test -f /usr/libexec/ld.so; then
8552         hardcode_direct=yes
8553         hardcode_shlibpath_var=no
8554         hardcode_direct_absolute=yes
8555         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8556           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8557           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8558           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8559           export_dynamic_flag_spec='${wl}-E'
8560         else
8561           case $host_os in
8562            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8563              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8564              hardcode_libdir_flag_spec='-R$libdir'
8565              ;;
8566            *)
8567              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8568              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8569              ;;
8570           esac
8571         fi
8572       else
8573         ld_shlibs=no
8574       fi
8575       ;;
8576
8577     os2*)
8578       hardcode_libdir_flag_spec='-L$libdir'
8579       hardcode_minus_L=yes
8580       allow_undefined_flag=unsupported
8581       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'
8582       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8583       ;;
8584
8585     osf3*)
8586       if test "$GCC" = yes; then
8587         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8588         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'
8589       else
8590         allow_undefined_flag=' -expect_unresolved \*'
8591         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'
8592       fi
8593       archive_cmds_need_lc='no'
8594       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8595       hardcode_libdir_separator=:
8596       ;;
8597
8598     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8599       if test "$GCC" = yes; then
8600         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8601         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'
8602         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8603       else
8604         allow_undefined_flag=' -expect_unresolved \*'
8605         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'
8606         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~
8607         $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'
8608
8609         # Both c and cxx compiler support -rpath directly
8610         hardcode_libdir_flag_spec='-rpath $libdir'
8611       fi
8612       archive_cmds_need_lc='no'
8613       hardcode_libdir_separator=:
8614       ;;
8615
8616     solaris*)
8617       no_undefined_flag=' -z defs'
8618       if test "$GCC" = yes; then
8619         wlarc='${wl}'
8620         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8621         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8622           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8623       else
8624         case `$CC -V 2>&1` in
8625         *"Compilers 5.0"*)
8626           wlarc=''
8627           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8628           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8629           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8630           ;;
8631         *)
8632           wlarc='${wl}'
8633           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8634           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8635           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8636           ;;
8637         esac
8638       fi
8639       hardcode_libdir_flag_spec='-R$libdir'
8640       hardcode_shlibpath_var=no
8641       case $host_os in
8642       solaris2.[0-5] | solaris2.[0-5].*) ;;
8643       *)
8644         # The compiler driver will combine and reorder linker options,
8645         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8646         # but is careful enough not to reorder.
8647         # Supported since Solaris 2.6 (maybe 2.5.1?)
8648         if test "$GCC" = yes; then
8649           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8650         else
8651           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8652         fi
8653         ;;
8654       esac
8655       link_all_deplibs=yes
8656       ;;
8657
8658     sunos4*)
8659       if test "x$host_vendor" = xsequent; then
8660         # Use $CC to link under sequent, because it throws in some extra .o
8661         # files that make .init and .fini sections work.
8662         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8663       else
8664         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8665       fi
8666       hardcode_libdir_flag_spec='-L$libdir'
8667       hardcode_direct=yes
8668       hardcode_minus_L=yes
8669       hardcode_shlibpath_var=no
8670       ;;
8671
8672     sysv4)
8673       case $host_vendor in
8674         sni)
8675           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8676           hardcode_direct=yes # is this really true???
8677         ;;
8678         siemens)
8679           ## LD is ld it makes a PLAMLIB
8680           ## CC just makes a GrossModule.
8681           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8682           reload_cmds='$CC -r -o $output$reload_objs'
8683           hardcode_direct=no
8684         ;;
8685         motorola)
8686           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8687           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8688         ;;
8689       esac
8690       runpath_var='LD_RUN_PATH'
8691       hardcode_shlibpath_var=no
8692       ;;
8693
8694     sysv4.3*)
8695       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8696       hardcode_shlibpath_var=no
8697       export_dynamic_flag_spec='-Bexport'
8698       ;;
8699
8700     sysv4*MP*)
8701       if test -d /usr/nec; then
8702         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8703         hardcode_shlibpath_var=no
8704         runpath_var=LD_RUN_PATH
8705         hardcode_runpath_var=yes
8706         ld_shlibs=yes
8707       fi
8708       ;;
8709
8710     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8711       no_undefined_flag='${wl}-z,text'
8712       archive_cmds_need_lc=no
8713       hardcode_shlibpath_var=no
8714       runpath_var='LD_RUN_PATH'
8715
8716       if test "$GCC" = yes; then
8717         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8718         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8719       else
8720         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8721         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8722       fi
8723       ;;
8724
8725     sysv5* | sco3.2v5* | sco5v6*)
8726       # Note: We can NOT use -z defs as we might desire, because we do not
8727       # link with -lc, and that would cause any symbols used from libc to
8728       # always be unresolved, which means just about no library would
8729       # ever link correctly.  If we're not using GNU ld we use -z text
8730       # though, which does catch some bad symbols but isn't as heavy-handed
8731       # as -z defs.
8732       no_undefined_flag='${wl}-z,text'
8733       allow_undefined_flag='${wl}-z,nodefs'
8734       archive_cmds_need_lc=no
8735       hardcode_shlibpath_var=no
8736       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8737       hardcode_libdir_separator=':'
8738       link_all_deplibs=yes
8739       export_dynamic_flag_spec='${wl}-Bexport'
8740       runpath_var='LD_RUN_PATH'
8741
8742       if test "$GCC" = yes; then
8743         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8744         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8745       else
8746         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8748       fi
8749       ;;
8750
8751     uts4*)
8752       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8753       hardcode_libdir_flag_spec='-L$libdir'
8754       hardcode_shlibpath_var=no
8755       ;;
8756
8757     *)
8758       ld_shlibs=no
8759       ;;
8760     esac
8761
8762     if test x$host_vendor = xsni; then
8763       case $host in
8764       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8765         export_dynamic_flag_spec='${wl}-Blargedynsym'
8766         ;;
8767       esac
8768     fi
8769   fi
8770
8771 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8772 $as_echo "$ld_shlibs" >&6; }
8773 test "$ld_shlibs" = no && can_build_shared=no
8774
8775 with_gnu_ld=$with_gnu_ld
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791 #
8792 # Do we need to explicitly link libc?
8793 #
8794 case "x$archive_cmds_need_lc" in
8795 x|xyes)
8796   # Assume -lc should be added
8797   archive_cmds_need_lc=yes
8798
8799   if test "$enable_shared" = yes && test "$GCC" = yes; then
8800     case $archive_cmds in
8801     *'~'*)
8802       # FIXME: we may have to deal with multi-command sequences.
8803       ;;
8804     '$CC '*)
8805       # Test whether the compiler implicitly links with -lc since on some
8806       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8807       # to ld, don't add -lc before -lgcc.
8808       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8809 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8810       $RM conftest*
8811       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8812
8813       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8814   (eval $ac_compile) 2>&5
8815   ac_status=$?
8816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817   (exit $ac_status); } 2>conftest.err; then
8818         soname=conftest
8819         lib=conftest
8820         libobjs=conftest.$ac_objext
8821         deplibs=
8822         wl=$lt_prog_compiler_wl
8823         pic_flag=$lt_prog_compiler_pic
8824         compiler_flags=-v
8825         linker_flags=-v
8826         verstring=
8827         output_objdir=.
8828         libname=conftest
8829         lt_save_allow_undefined_flag=$allow_undefined_flag
8830         allow_undefined_flag=
8831         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8832   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8833   ac_status=$?
8834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835   (exit $ac_status); }
8836         then
8837           archive_cmds_need_lc=no
8838         else
8839           archive_cmds_need_lc=yes
8840         fi
8841         allow_undefined_flag=$lt_save_allow_undefined_flag
8842       else
8843         cat conftest.err 1>&5
8844       fi
8845       $RM conftest*
8846       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8847 $as_echo "$archive_cmds_need_lc" >&6; }
8848       ;;
8849     esac
8850   fi
8851   ;;
8852 esac
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9011 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9012
9013 if test "$GCC" = yes; then
9014   case $host_os in
9015     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9016     *) lt_awk_arg="/^libraries:/" ;;
9017   esac
9018   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9019   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9020     # if the path contains ";" then we assume it to be the separator
9021     # otherwise default to the standard path separator (i.e. ":") - it is
9022     # assumed that no part of a normal pathname contains ";" but that should
9023     # okay in the real world where ";" in dirpaths is itself problematic.
9024     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9025   else
9026     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9027   fi
9028   # Ok, now we have the path, separated by spaces, we can step through it
9029   # and add multilib dir if necessary.
9030   lt_tmp_lt_search_path_spec=
9031   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9032   for lt_sys_path in $lt_search_path_spec; do
9033     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9034       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9035     else
9036       test -d "$lt_sys_path" && \
9037         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9038     fi
9039   done
9040   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9041 BEGIN {RS=" "; FS="/|\n";} {
9042   lt_foo="";
9043   lt_count=0;
9044   for (lt_i = NF; lt_i > 0; lt_i--) {
9045     if ($lt_i != "" && $lt_i != ".") {
9046       if ($lt_i == "..") {
9047         lt_count++;
9048       } else {
9049         if (lt_count == 0) {
9050           lt_foo="/" $lt_i lt_foo;
9051         } else {
9052           lt_count--;
9053         }
9054       }
9055     }
9056   }
9057   if (lt_foo != "") { lt_freq[lt_foo]++; }
9058   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9059 }'`
9060   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9061 else
9062   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9063 fi
9064 library_names_spec=
9065 libname_spec='lib$name'
9066 soname_spec=
9067 shrext_cmds=".so"
9068 postinstall_cmds=
9069 postuninstall_cmds=
9070 finish_cmds=
9071 finish_eval=
9072 shlibpath_var=
9073 shlibpath_overrides_runpath=unknown
9074 version_type=none
9075 dynamic_linker="$host_os ld.so"
9076 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9077 need_lib_prefix=unknown
9078 hardcode_into_libs=no
9079
9080 # when you set need_version to no, make sure it does not cause -set_version
9081 # flags to be left without arguments
9082 need_version=unknown
9083
9084 case $host_os in
9085 aix3*)
9086   version_type=linux
9087   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9088   shlibpath_var=LIBPATH
9089
9090   # AIX 3 has no versioning support, so we append a major version to the name.
9091   soname_spec='${libname}${release}${shared_ext}$major'
9092   ;;
9093
9094 aix[4-9]*)
9095   version_type=linux
9096   need_lib_prefix=no
9097   need_version=no
9098   hardcode_into_libs=yes
9099   if test "$host_cpu" = ia64; then
9100     # AIX 5 supports IA64
9101     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9102     shlibpath_var=LD_LIBRARY_PATH
9103   else
9104     # With GCC up to 2.95.x, collect2 would create an import file
9105     # for dependence libraries.  The import file would start with
9106     # the line `#! .'.  This would cause the generated library to
9107     # depend on `.', always an invalid library.  This was fixed in
9108     # development snapshots of GCC prior to 3.0.
9109     case $host_os in
9110       aix4 | aix4.[01] | aix4.[01].*)
9111       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9112            echo ' yes '
9113            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9114         :
9115       else
9116         can_build_shared=no
9117       fi
9118       ;;
9119     esac
9120     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9121     # soname into executable. Probably we can add versioning support to
9122     # collect2, so additional links can be useful in future.
9123     if test "$aix_use_runtimelinking" = yes; then
9124       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9125       # instead of lib<name>.a to let people know that these are not
9126       # typical AIX shared libraries.
9127       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9128     else
9129       # We preserve .a as extension for shared libraries through AIX4.2
9130       # and later when we are not doing run time linking.
9131       library_names_spec='${libname}${release}.a $libname.a'
9132       soname_spec='${libname}${release}${shared_ext}$major'
9133     fi
9134     shlibpath_var=LIBPATH
9135   fi
9136   ;;
9137
9138 amigaos*)
9139   case $host_cpu in
9140   powerpc)
9141     # Since July 2007 AmigaOS4 officially supports .so libraries.
9142     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9143     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144     ;;
9145   m68k)
9146     library_names_spec='$libname.ixlibrary $libname.a'
9147     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9148     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'
9149     ;;
9150   esac
9151   ;;
9152
9153 beos*)
9154   library_names_spec='${libname}${shared_ext}'
9155   dynamic_linker="$host_os ld.so"
9156   shlibpath_var=LIBRARY_PATH
9157   ;;
9158
9159 bsdi[45]*)
9160   version_type=linux
9161   need_version=no
9162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9163   soname_spec='${libname}${release}${shared_ext}$major'
9164   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9165   shlibpath_var=LD_LIBRARY_PATH
9166   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9167   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9168   # the default ld.so.conf also contains /usr/contrib/lib and
9169   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9170   # libtool to hard-code these into programs
9171   ;;
9172
9173 cygwin* | mingw* | pw32* | cegcc*)
9174   version_type=windows
9175   shrext_cmds=".dll"
9176   need_version=no
9177   need_lib_prefix=no
9178
9179   case $GCC,$host_os in
9180   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9181     library_names_spec='$libname.dll.a'
9182     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9183     postinstall_cmds='base_file=`basename \${file}`~
9184       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9185       dldir=$destdir/`dirname \$dlpath`~
9186       test -d \$dldir || mkdir -p \$dldir~
9187       $install_prog $dir/$dlname \$dldir/$dlname~
9188       chmod a+x \$dldir/$dlname~
9189       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9190         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9191       fi'
9192     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9193       dlpath=$dir/\$dldll~
9194        $RM \$dlpath'
9195     shlibpath_overrides_runpath=yes
9196
9197     case $host_os in
9198     cygwin*)
9199       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9200       #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9201       soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
9202       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9203       ;;
9204     mingw* | cegcc*)
9205       # MinGW DLLs use traditional 'lib' prefix
9206       #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9207       soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
9208       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9209       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9210         # It is most probably a Windows format PATH printed by
9211         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9212         # path with ; separators, and with drive letters. We can handle the
9213         # drive letters (cygwin fileutils understands them), so leave them,
9214         # especially as we might pass files found there to a mingw objdump,
9215         # which wouldn't understand a cygwinified path. Ahh.
9216         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9217       else
9218         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9219       fi
9220       ;;
9221     pw32*)
9222       # pw32 DLLs use 'pw' prefix rather than 'lib'
9223       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9224       ;;
9225     esac
9226     ;;
9227
9228   *)
9229     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9230     ;;
9231   esac
9232   dynamic_linker='Win32 ld.exe'
9233   # FIXME: first we should search . and the directory the executable is in
9234   shlibpath_var=PATH
9235   ;;
9236
9237 darwin* | rhapsody*)
9238   dynamic_linker="$host_os dyld"
9239   version_type=darwin
9240   need_lib_prefix=no
9241   need_version=no
9242   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9243   soname_spec='${libname}${release}${major}$shared_ext'
9244   shlibpath_overrides_runpath=yes
9245   shlibpath_var=DYLD_LIBRARY_PATH
9246   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9247
9248   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9249   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9250   ;;
9251
9252 dgux*)
9253   version_type=linux
9254   need_lib_prefix=no
9255   need_version=no
9256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9257   soname_spec='${libname}${release}${shared_ext}$major'
9258   shlibpath_var=LD_LIBRARY_PATH
9259   ;;
9260
9261 freebsd1*)
9262   dynamic_linker=no
9263   ;;
9264
9265 freebsd* | dragonfly*)
9266   # DragonFly does not have aout.  When/if they implement a new
9267   # versioning mechanism, adjust this.
9268   if test -x /usr/bin/objformat; then
9269     objformat=`/usr/bin/objformat`
9270   else
9271     case $host_os in
9272     freebsd[123]*) objformat=aout ;;
9273     *) objformat=elf ;;
9274     esac
9275   fi
9276   version_type=freebsd-$objformat
9277   case $version_type in
9278     freebsd-elf*)
9279       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9280       need_version=no
9281       need_lib_prefix=no
9282       ;;
9283     freebsd-*)
9284       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9285       need_version=yes
9286       ;;
9287   esac
9288   shlibpath_var=LD_LIBRARY_PATH
9289   case $host_os in
9290   freebsd2*)
9291     shlibpath_overrides_runpath=yes
9292     ;;
9293   freebsd3.[01]* | freebsdelf3.[01]*)
9294     shlibpath_overrides_runpath=yes
9295     hardcode_into_libs=yes
9296     ;;
9297   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9298   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9299     shlibpath_overrides_runpath=no
9300     hardcode_into_libs=yes
9301     ;;
9302   *) # from 4.6 on, and DragonFly
9303     shlibpath_overrides_runpath=yes
9304     hardcode_into_libs=yes
9305     ;;
9306   esac
9307   ;;
9308
9309 gnu*)
9310   version_type=linux
9311   need_lib_prefix=no
9312   need_version=no
9313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9314   soname_spec='${libname}${release}${shared_ext}$major'
9315   shlibpath_var=LD_LIBRARY_PATH
9316   hardcode_into_libs=yes
9317   ;;
9318
9319 hpux9* | hpux10* | hpux11*)
9320   # Give a soname corresponding to the major version so that dld.sl refuses to
9321   # link against other versions.
9322   version_type=sunos
9323   need_lib_prefix=no
9324   need_version=no
9325   case $host_cpu in
9326   ia64*)
9327     shrext_cmds='.so'
9328     hardcode_into_libs=yes
9329     dynamic_linker="$host_os dld.so"
9330     shlibpath_var=LD_LIBRARY_PATH
9331     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9332     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9333     soname_spec='${libname}${release}${shared_ext}$major'
9334     if test "X$HPUX_IA64_MODE" = X32; then
9335       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9336     else
9337       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9338     fi
9339     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9340     ;;
9341   hppa*64*)
9342     shrext_cmds='.sl'
9343     hardcode_into_libs=yes
9344     dynamic_linker="$host_os dld.sl"
9345     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9346     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9347     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348     soname_spec='${libname}${release}${shared_ext}$major'
9349     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9350     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9351     ;;
9352   *)
9353     shrext_cmds='.sl'
9354     dynamic_linker="$host_os dld.sl"
9355     shlibpath_var=SHLIB_PATH
9356     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358     soname_spec='${libname}${release}${shared_ext}$major'
9359     ;;
9360   esac
9361   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9362   postinstall_cmds='chmod 555 $lib'
9363   ;;
9364
9365 interix[3-9]*)
9366   version_type=linux
9367   need_lib_prefix=no
9368   need_version=no
9369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9370   soname_spec='${libname}${release}${shared_ext}$major'
9371   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9372   shlibpath_var=LD_LIBRARY_PATH
9373   shlibpath_overrides_runpath=no
9374   hardcode_into_libs=yes
9375   ;;
9376
9377 irix5* | irix6* | nonstopux*)
9378   case $host_os in
9379     nonstopux*) version_type=nonstopux ;;
9380     *)
9381         if test "$lt_cv_prog_gnu_ld" = yes; then
9382                 version_type=linux
9383         else
9384                 version_type=irix
9385         fi ;;
9386   esac
9387   need_lib_prefix=no
9388   need_version=no
9389   soname_spec='${libname}${release}${shared_ext}$major'
9390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9391   case $host_os in
9392   irix5* | nonstopux*)
9393     libsuff= shlibsuff=
9394     ;;
9395   *)
9396     case $LD in # libtool.m4 will add one of these switches to LD
9397     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9398       libsuff= shlibsuff= libmagic=32-bit;;
9399     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9400       libsuff=32 shlibsuff=N32 libmagic=N32;;
9401     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9402       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9403     *) libsuff= shlibsuff= libmagic=never-match;;
9404     esac
9405     ;;
9406   esac
9407   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9408   shlibpath_overrides_runpath=no
9409   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9410   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9411   hardcode_into_libs=yes
9412   ;;
9413
9414 # No shared lib support for Linux oldld, aout, or coff.
9415 linux*oldld* | linux*aout* | linux*coff*)
9416   dynamic_linker=no
9417   ;;
9418
9419 # This must be Linux ELF.
9420 linux* | k*bsd*-gnu)
9421   version_type=linux
9422   need_lib_prefix=no
9423   need_version=no
9424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9425   soname_spec='${libname}${release}${shared_ext}$major'
9426   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9427   shlibpath_var=LD_LIBRARY_PATH
9428   shlibpath_overrides_runpath=no
9429   # Some binutils ld are patched to set DT_RUNPATH
9430   save_LDFLAGS=$LDFLAGS
9431   save_libdir=$libdir
9432   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9433        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9434   cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h.  */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h.  */
9440
9441 int
9442 main ()
9443 {
9444
9445   ;
9446   return 0;
9447 }
9448 _ACEOF
9449 rm -f conftest.$ac_objext conftest$ac_exeext
9450 if { (ac_try="$ac_link"
9451 case "(($ac_try" in
9452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453   *) ac_try_echo=$ac_try;;
9454 esac
9455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9456 $as_echo "$ac_try_echo") >&5
9457   (eval "$ac_link") 2>conftest.er1
9458   ac_status=$?
9459   grep -v '^ *+' conftest.er1 >conftest.err
9460   rm -f conftest.er1
9461   cat conftest.err >&5
9462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); } && {
9464          test -z "$ac_c_werror_flag" ||
9465          test ! -s conftest.err
9466        } && test -s conftest$ac_exeext && {
9467          test "$cross_compiling" = yes ||
9468          $as_test_x conftest$ac_exeext
9469        }; then
9470   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9471   shlibpath_overrides_runpath=yes
9472 fi
9473
9474 else
9475   $as_echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9477
9478
9479 fi
9480
9481 rm -rf conftest.dSYM
9482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9483       conftest$ac_exeext conftest.$ac_ext
9484   LDFLAGS=$save_LDFLAGS
9485   libdir=$save_libdir
9486
9487   # This implies no fast_install, which is unacceptable.
9488   # Some rework will be needed to allow for fast_install
9489   # before this can be enabled.
9490   hardcode_into_libs=yes
9491
9492   # Append ld.so.conf contents to the search path
9493   if test -f /etc/ld.so.conf; then
9494     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' ' '`
9495     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9496   fi
9497
9498   # We used to test for /lib/ld.so.1 and disable shared libraries on
9499   # powerpc, because MkLinux only supported shared libraries with the
9500   # GNU dynamic linker.  Since this was broken with cross compilers,
9501   # most powerpc-linux boxes support dynamic linking these days and
9502   # people can always --disable-shared, the test was removed, and we
9503   # assume the GNU/Linux dynamic linker is in use.
9504   dynamic_linker='GNU/Linux ld.so'
9505   ;;
9506
9507 netbsd*)
9508   version_type=sunos
9509   need_lib_prefix=no
9510   need_version=no
9511   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9512     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9513     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9514     dynamic_linker='NetBSD (a.out) ld.so'
9515   else
9516     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9517     soname_spec='${libname}${release}${shared_ext}$major'
9518     dynamic_linker='NetBSD ld.elf_so'
9519   fi
9520   shlibpath_var=LD_LIBRARY_PATH
9521   shlibpath_overrides_runpath=yes
9522   hardcode_into_libs=yes
9523   ;;
9524
9525 newsos6)
9526   version_type=linux
9527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528   shlibpath_var=LD_LIBRARY_PATH
9529   shlibpath_overrides_runpath=yes
9530   ;;
9531
9532 *nto* | *qnx*)
9533   version_type=qnx
9534   need_lib_prefix=no
9535   need_version=no
9536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537   soname_spec='${libname}${release}${shared_ext}$major'
9538   shlibpath_var=LD_LIBRARY_PATH
9539   shlibpath_overrides_runpath=no
9540   hardcode_into_libs=yes
9541   dynamic_linker='ldqnx.so'
9542   ;;
9543
9544 openbsd*)
9545   version_type=sunos
9546   sys_lib_dlsearch_path_spec="/usr/lib"
9547   need_lib_prefix=no
9548   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9549   case $host_os in
9550     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9551     *)                          need_version=no  ;;
9552   esac
9553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9554   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9555   shlibpath_var=LD_LIBRARY_PATH
9556   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9557     case $host_os in
9558       openbsd2.[89] | openbsd2.[89].*)
9559         shlibpath_overrides_runpath=no
9560         ;;
9561       *)
9562         shlibpath_overrides_runpath=yes
9563         ;;
9564       esac
9565   else
9566     shlibpath_overrides_runpath=yes
9567   fi
9568   ;;
9569
9570 os2*)
9571   libname_spec='$name'
9572   shrext_cmds=".dll"
9573   need_lib_prefix=no
9574   library_names_spec='$libname${shared_ext} $libname.a'
9575   dynamic_linker='OS/2 ld.exe'
9576   shlibpath_var=LIBPATH
9577   ;;
9578
9579 osf3* | osf4* | osf5*)
9580   version_type=osf
9581   need_lib_prefix=no
9582   need_version=no
9583   soname_spec='${libname}${release}${shared_ext}$major'
9584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585   shlibpath_var=LD_LIBRARY_PATH
9586   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9587   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9588   ;;
9589
9590 rdos*)
9591   dynamic_linker=no
9592   ;;
9593
9594 solaris*)
9595   version_type=linux
9596   need_lib_prefix=no
9597   need_version=no
9598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599   soname_spec='${libname}${release}${shared_ext}$major'
9600   shlibpath_var=LD_LIBRARY_PATH
9601   shlibpath_overrides_runpath=yes
9602   hardcode_into_libs=yes
9603   # ldd complains unless libraries are executable
9604   postinstall_cmds='chmod +x $lib'
9605   ;;
9606
9607 sunos4*)
9608   version_type=sunos
9609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9610   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9611   shlibpath_var=LD_LIBRARY_PATH
9612   shlibpath_overrides_runpath=yes
9613   if test "$with_gnu_ld" = yes; then
9614     need_lib_prefix=no
9615   fi
9616   need_version=yes
9617   ;;
9618
9619 sysv4 | sysv4.3*)
9620   version_type=linux
9621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622   soname_spec='${libname}${release}${shared_ext}$major'
9623   shlibpath_var=LD_LIBRARY_PATH
9624   case $host_vendor in
9625     sni)
9626       shlibpath_overrides_runpath=no
9627       need_lib_prefix=no
9628       runpath_var=LD_RUN_PATH
9629       ;;
9630     siemens)
9631       need_lib_prefix=no
9632       ;;
9633     motorola)
9634       need_lib_prefix=no
9635       need_version=no
9636       shlibpath_overrides_runpath=no
9637       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9638       ;;
9639   esac
9640   ;;
9641
9642 sysv4*MP*)
9643   if test -d /usr/nec ;then
9644     version_type=linux
9645     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9646     soname_spec='$libname${shared_ext}.$major'
9647     shlibpath_var=LD_LIBRARY_PATH
9648   fi
9649   ;;
9650
9651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9652   version_type=freebsd-elf
9653   need_lib_prefix=no
9654   need_version=no
9655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9656   soname_spec='${libname}${release}${shared_ext}$major'
9657   shlibpath_var=LD_LIBRARY_PATH
9658   shlibpath_overrides_runpath=yes
9659   hardcode_into_libs=yes
9660   if test "$with_gnu_ld" = yes; then
9661     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9662   else
9663     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9664     case $host_os in
9665       sco3.2v5*)
9666         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9667         ;;
9668     esac
9669   fi
9670   sys_lib_dlsearch_path_spec='/usr/lib'
9671   ;;
9672
9673 tpf*)
9674   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9675   version_type=linux
9676   need_lib_prefix=no
9677   need_version=no
9678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679   shlibpath_var=LD_LIBRARY_PATH
9680   shlibpath_overrides_runpath=no
9681   hardcode_into_libs=yes
9682   ;;
9683
9684 uts4*)
9685   version_type=linux
9686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687   soname_spec='${libname}${release}${shared_ext}$major'
9688   shlibpath_var=LD_LIBRARY_PATH
9689   ;;
9690
9691 *)
9692   dynamic_linker=no
9693   ;;
9694 esac
9695 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9696 $as_echo "$dynamic_linker" >&6; }
9697 test "$dynamic_linker" = no && can_build_shared=no
9698
9699 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9700 if test "$GCC" = yes; then
9701   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9702 fi
9703
9704 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9705   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9706 fi
9707 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9708   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9709 fi
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9798 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9799 hardcode_action=
9800 if test -n "$hardcode_libdir_flag_spec" ||
9801    test -n "$runpath_var" ||
9802    test "X$hardcode_automatic" = "Xyes" ; then
9803
9804   # We can hardcode non-existent directories.
9805   if test "$hardcode_direct" != no &&
9806      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9807      # have to relink, otherwise we might link with an installed library
9808      # when we should be linking with a yet-to-be-installed one
9809      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9810      test "$hardcode_minus_L" != no; then
9811     # Linking always hardcodes the temporary library directory.
9812     hardcode_action=relink
9813   else
9814     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9815     hardcode_action=immediate
9816   fi
9817 else
9818   # We cannot hardcode anything, or else we can only hardcode existing
9819   # directories.
9820   hardcode_action=unsupported
9821 fi
9822 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9823 $as_echo "$hardcode_action" >&6; }
9824
9825 if test "$hardcode_action" = relink ||
9826    test "$inherit_rpath" = yes; then
9827   # Fast installation is not supported
9828   enable_fast_install=no
9829 elif test "$shlibpath_overrides_runpath" = yes ||
9830      test "$enable_shared" = no; then
9831   # Fast installation is not necessary
9832   enable_fast_install=needless
9833 fi
9834
9835
9836
9837
9838
9839
9840   if test "x$enable_dlopen" != xyes; then
9841   enable_dlopen=unknown
9842   enable_dlopen_self=unknown
9843   enable_dlopen_self_static=unknown
9844 else
9845   lt_cv_dlopen=no
9846   lt_cv_dlopen_libs=
9847
9848   case $host_os in
9849   beos*)
9850     lt_cv_dlopen="load_add_on"
9851     lt_cv_dlopen_libs=
9852     lt_cv_dlopen_self=yes
9853     ;;
9854
9855   mingw* | pw32* | cegcc*)
9856     lt_cv_dlopen="LoadLibrary"
9857     lt_cv_dlopen_libs=
9858     ;;
9859
9860   cygwin*)
9861     lt_cv_dlopen="dlopen"
9862     lt_cv_dlopen_libs=
9863     ;;
9864
9865   darwin*)
9866   # if libdl is installed we need to link against it
9867     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9868 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9869 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9870   $as_echo_n "(cached) " >&6
9871 else
9872   ac_check_lib_save_LIBS=$LIBS
9873 LIBS="-ldl  $LIBS"
9874 cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h.  */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h.  */
9880
9881 /* Override any GCC internal prototype to avoid an error.
9882    Use char because int might match the return type of a GCC
9883    builtin and then its argument prototype would still apply.  */
9884 #ifdef __cplusplus
9885 extern "C"
9886 #endif
9887 char dlopen ();
9888 int
9889 main ()
9890 {
9891 return dlopen ();
9892   ;
9893   return 0;
9894 }
9895 _ACEOF
9896 rm -f conftest.$ac_objext conftest$ac_exeext
9897 if { (ac_try="$ac_link"
9898 case "(($ac_try" in
9899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900   *) ac_try_echo=$ac_try;;
9901 esac
9902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9903 $as_echo "$ac_try_echo") >&5
9904   (eval "$ac_link") 2>conftest.er1
9905   ac_status=$?
9906   grep -v '^ *+' conftest.er1 >conftest.err
9907   rm -f conftest.er1
9908   cat conftest.err >&5
9909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); } && {
9911          test -z "$ac_c_werror_flag" ||
9912          test ! -s conftest.err
9913        } && test -s conftest$ac_exeext && {
9914          test "$cross_compiling" = yes ||
9915          $as_test_x conftest$ac_exeext
9916        }; then
9917   ac_cv_lib_dl_dlopen=yes
9918 else
9919   $as_echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9921
9922         ac_cv_lib_dl_dlopen=no
9923 fi
9924
9925 rm -rf conftest.dSYM
9926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9927       conftest$ac_exeext conftest.$ac_ext
9928 LIBS=$ac_check_lib_save_LIBS
9929 fi
9930 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9931 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9932 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9933   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9934 else
9935
9936     lt_cv_dlopen="dyld"
9937     lt_cv_dlopen_libs=
9938     lt_cv_dlopen_self=yes
9939
9940 fi
9941
9942     ;;
9943
9944   *)
9945     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9946 $as_echo_n "checking for shl_load... " >&6; }
9947 if test "${ac_cv_func_shl_load+set}" = set; then
9948   $as_echo_n "(cached) " >&6
9949 else
9950   cat >conftest.$ac_ext <<_ACEOF
9951 /* confdefs.h.  */
9952 _ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h.  */
9956 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9958 #define shl_load innocuous_shl_load
9959
9960 /* System header to define __stub macros and hopefully few prototypes,
9961     which can conflict with char shl_load (); below.
9962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9963     <limits.h> exists even on freestanding compilers.  */
9964
9965 #ifdef __STDC__
9966 # include <limits.h>
9967 #else
9968 # include <assert.h>
9969 #endif
9970
9971 #undef shl_load
9972
9973 /* Override any GCC internal prototype to avoid an error.
9974    Use char because int might match the return type of a GCC
9975    builtin and then its argument prototype would still apply.  */
9976 #ifdef __cplusplus
9977 extern "C"
9978 #endif
9979 char shl_load ();
9980 /* The GNU C library defines this for functions which it implements
9981     to always fail with ENOSYS.  Some functions are actually named
9982     something starting with __ and the normal name is an alias.  */
9983 #if defined __stub_shl_load || defined __stub___shl_load
9984 choke me
9985 #endif
9986
9987 int
9988 main ()
9989 {
9990 return shl_load ();
9991   ;
9992   return 0;
9993 }
9994 _ACEOF
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (ac_try="$ac_link"
9997 case "(($ac_try" in
9998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999   *) ac_try_echo=$ac_try;;
10000 esac
10001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10002 $as_echo "$ac_try_echo") >&5
10003   (eval "$ac_link") 2>conftest.er1
10004   ac_status=$?
10005   grep -v '^ *+' conftest.er1 >conftest.err
10006   rm -f conftest.er1
10007   cat conftest.err >&5
10008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); } && {
10010          test -z "$ac_c_werror_flag" ||
10011          test ! -s conftest.err
10012        } && test -s conftest$ac_exeext && {
10013          test "$cross_compiling" = yes ||
10014          $as_test_x conftest$ac_exeext
10015        }; then
10016   ac_cv_func_shl_load=yes
10017 else
10018   $as_echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10020
10021         ac_cv_func_shl_load=no
10022 fi
10023
10024 rm -rf conftest.dSYM
10025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10026       conftest$ac_exeext conftest.$ac_ext
10027 fi
10028 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10029 $as_echo "$ac_cv_func_shl_load" >&6; }
10030 if test "x$ac_cv_func_shl_load" = x""yes; then
10031   lt_cv_dlopen="shl_load"
10032 else
10033   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10034 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10035 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10036   $as_echo_n "(cached) " >&6
10037 else
10038   ac_check_lib_save_LIBS=$LIBS
10039 LIBS="-ldld  $LIBS"
10040 cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h.  */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h.  */
10046
10047 /* Override any GCC internal prototype to avoid an error.
10048    Use char because int might match the return type of a GCC
10049    builtin and then its argument prototype would still apply.  */
10050 #ifdef __cplusplus
10051 extern "C"
10052 #endif
10053 char shl_load ();
10054 int
10055 main ()
10056 {
10057 return shl_load ();
10058   ;
10059   return 0;
10060 }
10061 _ACEOF
10062 rm -f conftest.$ac_objext conftest$ac_exeext
10063 if { (ac_try="$ac_link"
10064 case "(($ac_try" in
10065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066   *) ac_try_echo=$ac_try;;
10067 esac
10068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10069 $as_echo "$ac_try_echo") >&5
10070   (eval "$ac_link") 2>conftest.er1
10071   ac_status=$?
10072   grep -v '^ *+' conftest.er1 >conftest.err
10073   rm -f conftest.er1
10074   cat conftest.err >&5
10075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); } && {
10077          test -z "$ac_c_werror_flag" ||
10078          test ! -s conftest.err
10079        } && test -s conftest$ac_exeext && {
10080          test "$cross_compiling" = yes ||
10081          $as_test_x conftest$ac_exeext
10082        }; then
10083   ac_cv_lib_dld_shl_load=yes
10084 else
10085   $as_echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10087
10088         ac_cv_lib_dld_shl_load=no
10089 fi
10090
10091 rm -rf conftest.dSYM
10092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10093       conftest$ac_exeext conftest.$ac_ext
10094 LIBS=$ac_check_lib_save_LIBS
10095 fi
10096 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10097 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10098 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10099   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10100 else
10101   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10102 $as_echo_n "checking for dlopen... " >&6; }
10103 if test "${ac_cv_func_dlopen+set}" = set; then
10104   $as_echo_n "(cached) " >&6
10105 else
10106   cat >conftest.$ac_ext <<_ACEOF
10107 /* confdefs.h.  */
10108 _ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h.  */
10112 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10114 #define dlopen innocuous_dlopen
10115
10116 /* System header to define __stub macros and hopefully few prototypes,
10117     which can conflict with char dlopen (); below.
10118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10119     <limits.h> exists even on freestanding compilers.  */
10120
10121 #ifdef __STDC__
10122 # include <limits.h>
10123 #else
10124 # include <assert.h>
10125 #endif
10126
10127 #undef dlopen
10128
10129 /* Override any GCC internal prototype to avoid an error.
10130    Use char because int might match the return type of a GCC
10131    builtin and then its argument prototype would still apply.  */
10132 #ifdef __cplusplus
10133 extern "C"
10134 #endif
10135 char dlopen ();
10136 /* The GNU C library defines this for functions which it implements
10137     to always fail with ENOSYS.  Some functions are actually named
10138     something starting with __ and the normal name is an alias.  */
10139 #if defined __stub_dlopen || defined __stub___dlopen
10140 choke me
10141 #endif
10142
10143 int
10144 main ()
10145 {
10146 return dlopen ();
10147   ;
10148   return 0;
10149 }
10150 _ACEOF
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (ac_try="$ac_link"
10153 case "(($ac_try" in
10154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155   *) ac_try_echo=$ac_try;;
10156 esac
10157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10158 $as_echo "$ac_try_echo") >&5
10159   (eval "$ac_link") 2>conftest.er1
10160   ac_status=$?
10161   grep -v '^ *+' conftest.er1 >conftest.err
10162   rm -f conftest.er1
10163   cat conftest.err >&5
10164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165   (exit $ac_status); } && {
10166          test -z "$ac_c_werror_flag" ||
10167          test ! -s conftest.err
10168        } && test -s conftest$ac_exeext && {
10169          test "$cross_compiling" = yes ||
10170          $as_test_x conftest$ac_exeext
10171        }; then
10172   ac_cv_func_dlopen=yes
10173 else
10174   $as_echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10176
10177         ac_cv_func_dlopen=no
10178 fi
10179
10180 rm -rf conftest.dSYM
10181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10182       conftest$ac_exeext conftest.$ac_ext
10183 fi
10184 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10185 $as_echo "$ac_cv_func_dlopen" >&6; }
10186 if test "x$ac_cv_func_dlopen" = x""yes; then
10187   lt_cv_dlopen="dlopen"
10188 else
10189   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10190 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10192   $as_echo_n "(cached) " >&6
10193 else
10194   ac_check_lib_save_LIBS=$LIBS
10195 LIBS="-ldl  $LIBS"
10196 cat >conftest.$ac_ext <<_ACEOF
10197 /* confdefs.h.  */
10198 _ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h.  */
10202
10203 /* Override any GCC internal prototype to avoid an error.
10204    Use char because int might match the return type of a GCC
10205    builtin and then its argument prototype would still apply.  */
10206 #ifdef __cplusplus
10207 extern "C"
10208 #endif
10209 char dlopen ();
10210 int
10211 main ()
10212 {
10213 return dlopen ();
10214   ;
10215   return 0;
10216 }
10217 _ACEOF
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (ac_try="$ac_link"
10220 case "(($ac_try" in
10221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222   *) ac_try_echo=$ac_try;;
10223 esac
10224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10225 $as_echo "$ac_try_echo") >&5
10226   (eval "$ac_link") 2>conftest.er1
10227   ac_status=$?
10228   grep -v '^ *+' conftest.er1 >conftest.err
10229   rm -f conftest.er1
10230   cat conftest.err >&5
10231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); } && {
10233          test -z "$ac_c_werror_flag" ||
10234          test ! -s conftest.err
10235        } && test -s conftest$ac_exeext && {
10236          test "$cross_compiling" = yes ||
10237          $as_test_x conftest$ac_exeext
10238        }; then
10239   ac_cv_lib_dl_dlopen=yes
10240 else
10241   $as_echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10243
10244         ac_cv_lib_dl_dlopen=no
10245 fi
10246
10247 rm -rf conftest.dSYM
10248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10249       conftest$ac_exeext conftest.$ac_ext
10250 LIBS=$ac_check_lib_save_LIBS
10251 fi
10252 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10253 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10254 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10255   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10256 else
10257   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10258 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10259 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10260   $as_echo_n "(cached) " >&6
10261 else
10262   ac_check_lib_save_LIBS=$LIBS
10263 LIBS="-lsvld  $LIBS"
10264 cat >conftest.$ac_ext <<_ACEOF
10265 /* confdefs.h.  */
10266 _ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h.  */
10270
10271 /* Override any GCC internal prototype to avoid an error.
10272    Use char because int might match the return type of a GCC
10273    builtin and then its argument prototype would still apply.  */
10274 #ifdef __cplusplus
10275 extern "C"
10276 #endif
10277 char dlopen ();
10278 int
10279 main ()
10280 {
10281 return dlopen ();
10282   ;
10283   return 0;
10284 }
10285 _ACEOF
10286 rm -f conftest.$ac_objext conftest$ac_exeext
10287 if { (ac_try="$ac_link"
10288 case "(($ac_try" in
10289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290   *) ac_try_echo=$ac_try;;
10291 esac
10292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10293 $as_echo "$ac_try_echo") >&5
10294   (eval "$ac_link") 2>conftest.er1
10295   ac_status=$?
10296   grep -v '^ *+' conftest.er1 >conftest.err
10297   rm -f conftest.er1
10298   cat conftest.err >&5
10299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } && {
10301          test -z "$ac_c_werror_flag" ||
10302          test ! -s conftest.err
10303        } && test -s conftest$ac_exeext && {
10304          test "$cross_compiling" = yes ||
10305          $as_test_x conftest$ac_exeext
10306        }; then
10307   ac_cv_lib_svld_dlopen=yes
10308 else
10309   $as_echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10311
10312         ac_cv_lib_svld_dlopen=no
10313 fi
10314
10315 rm -rf conftest.dSYM
10316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10317       conftest$ac_exeext conftest.$ac_ext
10318 LIBS=$ac_check_lib_save_LIBS
10319 fi
10320 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10321 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10322 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10323   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10324 else
10325   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10326 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10327 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10328   $as_echo_n "(cached) " >&6
10329 else
10330   ac_check_lib_save_LIBS=$LIBS
10331 LIBS="-ldld  $LIBS"
10332 cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h.  */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h.  */
10338
10339 /* Override any GCC internal prototype to avoid an error.
10340    Use char because int might match the return type of a GCC
10341    builtin and then its argument prototype would still apply.  */
10342 #ifdef __cplusplus
10343 extern "C"
10344 #endif
10345 char dld_link ();
10346 int
10347 main ()
10348 {
10349 return dld_link ();
10350   ;
10351   return 0;
10352 }
10353 _ACEOF
10354 rm -f conftest.$ac_objext conftest$ac_exeext
10355 if { (ac_try="$ac_link"
10356 case "(($ac_try" in
10357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358   *) ac_try_echo=$ac_try;;
10359 esac
10360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10361 $as_echo "$ac_try_echo") >&5
10362   (eval "$ac_link") 2>conftest.er1
10363   ac_status=$?
10364   grep -v '^ *+' conftest.er1 >conftest.err
10365   rm -f conftest.er1
10366   cat conftest.err >&5
10367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); } && {
10369          test -z "$ac_c_werror_flag" ||
10370          test ! -s conftest.err
10371        } && test -s conftest$ac_exeext && {
10372          test "$cross_compiling" = yes ||
10373          $as_test_x conftest$ac_exeext
10374        }; then
10375   ac_cv_lib_dld_dld_link=yes
10376 else
10377   $as_echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380         ac_cv_lib_dld_dld_link=no
10381 fi
10382
10383 rm -rf conftest.dSYM
10384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10385       conftest$ac_exeext conftest.$ac_ext
10386 LIBS=$ac_check_lib_save_LIBS
10387 fi
10388 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10389 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10390 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10391   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10392 fi
10393
10394
10395 fi
10396
10397
10398 fi
10399
10400
10401 fi
10402
10403
10404 fi
10405
10406
10407 fi
10408
10409     ;;
10410   esac
10411
10412   if test "x$lt_cv_dlopen" != xno; then
10413     enable_dlopen=yes
10414   else
10415     enable_dlopen=no
10416   fi
10417
10418   case $lt_cv_dlopen in
10419   dlopen)
10420     save_CPPFLAGS="$CPPFLAGS"
10421     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10422
10423     save_LDFLAGS="$LDFLAGS"
10424     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10425
10426     save_LIBS="$LIBS"
10427     LIBS="$lt_cv_dlopen_libs $LIBS"
10428
10429     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10430 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10431 if test "${lt_cv_dlopen_self+set}" = set; then
10432   $as_echo_n "(cached) " >&6
10433 else
10434           if test "$cross_compiling" = yes; then :
10435   lt_cv_dlopen_self=cross
10436 else
10437   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10438   lt_status=$lt_dlunknown
10439   cat > conftest.$ac_ext <<_LT_EOF
10440 #line 10440 "configure"
10441 #include "confdefs.h"
10442
10443 #if HAVE_DLFCN_H
10444 #include <dlfcn.h>
10445 #endif
10446
10447 #include <stdio.h>
10448
10449 #ifdef RTLD_GLOBAL
10450 #  define LT_DLGLOBAL           RTLD_GLOBAL
10451 #else
10452 #  ifdef DL_GLOBAL
10453 #    define LT_DLGLOBAL         DL_GLOBAL
10454 #  else
10455 #    define LT_DLGLOBAL         0
10456 #  endif
10457 #endif
10458
10459 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10460    find out it does not work in some platform. */
10461 #ifndef LT_DLLAZY_OR_NOW
10462 #  ifdef RTLD_LAZY
10463 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10464 #  else
10465 #    ifdef DL_LAZY
10466 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10467 #    else
10468 #      ifdef RTLD_NOW
10469 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10470 #      else
10471 #        ifdef DL_NOW
10472 #          define LT_DLLAZY_OR_NOW      DL_NOW
10473 #        else
10474 #          define LT_DLLAZY_OR_NOW      0
10475 #        endif
10476 #      endif
10477 #    endif
10478 #  endif
10479 #endif
10480
10481 void fnord() { int i=42;}
10482 int main ()
10483 {
10484   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10485   int status = $lt_dlunknown;
10486
10487   if (self)
10488     {
10489       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10490       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10491       /* dlclose (self); */
10492     }
10493   else
10494     puts (dlerror ());
10495
10496   return status;
10497 }
10498 _LT_EOF
10499   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10500   (eval $ac_link) 2>&5
10501   ac_status=$?
10502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10504     (./conftest; exit; ) >&5 2>/dev/null
10505     lt_status=$?
10506     case x$lt_status in
10507       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10508       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10509       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10510     esac
10511   else :
10512     # compilation failed
10513     lt_cv_dlopen_self=no
10514   fi
10515 fi
10516 rm -fr conftest*
10517
10518
10519 fi
10520 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10521 $as_echo "$lt_cv_dlopen_self" >&6; }
10522
10523     if test "x$lt_cv_dlopen_self" = xyes; then
10524       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10525       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10526 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10527 if test "${lt_cv_dlopen_self_static+set}" = set; then
10528   $as_echo_n "(cached) " >&6
10529 else
10530           if test "$cross_compiling" = yes; then :
10531   lt_cv_dlopen_self_static=cross
10532 else
10533   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10534   lt_status=$lt_dlunknown
10535   cat > conftest.$ac_ext <<_LT_EOF
10536 #line 10536 "configure"
10537 #include "confdefs.h"
10538
10539 #if HAVE_DLFCN_H
10540 #include <dlfcn.h>
10541 #endif
10542
10543 #include <stdio.h>
10544
10545 #ifdef RTLD_GLOBAL
10546 #  define LT_DLGLOBAL           RTLD_GLOBAL
10547 #else
10548 #  ifdef DL_GLOBAL
10549 #    define LT_DLGLOBAL         DL_GLOBAL
10550 #  else
10551 #    define LT_DLGLOBAL         0
10552 #  endif
10553 #endif
10554
10555 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10556    find out it does not work in some platform. */
10557 #ifndef LT_DLLAZY_OR_NOW
10558 #  ifdef RTLD_LAZY
10559 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10560 #  else
10561 #    ifdef DL_LAZY
10562 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10563 #    else
10564 #      ifdef RTLD_NOW
10565 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10566 #      else
10567 #        ifdef DL_NOW
10568 #          define LT_DLLAZY_OR_NOW      DL_NOW
10569 #        else
10570 #          define LT_DLLAZY_OR_NOW      0
10571 #        endif
10572 #      endif
10573 #    endif
10574 #  endif
10575 #endif
10576
10577 void fnord() { int i=42;}
10578 int main ()
10579 {
10580   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10581   int status = $lt_dlunknown;
10582
10583   if (self)
10584     {
10585       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10586       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10587       /* dlclose (self); */
10588     }
10589   else
10590     puts (dlerror ());
10591
10592   return status;
10593 }
10594 _LT_EOF
10595   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596   (eval $ac_link) 2>&5
10597   ac_status=$?
10598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10600     (./conftest; exit; ) >&5 2>/dev/null
10601     lt_status=$?
10602     case x$lt_status in
10603       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10604       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10605       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10606     esac
10607   else :
10608     # compilation failed
10609     lt_cv_dlopen_self_static=no
10610   fi
10611 fi
10612 rm -fr conftest*
10613
10614
10615 fi
10616 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10617 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10618     fi
10619
10620     CPPFLAGS="$save_CPPFLAGS"
10621     LDFLAGS="$save_LDFLAGS"
10622     LIBS="$save_LIBS"
10623     ;;
10624   esac
10625
10626   case $lt_cv_dlopen_self in
10627   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10628   *) enable_dlopen_self=unknown ;;
10629   esac
10630
10631   case $lt_cv_dlopen_self_static in
10632   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10633   *) enable_dlopen_self_static=unknown ;;
10634   esac
10635 fi
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653 striplib=
10654 old_striplib=
10655 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10656 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10657 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10658   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10659   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10660   { $as_echo "$as_me:$LINENO: result: yes" >&5
10661 $as_echo "yes" >&6; }
10662 else
10663 # FIXME - insert some real tests, host_os isn't really good enough
10664   case $host_os in
10665   darwin*)
10666     if test -n "$STRIP" ; then
10667       striplib="$STRIP -x"
10668       old_striplib="$STRIP -S"
10669       { $as_echo "$as_me:$LINENO: result: yes" >&5
10670 $as_echo "yes" >&6; }
10671     else
10672       { $as_echo "$as_me:$LINENO: result: no" >&5
10673 $as_echo "no" >&6; }
10674     fi
10675     ;;
10676   *)
10677     { $as_echo "$as_me:$LINENO: result: no" >&5
10678 $as_echo "no" >&6; }
10679     ;;
10680   esac
10681 fi
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694   # Report which library types will actually be built
10695   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10696 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10697   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10698 $as_echo "$can_build_shared" >&6; }
10699
10700   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10701 $as_echo_n "checking whether to build shared libraries... " >&6; }
10702   test "$can_build_shared" = "no" && enable_shared=no
10703
10704   # On AIX, shared libraries and static libraries use the same namespace, and
10705   # are all built from PIC.
10706   case $host_os in
10707   aix3*)
10708     test "$enable_shared" = yes && enable_static=no
10709     if test -n "$RANLIB"; then
10710       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10711       postinstall_cmds='$RANLIB $lib'
10712     fi
10713     ;;
10714
10715   aix[4-9]*)
10716     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10717       test "$enable_shared" = yes && enable_static=no
10718     fi
10719     ;;
10720   esac
10721   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10722 $as_echo "$enable_shared" >&6; }
10723
10724   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10725 $as_echo_n "checking whether to build static libraries... " >&6; }
10726   # Make sure either enable_shared or enable_static is yes.
10727   test "$enable_shared" = yes || enable_static=yes
10728   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10729 $as_echo "$enable_static" >&6; }
10730
10731
10732
10733
10734 fi
10735 ac_ext=c
10736 ac_cpp='$CPP $CPPFLAGS'
10737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10740
10741 CC="$lt_save_CC"
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755         ac_config_commands="$ac_config_commands libtool"
10756
10757
10758
10759
10760 # Only expand once:
10761
10762
10763
10764 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
10765 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
10766 LT_REVISION=$INTERFACE_AGE
10767 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
10768
10769
10770
10771
10772
10773
10774 { $as_echo "$as_me:$LINENO: checking host system type" >&5
10775 $as_echo_n "checking host system type... " >&6; }
10776 if test "${ac_cv_host+set}" = set; then
10777   $as_echo_n "(cached) " >&6
10778 else
10779   if test "x$host_alias" = x; then
10780   ac_cv_host=$ac_cv_build
10781 else
10782   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
10783     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
10784 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
10785    { (exit 1); exit 1; }; }
10786 fi
10787
10788 fi
10789 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10790 $as_echo "$ac_cv_host" >&6; }
10791 case $ac_cv_host in
10792 *-*-*) ;;
10793 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
10794 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
10795    { (exit 1); exit 1; }; };;
10796 esac
10797 host=$ac_cv_host
10798 ac_save_IFS=$IFS; IFS='-'
10799 set x $ac_cv_host
10800 shift
10801 host_cpu=$1
10802 host_vendor=$2
10803 shift; shift
10804 # Remember, the first character of IFS is used to create $*,
10805 # except with old shells:
10806 host_os=$*
10807 IFS=$ac_save_IFS
10808 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
10809
10810
10811
10812 am__api_version='1.11'
10813
10814 # Find a good install program.  We prefer a C program (faster),
10815 # so one script is as good as another.  But avoid the broken or
10816 # incompatible versions:
10817 # SysV /etc/install, /usr/sbin/install
10818 # SunOS /usr/etc/install
10819 # IRIX /sbin/install
10820 # AIX /bin/install
10821 # AmigaOS /C/install, which installs bootblocks on floppy discs
10822 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10823 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10824 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10825 # OS/2's system install, which has a completely different semantic
10826 # ./install, which can be erroneously created by make from ./install.sh.
10827 # Reject install programs that cannot install multiple files.
10828 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10829 $as_echo_n "checking for a BSD-compatible install... " >&6; }
10830 if test -z "$INSTALL"; then
10831 if test "${ac_cv_path_install+set}" = set; then
10832   $as_echo_n "(cached) " >&6
10833 else
10834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10835 for as_dir in $PATH
10836 do
10837   IFS=$as_save_IFS
10838   test -z "$as_dir" && as_dir=.
10839   # Account for people who put trailing slashes in PATH elements.
10840 case $as_dir/ in
10841   ./ | .// | /cC/* | \
10842   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10843   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10844   /usr/ucb/* ) ;;
10845   *)
10846     # OSF1 and SCO ODT 3.0 have their own names for install.
10847     # Don't use installbsd from OSF since it installs stuff as root
10848     # by default.
10849     for ac_prog in ginstall scoinst install; do
10850       for ac_exec_ext in '' $ac_executable_extensions; do
10851         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10852           if test $ac_prog = install &&
10853             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10854             # AIX install.  It has an incompatible calling convention.
10855             :
10856           elif test $ac_prog = install &&
10857             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10858             # program-specific install script used by HP pwplus--don't use.
10859             :
10860           else
10861             rm -rf conftest.one conftest.two conftest.dir
10862             echo one > conftest.one
10863             echo two > conftest.two
10864             mkdir conftest.dir
10865             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10866               test -s conftest.one && test -s conftest.two &&
10867               test -s conftest.dir/conftest.one &&
10868               test -s conftest.dir/conftest.two
10869             then
10870               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10871               break 3
10872             fi
10873           fi
10874         fi
10875       done
10876     done
10877     ;;
10878 esac
10879
10880 done
10881 IFS=$as_save_IFS
10882
10883 rm -rf conftest.one conftest.two conftest.dir
10884
10885 fi
10886   if test "${ac_cv_path_install+set}" = set; then
10887     INSTALL=$ac_cv_path_install
10888   else
10889     # As a last resort, use the slow shell script.  Don't cache a
10890     # value for INSTALL within a source directory, because that will
10891     # break other packages using the cache if that directory is
10892     # removed, or if the value is a relative name.
10893     INSTALL=$ac_install_sh
10894   fi
10895 fi
10896 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10897 $as_echo "$INSTALL" >&6; }
10898
10899 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10900 # It thinks the first close brace ends the variable substitution.
10901 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10902
10903 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10904
10905 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10906
10907 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10908 $as_echo_n "checking whether build environment is sane... " >&6; }
10909 # Just in case
10910 sleep 1
10911 echo timestamp > conftest.file
10912 # Reject unsafe characters in $srcdir or the absolute working directory
10913 # name.  Accept space and tab only in the latter.
10914 am_lf='
10915 '
10916 case `pwd` in
10917   *[\\\"\#\$\&\'\`$am_lf]*)
10918     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
10919 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
10920    { (exit 1); exit 1; }; };;
10921 esac
10922 case $srcdir in
10923   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10924     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
10925 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
10926    { (exit 1); exit 1; }; };;
10927 esac
10928
10929 # Do `set' in a subshell so we don't clobber the current shell's
10930 # arguments.  Must try -L first in case configure is actually a
10931 # symlink; some systems play weird games with the mod time of symlinks
10932 # (eg FreeBSD returns the mod time of the symlink's containing
10933 # directory).
10934 if (
10935    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10936    if test "$*" = "X"; then
10937       # -L didn't work.
10938       set X `ls -t "$srcdir/configure" conftest.file`
10939    fi
10940    rm -f conftest.file
10941    if test "$*" != "X $srcdir/configure conftest.file" \
10942       && test "$*" != "X conftest.file $srcdir/configure"; then
10943
10944       # If neither matched, then we have a broken ls.  This can happen
10945       # if, for instance, CONFIG_SHELL is bash and it inherits a
10946       # broken ls alias from the environment.  This has actually
10947       # happened.  Such a system could not be considered "sane".
10948       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
10949 alias in your environment" >&5
10950 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
10951 alias in your environment" >&2;}
10952    { (exit 1); exit 1; }; }
10953    fi
10954
10955    test "$2" = conftest.file
10956    )
10957 then
10958    # Ok.
10959    :
10960 else
10961    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10962 Check your system clock" >&5
10963 $as_echo "$as_me: error: newly created file is older than distributed files!
10964 Check your system clock" >&2;}
10965    { (exit 1); exit 1; }; }
10966 fi
10967 { $as_echo "$as_me:$LINENO: result: yes" >&5
10968 $as_echo "yes" >&6; }
10969 test "$program_prefix" != NONE &&
10970   program_transform_name="s&^&$program_prefix&;$program_transform_name"
10971 # Use a double $ so make ignores it.
10972 test "$program_suffix" != NONE &&
10973   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10974 # Double any \ or $.
10975 # By default was `s,x,x', remove it if useless.
10976 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10977 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10978
10979 # expand $ac_aux_dir to an absolute path
10980 am_aux_dir=`cd $ac_aux_dir && pwd`
10981
10982 if test x"${MISSING+set}" != xset; then
10983   case $am_aux_dir in
10984   *\ * | *\     *)
10985     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10986   *)
10987     MISSING="\${SHELL} $am_aux_dir/missing" ;;
10988   esac
10989 fi
10990 # Use eval to expand $SHELL
10991 if eval "$MISSING --run true"; then
10992   am_missing_run="$MISSING --run "
10993 else
10994   am_missing_run=
10995   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
10996 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10997 fi
10998
10999 if test x"${install_sh}" != xset; then
11000   case $am_aux_dir in
11001   *\ * | *\     *)
11002     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11003   *)
11004     install_sh="\${SHELL} $am_aux_dir/install-sh"
11005   esac
11006 fi
11007
11008 # Installed binaries are usually stripped using `strip' when the user
11009 # run `make install-strip'.  However `strip' might not be the right
11010 # tool to use in cross-compilation environments, therefore Automake
11011 # will honor the `STRIP' environment variable to overrule this program.
11012 if test "$cross_compiling" != no; then
11013   if test -n "$ac_tool_prefix"; then
11014   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11015 set dummy ${ac_tool_prefix}strip; ac_word=$2
11016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if test "${ac_cv_prog_STRIP+set}" = set; then
11019   $as_echo_n "(cached) " >&6
11020 else
11021   if test -n "$STRIP"; then
11022   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11023 else
11024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025 for as_dir in $PATH
11026 do
11027   IFS=$as_save_IFS
11028   test -z "$as_dir" && as_dir=.
11029   for ac_exec_ext in '' $ac_executable_extensions; do
11030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11031     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11032     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11033     break 2
11034   fi
11035 done
11036 done
11037 IFS=$as_save_IFS
11038
11039 fi
11040 fi
11041 STRIP=$ac_cv_prog_STRIP
11042 if test -n "$STRIP"; then
11043   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
11044 $as_echo "$STRIP" >&6; }
11045 else
11046   { $as_echo "$as_me:$LINENO: result: no" >&5
11047 $as_echo "no" >&6; }
11048 fi
11049
11050
11051 fi
11052 if test -z "$ac_cv_prog_STRIP"; then
11053   ac_ct_STRIP=$STRIP
11054   # Extract the first word of "strip", so it can be a program name with args.
11055 set dummy strip; ac_word=$2
11056 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11057 $as_echo_n "checking for $ac_word... " >&6; }
11058 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11059   $as_echo_n "(cached) " >&6
11060 else
11061   if test -n "$ac_ct_STRIP"; then
11062   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11063 else
11064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065 for as_dir in $PATH
11066 do
11067   IFS=$as_save_IFS
11068   test -z "$as_dir" && as_dir=.
11069   for ac_exec_ext in '' $ac_executable_extensions; do
11070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11071     ac_cv_prog_ac_ct_STRIP="strip"
11072     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11073     break 2
11074   fi
11075 done
11076 done
11077 IFS=$as_save_IFS
11078
11079 fi
11080 fi
11081 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11082 if test -n "$ac_ct_STRIP"; then
11083   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11084 $as_echo "$ac_ct_STRIP" >&6; }
11085 else
11086   { $as_echo "$as_me:$LINENO: result: no" >&5
11087 $as_echo "no" >&6; }
11088 fi
11089
11090   if test "x$ac_ct_STRIP" = x; then
11091     STRIP=":"
11092   else
11093     case $cross_compiling:$ac_tool_warned in
11094 yes:)
11095 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11097 ac_tool_warned=yes ;;
11098 esac
11099     STRIP=$ac_ct_STRIP
11100   fi
11101 else
11102   STRIP="$ac_cv_prog_STRIP"
11103 fi
11104
11105 fi
11106 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11107
11108 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
11109 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11110 if test -z "$MKDIR_P"; then
11111   if test "${ac_cv_path_mkdir+set}" = set; then
11112   $as_echo_n "(cached) " >&6
11113 else
11114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11115 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11116 do
11117   IFS=$as_save_IFS
11118   test -z "$as_dir" && as_dir=.
11119   for ac_prog in mkdir gmkdir; do
11120          for ac_exec_ext in '' $ac_executable_extensions; do
11121            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11122            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11123              'mkdir (GNU coreutils) '* | \
11124              'mkdir (coreutils) '* | \
11125              'mkdir (fileutils) '4.1*)
11126                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11127                break 3;;
11128            esac
11129          done
11130        done
11131 done
11132 IFS=$as_save_IFS
11133
11134 fi
11135
11136   if test "${ac_cv_path_mkdir+set}" = set; then
11137     MKDIR_P="$ac_cv_path_mkdir -p"
11138   else
11139     # As a last resort, use the slow shell script.  Don't cache a
11140     # value for MKDIR_P within a source directory, because that will
11141     # break other packages using the cache if that directory is
11142     # removed, or if the value is a relative name.
11143     test -d ./--version && rmdir ./--version
11144     MKDIR_P="$ac_install_sh -d"
11145   fi
11146 fi
11147 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
11148 $as_echo "$MKDIR_P" >&6; }
11149
11150 mkdir_p="$MKDIR_P"
11151 case $mkdir_p in
11152   [\\/$]* | ?:[\\/]*) ;;
11153   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11154 esac
11155
11156 for ac_prog in gawk mawk nawk awk
11157 do
11158   # Extract the first word of "$ac_prog", so it can be a program name with args.
11159 set dummy $ac_prog; ac_word=$2
11160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11161 $as_echo_n "checking for $ac_word... " >&6; }
11162 if test "${ac_cv_prog_AWK+set}" = set; then
11163   $as_echo_n "(cached) " >&6
11164 else
11165   if test -n "$AWK"; then
11166   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11167 else
11168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169 for as_dir in $PATH
11170 do
11171   IFS=$as_save_IFS
11172   test -z "$as_dir" && as_dir=.
11173   for ac_exec_ext in '' $ac_executable_extensions; do
11174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11175     ac_cv_prog_AWK="$ac_prog"
11176     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11177     break 2
11178   fi
11179 done
11180 done
11181 IFS=$as_save_IFS
11182
11183 fi
11184 fi
11185 AWK=$ac_cv_prog_AWK
11186 if test -n "$AWK"; then
11187   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11188 $as_echo "$AWK" >&6; }
11189 else
11190   { $as_echo "$as_me:$LINENO: result: no" >&5
11191 $as_echo "no" >&6; }
11192 fi
11193
11194
11195   test -n "$AWK" && break
11196 done
11197
11198 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11199 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11200 set x ${MAKE-make}
11201 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11202 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11203   $as_echo_n "(cached) " >&6
11204 else
11205   cat >conftest.make <<\_ACEOF
11206 SHELL = /bin/sh
11207 all:
11208         @echo '@@@%%%=$(MAKE)=@@@%%%'
11209 _ACEOF
11210 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11211 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11212   *@@@%%%=?*=@@@%%%*)
11213     eval ac_cv_prog_make_${ac_make}_set=yes;;
11214   *)
11215     eval ac_cv_prog_make_${ac_make}_set=no;;
11216 esac
11217 rm -f conftest.make
11218 fi
11219 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11220   { $as_echo "$as_me:$LINENO: result: yes" >&5
11221 $as_echo "yes" >&6; }
11222   SET_MAKE=
11223 else
11224   { $as_echo "$as_me:$LINENO: result: no" >&5
11225 $as_echo "no" >&6; }
11226   SET_MAKE="MAKE=${MAKE-make}"
11227 fi
11228
11229 rm -rf .tst 2>/dev/null
11230 mkdir .tst 2>/dev/null
11231 if test -d .tst; then
11232   am__leading_dot=.
11233 else
11234   am__leading_dot=_
11235 fi
11236 rmdir .tst 2>/dev/null
11237
11238 DEPDIR="${am__leading_dot}deps"
11239
11240 ac_config_commands="$ac_config_commands depfiles"
11241
11242
11243 am_make=${MAKE-make}
11244 cat > confinc << 'END'
11245 am__doit:
11246         @echo this is the am__doit target
11247 .PHONY: am__doit
11248 END
11249 # If we don't find an include directive, just comment out the code.
11250 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
11251 $as_echo_n "checking for style of include used by $am_make... " >&6; }
11252 am__include="#"
11253 am__quote=
11254 _am_result=none
11255 # First try GNU make style include.
11256 echo "include confinc" > confmf
11257 # Ignore all kinds of additional output from `make'.
11258 case `$am_make -s -f confmf 2> /dev/null` in #(
11259 *the\ am__doit\ target*)
11260   am__include=include
11261   am__quote=
11262   _am_result=GNU
11263   ;;
11264 esac
11265 # Now try BSD make style include.
11266 if test "$am__include" = "#"; then
11267    echo '.include "confinc"' > confmf
11268    case `$am_make -s -f confmf 2> /dev/null` in #(
11269    *the\ am__doit\ target*)
11270      am__include=.include
11271      am__quote="\""
11272      _am_result=BSD
11273      ;;
11274    esac
11275 fi
11276
11277
11278 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
11279 $as_echo "$_am_result" >&6; }
11280 rm -f confinc confmf
11281
11282 # Check whether --enable-dependency-tracking was given.
11283 if test "${enable_dependency_tracking+set}" = set; then
11284   enableval=$enable_dependency_tracking;
11285 fi
11286
11287 if test "x$enable_dependency_tracking" != xno; then
11288   am_depcomp="$ac_aux_dir/depcomp"
11289   AMDEPBACKSLASH='\'
11290 fi
11291  if test "x$enable_dependency_tracking" != xno; then
11292   AMDEP_TRUE=
11293   AMDEP_FALSE='#'
11294 else
11295   AMDEP_TRUE='#'
11296   AMDEP_FALSE=
11297 fi
11298
11299
11300 if test "`cd $srcdir && pwd`" != "`pwd`"; then
11301   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11302   # is not polluted with repeated "-I."
11303   am__isrc=' -I$(srcdir)'
11304   # test to see if srcdir already configured
11305   if test -f $srcdir/config.status; then
11306     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11307 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11308    { (exit 1); exit 1; }; }
11309   fi
11310 fi
11311
11312 # test whether we have cygpath
11313 if test -z "$CYGPATH_W"; then
11314   if (cygpath --version) >/dev/null 2>/dev/null; then
11315     CYGPATH_W='cygpath -w'
11316   else
11317     CYGPATH_W=echo
11318   fi
11319 fi
11320
11321
11322 # Define the identity of the package.
11323  PACKAGE=SDL_image
11324  VERSION=$VERSION
11325
11326
11327 cat >>confdefs.h <<_ACEOF
11328 #define PACKAGE "$PACKAGE"
11329 _ACEOF
11330
11331
11332 cat >>confdefs.h <<_ACEOF
11333 #define VERSION "$VERSION"
11334 _ACEOF
11335
11336 # Some tools Automake needs.
11337
11338 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11339
11340
11341 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11342
11343
11344 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11345
11346
11347 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11348
11349
11350 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11351
11352 # We need awk for the "check" target.  The system "awk" is bad on
11353 # some platforms.
11354 # Always define AMTAR for backward compatibility.
11355
11356 AMTAR=${AMTAR-"${am_missing_run}tar"}
11357
11358 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11359
11360
11361
11362
11363 depcc="$CC"   am_compiler_list=
11364
11365 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11366 $as_echo_n "checking dependency style of $depcc... " >&6; }
11367 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11368   $as_echo_n "(cached) " >&6
11369 else
11370   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11371   # We make a subdir and do the tests there.  Otherwise we can end up
11372   # making bogus files that we don't know about and never remove.  For
11373   # instance it was reported that on HP-UX the gcc test will end up
11374   # making a dummy file named `D' -- because `-MD' means `put the output
11375   # in D'.
11376   mkdir conftest.dir
11377   # Copy depcomp to subdir because otherwise we won't find it if we're
11378   # using a relative directory.
11379   cp "$am_depcomp" conftest.dir
11380   cd conftest.dir
11381   # We will build objects and dependencies in a subdirectory because
11382   # it helps to detect inapplicable dependency modes.  For instance
11383   # both Tru64's cc and ICC support -MD to output dependencies as a
11384   # side effect of compilation, but ICC will put the dependencies in
11385   # the current directory while Tru64 will put them in the object
11386   # directory.
11387   mkdir sub
11388
11389   am_cv_CC_dependencies_compiler_type=none
11390   if test "$am_compiler_list" = ""; then
11391      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11392   fi
11393   am__universal=false
11394   case " $depcc " in #(
11395      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11396      esac
11397
11398   for depmode in $am_compiler_list; do
11399     # Setup a source with many dependencies, because some compilers
11400     # like to wrap large dependency lists on column 80 (with \), and
11401     # we should not choose a depcomp mode which is confused by this.
11402     #
11403     # We need to recreate these files for each test, as the compiler may
11404     # overwrite some of them when testing with obscure command lines.
11405     # This happens at least with the AIX C compiler.
11406     : > sub/conftest.c
11407     for i in 1 2 3 4 5 6; do
11408       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11409       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11410       # Solaris 8's {/usr,}/bin/sh.
11411       touch sub/conftst$i.h
11412     done
11413     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11414
11415     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11416     # mode.  It turns out that the SunPro C++ compiler does not properly
11417     # handle `-M -o', and we need to detect this.  Also, some Intel
11418     # versions had trouble with output in subdirs
11419     am__obj=sub/conftest.${OBJEXT-o}
11420     am__minus_obj="-o $am__obj"
11421     case $depmode in
11422     gcc)
11423       # This depmode causes a compiler race in universal mode.
11424       test "$am__universal" = false || continue
11425       ;;
11426     nosideeffect)
11427       # after this tag, mechanisms are not by side-effect, so they'll
11428       # only be used when explicitly requested
11429       if test "x$enable_dependency_tracking" = xyes; then
11430         continue
11431       else
11432         break
11433       fi
11434       ;;
11435     msvisualcpp | msvcmsys)
11436       # This compiler won't grok `-c -o', but also, the minuso test has
11437       # not run yet.  These depmodes are late enough in the game, and
11438       # so weak that their functioning should not be impacted.
11439       am__obj=conftest.${OBJEXT-o}
11440       am__minus_obj=
11441       ;;
11442     none) break ;;
11443     esac
11444     if depmode=$depmode \
11445        source=sub/conftest.c object=$am__obj \
11446        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11447        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11448          >/dev/null 2>conftest.err &&
11449        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11450        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11451        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11452        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11453       # icc doesn't choke on unknown options, it will just issue warnings
11454       # or remarks (even with -Werror).  So we grep stderr for any message
11455       # that says an option was ignored or not supported.
11456       # When given -MP, icc 7.0 and 7.1 complain thusly:
11457       #   icc: Command line warning: ignoring option '-M'; no argument required
11458       # The diagnosis changed in icc 8.0:
11459       #   icc: Command line remark: option '-MP' not supported
11460       if (grep 'ignoring option' conftest.err ||
11461           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11462         am_cv_CC_dependencies_compiler_type=$depmode
11463         break
11464       fi
11465     fi
11466   done
11467
11468   cd ..
11469   rm -rf conftest.dir
11470 else
11471   am_cv_CC_dependencies_compiler_type=none
11472 fi
11473
11474 fi
11475 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11476 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11477 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11478
11479  if
11480   test "x$enable_dependency_tracking" != xno \
11481   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11482   am__fastdepCC_TRUE=
11483   am__fastdepCC_FALSE='#'
11484 else
11485   am__fastdepCC_TRUE='#'
11486   am__fastdepCC_FALSE=
11487 fi
11488
11489
11490
11491
11492
11493 ac_ext=c
11494 ac_cpp='$CPP $CPPFLAGS'
11495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11498 if test -n "$ac_tool_prefix"; then
11499   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11500 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11502 $as_echo_n "checking for $ac_word... " >&6; }
11503 if test "${ac_cv_prog_CC+set}" = set; then
11504   $as_echo_n "(cached) " >&6
11505 else
11506   if test -n "$CC"; then
11507   ac_cv_prog_CC="$CC" # Let the user override the test.
11508 else
11509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11510 for as_dir in $PATH
11511 do
11512   IFS=$as_save_IFS
11513   test -z "$as_dir" && as_dir=.
11514   for ac_exec_ext in '' $ac_executable_extensions; do
11515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11516     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11517     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11518     break 2
11519   fi
11520 done
11521 done
11522 IFS=$as_save_IFS
11523
11524 fi
11525 fi
11526 CC=$ac_cv_prog_CC
11527 if test -n "$CC"; then
11528   { $as_echo "$as_me:$LINENO: result: $CC" >&5
11529 $as_echo "$CC" >&6; }
11530 else
11531   { $as_echo "$as_me:$LINENO: result: no" >&5
11532 $as_echo "no" >&6; }
11533 fi
11534
11535
11536 fi
11537 if test -z "$ac_cv_prog_CC"; then
11538   ac_ct_CC=$CC
11539   # Extract the first word of "gcc", so it can be a program name with args.
11540 set dummy gcc; ac_word=$2
11541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11542 $as_echo_n "checking for $ac_word... " >&6; }
11543 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11544   $as_echo_n "(cached) " >&6
11545 else
11546   if test -n "$ac_ct_CC"; then
11547   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11548 else
11549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550 for as_dir in $PATH
11551 do
11552   IFS=$as_save_IFS
11553   test -z "$as_dir" && as_dir=.
11554   for ac_exec_ext in '' $ac_executable_extensions; do
11555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11556     ac_cv_prog_ac_ct_CC="gcc"
11557     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11558     break 2
11559   fi
11560 done
11561 done
11562 IFS=$as_save_IFS
11563
11564 fi
11565 fi
11566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11567 if test -n "$ac_ct_CC"; then
11568   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11569 $as_echo "$ac_ct_CC" >&6; }
11570 else
11571   { $as_echo "$as_me:$LINENO: result: no" >&5
11572 $as_echo "no" >&6; }
11573 fi
11574
11575   if test "x$ac_ct_CC" = x; then
11576     CC=""
11577   else
11578     case $cross_compiling:$ac_tool_warned in
11579 yes:)
11580 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11582 ac_tool_warned=yes ;;
11583 esac
11584     CC=$ac_ct_CC
11585   fi
11586 else
11587   CC="$ac_cv_prog_CC"
11588 fi
11589
11590 if test -z "$CC"; then
11591           if test -n "$ac_tool_prefix"; then
11592     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11593 set dummy ${ac_tool_prefix}cc; ac_word=$2
11594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11595 $as_echo_n "checking for $ac_word... " >&6; }
11596 if test "${ac_cv_prog_CC+set}" = set; then
11597   $as_echo_n "(cached) " >&6
11598 else
11599   if test -n "$CC"; then
11600   ac_cv_prog_CC="$CC" # Let the user override the test.
11601 else
11602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11603 for as_dir in $PATH
11604 do
11605   IFS=$as_save_IFS
11606   test -z "$as_dir" && as_dir=.
11607   for ac_exec_ext in '' $ac_executable_extensions; do
11608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11609     ac_cv_prog_CC="${ac_tool_prefix}cc"
11610     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11611     break 2
11612   fi
11613 done
11614 done
11615 IFS=$as_save_IFS
11616
11617 fi
11618 fi
11619 CC=$ac_cv_prog_CC
11620 if test -n "$CC"; then
11621   { $as_echo "$as_me:$LINENO: result: $CC" >&5
11622 $as_echo "$CC" >&6; }
11623 else
11624   { $as_echo "$as_me:$LINENO: result: no" >&5
11625 $as_echo "no" >&6; }
11626 fi
11627
11628
11629   fi
11630 fi
11631 if test -z "$CC"; then
11632   # Extract the first word of "cc", so it can be a program name with args.
11633 set dummy cc; ac_word=$2
11634 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11635 $as_echo_n "checking for $ac_word... " >&6; }
11636 if test "${ac_cv_prog_CC+set}" = set; then
11637   $as_echo_n "(cached) " >&6
11638 else
11639   if test -n "$CC"; then
11640   ac_cv_prog_CC="$CC" # Let the user override the test.
11641 else
11642   ac_prog_rejected=no
11643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644 for as_dir in $PATH
11645 do
11646   IFS=$as_save_IFS
11647   test -z "$as_dir" && as_dir=.
11648   for ac_exec_ext in '' $ac_executable_extensions; do
11649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11650     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11651        ac_prog_rejected=yes
11652        continue
11653      fi
11654     ac_cv_prog_CC="cc"
11655     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11656     break 2
11657   fi
11658 done
11659 done
11660 IFS=$as_save_IFS
11661
11662 if test $ac_prog_rejected = yes; then
11663   # We found a bogon in the path, so make sure we never use it.
11664   set dummy $ac_cv_prog_CC
11665   shift
11666   if test $# != 0; then
11667     # We chose a different compiler from the bogus one.
11668     # However, it has the same basename, so the bogon will be chosen
11669     # first if we set CC to just the basename; use the full file name.
11670     shift
11671     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11672   fi
11673 fi
11674 fi
11675 fi
11676 CC=$ac_cv_prog_CC
11677 if test -n "$CC"; then
11678   { $as_echo "$as_me:$LINENO: result: $CC" >&5
11679 $as_echo "$CC" >&6; }
11680 else
11681   { $as_echo "$as_me:$LINENO: result: no" >&5
11682 $as_echo "no" >&6; }
11683 fi
11684
11685
11686 fi
11687 if test -z "$CC"; then
11688   if test -n "$ac_tool_prefix"; then
11689   for ac_prog in cl.exe
11690   do
11691     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11694 $as_echo_n "checking for $ac_word... " >&6; }
11695 if test "${ac_cv_prog_CC+set}" = set; then
11696   $as_echo_n "(cached) " >&6
11697 else
11698   if test -n "$CC"; then
11699   ac_cv_prog_CC="$CC" # Let the user override the test.
11700 else
11701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702 for as_dir in $PATH
11703 do
11704   IFS=$as_save_IFS
11705   test -z "$as_dir" && as_dir=.
11706   for ac_exec_ext in '' $ac_executable_extensions; do
11707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11708     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11709     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11710     break 2
11711   fi
11712 done
11713 done
11714 IFS=$as_save_IFS
11715
11716 fi
11717 fi
11718 CC=$ac_cv_prog_CC
11719 if test -n "$CC"; then
11720   { $as_echo "$as_me:$LINENO: result: $CC" >&5
11721 $as_echo "$CC" >&6; }
11722 else
11723   { $as_echo "$as_me:$LINENO: result: no" >&5
11724 $as_echo "no" >&6; }
11725 fi
11726
11727
11728     test -n "$CC" && break
11729   done
11730 fi
11731 if test -z "$CC"; then
11732   ac_ct_CC=$CC
11733   for ac_prog in cl.exe
11734 do
11735   # Extract the first word of "$ac_prog", so it can be a program name with args.
11736 set dummy $ac_prog; ac_word=$2
11737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11738 $as_echo_n "checking for $ac_word... " >&6; }
11739 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11740   $as_echo_n "(cached) " >&6
11741 else
11742   if test -n "$ac_ct_CC"; then
11743   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11744 else
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11747 do
11748   IFS=$as_save_IFS
11749   test -z "$as_dir" && as_dir=.
11750   for ac_exec_ext in '' $ac_executable_extensions; do
11751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11752     ac_cv_prog_ac_ct_CC="$ac_prog"
11753     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11754     break 2
11755   fi
11756 done
11757 done
11758 IFS=$as_save_IFS
11759
11760 fi
11761 fi
11762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11763 if test -n "$ac_ct_CC"; then
11764   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11765 $as_echo "$ac_ct_CC" >&6; }
11766 else
11767   { $as_echo "$as_me:$LINENO: result: no" >&5
11768 $as_echo "no" >&6; }
11769 fi
11770
11771
11772   test -n "$ac_ct_CC" && break
11773 done
11774
11775   if test "x$ac_ct_CC" = x; then
11776     CC=""
11777   else
11778     case $cross_compiling:$ac_tool_warned in
11779 yes:)
11780 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11782 ac_tool_warned=yes ;;
11783 esac
11784     CC=$ac_ct_CC
11785   fi
11786 fi
11787
11788 fi
11789
11790
11791 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11793 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11794 See \`config.log' for more details." >&5
11795 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11796 See \`config.log' for more details." >&2;}
11797    { (exit 1); exit 1; }; }; }
11798
11799 # Provide some information about the compiler.
11800 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11801 set X $ac_compile
11802 ac_compiler=$2
11803 { (ac_try="$ac_compiler --version >&5"
11804 case "(($ac_try" in
11805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806   *) ac_try_echo=$ac_try;;
11807 esac
11808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11809 $as_echo "$ac_try_echo") >&5
11810   (eval "$ac_compiler --version >&5") 2>&5
11811   ac_status=$?
11812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813   (exit $ac_status); }
11814 { (ac_try="$ac_compiler -v >&5"
11815 case "(($ac_try" in
11816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817   *) ac_try_echo=$ac_try;;
11818 esac
11819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11820 $as_echo "$ac_try_echo") >&5
11821   (eval "$ac_compiler -v >&5") 2>&5
11822   ac_status=$?
11823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); }
11825 { (ac_try="$ac_compiler -V >&5"
11826 case "(($ac_try" in
11827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828   *) ac_try_echo=$ac_try;;
11829 esac
11830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11831 $as_echo "$ac_try_echo") >&5
11832   (eval "$ac_compiler -V >&5") 2>&5
11833   ac_status=$?
11834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835   (exit $ac_status); }
11836
11837 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11838 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11839 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11840   $as_echo_n "(cached) " >&6
11841 else
11842   cat >conftest.$ac_ext <<_ACEOF
11843 /* confdefs.h.  */
11844 _ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h.  */
11848
11849 int
11850 main ()
11851 {
11852 #ifndef __GNUC__
11853        choke me
11854 #endif
11855
11856   ;
11857   return 0;
11858 }
11859 _ACEOF
11860 rm -f conftest.$ac_objext
11861 if { (ac_try="$ac_compile"
11862 case "(($ac_try" in
11863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864   *) ac_try_echo=$ac_try;;
11865 esac
11866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11867 $as_echo "$ac_try_echo") >&5
11868   (eval "$ac_compile") 2>conftest.er1
11869   ac_status=$?
11870   grep -v '^ *+' conftest.er1 >conftest.err
11871   rm -f conftest.er1
11872   cat conftest.err >&5
11873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); } && {
11875          test -z "$ac_c_werror_flag" ||
11876          test ! -s conftest.err
11877        } && test -s conftest.$ac_objext; then
11878   ac_compiler_gnu=yes
11879 else
11880   $as_echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11882
11883         ac_compiler_gnu=no
11884 fi
11885
11886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11887 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11888
11889 fi
11890 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11891 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11892 if test $ac_compiler_gnu = yes; then
11893   GCC=yes
11894 else
11895   GCC=
11896 fi
11897 ac_test_CFLAGS=${CFLAGS+set}
11898 ac_save_CFLAGS=$CFLAGS
11899 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11900 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11901 if test "${ac_cv_prog_cc_g+set}" = set; then
11902   $as_echo_n "(cached) " >&6
11903 else
11904   ac_save_c_werror_flag=$ac_c_werror_flag
11905    ac_c_werror_flag=yes
11906    ac_cv_prog_cc_g=no
11907    CFLAGS="-g"
11908    cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h.  */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h.  */
11914
11915 int
11916 main ()
11917 {
11918
11919   ;
11920   return 0;
11921 }
11922 _ACEOF
11923 rm -f conftest.$ac_objext
11924 if { (ac_try="$ac_compile"
11925 case "(($ac_try" in
11926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927   *) ac_try_echo=$ac_try;;
11928 esac
11929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11930 $as_echo "$ac_try_echo") >&5
11931   (eval "$ac_compile") 2>conftest.er1
11932   ac_status=$?
11933   grep -v '^ *+' conftest.er1 >conftest.err
11934   rm -f conftest.er1
11935   cat conftest.err >&5
11936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); } && {
11938          test -z "$ac_c_werror_flag" ||
11939          test ! -s conftest.err
11940        } && test -s conftest.$ac_objext; then
11941   ac_cv_prog_cc_g=yes
11942 else
11943   $as_echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.$ac_ext >&5
11945
11946         CFLAGS=""
11947       cat >conftest.$ac_ext <<_ACEOF
11948 /* confdefs.h.  */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h.  */
11953
11954 int
11955 main ()
11956 {
11957
11958   ;
11959   return 0;
11960 }
11961 _ACEOF
11962 rm -f conftest.$ac_objext
11963 if { (ac_try="$ac_compile"
11964 case "(($ac_try" in
11965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966   *) ac_try_echo=$ac_try;;
11967 esac
11968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11969 $as_echo "$ac_try_echo") >&5
11970   (eval "$ac_compile") 2>conftest.er1
11971   ac_status=$?
11972   grep -v '^ *+' conftest.er1 >conftest.err
11973   rm -f conftest.er1
11974   cat conftest.err >&5
11975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); } && {
11977          test -z "$ac_c_werror_flag" ||
11978          test ! -s conftest.err
11979        } && test -s conftest.$ac_objext; then
11980   :
11981 else
11982   $as_echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11984
11985         ac_c_werror_flag=$ac_save_c_werror_flag
11986          CFLAGS="-g"
11987          cat >conftest.$ac_ext <<_ACEOF
11988 /* confdefs.h.  */
11989 _ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h.  */
11993
11994 int
11995 main ()
11996 {
11997
11998   ;
11999   return 0;
12000 }
12001 _ACEOF
12002 rm -f conftest.$ac_objext
12003 if { (ac_try="$ac_compile"
12004 case "(($ac_try" in
12005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006   *) ac_try_echo=$ac_try;;
12007 esac
12008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009 $as_echo "$ac_try_echo") >&5
12010   (eval "$ac_compile") 2>conftest.er1
12011   ac_status=$?
12012   grep -v '^ *+' conftest.er1 >conftest.err
12013   rm -f conftest.er1
12014   cat conftest.err >&5
12015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); } && {
12017          test -z "$ac_c_werror_flag" ||
12018          test ! -s conftest.err
12019        } && test -s conftest.$ac_objext; then
12020   ac_cv_prog_cc_g=yes
12021 else
12022   $as_echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12024
12025
12026 fi
12027
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12029 fi
12030
12031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12032 fi
12033
12034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12035    ac_c_werror_flag=$ac_save_c_werror_flag
12036 fi
12037 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12038 $as_echo "$ac_cv_prog_cc_g" >&6; }
12039 if test "$ac_test_CFLAGS" = set; then
12040   CFLAGS=$ac_save_CFLAGS
12041 elif test $ac_cv_prog_cc_g = yes; then
12042   if test "$GCC" = yes; then
12043     CFLAGS="-g -O2"
12044   else
12045     CFLAGS="-g"
12046   fi
12047 else
12048   if test "$GCC" = yes; then
12049     CFLAGS="-O2"
12050   else
12051     CFLAGS=
12052   fi
12053 fi
12054 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12055 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12056 if test "${ac_cv_prog_cc_c89+set}" = set; then
12057   $as_echo_n "(cached) " >&6
12058 else
12059   ac_cv_prog_cc_c89=no
12060 ac_save_CC=$CC
12061 cat >conftest.$ac_ext <<_ACEOF
12062 /* confdefs.h.  */
12063 _ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h.  */
12067 #include <stdarg.h>
12068 #include <stdio.h>
12069 #include <sys/types.h>
12070 #include <sys/stat.h>
12071 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12072 struct buf { int x; };
12073 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12074 static char *e (p, i)
12075      char **p;
12076      int i;
12077 {
12078   return p[i];
12079 }
12080 static char *f (char * (*g) (char **, int), char **p, ...)
12081 {
12082   char *s;
12083   va_list v;
12084   va_start (v,p);
12085   s = g (p, va_arg (v,int));
12086   va_end (v);
12087   return s;
12088 }
12089
12090 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12091    function prototypes and stuff, but not '\xHH' hex character constants.
12092    These don't provoke an error unfortunately, instead are silently treated
12093    as 'x'.  The following induces an error, until -std is added to get
12094    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12095    array size at least.  It's necessary to write '\x00'==0 to get something
12096    that's true only with -std.  */
12097 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12098
12099 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12100    inside strings and character constants.  */
12101 #define FOO(x) 'x'
12102 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12103
12104 int test (int i, double x);
12105 struct s1 {int (*f) (int a);};
12106 struct s2 {int (*f) (double a);};
12107 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12108 int argc;
12109 char **argv;
12110 int
12111 main ()
12112 {
12113 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12114   ;
12115   return 0;
12116 }
12117 _ACEOF
12118 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12119         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12120 do
12121   CC="$ac_save_CC $ac_arg"
12122   rm -f conftest.$ac_objext
12123 if { (ac_try="$ac_compile"
12124 case "(($ac_try" in
12125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126   *) ac_try_echo=$ac_try;;
12127 esac
12128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12129 $as_echo "$ac_try_echo") >&5
12130   (eval "$ac_compile") 2>conftest.er1
12131   ac_status=$?
12132   grep -v '^ *+' conftest.er1 >conftest.err
12133   rm -f conftest.er1
12134   cat conftest.err >&5
12135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); } && {
12137          test -z "$ac_c_werror_flag" ||
12138          test ! -s conftest.err
12139        } && test -s conftest.$ac_objext; then
12140   ac_cv_prog_cc_c89=$ac_arg
12141 else
12142   $as_echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12144
12145
12146 fi
12147
12148 rm -f core conftest.err conftest.$ac_objext
12149   test "x$ac_cv_prog_cc_c89" != "xno" && break
12150 done
12151 rm -f conftest.$ac_ext
12152 CC=$ac_save_CC
12153
12154 fi
12155 # AC_CACHE_VAL
12156 case "x$ac_cv_prog_cc_c89" in
12157   x)
12158     { $as_echo "$as_me:$LINENO: result: none needed" >&5
12159 $as_echo "none needed" >&6; } ;;
12160   xno)
12161     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12162 $as_echo "unsupported" >&6; } ;;
12163   *)
12164     CC="$CC $ac_cv_prog_cc_c89"
12165     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12166 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12167 esac
12168
12169
12170 ac_ext=c
12171 ac_cpp='$CPP $CPPFLAGS'
12172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12175
12176 { $as_echo "$as_me:$LINENO: checking for inline" >&5
12177 $as_echo_n "checking for inline... " >&6; }
12178 if test "${ac_cv_c_inline+set}" = set; then
12179   $as_echo_n "(cached) " >&6
12180 else
12181   ac_cv_c_inline=no
12182 for ac_kw in inline __inline__ __inline; do
12183   cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h.  */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h.  */
12189 #ifndef __cplusplus
12190 typedef int foo_t;
12191 static $ac_kw foo_t static_foo () {return 0; }
12192 $ac_kw foo_t foo () {return 0; }
12193 #endif
12194
12195 _ACEOF
12196 rm -f conftest.$ac_objext
12197 if { (ac_try="$ac_compile"
12198 case "(($ac_try" in
12199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200   *) ac_try_echo=$ac_try;;
12201 esac
12202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12203 $as_echo "$ac_try_echo") >&5
12204   (eval "$ac_compile") 2>conftest.er1
12205   ac_status=$?
12206   grep -v '^ *+' conftest.er1 >conftest.err
12207   rm -f conftest.er1
12208   cat conftest.err >&5
12209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); } && {
12211          test -z "$ac_c_werror_flag" ||
12212          test ! -s conftest.err
12213        } && test -s conftest.$ac_objext; then
12214   ac_cv_c_inline=$ac_kw
12215 else
12216   $as_echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12218
12219
12220 fi
12221
12222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223   test "$ac_cv_c_inline" != no && break
12224 done
12225
12226 fi
12227 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12228 $as_echo "$ac_cv_c_inline" >&6; }
12229
12230
12231 case $ac_cv_c_inline in
12232   inline | yes) ;;
12233   *)
12234     case $ac_cv_c_inline in
12235       no) ac_val=;;
12236       *) ac_val=$ac_cv_c_inline;;
12237     esac
12238     cat >>confdefs.h <<_ACEOF
12239 #ifndef __cplusplus
12240 #define inline $ac_val
12241 #endif
12242 _ACEOF
12243     ;;
12244 esac
12245
12246 # Find a good install program.  We prefer a C program (faster),
12247 # so one script is as good as another.  But avoid the broken or
12248 # incompatible versions:
12249 # SysV /etc/install, /usr/sbin/install
12250 # SunOS /usr/etc/install
12251 # IRIX /sbin/install
12252 # AIX /bin/install
12253 # AmigaOS /C/install, which installs bootblocks on floppy discs
12254 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12255 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12256 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12257 # OS/2's system install, which has a completely different semantic
12258 # ./install, which can be erroneously created by make from ./install.sh.
12259 # Reject install programs that cannot install multiple files.
12260 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12261 $as_echo_n "checking for a BSD-compatible install... " >&6; }
12262 if test -z "$INSTALL"; then
12263 if test "${ac_cv_path_install+set}" = set; then
12264   $as_echo_n "(cached) " >&6
12265 else
12266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267 for as_dir in $PATH
12268 do
12269   IFS=$as_save_IFS
12270   test -z "$as_dir" && as_dir=.
12271   # Account for people who put trailing slashes in PATH elements.
12272 case $as_dir/ in
12273   ./ | .// | /cC/* | \
12274   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12275   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12276   /usr/ucb/* ) ;;
12277   *)
12278     # OSF1 and SCO ODT 3.0 have their own names for install.
12279     # Don't use installbsd from OSF since it installs stuff as root
12280     # by default.
12281     for ac_prog in ginstall scoinst install; do
12282       for ac_exec_ext in '' $ac_executable_extensions; do
12283         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12284           if test $ac_prog = install &&
12285             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12286             # AIX install.  It has an incompatible calling convention.
12287             :
12288           elif test $ac_prog = install &&
12289             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12290             # program-specific install script used by HP pwplus--don't use.
12291             :
12292           else
12293             rm -rf conftest.one conftest.two conftest.dir
12294             echo one > conftest.one
12295             echo two > conftest.two
12296             mkdir conftest.dir
12297             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12298               test -s conftest.one && test -s conftest.two &&
12299               test -s conftest.dir/conftest.one &&
12300               test -s conftest.dir/conftest.two
12301             then
12302               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12303               break 3
12304             fi
12305           fi
12306         fi
12307       done
12308     done
12309     ;;
12310 esac
12311
12312 done
12313 IFS=$as_save_IFS
12314
12315 rm -rf conftest.one conftest.two conftest.dir
12316
12317 fi
12318   if test "${ac_cv_path_install+set}" = set; then
12319     INSTALL=$ac_cv_path_install
12320   else
12321     # As a last resort, use the slow shell script.  Don't cache a
12322     # value for INSTALL within a source directory, because that will
12323     # break other packages using the cache if that directory is
12324     # removed, or if the value is a relative name.
12325     INSTALL=$ac_install_sh
12326   fi
12327 fi
12328 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12329 $as_echo "$INSTALL" >&6; }
12330
12331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12332 # It thinks the first close brace ends the variable substitution.
12333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12334
12335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12336
12337 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12338
12339 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12340 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12341 set x ${MAKE-make}
12342 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12343 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
12344   $as_echo_n "(cached) " >&6
12345 else
12346   cat >conftest.make <<\_ACEOF
12347 SHELL = /bin/sh
12348 all:
12349         @echo '@@@%%%=$(MAKE)=@@@%%%'
12350 _ACEOF
12351 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12353   *@@@%%%=?*=@@@%%%*)
12354     eval ac_cv_prog_make_${ac_make}_set=yes;;
12355   *)
12356     eval ac_cv_prog_make_${ac_make}_set=no;;
12357 esac
12358 rm -f conftest.make
12359 fi
12360 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12361   { $as_echo "$as_me:$LINENO: result: yes" >&5
12362 $as_echo "yes" >&6; }
12363   SET_MAKE=
12364 else
12365   { $as_echo "$as_me:$LINENO: result: no" >&5
12366 $as_echo "no" >&6; }
12367   SET_MAKE="MAKE=${MAKE-make}"
12368 fi
12369
12370 if test -z "$host_alias"; then
12371     hostaliaswindres=
12372 else
12373     hostaliaswindres="$host_alias-windres"
12374 fi
12375 for ac_prog in windres $hostaliaswindres $host_os-windres
12376 do
12377   # Extract the first word of "$ac_prog", so it can be a program name with args.
12378 set dummy $ac_prog; ac_word=$2
12379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12380 $as_echo_n "checking for $ac_word... " >&6; }
12381 if test "${ac_cv_prog_WINDRES+set}" = set; then
12382   $as_echo_n "(cached) " >&6
12383 else
12384   if test -n "$WINDRES"; then
12385   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12386 else
12387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388 for as_dir in $PATH
12389 do
12390   IFS=$as_save_IFS
12391   test -z "$as_dir" && as_dir=.
12392   for ac_exec_ext in '' $ac_executable_extensions; do
12393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12394     ac_cv_prog_WINDRES="$ac_prog"
12395     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12396     break 2
12397   fi
12398 done
12399 done
12400 IFS=$as_save_IFS
12401
12402 fi
12403 fi
12404 WINDRES=$ac_cv_prog_WINDRES
12405 if test -n "$WINDRES"; then
12406   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
12407 $as_echo "$WINDRES" >&6; }
12408 else
12409   { $as_echo "$as_me:$LINENO: result: no" >&5
12410 $as_echo "no" >&6; }
12411 fi
12412
12413
12414   test -n "$WINDRES" && break
12415 done
12416
12417
12418 case "$host" in
12419     *-*-beos*)
12420         ac_default_prefix=/boot/develop/tools/gnupro
12421         ;;
12422     *-*-cygwin* | *-*-mingw32*)
12423         if test "$build" != "$host"; then # cross-compiling
12424             # Default cross-compile location
12425             ac_default_prefix=/usr/local/cross-tools/i386-mingw32
12426         else
12427             # Look for the location of the tools and install there
12428             if test "$BUILD_PREFIX" != ""; then
12429                 ac_default_prefix=$BUILD_PREFIX
12430             fi
12431         fi
12432         if test x$WINDRES != x; then
12433             use_version_rc=true
12434         fi
12435         ;;
12436 esac
12437  if test x$use_version_rc = xtrue; then
12438   USE_VERSION_RC_TRUE=
12439   USE_VERSION_RC_FALSE='#'
12440 else
12441   USE_VERSION_RC_TRUE='#'
12442   USE_VERSION_RC_FALSE=
12443 fi
12444
12445
12446 base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
12447
12448 find_lib()
12449 {
12450     gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
12451     gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
12452     env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
12453     if test "$cross_compiling" = yes; then
12454         host_lib_path=""
12455     else
12456         host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
12457     fi
12458     for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
12459         lib=`ls -- $path/$1 2>/dev/null | sort | sed 's/.*\/\(.*\)/\1/; q'`
12460         if test x$lib != x; then
12461             echo $lib
12462             return
12463         fi
12464     done
12465 }
12466
12467 SDL_VERSION=1.2.10
12468
12469
12470
12471 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12472         if test -n "$ac_tool_prefix"; then
12473   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12474 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12476 $as_echo_n "checking for $ac_word... " >&6; }
12477 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12478   $as_echo_n "(cached) " >&6
12479 else
12480   case $PKG_CONFIG in
12481   [\\/]* | ?:[\\/]*)
12482   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12483   ;;
12484   *)
12485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12486 for as_dir in $PATH
12487 do
12488   IFS=$as_save_IFS
12489   test -z "$as_dir" && as_dir=.
12490   for ac_exec_ext in '' $ac_executable_extensions; do
12491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12492     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12493     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12494     break 2
12495   fi
12496 done
12497 done
12498 IFS=$as_save_IFS
12499
12500   ;;
12501 esac
12502 fi
12503 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12504 if test -n "$PKG_CONFIG"; then
12505   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12506 $as_echo "$PKG_CONFIG" >&6; }
12507 else
12508   { $as_echo "$as_me:$LINENO: result: no" >&5
12509 $as_echo "no" >&6; }
12510 fi
12511
12512
12513 fi
12514 if test -z "$ac_cv_path_PKG_CONFIG"; then
12515   ac_pt_PKG_CONFIG=$PKG_CONFIG
12516   # Extract the first word of "pkg-config", so it can be a program name with args.
12517 set dummy pkg-config; ac_word=$2
12518 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12519 $as_echo_n "checking for $ac_word... " >&6; }
12520 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12521   $as_echo_n "(cached) " >&6
12522 else
12523   case $ac_pt_PKG_CONFIG in
12524   [\\/]* | ?:[\\/]*)
12525   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12526   ;;
12527   *)
12528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12529 for as_dir in $PATH
12530 do
12531   IFS=$as_save_IFS
12532   test -z "$as_dir" && as_dir=.
12533   for ac_exec_ext in '' $ac_executable_extensions; do
12534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12535     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12536     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12537     break 2
12538   fi
12539 done
12540 done
12541 IFS=$as_save_IFS
12542
12543   ;;
12544 esac
12545 fi
12546 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12547 if test -n "$ac_pt_PKG_CONFIG"; then
12548   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12549 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12550 else
12551   { $as_echo "$as_me:$LINENO: result: no" >&5
12552 $as_echo "no" >&6; }
12553 fi
12554
12555   if test "x$ac_pt_PKG_CONFIG" = x; then
12556     PKG_CONFIG=""
12557   else
12558     case $cross_compiling:$ac_tool_warned in
12559 yes:)
12560 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12562 ac_tool_warned=yes ;;
12563 esac
12564     PKG_CONFIG=$ac_pt_PKG_CONFIG
12565   fi
12566 else
12567   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12568 fi
12569
12570 fi
12571 if test -n "$PKG_CONFIG"; then
12572         _pkg_min_version=0.9.0
12573         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12574 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12575         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12576                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12577 $as_echo "yes" >&6; }
12578         else
12579                 { $as_echo "$as_me:$LINENO: result: no" >&5
12580 $as_echo "no" >&6; }
12581                 PKG_CONFIG=""
12582         fi
12583
12584 fi
12585
12586 # Check whether --with-sdl-prefix was given.
12587 if test "${with_sdl_prefix+set}" = set; then
12588   withval=$with_sdl_prefix; sdl_prefix="$withval"
12589 else
12590   sdl_prefix=""
12591 fi
12592
12593
12594 # Check whether --with-sdl-exec-prefix was given.
12595 if test "${with_sdl_exec_prefix+set}" = set; then
12596   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12597 else
12598   sdl_exec_prefix=""
12599 fi
12600
12601 # Check whether --enable-sdltest was given.
12602 if test "${enable_sdltest+set}" = set; then
12603   enableval=$enable_sdltest;
12604 else
12605   enable_sdltest=yes
12606 fi
12607
12608
12609   min_sdl_version=$SDL_VERSION
12610
12611   if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
12612
12613 pkg_failed=no
12614 { $as_echo "$as_me:$LINENO: checking for SDL" >&5
12615 $as_echo_n "checking for SDL... " >&6; }
12616
12617 if test -n "$PKG_CONFIG"; then
12618     if test -n "$SDL_CFLAGS"; then
12619         pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12620     else
12621         if test -n "$PKG_CONFIG" && \
12622     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= \$min_sdl_version\"") >&5
12623   ($PKG_CONFIG --exists --print-errors "sdl >= $min_sdl_version") 2>&5
12624   ac_status=$?
12625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); }; then
12627   pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= $min_sdl_version" 2>/dev/null`
12628 else
12629   pkg_failed=yes
12630 fi
12631     fi
12632 else
12633         pkg_failed=untried
12634 fi
12635 if test -n "$PKG_CONFIG"; then
12636     if test -n "$SDL_LIBS"; then
12637         pkg_cv_SDL_LIBS="$SDL_LIBS"
12638     else
12639         if test -n "$PKG_CONFIG" && \
12640     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= \$min_sdl_version\"") >&5
12641   ($PKG_CONFIG --exists --print-errors "sdl >= $min_sdl_version") 2>&5
12642   ac_status=$?
12643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); }; then
12645   pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= $min_sdl_version" 2>/dev/null`
12646 else
12647   pkg_failed=yes
12648 fi
12649     fi
12650 else
12651         pkg_failed=untried
12652 fi
12653
12654
12655
12656 if test $pkg_failed = yes; then
12657
12658 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12659         _pkg_short_errors_supported=yes
12660 else
12661         _pkg_short_errors_supported=no
12662 fi
12663         if test $_pkg_short_errors_supported = yes; then
12664                 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl >= $min_sdl_version"`
12665         else
12666                 SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl >= $min_sdl_version"`
12667         fi
12668         # Put the nasty error message in config.log where it belongs
12669         echo "$SDL_PKG_ERRORS" >&5
12670
12671         { $as_echo "$as_me:$LINENO: result: no" >&5
12672 $as_echo "no" >&6; }
12673                              { $as_echo "$as_me:$LINENO: result: no" >&5
12674 $as_echo "no" >&6; }
12675              sdl_pc=no
12676
12677 elif test $pkg_failed = untried; then
12678                      { $as_echo "$as_me:$LINENO: result: no" >&5
12679 $as_echo "no" >&6; }
12680              sdl_pc=no
12681
12682 else
12683         SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
12684         SDL_LIBS=$pkg_cv_SDL_LIBS
12685         { $as_echo "$as_me:$LINENO: result: yes" >&5
12686 $as_echo "yes" >&6; }
12687         sdl_pc=yes
12688 fi
12689   else
12690     sdl_pc=no
12691     if test x$sdl_exec_prefix != x ; then
12692       sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
12693       if test x${SDL_CONFIG+set} != xset ; then
12694         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12695       fi
12696     fi
12697     if test x$sdl_prefix != x ; then
12698       sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
12699       if test x${SDL_CONFIG+set} != xset ; then
12700         SDL_CONFIG=$sdl_prefix/bin/sdl-config
12701       fi
12702     fi
12703   fi
12704
12705   if test "x$sdl_pc" = xyes ; then
12706     no_sdl=""
12707     SDL_CONFIG="pkg-config sdl"
12708   else
12709     as_save_PATH="$PATH"
12710     if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
12711       PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12712     fi
12713     # Extract the first word of "sdl-config", so it can be a program name with args.
12714 set dummy sdl-config; ac_word=$2
12715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12718   $as_echo_n "(cached) " >&6
12719 else
12720   case $SDL_CONFIG in
12721   [\\/]* | ?:[\\/]*)
12722   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12723   ;;
12724   *)
12725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726 for as_dir in $PATH
12727 do
12728   IFS=$as_save_IFS
12729   test -z "$as_dir" && as_dir=.
12730   for ac_exec_ext in '' $ac_executable_extensions; do
12731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12732     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12733     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12734     break 2
12735   fi
12736 done
12737 done
12738 IFS=$as_save_IFS
12739
12740   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12741   ;;
12742 esac
12743 fi
12744 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12745 if test -n "$SDL_CONFIG"; then
12746   { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12747 $as_echo "$SDL_CONFIG" >&6; }
12748 else
12749   { $as_echo "$as_me:$LINENO: result: no" >&5
12750 $as_echo "no" >&6; }
12751 fi
12752
12753
12754     PATH="$as_save_PATH"
12755     { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12756 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12757     no_sdl=""
12758
12759     if test "$SDL_CONFIG" = "no" ; then
12760       no_sdl=yes
12761     else
12762       SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
12763       SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
12764
12765       sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
12766              sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12767       sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
12768              sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12769       sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12770              sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12771       if test "x$enable_sdltest" = "xyes" ; then
12772         ac_save_CFLAGS="$CFLAGS"
12773         ac_save_CXXFLAGS="$CXXFLAGS"
12774         ac_save_LIBS="$LIBS"
12775         CFLAGS="$CFLAGS $SDL_CFLAGS"
12776         CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12777         LIBS="$LIBS $SDL_LIBS"
12778       rm -f conf.sdltest
12779       if test "$cross_compiling" = yes; then
12780   echo $ac_n "cross compiling; assumed OK... $ac_c"
12781 else
12782   cat >conftest.$ac_ext <<_ACEOF
12783 /* confdefs.h.  */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h.  */
12788
12789 #include <stdio.h>
12790 #include <stdlib.h>
12791 #include <string.h>
12792 #include "SDL.h"
12793
12794 char*
12795 my_strdup (char *str)
12796 {
12797   char *new_str;
12798
12799   if (str)
12800     {
12801       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12802       strcpy (new_str, str);
12803     }
12804   else
12805     new_str = NULL;
12806
12807   return new_str;
12808 }
12809
12810 int main (int argc, char *argv[])
12811 {
12812   int major, minor, micro;
12813   char *tmp_version;
12814
12815   /* This hangs on some systems (?)
12816   system ("touch conf.sdltest");
12817   */
12818   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12819
12820   /* HP/UX 9 (%@#!) writes to sscanf strings */
12821   tmp_version = my_strdup("$min_sdl_version");
12822   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12823      printf("%s, bad version string\n", "$min_sdl_version");
12824      exit(1);
12825    }
12826
12827    if (($sdl_major_version > major) ||
12828       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12829       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12830     {
12831       return 0;
12832     }
12833   else
12834     {
12835       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12836       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12837       printf("*** best to upgrade to the required version.\n");
12838       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12839       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12840       printf("*** config.cache before re-running configure\n");
12841       return 1;
12842     }
12843 }
12844
12845
12846 _ACEOF
12847 rm -f conftest$ac_exeext
12848 if { (ac_try="$ac_link"
12849 case "(($ac_try" in
12850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851   *) ac_try_echo=$ac_try;;
12852 esac
12853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12854 $as_echo "$ac_try_echo") >&5
12855   (eval "$ac_link") 2>&5
12856   ac_status=$?
12857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12859   { (case "(($ac_try" in
12860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861   *) ac_try_echo=$ac_try;;
12862 esac
12863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12864 $as_echo "$ac_try_echo") >&5
12865   (eval "$ac_try") 2>&5
12866   ac_status=$?
12867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868   (exit $ac_status); }; }; then
12869   :
12870 else
12871   $as_echo "$as_me: program exited with status $ac_status" >&5
12872 $as_echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12874
12875 ( exit $ac_status )
12876 no_sdl=yes
12877 fi
12878 rm -rf conftest.dSYM
12879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12880 fi
12881
12882
12883         CFLAGS="$ac_save_CFLAGS"
12884         CXXFLAGS="$ac_save_CXXFLAGS"
12885         LIBS="$ac_save_LIBS"
12886       fi
12887     fi
12888     if test "x$no_sdl" = x ; then
12889       { $as_echo "$as_me:$LINENO: result: yes" >&5
12890 $as_echo "yes" >&6; }
12891     else
12892       { $as_echo "$as_me:$LINENO: result: no" >&5
12893 $as_echo "no" >&6; }
12894     fi
12895   fi
12896   if test "x$no_sdl" = x ; then
12897      :
12898   else
12899      if test "$SDL_CONFIG" = "no" ; then
12900        echo "*** The sdl-config script installed by SDL could not be found"
12901        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12902        echo "*** your path, or set the SDL_CONFIG environment variable to the"
12903        echo "*** full path to sdl-config."
12904      else
12905        if test -f conf.sdltest ; then
12906         :
12907        else
12908           echo "*** Could not run SDL test program, checking why..."
12909           CFLAGS="$CFLAGS $SDL_CFLAGS"
12910           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12911           LIBS="$LIBS $SDL_LIBS"
12912           cat >conftest.$ac_ext <<_ACEOF
12913 /* confdefs.h.  */
12914 _ACEOF
12915 cat confdefs.h >>conftest.$ac_ext
12916 cat >>conftest.$ac_ext <<_ACEOF
12917 /* end confdefs.h.  */
12918
12919 #include <stdio.h>
12920 #include "SDL.h"
12921
12922 int main(int argc, char *argv[])
12923 { return 0; }
12924 #undef  main
12925 #define main K_and_R_C_main
12926
12927 int
12928 main ()
12929 {
12930  return 0;
12931   ;
12932   return 0;
12933 }
12934 _ACEOF
12935 rm -f conftest.$ac_objext conftest$ac_exeext
12936 if { (ac_try="$ac_link"
12937 case "(($ac_try" in
12938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12939   *) ac_try_echo=$ac_try;;
12940 esac
12941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12942 $as_echo "$ac_try_echo") >&5
12943   (eval "$ac_link") 2>conftest.er1
12944   ac_status=$?
12945   grep -v '^ *+' conftest.er1 >conftest.err
12946   rm -f conftest.er1
12947   cat conftest.err >&5
12948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); } && {
12950          test -z "$ac_c_werror_flag" ||
12951          test ! -s conftest.err
12952        } && test -s conftest$ac_exeext && {
12953          test "$cross_compiling" = yes ||
12954          $as_test_x conftest$ac_exeext
12955        }; then
12956    echo "*** The test program compiled, but did not run. This usually means"
12957           echo "*** that the run-time linker is not finding SDL or finding the wrong"
12958           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12959           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12960           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12961           echo "*** is required on your system"
12962           echo "***"
12963           echo "*** If you have an old version installed, it is best to remove it, although"
12964           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12965 else
12966   $as_echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12968
12969          echo "*** The test program failed to compile or link. See the file config.log for the"
12970           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12971           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12972           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12973 fi
12974
12975 rm -rf conftest.dSYM
12976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12977       conftest$ac_exeext conftest.$ac_ext
12978           CFLAGS="$ac_save_CFLAGS"
12979           CXXFLAGS="$ac_save_CXXFLAGS"
12980           LIBS="$ac_save_LIBS"
12981        fi
12982      fi
12983      SDL_CFLAGS=""
12984      SDL_LIBS=""
12985      { { $as_echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
12986 $as_echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
12987    { (exit 1); exit 1; }; }
12988
12989   fi
12990
12991
12992   rm -f conf.sdltest
12993
12994 CFLAGS="$CFLAGS -DSDL_IMAGE_USE_COMMON_BACKEND $SDL_CFLAGS"
12995 LIBS="$LIBS $SDL_LIBS"
12996 saved_LIBS="$LIBS"
12997
12998 # Check whether --enable-bmp was given.
12999 if test "${enable_bmp+set}" = set; then
13000   enableval=$enable_bmp;
13001 else
13002   enable_bmp=yes
13003 fi
13004
13005 # Check whether --enable-gif was given.
13006 if test "${enable_gif+set}" = set; then
13007   enableval=$enable_gif;
13008 else
13009   enable_gif=yes
13010 fi
13011
13012 # Check whether --enable-jpg was given.
13013 if test "${enable_jpg+set}" = set; then
13014   enableval=$enable_jpg;
13015 else
13016   enable_jpg=yes
13017 fi
13018
13019 # Check whether --enable-jpg-shared was given.
13020 if test "${enable_jpg_shared+set}" = set; then
13021   enableval=$enable_jpg_shared;
13022 else
13023   enable_jpg_shared=yes
13024 fi
13025
13026 # Check whether --enable-lbm was given.
13027 if test "${enable_lbm+set}" = set; then
13028   enableval=$enable_lbm;
13029 else
13030   enable_lbm=yes
13031 fi
13032
13033 # Check whether --enable-pcx was given.
13034 if test "${enable_pcx+set}" = set; then
13035   enableval=$enable_pcx;
13036 else
13037   enable_pcx=yes
13038 fi
13039
13040 # Check whether --enable-png was given.
13041 if test "${enable_png+set}" = set; then
13042   enableval=$enable_png;
13043 else
13044   enable_png=yes
13045 fi
13046
13047 # Check whether --enable-png-shared was given.
13048 if test "${enable_png_shared+set}" = set; then
13049   enableval=$enable_png_shared;
13050 else
13051   enable_png_shared=yes
13052 fi
13053
13054 # Check whether --enable-pnm was given.
13055 if test "${enable_pnm+set}" = set; then
13056   enableval=$enable_pnm;
13057 else
13058   enable_pnm=yes
13059 fi
13060
13061 # Check whether --enable-tga was given.
13062 if test "${enable_tga+set}" = set; then
13063   enableval=$enable_tga;
13064 else
13065   enable_tga=yes
13066 fi
13067
13068 # Check whether --enable-tif was given.
13069 if test "${enable_tif+set}" = set; then
13070   enableval=$enable_tif;
13071 else
13072   enable_tif=yes
13073 fi
13074
13075 # Check whether --enable-tif-shared was given.
13076 if test "${enable_tif_shared+set}" = set; then
13077   enableval=$enable_tif_shared;
13078 else
13079   enable_tif_shared=yes
13080 fi
13081
13082 # Check whether --enable-xcf was given.
13083 if test "${enable_xcf+set}" = set; then
13084   enableval=$enable_xcf;
13085 else
13086   enable_xcf=yes
13087 fi
13088
13089 # Check whether --enable-xpm was given.
13090 if test "${enable_xpm+set}" = set; then
13091   enableval=$enable_xpm;
13092 else
13093   enable_xpm=yes
13094 fi
13095
13096 # Check whether --enable-xv was given.
13097 if test "${enable_xv+set}" = set; then
13098   enableval=$enable_xv;
13099 else
13100   enable_xv=yes
13101 fi
13102
13103
13104 if test x$enable_jpg = xyes || test x$enable_tif = xyes; then
13105     if test "${ac_cv_header_jpeglib_h+set}" = set; then
13106   { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
13107 $as_echo_n "checking for jpeglib.h... " >&6; }
13108 if test "${ac_cv_header_jpeglib_h+set}" = set; then
13109   $as_echo_n "(cached) " >&6
13110 fi
13111 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
13112 $as_echo "$ac_cv_header_jpeglib_h" >&6; }
13113 else
13114   # Is the header compilable?
13115 { $as_echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
13116 $as_echo_n "checking jpeglib.h usability... " >&6; }
13117 cat >conftest.$ac_ext <<_ACEOF
13118 /* confdefs.h.  */
13119 _ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h.  */
13123 $ac_includes_default
13124 #include <jpeglib.h>
13125 _ACEOF
13126 rm -f conftest.$ac_objext
13127 if { (ac_try="$ac_compile"
13128 case "(($ac_try" in
13129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130   *) ac_try_echo=$ac_try;;
13131 esac
13132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13133 $as_echo "$ac_try_echo") >&5
13134   (eval "$ac_compile") 2>conftest.er1
13135   ac_status=$?
13136   grep -v '^ *+' conftest.er1 >conftest.err
13137   rm -f conftest.er1
13138   cat conftest.err >&5
13139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); } && {
13141          test -z "$ac_c_werror_flag" ||
13142          test ! -s conftest.err
13143        } && test -s conftest.$ac_objext; then
13144   ac_header_compiler=yes
13145 else
13146   $as_echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13148
13149         ac_header_compiler=no
13150 fi
13151
13152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13153 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13154 $as_echo "$ac_header_compiler" >&6; }
13155
13156 # Is the header present?
13157 { $as_echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
13158 $as_echo_n "checking jpeglib.h presence... " >&6; }
13159 cat >conftest.$ac_ext <<_ACEOF
13160 /* confdefs.h.  */
13161 _ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h.  */
13165 #include <jpeglib.h>
13166 _ACEOF
13167 if { (ac_try="$ac_cpp conftest.$ac_ext"
13168 case "(($ac_try" in
13169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170   *) ac_try_echo=$ac_try;;
13171 esac
13172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13173 $as_echo "$ac_try_echo") >&5
13174   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13175   ac_status=$?
13176   grep -v '^ *+' conftest.er1 >conftest.err
13177   rm -f conftest.er1
13178   cat conftest.err >&5
13179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); } >/dev/null && {
13181          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13182          test ! -s conftest.err
13183        }; then
13184   ac_header_preproc=yes
13185 else
13186   $as_echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13188
13189   ac_header_preproc=no
13190 fi
13191
13192 rm -f conftest.err conftest.$ac_ext
13193 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13194 $as_echo "$ac_header_preproc" >&6; }
13195
13196 # So?  What about this header?
13197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13198   yes:no: )
13199     { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13200 $as_echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13201     { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
13202 $as_echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
13203     ac_header_preproc=yes
13204     ;;
13205   no:yes:* )
13206     { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
13207 $as_echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
13208     { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&5
13209 $as_echo "$as_me: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&2;}
13210     { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
13211 $as_echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
13212     { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&5
13213 $as_echo "$as_me: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13214     { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
13215 $as_echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
13216     { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
13217 $as_echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
13218
13219     ;;
13220 esac
13221 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
13222 $as_echo_n "checking for jpeglib.h... " >&6; }
13223 if test "${ac_cv_header_jpeglib_h+set}" = set; then
13224   $as_echo_n "(cached) " >&6
13225 else
13226   ac_cv_header_jpeglib_h=$ac_header_preproc
13227 fi
13228 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
13229 $as_echo "$ac_cv_header_jpeglib_h" >&6; }
13230
13231 fi
13232 if test "x$ac_cv_header_jpeglib_h" = x""yes; then
13233   have_jpg_hdr=yes
13234 fi
13235
13236
13237     { $as_echo "$as_me:$LINENO: checking for jpeg_CreateDecompress in -ljpeg" >&5
13238 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; }
13239 if test "${ac_cv_lib_jpeg_jpeg_CreateDecompress+set}" = set; then
13240   $as_echo_n "(cached) " >&6
13241 else
13242   ac_check_lib_save_LIBS=$LIBS
13243 LIBS="-ljpeg  $LIBS"
13244 cat >conftest.$ac_ext <<_ACEOF
13245 /* confdefs.h.  */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h.  */
13250
13251 /* Override any GCC internal prototype to avoid an error.
13252    Use char because int might match the return type of a GCC
13253    builtin and then its argument prototype would still apply.  */
13254 #ifdef __cplusplus
13255 extern "C"
13256 #endif
13257 char jpeg_CreateDecompress ();
13258 int
13259 main ()
13260 {
13261 return jpeg_CreateDecompress ();
13262   ;
13263   return 0;
13264 }
13265 _ACEOF
13266 rm -f conftest.$ac_objext conftest$ac_exeext
13267 if { (ac_try="$ac_link"
13268 case "(($ac_try" in
13269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270   *) ac_try_echo=$ac_try;;
13271 esac
13272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13273 $as_echo "$ac_try_echo") >&5
13274   (eval "$ac_link") 2>conftest.er1
13275   ac_status=$?
13276   grep -v '^ *+' conftest.er1 >conftest.err
13277   rm -f conftest.er1
13278   cat conftest.err >&5
13279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); } && {
13281          test -z "$ac_c_werror_flag" ||
13282          test ! -s conftest.err
13283        } && test -s conftest$ac_exeext && {
13284          test "$cross_compiling" = yes ||
13285          $as_test_x conftest$ac_exeext
13286        }; then
13287   ac_cv_lib_jpeg_jpeg_CreateDecompress=yes
13288 else
13289   $as_echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13291
13292         ac_cv_lib_jpeg_jpeg_CreateDecompress=no
13293 fi
13294
13295 rm -rf conftest.dSYM
13296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13297       conftest$ac_exeext conftest.$ac_ext
13298 LIBS=$ac_check_lib_save_LIBS
13299 fi
13300 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5
13301 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; }
13302 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = x""yes; then
13303   have_jpg_lib=yes
13304 fi
13305
13306     if test x$have_jpg_hdr = xyes -a x$have_jpg_lib = xyes; then
13307         if test x$enable_jpg = xyes; then
13308             cat >>confdefs.h <<\_ACEOF
13309 #define LOAD_JPG 1
13310 _ACEOF
13311
13312         fi
13313         LIBS="-ljpeg $LIBS"
13314
13315         case "$host" in
13316             *-*-darwin*)
13317                 jpg_lib=`find_lib libjpeg.dylib`
13318                 ;;
13319             *-*-cygwin* | *-*-mingw32*)
13320                 jpg_lib=`find_lib "jpeg.dll"`
13321                 ;;
13322             *)
13323                 jpg_lib=`find_lib "libjpeg.so.[0-9]"`
13324                 if test x$jpg_lib = x; then
13325                     jpg_lib=`find_lib "libjpeg.so.[0-9][0-9]"`
13326                 fi
13327                 if test x$jpg_lib = x; then
13328                     jpg_lib=`find_lib "libjpeg.so.[0-9]*"`
13329                 fi
13330                 ;;
13331         esac
13332     elif test x$enable_jpg = xyes; then
13333         { $as_echo "$as_me:$LINENO: WARNING: *** Unable to find JPEG library (http://www.ijg.org/)" >&5
13334 $as_echo "$as_me: WARNING: *** Unable to find JPEG library (http://www.ijg.org/)" >&2;}
13335         { $as_echo "$as_me:$LINENO: WARNING: JPG image loading disabled" >&5
13336 $as_echo "$as_me: WARNING: JPG image loading disabled" >&2;}
13337     fi
13338 fi
13339
13340 if test "x$enable_png" = xyes; then
13341
13342 pkg_failed=no
13343 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
13344 $as_echo_n "checking for LIBPNG... " >&6; }
13345
13346 if test -n "$PKG_CONFIG"; then
13347     if test -n "$LIBPNG_CFLAGS"; then
13348         pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
13349     else
13350         if test -n "$PKG_CONFIG" && \
13351     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng\"") >&5
13352   ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
13353   ac_status=$?
13354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355   (exit $ac_status); }; then
13356   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
13357 else
13358   pkg_failed=yes
13359 fi
13360     fi
13361 else
13362         pkg_failed=untried
13363 fi
13364 if test -n "$PKG_CONFIG"; then
13365     if test -n "$LIBPNG_LIBS"; then
13366         pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
13367     else
13368         if test -n "$PKG_CONFIG" && \
13369     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng\"") >&5
13370   ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
13371   ac_status=$?
13372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); }; then
13374   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
13375 else
13376   pkg_failed=yes
13377 fi
13378     fi
13379 else
13380         pkg_failed=untried
13381 fi
13382
13383
13384
13385 if test $pkg_failed = yes; then
13386
13387 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13388         _pkg_short_errors_supported=yes
13389 else
13390         _pkg_short_errors_supported=no
13391 fi
13392         if test $_pkg_short_errors_supported = yes; then
13393                 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng"`
13394         else
13395                 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng"`
13396         fi
13397         # Put the nasty error message in config.log where it belongs
13398         echo "$LIBPNG_PKG_ERRORS" >&5
13399
13400         { $as_echo "$as_me:$LINENO: result: no" >&5
13401 $as_echo "no" >&6; }
13402                         if test "${ac_cv_header_png_h+set}" = set; then
13403   { $as_echo "$as_me:$LINENO: checking for png.h" >&5
13404 $as_echo_n "checking for png.h... " >&6; }
13405 if test "${ac_cv_header_png_h+set}" = set; then
13406   $as_echo_n "(cached) " >&6
13407 fi
13408 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
13409 $as_echo "$ac_cv_header_png_h" >&6; }
13410 else
13411   # Is the header compilable?
13412 { $as_echo "$as_me:$LINENO: checking png.h usability" >&5
13413 $as_echo_n "checking png.h usability... " >&6; }
13414 cat >conftest.$ac_ext <<_ACEOF
13415 /* confdefs.h.  */
13416 _ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h.  */
13420 $ac_includes_default
13421 #include <png.h>
13422 _ACEOF
13423 rm -f conftest.$ac_objext
13424 if { (ac_try="$ac_compile"
13425 case "(($ac_try" in
13426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427   *) ac_try_echo=$ac_try;;
13428 esac
13429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13430 $as_echo "$ac_try_echo") >&5
13431   (eval "$ac_compile") 2>conftest.er1
13432   ac_status=$?
13433   grep -v '^ *+' conftest.er1 >conftest.err
13434   rm -f conftest.er1
13435   cat conftest.err >&5
13436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); } && {
13438          test -z "$ac_c_werror_flag" ||
13439          test ! -s conftest.err
13440        } && test -s conftest.$ac_objext; then
13441   ac_header_compiler=yes
13442 else
13443   $as_echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13445
13446         ac_header_compiler=no
13447 fi
13448
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13451 $as_echo "$ac_header_compiler" >&6; }
13452
13453 # Is the header present?
13454 { $as_echo "$as_me:$LINENO: checking png.h presence" >&5
13455 $as_echo_n "checking png.h presence... " >&6; }
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h.  */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h.  */
13462 #include <png.h>
13463 _ACEOF
13464 if { (ac_try="$ac_cpp conftest.$ac_ext"
13465 case "(($ac_try" in
13466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467   *) ac_try_echo=$ac_try;;
13468 esac
13469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13470 $as_echo "$ac_try_echo") >&5
13471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13472   ac_status=$?
13473   grep -v '^ *+' conftest.er1 >conftest.err
13474   rm -f conftest.er1
13475   cat conftest.err >&5
13476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); } >/dev/null && {
13478          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13479          test ! -s conftest.err
13480        }; then
13481   ac_header_preproc=yes
13482 else
13483   $as_echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13485
13486   ac_header_preproc=no
13487 fi
13488
13489 rm -f conftest.err conftest.$ac_ext
13490 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13491 $as_echo "$ac_header_preproc" >&6; }
13492
13493 # So?  What about this header?
13494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13495   yes:no: )
13496     { $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
13497 $as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13498     { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
13499 $as_echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
13500     ac_header_preproc=yes
13501     ;;
13502   no:yes:* )
13503     { $as_echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
13504 $as_echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
13505     { $as_echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
13506 $as_echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
13507     { $as_echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
13508 $as_echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
13509     { $as_echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
13510 $as_echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13511     { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
13512 $as_echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
13513     { $as_echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
13514 $as_echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
13515
13516     ;;
13517 esac
13518 { $as_echo "$as_me:$LINENO: checking for png.h" >&5
13519 $as_echo_n "checking for png.h... " >&6; }
13520 if test "${ac_cv_header_png_h+set}" = set; then
13521   $as_echo_n "(cached) " >&6
13522 else
13523   ac_cv_header_png_h=$ac_header_preproc
13524 fi
13525 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
13526 $as_echo "$ac_cv_header_png_h" >&6; }
13527
13528 fi
13529 if test "x$ac_cv_header_png_h" = x""yes; then
13530   have_png_hdr=yes
13531 fi
13532
13533
13534         { $as_echo "$as_me:$LINENO: checking for png_create_read_struct in -lpng" >&5
13535 $as_echo_n "checking for png_create_read_struct in -lpng... " >&6; }
13536 if test "${ac_cv_lib_png_png_create_read_struct+set}" = set; then
13537   $as_echo_n "(cached) " >&6
13538 else
13539   ac_check_lib_save_LIBS=$LIBS
13540 LIBS="-lpng -lz $LIBS"
13541 cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h.  */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h.  */
13547
13548 /* Override any GCC internal prototype to avoid an error.
13549    Use char because int might match the return type of a GCC
13550    builtin and then its argument prototype would still apply.  */
13551 #ifdef __cplusplus
13552 extern "C"
13553 #endif
13554 char png_create_read_struct ();
13555 int
13556 main ()
13557 {
13558 return png_create_read_struct ();
13559   ;
13560   return 0;
13561 }
13562 _ACEOF
13563 rm -f conftest.$ac_objext conftest$ac_exeext
13564 if { (ac_try="$ac_link"
13565 case "(($ac_try" in
13566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567   *) ac_try_echo=$ac_try;;
13568 esac
13569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13570 $as_echo "$ac_try_echo") >&5
13571   (eval "$ac_link") 2>conftest.er1
13572   ac_status=$?
13573   grep -v '^ *+' conftest.er1 >conftest.err
13574   rm -f conftest.er1
13575   cat conftest.err >&5
13576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); } && {
13578          test -z "$ac_c_werror_flag" ||
13579          test ! -s conftest.err
13580        } && test -s conftest$ac_exeext && {
13581          test "$cross_compiling" = yes ||
13582          $as_test_x conftest$ac_exeext
13583        }; then
13584   ac_cv_lib_png_png_create_read_struct=yes
13585 else
13586   $as_echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13588
13589         ac_cv_lib_png_png_create_read_struct=no
13590 fi
13591
13592 rm -rf conftest.dSYM
13593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13594       conftest$ac_exeext conftest.$ac_ext
13595 LIBS=$ac_check_lib_save_LIBS
13596 fi
13597 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_read_struct" >&5
13598 $as_echo "$ac_cv_lib_png_png_create_read_struct" >&6; }
13599 if test "x$ac_cv_lib_png_png_create_read_struct" = x""yes; then
13600   have_png_lib=yes
13601 fi
13602
13603
13604 elif test $pkg_failed = untried; then
13605                 if test "${ac_cv_header_png_h+set}" = set; then
13606   { $as_echo "$as_me:$LINENO: checking for png.h" >&5
13607 $as_echo_n "checking for png.h... " >&6; }
13608 if test "${ac_cv_header_png_h+set}" = set; then
13609   $as_echo_n "(cached) " >&6
13610 fi
13611 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
13612 $as_echo "$ac_cv_header_png_h" >&6; }
13613 else
13614   # Is the header compilable?
13615 { $as_echo "$as_me:$LINENO: checking png.h usability" >&5
13616 $as_echo_n "checking png.h usability... " >&6; }
13617 cat >conftest.$ac_ext <<_ACEOF
13618 /* confdefs.h.  */
13619 _ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h.  */
13623 $ac_includes_default
13624 #include <png.h>
13625 _ACEOF
13626 rm -f conftest.$ac_objext
13627 if { (ac_try="$ac_compile"
13628 case "(($ac_try" in
13629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630   *) ac_try_echo=$ac_try;;
13631 esac
13632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13633 $as_echo "$ac_try_echo") >&5
13634   (eval "$ac_compile") 2>conftest.er1
13635   ac_status=$?
13636   grep -v '^ *+' conftest.er1 >conftest.err
13637   rm -f conftest.er1
13638   cat conftest.err >&5
13639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); } && {
13641          test -z "$ac_c_werror_flag" ||
13642          test ! -s conftest.err
13643        } && test -s conftest.$ac_objext; then
13644   ac_header_compiler=yes
13645 else
13646   $as_echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13648
13649         ac_header_compiler=no
13650 fi
13651
13652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13653 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13654 $as_echo "$ac_header_compiler" >&6; }
13655
13656 # Is the header present?
13657 { $as_echo "$as_me:$LINENO: checking png.h presence" >&5
13658 $as_echo_n "checking png.h presence... " >&6; }
13659 cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h.  */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h.  */
13665 #include <png.h>
13666 _ACEOF
13667 if { (ac_try="$ac_cpp conftest.$ac_ext"
13668 case "(($ac_try" in
13669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670   *) ac_try_echo=$ac_try;;
13671 esac
13672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13673 $as_echo "$ac_try_echo") >&5
13674   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13675   ac_status=$?
13676   grep -v '^ *+' conftest.er1 >conftest.err
13677   rm -f conftest.er1
13678   cat conftest.err >&5
13679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); } >/dev/null && {
13681          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13682          test ! -s conftest.err
13683        }; then
13684   ac_header_preproc=yes
13685 else
13686   $as_echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13688
13689   ac_header_preproc=no
13690 fi
13691
13692 rm -f conftest.err conftest.$ac_ext
13693 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13694 $as_echo "$ac_header_preproc" >&6; }
13695
13696 # So?  What about this header?
13697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13698   yes:no: )
13699     { $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
13700 $as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13701     { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
13702 $as_echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
13703     ac_header_preproc=yes
13704     ;;
13705   no:yes:* )
13706     { $as_echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
13707 $as_echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
13708     { $as_echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
13709 $as_echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
13710     { $as_echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
13711 $as_echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
13712     { $as_echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
13713 $as_echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13714     { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
13715 $as_echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
13716     { $as_echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
13717 $as_echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
13718
13719     ;;
13720 esac
13721 { $as_echo "$as_me:$LINENO: checking for png.h" >&5
13722 $as_echo_n "checking for png.h... " >&6; }
13723 if test "${ac_cv_header_png_h+set}" = set; then
13724   $as_echo_n "(cached) " >&6
13725 else
13726   ac_cv_header_png_h=$ac_header_preproc
13727 fi
13728 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
13729 $as_echo "$ac_cv_header_png_h" >&6; }
13730
13731 fi
13732 if test "x$ac_cv_header_png_h" = x""yes; then
13733   have_png_hdr=yes
13734 fi
13735
13736
13737         { $as_echo "$as_me:$LINENO: checking for png_create_read_struct in -lpng" >&5
13738 $as_echo_n "checking for png_create_read_struct in -lpng... " >&6; }
13739 if test "${ac_cv_lib_png_png_create_read_struct+set}" = set; then
13740   $as_echo_n "(cached) " >&6
13741 else
13742   ac_check_lib_save_LIBS=$LIBS
13743 LIBS="-lpng -lz $LIBS"
13744 cat >conftest.$ac_ext <<_ACEOF
13745 /* confdefs.h.  */
13746 _ACEOF
13747 cat confdefs.h >>conftest.$ac_ext
13748 cat >>conftest.$ac_ext <<_ACEOF
13749 /* end confdefs.h.  */
13750
13751 /* Override any GCC internal prototype to avoid an error.
13752    Use char because int might match the return type of a GCC
13753    builtin and then its argument prototype would still apply.  */
13754 #ifdef __cplusplus
13755 extern "C"
13756 #endif
13757 char png_create_read_struct ();
13758 int
13759 main ()
13760 {
13761 return png_create_read_struct ();
13762   ;
13763   return 0;
13764 }
13765 _ACEOF
13766 rm -f conftest.$ac_objext conftest$ac_exeext
13767 if { (ac_try="$ac_link"
13768 case "(($ac_try" in
13769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770   *) ac_try_echo=$ac_try;;
13771 esac
13772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13773 $as_echo "$ac_try_echo") >&5
13774   (eval "$ac_link") 2>conftest.er1
13775   ac_status=$?
13776   grep -v '^ *+' conftest.er1 >conftest.err
13777   rm -f conftest.er1
13778   cat conftest.err >&5
13779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780   (exit $ac_status); } && {
13781          test -z "$ac_c_werror_flag" ||
13782          test ! -s conftest.err
13783        } && test -s conftest$ac_exeext && {
13784          test "$cross_compiling" = yes ||
13785          $as_test_x conftest$ac_exeext
13786        }; then
13787   ac_cv_lib_png_png_create_read_struct=yes
13788 else
13789   $as_echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13791
13792         ac_cv_lib_png_png_create_read_struct=no
13793 fi
13794
13795 rm -rf conftest.dSYM
13796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13797       conftest$ac_exeext conftest.$ac_ext
13798 LIBS=$ac_check_lib_save_LIBS
13799 fi
13800 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_read_struct" >&5
13801 $as_echo "$ac_cv_lib_png_png_create_read_struct" >&6; }
13802 if test "x$ac_cv_lib_png_png_create_read_struct" = x""yes; then
13803   have_png_lib=yes
13804 fi
13805
13806
13807 else
13808         LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
13809         LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
13810         { $as_echo "$as_me:$LINENO: result: yes" >&5
13811 $as_echo "yes" >&6; }
13812                 have_png_hdr=yes
13813         CFLAGS="$LIBPNG_CFLAGS $CFLAGS"
13814         have_png_lib=yes
13815
13816 fi
13817     if test x$have_png_hdr = xyes -a x$have_png_lib = xyes; then
13818         cat >>confdefs.h <<\_ACEOF
13819 #define LOAD_PNG 1
13820 _ACEOF
13821
13822
13823         case "$host" in
13824             *-*-darwin*)
13825                 png_lib=`find_lib libpng.dylib`
13826                 ;;
13827             *-*-cygwin* | *-*-mingw32*)
13828                 png_lib=`find_lib "libpng*.dll"`
13829                 ;;
13830             *)
13831                 png_lib=`find_lib "libpng.so.[0-9]"`
13832                 if test x$png_lib = x; then
13833                     png_lib=`find_lib "libpng.so.[0-9]*"`
13834                 fi
13835                 if test x$png_lib = x; then
13836                     png_lib=`find_lib "libpng*.so.[0-9]"`
13837                 fi
13838                 if test x$png_lib = x; then
13839                     png_lib=`find_lib "libpng*.so.[0-9]*"`
13840                 fi
13841                 ;;
13842         esac
13843     else
13844         { $as_echo "$as_me:$LINENO: WARNING: *** Unable to find PNG library (http://www.libpng.org/pub/png/libpng.html)" >&5
13845 $as_echo "$as_me: WARNING: *** Unable to find PNG library (http://www.libpng.org/pub/png/libpng.html)" >&2;}
13846         { $as_echo "$as_me:$LINENO: WARNING: PNG image loading disabled" >&5
13847 $as_echo "$as_me: WARNING: PNG image loading disabled" >&2;}
13848     fi
13849 fi
13850
13851 if test x$enable_tif = xyes; then
13852     if test "${ac_cv_header_tiffio_h+set}" = set; then
13853   { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
13854 $as_echo_n "checking for tiffio.h... " >&6; }
13855 if test "${ac_cv_header_tiffio_h+set}" = set; then
13856   $as_echo_n "(cached) " >&6
13857 fi
13858 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13859 $as_echo "$ac_cv_header_tiffio_h" >&6; }
13860 else
13861   # Is the header compilable?
13862 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13863 $as_echo_n "checking tiffio.h usability... " >&6; }
13864 cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h.  */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h.  */
13870 $ac_includes_default
13871 #include <tiffio.h>
13872 _ACEOF
13873 rm -f conftest.$ac_objext
13874 if { (ac_try="$ac_compile"
13875 case "(($ac_try" in
13876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877   *) ac_try_echo=$ac_try;;
13878 esac
13879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13880 $as_echo "$ac_try_echo") >&5
13881   (eval "$ac_compile") 2>conftest.er1
13882   ac_status=$?
13883   grep -v '^ *+' conftest.er1 >conftest.err
13884   rm -f conftest.er1
13885   cat conftest.err >&5
13886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); } && {
13888          test -z "$ac_c_werror_flag" ||
13889          test ! -s conftest.err
13890        } && test -s conftest.$ac_objext; then
13891   ac_header_compiler=yes
13892 else
13893   $as_echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.$ac_ext >&5
13895
13896         ac_header_compiler=no
13897 fi
13898
13899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13900 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13901 $as_echo "$ac_header_compiler" >&6; }
13902
13903 # Is the header present?
13904 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13905 $as_echo_n "checking tiffio.h presence... " >&6; }
13906 cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h.  */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h.  */
13912 #include <tiffio.h>
13913 _ACEOF
13914 if { (ac_try="$ac_cpp conftest.$ac_ext"
13915 case "(($ac_try" in
13916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917   *) ac_try_echo=$ac_try;;
13918 esac
13919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13920 $as_echo "$ac_try_echo") >&5
13921   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13922   ac_status=$?
13923   grep -v '^ *+' conftest.er1 >conftest.err
13924   rm -f conftest.er1
13925   cat conftest.err >&5
13926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); } >/dev/null && {
13928          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13929          test ! -s conftest.err
13930        }; then
13931   ac_header_preproc=yes
13932 else
13933   $as_echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13935
13936   ac_header_preproc=no
13937 fi
13938
13939 rm -f conftest.err conftest.$ac_ext
13940 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13941 $as_echo "$ac_header_preproc" >&6; }
13942
13943 # So?  What about this header?
13944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13945   yes:no: )
13946     { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13947 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13948     { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13949 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13950     ac_header_preproc=yes
13951     ;;
13952   no:yes:* )
13953     { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13954 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13955     { $as_echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
13956 $as_echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
13957     { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13958 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13959     { $as_echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
13960 $as_echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13961     { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13962 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13963     { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13964 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13965
13966     ;;
13967 esac
13968 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
13969 $as_echo_n "checking for tiffio.h... " >&6; }
13970 if test "${ac_cv_header_tiffio_h+set}" = set; then
13971   $as_echo_n "(cached) " >&6
13972 else
13973   ac_cv_header_tiffio_h=$ac_header_preproc
13974 fi
13975 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13976 $as_echo "$ac_cv_header_tiffio_h" >&6; }
13977
13978 fi
13979 if test "x$ac_cv_header_tiffio_h" = x""yes; then
13980   have_tif_hdr=yes
13981 fi
13982
13983
13984     { $as_echo "$as_me:$LINENO: checking for TIFFClientOpen in -ltiff" >&5
13985 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
13986 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then
13987   $as_echo_n "(cached) " >&6
13988 else
13989   ac_check_lib_save_LIBS=$LIBS
13990 LIBS="-ltiff -lz $LIBS"
13991 cat >conftest.$ac_ext <<_ACEOF
13992 /* confdefs.h.  */
13993 _ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h.  */
13997
13998 /* Override any GCC internal prototype to avoid an error.
13999    Use char because int might match the return type of a GCC
14000    builtin and then its argument prototype would still apply.  */
14001 #ifdef __cplusplus
14002 extern "C"
14003 #endif
14004 char TIFFClientOpen ();
14005 int
14006 main ()
14007 {
14008 return TIFFClientOpen ();
14009   ;
14010   return 0;
14011 }
14012 _ACEOF
14013 rm -f conftest.$ac_objext conftest$ac_exeext
14014 if { (ac_try="$ac_link"
14015 case "(($ac_try" in
14016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017   *) ac_try_echo=$ac_try;;
14018 esac
14019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14020 $as_echo "$ac_try_echo") >&5
14021   (eval "$ac_link") 2>conftest.er1
14022   ac_status=$?
14023   grep -v '^ *+' conftest.er1 >conftest.err
14024   rm -f conftest.er1
14025   cat conftest.err >&5
14026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); } && {
14028          test -z "$ac_c_werror_flag" ||
14029          test ! -s conftest.err
14030        } && test -s conftest$ac_exeext && {
14031          test "$cross_compiling" = yes ||
14032          $as_test_x conftest$ac_exeext
14033        }; then
14034   ac_cv_lib_tiff_TIFFClientOpen=yes
14035 else
14036   $as_echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14038
14039         ac_cv_lib_tiff_TIFFClientOpen=no
14040 fi
14041
14042 rm -rf conftest.dSYM
14043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14044       conftest$ac_exeext conftest.$ac_ext
14045 LIBS=$ac_check_lib_save_LIBS
14046 fi
14047 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
14048 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
14049 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then
14050   have_tif_lib=yes
14051 fi
14052
14053     if test x$have_tif_hdr = xyes -a x$have_tif_lib = xyes; then
14054         cat >>confdefs.h <<\_ACEOF
14055 #define LOAD_TIF 1
14056 _ACEOF
14057
14058
14059         case "$host" in
14060             *-*-darwin*)
14061                 tif_lib=`find_lib libtiff.dylib`
14062                 ;;
14063             *-*-cygwin* | *-*-mingw32*)
14064                 tif_lib=`find_lib "libtiff-*.dll"`
14065                 ;;
14066             *)
14067                 tif_lib=`find_lib "libtiff.so.[0-9]"`
14068                 if test x$tif_lib = x; then
14069                     tif_lib=`find_lib "libtiff.so.[0-9]*"`
14070                 fi
14071                 ;;
14072         esac
14073     else
14074         { $as_echo "$as_me:$LINENO: WARNING: *** Unable to find Tiff library (http://www.remotesensing.org/libtiff/)" >&5
14075 $as_echo "$as_me: WARNING: *** Unable to find Tiff library (http://www.remotesensing.org/libtiff/)" >&2;}
14076         { $as_echo "$as_me:$LINENO: WARNING: TIF image loading disabled" >&5
14077 $as_echo "$as_me: WARNING: TIF image loading disabled" >&2;}
14078     fi
14079 fi
14080
14081 if test x$enable_bmp = xyes; then
14082     cat >>confdefs.h <<\_ACEOF
14083 #define LOAD_BMP 1
14084 _ACEOF
14085
14086 fi
14087
14088 if test x$enable_gif = xyes; then
14089     cat >>confdefs.h <<\_ACEOF
14090 #define LOAD_GIF 1
14091 _ACEOF
14092
14093 fi
14094
14095 if test x$enable_lbm = xyes; then
14096     cat >>confdefs.h <<\_ACEOF
14097 #define LOAD_LBM 1
14098 _ACEOF
14099
14100 fi
14101
14102 if test x$enable_pcx = xyes; then
14103     cat >>confdefs.h <<\_ACEOF
14104 #define LOAD_PCX 1
14105 _ACEOF
14106
14107 fi
14108
14109 if test x$enable_pnm = xyes; then
14110     cat >>confdefs.h <<\_ACEOF
14111 #define LOAD_PNM 1
14112 _ACEOF
14113
14114 fi
14115
14116 if test x$enable_tga = xyes; then
14117     cat >>confdefs.h <<\_ACEOF
14118 #define LOAD_TGA 1
14119 _ACEOF
14120
14121 fi
14122
14123 if test x$enable_xcf = xyes; then
14124     cat >>confdefs.h <<\_ACEOF
14125 #define LOAD_XCF 1
14126 _ACEOF
14127
14128 fi
14129
14130 if test x$enable_xpm = xyes; then
14131     cat >>confdefs.h <<\_ACEOF
14132 #define LOAD_XPM 1
14133 _ACEOF
14134
14135 fi
14136
14137 if test x$enable_xv = xyes; then
14138     cat >>confdefs.h <<\_ACEOF
14139 #define LOAD_XV 1
14140 _ACEOF
14141
14142 fi
14143
14144 if test x$enable_tif = xyes -a x$have_tif_hdr = xyes -a x$have_tif_lib = xyes; then
14145     if test x$enable_tif_shared = xyes && test x$tif_lib != x; then
14146         echo "-- dynamic libtiff -> $tif_lib"
14147         cat >>confdefs.h <<_ACEOF
14148 #define LOAD_TIF_DYNAMIC "$tif_lib"
14149 _ACEOF
14150
14151     else
14152         if test x$have_libjpeg = xyes; then
14153             # Disable dynamic jpeg since we're linking it explicitly
14154             jpg_lib=''
14155         fi
14156         IMG_LIBS="-ltiff -lz $IMG_LIBS"
14157     fi
14158 fi
14159 if test x$enable_jpg = xyes -a x$have_jpg_hdr = xyes -a x$have_jpg_lib = xyes; then
14160     if test x$enable_jpg_shared = xyes && test x$jpg_lib != x; then
14161         echo "-- dynamic libjpeg -> $jpg_lib"
14162         cat >>confdefs.h <<_ACEOF
14163 #define LOAD_JPG_DYNAMIC "$jpg_lib"
14164 _ACEOF
14165
14166     else
14167         IMG_LIBS="-ljpeg $IMG_LIBS"
14168     fi
14169 fi
14170 if test x$enable_png = xyes -a x$have_png_hdr = xyes -a x$have_png_lib = xyes; then
14171     if test x$enable_png_shared = xyes && test x$png_lib != x; then
14172         echo "-- dynamic libpng -> $png_lib"
14173         cat >>confdefs.h <<_ACEOF
14174 #define LOAD_PNG_DYNAMIC "$png_lib"
14175 _ACEOF
14176
14177     else
14178         IMG_LIBS="-lpng -lz $IMG_LIBS"
14179     fi
14180 fi
14181
14182 LIBS="$saved_LIBS"
14183
14184
14185
14186
14187 # Finally create all the generated files
14188 ac_config_files="$ac_config_files Makefile SDL_image.spec SDL_image.pc"
14189
14190 cat >confcache <<\_ACEOF
14191 # This file is a shell script that caches the results of configure
14192 # tests run on this system so they can be shared between configure
14193 # scripts and configure runs, see configure's option --config-cache.
14194 # It is not useful on other systems.  If it contains results you don't
14195 # want to keep, you may remove or edit it.
14196 #
14197 # config.status only pays attention to the cache file if you give it
14198 # the --recheck option to rerun configure.
14199 #
14200 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14201 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14202 # following values.
14203
14204 _ACEOF
14205
14206 # The following way of writing the cache mishandles newlines in values,
14207 # but we know of no workaround that is simple, portable, and efficient.
14208 # So, we kill variables containing newlines.
14209 # Ultrix sh set writes to stderr and can't be redirected directly,
14210 # and sets the high bit in the cache file unless we assign to the vars.
14211 (
14212   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14213     eval ac_val=\$$ac_var
14214     case $ac_val in #(
14215     *${as_nl}*)
14216       case $ac_var in #(
14217       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14218 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14219       esac
14220       case $ac_var in #(
14221       _ | IFS | as_nl) ;; #(
14222       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14223       *) $as_unset $ac_var ;;
14224       esac ;;
14225     esac
14226   done
14227
14228   (set) 2>&1 |
14229     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14230     *${as_nl}ac_space=\ *)
14231       # `set' does not quote correctly, so add quotes (double-quote
14232       # substitution turns \\\\ into \\, and sed turns \\ into \).
14233       sed -n \
14234         "s/'/'\\\\''/g;
14235           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14236       ;; #(
14237     *)
14238       # `set' quotes correctly as required by POSIX, so do not add quotes.
14239       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14240       ;;
14241     esac |
14242     sort
14243 ) |
14244   sed '
14245      /^ac_cv_env_/b end
14246      t clear
14247      :clear
14248      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14249      t end
14250      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14251      :end' >>confcache
14252 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14253   if test -w "$cache_file"; then
14254     test "x$cache_file" != "x/dev/null" &&
14255       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14256 $as_echo "$as_me: updating cache $cache_file" >&6;}
14257     cat confcache >$cache_file
14258   else
14259     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14260 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14261   fi
14262 fi
14263 rm -f confcache
14264
14265 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14266 # Let make expand exec_prefix.
14267 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14268
14269 # Transform confdefs.h into DEFS.
14270 # Protect against shell expansion while executing Makefile rules.
14271 # Protect against Makefile macro expansion.
14272 #
14273 # If the first sed substitution is executed (which looks for macros that
14274 # take arguments), then branch to the quote section.  Otherwise,
14275 # look for a macro that doesn't take arguments.
14276 ac_script='
14277 :mline
14278 /\\$/{
14279  N
14280  s,\\\n,,
14281  b mline
14282 }
14283 t clear
14284 :clear
14285 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14286 t quote
14287 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14288 t quote
14289 b any
14290 :quote
14291 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14292 s/\[/\\&/g
14293 s/\]/\\&/g
14294 s/\$/$$/g
14295 H
14296 :any
14297 ${
14298         g
14299         s/^\n//
14300         s/\n/ /g
14301         p
14302 }
14303 '
14304 DEFS=`sed -n "$ac_script" confdefs.h`
14305
14306
14307 ac_libobjs=
14308 ac_ltlibobjs=
14309 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14310   # 1. Remove the extension, and $U if already installed.
14311   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14312   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14313   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14314   #    will be set to the directory where LIBOBJS objects are built.
14315   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14316   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14317 done
14318 LIBOBJS=$ac_libobjs
14319
14320 LTLIBOBJS=$ac_ltlibobjs
14321
14322
14323 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14324   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14325 Usually this means the macro was only invoked conditionally." >&5
14326 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14327 Usually this means the macro was only invoked conditionally." >&2;}
14328    { (exit 1); exit 1; }; }
14329 fi
14330 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14331   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14332 Usually this means the macro was only invoked conditionally." >&5
14333 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14334 Usually this means the macro was only invoked conditionally." >&2;}
14335    { (exit 1); exit 1; }; }
14336 fi
14337  if test -n "$EXEEXT"; then
14338   am__EXEEXT_TRUE=
14339   am__EXEEXT_FALSE='#'
14340 else
14341   am__EXEEXT_TRUE='#'
14342   am__EXEEXT_FALSE=
14343 fi
14344
14345 if test -z "${USE_VERSION_RC_TRUE}" && test -z "${USE_VERSION_RC_FALSE}"; then
14346   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_VERSION_RC\" was never defined.
14347 Usually this means the macro was only invoked conditionally." >&5
14348 $as_echo "$as_me: error: conditional \"USE_VERSION_RC\" was never defined.
14349 Usually this means the macro was only invoked conditionally." >&2;}
14350    { (exit 1); exit 1; }; }
14351 fi
14352
14353 : ${CONFIG_STATUS=./config.status}
14354 ac_write_fail=0
14355 ac_clean_files_save=$ac_clean_files
14356 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14357 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14358 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14359 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14360 #! $SHELL
14361 # Generated by $as_me.
14362 # Run this file to recreate the current configuration.
14363 # Compiler output produced by configure, useful for debugging
14364 # configure, is in config.log if it exists.
14365
14366 debug=false
14367 ac_cs_recheck=false
14368 ac_cs_silent=false
14369 SHELL=\${CONFIG_SHELL-$SHELL}
14370 _ACEOF
14371
14372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14373 ## --------------------- ##
14374 ## M4sh Initialization.  ##
14375 ## --------------------- ##
14376
14377 # Be more Bourne compatible
14378 DUALCASE=1; export DUALCASE # for MKS sh
14379 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14380   emulate sh
14381   NULLCMD=:
14382   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14383   # is contrary to our usage.  Disable this feature.
14384   alias -g '${1+"$@"}'='"$@"'
14385   setopt NO_GLOB_SUBST
14386 else
14387   case `(set -o) 2>/dev/null` in
14388   *posix*) set -o posix ;;
14389 esac
14390
14391 fi
14392
14393
14394
14395
14396 # PATH needs CR
14397 # Avoid depending upon Character Ranges.
14398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14401 as_cr_digits='0123456789'
14402 as_cr_alnum=$as_cr_Letters$as_cr_digits
14403
14404 as_nl='
14405 '
14406 export as_nl
14407 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14408 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14409 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14410 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14411 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14412   as_echo='printf %s\n'
14413   as_echo_n='printf %s'
14414 else
14415   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14416     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14417     as_echo_n='/usr/ucb/echo -n'
14418   else
14419     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14420     as_echo_n_body='eval
14421       arg=$1;
14422       case $arg in
14423       *"$as_nl"*)
14424         expr "X$arg" : "X\\(.*\\)$as_nl";
14425         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14426       esac;
14427       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14428     '
14429     export as_echo_n_body
14430     as_echo_n='sh -c $as_echo_n_body as_echo'
14431   fi
14432   export as_echo_body
14433   as_echo='sh -c $as_echo_body as_echo'
14434 fi
14435
14436 # The user is always right.
14437 if test "${PATH_SEPARATOR+set}" != set; then
14438   PATH_SEPARATOR=:
14439   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14440     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14441       PATH_SEPARATOR=';'
14442   }
14443 fi
14444
14445 # Support unset when possible.
14446 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14447   as_unset=unset
14448 else
14449   as_unset=false
14450 fi
14451
14452
14453 # IFS
14454 # We need space, tab and new line, in precisely that order.  Quoting is
14455 # there to prevent editors from complaining about space-tab.
14456 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14457 # splitting by setting IFS to empty value.)
14458 IFS=" ""        $as_nl"
14459
14460 # Find who we are.  Look in the path if we contain no directory separator.
14461 case $0 in
14462   *[\\/]* ) as_myself=$0 ;;
14463   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14464 for as_dir in $PATH
14465 do
14466   IFS=$as_save_IFS
14467   test -z "$as_dir" && as_dir=.
14468   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14469 done
14470 IFS=$as_save_IFS
14471
14472      ;;
14473 esac
14474 # We did not find ourselves, most probably we were run as `sh COMMAND'
14475 # in which case we are not to be found in the path.
14476 if test "x$as_myself" = x; then
14477   as_myself=$0
14478 fi
14479 if test ! -f "$as_myself"; then
14480   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14481   { (exit 1); exit 1; }
14482 fi
14483
14484 # Work around bugs in pre-3.0 UWIN ksh.
14485 for as_var in ENV MAIL MAILPATH
14486 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14487 done
14488 PS1='$ '
14489 PS2='> '
14490 PS4='+ '
14491
14492 # NLS nuisances.
14493 LC_ALL=C
14494 export LC_ALL
14495 LANGUAGE=C
14496 export LANGUAGE
14497
14498 # Required to use basename.
14499 if expr a : '\(a\)' >/dev/null 2>&1 &&
14500    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14501   as_expr=expr
14502 else
14503   as_expr=false
14504 fi
14505
14506 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14507   as_basename=basename
14508 else
14509   as_basename=false
14510 fi
14511
14512
14513 # Name of the executable.
14514 as_me=`$as_basename -- "$0" ||
14515 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14516          X"$0" : 'X\(//\)$' \| \
14517          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14518 $as_echo X/"$0" |
14519     sed '/^.*\/\([^/][^/]*\)\/*$/{
14520             s//\1/
14521             q
14522           }
14523           /^X\/\(\/\/\)$/{
14524             s//\1/
14525             q
14526           }
14527           /^X\/\(\/\).*/{
14528             s//\1/
14529             q
14530           }
14531           s/.*/./; q'`
14532
14533 # CDPATH.
14534 $as_unset CDPATH
14535
14536
14537
14538   as_lineno_1=$LINENO
14539   as_lineno_2=$LINENO
14540   test "x$as_lineno_1" != "x$as_lineno_2" &&
14541   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14542
14543   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14544   # uniformly replaced by the line number.  The first 'sed' inserts a
14545   # line-number line after each line using $LINENO; the second 'sed'
14546   # does the real work.  The second script uses 'N' to pair each
14547   # line-number line with the line containing $LINENO, and appends
14548   # trailing '-' during substitution so that $LINENO is not a special
14549   # case at line end.
14550   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14551   # scripts with optimization help from Paolo Bonzini.  Blame Lee
14552   # E. McMahon (1931-1989) for sed's syntax.  :-)
14553   sed -n '
14554     p
14555     /[$]LINENO/=
14556   ' <$as_myself |
14557     sed '
14558       s/[$]LINENO.*/&-/
14559       t lineno
14560       b
14561       :lineno
14562       N
14563       :loop
14564       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14565       t loop
14566       s/-\n.*//
14567     ' >$as_me.lineno &&
14568   chmod +x "$as_me.lineno" ||
14569     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14570    { (exit 1); exit 1; }; }
14571
14572   # Don't try to exec as it changes $[0], causing all sort of problems
14573   # (the dirname of $[0] is not the place where we might find the
14574   # original and so on.  Autoconf is especially sensitive to this).
14575   . "./$as_me.lineno"
14576   # Exit status is that of the last command.
14577   exit
14578 }
14579
14580
14581 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14582   as_dirname=dirname
14583 else
14584   as_dirname=false
14585 fi
14586
14587 ECHO_C= ECHO_N= ECHO_T=
14588 case `echo -n x` in
14589 -n*)
14590   case `echo 'x\c'` in
14591   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14592   *)   ECHO_C='\c';;
14593   esac;;
14594 *)
14595   ECHO_N='-n';;
14596 esac
14597 if expr a : '\(a\)' >/dev/null 2>&1 &&
14598    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14599   as_expr=expr
14600 else
14601   as_expr=false
14602 fi
14603
14604 rm -f conf$$ conf$$.exe conf$$.file
14605 if test -d conf$$.dir; then
14606   rm -f conf$$.dir/conf$$.file
14607 else
14608   rm -f conf$$.dir
14609   mkdir conf$$.dir 2>/dev/null
14610 fi
14611 if (echo >conf$$.file) 2>/dev/null; then
14612   if ln -s conf$$.file conf$$ 2>/dev/null; then
14613     as_ln_s='ln -s'
14614     # ... but there are two gotchas:
14615     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14616     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14617     # In both cases, we have to default to `cp -p'.
14618     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14619       as_ln_s='cp -p'
14620   elif ln conf$$.file conf$$ 2>/dev/null; then
14621     as_ln_s=ln
14622   else
14623     as_ln_s='cp -p'
14624   fi
14625 else
14626   as_ln_s='cp -p'
14627 fi
14628 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14629 rmdir conf$$.dir 2>/dev/null
14630
14631 if mkdir -p . 2>/dev/null; then
14632   as_mkdir_p=:
14633 else
14634   test -d ./-p && rmdir ./-p
14635   as_mkdir_p=false
14636 fi
14637
14638 if test -x / >/dev/null 2>&1; then
14639   as_test_x='test -x'
14640 else
14641   if ls -dL / >/dev/null 2>&1; then
14642     as_ls_L_option=L
14643   else
14644     as_ls_L_option=
14645   fi
14646   as_test_x='
14647     eval sh -c '\''
14648       if test -d "$1"; then
14649         test -d "$1/.";
14650       else
14651         case $1 in
14652         -*)set "./$1";;
14653         esac;
14654         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14655         ???[sx]*):;;*)false;;esac;fi
14656     '\'' sh
14657   '
14658 fi
14659 as_executable_p=$as_test_x
14660
14661 # Sed expression to map a string onto a valid CPP name.
14662 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14663
14664 # Sed expression to map a string onto a valid variable name.
14665 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14666
14667
14668 exec 6>&1
14669
14670 # Save the log message, to keep $[0] and so on meaningful, and to
14671 # report actual input values of CONFIG_FILES etc. instead of their
14672 # values after options handling.
14673 ac_log="
14674 This file was extended by $as_me, which was
14675 generated by GNU Autoconf 2.63.  Invocation command line was
14676
14677   CONFIG_FILES    = $CONFIG_FILES
14678   CONFIG_HEADERS  = $CONFIG_HEADERS
14679   CONFIG_LINKS    = $CONFIG_LINKS
14680   CONFIG_COMMANDS = $CONFIG_COMMANDS
14681   $ $0 $@
14682
14683 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14684 "
14685
14686 _ACEOF
14687
14688 case $ac_config_files in *"
14689 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14690 esac
14691
14692
14693
14694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14695 # Files that config.status was made for.
14696 config_files="$ac_config_files"
14697 config_commands="$ac_config_commands"
14698
14699 _ACEOF
14700
14701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14702 ac_cs_usage="\
14703 \`$as_me' instantiates files from templates according to the
14704 current configuration.
14705
14706 Usage: $0 [OPTION]... [FILE]...
14707
14708   -h, --help       print this help, then exit
14709   -V, --version    print version number and configuration settings, then exit
14710   -q, --quiet, --silent
14711                    do not print progress messages
14712   -d, --debug      don't remove temporary files
14713       --recheck    update $as_me by reconfiguring in the same conditions
14714       --file=FILE[:TEMPLATE]
14715                    instantiate the configuration file FILE
14716
14717 Configuration files:
14718 $config_files
14719
14720 Configuration commands:
14721 $config_commands
14722
14723 Report bugs to <bug-autoconf@gnu.org>."
14724
14725 _ACEOF
14726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14727 ac_cs_version="\\
14728 config.status
14729 configured by $0, generated by GNU Autoconf 2.63,
14730   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14731
14732 Copyright (C) 2008 Free Software Foundation, Inc.
14733 This config.status script is free software; the Free Software Foundation
14734 gives unlimited permission to copy, distribute and modify it."
14735
14736 ac_pwd='$ac_pwd'
14737 srcdir='$srcdir'
14738 INSTALL='$INSTALL'
14739 MKDIR_P='$MKDIR_P'
14740 AWK='$AWK'
14741 test -n "\$AWK" || AWK=awk
14742 _ACEOF
14743
14744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14745 # The default lists apply if the user does not specify any file.
14746 ac_need_defaults=:
14747 while test $# != 0
14748 do
14749   case $1 in
14750   --*=*)
14751     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14752     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14753     ac_shift=:
14754     ;;
14755   *)
14756     ac_option=$1
14757     ac_optarg=$2
14758     ac_shift=shift
14759     ;;
14760   esac
14761
14762   case $ac_option in
14763   # Handling of the options.
14764   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14765     ac_cs_recheck=: ;;
14766   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14767     $as_echo "$ac_cs_version"; exit ;;
14768   --debug | --debu | --deb | --de | --d | -d )
14769     debug=: ;;
14770   --file | --fil | --fi | --f )
14771     $ac_shift
14772     case $ac_optarg in
14773     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14774     esac
14775     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14776     ac_need_defaults=false;;
14777   --he | --h |  --help | --hel | -h )
14778     $as_echo "$ac_cs_usage"; exit ;;
14779   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14780   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14781     ac_cs_silent=: ;;
14782
14783   # This is an error.
14784   -*) { $as_echo "$as_me: error: unrecognized option: $1
14785 Try \`$0 --help' for more information." >&2
14786    { (exit 1); exit 1; }; } ;;
14787
14788   *) ac_config_targets="$ac_config_targets $1"
14789      ac_need_defaults=false ;;
14790
14791   esac
14792   shift
14793 done
14794
14795 ac_configure_extra_args=
14796
14797 if $ac_cs_silent; then
14798   exec 6>/dev/null
14799   ac_configure_extra_args="$ac_configure_extra_args --silent"
14800 fi
14801
14802 _ACEOF
14803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14804 if \$ac_cs_recheck; then
14805   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14806   shift
14807   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14808   CONFIG_SHELL='$SHELL'
14809   export CONFIG_SHELL
14810   exec "\$@"
14811 fi
14812
14813 _ACEOF
14814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14815 exec 5>>config.log
14816 {
14817   echo
14818   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14819 ## Running $as_me. ##
14820 _ASBOX
14821   $as_echo "$ac_log"
14822 } >&5
14823
14824 _ACEOF
14825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14826 #
14827 # INIT-COMMANDS
14828 #
14829
14830
14831 # The HP-UX ksh and POSIX shell print the target directory to stdout
14832 # if CDPATH is set.
14833 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14834
14835 sed_quote_subst='$sed_quote_subst'
14836 double_quote_subst='$double_quote_subst'
14837 delay_variable_subst='$delay_variable_subst'
14838 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14839 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14840 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
14841 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14842 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14843 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14844 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14845 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14846 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14847 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14848 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14849 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14850 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14851 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14852 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14853 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14854 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14855 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14856 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14857 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14858 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14859 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14860 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14861 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14862 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14863 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14864 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14865 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14866 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14867 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14868 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14869 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14870 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14871 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14872 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14873 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14874 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14875 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14876 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14877 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14878 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14879 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14880 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14881 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14882 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14883 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14884 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"`'
14885 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"`'
14886 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14887 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14888 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14889 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14890 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14891 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14892 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14893 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14894 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14895 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14896 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14897 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14898 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14899 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14900 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14901 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14902 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14903 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14904 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14905 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14906 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14907 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14908 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14909 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14910 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14911 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14912 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14913 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14914 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14915 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14916 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14917 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14918 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14919 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14920 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14921 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14922 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14923 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14924 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14925 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14926 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14927 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14928 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14929 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14930 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14931 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14932 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14933 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14934 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14935 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14936 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14937 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14938 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14939 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14940 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14941 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14942 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14943 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14944 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14945 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14946 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14947 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14948 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14949 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14950 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14951 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14952 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14953 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14954 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14955 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14956 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14957 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14958
14959 LTCC='$LTCC'
14960 LTCFLAGS='$LTCFLAGS'
14961 compiler='$compiler_DEFAULT'
14962
14963 # Quote evaled strings.
14964 for var in SED \
14965 GREP \
14966 EGREP \
14967 FGREP \
14968 LD \
14969 NM \
14970 LN_S \
14971 lt_SP2NL \
14972 lt_NL2SP \
14973 reload_flag \
14974 deplibs_check_method \
14975 file_magic_cmd \
14976 AR \
14977 AR_FLAGS \
14978 STRIP \
14979 RANLIB \
14980 CC \
14981 CFLAGS \
14982 compiler \
14983 lt_cv_sys_global_symbol_pipe \
14984 lt_cv_sys_global_symbol_to_cdecl \
14985 lt_cv_sys_global_symbol_to_c_name_address \
14986 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14987 SHELL \
14988 ECHO \
14989 lt_prog_compiler_no_builtin_flag \
14990 lt_prog_compiler_wl \
14991 lt_prog_compiler_pic \
14992 lt_prog_compiler_static \
14993 lt_cv_prog_compiler_c_o \
14994 need_locks \
14995 DSYMUTIL \
14996 NMEDIT \
14997 LIPO \
14998 OTOOL \
14999 OTOOL64 \
15000 shrext_cmds \
15001 export_dynamic_flag_spec \
15002 whole_archive_flag_spec \
15003 compiler_needs_object \
15004 with_gnu_ld \
15005 allow_undefined_flag \
15006 no_undefined_flag \
15007 hardcode_libdir_flag_spec \
15008 hardcode_libdir_flag_spec_ld \
15009 hardcode_libdir_separator \
15010 fix_srcfile_path \
15011 exclude_expsyms \
15012 include_expsyms \
15013 file_list_spec \
15014 variables_saved_for_relink \
15015 libname_spec \
15016 library_names_spec \
15017 soname_spec \
15018 finish_eval \
15019 old_striplib \
15020 striplib; do
15021     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15022     *[\\\\\\\`\\"\\\$]*)
15023       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15024       ;;
15025     *)
15026       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15027       ;;
15028     esac
15029 done
15030
15031 # Double-quote double-evaled strings.
15032 for var in reload_cmds \
15033 old_postinstall_cmds \
15034 old_postuninstall_cmds \
15035 old_archive_cmds \
15036 extract_expsyms_cmds \
15037 old_archive_from_new_cmds \
15038 old_archive_from_expsyms_cmds \
15039 archive_cmds \
15040 archive_expsym_cmds \
15041 module_cmds \
15042 module_expsym_cmds \
15043 export_symbols_cmds \
15044 prelink_cmds \
15045 postinstall_cmds \
15046 postuninstall_cmds \
15047 finish_cmds \
15048 sys_lib_search_path_spec \
15049 sys_lib_dlsearch_path_spec; do
15050     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15051     *[\\\\\\\`\\"\\\$]*)
15052       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15053       ;;
15054     *)
15055       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15056       ;;
15057     esac
15058 done
15059
15060 # Fix-up fallback echo if it was mangled by the above quoting rules.
15061 case \$lt_ECHO in
15062 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15063   ;;
15064 esac
15065
15066 ac_aux_dir='$ac_aux_dir'
15067 xsi_shell='$xsi_shell'
15068 lt_shell_append='$lt_shell_append'
15069
15070 # See if we are running on zsh, and set the options which allow our
15071 # commands through without removal of \ escapes INIT.
15072 if test -n "\${ZSH_VERSION+set}" ; then
15073    setopt NO_GLOB_SUBST
15074 fi
15075
15076
15077     PACKAGE='$PACKAGE'
15078     VERSION='$VERSION'
15079     TIMESTAMP='$TIMESTAMP'
15080     RM='$RM'
15081     ofile='$ofile'
15082
15083
15084
15085 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15086
15087 _ACEOF
15088
15089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15090
15091 # Handling of arguments.
15092 for ac_config_target in $ac_config_targets
15093 do
15094   case $ac_config_target in
15095     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15096     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15097     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15098     "SDL_image.spec") CONFIG_FILES="$CONFIG_FILES SDL_image.spec" ;;
15099     "SDL_image.pc") CONFIG_FILES="$CONFIG_FILES SDL_image.pc" ;;
15100
15101   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15102 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15103    { (exit 1); exit 1; }; };;
15104   esac
15105 done
15106
15107
15108 # If the user did not use the arguments to specify the items to instantiate,
15109 # then the envvar interface is used.  Set only those that are not.
15110 # We use the long form for the default assignment because of an extremely
15111 # bizarre bug on SunOS 4.1.3.
15112 if $ac_need_defaults; then
15113   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15114   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15115 fi
15116
15117 # Have a temporary directory for convenience.  Make it in the build tree
15118 # simply because there is no reason against having it here, and in addition,
15119 # creating and moving files from /tmp can sometimes cause problems.
15120 # Hook for its removal unless debugging.
15121 # Note that there is a small window in which the directory will not be cleaned:
15122 # after its creation but before its name has been assigned to `$tmp'.
15123 $debug ||
15124 {
15125   tmp=
15126   trap 'exit_status=$?
15127   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15128 ' 0
15129   trap '{ (exit 1); exit 1; }' 1 2 13 15
15130 }
15131 # Create a (secure) tmp directory for tmp files.
15132
15133 {
15134   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15135   test -n "$tmp" && test -d "$tmp"
15136 }  ||
15137 {
15138   tmp=./conf$$-$RANDOM
15139   (umask 077 && mkdir "$tmp")
15140 } ||
15141 {
15142    $as_echo "$as_me: cannot create a temporary directory in ." >&2
15143    { (exit 1); exit 1; }
15144 }
15145
15146 # Set up the scripts for CONFIG_FILES section.
15147 # No need to generate them if there are no CONFIG_FILES.
15148 # This happens for instance with `./config.status config.h'.
15149 if test -n "$CONFIG_FILES"; then
15150
15151
15152 ac_cr='\r'
15153 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15154 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15155   ac_cs_awk_cr='\\r'
15156 else
15157   ac_cs_awk_cr=$ac_cr
15158 fi
15159
15160 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15161 _ACEOF
15162
15163
15164 {
15165   echo "cat >conf$$subs.awk <<_ACEOF" &&
15166   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15167   echo "_ACEOF"
15168 } >conf$$subs.sh ||
15169   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15170 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15171    { (exit 1); exit 1; }; }
15172 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15173 ac_delim='%!_!# '
15174 for ac_last_try in false false false false false :; do
15175   . ./conf$$subs.sh ||
15176     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15177 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15178    { (exit 1); exit 1; }; }
15179
15180   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15181   if test $ac_delim_n = $ac_delim_num; then
15182     break
15183   elif $ac_last_try; then
15184     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15185 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15186    { (exit 1); exit 1; }; }
15187   else
15188     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15189   fi
15190 done
15191 rm -f conf$$subs.sh
15192
15193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15194 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15195 _ACEOF
15196 sed -n '
15197 h
15198 s/^/S["/; s/!.*/"]=/
15199 p
15200 g
15201 s/^[^!]*!//
15202 :repl
15203 t repl
15204 s/'"$ac_delim"'$//
15205 t delim
15206 :nl
15207 h
15208 s/\(.\{148\}\).*/\1/
15209 t more1
15210 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15211 p
15212 n
15213 b repl
15214 :more1
15215 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15216 p
15217 g
15218 s/.\{148\}//
15219 t nl
15220 :delim
15221 h
15222 s/\(.\{148\}\).*/\1/
15223 t more2
15224 s/["\\]/\\&/g; s/^/"/; s/$/"/
15225 p
15226 b
15227 :more2
15228 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15229 p
15230 g
15231 s/.\{148\}//
15232 t delim
15233 ' <conf$$subs.awk | sed '
15234 /^[^""]/{
15235   N
15236   s/\n//
15237 }
15238 ' >>$CONFIG_STATUS || ac_write_fail=1
15239 rm -f conf$$subs.awk
15240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15241 _ACAWK
15242 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15243   for (key in S) S_is_set[key] = 1
15244   FS = "\a"
15245
15246 }
15247 {
15248   line = $ 0
15249   nfields = split(line, field, "@")
15250   substed = 0
15251   len = length(field[1])
15252   for (i = 2; i < nfields; i++) {
15253     key = field[i]
15254     keylen = length(key)
15255     if (S_is_set[key]) {
15256       value = S[key]
15257       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15258       len += length(value) + length(field[++i])
15259       substed = 1
15260     } else
15261       len += 1 + keylen
15262   }
15263
15264   print line
15265 }
15266
15267 _ACAWK
15268 _ACEOF
15269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15270 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15271   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15272 else
15273   cat
15274 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15275   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15276 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15277    { (exit 1); exit 1; }; }
15278 _ACEOF
15279
15280 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15281 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15282 # trailing colons and then remove the whole line if VPATH becomes empty
15283 # (actually we leave an empty line to preserve line numbers).
15284 if test "x$srcdir" = x.; then
15285   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15286 s/:*\$(srcdir):*/:/
15287 s/:*\${srcdir}:*/:/
15288 s/:*@srcdir@:*/:/
15289 s/^\([^=]*=[     ]*\):*/\1/
15290 s/:*$//
15291 s/^[^=]*=[       ]*$//
15292 }'
15293 fi
15294
15295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15296 fi # test -n "$CONFIG_FILES"
15297
15298
15299 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
15300 shift
15301 for ac_tag
15302 do
15303   case $ac_tag in
15304   :[FHLC]) ac_mode=$ac_tag; continue;;
15305   esac
15306   case $ac_mode$ac_tag in
15307   :[FHL]*:*);;
15308   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
15309 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
15310    { (exit 1); exit 1; }; };;
15311   :[FH]-) ac_tag=-:-;;
15312   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15313   esac
15314   ac_save_IFS=$IFS
15315   IFS=:
15316   set x $ac_tag
15317   IFS=$ac_save_IFS
15318   shift
15319   ac_file=$1
15320   shift
15321
15322   case $ac_mode in
15323   :L) ac_source=$1;;
15324   :[FH])
15325     ac_file_inputs=
15326     for ac_f
15327     do
15328       case $ac_f in
15329       -) ac_f="$tmp/stdin";;
15330       *) # Look for the file first in the build tree, then in the source tree
15331          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15332          # because $ac_f cannot contain `:'.
15333          test -f "$ac_f" ||
15334            case $ac_f in
15335            [\\/$]*) false;;
15336            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15337            esac ||
15338            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15339 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15340    { (exit 1); exit 1; }; };;
15341       esac
15342       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15343       ac_file_inputs="$ac_file_inputs '$ac_f'"
15344     done
15345
15346     # Let's still pretend it is `configure' which instantiates (i.e., don't
15347     # use $as_me), people would be surprised to read:
15348     #    /* config.h.  Generated by config.status.  */
15349     configure_input='Generated from '`
15350           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15351         `' by configure.'
15352     if test x"$ac_file" != x-; then
15353       configure_input="$ac_file.  $configure_input"
15354       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15355 $as_echo "$as_me: creating $ac_file" >&6;}
15356     fi
15357     # Neutralize special characters interpreted by sed in replacement strings.
15358     case $configure_input in #(
15359     *\&* | *\|* | *\\* )
15360        ac_sed_conf_input=`$as_echo "$configure_input" |
15361        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15362     *) ac_sed_conf_input=$configure_input;;
15363     esac
15364
15365     case $ac_tag in
15366     *:-:* | *:-) cat >"$tmp/stdin" \
15367       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15368 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15369    { (exit 1); exit 1; }; } ;;
15370     esac
15371     ;;
15372   esac
15373
15374   ac_dir=`$as_dirname -- "$ac_file" ||
15375 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15376          X"$ac_file" : 'X\(//\)[^/]' \| \
15377          X"$ac_file" : 'X\(//\)$' \| \
15378          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15379 $as_echo X"$ac_file" |
15380     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15381             s//\1/
15382             q
15383           }
15384           /^X\(\/\/\)[^/].*/{
15385             s//\1/
15386             q
15387           }
15388           /^X\(\/\/\)$/{
15389             s//\1/
15390             q
15391           }
15392           /^X\(\/\).*/{
15393             s//\1/
15394             q
15395           }
15396           s/.*/./; q'`
15397   { as_dir="$ac_dir"
15398   case $as_dir in #(
15399   -*) as_dir=./$as_dir;;
15400   esac
15401   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15402     as_dirs=
15403     while :; do
15404       case $as_dir in #(
15405       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15406       *) as_qdir=$as_dir;;
15407       esac
15408       as_dirs="'$as_qdir' $as_dirs"
15409       as_dir=`$as_dirname -- "$as_dir" ||
15410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15411          X"$as_dir" : 'X\(//\)[^/]' \| \
15412          X"$as_dir" : 'X\(//\)$' \| \
15413          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15414 $as_echo X"$as_dir" |
15415     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15416             s//\1/
15417             q
15418           }
15419           /^X\(\/\/\)[^/].*/{
15420             s//\1/
15421             q
15422           }
15423           /^X\(\/\/\)$/{
15424             s//\1/
15425             q
15426           }
15427           /^X\(\/\).*/{
15428             s//\1/
15429             q
15430           }
15431           s/.*/./; q'`
15432       test -d "$as_dir" && break
15433     done
15434     test -z "$as_dirs" || eval "mkdir $as_dirs"
15435   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15436 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15437    { (exit 1); exit 1; }; }; }
15438   ac_builddir=.
15439
15440 case "$ac_dir" in
15441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15442 *)
15443   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15444   # A ".." for each directory in $ac_dir_suffix.
15445   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15446   case $ac_top_builddir_sub in
15447   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15448   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15449   esac ;;
15450 esac
15451 ac_abs_top_builddir=$ac_pwd
15452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15453 # for backward compatibility:
15454 ac_top_builddir=$ac_top_build_prefix
15455
15456 case $srcdir in
15457   .)  # We are building in place.
15458     ac_srcdir=.
15459     ac_top_srcdir=$ac_top_builddir_sub
15460     ac_abs_top_srcdir=$ac_pwd ;;
15461   [\\/]* | ?:[\\/]* )  # Absolute name.
15462     ac_srcdir=$srcdir$ac_dir_suffix;
15463     ac_top_srcdir=$srcdir
15464     ac_abs_top_srcdir=$srcdir ;;
15465   *) # Relative name.
15466     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15467     ac_top_srcdir=$ac_top_build_prefix$srcdir
15468     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15469 esac
15470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15471
15472
15473   case $ac_mode in
15474   :F)
15475   #
15476   # CONFIG_FILE
15477   #
15478
15479   case $INSTALL in
15480   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15481   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15482   esac
15483   ac_MKDIR_P=$MKDIR_P
15484   case $MKDIR_P in
15485   [\\/$]* | ?:[\\/]* ) ;;
15486   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15487   esac
15488 _ACEOF
15489
15490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15491 # If the template does not know about datarootdir, expand it.
15492 # FIXME: This hack should be removed a few years after 2.60.
15493 ac_datarootdir_hack=; ac_datarootdir_seen=
15494
15495 ac_sed_dataroot='
15496 /datarootdir/ {
15497   p
15498   q
15499 }
15500 /@datadir@/p
15501 /@docdir@/p
15502 /@infodir@/p
15503 /@localedir@/p
15504 /@mandir@/p
15505 '
15506 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15507 *datarootdir*) ac_datarootdir_seen=yes;;
15508 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15509   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15510 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15511 _ACEOF
15512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15513   ac_datarootdir_hack='
15514   s&@datadir@&$datadir&g
15515   s&@docdir@&$docdir&g
15516   s&@infodir@&$infodir&g
15517   s&@localedir@&$localedir&g
15518   s&@mandir@&$mandir&g
15519     s&\\\${datarootdir}&$datarootdir&g' ;;
15520 esac
15521 _ACEOF
15522
15523 # Neutralize VPATH when `$srcdir' = `.'.
15524 # Shell code in configure.ac might set extrasub.
15525 # FIXME: do we really want to maintain this feature?
15526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15527 ac_sed_extra="$ac_vpsub
15528 $extrasub
15529 _ACEOF
15530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15531 :t
15532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15533 s|@configure_input@|$ac_sed_conf_input|;t t
15534 s&@top_builddir@&$ac_top_builddir_sub&;t t
15535 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15536 s&@srcdir@&$ac_srcdir&;t t
15537 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15538 s&@top_srcdir@&$ac_top_srcdir&;t t
15539 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15540 s&@builddir@&$ac_builddir&;t t
15541 s&@abs_builddir@&$ac_abs_builddir&;t t
15542 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15543 s&@INSTALL@&$ac_INSTALL&;t t
15544 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15545 $ac_datarootdir_hack
15546 "
15547 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15548   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15549 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15550    { (exit 1); exit 1; }; }
15551
15552 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15553   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15554   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15555   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15556 which seems to be undefined.  Please make sure it is defined." >&5
15557 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15558 which seems to be undefined.  Please make sure it is defined." >&2;}
15559
15560   rm -f "$tmp/stdin"
15561   case $ac_file in
15562   -) cat "$tmp/out" && rm -f "$tmp/out";;
15563   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15564   esac \
15565   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15566 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15567    { (exit 1); exit 1; }; }
15568  ;;
15569
15570
15571   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15572 $as_echo "$as_me: executing $ac_file commands" >&6;}
15573  ;;
15574   esac
15575
15576
15577   case $ac_file$ac_mode in
15578     "libtool":C)
15579
15580     # See if we are running on zsh, and set the options which allow our
15581     # commands through without removal of \ escapes.
15582     if test -n "${ZSH_VERSION+set}" ; then
15583       setopt NO_GLOB_SUBST
15584     fi
15585
15586     cfgfile="${ofile}T"
15587     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15588     $RM "$cfgfile"
15589
15590     cat <<_LT_EOF >> "$cfgfile"
15591 #! $SHELL
15592
15593 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15594 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15595 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15596 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15597 #
15598 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15599 #                 2006, 2007, 2008 Free Software Foundation, Inc.
15600 #   Written by Gordon Matzigkeit, 1996
15601 #
15602 #   This file is part of GNU Libtool.
15603 #
15604 # GNU Libtool is free software; you can redistribute it and/or
15605 # modify it under the terms of the GNU General Public License as
15606 # published by the Free Software Foundation; either version 2 of
15607 # the License, or (at your option) any later version.
15608 #
15609 # As a special exception to the GNU General Public License,
15610 # if you distribute this file as part of a program or library that
15611 # is built using GNU Libtool, you may include this file under the
15612 # same distribution terms that you use for the rest of that program.
15613 #
15614 # GNU Libtool is distributed in the hope that it will be useful,
15615 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15616 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15617 # GNU General Public License for more details.
15618 #
15619 # You should have received a copy of the GNU General Public License
15620 # along with GNU Libtool; see the file COPYING.  If not, a copy
15621 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15622 # obtained by writing to the Free Software Foundation, Inc.,
15623 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15624
15625
15626 # The names of the tagged configurations supported by this script.
15627 available_tags=""
15628
15629 # ### BEGIN LIBTOOL CONFIG
15630
15631 # Which release of libtool.m4 was used?
15632 macro_version=$macro_version
15633 macro_revision=$macro_revision
15634
15635 # Assembler program.
15636 AS=$AS
15637
15638 # DLL creation program.
15639 DLLTOOL=$DLLTOOL
15640
15641 # Object dumper program.
15642 OBJDUMP=$OBJDUMP
15643
15644 # Whether or not to build shared libraries.
15645 build_libtool_libs=$enable_shared
15646
15647 # Whether or not to build static libraries.
15648 build_old_libs=$enable_static
15649
15650 # What type of objects to build.
15651 pic_mode=$pic_mode
15652
15653 # Whether or not to optimize for fast installation.
15654 fast_install=$enable_fast_install
15655
15656 # The host system.
15657 host_alias=$host_alias
15658 host=$host
15659 host_os=$host_os
15660
15661 # The build system.
15662 build_alias=$build_alias
15663 build=$build
15664 build_os=$build_os
15665
15666 # A sed program that does not truncate output.
15667 SED=$lt_SED
15668
15669 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15670 Xsed="\$SED -e 1s/^X//"
15671
15672 # A grep program that handles long lines.
15673 GREP=$lt_GREP
15674
15675 # An ERE matcher.
15676 EGREP=$lt_EGREP
15677
15678 # A literal string matcher.
15679 FGREP=$lt_FGREP
15680
15681 # A BSD- or MS-compatible name lister.
15682 NM=$lt_NM
15683
15684 # Whether we need soft or hard links.
15685 LN_S=$lt_LN_S
15686
15687 # What is the maximum length of a command?
15688 max_cmd_len=$max_cmd_len
15689
15690 # Object file suffix (normally "o").
15691 objext=$ac_objext
15692
15693 # Executable file suffix (normally "").
15694 exeext=$exeext
15695
15696 # whether the shell understands "unset".
15697 lt_unset=$lt_unset
15698
15699 # turn spaces into newlines.
15700 SP2NL=$lt_lt_SP2NL
15701
15702 # turn newlines into spaces.
15703 NL2SP=$lt_lt_NL2SP
15704
15705 # How to create reloadable object files.
15706 reload_flag=$lt_reload_flag
15707 reload_cmds=$lt_reload_cmds
15708
15709 # Method to check whether dependent libraries are shared objects.
15710 deplibs_check_method=$lt_deplibs_check_method
15711
15712 # Command to use when deplibs_check_method == "file_magic".
15713 file_magic_cmd=$lt_file_magic_cmd
15714
15715 # The archiver.
15716 AR=$lt_AR
15717 AR_FLAGS=$lt_AR_FLAGS
15718
15719 # A symbol stripping program.
15720 STRIP=$lt_STRIP
15721
15722 # Commands used to install an old-style archive.
15723 RANLIB=$lt_RANLIB
15724 old_postinstall_cmds=$lt_old_postinstall_cmds
15725 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15726
15727 # A C compiler.
15728 LTCC=$lt_CC
15729
15730 # LTCC compiler flags.
15731 LTCFLAGS=$lt_CFLAGS
15732
15733 # Take the output of nm and produce a listing of raw symbols and C names.
15734 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15735
15736 # Transform the output of nm in a proper C declaration.
15737 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15738
15739 # Transform the output of nm in a C name address pair.
15740 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15741
15742 # Transform the output of nm in a C name address pair when lib prefix is needed.
15743 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15744
15745 # The name of the directory that contains temporary libtool files.
15746 objdir=$objdir
15747
15748 # Shell to use when invoking shell scripts.
15749 SHELL=$lt_SHELL
15750
15751 # An echo program that does not interpret backslashes.
15752 ECHO=$lt_ECHO
15753
15754 # Used to examine libraries when file_magic_cmd begins with "file".
15755 MAGIC_CMD=$MAGIC_CMD
15756
15757 # Must we lock files when doing compilation?
15758 need_locks=$lt_need_locks
15759
15760 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15761 DSYMUTIL=$lt_DSYMUTIL
15762
15763 # Tool to change global to local symbols on Mac OS X.
15764 NMEDIT=$lt_NMEDIT
15765
15766 # Tool to manipulate fat objects and archives on Mac OS X.
15767 LIPO=$lt_LIPO
15768
15769 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15770 OTOOL=$lt_OTOOL
15771
15772 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15773 OTOOL64=$lt_OTOOL64
15774
15775 # Old archive suffix (normally "a").
15776 libext=$libext
15777
15778 # Shared library suffix (normally ".so").
15779 shrext_cmds=$lt_shrext_cmds
15780
15781 # The commands to extract the exported symbol list from a shared archive.
15782 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15783
15784 # Variables whose values should be saved in libtool wrapper scripts and
15785 # restored at link time.
15786 variables_saved_for_relink=$lt_variables_saved_for_relink
15787
15788 # Do we need the "lib" prefix for modules?
15789 need_lib_prefix=$need_lib_prefix
15790
15791 # Do we need a version for libraries?
15792 need_version=$need_version
15793
15794 # Library versioning type.
15795 version_type=$version_type
15796
15797 # Shared library runtime path variable.
15798 runpath_var=$runpath_var
15799
15800 # Shared library path variable.
15801 shlibpath_var=$shlibpath_var
15802
15803 # Is shlibpath searched before the hard-coded library search path?
15804 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15805
15806 # Format of library name prefix.
15807 libname_spec=$lt_libname_spec
15808
15809 # List of archive names.  First name is the real one, the rest are links.
15810 # The last name is the one that the linker finds with -lNAME
15811 library_names_spec=$lt_library_names_spec
15812
15813 # The coded name of the library, if different from the real name.
15814 soname_spec=$lt_soname_spec
15815
15816 # Command to use after installation of a shared archive.
15817 postinstall_cmds=$lt_postinstall_cmds
15818
15819 # Command to use after uninstallation of a shared archive.
15820 postuninstall_cmds=$lt_postuninstall_cmds
15821
15822 # Commands used to finish a libtool library installation in a directory.
15823 finish_cmds=$lt_finish_cmds
15824
15825 # As "finish_cmds", except a single script fragment to be evaled but
15826 # not shown.
15827 finish_eval=$lt_finish_eval
15828
15829 # Whether we should hardcode library paths into libraries.
15830 hardcode_into_libs=$hardcode_into_libs
15831
15832 # Compile-time system search path for libraries.
15833 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15834
15835 # Run-time system search path for libraries.
15836 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15837
15838 # Whether dlopen is supported.
15839 dlopen_support=$enable_dlopen
15840
15841 # Whether dlopen of programs is supported.
15842 dlopen_self=$enable_dlopen_self
15843
15844 # Whether dlopen of statically linked programs is supported.
15845 dlopen_self_static=$enable_dlopen_self_static
15846
15847 # Commands to strip libraries.
15848 old_striplib=$lt_old_striplib
15849 striplib=$lt_striplib
15850
15851
15852 # The linker used to build libraries.
15853 LD=$lt_LD
15854
15855 # Commands used to build an old-style archive.
15856 old_archive_cmds=$lt_old_archive_cmds
15857
15858 # A language specific compiler.
15859 CC=$lt_compiler
15860
15861 # Is the compiler the GNU compiler?
15862 with_gcc=$GCC
15863
15864 # Compiler flag to turn off builtin functions.
15865 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15866
15867 # How to pass a linker flag through the compiler.
15868 wl=$lt_lt_prog_compiler_wl
15869
15870 # Additional compiler flags for building library objects.
15871 pic_flag=$lt_lt_prog_compiler_pic
15872
15873 # Compiler flag to prevent dynamic linking.
15874 link_static_flag=$lt_lt_prog_compiler_static
15875
15876 # Does compiler simultaneously support -c and -o options?
15877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15878
15879 # Whether or not to add -lc for building shared libraries.
15880 build_libtool_need_lc=$archive_cmds_need_lc
15881
15882 # Whether or not to disallow shared libs when runtime libs are static.
15883 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15884
15885 # Compiler flag to allow reflexive dlopens.
15886 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15887
15888 # Compiler flag to generate shared objects directly from archives.
15889 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15890
15891 # Whether the compiler copes with passing no objects directly.
15892 compiler_needs_object=$lt_compiler_needs_object
15893
15894 # Create an old-style archive from a shared archive.
15895 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15896
15897 # Create a temporary old-style archive to link instead of a shared archive.
15898 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15899
15900 # Commands used to build a shared archive.
15901 archive_cmds=$lt_archive_cmds
15902 archive_expsym_cmds=$lt_archive_expsym_cmds
15903
15904 # Commands used to build a loadable module if different from building
15905 # a shared archive.
15906 module_cmds=$lt_module_cmds
15907 module_expsym_cmds=$lt_module_expsym_cmds
15908
15909 # Whether we are building with GNU ld or not.
15910 with_gnu_ld=$lt_with_gnu_ld
15911
15912 # Flag that allows shared libraries with undefined symbols to be built.
15913 allow_undefined_flag=$lt_allow_undefined_flag
15914
15915 # Flag that enforces no undefined symbols.
15916 no_undefined_flag=$lt_no_undefined_flag
15917
15918 # Flag to hardcode \$libdir into a binary during linking.
15919 # This must work even if \$libdir does not exist
15920 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15921
15922 # If ld is used when linking, flag to hardcode \$libdir into a binary
15923 # during linking.  This must work even if \$libdir does not exist.
15924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15925
15926 # Whether we need a single "-rpath" flag with a separated argument.
15927 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15928
15929 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15930 # DIR into the resulting binary.
15931 hardcode_direct=$hardcode_direct
15932
15933 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15934 # DIR into the resulting binary and the resulting library dependency is
15935 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15936 # library is relocated.
15937 hardcode_direct_absolute=$hardcode_direct_absolute
15938
15939 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15940 # into the resulting binary.
15941 hardcode_minus_L=$hardcode_minus_L
15942
15943 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15944 # into the resulting binary.
15945 hardcode_shlibpath_var=$hardcode_shlibpath_var
15946
15947 # Set to "yes" if building a shared library automatically hardcodes DIR
15948 # into the library and all subsequent libraries and executables linked
15949 # against it.
15950 hardcode_automatic=$hardcode_automatic
15951
15952 # Set to yes if linker adds runtime paths of dependent libraries
15953 # to runtime path list.
15954 inherit_rpath=$inherit_rpath
15955
15956 # Whether libtool must link a program against all its dependency libraries.
15957 link_all_deplibs=$link_all_deplibs
15958
15959 # Fix the shell variable \$srcfile for the compiler.
15960 fix_srcfile_path=$lt_fix_srcfile_path
15961
15962 # Set to "yes" if exported symbols are required.
15963 always_export_symbols=$always_export_symbols
15964
15965 # The commands to list exported symbols.
15966 export_symbols_cmds=$lt_export_symbols_cmds
15967
15968 # Symbols that should not be listed in the preloaded symbols.
15969 exclude_expsyms=$lt_exclude_expsyms
15970
15971 # Symbols that must always be exported.
15972 include_expsyms=$lt_include_expsyms
15973
15974 # Commands necessary for linking programs (against libraries) with templates.
15975 prelink_cmds=$lt_prelink_cmds
15976
15977 # Specify filename containing input files.
15978 file_list_spec=$lt_file_list_spec
15979
15980 # How to hardcode a shared library path into an executable.
15981 hardcode_action=$hardcode_action
15982
15983 # ### END LIBTOOL CONFIG
15984
15985 _LT_EOF
15986
15987   case $host_os in
15988   aix3*)
15989     cat <<\_LT_EOF >> "$cfgfile"
15990 # AIX sometimes has problems with the GCC collect2 program.  For some
15991 # reason, if we set the COLLECT_NAMES environment variable, the problems
15992 # vanish in a puff of smoke.
15993 if test "X${COLLECT_NAMES+set}" != Xset; then
15994   COLLECT_NAMES=
15995   export COLLECT_NAMES
15996 fi
15997 _LT_EOF
15998     ;;
15999   esac
16000
16001
16002 ltmain="$ac_aux_dir/ltmain.sh"
16003
16004
16005   # We use sed instead of cat because bash on DJGPP gets confused if
16006   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16007   # text mode, it properly converts lines to CR/LF.  This bash problem
16008   # is reportedly fixed, but why not run on old versions too?
16009   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16010     || (rm -f "$cfgfile"; exit 1)
16011
16012   case $xsi_shell in
16013   yes)
16014     cat << \_LT_EOF >> "$cfgfile"
16015
16016 # func_dirname file append nondir_replacement
16017 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16018 # otherwise set result to NONDIR_REPLACEMENT.
16019 func_dirname ()
16020 {
16021   case ${1} in
16022     */*) func_dirname_result="${1%/*}${2}" ;;
16023     *  ) func_dirname_result="${3}" ;;
16024   esac
16025 }
16026
16027 # func_basename file
16028 func_basename ()
16029 {
16030   func_basename_result="${1##*/}"
16031 }
16032
16033 # func_dirname_and_basename file append nondir_replacement
16034 # perform func_basename and func_dirname in a single function
16035 # call:
16036 #   dirname:  Compute the dirname of FILE.  If nonempty,
16037 #             add APPEND to the result, otherwise set result
16038 #             to NONDIR_REPLACEMENT.
16039 #             value returned in "$func_dirname_result"
16040 #   basename: Compute filename of FILE.
16041 #             value retuned in "$func_basename_result"
16042 # Implementation must be kept synchronized with func_dirname
16043 # and func_basename. For efficiency, we do not delegate to
16044 # those functions but instead duplicate the functionality here.
16045 func_dirname_and_basename ()
16046 {
16047   case ${1} in
16048     */*) func_dirname_result="${1%/*}${2}" ;;
16049     *  ) func_dirname_result="${3}" ;;
16050   esac
16051   func_basename_result="${1##*/}"
16052 }
16053
16054 # func_stripname prefix suffix name
16055 # strip PREFIX and SUFFIX off of NAME.
16056 # PREFIX and SUFFIX must not contain globbing or regex special
16057 # characters, hashes, percent signs, but SUFFIX may contain a leading
16058 # dot (in which case that matches only a dot).
16059 func_stripname ()
16060 {
16061   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16062   # positional parameters, so assign one to ordinary parameter first.
16063   func_stripname_result=${3}
16064   func_stripname_result=${func_stripname_result#"${1}"}
16065   func_stripname_result=${func_stripname_result%"${2}"}
16066 }
16067
16068 # func_opt_split
16069 func_opt_split ()
16070 {
16071   func_opt_split_opt=${1%%=*}
16072   func_opt_split_arg=${1#*=}
16073 }
16074
16075 # func_lo2o object
16076 func_lo2o ()
16077 {
16078   case ${1} in
16079     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16080     *)    func_lo2o_result=${1} ;;
16081   esac
16082 }
16083
16084 # func_xform libobj-or-source
16085 func_xform ()
16086 {
16087   func_xform_result=${1%.*}.lo
16088 }
16089
16090 # func_arith arithmetic-term...
16091 func_arith ()
16092 {
16093   func_arith_result=$(( $* ))
16094 }
16095
16096 # func_len string
16097 # STRING may not start with a hyphen.
16098 func_len ()
16099 {
16100   func_len_result=${#1}
16101 }
16102
16103 _LT_EOF
16104     ;;
16105   *) # Bourne compatible functions.
16106     cat << \_LT_EOF >> "$cfgfile"
16107
16108 # func_dirname file append nondir_replacement
16109 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16110 # otherwise set result to NONDIR_REPLACEMENT.
16111 func_dirname ()
16112 {
16113   # Extract subdirectory from the argument.
16114   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16115   if test "X$func_dirname_result" = "X${1}"; then
16116     func_dirname_result="${3}"
16117   else
16118     func_dirname_result="$func_dirname_result${2}"
16119   fi
16120 }
16121
16122 # func_basename file
16123 func_basename ()
16124 {
16125   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16126 }
16127
16128
16129 # func_stripname prefix suffix name
16130 # strip PREFIX and SUFFIX off of NAME.
16131 # PREFIX and SUFFIX must not contain globbing or regex special
16132 # characters, hashes, percent signs, but SUFFIX may contain a leading
16133 # dot (in which case that matches only a dot).
16134 # func_strip_suffix prefix name
16135 func_stripname ()
16136 {
16137   case ${2} in
16138     .*) func_stripname_result=`$ECHO "X${3}" \
16139            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16140     *)  func_stripname_result=`$ECHO "X${3}" \
16141            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16142   esac
16143 }
16144
16145 # sed scripts:
16146 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16147 my_sed_long_arg='1s/^-[^=]*=//'
16148
16149 # func_opt_split
16150 func_opt_split ()
16151 {
16152   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16153   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16154 }
16155
16156 # func_lo2o object
16157 func_lo2o ()
16158 {
16159   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16160 }
16161
16162 # func_xform libobj-or-source
16163 func_xform ()
16164 {
16165   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16166 }
16167
16168 # func_arith arithmetic-term...
16169 func_arith ()
16170 {
16171   func_arith_result=`expr "$@"`
16172 }
16173
16174 # func_len string
16175 # STRING may not start with a hyphen.
16176 func_len ()
16177 {
16178   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16179 }
16180
16181 _LT_EOF
16182 esac
16183
16184 case $lt_shell_append in
16185   yes)
16186     cat << \_LT_EOF >> "$cfgfile"
16187
16188 # func_append var value
16189 # Append VALUE to the end of shell variable VAR.
16190 func_append ()
16191 {
16192   eval "$1+=\$2"
16193 }
16194 _LT_EOF
16195     ;;
16196   *)
16197     cat << \_LT_EOF >> "$cfgfile"
16198
16199 # func_append var value
16200 # Append VALUE to the end of shell variable VAR.
16201 func_append ()
16202 {
16203   eval "$1=\$$1\$2"
16204 }
16205
16206 _LT_EOF
16207     ;;
16208   esac
16209
16210
16211   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16212     || (rm -f "$cfgfile"; exit 1)
16213
16214   mv -f "$cfgfile" "$ofile" ||
16215     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16216   chmod +x "$ofile"
16217
16218  ;;
16219     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16220   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16221   # are listed without --file.  Let's play safe and only enable the eval
16222   # if we detect the quoting.
16223   case $CONFIG_FILES in
16224   *\'*) eval set x "$CONFIG_FILES" ;;
16225   *)   set x $CONFIG_FILES ;;
16226   esac
16227   shift
16228   for mf
16229   do
16230     # Strip MF so we end up with the name of the file.
16231     mf=`echo "$mf" | sed -e 's/:.*$//'`
16232     # Check whether this is an Automake generated Makefile or not.
16233     # We used to match only the files named `Makefile.in', but
16234     # some people rename them; so instead we look at the file content.
16235     # Grep'ing the first line is not enough: some people post-process
16236     # each Makefile.in and add a new line on top of each file to say so.
16237     # Grep'ing the whole file is not good either: AIX grep has a line
16238     # limit of 2048, but all sed's we know have understand at least 4000.
16239     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16240       dirpart=`$as_dirname -- "$mf" ||
16241 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16242          X"$mf" : 'X\(//\)[^/]' \| \
16243          X"$mf" : 'X\(//\)$' \| \
16244          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16245 $as_echo X"$mf" |
16246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16247             s//\1/
16248             q
16249           }
16250           /^X\(\/\/\)[^/].*/{
16251             s//\1/
16252             q
16253           }
16254           /^X\(\/\/\)$/{
16255             s//\1/
16256             q
16257           }
16258           /^X\(\/\).*/{
16259             s//\1/
16260             q
16261           }
16262           s/.*/./; q'`
16263     else
16264       continue
16265     fi
16266     # Extract the definition of DEPDIR, am__include, and am__quote
16267     # from the Makefile without running `make'.
16268     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16269     test -z "$DEPDIR" && continue
16270     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16271     test -z "am__include" && continue
16272     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16273     # When using ansi2knr, U may be empty or an underscore; expand it
16274     U=`sed -n 's/^U = //p' < "$mf"`
16275     # Find all dependency output files, they are included files with
16276     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16277     # simplest approach to changing $(DEPDIR) to its actual value in the
16278     # expansion.
16279     for file in `sed -n "
16280       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16281          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16282       # Make sure the directory exists.
16283       test -f "$dirpart/$file" && continue
16284       fdir=`$as_dirname -- "$file" ||
16285 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16286          X"$file" : 'X\(//\)[^/]' \| \
16287          X"$file" : 'X\(//\)$' \| \
16288          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16289 $as_echo X"$file" |
16290     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16291             s//\1/
16292             q
16293           }
16294           /^X\(\/\/\)[^/].*/{
16295             s//\1/
16296             q
16297           }
16298           /^X\(\/\/\)$/{
16299             s//\1/
16300             q
16301           }
16302           /^X\(\/\).*/{
16303             s//\1/
16304             q
16305           }
16306           s/.*/./; q'`
16307       { as_dir=$dirpart/$fdir
16308   case $as_dir in #(
16309   -*) as_dir=./$as_dir;;
16310   esac
16311   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16312     as_dirs=
16313     while :; do
16314       case $as_dir in #(
16315       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16316       *) as_qdir=$as_dir;;
16317       esac
16318       as_dirs="'$as_qdir' $as_dirs"
16319       as_dir=`$as_dirname -- "$as_dir" ||
16320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16321          X"$as_dir" : 'X\(//\)[^/]' \| \
16322          X"$as_dir" : 'X\(//\)$' \| \
16323          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16324 $as_echo X"$as_dir" |
16325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16326             s//\1/
16327             q
16328           }
16329           /^X\(\/\/\)[^/].*/{
16330             s//\1/
16331             q
16332           }
16333           /^X\(\/\/\)$/{
16334             s//\1/
16335             q
16336           }
16337           /^X\(\/\).*/{
16338             s//\1/
16339             q
16340           }
16341           s/.*/./; q'`
16342       test -d "$as_dir" && break
16343     done
16344     test -z "$as_dirs" || eval "mkdir $as_dirs"
16345   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16346 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16347    { (exit 1); exit 1; }; }; }
16348       # echo "creating $dirpart/$file"
16349       echo '# dummy' > "$dirpart/$file"
16350     done
16351   done
16352 }
16353  ;;
16354
16355   esac
16356 done # for ac_tag
16357
16358
16359 { (exit 0); exit 0; }
16360 _ACEOF
16361 chmod +x $CONFIG_STATUS
16362 ac_clean_files=$ac_clean_files_save
16363
16364 test $ac_write_fail = 0 ||
16365   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16366 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16367    { (exit 1); exit 1; }; }
16368
16369
16370 # configure is writing to config.log, and then calls config.status.
16371 # config.status does its own redirection, appending to config.log.
16372 # Unfortunately, on DOS this fails, as config.log is still kept open
16373 # by configure, so config.status won't be able to write to it; its
16374 # output is simply discarded.  So we exec the FD to /dev/null,
16375 # effectively closing config.log, so it can be properly (re)opened and
16376 # appended to by config.status.  When coming back to configure, we
16377 # need to make the FD available again.
16378 if test "$no_create" != yes; then
16379   ac_cs_success=:
16380   ac_config_status_args=
16381   test "$silent" = yes &&
16382     ac_config_status_args="$ac_config_status_args --quiet"
16383   exec 5>/dev/null
16384   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16385   exec 5>>config.log
16386   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16387   # would make configure fail if this is the last instruction.
16388   $ac_cs_success || { (exit 1); exit 1; }
16389 fi
16390 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16391   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16392 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16393 fi
16394