resetting manifest requested domain to floor
[platform/upstream/liboil.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for liboil 0.3.17.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (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
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
530
531 case X$lt_ECHO in
532 X*--fallback-echo)
533   # Remove one level of quotation (which was required for Make).
534   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535   ;;
536 esac
537
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540   # Discard the --no-reexec flag, and continue.
541   shift
542 elif test "X$1" = X--fallback-echo; then
543   # Avoid inline document here, it may be left over
544   :
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546   # Yippee, $ECHO works!
547   :
548 else
549   # Restart under the correct shell.
550   exec $SHELL "$0" --no-reexec ${1+"$@"}
551 fi
552
553 if test "X$1" = X--fallback-echo; then
554   # used as fallback echo
555   shift
556   cat <<_LT_EOF
557 $*
558 _LT_EOF
559   exit 0
560 fi
561
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566 if test -z "$lt_ECHO"; then
567   if test "X${echo_test_string+set}" != Xset; then
568     # find a string as large as possible, as long as the shell can cope with it
569     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573       then
574         break
575       fi
576     done
577   fi
578
579   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581      test "X$echo_testing_string" = "X$echo_test_string"; then
582     :
583   else
584     # The Solaris, AIX, and Digital Unix default echo programs unquote
585     # backslashes.  This makes it impossible to quote backslashes using
586     #   echo "$something" | sed 's/\\/\\\\/g'
587     #
588     # So, first we look for a working echo in the user's PATH.
589
590     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591     for dir in $PATH /usr/ucb; do
592       IFS="$lt_save_ifs"
593       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596          test "X$echo_testing_string" = "X$echo_test_string"; then
597         ECHO="$dir/echo"
598         break
599       fi
600     done
601     IFS="$lt_save_ifs"
602
603     if test "X$ECHO" = Xecho; then
604       # We didn't find a better echo, so look for alternatives.
605       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607          test "X$echo_testing_string" = "X$echo_test_string"; then
608         # This shell has a builtin print -r that does the trick.
609         ECHO='print -r'
610       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611            test "X$CONFIG_SHELL" != X/bin/ksh; then
612         # If we have ksh, try running configure again with it.
613         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614         export ORIGINAL_CONFIG_SHELL
615         CONFIG_SHELL=/bin/ksh
616         export CONFIG_SHELL
617         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618       else
619         # Try using printf.
620         ECHO='printf %s\n'
621         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623            test "X$echo_testing_string" = "X$echo_test_string"; then
624           # Cool, printf works
625           :
626         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627              test "X$echo_testing_string" = 'X\t' &&
628              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629              test "X$echo_testing_string" = "X$echo_test_string"; then
630           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631           export CONFIG_SHELL
632           SHELL="$CONFIG_SHELL"
633           export SHELL
634           ECHO="$CONFIG_SHELL $0 --fallback-echo"
635         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636              test "X$echo_testing_string" = 'X\t' &&
637              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638              test "X$echo_testing_string" = "X$echo_test_string"; then
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         else
641           # maybe with a smaller string...
642           prev=:
643
644           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646             then
647               break
648             fi
649             prev="$cmd"
650           done
651
652           if test "$prev" != 'sed 50q "$0"'; then
653             echo_test_string=`eval $prev`
654             export echo_test_string
655             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656           else
657             # Oops.  We lost completely, so just stick with echo.
658             ECHO=echo
659           fi
660         fi
661       fi
662     fi
663   fi
664 fi
665
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671 fi
672
673
674
675
676 exec 7<&0 </dev/null 6>&1
677
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
683 #
684 # Initializations.
685 #
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
694
695 # Identity of this package.
696 PACKAGE_NAME='liboil'
697 PACKAGE_TARNAME='liboil'
698 PACKAGE_VERSION='0.3.17'
699 PACKAGE_STRING='liboil 0.3.17'
700 PACKAGE_BUGREPORT=''
701 PACKAGE_URL=''
702
703 # Factoring default headers for most tests.
704 ac_includes_default="\
705 #include <stdio.h>
706 #ifdef HAVE_SYS_TYPES_H
707 # include <sys/types.h>
708 #endif
709 #ifdef HAVE_SYS_STAT_H
710 # include <sys/stat.h>
711 #endif
712 #ifdef STDC_HEADERS
713 # include <stdlib.h>
714 # include <stddef.h>
715 #else
716 # ifdef HAVE_STDLIB_H
717 #  include <stdlib.h>
718 # endif
719 #endif
720 #ifdef HAVE_STRING_H
721 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
722 #  include <memory.h>
723 # endif
724 # include <string.h>
725 #endif
726 #ifdef HAVE_STRINGS_H
727 # include <strings.h>
728 #endif
729 #ifdef HAVE_INTTYPES_H
730 # include <inttypes.h>
731 #endif
732 #ifdef HAVE_STDINT_H
733 # include <stdint.h>
734 #endif
735 #ifdef HAVE_UNISTD_H
736 # include <unistd.h>
737 #endif"
738
739 ac_unique_file="liboil/liboil.h"
740 ac_subst_vars='am__EXEEXT_FALSE
741 am__EXEEXT_TRUE
742 LTLIBOBJS
743 LIBOBJS
744 pkgconfigdir
745 LIBOIL_LIBS
746 LIBOIL_CFLAGS
747 ALTIVEC_CFLAGS
748 _3DNOWEXT_CFLAGS
749 _3DNOW_CFLAGS
750 SSE3_CFLAGS
751 SSE2_CFLAGS
752 SSE_CFLAGS
753 MMX_CFLAGS
754 HAVE_ALTIVEC_INTRINSICS_FALSE
755 HAVE_ALTIVEC_INTRINSICS_TRUE
756 HAVE_3DNOWEXT_INTRINSICS_FALSE
757 HAVE_3DNOWEXT_INTRINSICS_TRUE
758 HAVE_3DNOW_INTRINSICS_FALSE
759 HAVE_3DNOW_INTRINSICS_TRUE
760 HAVE_SSE3_INTRINSICS_FALSE
761 HAVE_SSE3_INTRINSICS_TRUE
762 HAVE_SSE2_INTRINSICS_FALSE
763 HAVE_SSE2_INTRINSICS_TRUE
764 HAVE_SSE_INTRINSICS_FALSE
765 HAVE_SSE_INTRINSICS_TRUE
766 HAVE_MMX_INTRINSICS_FALSE
767 HAVE_MMX_INTRINSICS_TRUE
768 HAVE_ASM_BLOCKS_FALSE
769 HAVE_ASM_BLOCKS_TRUE
770 VFP_CFLAGS
771 LIBRT
772 LIBM
773 sys_symbol_underscore
774 HAVE_GCC_ASM_POWERPC_FPU_FALSE
775 HAVE_GCC_ASM_POWERPC_FPU_TRUE
776 HAVE_OS_LINUX_FALSE
777 HAVE_OS_LINUX_TRUE
778 HAVE_OS_WIN32_FALSE
779 HAVE_OS_WIN32_TRUE
780 HAVE_ARM_FALSE
781 HAVE_ARM_TRUE
782 HAVE_POWERPC_FALSE
783 HAVE_POWERPC_TRUE
784 HAVE_AMD64_FALSE
785 HAVE_AMD64_TRUE
786 HAVE_I386_FALSE
787 HAVE_I386_TRUE
788 HAVE_GCC_ASM_FALSE
789 HAVE_GCC_ASM_TRUE
790 GTK_DOC_USE_LIBTOOL_FALSE
791 GTK_DOC_USE_LIBTOOL_TRUE
792 ENABLE_GTK_DOC_FALSE
793 ENABLE_GTK_DOC_TRUE
794 GTKDOC_CHECK
795 HTML_DIR
796 LIBOIL_OLD_MAJORMINOR
797 LIBOIL_MAJORMINOR
798 USE_NEW_ABI_FALSE
799 USE_NEW_ABI_TRUE
800 LIBOIL_OPT_CFLAGS
801 USE_ALT_OPT_FALSE
802 USE_ALT_OPT_TRUE
803 HAVE_GLIB_FALSE
804 HAVE_GLIB_TRUE
805 GLIB_LIBS
806 GLIB_CFLAGS
807 PKG_CONFIG
808 am__fastdepCCAS_FALSE
809 am__fastdepCCAS_TRUE
810 CCASDEPMODE
811 CCASFLAGS
812 CCAS
813 CPP
814 OTOOL64
815 OTOOL
816 LIPO
817 NMEDIT
818 DSYMUTIL
819 lt_ECHO
820 RANLIB
821 AR
822 LN_S
823 NM
824 ac_ct_DUMPBIN
825 DUMPBIN
826 LD
827 FGREP
828 EGREP
829 GREP
830 SED
831 am__fastdepCC_FALSE
832 am__fastdepCC_TRUE
833 CCDEPMODE
834 AMDEPBACKSLASH
835 AMDEP_FALSE
836 AMDEP_TRUE
837 am__quote
838 am__include
839 DEPDIR
840 OBJEXT
841 EXEEXT
842 ac_ct_CC
843 CPPFLAGS
844 LDFLAGS
845 CFLAGS
846 CC
847 LIBTOOL
848 OBJDUMP
849 DLLTOOL
850 AS
851 LIBOIL_LIBVERSION
852 MAINT
853 MAINTAINER_MODE_FALSE
854 MAINTAINER_MODE_TRUE
855 am__untar
856 am__tar
857 AMTAR
858 am__leading_dot
859 SET_MAKE
860 AWK
861 mkdir_p
862 MKDIR_P
863 INSTALL_STRIP_PROGRAM
864 STRIP
865 install_sh
866 MAKEINFO
867 AUTOHEADER
868 AUTOMAKE
869 AUTOCONF
870 ACLOCAL
871 VERSION
872 PACKAGE
873 CYGPATH_W
874 am__isrc
875 INSTALL_DATA
876 INSTALL_SCRIPT
877 INSTALL_PROGRAM
878 host_os
879 host_vendor
880 host_cpu
881 host
882 build_os
883 build_vendor
884 build_cpu
885 build
886 NANO
887 target_alias
888 host_alias
889 build_alias
890 LIBS
891 ECHO_T
892 ECHO_N
893 ECHO_C
894 DEFS
895 mandir
896 localedir
897 libdir
898 psdir
899 pdfdir
900 dvidir
901 htmldir
902 infodir
903 docdir
904 oldincludedir
905 includedir
906 localstatedir
907 sharedstatedir
908 sysconfdir
909 datadir
910 datarootdir
911 libexecdir
912 sbindir
913 bindir
914 program_transform_name
915 prefix
916 exec_prefix
917 PACKAGE_URL
918 PACKAGE_BUGREPORT
919 PACKAGE_STRING
920 PACKAGE_VERSION
921 PACKAGE_TARNAME
922 PACKAGE_NAME
923 PATH_SEPARATOR
924 SHELL'
925 ac_subst_files=''
926 ac_user_opts='
927 enable_option_checking
928 enable_maintainer_mode
929 enable_shared
930 enable_static
931 with_pic
932 enable_fast_install
933 enable_dependency_tracking
934 with_gnu_ld
935 enable_libtool_lock
936 enable_glib
937 enable_prototype_checking
938 with_alternate_optimization
939 enable_broken_implementations
940 with_html_dir
941 enable_gtk_doc
942 enable_vfp
943 '
944       ac_precious_vars='build_alias
945 host_alias
946 target_alias
947 CC
948 CFLAGS
949 LDFLAGS
950 LIBS
951 CPPFLAGS
952 CPP
953 CCAS
954 CCASFLAGS
955 PKG_CONFIG
956 GLIB_CFLAGS
957 GLIB_LIBS'
958
959
960 # Initialize some variables set by options.
961 ac_init_help=
962 ac_init_version=false
963 ac_unrecognized_opts=
964 ac_unrecognized_sep=
965 # The variables have the same names as the options, with
966 # dashes changed to underlines.
967 cache_file=/dev/null
968 exec_prefix=NONE
969 no_create=
970 no_recursion=
971 prefix=NONE
972 program_prefix=NONE
973 program_suffix=NONE
974 program_transform_name=s,x,x,
975 silent=
976 site=
977 srcdir=
978 verbose=
979 x_includes=NONE
980 x_libraries=NONE
981
982 # Installation directory options.
983 # These are left unexpanded so users can "make install exec_prefix=/foo"
984 # and all the variables that are supposed to be based on exec_prefix
985 # by default will actually change.
986 # Use braces instead of parens because sh, perl, etc. also accept them.
987 # (The list follows the same order as the GNU Coding Standards.)
988 bindir='${exec_prefix}/bin'
989 sbindir='${exec_prefix}/sbin'
990 libexecdir='${exec_prefix}/libexec'
991 datarootdir='${prefix}/share'
992 datadir='${datarootdir}'
993 sysconfdir='${prefix}/etc'
994 sharedstatedir='${prefix}/com'
995 localstatedir='${prefix}/var'
996 includedir='${prefix}/include'
997 oldincludedir='/usr/include'
998 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
999 infodir='${datarootdir}/info'
1000 htmldir='${docdir}'
1001 dvidir='${docdir}'
1002 pdfdir='${docdir}'
1003 psdir='${docdir}'
1004 libdir='${exec_prefix}/lib'
1005 localedir='${datarootdir}/locale'
1006 mandir='${datarootdir}/man'
1007
1008 ac_prev=
1009 ac_dashdash=
1010 for ac_option
1011 do
1012   # If the previous option needs an argument, assign it.
1013   if test -n "$ac_prev"; then
1014     eval $ac_prev=\$ac_option
1015     ac_prev=
1016     continue
1017   fi
1018
1019   case $ac_option in
1020   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021   *)    ac_optarg=yes ;;
1022   esac
1023
1024   # Accept the important Cygnus configure options, so we can diagnose typos.
1025
1026   case $ac_dashdash$ac_option in
1027   --)
1028     ac_dashdash=yes ;;
1029
1030   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031     ac_prev=bindir ;;
1032   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033     bindir=$ac_optarg ;;
1034
1035   -build | --build | --buil | --bui | --bu)
1036     ac_prev=build_alias ;;
1037   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038     build_alias=$ac_optarg ;;
1039
1040   -cache-file | --cache-file | --cache-fil | --cache-fi \
1041   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042     ac_prev=cache_file ;;
1043   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045     cache_file=$ac_optarg ;;
1046
1047   --config-cache | -C)
1048     cache_file=config.cache ;;
1049
1050   -datadir | --datadir | --datadi | --datad)
1051     ac_prev=datadir ;;
1052   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053     datadir=$ac_optarg ;;
1054
1055   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056   | --dataroo | --dataro | --datar)
1057     ac_prev=datarootdir ;;
1058   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060     datarootdir=$ac_optarg ;;
1061
1062   -disable-* | --disable-*)
1063     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064     # Reject names that are not valid shell variable names.
1065     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066       as_fn_error "invalid feature name: $ac_useropt"
1067     ac_useropt_orig=$ac_useropt
1068     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069     case $ac_user_opts in
1070       *"
1071 "enable_$ac_useropt"
1072 "*) ;;
1073       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074          ac_unrecognized_sep=', ';;
1075     esac
1076     eval enable_$ac_useropt=no ;;
1077
1078   -docdir | --docdir | --docdi | --doc | --do)
1079     ac_prev=docdir ;;
1080   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081     docdir=$ac_optarg ;;
1082
1083   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084     ac_prev=dvidir ;;
1085   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086     dvidir=$ac_optarg ;;
1087
1088   -enable-* | --enable-*)
1089     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090     # Reject names that are not valid shell variable names.
1091     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092       as_fn_error "invalid feature name: $ac_useropt"
1093     ac_useropt_orig=$ac_useropt
1094     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095     case $ac_user_opts in
1096       *"
1097 "enable_$ac_useropt"
1098 "*) ;;
1099       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100          ac_unrecognized_sep=', ';;
1101     esac
1102     eval enable_$ac_useropt=\$ac_optarg ;;
1103
1104   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106   | --exec | --exe | --ex)
1107     ac_prev=exec_prefix ;;
1108   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110   | --exec=* | --exe=* | --ex=*)
1111     exec_prefix=$ac_optarg ;;
1112
1113   -gas | --gas | --ga | --g)
1114     # Obsolete; use --with-gas.
1115     with_gas=yes ;;
1116
1117   -help | --help | --hel | --he | -h)
1118     ac_init_help=long ;;
1119   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120     ac_init_help=recursive ;;
1121   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122     ac_init_help=short ;;
1123
1124   -host | --host | --hos | --ho)
1125     ac_prev=host_alias ;;
1126   -host=* | --host=* | --hos=* | --ho=*)
1127     host_alias=$ac_optarg ;;
1128
1129   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130     ac_prev=htmldir ;;
1131   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132   | --ht=*)
1133     htmldir=$ac_optarg ;;
1134
1135   -includedir | --includedir | --includedi | --included | --include \
1136   | --includ | --inclu | --incl | --inc)
1137     ac_prev=includedir ;;
1138   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139   | --includ=* | --inclu=* | --incl=* | --inc=*)
1140     includedir=$ac_optarg ;;
1141
1142   -infodir | --infodir | --infodi | --infod | --info | --inf)
1143     ac_prev=infodir ;;
1144   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145     infodir=$ac_optarg ;;
1146
1147   -libdir | --libdir | --libdi | --libd)
1148     ac_prev=libdir ;;
1149   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150     libdir=$ac_optarg ;;
1151
1152   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153   | --libexe | --libex | --libe)
1154     ac_prev=libexecdir ;;
1155   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156   | --libexe=* | --libex=* | --libe=*)
1157     libexecdir=$ac_optarg ;;
1158
1159   -localedir | --localedir | --localedi | --localed | --locale)
1160     ac_prev=localedir ;;
1161   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162     localedir=$ac_optarg ;;
1163
1164   -localstatedir | --localstatedir | --localstatedi | --localstated \
1165   | --localstate | --localstat | --localsta | --localst | --locals)
1166     ac_prev=localstatedir ;;
1167   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169     localstatedir=$ac_optarg ;;
1170
1171   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172     ac_prev=mandir ;;
1173   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174     mandir=$ac_optarg ;;
1175
1176   -nfp | --nfp | --nf)
1177     # Obsolete; use --without-fp.
1178     with_fp=no ;;
1179
1180   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181   | --no-cr | --no-c | -n)
1182     no_create=yes ;;
1183
1184   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186     no_recursion=yes ;;
1187
1188   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190   | --oldin | --oldi | --old | --ol | --o)
1191     ac_prev=oldincludedir ;;
1192   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195     oldincludedir=$ac_optarg ;;
1196
1197   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198     ac_prev=prefix ;;
1199   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200     prefix=$ac_optarg ;;
1201
1202   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203   | --program-pre | --program-pr | --program-p)
1204     ac_prev=program_prefix ;;
1205   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207     program_prefix=$ac_optarg ;;
1208
1209   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210   | --program-suf | --program-su | --program-s)
1211     ac_prev=program_suffix ;;
1212   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214     program_suffix=$ac_optarg ;;
1215
1216   -program-transform-name | --program-transform-name \
1217   | --program-transform-nam | --program-transform-na \
1218   | --program-transform-n | --program-transform- \
1219   | --program-transform | --program-transfor \
1220   | --program-transfo | --program-transf \
1221   | --program-trans | --program-tran \
1222   | --progr-tra | --program-tr | --program-t)
1223     ac_prev=program_transform_name ;;
1224   -program-transform-name=* | --program-transform-name=* \
1225   | --program-transform-nam=* | --program-transform-na=* \
1226   | --program-transform-n=* | --program-transform-=* \
1227   | --program-transform=* | --program-transfor=* \
1228   | --program-transfo=* | --program-transf=* \
1229   | --program-trans=* | --program-tran=* \
1230   | --progr-tra=* | --program-tr=* | --program-t=*)
1231     program_transform_name=$ac_optarg ;;
1232
1233   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234     ac_prev=pdfdir ;;
1235   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236     pdfdir=$ac_optarg ;;
1237
1238   -psdir | --psdir | --psdi | --psd | --ps)
1239     ac_prev=psdir ;;
1240   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241     psdir=$ac_optarg ;;
1242
1243   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244   | -silent | --silent | --silen | --sile | --sil)
1245     silent=yes ;;
1246
1247   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248     ac_prev=sbindir ;;
1249   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250   | --sbi=* | --sb=*)
1251     sbindir=$ac_optarg ;;
1252
1253   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255   | --sharedst | --shareds | --shared | --share | --shar \
1256   | --sha | --sh)
1257     ac_prev=sharedstatedir ;;
1258   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261   | --sha=* | --sh=*)
1262     sharedstatedir=$ac_optarg ;;
1263
1264   -site | --site | --sit)
1265     ac_prev=site ;;
1266   -site=* | --site=* | --sit=*)
1267     site=$ac_optarg ;;
1268
1269   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270     ac_prev=srcdir ;;
1271   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272     srcdir=$ac_optarg ;;
1273
1274   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275   | --syscon | --sysco | --sysc | --sys | --sy)
1276     ac_prev=sysconfdir ;;
1277   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279     sysconfdir=$ac_optarg ;;
1280
1281   -target | --target | --targe | --targ | --tar | --ta | --t)
1282     ac_prev=target_alias ;;
1283   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284     target_alias=$ac_optarg ;;
1285
1286   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287     verbose=yes ;;
1288
1289   -version | --version | --versio | --versi | --vers | -V)
1290     ac_init_version=: ;;
1291
1292   -with-* | --with-*)
1293     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294     # Reject names that are not valid shell variable names.
1295     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296       as_fn_error "invalid package name: $ac_useropt"
1297     ac_useropt_orig=$ac_useropt
1298     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299     case $ac_user_opts in
1300       *"
1301 "with_$ac_useropt"
1302 "*) ;;
1303       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1304          ac_unrecognized_sep=', ';;
1305     esac
1306     eval with_$ac_useropt=\$ac_optarg ;;
1307
1308   -without-* | --without-*)
1309     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1310     # Reject names that are not valid shell variable names.
1311     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312       as_fn_error "invalid package name: $ac_useropt"
1313     ac_useropt_orig=$ac_useropt
1314     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315     case $ac_user_opts in
1316       *"
1317 "with_$ac_useropt"
1318 "*) ;;
1319       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320          ac_unrecognized_sep=', ';;
1321     esac
1322     eval with_$ac_useropt=no ;;
1323
1324   --x)
1325     # Obsolete; use --with-x.
1326     with_x=yes ;;
1327
1328   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329   | --x-incl | --x-inc | --x-in | --x-i)
1330     ac_prev=x_includes ;;
1331   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333     x_includes=$ac_optarg ;;
1334
1335   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337     ac_prev=x_libraries ;;
1338   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340     x_libraries=$ac_optarg ;;
1341
1342   -*) as_fn_error "unrecognized option: \`$ac_option'
1343 Try \`$0 --help' for more information."
1344     ;;
1345
1346   *=*)
1347     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1348     # Reject names that are not valid shell variable names.
1349     case $ac_envvar in #(
1350       '' | [0-9]* | *[!_$as_cr_alnum]* )
1351       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1352     esac
1353     eval $ac_envvar=\$ac_optarg
1354     export $ac_envvar ;;
1355
1356   *)
1357     # FIXME: should be removed in autoconf 3.0.
1358     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1362     ;;
1363
1364   esac
1365 done
1366
1367 if test -n "$ac_prev"; then
1368   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1369   as_fn_error "missing argument to $ac_option"
1370 fi
1371
1372 if test -n "$ac_unrecognized_opts"; then
1373   case $enable_option_checking in
1374     no) ;;
1375     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1376     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1377   esac
1378 fi
1379
1380 # Check all directory arguments for consistency.
1381 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382                 datadir sysconfdir sharedstatedir localstatedir includedir \
1383                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384                 libdir localedir mandir
1385 do
1386   eval ac_val=\$$ac_var
1387   # Remove trailing slashes.
1388   case $ac_val in
1389     */ )
1390       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1391       eval $ac_var=\$ac_val;;
1392   esac
1393   # Be sure to have absolute directory names.
1394   case $ac_val in
1395     [\\/$]* | ?:[\\/]* )  continue;;
1396     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1397   esac
1398   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1399 done
1400
1401 # There might be people who depend on the old broken behavior: `$host'
1402 # used to hold the argument of --host etc.
1403 # FIXME: To remove some day.
1404 build=$build_alias
1405 host=$host_alias
1406 target=$target_alias
1407
1408 # FIXME: To remove some day.
1409 if test "x$host_alias" != x; then
1410   if test "x$build_alias" = x; then
1411     cross_compiling=maybe
1412     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1413     If a cross compiler is detected then cross compile mode will be used." >&2
1414   elif test "x$build_alias" != "x$host_alias"; then
1415     cross_compiling=yes
1416   fi
1417 fi
1418
1419 ac_tool_prefix=
1420 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1421
1422 test "$silent" = yes && exec 6>/dev/null
1423
1424
1425 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di=`ls -di .` &&
1427 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428   as_fn_error "working directory cannot be determined"
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430   as_fn_error "pwd does not report name of working directory"
1431
1432
1433 # Find the source files, if location was not specified.
1434 if test -z "$srcdir"; then
1435   ac_srcdir_defaulted=yes
1436   # Try the directory containing this script, then the parent directory.
1437   ac_confdir=`$as_dirname -- "$as_myself" ||
1438 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439          X"$as_myself" : 'X\(//\)[^/]' \| \
1440          X"$as_myself" : 'X\(//\)$' \| \
1441          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442 $as_echo X"$as_myself" |
1443     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444             s//\1/
1445             q
1446           }
1447           /^X\(\/\/\)[^/].*/{
1448             s//\1/
1449             q
1450           }
1451           /^X\(\/\/\)$/{
1452             s//\1/
1453             q
1454           }
1455           /^X\(\/\).*/{
1456             s//\1/
1457             q
1458           }
1459           s/.*/./; q'`
1460   srcdir=$ac_confdir
1461   if test ! -r "$srcdir/$ac_unique_file"; then
1462     srcdir=..
1463   fi
1464 else
1465   ac_srcdir_defaulted=no
1466 fi
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1469   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1470 fi
1471 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1472 ac_abs_confdir=`(
1473         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1474         pwd)`
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1477   srcdir=.
1478 fi
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1482 case $srcdir in
1483 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484 esac
1485 for ac_var in $ac_precious_vars; do
1486   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487   eval ac_env_${ac_var}_value=\$${ac_var}
1488   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490 done
1491
1492 #
1493 # Report the --help message.
1494 #
1495 if test "$ac_init_help" = "long"; then
1496   # Omit some internal or obsolete options to make the list less imposing.
1497   # This message is too long to be a string in the A/UX 3.1 sh.
1498   cat <<_ACEOF
1499 \`configure' configures liboil 0.3.17 to adapt to many kinds of systems.
1500
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1502
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE.  See below for descriptions of some of the useful variables.
1505
1506 Defaults for the options are specified in brackets.
1507
1508 Configuration:
1509   -h, --help              display this help and exit
1510       --help=short        display options specific to this package
1511       --help=recursive    display the short help of all the included packages
1512   -V, --version           display version information and exit
1513   -q, --quiet, --silent   do not print \`checking...' messages
1514       --cache-file=FILE   cache test results in FILE [disabled]
1515   -C, --config-cache      alias for \`--cache-file=config.cache'
1516   -n, --no-create         do not create output files
1517       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1518
1519 Installation directories:
1520   --prefix=PREFIX         install architecture-independent files in PREFIX
1521                           [$ac_default_prefix]
1522   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1523                           [PREFIX]
1524
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1529
1530 For better control, use the options below.
1531
1532 Fine tuning of the installation directories:
1533   --bindir=DIR            user executables [EPREFIX/bin]
1534   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1535   --libexecdir=DIR        program executables [EPREFIX/libexec]
1536   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1537   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1538   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1539   --libdir=DIR            object code libraries [EPREFIX/lib]
1540   --includedir=DIR        C header files [PREFIX/include]
1541   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1542   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1543   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1544   --infodir=DIR           info documentation [DATAROOTDIR/info]
1545   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1546   --mandir=DIR            man documentation [DATAROOTDIR/man]
1547   --docdir=DIR            documentation root [DATAROOTDIR/doc/liboil]
1548   --htmldir=DIR           html documentation [DOCDIR]
1549   --dvidir=DIR            dvi documentation [DOCDIR]
1550   --pdfdir=DIR            pdf documentation [DOCDIR]
1551   --psdir=DIR             ps documentation [DOCDIR]
1552 _ACEOF
1553
1554   cat <<\_ACEOF
1555
1556 Program names:
1557   --program-prefix=PREFIX            prepend PREFIX to installed program names
1558   --program-suffix=SUFFIX            append SUFFIX to installed program names
1559   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1560
1561 System types:
1562   --build=BUILD     configure for building on BUILD [guessed]
1563   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1564 _ACEOF
1565 fi
1566
1567 if test -n "$ac_init_help"; then
1568   case $ac_init_help in
1569      short | recursive ) echo "Configuration of liboil 0.3.17:";;
1570    esac
1571   cat <<\_ACEOF
1572
1573 Optional Features:
1574   --disable-option-checking  ignore unrecognized --enable/--with options
1575   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1576   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1577   --enable-maintainer-mode  enable make rules and dependencies not useful
1578                           (and sometimes confusing) to the casual installer
1579   --enable-shared[=PKGS]  build shared libraries [default=yes]
1580   --enable-static[=PKGS]  build static libraries [default=yes]
1581   --enable-fast-install[=PKGS]
1582                           optimize for fast installation [default=yes]
1583   --disable-dependency-tracking  speeds up one-time build
1584   --enable-dependency-tracking   do not reject slow dependency extractors
1585   --disable-libtool-lock  avoid locking (might break parallel builds)
1586   --disable-glib          disable usage of glib
1587   --enable-prototype-checking
1588                           compile with strict prototype checking
1589   --enable-broken-implementations
1590                           compile with broken implementations
1591   --enable-gtk-doc        use gtk-doc to build documentation [default=no]
1592   --enable-vfp            compile with Vector Floating-point unit support
1593
1594 Optional Packages:
1595   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1596   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1597   --with-pic              try to use only PIC/non-PIC objects [default=use
1598                           both]
1599   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1600   --with-alternate-optimization=CFLAGS
1601                           compile with alternate optimization flags
1602   --with-html-dir=PATH    path to installed docs
1603
1604 Some influential environment variables:
1605   CC          C compiler command
1606   CFLAGS      C compiler flags
1607   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1608               nonstandard directory <lib dir>
1609   LIBS        libraries to pass to the linker, e.g. -l<library>
1610   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1611               you have headers in a nonstandard directory <include dir>
1612   CPP         C preprocessor
1613   CCAS        assembler compiler command (defaults to CC)
1614   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1615   PKG_CONFIG  path to pkg-config utility
1616   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1617   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1618
1619 Use these variables to override the choices made by `configure' or to help
1620 it to find libraries and programs with nonstandard names/locations.
1621
1622 Report bugs to the package provider.
1623 _ACEOF
1624 ac_status=$?
1625 fi
1626
1627 if test "$ac_init_help" = "recursive"; then
1628   # If there are subdirs, report their specific --help.
1629   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1630     test -d "$ac_dir" ||
1631       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1632       continue
1633     ac_builddir=.
1634
1635 case "$ac_dir" in
1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *)
1638   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1639   # A ".." for each directory in $ac_dir_suffix.
1640   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1641   case $ac_top_builddir_sub in
1642   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644   esac ;;
1645 esac
1646 ac_abs_top_builddir=$ac_pwd
1647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir=$ac_top_build_prefix
1650
1651 case $srcdir in
1652   .)  # We are building in place.
1653     ac_srcdir=.
1654     ac_top_srcdir=$ac_top_builddir_sub
1655     ac_abs_top_srcdir=$ac_pwd ;;
1656   [\\/]* | ?:[\\/]* )  # Absolute name.
1657     ac_srcdir=$srcdir$ac_dir_suffix;
1658     ac_top_srcdir=$srcdir
1659     ac_abs_top_srcdir=$srcdir ;;
1660   *) # Relative name.
1661     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662     ac_top_srcdir=$ac_top_build_prefix$srcdir
1663     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1664 esac
1665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666
1667     cd "$ac_dir" || { ac_status=$?; continue; }
1668     # Check for guested configure.
1669     if test -f "$ac_srcdir/configure.gnu"; then
1670       echo &&
1671       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672     elif test -f "$ac_srcdir/configure"; then
1673       echo &&
1674       $SHELL "$ac_srcdir/configure" --help=recursive
1675     else
1676       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1677     fi || ac_status=$?
1678     cd "$ac_pwd" || { ac_status=$?; break; }
1679   done
1680 fi
1681
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1684   cat <<\_ACEOF
1685 liboil configure 0.3.17
1686 generated by GNU Autoconf 2.64
1687
1688 Copyright (C) 2009 Free Software Foundation, Inc.
1689 This configure script is free software; the Free Software Foundation
1690 gives unlimited permission to copy, distribute and modify it.
1691 _ACEOF
1692   exit
1693 fi
1694
1695 ## ------------------------ ##
1696 ## Autoconf initialization. ##
1697 ## ------------------------ ##
1698
1699 # ac_fn_c_try_compile LINENO
1700 # --------------------------
1701 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_compile ()
1703 {
1704   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705   rm -f conftest.$ac_objext
1706   if { { ac_try="$ac_compile"
1707 case "(($ac_try" in
1708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709   *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713   (eval "$ac_compile") 2>conftest.err
1714   ac_status=$?
1715   if test -s conftest.err; then
1716     grep -v '^ *+' conftest.err >conftest.er1
1717     cat conftest.er1 >&5
1718     mv -f conftest.er1 conftest.err
1719   fi
1720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721   test $ac_status = 0; } && {
1722          test -z "$ac_c_werror_flag" ||
1723          test ! -s conftest.err
1724        } && test -s conftest.$ac_objext; then :
1725   ac_retval=0
1726 else
1727   $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730         ac_retval=1
1731 fi
1732   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733   return $ac_retval
1734
1735 } # ac_fn_c_try_compile
1736
1737 # ac_fn_c_try_link LINENO
1738 # -----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_link ()
1741 {
1742   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743   rm -f conftest.$ac_objext conftest$ac_exeext
1744   if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747   *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751   (eval "$ac_link") 2>conftest.err
1752   ac_status=$?
1753   if test -s conftest.err; then
1754     grep -v '^ *+' conftest.err >conftest.er1
1755     cat conftest.er1 >&5
1756     mv -f conftest.er1 conftest.err
1757   fi
1758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759   test $ac_status = 0; } && {
1760          test -z "$ac_c_werror_flag" ||
1761          test ! -s conftest.err
1762        } && test -s conftest$ac_exeext && {
1763          test "$cross_compiling" = yes ||
1764          $as_test_x conftest$ac_exeext
1765        }; then :
1766   ac_retval=0
1767 else
1768   $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771         ac_retval=1
1772 fi
1773   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1774   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1775   # interfere with the next link command; also delete a directory that is
1776   # left behind by Apple's compiler.  We do this before executing the actions.
1777   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779   return $ac_retval
1780
1781 } # ac_fn_c_try_link
1782
1783 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784 # -------------------------------------------------------
1785 # Tests whether HEADER exists and can be compiled using the include files in
1786 # INCLUDES, setting the cache variable VAR accordingly.
1787 ac_fn_c_check_header_compile ()
1788 {
1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793   $as_echo_n "(cached) " >&6
1794 else
1795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h.  */
1797 $4
1798 #include <$2>
1799 _ACEOF
1800 if ac_fn_c_try_compile "$LINENO"; then :
1801   eval "$3=yes"
1802 else
1803   eval "$3=no"
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 fi
1807 eval ac_res=\$$3
1808                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811
1812 } # ac_fn_c_check_header_compile
1813
1814 # ac_fn_c_try_cpp LINENO
1815 # ----------------------
1816 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_c_try_cpp ()
1818 {
1819   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820   if { { ac_try="$ac_cpp conftest.$ac_ext"
1821 case "(($ac_try" in
1822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823   *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1828   ac_status=$?
1829   if test -s conftest.err; then
1830     grep -v '^ *+' conftest.err >conftest.er1
1831     cat conftest.er1 >&5
1832     mv -f conftest.er1 conftest.err
1833   fi
1834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835   test $ac_status = 0; } >/dev/null && {
1836          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1837          test ! -s conftest.err
1838        }; then :
1839   ac_retval=0
1840 else
1841   $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1843
1844     ac_retval=1
1845 fi
1846   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847   return $ac_retval
1848
1849 } # ac_fn_c_try_cpp
1850
1851 # ac_fn_c_try_run LINENO
1852 # ----------------------
1853 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854 # that executables *can* be run.
1855 ac_fn_c_try_run ()
1856 {
1857   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858   if { { ac_try="$ac_link"
1859 case "(($ac_try" in
1860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861   *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865   (eval "$ac_link") 2>&5
1866   ac_status=$?
1867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1869   { { case "(($ac_try" in
1870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871   *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875   (eval "$ac_try") 2>&5
1876   ac_status=$?
1877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878   test $ac_status = 0; }; }; then :
1879   ac_retval=0
1880 else
1881   $as_echo "$as_me: program exited with status $ac_status" >&5
1882        $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1884
1885        ac_retval=$ac_status
1886 fi
1887   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889   return $ac_retval
1890
1891 } # ac_fn_c_try_run
1892
1893 # ac_fn_c_check_func LINENO FUNC VAR
1894 # ----------------------------------
1895 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1896 ac_fn_c_check_func ()
1897 {
1898   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1902   $as_echo_n "(cached) " >&6
1903 else
1904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h.  */
1906 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1908 #define $2 innocuous_$2
1909
1910 /* System header to define __stub macros and hopefully few prototypes,
1911     which can conflict with char $2 (); below.
1912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1913     <limits.h> exists even on freestanding compilers.  */
1914
1915 #ifdef __STDC__
1916 # include <limits.h>
1917 #else
1918 # include <assert.h>
1919 #endif
1920
1921 #undef $2
1922
1923 /* Override any GCC internal prototype to avoid an error.
1924    Use char because int might match the return type of a GCC
1925    builtin and then its argument prototype would still apply.  */
1926 #ifdef __cplusplus
1927 extern "C"
1928 #endif
1929 char $2 ();
1930 /* The GNU C library defines this for functions which it implements
1931     to always fail with ENOSYS.  Some functions are actually named
1932     something starting with __ and the normal name is an alias.  */
1933 #if defined __stub_$2 || defined __stub___$2
1934 choke me
1935 #endif
1936
1937 int
1938 main ()
1939 {
1940 return $2 ();
1941   ;
1942   return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_link "$LINENO"; then :
1946   eval "$3=yes"
1947 else
1948   eval "$3=no"
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext \
1951     conftest$ac_exeext conftest.$ac_ext
1952 fi
1953 eval ac_res=\$$3
1954                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957
1958 } # ac_fn_c_check_func
1959
1960 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1961 # -------------------------------------------
1962 # Tests whether TYPE exists after having included INCLUDES, setting cache
1963 # variable VAR accordingly.
1964 ac_fn_c_check_type ()
1965 {
1966   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970   $as_echo_n "(cached) " >&6
1971 else
1972   eval "$3=no"
1973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h.  */
1975 $4
1976 int
1977 main ()
1978 {
1979 if (sizeof ($2))
1980          return 0;
1981   ;
1982   return 0;
1983 }
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h.  */
1988 $4
1989 int
1990 main ()
1991 {
1992 if (sizeof (($2)))
1993             return 0;
1994   ;
1995   return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999
2000 else
2001   eval "$3=yes"
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 fi
2007 eval ac_res=\$$3
2008                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011
2012 } # ac_fn_c_check_type
2013
2014 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2015 # --------------------------------------------
2016 # Tries to find the compile-time value of EXPR in a program that includes
2017 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2018 # computed
2019 ac_fn_c_compute_int ()
2020 {
2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022   if test "$cross_compiling" = yes; then
2023     # Depending upon the size, compute the lo and hi bounds.
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h.  */
2026 $4
2027 int
2028 main ()
2029 {
2030 static int test_array [1 - 2 * !(($2) >= 0)];
2031 test_array [0] = 0
2032
2033   ;
2034   return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038   ac_lo=0 ac_mid=0
2039   while :; do
2040     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h.  */
2042 $4
2043 int
2044 main ()
2045 {
2046 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2047 test_array [0] = 0
2048
2049   ;
2050   return 0;
2051 }
2052 _ACEOF
2053 if ac_fn_c_try_compile "$LINENO"; then :
2054   ac_hi=$ac_mid; break
2055 else
2056   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2057                         if test $ac_lo -le $ac_mid; then
2058                           ac_lo= ac_hi=
2059                           break
2060                         fi
2061                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064   done
2065 else
2066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h.  */
2068 $4
2069 int
2070 main ()
2071 {
2072 static int test_array [1 - 2 * !(($2) < 0)];
2073 test_array [0] = 0
2074
2075   ;
2076   return 0;
2077 }
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080   ac_hi=-1 ac_mid=-1
2081   while :; do
2082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h.  */
2084 $4
2085 int
2086 main ()
2087 {
2088 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2089 test_array [0] = 0
2090
2091   ;
2092   return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096   ac_lo=$ac_mid; break
2097 else
2098   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2099                         if test $ac_mid -le $ac_hi; then
2100                           ac_lo= ac_hi=
2101                           break
2102                         fi
2103                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2104 fi
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106   done
2107 else
2108   ac_lo= ac_hi=
2109 fi
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 # Binary search between lo and hi bounds.
2114 while test "x$ac_lo" != "x$ac_hi"; do
2115   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h.  */
2118 $4
2119 int
2120 main ()
2121 {
2122 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2123 test_array [0] = 0
2124
2125   ;
2126   return 0;
2127 }
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130   ac_hi=$ac_mid
2131 else
2132   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2133 fi
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 done
2136 case $ac_lo in #((
2137 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2138 '') ac_retval=1 ;;
2139 esac
2140   else
2141     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h.  */
2143 $4
2144 static long int longval () { return $2; }
2145 static unsigned long int ulongval () { return $2; }
2146 #include <stdio.h>
2147 #include <stdlib.h>
2148 int
2149 main ()
2150 {
2151
2152   FILE *f = fopen ("conftest.val", "w");
2153   if (! f)
2154     return 1;
2155   if (($2) < 0)
2156     {
2157       long int i = longval ();
2158       if (i != ($2))
2159         return 1;
2160       fprintf (f, "%ld", i);
2161     }
2162   else
2163     {
2164       unsigned long int i = ulongval ();
2165       if (i != ($2))
2166         return 1;
2167       fprintf (f, "%lu", i);
2168     }
2169   /* Do not output a trailing newline, as this causes \r\n confusion
2170      on some platforms.  */
2171   return ferror (f) || fclose (f) != 0;
2172
2173   ;
2174   return 0;
2175 }
2176 _ACEOF
2177 if ac_fn_c_try_run "$LINENO"; then :
2178   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2179 else
2180   ac_retval=1
2181 fi
2182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2183   conftest.$ac_objext conftest.beam conftest.$ac_ext
2184 rm -f conftest.val
2185
2186   fi
2187   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2188   return $ac_retval
2189
2190 } # ac_fn_c_compute_int
2191
2192 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2193 # -------------------------------------------------------
2194 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2195 # the include files in INCLUDES and setting the cache variable VAR
2196 # accordingly.
2197 ac_fn_c_check_header_mongrel ()
2198 {
2199   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2202 $as_echo_n "checking for $2... " >&6; }
2203 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2204   $as_echo_n "(cached) " >&6
2205 fi
2206 eval ac_res=\$$3
2207                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208 $as_echo "$ac_res" >&6; }
2209 else
2210   # Is the header compilable?
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2212 $as_echo_n "checking $2 usability... " >&6; }
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h.  */
2215 $4
2216 #include <$2>
2217 _ACEOF
2218 if ac_fn_c_try_compile "$LINENO"; then :
2219   ac_header_compiler=yes
2220 else
2221   ac_header_compiler=no
2222 fi
2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2225 $as_echo "$ac_header_compiler" >&6; }
2226
2227 # Is the header present?
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2229 $as_echo_n "checking $2 presence... " >&6; }
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h.  */
2232 #include <$2>
2233 _ACEOF
2234 if ac_fn_c_try_cpp "$LINENO"; then :
2235   ac_header_preproc=yes
2236 else
2237   ac_header_preproc=no
2238 fi
2239 rm -f conftest.err conftest.$ac_ext
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2241 $as_echo "$ac_header_preproc" >&6; }
2242
2243 # So?  What about this header?
2244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2245   yes:no: )
2246     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2247 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2248     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2249 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2250     ;;
2251   no:yes:* )
2252     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2253 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2254     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2255 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2256     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2257 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2258     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2259 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2260     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2261 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2262     ;;
2263 esac
2264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2265 $as_echo_n "checking for $2... " >&6; }
2266 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2267   $as_echo_n "(cached) " >&6
2268 else
2269   eval "$3=\$ac_header_compiler"
2270 fi
2271 eval ac_res=\$$3
2272                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 fi
2275   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2276
2277 } # ac_fn_c_check_header_mongrel
2278 cat >config.log <<_ACEOF
2279 This file contains any messages produced by compilers while
2280 running configure, to aid debugging if configure makes a mistake.
2281
2282 It was created by liboil $as_me 0.3.17, which was
2283 generated by GNU Autoconf 2.64.  Invocation command line was
2284
2285   $ $0 $@
2286
2287 _ACEOF
2288 exec 5>>config.log
2289 {
2290 cat <<_ASUNAME
2291 ## --------- ##
2292 ## Platform. ##
2293 ## --------- ##
2294
2295 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2296 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2297 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2298 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2299 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2300
2301 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2302 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2303
2304 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2305 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2306 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2307 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2308 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2309 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2310 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2311
2312 _ASUNAME
2313
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2316 do
2317   IFS=$as_save_IFS
2318   test -z "$as_dir" && as_dir=.
2319     $as_echo "PATH: $as_dir"
2320   done
2321 IFS=$as_save_IFS
2322
2323 } >&5
2324
2325 cat >&5 <<_ACEOF
2326
2327
2328 ## ----------- ##
2329 ## Core tests. ##
2330 ## ----------- ##
2331
2332 _ACEOF
2333
2334
2335 # Keep a trace of the command line.
2336 # Strip out --no-create and --no-recursion so they do not pile up.
2337 # Strip out --silent because we don't want to record it for future runs.
2338 # Also quote any args containing shell meta-characters.
2339 # Make two passes to allow for proper duplicate-argument suppression.
2340 ac_configure_args=
2341 ac_configure_args0=
2342 ac_configure_args1=
2343 ac_must_keep_next=false
2344 for ac_pass in 1 2
2345 do
2346   for ac_arg
2347   do
2348     case $ac_arg in
2349     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2350     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2351     | -silent | --silent | --silen | --sile | --sil)
2352       continue ;;
2353     *\'*)
2354       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2355     esac
2356     case $ac_pass in
2357     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2358     2)
2359       as_fn_append ac_configure_args1 " '$ac_arg'"
2360       if test $ac_must_keep_next = true; then
2361         ac_must_keep_next=false # Got value, back to normal.
2362       else
2363         case $ac_arg in
2364           *=* | --config-cache | -C | -disable-* | --disable-* \
2365           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2366           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2367           | -with-* | --with-* | -without-* | --without-* | --x)
2368             case "$ac_configure_args0 " in
2369               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2370             esac
2371             ;;
2372           -* ) ac_must_keep_next=true ;;
2373         esac
2374       fi
2375       as_fn_append ac_configure_args " '$ac_arg'"
2376       ;;
2377     esac
2378   done
2379 done
2380 { ac_configure_args0=; unset ac_configure_args0;}
2381 { ac_configure_args1=; unset ac_configure_args1;}
2382
2383 # When interrupted or exit'd, cleanup temporary files, and complete
2384 # config.log.  We remove comments because anyway the quotes in there
2385 # would cause problems or look ugly.
2386 # WARNING: Use '\'' to represent an apostrophe within the trap.
2387 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2388 trap 'exit_status=$?
2389   # Save into config.log some information that might help in debugging.
2390   {
2391     echo
2392
2393     cat <<\_ASBOX
2394 ## ---------------- ##
2395 ## Cache variables. ##
2396 ## ---------------- ##
2397 _ASBOX
2398     echo
2399     # The following way of writing the cache mishandles newlines in values,
2400 (
2401   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2402     eval ac_val=\$$ac_var
2403     case $ac_val in #(
2404     *${as_nl}*)
2405       case $ac_var in #(
2406       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2407 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2408       esac
2409       case $ac_var in #(
2410       _ | IFS | as_nl) ;; #(
2411       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2412       *) { eval $ac_var=; unset $ac_var;} ;;
2413       esac ;;
2414     esac
2415   done
2416   (set) 2>&1 |
2417     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2418     *${as_nl}ac_space=\ *)
2419       sed -n \
2420         "s/'\''/'\''\\\\'\'''\''/g;
2421           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2422       ;; #(
2423     *)
2424       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2425       ;;
2426     esac |
2427     sort
2428 )
2429     echo
2430
2431     cat <<\_ASBOX
2432 ## ----------------- ##
2433 ## Output variables. ##
2434 ## ----------------- ##
2435 _ASBOX
2436     echo
2437     for ac_var in $ac_subst_vars
2438     do
2439       eval ac_val=\$$ac_var
2440       case $ac_val in
2441       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442       esac
2443       $as_echo "$ac_var='\''$ac_val'\''"
2444     done | sort
2445     echo
2446
2447     if test -n "$ac_subst_files"; then
2448       cat <<\_ASBOX
2449 ## ------------------- ##
2450 ## File substitutions. ##
2451 ## ------------------- ##
2452 _ASBOX
2453       echo
2454       for ac_var in $ac_subst_files
2455       do
2456         eval ac_val=\$$ac_var
2457         case $ac_val in
2458         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2459         esac
2460         $as_echo "$ac_var='\''$ac_val'\''"
2461       done | sort
2462       echo
2463     fi
2464
2465     if test -s confdefs.h; then
2466       cat <<\_ASBOX
2467 ## ----------- ##
2468 ## confdefs.h. ##
2469 ## ----------- ##
2470 _ASBOX
2471       echo
2472       cat confdefs.h
2473       echo
2474     fi
2475     test "$ac_signal" != 0 &&
2476       $as_echo "$as_me: caught signal $ac_signal"
2477     $as_echo "$as_me: exit $exit_status"
2478   } >&5
2479   rm -f core *.core core.conftest.* &&
2480     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2481     exit $exit_status
2482 ' 0
2483 for ac_signal in 1 2 13 15; do
2484   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2485 done
2486 ac_signal=0
2487
2488 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2489 rm -f -r conftest* confdefs.h
2490
2491 $as_echo "/* confdefs.h */" > confdefs.h
2492
2493 # Predefined preprocessor variables.
2494
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_NAME "$PACKAGE_NAME"
2497 _ACEOF
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2501 _ACEOF
2502
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2505 _ACEOF
2506
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_STRING "$PACKAGE_STRING"
2509 _ACEOF
2510
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2513 _ACEOF
2514
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_URL "$PACKAGE_URL"
2517 _ACEOF
2518
2519
2520 # Let the site file select an alternate cache file if it wants to.
2521 # Prefer an explicitly selected file to automatically selected ones.
2522 ac_site_file1=NONE
2523 ac_site_file2=NONE
2524 if test -n "$CONFIG_SITE"; then
2525   ac_site_file1=$CONFIG_SITE
2526 elif test "x$prefix" != xNONE; then
2527   ac_site_file1=$prefix/share/config.site
2528   ac_site_file2=$prefix/etc/config.site
2529 else
2530   ac_site_file1=$ac_default_prefix/share/config.site
2531   ac_site_file2=$ac_default_prefix/etc/config.site
2532 fi
2533 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2534 do
2535   test "x$ac_site_file" = xNONE && continue
2536   if test -r "$ac_site_file"; then
2537     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2538 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2539     sed 's/^/| /' "$ac_site_file" >&5
2540     . "$ac_site_file"
2541   fi
2542 done
2543
2544 if test -r "$cache_file"; then
2545   # Some versions of bash will fail to source /dev/null (special
2546   # files actually), so we avoid doing that.
2547   if test -f "$cache_file"; then
2548     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2549 $as_echo "$as_me: loading cache $cache_file" >&6;}
2550     case $cache_file in
2551       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2552       *)                      . "./$cache_file";;
2553     esac
2554   fi
2555 else
2556   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2557 $as_echo "$as_me: creating cache $cache_file" >&6;}
2558   >$cache_file
2559 fi
2560
2561 # Check that the precious variables saved in the cache have kept the same
2562 # value.
2563 ac_cache_corrupted=false
2564 for ac_var in $ac_precious_vars; do
2565   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2566   eval ac_new_set=\$ac_env_${ac_var}_set
2567   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2568   eval ac_new_val=\$ac_env_${ac_var}_value
2569   case $ac_old_set,$ac_new_set in
2570     set,)
2571       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2572 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2573       ac_cache_corrupted=: ;;
2574     ,set)
2575       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2576 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2577       ac_cache_corrupted=: ;;
2578     ,);;
2579     *)
2580       if test "x$ac_old_val" != "x$ac_new_val"; then
2581         # differences in whitespace do not lead to failure.
2582         ac_old_val_w=`echo x $ac_old_val`
2583         ac_new_val_w=`echo x $ac_new_val`
2584         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2585           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2586 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2587           ac_cache_corrupted=:
2588         else
2589           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2590 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2591           eval $ac_var=\$ac_old_val
2592         fi
2593         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2594 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2595         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2596 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2597       fi;;
2598   esac
2599   # Pass precious variables to config.status.
2600   if test "$ac_new_set" = set; then
2601     case $ac_new_val in
2602     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2603     *) ac_arg=$ac_var=$ac_new_val ;;
2604     esac
2605     case " $ac_configure_args " in
2606       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2607       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2608     esac
2609   fi
2610 done
2611 if $ac_cache_corrupted; then
2612   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2614   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2615 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2616   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2617 fi
2618 ## -------------------- ##
2619 ## Main body of script. ##
2620 ## -------------------- ##
2621
2622 ac_ext=c
2623 ac_cpp='$CPP $CPPFLAGS'
2624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2627
2628
2629
2630
2631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking nano version" >&5
2632 $as_echo_n "checking nano version... " >&6; }
2633
2634   NANO=$(echo 0.3.17 | sed 's/[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.*//')
2635
2636
2637   if test x"$NANO" = x || test "x$NANO" = "x0" ; then
2638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0 (release)" >&5
2639 $as_echo "0 (release)" >&6; }
2640     NANO=0
2641     LIBOIL_CVS=no
2642   else
2643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NANO" >&5
2644 $as_echo "$NANO" >&6; }
2645     LIBOIL_CVS=yes
2646   fi
2647
2648
2649 ac_aux_dir=
2650 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2651   for ac_t in install-sh install.sh shtool; do
2652     if test -f "$ac_dir/$ac_t"; then
2653       ac_aux_dir=$ac_dir
2654       ac_install_sh="$ac_aux_dir/$ac_t -c"
2655       break 2
2656     fi
2657   done
2658 done
2659 if test -z "$ac_aux_dir"; then
2660   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2661 fi
2662
2663 # These three variables are undocumented and unsupported,
2664 # and are intended to be withdrawn in a future Autoconf release.
2665 # They can cause serious problems if a builder's source tree is in a directory
2666 # whose full name contains unusual characters.
2667 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2668 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2669 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2670
2671
2672 # Make sure we can run config.sub.
2673 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2674   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2675
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2677 $as_echo_n "checking build system type... " >&6; }
2678 if test "${ac_cv_build+set}" = set; then :
2679   $as_echo_n "(cached) " >&6
2680 else
2681   ac_build_alias=$build_alias
2682 test "x$ac_build_alias" = x &&
2683   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2684 test "x$ac_build_alias" = x &&
2685   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2686 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2687   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2688
2689 fi
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2691 $as_echo "$ac_cv_build" >&6; }
2692 case $ac_cv_build in
2693 *-*-*) ;;
2694 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2695 esac
2696 build=$ac_cv_build
2697 ac_save_IFS=$IFS; IFS='-'
2698 set x $ac_cv_build
2699 shift
2700 build_cpu=$1
2701 build_vendor=$2
2702 shift; shift
2703 # Remember, the first character of IFS is used to create $*,
2704 # except with old shells:
2705 build_os=$*
2706 IFS=$ac_save_IFS
2707 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2708
2709
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2711 $as_echo_n "checking host system type... " >&6; }
2712 if test "${ac_cv_host+set}" = set; then :
2713   $as_echo_n "(cached) " >&6
2714 else
2715   if test "x$host_alias" = x; then
2716   ac_cv_host=$ac_cv_build
2717 else
2718   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2719     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2720 fi
2721
2722 fi
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2724 $as_echo "$ac_cv_host" >&6; }
2725 case $ac_cv_host in
2726 *-*-*) ;;
2727 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2728 esac
2729 host=$ac_cv_host
2730 ac_save_IFS=$IFS; IFS='-'
2731 set x $ac_cv_host
2732 shift
2733 host_cpu=$1
2734 host_vendor=$2
2735 shift; shift
2736 # Remember, the first character of IFS is used to create $*,
2737 # except with old shells:
2738 host_os=$*
2739 IFS=$ac_save_IFS
2740 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2741
2742
2743 am__api_version='1.11'
2744
2745 # Find a good install program.  We prefer a C program (faster),
2746 # so one script is as good as another.  But avoid the broken or
2747 # incompatible versions:
2748 # SysV /etc/install, /usr/sbin/install
2749 # SunOS /usr/etc/install
2750 # IRIX /sbin/install
2751 # AIX /bin/install
2752 # AmigaOS /C/install, which installs bootblocks on floppy discs
2753 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2754 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2755 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2756 # OS/2's system install, which has a completely different semantic
2757 # ./install, which can be erroneously created by make from ./install.sh.
2758 # Reject install programs that cannot install multiple files.
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2760 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2761 if test -z "$INSTALL"; then
2762 if test "${ac_cv_path_install+set}" = set; then :
2763   $as_echo_n "(cached) " >&6
2764 else
2765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768   IFS=$as_save_IFS
2769   test -z "$as_dir" && as_dir=.
2770     # Account for people who put trailing slashes in PATH elements.
2771 case $as_dir/ in #((
2772   ./ | .// | /[cC]/* | \
2773   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2774   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2775   /usr/ucb/* ) ;;
2776   *)
2777     # OSF1 and SCO ODT 3.0 have their own names for install.
2778     # Don't use installbsd from OSF since it installs stuff as root
2779     # by default.
2780     for ac_prog in ginstall scoinst install; do
2781       for ac_exec_ext in '' $ac_executable_extensions; do
2782         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2783           if test $ac_prog = install &&
2784             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2785             # AIX install.  It has an incompatible calling convention.
2786             :
2787           elif test $ac_prog = install &&
2788             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2789             # program-specific install script used by HP pwplus--don't use.
2790             :
2791           else
2792             rm -rf conftest.one conftest.two conftest.dir
2793             echo one > conftest.one
2794             echo two > conftest.two
2795             mkdir conftest.dir
2796             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2797               test -s conftest.one && test -s conftest.two &&
2798               test -s conftest.dir/conftest.one &&
2799               test -s conftest.dir/conftest.two
2800             then
2801               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2802               break 3
2803             fi
2804           fi
2805         fi
2806       done
2807     done
2808     ;;
2809 esac
2810
2811   done
2812 IFS=$as_save_IFS
2813
2814 rm -rf conftest.one conftest.two conftest.dir
2815
2816 fi
2817   if test "${ac_cv_path_install+set}" = set; then
2818     INSTALL=$ac_cv_path_install
2819   else
2820     # As a last resort, use the slow shell script.  Don't cache a
2821     # value for INSTALL within a source directory, because that will
2822     # break other packages using the cache if that directory is
2823     # removed, or if the value is a relative name.
2824     INSTALL=$ac_install_sh
2825   fi
2826 fi
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2828 $as_echo "$INSTALL" >&6; }
2829
2830 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2831 # It thinks the first close brace ends the variable substitution.
2832 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2833
2834 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2835
2836 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2837
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2839 $as_echo_n "checking whether build environment is sane... " >&6; }
2840 # Just in case
2841 sleep 1
2842 echo timestamp > conftest.file
2843 # Reject unsafe characters in $srcdir or the absolute working directory
2844 # name.  Accept space and tab only in the latter.
2845 am_lf='
2846 '
2847 case `pwd` in
2848   *[\\\"\#\$\&\'\`$am_lf]*)
2849     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2850 esac
2851 case $srcdir in
2852   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2853     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2854 esac
2855
2856 # Do `set' in a subshell so we don't clobber the current shell's
2857 # arguments.  Must try -L first in case configure is actually a
2858 # symlink; some systems play weird games with the mod time of symlinks
2859 # (eg FreeBSD returns the mod time of the symlink's containing
2860 # directory).
2861 if (
2862    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2863    if test "$*" = "X"; then
2864       # -L didn't work.
2865       set X `ls -t "$srcdir/configure" conftest.file`
2866    fi
2867    rm -f conftest.file
2868    if test "$*" != "X $srcdir/configure conftest.file" \
2869       && test "$*" != "X conftest.file $srcdir/configure"; then
2870
2871       # If neither matched, then we have a broken ls.  This can happen
2872       # if, for instance, CONFIG_SHELL is bash and it inherits a
2873       # broken ls alias from the environment.  This has actually
2874       # happened.  Such a system could not be considered "sane".
2875       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2876 alias in your environment" "$LINENO" 5
2877    fi
2878
2879    test "$2" = conftest.file
2880    )
2881 then
2882    # Ok.
2883    :
2884 else
2885    as_fn_error "newly created file is older than distributed files!
2886 Check your system clock" "$LINENO" 5
2887 fi
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2889 $as_echo "yes" >&6; }
2890 test "$program_prefix" != NONE &&
2891   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2892 # Use a double $ so make ignores it.
2893 test "$program_suffix" != NONE &&
2894   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2895 # Double any \ or $.
2896 # By default was `s,x,x', remove it if useless.
2897 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2898 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2899
2900 # expand $ac_aux_dir to an absolute path
2901 am_aux_dir=`cd $ac_aux_dir && pwd`
2902
2903 if test x"${MISSING+set}" != xset; then
2904   case $am_aux_dir in
2905   *\ * | *\     *)
2906     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2907   *)
2908     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2909   esac
2910 fi
2911 # Use eval to expand $SHELL
2912 if eval "$MISSING --run true"; then
2913   am_missing_run="$MISSING --run "
2914 else
2915   am_missing_run=
2916   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2917 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2918 fi
2919
2920 if test x"${install_sh}" != xset; then
2921   case $am_aux_dir in
2922   *\ * | *\     *)
2923     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2924   *)
2925     install_sh="\${SHELL} $am_aux_dir/install-sh"
2926   esac
2927 fi
2928
2929 # Installed binaries are usually stripped using `strip' when the user
2930 # run `make install-strip'.  However `strip' might not be the right
2931 # tool to use in cross-compilation environments, therefore Automake
2932 # will honor the `STRIP' environment variable to overrule this program.
2933 if test "$cross_compiling" != no; then
2934   if test -n "$ac_tool_prefix"; then
2935   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2936 set dummy ${ac_tool_prefix}strip; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if test "${ac_cv_prog_STRIP+set}" = set; then :
2940   $as_echo_n "(cached) " >&6
2941 else
2942   if test -n "$STRIP"; then
2943   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948   IFS=$as_save_IFS
2949   test -z "$as_dir" && as_dir=.
2950     for ac_exec_ext in '' $ac_executable_extensions; do
2951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954     break 2
2955   fi
2956 done
2957   done
2958 IFS=$as_save_IFS
2959
2960 fi
2961 fi
2962 STRIP=$ac_cv_prog_STRIP
2963 if test -n "$STRIP"; then
2964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2965 $as_echo "$STRIP" >&6; }
2966 else
2967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2969 fi
2970
2971
2972 fi
2973 if test -z "$ac_cv_prog_STRIP"; then
2974   ac_ct_STRIP=$STRIP
2975   # Extract the first word of "strip", so it can be a program name with args.
2976 set dummy strip; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2980   $as_echo_n "(cached) " >&6
2981 else
2982   if test -n "$ac_ct_STRIP"; then
2983   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988   IFS=$as_save_IFS
2989   test -z "$as_dir" && as_dir=.
2990     for ac_exec_ext in '' $ac_executable_extensions; do
2991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992     ac_cv_prog_ac_ct_STRIP="strip"
2993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994     break 2
2995   fi
2996 done
2997   done
2998 IFS=$as_save_IFS
2999
3000 fi
3001 fi
3002 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3003 if test -n "$ac_ct_STRIP"; then
3004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3005 $as_echo "$ac_ct_STRIP" >&6; }
3006 else
3007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3009 fi
3010
3011   if test "x$ac_ct_STRIP" = x; then
3012     STRIP=":"
3013   else
3014     case $cross_compiling:$ac_tool_warned in
3015 yes:)
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3018 ac_tool_warned=yes ;;
3019 esac
3020     STRIP=$ac_ct_STRIP
3021   fi
3022 else
3023   STRIP="$ac_cv_prog_STRIP"
3024 fi
3025
3026 fi
3027 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3028
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3030 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3031 if test -z "$MKDIR_P"; then
3032   if test "${ac_cv_path_mkdir+set}" = set; then :
3033   $as_echo_n "(cached) " >&6
3034 else
3035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3037 do
3038   IFS=$as_save_IFS
3039   test -z "$as_dir" && as_dir=.
3040     for ac_prog in mkdir gmkdir; do
3041          for ac_exec_ext in '' $ac_executable_extensions; do
3042            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3043            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3044              'mkdir (GNU coreutils) '* | \
3045              'mkdir (coreutils) '* | \
3046              'mkdir (fileutils) '4.1*)
3047                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3048                break 3;;
3049            esac
3050          done
3051        done
3052   done
3053 IFS=$as_save_IFS
3054
3055 fi
3056
3057   if test "${ac_cv_path_mkdir+set}" = set; then
3058     MKDIR_P="$ac_cv_path_mkdir -p"
3059   else
3060     # As a last resort, use the slow shell script.  Don't cache a
3061     # value for MKDIR_P within a source directory, because that will
3062     # break other packages using the cache if that directory is
3063     # removed, or if the value is a relative name.
3064     test -d ./--version && rmdir ./--version
3065     MKDIR_P="$ac_install_sh -d"
3066   fi
3067 fi
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3069 $as_echo "$MKDIR_P" >&6; }
3070
3071 mkdir_p="$MKDIR_P"
3072 case $mkdir_p in
3073   [\\/$]* | ?:[\\/]*) ;;
3074   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3075 esac
3076
3077 for ac_prog in gawk mawk nawk awk
3078 do
3079   # Extract the first word of "$ac_prog", so it can be a program name with args.
3080 set dummy $ac_prog; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if test "${ac_cv_prog_AWK+set}" = set; then :
3084   $as_echo_n "(cached) " >&6
3085 else
3086   if test -n "$AWK"; then
3087   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092   IFS=$as_save_IFS
3093   test -z "$as_dir" && as_dir=.
3094     for ac_exec_ext in '' $ac_executable_extensions; do
3095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096     ac_cv_prog_AWK="$ac_prog"
3097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098     break 2
3099   fi
3100 done
3101   done
3102 IFS=$as_save_IFS
3103
3104 fi
3105 fi
3106 AWK=$ac_cv_prog_AWK
3107 if test -n "$AWK"; then
3108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3109 $as_echo "$AWK" >&6; }
3110 else
3111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3113 fi
3114
3115
3116   test -n "$AWK" && break
3117 done
3118
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3120 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3121 set x ${MAKE-make}
3122 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3123 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3124   $as_echo_n "(cached) " >&6
3125 else
3126   cat >conftest.make <<\_ACEOF
3127 SHELL = /bin/sh
3128 all:
3129         @echo '@@@%%%=$(MAKE)=@@@%%%'
3130 _ACEOF
3131 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3132 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3133   *@@@%%%=?*=@@@%%%*)
3134     eval ac_cv_prog_make_${ac_make}_set=yes;;
3135   *)
3136     eval ac_cv_prog_make_${ac_make}_set=no;;
3137 esac
3138 rm -f conftest.make
3139 fi
3140 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3142 $as_echo "yes" >&6; }
3143   SET_MAKE=
3144 else
3145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3147   SET_MAKE="MAKE=${MAKE-make}"
3148 fi
3149
3150 rm -rf .tst 2>/dev/null
3151 mkdir .tst 2>/dev/null
3152 if test -d .tst; then
3153   am__leading_dot=.
3154 else
3155   am__leading_dot=_
3156 fi
3157 rmdir .tst 2>/dev/null
3158
3159 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3160   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3161   # is not polluted with repeated "-I."
3162   am__isrc=' -I$(srcdir)'
3163   # test to see if srcdir already configured
3164   if test -f $srcdir/config.status; then
3165     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3166   fi
3167 fi
3168
3169 # test whether we have cygpath
3170 if test -z "$CYGPATH_W"; then
3171   if (cygpath --version) >/dev/null 2>/dev/null; then
3172     CYGPATH_W='cygpath -w'
3173   else
3174     CYGPATH_W=echo
3175   fi
3176 fi
3177
3178
3179 # Define the identity of the package.
3180  PACKAGE='liboil'
3181  VERSION='0.3.17'
3182
3183
3184 cat >>confdefs.h <<_ACEOF
3185 #define PACKAGE "$PACKAGE"
3186 _ACEOF
3187
3188
3189 cat >>confdefs.h <<_ACEOF
3190 #define VERSION "$VERSION"
3191 _ACEOF
3192
3193 # Some tools Automake needs.
3194
3195 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3196
3197
3198 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3199
3200
3201 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3202
3203
3204 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3205
3206
3207 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3208
3209 # We need awk for the "check" target.  The system "awk" is bad on
3210 # some platforms.
3211 # Always define AMTAR for backward compatibility.
3212
3213 AMTAR=${AMTAR-"${am_missing_run}tar"}
3214
3215 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3216
3217
3218
3219
3220
3221
3222
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3224 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3225     # Check whether --enable-maintainer-mode was given.
3226 if test "${enable_maintainer_mode+set}" = set; then :
3227   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3228 else
3229   USE_MAINTAINER_MODE=no
3230 fi
3231
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3233 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3234    if test $USE_MAINTAINER_MODE = yes; then
3235   MAINTAINER_MODE_TRUE=
3236   MAINTAINER_MODE_FALSE='#'
3237 else
3238   MAINTAINER_MODE_TRUE='#'
3239   MAINTAINER_MODE_FALSE=
3240 fi
3241
3242   MAINT=$MAINTAINER_MODE_TRUE
3243
3244
3245
3246 #LIBOIL_MAJORMINOR=0.3
3247 #AC_SUBST(LIBOIL_MAJORMINOR)
3248
3249 ac_config_headers="$ac_config_headers config.h"
3250
3251
3252 LIBOIL_LIBVERSION="3:0:3"
3253
3254 enable_win32_dll=yes
3255
3256 case $host in
3257 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3258   if test -n "$ac_tool_prefix"; then
3259   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3260 set dummy ${ac_tool_prefix}as; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if test "${ac_cv_prog_AS+set}" = set; then :
3264   $as_echo_n "(cached) " >&6
3265 else
3266   if test -n "$AS"; then
3267   ac_cv_prog_AS="$AS" # Let the user override the test.
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272   IFS=$as_save_IFS
3273   test -z "$as_dir" && as_dir=.
3274     for ac_exec_ext in '' $ac_executable_extensions; do
3275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276     ac_cv_prog_AS="${ac_tool_prefix}as"
3277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278     break 2
3279   fi
3280 done
3281   done
3282 IFS=$as_save_IFS
3283
3284 fi
3285 fi
3286 AS=$ac_cv_prog_AS
3287 if test -n "$AS"; then
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3289 $as_echo "$AS" >&6; }
3290 else
3291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 fi
3294
3295
3296 fi
3297 if test -z "$ac_cv_prog_AS"; then
3298   ac_ct_AS=$AS
3299   # Extract the first word of "as", so it can be a program name with args.
3300 set dummy as; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3304   $as_echo_n "(cached) " >&6
3305 else
3306   if test -n "$ac_ct_AS"; then
3307   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312   IFS=$as_save_IFS
3313   test -z "$as_dir" && as_dir=.
3314     for ac_exec_ext in '' $ac_executable_extensions; do
3315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316     ac_cv_prog_ac_ct_AS="as"
3317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318     break 2
3319   fi
3320 done
3321   done
3322 IFS=$as_save_IFS
3323
3324 fi
3325 fi
3326 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3327 if test -n "$ac_ct_AS"; then
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3329 $as_echo "$ac_ct_AS" >&6; }
3330 else
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335   if test "x$ac_ct_AS" = x; then
3336     AS="false"
3337   else
3338     case $cross_compiling:$ac_tool_warned in
3339 yes:)
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3342 ac_tool_warned=yes ;;
3343 esac
3344     AS=$ac_ct_AS
3345   fi
3346 else
3347   AS="$ac_cv_prog_AS"
3348 fi
3349
3350   if test -n "$ac_tool_prefix"; then
3351   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
3356   $as_echo_n "(cached) " >&6
3357 else
3358   if test -n "$DLLTOOL"; then
3359   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364   IFS=$as_save_IFS
3365   test -z "$as_dir" && as_dir=.
3366     for ac_exec_ext in '' $ac_executable_extensions; do
3367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3368     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370     break 2
3371   fi
3372 done
3373   done
3374 IFS=$as_save_IFS
3375
3376 fi
3377 fi
3378 DLLTOOL=$ac_cv_prog_DLLTOOL
3379 if test -n "$DLLTOOL"; then
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3381 $as_echo "$DLLTOOL" >&6; }
3382 else
3383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 fi
3386
3387
3388 fi
3389 if test -z "$ac_cv_prog_DLLTOOL"; then
3390   ac_ct_DLLTOOL=$DLLTOOL
3391   # Extract the first word of "dlltool", so it can be a program name with args.
3392 set dummy dlltool; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
3396   $as_echo_n "(cached) " >&6
3397 else
3398   if test -n "$ac_ct_DLLTOOL"; then
3399   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404   IFS=$as_save_IFS
3405   test -z "$as_dir" && as_dir=.
3406     for ac_exec_ext in '' $ac_executable_extensions; do
3407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3408     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410     break 2
3411   fi
3412 done
3413   done
3414 IFS=$as_save_IFS
3415
3416 fi
3417 fi
3418 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3419 if test -n "$ac_ct_DLLTOOL"; then
3420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3421 $as_echo "$ac_ct_DLLTOOL" >&6; }
3422 else
3423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 fi
3426
3427   if test "x$ac_ct_DLLTOOL" = x; then
3428     DLLTOOL="false"
3429   else
3430     case $cross_compiling:$ac_tool_warned in
3431 yes:)
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3434 ac_tool_warned=yes ;;
3435 esac
3436     DLLTOOL=$ac_ct_DLLTOOL
3437   fi
3438 else
3439   DLLTOOL="$ac_cv_prog_DLLTOOL"
3440 fi
3441
3442   if test -n "$ac_tool_prefix"; then
3443   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3444 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3446 $as_echo_n "checking for $ac_word... " >&6; }
3447 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
3448   $as_echo_n "(cached) " >&6
3449 else
3450   if test -n "$OBJDUMP"; then
3451   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3452 else
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3455 do
3456   IFS=$as_save_IFS
3457   test -z "$as_dir" && as_dir=.
3458     for ac_exec_ext in '' $ac_executable_extensions; do
3459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3460     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462     break 2
3463   fi
3464 done
3465   done
3466 IFS=$as_save_IFS
3467
3468 fi
3469 fi
3470 OBJDUMP=$ac_cv_prog_OBJDUMP
3471 if test -n "$OBJDUMP"; then
3472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3473 $as_echo "$OBJDUMP" >&6; }
3474 else
3475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 $as_echo "no" >&6; }
3477 fi
3478
3479
3480 fi
3481 if test -z "$ac_cv_prog_OBJDUMP"; then
3482   ac_ct_OBJDUMP=$OBJDUMP
3483   # Extract the first word of "objdump", so it can be a program name with args.
3484 set dummy objdump; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
3488   $as_echo_n "(cached) " >&6
3489 else
3490   if test -n "$ac_ct_OBJDUMP"; then
3491   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3492 else
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3495 do
3496   IFS=$as_save_IFS
3497   test -z "$as_dir" && as_dir=.
3498     for ac_exec_ext in '' $ac_executable_extensions; do
3499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500     ac_cv_prog_ac_ct_OBJDUMP="objdump"
3501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502     break 2
3503   fi
3504 done
3505   done
3506 IFS=$as_save_IFS
3507
3508 fi
3509 fi
3510 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3511 if test -n "$ac_ct_OBJDUMP"; then
3512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
3513 $as_echo "$ac_ct_OBJDUMP" >&6; }
3514 else
3515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3517 fi
3518
3519   if test "x$ac_ct_OBJDUMP" = x; then
3520     OBJDUMP="false"
3521   else
3522     case $cross_compiling:$ac_tool_warned in
3523 yes:)
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3526 ac_tool_warned=yes ;;
3527 esac
3528     OBJDUMP=$ac_ct_OBJDUMP
3529   fi
3530 else
3531   OBJDUMP="$ac_cv_prog_OBJDUMP"
3532 fi
3533
3534   ;;
3535 esac
3536
3537 test -z "$AS" && AS=as
3538
3539
3540
3541
3542
3543 test -z "$DLLTOOL" && DLLTOOL=dlltool
3544
3545
3546
3547
3548
3549 test -z "$OBJDUMP" && OBJDUMP=objdump
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559 case `pwd` in
3560   *\ * | *\     *)
3561     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3562 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3563 esac
3564
3565
3566
3567 macro_version='2.2.6'
3568 macro_revision='1.3012'
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582 ltmain="$ac_aux_dir/ltmain.sh"
3583
3584 DEPDIR="${am__leading_dot}deps"
3585
3586 ac_config_commands="$ac_config_commands depfiles"
3587
3588
3589 am_make=${MAKE-make}
3590 cat > confinc << 'END'
3591 am__doit:
3592         @echo this is the am__doit target
3593 .PHONY: am__doit
3594 END
3595 # If we don't find an include directive, just comment out the code.
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3597 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3598 am__include="#"
3599 am__quote=
3600 _am_result=none
3601 # First try GNU make style include.
3602 echo "include confinc" > confmf
3603 # Ignore all kinds of additional output from `make'.
3604 case `$am_make -s -f confmf 2> /dev/null` in #(
3605 *the\ am__doit\ target*)
3606   am__include=include
3607   am__quote=
3608   _am_result=GNU
3609   ;;
3610 esac
3611 # Now try BSD make style include.
3612 if test "$am__include" = "#"; then
3613    echo '.include "confinc"' > confmf
3614    case `$am_make -s -f confmf 2> /dev/null` in #(
3615    *the\ am__doit\ target*)
3616      am__include=.include
3617      am__quote="\""
3618      _am_result=BSD
3619      ;;
3620    esac
3621 fi
3622
3623
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3625 $as_echo "$_am_result" >&6; }
3626 rm -f confinc confmf
3627
3628 # Check whether --enable-dependency-tracking was given.
3629 if test "${enable_dependency_tracking+set}" = set; then :
3630   enableval=$enable_dependency_tracking;
3631 fi
3632
3633 if test "x$enable_dependency_tracking" != xno; then
3634   am_depcomp="$ac_aux_dir/depcomp"
3635   AMDEPBACKSLASH='\'
3636 fi
3637  if test "x$enable_dependency_tracking" != xno; then
3638   AMDEP_TRUE=
3639   AMDEP_FALSE='#'
3640 else
3641   AMDEP_TRUE='#'
3642   AMDEP_FALSE=
3643 fi
3644
3645
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651 if test -n "$ac_tool_prefix"; then
3652   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3653 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 $as_echo_n "checking for $ac_word... " >&6; }
3656 if test "${ac_cv_prog_CC+set}" = set; then :
3657   $as_echo_n "(cached) " >&6
3658 else
3659   if test -n "$CC"; then
3660   ac_cv_prog_CC="$CC" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3664 do
3665   IFS=$as_save_IFS
3666   test -z "$as_dir" && as_dir=.
3667     for ac_exec_ext in '' $ac_executable_extensions; do
3668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671     break 2
3672   fi
3673 done
3674   done
3675 IFS=$as_save_IFS
3676
3677 fi
3678 fi
3679 CC=$ac_cv_prog_CC
3680 if test -n "$CC"; then
3681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682 $as_echo "$CC" >&6; }
3683 else
3684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3686 fi
3687
3688
3689 fi
3690 if test -z "$ac_cv_prog_CC"; then
3691   ac_ct_CC=$CC
3692   # Extract the first word of "gcc", so it can be a program name with args.
3693 set dummy gcc; ac_word=$2
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 $as_echo_n "checking for $ac_word... " >&6; }
3696 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3697   $as_echo_n "(cached) " >&6
3698 else
3699   if test -n "$ac_ct_CC"; then
3700   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3701 else
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH
3704 do
3705   IFS=$as_save_IFS
3706   test -z "$as_dir" && as_dir=.
3707     for ac_exec_ext in '' $ac_executable_extensions; do
3708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3709     ac_cv_prog_ac_ct_CC="gcc"
3710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711     break 2
3712   fi
3713 done
3714   done
3715 IFS=$as_save_IFS
3716
3717 fi
3718 fi
3719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3720 if test -n "$ac_ct_CC"; then
3721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3722 $as_echo "$ac_ct_CC" >&6; }
3723 else
3724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 $as_echo "no" >&6; }
3726 fi
3727
3728   if test "x$ac_ct_CC" = x; then
3729     CC=""
3730   else
3731     case $cross_compiling:$ac_tool_warned in
3732 yes:)
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3735 ac_tool_warned=yes ;;
3736 esac
3737     CC=$ac_ct_CC
3738   fi
3739 else
3740   CC="$ac_cv_prog_CC"
3741 fi
3742
3743 if test -z "$CC"; then
3744           if test -n "$ac_tool_prefix"; then
3745     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3746 set dummy ${ac_tool_prefix}cc; ac_word=$2
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 $as_echo_n "checking for $ac_word... " >&6; }
3749 if test "${ac_cv_prog_CC+set}" = set; then :
3750   $as_echo_n "(cached) " >&6
3751 else
3752   if test -n "$CC"; then
3753   ac_cv_prog_CC="$CC" # Let the user override the test.
3754 else
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3757 do
3758   IFS=$as_save_IFS
3759   test -z "$as_dir" && as_dir=.
3760     for ac_exec_ext in '' $ac_executable_extensions; do
3761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762     ac_cv_prog_CC="${ac_tool_prefix}cc"
3763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764     break 2
3765   fi
3766 done
3767   done
3768 IFS=$as_save_IFS
3769
3770 fi
3771 fi
3772 CC=$ac_cv_prog_CC
3773 if test -n "$CC"; then
3774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3775 $as_echo "$CC" >&6; }
3776 else
3777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3779 fi
3780
3781
3782   fi
3783 fi
3784 if test -z "$CC"; then
3785   # Extract the first word of "cc", so it can be a program name with args.
3786 set dummy cc; ac_word=$2
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788 $as_echo_n "checking for $ac_word... " >&6; }
3789 if test "${ac_cv_prog_CC+set}" = set; then :
3790   $as_echo_n "(cached) " >&6
3791 else
3792   if test -n "$CC"; then
3793   ac_cv_prog_CC="$CC" # Let the user override the test.
3794 else
3795   ac_prog_rejected=no
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 for as_dir in $PATH
3798 do
3799   IFS=$as_save_IFS
3800   test -z "$as_dir" && as_dir=.
3801     for ac_exec_ext in '' $ac_executable_extensions; do
3802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3803     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3804        ac_prog_rejected=yes
3805        continue
3806      fi
3807     ac_cv_prog_CC="cc"
3808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809     break 2
3810   fi
3811 done
3812   done
3813 IFS=$as_save_IFS
3814
3815 if test $ac_prog_rejected = yes; then
3816   # We found a bogon in the path, so make sure we never use it.
3817   set dummy $ac_cv_prog_CC
3818   shift
3819   if test $# != 0; then
3820     # We chose a different compiler from the bogus one.
3821     # However, it has the same basename, so the bogon will be chosen
3822     # first if we set CC to just the basename; use the full file name.
3823     shift
3824     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3825   fi
3826 fi
3827 fi
3828 fi
3829 CC=$ac_cv_prog_CC
3830 if test -n "$CC"; then
3831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3832 $as_echo "$CC" >&6; }
3833 else
3834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3836 fi
3837
3838
3839 fi
3840 if test -z "$CC"; then
3841   if test -n "$ac_tool_prefix"; then
3842   for ac_prog in cl.exe
3843   do
3844     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3845 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847 $as_echo_n "checking for $ac_word... " >&6; }
3848 if test "${ac_cv_prog_CC+set}" = set; then :
3849   $as_echo_n "(cached) " >&6
3850 else
3851   if test -n "$CC"; then
3852   ac_cv_prog_CC="$CC" # Let the user override the test.
3853 else
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3856 do
3857   IFS=$as_save_IFS
3858   test -z "$as_dir" && as_dir=.
3859     for ac_exec_ext in '' $ac_executable_extensions; do
3860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3861     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863     break 2
3864   fi
3865 done
3866   done
3867 IFS=$as_save_IFS
3868
3869 fi
3870 fi
3871 CC=$ac_cv_prog_CC
3872 if test -n "$CC"; then
3873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3874 $as_echo "$CC" >&6; }
3875 else
3876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877 $as_echo "no" >&6; }
3878 fi
3879
3880
3881     test -n "$CC" && break
3882   done
3883 fi
3884 if test -z "$CC"; then
3885   ac_ct_CC=$CC
3886   for ac_prog in cl.exe
3887 do
3888   # Extract the first word of "$ac_prog", so it can be a program name with args.
3889 set dummy $ac_prog; ac_word=$2
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891 $as_echo_n "checking for $ac_word... " >&6; }
3892 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3893   $as_echo_n "(cached) " >&6
3894 else
3895   if test -n "$ac_ct_CC"; then
3896   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3900 do
3901   IFS=$as_save_IFS
3902   test -z "$as_dir" && as_dir=.
3903     for ac_exec_ext in '' $ac_executable_extensions; do
3904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905     ac_cv_prog_ac_ct_CC="$ac_prog"
3906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907     break 2
3908   fi
3909 done
3910   done
3911 IFS=$as_save_IFS
3912
3913 fi
3914 fi
3915 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3916 if test -n "$ac_ct_CC"; then
3917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3918 $as_echo "$ac_ct_CC" >&6; }
3919 else
3920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921 $as_echo "no" >&6; }
3922 fi
3923
3924
3925   test -n "$ac_ct_CC" && break
3926 done
3927
3928   if test "x$ac_ct_CC" = x; then
3929     CC=""
3930   else
3931     case $cross_compiling:$ac_tool_warned in
3932 yes:)
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3935 ac_tool_warned=yes ;;
3936 esac
3937     CC=$ac_ct_CC
3938   fi
3939 fi
3940
3941 fi
3942
3943
3944 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error "no acceptable C compiler found in \$PATH
3947 See \`config.log' for more details." "$LINENO" 5; }
3948
3949 # Provide some information about the compiler.
3950 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3951 set X $ac_compile
3952 ac_compiler=$2
3953 for ac_option in --version -v -V -qversion; do
3954   { { ac_try="$ac_compiler $ac_option >&5"
3955 case "(($ac_try" in
3956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957   *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3962   ac_status=$?
3963   if test -s conftest.err; then
3964     sed '10a\
3965 ... rest of stderr output deleted ...
3966          10q' conftest.err >conftest.er1
3967     cat conftest.er1 >&5
3968     rm -f conftest.er1 conftest.err
3969   fi
3970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971   test $ac_status = 0; }
3972 done
3973
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h.  */
3976 #include <stdio.h>
3977 int
3978 main ()
3979 {
3980 FILE *f = fopen ("conftest.out", "w");
3981  return ferror (f) || fclose (f) != 0;
3982
3983   ;
3984   return 0;
3985 }
3986 _ACEOF
3987 ac_clean_files_save=$ac_clean_files
3988 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3989 # Try to create an executable without -o first, disregard a.out.
3990 # It will help us diagnose broken compilers, and finding out an intuition
3991 # of exeext.
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3993 $as_echo_n "checking for C compiler default output file name... " >&6; }
3994 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3995
3996 # The possible output files:
3997 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3998
3999 ac_rmfiles=
4000 for ac_file in $ac_files
4001 do
4002   case $ac_file in
4003     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4004     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4005   esac
4006 done
4007 rm -f $ac_rmfiles
4008
4009 if { { ac_try="$ac_link_default"
4010 case "(($ac_try" in
4011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012   *) ac_try_echo=$ac_try;;
4013 esac
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 $as_echo "$ac_try_echo"; } >&5
4016   (eval "$ac_link_default") 2>&5
4017   ac_status=$?
4018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019   test $ac_status = 0; }; then :
4020   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4021 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4022 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4023 # so that the user can short-circuit this test for compilers unknown to
4024 # Autoconf.
4025 for ac_file in $ac_files ''
4026 do
4027   test -f "$ac_file" || continue
4028   case $ac_file in
4029     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4030         ;;
4031     [ab].out )
4032         # We found the default executable, but exeext='' is most
4033         # certainly right.
4034         break;;
4035     *.* )
4036         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4037         then :; else
4038            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4039         fi
4040         # We set ac_cv_exeext here because the later test for it is not
4041         # safe: cross compilers may not add the suffix if given an `-o'
4042         # argument, so we may need to know it at that point already.
4043         # Even if this section looks crufty: it has the advantage of
4044         # actually working.
4045         break;;
4046     * )
4047         break;;
4048   esac
4049 done
4050 test "$ac_cv_exeext" = no && ac_cv_exeext=
4051
4052 else
4053   ac_file=''
4054 fi
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4056 $as_echo "$ac_file" >&6; }
4057 if test -z "$ac_file"; then :
4058   $as_echo "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4060
4061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4063 { as_fn_set_status 77
4064 as_fn_error "C compiler cannot create executables
4065 See \`config.log' for more details." "$LINENO" 5; }; }
4066 fi
4067 ac_exeext=$ac_cv_exeext
4068
4069 # Check that the compiler produces executables we can run.  If not, either
4070 # the compiler is broken, or we cross compile.
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4072 $as_echo_n "checking whether the C compiler works... " >&6; }
4073 # If not cross compiling, check that we can run a simple program.
4074 if test "$cross_compiling" != yes; then
4075   if { ac_try='./$ac_file'
4076   { { case "(($ac_try" in
4077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078   *) ac_try_echo=$ac_try;;
4079 esac
4080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4081 $as_echo "$ac_try_echo"; } >&5
4082   (eval "$ac_try") 2>&5
4083   ac_status=$?
4084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4085   test $ac_status = 0; }; }; then
4086     cross_compiling=no
4087   else
4088     if test "$cross_compiling" = maybe; then
4089         cross_compiling=yes
4090     else
4091         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4093 as_fn_error "cannot run C compiled programs.
4094 If you meant to cross compile, use \`--host'.
4095 See \`config.log' for more details." "$LINENO" 5; }
4096     fi
4097   fi
4098 fi
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4100 $as_echo "yes" >&6; }
4101
4102 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4103 ac_clean_files=$ac_clean_files_save
4104 # Check that the compiler produces executables we can run.  If not, either
4105 # the compiler is broken, or we cross compile.
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4107 $as_echo_n "checking whether we are cross compiling... " >&6; }
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4109 $as_echo "$cross_compiling" >&6; }
4110
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4112 $as_echo_n "checking for suffix of executables... " >&6; }
4113 if { { ac_try="$ac_link"
4114 case "(($ac_try" in
4115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116   *) ac_try_echo=$ac_try;;
4117 esac
4118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4119 $as_echo "$ac_try_echo"; } >&5
4120   (eval "$ac_link") 2>&5
4121   ac_status=$?
4122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4123   test $ac_status = 0; }; then :
4124   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4125 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4126 # work properly (i.e., refer to `conftest.exe'), while it won't with
4127 # `rm'.
4128 for ac_file in conftest.exe conftest conftest.*; do
4129   test -f "$ac_file" || continue
4130   case $ac_file in
4131     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4132     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4133           break;;
4134     * ) break;;
4135   esac
4136 done
4137 else
4138   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4140 as_fn_error "cannot compute suffix of executables: cannot compile and link
4141 See \`config.log' for more details." "$LINENO" 5; }
4142 fi
4143 rm -f conftest$ac_cv_exeext
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4145 $as_echo "$ac_cv_exeext" >&6; }
4146
4147 rm -f conftest.$ac_ext
4148 EXEEXT=$ac_cv_exeext
4149 ac_exeext=$EXEEXT
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4151 $as_echo_n "checking for suffix of object files... " >&6; }
4152 if test "${ac_cv_objext+set}" = set; then :
4153   $as_echo_n "(cached) " >&6
4154 else
4155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h.  */
4157
4158 int
4159 main ()
4160 {
4161
4162   ;
4163   return 0;
4164 }
4165 _ACEOF
4166 rm -f conftest.o conftest.obj
4167 if { { ac_try="$ac_compile"
4168 case "(($ac_try" in
4169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170   *) ac_try_echo=$ac_try;;
4171 esac
4172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4173 $as_echo "$ac_try_echo"; } >&5
4174   (eval "$ac_compile") 2>&5
4175   ac_status=$?
4176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4177   test $ac_status = 0; }; then :
4178   for ac_file in conftest.o conftest.obj conftest.*; do
4179   test -f "$ac_file" || continue;
4180   case $ac_file in
4181     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4182     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4183        break;;
4184   esac
4185 done
4186 else
4187   $as_echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4189
4190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4192 as_fn_error "cannot compute suffix of object files: cannot compile
4193 See \`config.log' for more details." "$LINENO" 5; }
4194 fi
4195 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4196 fi
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4198 $as_echo "$ac_cv_objext" >&6; }
4199 OBJEXT=$ac_cv_objext
4200 ac_objext=$OBJEXT
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4202 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4203 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4204   $as_echo_n "(cached) " >&6
4205 else
4206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h.  */
4208
4209 int
4210 main ()
4211 {
4212 #ifndef __GNUC__
4213        choke me
4214 #endif
4215
4216   ;
4217   return 0;
4218 }
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221   ac_compiler_gnu=yes
4222 else
4223   ac_compiler_gnu=no
4224 fi
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4227
4228 fi
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4230 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4231 if test $ac_compiler_gnu = yes; then
4232   GCC=yes
4233 else
4234   GCC=
4235 fi
4236 ac_test_CFLAGS=${CFLAGS+set}
4237 ac_save_CFLAGS=$CFLAGS
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4239 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4240 if test "${ac_cv_prog_cc_g+set}" = set; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243   ac_save_c_werror_flag=$ac_c_werror_flag
4244    ac_c_werror_flag=yes
4245    ac_cv_prog_cc_g=no
4246    CFLAGS="-g"
4247    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h.  */
4249
4250 int
4251 main ()
4252 {
4253
4254   ;
4255   return 0;
4256 }
4257 _ACEOF
4258 if ac_fn_c_try_compile "$LINENO"; then :
4259   ac_cv_prog_cc_g=yes
4260 else
4261   CFLAGS=""
4262       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h.  */
4264
4265 int
4266 main ()
4267 {
4268
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 if ac_fn_c_try_compile "$LINENO"; then :
4274
4275 else
4276   ac_c_werror_flag=$ac_save_c_werror_flag
4277          CFLAGS="-g"
4278          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h.  */
4280
4281 int
4282 main ()
4283 {
4284
4285   ;
4286   return 0;
4287 }
4288 _ACEOF
4289 if ac_fn_c_try_compile "$LINENO"; then :
4290   ac_cv_prog_cc_g=yes
4291 fi
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293 fi
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295 fi
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297    ac_c_werror_flag=$ac_save_c_werror_flag
4298 fi
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4300 $as_echo "$ac_cv_prog_cc_g" >&6; }
4301 if test "$ac_test_CFLAGS" = set; then
4302   CFLAGS=$ac_save_CFLAGS
4303 elif test $ac_cv_prog_cc_g = yes; then
4304   if test "$GCC" = yes; then
4305     CFLAGS="-g -O2"
4306   else
4307     CFLAGS="-g"
4308   fi
4309 else
4310   if test "$GCC" = yes; then
4311     CFLAGS="-O2"
4312   else
4313     CFLAGS=
4314   fi
4315 fi
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4317 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4318 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4319   $as_echo_n "(cached) " >&6
4320 else
4321   ac_cv_prog_cc_c89=no
4322 ac_save_CC=$CC
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h.  */
4325 #include <stdarg.h>
4326 #include <stdio.h>
4327 #include <sys/types.h>
4328 #include <sys/stat.h>
4329 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4330 struct buf { int x; };
4331 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4332 static char *e (p, i)
4333      char **p;
4334      int i;
4335 {
4336   return p[i];
4337 }
4338 static char *f (char * (*g) (char **, int), char **p, ...)
4339 {
4340   char *s;
4341   va_list v;
4342   va_start (v,p);
4343   s = g (p, va_arg (v,int));
4344   va_end (v);
4345   return s;
4346 }
4347
4348 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4349    function prototypes and stuff, but not '\xHH' hex character constants.
4350    These don't provoke an error unfortunately, instead are silently treated
4351    as 'x'.  The following induces an error, until -std is added to get
4352    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4353    array size at least.  It's necessary to write '\x00'==0 to get something
4354    that's true only with -std.  */
4355 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4356
4357 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4358    inside strings and character constants.  */
4359 #define FOO(x) 'x'
4360 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4361
4362 int test (int i, double x);
4363 struct s1 {int (*f) (int a);};
4364 struct s2 {int (*f) (double a);};
4365 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4366 int argc;
4367 char **argv;
4368 int
4369 main ()
4370 {
4371 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4372   ;
4373   return 0;
4374 }
4375 _ACEOF
4376 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4377         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4378 do
4379   CC="$ac_save_CC $ac_arg"
4380   if ac_fn_c_try_compile "$LINENO"; then :
4381   ac_cv_prog_cc_c89=$ac_arg
4382 fi
4383 rm -f core conftest.err conftest.$ac_objext
4384   test "x$ac_cv_prog_cc_c89" != "xno" && break
4385 done
4386 rm -f conftest.$ac_ext
4387 CC=$ac_save_CC
4388
4389 fi
4390 # AC_CACHE_VAL
4391 case "x$ac_cv_prog_cc_c89" in
4392   x)
4393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4394 $as_echo "none needed" >&6; } ;;
4395   xno)
4396     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4397 $as_echo "unsupported" >&6; } ;;
4398   *)
4399     CC="$CC $ac_cv_prog_cc_c89"
4400     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4401 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4402 esac
4403 if test "x$ac_cv_prog_cc_c89" != xno; then :
4404
4405 fi
4406
4407 ac_ext=c
4408 ac_cpp='$CPP $CPPFLAGS'
4409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412
4413 depcc="$CC"   am_compiler_list=
4414
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4416 $as_echo_n "checking dependency style of $depcc... " >&6; }
4417 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4418   $as_echo_n "(cached) " >&6
4419 else
4420   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4421   # We make a subdir and do the tests there.  Otherwise we can end up
4422   # making bogus files that we don't know about and never remove.  For
4423   # instance it was reported that on HP-UX the gcc test will end up
4424   # making a dummy file named `D' -- because `-MD' means `put the output
4425   # in D'.
4426   mkdir conftest.dir
4427   # Copy depcomp to subdir because otherwise we won't find it if we're
4428   # using a relative directory.
4429   cp "$am_depcomp" conftest.dir
4430   cd conftest.dir
4431   # We will build objects and dependencies in a subdirectory because
4432   # it helps to detect inapplicable dependency modes.  For instance
4433   # both Tru64's cc and ICC support -MD to output dependencies as a
4434   # side effect of compilation, but ICC will put the dependencies in
4435   # the current directory while Tru64 will put them in the object
4436   # directory.
4437   mkdir sub
4438
4439   am_cv_CC_dependencies_compiler_type=none
4440   if test "$am_compiler_list" = ""; then
4441      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4442   fi
4443   am__universal=false
4444   case " $depcc " in #(
4445      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4446      esac
4447
4448   for depmode in $am_compiler_list; do
4449     # Setup a source with many dependencies, because some compilers
4450     # like to wrap large dependency lists on column 80 (with \), and
4451     # we should not choose a depcomp mode which is confused by this.
4452     #
4453     # We need to recreate these files for each test, as the compiler may
4454     # overwrite some of them when testing with obscure command lines.
4455     # This happens at least with the AIX C compiler.
4456     : > sub/conftest.c
4457     for i in 1 2 3 4 5 6; do
4458       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4459       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4460       # Solaris 8's {/usr,}/bin/sh.
4461       touch sub/conftst$i.h
4462     done
4463     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4464
4465     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4466     # mode.  It turns out that the SunPro C++ compiler does not properly
4467     # handle `-M -o', and we need to detect this.  Also, some Intel
4468     # versions had trouble with output in subdirs
4469     am__obj=sub/conftest.${OBJEXT-o}
4470     am__minus_obj="-o $am__obj"
4471     case $depmode in
4472     gcc)
4473       # This depmode causes a compiler race in universal mode.
4474       test "$am__universal" = false || continue
4475       ;;
4476     nosideeffect)
4477       # after this tag, mechanisms are not by side-effect, so they'll
4478       # only be used when explicitly requested
4479       if test "x$enable_dependency_tracking" = xyes; then
4480         continue
4481       else
4482         break
4483       fi
4484       ;;
4485     msvisualcpp | msvcmsys)
4486       # This compiler won't grok `-c -o', but also, the minuso test has
4487       # not run yet.  These depmodes are late enough in the game, and
4488       # so weak that their functioning should not be impacted.
4489       am__obj=conftest.${OBJEXT-o}
4490       am__minus_obj=
4491       ;;
4492     none) break ;;
4493     esac
4494     if depmode=$depmode \
4495        source=sub/conftest.c object=$am__obj \
4496        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4497        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4498          >/dev/null 2>conftest.err &&
4499        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4500        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4501        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4502        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4503       # icc doesn't choke on unknown options, it will just issue warnings
4504       # or remarks (even with -Werror).  So we grep stderr for any message
4505       # that says an option was ignored or not supported.
4506       # When given -MP, icc 7.0 and 7.1 complain thusly:
4507       #   icc: Command line warning: ignoring option '-M'; no argument required
4508       # The diagnosis changed in icc 8.0:
4509       #   icc: Command line remark: option '-MP' not supported
4510       if (grep 'ignoring option' conftest.err ||
4511           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4512         am_cv_CC_dependencies_compiler_type=$depmode
4513         break
4514       fi
4515     fi
4516   done
4517
4518   cd ..
4519   rm -rf conftest.dir
4520 else
4521   am_cv_CC_dependencies_compiler_type=none
4522 fi
4523
4524 fi
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4526 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4527 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4528
4529  if
4530   test "x$enable_dependency_tracking" != xno \
4531   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4532   am__fastdepCC_TRUE=
4533   am__fastdepCC_FALSE='#'
4534 else
4535   am__fastdepCC_TRUE='#'
4536   am__fastdepCC_FALSE=
4537 fi
4538
4539
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4541 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4542 if test "${ac_cv_path_SED+set}" = set; then :
4543   $as_echo_n "(cached) " >&6
4544 else
4545             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4546      for ac_i in 1 2 3 4 5 6 7; do
4547        ac_script="$ac_script$as_nl$ac_script"
4548      done
4549      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4550      { ac_script=; unset ac_script;}
4551      if test -z "$SED"; then
4552   ac_path_SED_found=false
4553   # Loop through the user's path and test for each of PROGNAME-LIST
4554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557   IFS=$as_save_IFS
4558   test -z "$as_dir" && as_dir=.
4559     for ac_prog in sed gsed; do
4560     for ac_exec_ext in '' $ac_executable_extensions; do
4561       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4562       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4563 # Check for GNU ac_path_SED and select it if it is found.
4564   # Check for GNU $ac_path_SED
4565 case `"$ac_path_SED" --version 2>&1` in
4566 *GNU*)
4567   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4568 *)
4569   ac_count=0
4570   $as_echo_n 0123456789 >"conftest.in"
4571   while :
4572   do
4573     cat "conftest.in" "conftest.in" >"conftest.tmp"
4574     mv "conftest.tmp" "conftest.in"
4575     cp "conftest.in" "conftest.nl"
4576     $as_echo '' >> "conftest.nl"
4577     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4578     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4579     as_fn_arith $ac_count + 1 && ac_count=$as_val
4580     if test $ac_count -gt ${ac_path_SED_max-0}; then
4581       # Best one so far, save it but keep looking for a better one
4582       ac_cv_path_SED="$ac_path_SED"
4583       ac_path_SED_max=$ac_count
4584     fi
4585     # 10*(2^10) chars as input seems more than enough
4586     test $ac_count -gt 10 && break
4587   done
4588   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4589 esac
4590
4591       $ac_path_SED_found && break 3
4592     done
4593   done
4594   done
4595 IFS=$as_save_IFS
4596   if test -z "$ac_cv_path_SED"; then
4597     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4598   fi
4599 else
4600   ac_cv_path_SED=$SED
4601 fi
4602
4603 fi
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4605 $as_echo "$ac_cv_path_SED" >&6; }
4606  SED="$ac_cv_path_SED"
4607   rm -f conftest.sed
4608
4609 test -z "$SED" && SED=sed
4610 Xsed="$SED -e 1s/^X//"
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4623 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4624 if test "${ac_cv_path_GREP+set}" = set; then :
4625   $as_echo_n "(cached) " >&6
4626 else
4627   if test -z "$GREP"; then
4628   ac_path_GREP_found=false
4629   # Loop through the user's path and test for each of PROGNAME-LIST
4630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4632 do
4633   IFS=$as_save_IFS
4634   test -z "$as_dir" && as_dir=.
4635     for ac_prog in grep ggrep; do
4636     for ac_exec_ext in '' $ac_executable_extensions; do
4637       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4638       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4639 # Check for GNU ac_path_GREP and select it if it is found.
4640   # Check for GNU $ac_path_GREP
4641 case `"$ac_path_GREP" --version 2>&1` in
4642 *GNU*)
4643   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4644 *)
4645   ac_count=0
4646   $as_echo_n 0123456789 >"conftest.in"
4647   while :
4648   do
4649     cat "conftest.in" "conftest.in" >"conftest.tmp"
4650     mv "conftest.tmp" "conftest.in"
4651     cp "conftest.in" "conftest.nl"
4652     $as_echo 'GREP' >> "conftest.nl"
4653     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4654     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4655     as_fn_arith $ac_count + 1 && ac_count=$as_val
4656     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4657       # Best one so far, save it but keep looking for a better one
4658       ac_cv_path_GREP="$ac_path_GREP"
4659       ac_path_GREP_max=$ac_count
4660     fi
4661     # 10*(2^10) chars as input seems more than enough
4662     test $ac_count -gt 10 && break
4663   done
4664   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4665 esac
4666
4667       $ac_path_GREP_found && break 3
4668     done
4669   done
4670   done
4671 IFS=$as_save_IFS
4672   if test -z "$ac_cv_path_GREP"; then
4673     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4674   fi
4675 else
4676   ac_cv_path_GREP=$GREP
4677 fi
4678
4679 fi
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4681 $as_echo "$ac_cv_path_GREP" >&6; }
4682  GREP="$ac_cv_path_GREP"
4683
4684
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4686 $as_echo_n "checking for egrep... " >&6; }
4687 if test "${ac_cv_path_EGREP+set}" = set; then :
4688   $as_echo_n "(cached) " >&6
4689 else
4690   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4691    then ac_cv_path_EGREP="$GREP -E"
4692    else
4693      if test -z "$EGREP"; then
4694   ac_path_EGREP_found=false
4695   # Loop through the user's path and test for each of PROGNAME-LIST
4696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4698 do
4699   IFS=$as_save_IFS
4700   test -z "$as_dir" && as_dir=.
4701     for ac_prog in egrep; do
4702     for ac_exec_ext in '' $ac_executable_extensions; do
4703       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4704       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4705 # Check for GNU ac_path_EGREP and select it if it is found.
4706   # Check for GNU $ac_path_EGREP
4707 case `"$ac_path_EGREP" --version 2>&1` in
4708 *GNU*)
4709   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4710 *)
4711   ac_count=0
4712   $as_echo_n 0123456789 >"conftest.in"
4713   while :
4714   do
4715     cat "conftest.in" "conftest.in" >"conftest.tmp"
4716     mv "conftest.tmp" "conftest.in"
4717     cp "conftest.in" "conftest.nl"
4718     $as_echo 'EGREP' >> "conftest.nl"
4719     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4720     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4721     as_fn_arith $ac_count + 1 && ac_count=$as_val
4722     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4723       # Best one so far, save it but keep looking for a better one
4724       ac_cv_path_EGREP="$ac_path_EGREP"
4725       ac_path_EGREP_max=$ac_count
4726     fi
4727     # 10*(2^10) chars as input seems more than enough
4728     test $ac_count -gt 10 && break
4729   done
4730   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4731 esac
4732
4733       $ac_path_EGREP_found && break 3
4734     done
4735   done
4736   done
4737 IFS=$as_save_IFS
4738   if test -z "$ac_cv_path_EGREP"; then
4739     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4740   fi
4741 else
4742   ac_cv_path_EGREP=$EGREP
4743 fi
4744
4745    fi
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4748 $as_echo "$ac_cv_path_EGREP" >&6; }
4749  EGREP="$ac_cv_path_EGREP"
4750
4751
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4753 $as_echo_n "checking for fgrep... " >&6; }
4754 if test "${ac_cv_path_FGREP+set}" = set; then :
4755   $as_echo_n "(cached) " >&6
4756 else
4757   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4758    then ac_cv_path_FGREP="$GREP -F"
4759    else
4760      if test -z "$FGREP"; then
4761   ac_path_FGREP_found=false
4762   # Loop through the user's path and test for each of PROGNAME-LIST
4763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4765 do
4766   IFS=$as_save_IFS
4767   test -z "$as_dir" && as_dir=.
4768     for ac_prog in fgrep; do
4769     for ac_exec_ext in '' $ac_executable_extensions; do
4770       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4771       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4772 # Check for GNU ac_path_FGREP and select it if it is found.
4773   # Check for GNU $ac_path_FGREP
4774 case `"$ac_path_FGREP" --version 2>&1` in
4775 *GNU*)
4776   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4777 *)
4778   ac_count=0
4779   $as_echo_n 0123456789 >"conftest.in"
4780   while :
4781   do
4782     cat "conftest.in" "conftest.in" >"conftest.tmp"
4783     mv "conftest.tmp" "conftest.in"
4784     cp "conftest.in" "conftest.nl"
4785     $as_echo 'FGREP' >> "conftest.nl"
4786     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4787     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4788     as_fn_arith $ac_count + 1 && ac_count=$as_val
4789     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4790       # Best one so far, save it but keep looking for a better one
4791       ac_cv_path_FGREP="$ac_path_FGREP"
4792       ac_path_FGREP_max=$ac_count
4793     fi
4794     # 10*(2^10) chars as input seems more than enough
4795     test $ac_count -gt 10 && break
4796   done
4797   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4798 esac
4799
4800       $ac_path_FGREP_found && break 3
4801     done
4802   done
4803   done
4804 IFS=$as_save_IFS
4805   if test -z "$ac_cv_path_FGREP"; then
4806     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4807   fi
4808 else
4809   ac_cv_path_FGREP=$FGREP
4810 fi
4811
4812    fi
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4815 $as_echo "$ac_cv_path_FGREP" >&6; }
4816  FGREP="$ac_cv_path_FGREP"
4817
4818
4819 test -z "$GREP" && GREP=grep
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839 # Check whether --with-gnu-ld was given.
4840 if test "${with_gnu_ld+set}" = set; then :
4841   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4842 else
4843   with_gnu_ld=no
4844 fi
4845
4846 ac_prog=ld
4847 if test "$GCC" = yes; then
4848   # Check if gcc -print-prog-name=ld gives a path.
4849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4850 $as_echo_n "checking for ld used by $CC... " >&6; }
4851   case $host in
4852   *-*-mingw*)
4853     # gcc leaves a trailing carriage return which upsets mingw
4854     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4855   *)
4856     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4857   esac
4858   case $ac_prog in
4859     # Accept absolute paths.
4860     [\\/]* | ?:[\\/]*)
4861       re_direlt='/[^/][^/]*/\.\./'
4862       # Canonicalize the pathname of ld
4863       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4864       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4865         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4866       done
4867       test -z "$LD" && LD="$ac_prog"
4868       ;;
4869   "")
4870     # If it fails, then pretend we aren't using GCC.
4871     ac_prog=ld
4872     ;;
4873   *)
4874     # If it is relative, then search for the first ld in PATH.
4875     with_gnu_ld=unknown
4876     ;;
4877   esac
4878 elif test "$with_gnu_ld" = yes; then
4879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4880 $as_echo_n "checking for GNU ld... " >&6; }
4881 else
4882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4883 $as_echo_n "checking for non-GNU ld... " >&6; }
4884 fi
4885 if test "${lt_cv_path_LD+set}" = set; then :
4886   $as_echo_n "(cached) " >&6
4887 else
4888   if test -z "$LD"; then
4889   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4890   for ac_dir in $PATH; do
4891     IFS="$lt_save_ifs"
4892     test -z "$ac_dir" && ac_dir=.
4893     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4894       lt_cv_path_LD="$ac_dir/$ac_prog"
4895       # Check to see if the program is GNU ld.  I'd rather use --version,
4896       # but apparently some variants of GNU ld only accept -v.
4897       # Break only if it was the GNU/non-GNU ld that we prefer.
4898       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4899       *GNU* | *'with BFD'*)
4900         test "$with_gnu_ld" != no && break
4901         ;;
4902       *)
4903         test "$with_gnu_ld" != yes && break
4904         ;;
4905       esac
4906     fi
4907   done
4908   IFS="$lt_save_ifs"
4909 else
4910   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4911 fi
4912 fi
4913
4914 LD="$lt_cv_path_LD"
4915 if test -n "$LD"; then
4916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4917 $as_echo "$LD" >&6; }
4918 else
4919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920 $as_echo "no" >&6; }
4921 fi
4922 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4924 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4925 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4926   $as_echo_n "(cached) " >&6
4927 else
4928   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4929 case `$LD -v 2>&1 </dev/null` in
4930 *GNU* | *'with BFD'*)
4931   lt_cv_prog_gnu_ld=yes
4932   ;;
4933 *)
4934   lt_cv_prog_gnu_ld=no
4935   ;;
4936 esac
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4939 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4940 with_gnu_ld=$lt_cv_prog_gnu_ld
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4951 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4952 if test "${lt_cv_path_NM+set}" = set; then :
4953   $as_echo_n "(cached) " >&6
4954 else
4955   if test -n "$NM"; then
4956   # Let the user override the test.
4957   lt_cv_path_NM="$NM"
4958 else
4959   lt_nm_to_check="${ac_tool_prefix}nm"
4960   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4961     lt_nm_to_check="$lt_nm_to_check nm"
4962   fi
4963   for lt_tmp_nm in $lt_nm_to_check; do
4964     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4965     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4966       IFS="$lt_save_ifs"
4967       test -z "$ac_dir" && ac_dir=.
4968       tmp_nm="$ac_dir/$lt_tmp_nm"
4969       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4970         # Check to see if the nm accepts a BSD-compat flag.
4971         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4972         #   nm: unknown option "B" ignored
4973         # Tru64's nm complains that /dev/null is an invalid object file
4974         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4975         */dev/null* | *'Invalid file or object type'*)
4976           lt_cv_path_NM="$tmp_nm -B"
4977           break
4978           ;;
4979         *)
4980           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4981           */dev/null*)
4982             lt_cv_path_NM="$tmp_nm -p"
4983             break
4984             ;;
4985           *)
4986             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4987             continue # so that we can try to find one that supports BSD flags
4988             ;;
4989           esac
4990           ;;
4991         esac
4992       fi
4993     done
4994     IFS="$lt_save_ifs"
4995   done
4996   : ${lt_cv_path_NM=no}
4997 fi
4998 fi
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5000 $as_echo "$lt_cv_path_NM" >&6; }
5001 if test "$lt_cv_path_NM" != "no"; then
5002   NM="$lt_cv_path_NM"
5003 else
5004   # Didn't find any BSD compatible name lister, look for dumpbin.
5005   if test -n "$ac_tool_prefix"; then
5006   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5007   do
5008     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5013   $as_echo_n "(cached) " >&6
5014 else
5015   if test -n "$DUMPBIN"; then
5016   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021   IFS=$as_save_IFS
5022   test -z "$as_dir" && as_dir=.
5023     for ac_exec_ext in '' $ac_executable_extensions; do
5024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027     break 2
5028   fi
5029 done
5030   done
5031 IFS=$as_save_IFS
5032
5033 fi
5034 fi
5035 DUMPBIN=$ac_cv_prog_DUMPBIN
5036 if test -n "$DUMPBIN"; then
5037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5038 $as_echo "$DUMPBIN" >&6; }
5039 else
5040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5042 fi
5043
5044
5045     test -n "$DUMPBIN" && break
5046   done
5047 fi
5048 if test -z "$DUMPBIN"; then
5049   ac_ct_DUMPBIN=$DUMPBIN
5050   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5051 do
5052   # Extract the first word of "$ac_prog", so it can be a program name with args.
5053 set dummy $ac_prog; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5057   $as_echo_n "(cached) " >&6
5058 else
5059   if test -n "$ac_ct_DUMPBIN"; then
5060   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5061 else
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5064 do
5065   IFS=$as_save_IFS
5066   test -z "$as_dir" && as_dir=.
5067     for ac_exec_ext in '' $ac_executable_extensions; do
5068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071     break 2
5072   fi
5073 done
5074   done
5075 IFS=$as_save_IFS
5076
5077 fi
5078 fi
5079 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5080 if test -n "$ac_ct_DUMPBIN"; then
5081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5082 $as_echo "$ac_ct_DUMPBIN" >&6; }
5083 else
5084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5086 fi
5087
5088
5089   test -n "$ac_ct_DUMPBIN" && break
5090 done
5091
5092   if test "x$ac_ct_DUMPBIN" = x; then
5093     DUMPBIN=":"
5094   else
5095     case $cross_compiling:$ac_tool_warned in
5096 yes:)
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5099 ac_tool_warned=yes ;;
5100 esac
5101     DUMPBIN=$ac_ct_DUMPBIN
5102   fi
5103 fi
5104
5105
5106   if test "$DUMPBIN" != ":"; then
5107     NM="$DUMPBIN"
5108   fi
5109 fi
5110 test -z "$NM" && NM=nm
5111
5112
5113
5114
5115
5116
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5118 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5119 if test "${lt_cv_nm_interface+set}" = set; then :
5120   $as_echo_n "(cached) " >&6
5121 else
5122   lt_cv_nm_interface="BSD nm"
5123   echo "int some_variable = 0;" > conftest.$ac_ext
5124   (eval echo "\"\$as_me:5124: $ac_compile\"" >&5)
5125   (eval "$ac_compile" 2>conftest.err)
5126   cat conftest.err >&5
5127   (eval echo "\"\$as_me:5127: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5128   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5129   cat conftest.err >&5
5130   (eval echo "\"\$as_me:5130: output\"" >&5)
5131   cat conftest.out >&5
5132   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5133     lt_cv_nm_interface="MS dumpbin"
5134   fi
5135   rm -f conftest*
5136 fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5138 $as_echo "$lt_cv_nm_interface" >&6; }
5139
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5141 $as_echo_n "checking whether ln -s works... " >&6; }
5142 LN_S=$as_ln_s
5143 if test "$LN_S" = "ln -s"; then
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5145 $as_echo "yes" >&6; }
5146 else
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5148 $as_echo "no, using $LN_S" >&6; }
5149 fi
5150
5151 # find the maximum length of command line arguments
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5153 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5154 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5155   $as_echo_n "(cached) " >&6
5156 else
5157     i=0
5158   teststring="ABCD"
5159
5160   case $build_os in
5161   msdosdjgpp*)
5162     # On DJGPP, this test can blow up pretty badly due to problems in libc
5163     # (any single argument exceeding 2000 bytes causes a buffer overrun
5164     # during glob expansion).  Even if it were fixed, the result of this
5165     # check would be larger than it should be.
5166     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5167     ;;
5168
5169   gnu*)
5170     # Under GNU Hurd, this test is not required because there is
5171     # no limit to the length of command line arguments.
5172     # Libtool will interpret -1 as no limit whatsoever
5173     lt_cv_sys_max_cmd_len=-1;
5174     ;;
5175
5176   cygwin* | mingw* | cegcc*)
5177     # On Win9x/ME, this test blows up -- it succeeds, but takes
5178     # about 5 minutes as the teststring grows exponentially.
5179     # Worse, since 9x/ME are not pre-emptively multitasking,
5180     # you end up with a "frozen" computer, even though with patience
5181     # the test eventually succeeds (with a max line length of 256k).
5182     # Instead, let's just punt: use the minimum linelength reported by
5183     # all of the supported platforms: 8192 (on NT/2K/XP).
5184     lt_cv_sys_max_cmd_len=8192;
5185     ;;
5186
5187   amigaos*)
5188     # On AmigaOS with pdksh, this test takes hours, literally.
5189     # So we just punt and use a minimum line length of 8192.
5190     lt_cv_sys_max_cmd_len=8192;
5191     ;;
5192
5193   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5194     # This has been around since 386BSD, at least.  Likely further.
5195     if test -x /sbin/sysctl; then
5196       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5197     elif test -x /usr/sbin/sysctl; then
5198       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5199     else
5200       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5201     fi
5202     # And add a safety zone
5203     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5204     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5205     ;;
5206
5207   interix*)
5208     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5209     lt_cv_sys_max_cmd_len=196608
5210     ;;
5211
5212   osf*)
5213     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5214     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5215     # nice to cause kernel panics so lets avoid the loop below.
5216     # First set a reasonable default.
5217     lt_cv_sys_max_cmd_len=16384
5218     #
5219     if test -x /sbin/sysconfig; then
5220       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5221         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5222       esac
5223     fi
5224     ;;
5225   sco3.2v5*)
5226     lt_cv_sys_max_cmd_len=102400
5227     ;;
5228   sysv5* | sco5v6* | sysv4.2uw2*)
5229     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5230     if test -n "$kargmax"; then
5231       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5232     else
5233       lt_cv_sys_max_cmd_len=32768
5234     fi
5235     ;;
5236   *)
5237     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5238     if test -n "$lt_cv_sys_max_cmd_len"; then
5239       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5240       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5241     else
5242       # Make teststring a little bigger before we do anything with it.
5243       # a 1K string should be a reasonable start.
5244       for i in 1 2 3 4 5 6 7 8 ; do
5245         teststring=$teststring$teststring
5246       done
5247       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5248       # If test is not a shell built-in, we'll probably end up computing a
5249       # maximum length that is only half of the actual maximum length, but
5250       # we can't tell.
5251       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5252                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5253               test $i != 17 # 1/2 MB should be enough
5254       do
5255         i=`expr $i + 1`
5256         teststring=$teststring$teststring
5257       done
5258       # Only check the string length outside the loop.
5259       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5260       teststring=
5261       # Add a significant safety factor because C++ compilers can tack on
5262       # massive amounts of additional arguments before passing them to the
5263       # linker.  It appears as though 1/2 is a usable value.
5264       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5265     fi
5266     ;;
5267   esac
5268
5269 fi
5270
5271 if test -n $lt_cv_sys_max_cmd_len ; then
5272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5273 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5274 else
5275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5276 $as_echo "none" >&6; }
5277 fi
5278 max_cmd_len=$lt_cv_sys_max_cmd_len
5279
5280
5281
5282
5283
5284
5285 : ${CP="cp -f"}
5286 : ${MV="mv -f"}
5287 : ${RM="rm -f"}
5288
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5290 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5291 # Try some XSI features
5292 xsi_shell=no
5293 ( _lt_dummy="a/b/c"
5294   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5295       = c,a/b,, \
5296     && eval 'test $(( 1 + 1 )) -eq 2 \
5297     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5298   && xsi_shell=yes
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5300 $as_echo "$xsi_shell" >&6; }
5301
5302
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5304 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5305 lt_shell_append=no
5306 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5307     >/dev/null 2>&1 \
5308   && lt_shell_append=yes
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5310 $as_echo "$lt_shell_append" >&6; }
5311
5312
5313 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5314   lt_unset=unset
5315 else
5316   lt_unset=false
5317 fi
5318
5319
5320
5321
5322
5323 # test EBCDIC or ASCII
5324 case `echo X|tr X '\101'` in
5325  A) # ASCII based system
5326     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5327   lt_SP2NL='tr \040 \012'
5328   lt_NL2SP='tr \015\012 \040\040'
5329   ;;
5330  *) # EBCDIC based system
5331   lt_SP2NL='tr \100 \n'
5332   lt_NL2SP='tr \r\n \100\100'
5333   ;;
5334 esac
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5345 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5346 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5347   $as_echo_n "(cached) " >&6
5348 else
5349   lt_cv_ld_reload_flag='-r'
5350 fi
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5352 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5353 reload_flag=$lt_cv_ld_reload_flag
5354 case $reload_flag in
5355 "" | " "*) ;;
5356 *) reload_flag=" $reload_flag" ;;
5357 esac
5358 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5359 case $host_os in
5360   darwin*)
5361     if test "$GCC" = yes; then
5362       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5363     else
5364       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5365     fi
5366     ;;
5367 esac
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377 if test -n "$ac_tool_prefix"; then
5378   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5379 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5383   $as_echo_n "(cached) " >&6
5384 else
5385   if test -n "$OBJDUMP"; then
5386   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5387 else
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391   IFS=$as_save_IFS
5392   test -z "$as_dir" && as_dir=.
5393     for ac_exec_ext in '' $ac_executable_extensions; do
5394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397     break 2
5398   fi
5399 done
5400   done
5401 IFS=$as_save_IFS
5402
5403 fi
5404 fi
5405 OBJDUMP=$ac_cv_prog_OBJDUMP
5406 if test -n "$OBJDUMP"; then
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5408 $as_echo "$OBJDUMP" >&6; }
5409 else
5410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5412 fi
5413
5414
5415 fi
5416 if test -z "$ac_cv_prog_OBJDUMP"; then
5417   ac_ct_OBJDUMP=$OBJDUMP
5418   # Extract the first word of "objdump", so it can be a program name with args.
5419 set dummy objdump; ac_word=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5423   $as_echo_n "(cached) " >&6
5424 else
5425   if test -n "$ac_ct_OBJDUMP"; then
5426   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5430 do
5431   IFS=$as_save_IFS
5432   test -z "$as_dir" && as_dir=.
5433     for ac_exec_ext in '' $ac_executable_extensions; do
5434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437     break 2
5438   fi
5439 done
5440   done
5441 IFS=$as_save_IFS
5442
5443 fi
5444 fi
5445 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5446 if test -n "$ac_ct_OBJDUMP"; then
5447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5448 $as_echo "$ac_ct_OBJDUMP" >&6; }
5449 else
5450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5452 fi
5453
5454   if test "x$ac_ct_OBJDUMP" = x; then
5455     OBJDUMP="false"
5456   else
5457     case $cross_compiling:$ac_tool_warned in
5458 yes:)
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5461 ac_tool_warned=yes ;;
5462 esac
5463     OBJDUMP=$ac_ct_OBJDUMP
5464   fi
5465 else
5466   OBJDUMP="$ac_cv_prog_OBJDUMP"
5467 fi
5468
5469 test -z "$OBJDUMP" && OBJDUMP=objdump
5470
5471
5472
5473
5474
5475
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5477 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5478 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5479   $as_echo_n "(cached) " >&6
5480 else
5481   lt_cv_file_magic_cmd='$MAGIC_CMD'
5482 lt_cv_file_magic_test_file=
5483 lt_cv_deplibs_check_method='unknown'
5484 # Need to set the preceding variable on all platforms that support
5485 # interlibrary dependencies.
5486 # 'none' -- dependencies not supported.
5487 # `unknown' -- same as none, but documents that we really don't know.
5488 # 'pass_all' -- all dependencies passed with no checks.
5489 # 'test_compile' -- check by making test program.
5490 # 'file_magic [[regex]]' -- check by looking for files in library path
5491 # which responds to the $file_magic_cmd with a given extended regex.
5492 # If you have `file' or equivalent on your system and you're not sure
5493 # whether `pass_all' will *always* work, you probably want this one.
5494
5495 case $host_os in
5496 aix[4-9]*)
5497   lt_cv_deplibs_check_method=pass_all
5498   ;;
5499
5500 beos*)
5501   lt_cv_deplibs_check_method=pass_all
5502   ;;
5503
5504 bsdi[45]*)
5505   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5506   lt_cv_file_magic_cmd='/usr/bin/file -L'
5507   lt_cv_file_magic_test_file=/shlib/libc.so
5508   ;;
5509
5510 cygwin*)
5511   # func_win32_libid is a shell function defined in ltmain.sh
5512   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5513   lt_cv_file_magic_cmd='func_win32_libid'
5514   ;;
5515
5516 mingw* | pw32*)
5517   # Base MSYS/MinGW do not provide the 'file' command needed by
5518   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5519   # unless we find 'file', for example because we are cross-compiling.
5520   if ( file / ) >/dev/null 2>&1; then
5521     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5522     lt_cv_file_magic_cmd='func_win32_libid'
5523   else
5524     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5525     lt_cv_file_magic_cmd='$OBJDUMP -f'
5526   fi
5527   ;;
5528
5529 cegcc)
5530   # use the weaker test based on 'objdump'. See mingw*.
5531   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5532   lt_cv_file_magic_cmd='$OBJDUMP -f'
5533   ;;
5534
5535 darwin* | rhapsody*)
5536   lt_cv_deplibs_check_method=pass_all
5537   ;;
5538
5539 freebsd* | dragonfly*)
5540   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5541     case $host_cpu in
5542     i*86 )
5543       # Not sure whether the presence of OpenBSD here was a mistake.
5544       # Let's accept both of them until this is cleared up.
5545       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5546       lt_cv_file_magic_cmd=/usr/bin/file
5547       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5548       ;;
5549     esac
5550   else
5551     lt_cv_deplibs_check_method=pass_all
5552   fi
5553   ;;
5554
5555 gnu*)
5556   lt_cv_deplibs_check_method=pass_all
5557   ;;
5558
5559 hpux10.20* | hpux11*)
5560   lt_cv_file_magic_cmd=/usr/bin/file
5561   case $host_cpu in
5562   ia64*)
5563     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5564     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5565     ;;
5566   hppa*64*)
5567     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]'
5568     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5569     ;;
5570   *)
5571     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5572     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5573     ;;
5574   esac
5575   ;;
5576
5577 interix[3-9]*)
5578   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5579   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5580   ;;
5581
5582 irix5* | irix6* | nonstopux*)
5583   case $LD in
5584   *-32|*"-32 ") libmagic=32-bit;;
5585   *-n32|*"-n32 ") libmagic=N32;;
5586   *-64|*"-64 ") libmagic=64-bit;;
5587   *) libmagic=never-match;;
5588   esac
5589   lt_cv_deplibs_check_method=pass_all
5590   ;;
5591
5592 # This must be Linux ELF.
5593 linux* | k*bsd*-gnu)
5594   lt_cv_deplibs_check_method=pass_all
5595   ;;
5596
5597 netbsd* | netbsdelf*-gnu)
5598   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5599     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5600   else
5601     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5602   fi
5603   ;;
5604
5605 newos6*)
5606   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5607   lt_cv_file_magic_cmd=/usr/bin/file
5608   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5609   ;;
5610
5611 *nto* | *qnx*)
5612   lt_cv_deplibs_check_method=pass_all
5613   ;;
5614
5615 openbsd*)
5616   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5617     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5618   else
5619     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5620   fi
5621   ;;
5622
5623 osf3* | osf4* | osf5*)
5624   lt_cv_deplibs_check_method=pass_all
5625   ;;
5626
5627 rdos*)
5628   lt_cv_deplibs_check_method=pass_all
5629   ;;
5630
5631 solaris*)
5632   lt_cv_deplibs_check_method=pass_all
5633   ;;
5634
5635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5636   lt_cv_deplibs_check_method=pass_all
5637   ;;
5638
5639 sysv4 | sysv4.3*)
5640   case $host_vendor in
5641   motorola)
5642     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]'
5643     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5644     ;;
5645   ncr)
5646     lt_cv_deplibs_check_method=pass_all
5647     ;;
5648   sequent)
5649     lt_cv_file_magic_cmd='/bin/file'
5650     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5651     ;;
5652   sni)
5653     lt_cv_file_magic_cmd='/bin/file'
5654     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5655     lt_cv_file_magic_test_file=/lib/libc.so
5656     ;;
5657   siemens)
5658     lt_cv_deplibs_check_method=pass_all
5659     ;;
5660   pc)
5661     lt_cv_deplibs_check_method=pass_all
5662     ;;
5663   esac
5664   ;;
5665
5666 tpf*)
5667   lt_cv_deplibs_check_method=pass_all
5668   ;;
5669 esac
5670
5671 fi
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5673 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5674 file_magic_cmd=$lt_cv_file_magic_cmd
5675 deplibs_check_method=$lt_cv_deplibs_check_method
5676 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689 if test -n "$ac_tool_prefix"; then
5690   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5691 set dummy ${ac_tool_prefix}ar; ac_word=$2
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5693 $as_echo_n "checking for $ac_word... " >&6; }
5694 if test "${ac_cv_prog_AR+set}" = set; then :
5695   $as_echo_n "(cached) " >&6
5696 else
5697   if test -n "$AR"; then
5698   ac_cv_prog_AR="$AR" # Let the user override the test.
5699 else
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH
5702 do
5703   IFS=$as_save_IFS
5704   test -z "$as_dir" && as_dir=.
5705     for ac_exec_ext in '' $ac_executable_extensions; do
5706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707     ac_cv_prog_AR="${ac_tool_prefix}ar"
5708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5709     break 2
5710   fi
5711 done
5712   done
5713 IFS=$as_save_IFS
5714
5715 fi
5716 fi
5717 AR=$ac_cv_prog_AR
5718 if test -n "$AR"; then
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5720 $as_echo "$AR" >&6; }
5721 else
5722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723 $as_echo "no" >&6; }
5724 fi
5725
5726
5727 fi
5728 if test -z "$ac_cv_prog_AR"; then
5729   ac_ct_AR=$AR
5730   # Extract the first word of "ar", so it can be a program name with args.
5731 set dummy ar; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   if test -n "$ac_ct_AR"; then
5738   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5742 do
5743   IFS=$as_save_IFS
5744   test -z "$as_dir" && as_dir=.
5745     for ac_exec_ext in '' $ac_executable_extensions; do
5746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747     ac_cv_prog_ac_ct_AR="ar"
5748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749     break 2
5750   fi
5751 done
5752   done
5753 IFS=$as_save_IFS
5754
5755 fi
5756 fi
5757 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5758 if test -n "$ac_ct_AR"; then
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5760 $as_echo "$ac_ct_AR" >&6; }
5761 else
5762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5764 fi
5765
5766   if test "x$ac_ct_AR" = x; then
5767     AR="false"
5768   else
5769     case $cross_compiling:$ac_tool_warned in
5770 yes:)
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5773 ac_tool_warned=yes ;;
5774 esac
5775     AR=$ac_ct_AR
5776   fi
5777 else
5778   AR="$ac_cv_prog_AR"
5779 fi
5780
5781 test -z "$AR" && AR=ar
5782 test -z "$AR_FLAGS" && AR_FLAGS=cru
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794 if test -n "$ac_tool_prefix"; then
5795   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5796 set dummy ${ac_tool_prefix}strip; ac_word=$2
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 $as_echo_n "checking for $ac_word... " >&6; }
5799 if test "${ac_cv_prog_STRIP+set}" = set; then :
5800   $as_echo_n "(cached) " >&6
5801 else
5802   if test -n "$STRIP"; then
5803   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808   IFS=$as_save_IFS
5809   test -z "$as_dir" && as_dir=.
5810     for ac_exec_ext in '' $ac_executable_extensions; do
5811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814     break 2
5815   fi
5816 done
5817   done
5818 IFS=$as_save_IFS
5819
5820 fi
5821 fi
5822 STRIP=$ac_cv_prog_STRIP
5823 if test -n "$STRIP"; then
5824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5825 $as_echo "$STRIP" >&6; }
5826 else
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5829 fi
5830
5831
5832 fi
5833 if test -z "$ac_cv_prog_STRIP"; then
5834   ac_ct_STRIP=$STRIP
5835   # Extract the first word of "strip", so it can be a program name with args.
5836 set dummy strip; ac_word=$2
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 $as_echo_n "checking for $ac_word... " >&6; }
5839 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5840   $as_echo_n "(cached) " >&6
5841 else
5842   if test -n "$ac_ct_STRIP"; then
5843   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5844 else
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848   IFS=$as_save_IFS
5849   test -z "$as_dir" && as_dir=.
5850     for ac_exec_ext in '' $ac_executable_extensions; do
5851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5852     ac_cv_prog_ac_ct_STRIP="strip"
5853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854     break 2
5855   fi
5856 done
5857   done
5858 IFS=$as_save_IFS
5859
5860 fi
5861 fi
5862 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5863 if test -n "$ac_ct_STRIP"; then
5864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5865 $as_echo "$ac_ct_STRIP" >&6; }
5866 else
5867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5869 fi
5870
5871   if test "x$ac_ct_STRIP" = x; then
5872     STRIP=":"
5873   else
5874     case $cross_compiling:$ac_tool_warned in
5875 yes:)
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5878 ac_tool_warned=yes ;;
5879 esac
5880     STRIP=$ac_ct_STRIP
5881   fi
5882 else
5883   STRIP="$ac_cv_prog_STRIP"
5884 fi
5885
5886 test -z "$STRIP" && STRIP=:
5887
5888
5889
5890
5891
5892
5893 if test -n "$ac_tool_prefix"; then
5894   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5895 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5899   $as_echo_n "(cached) " >&6
5900 else
5901   if test -n "$RANLIB"; then
5902   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5906 do
5907   IFS=$as_save_IFS
5908   test -z "$as_dir" && as_dir=.
5909     for ac_exec_ext in '' $ac_executable_extensions; do
5910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913     break 2
5914   fi
5915 done
5916   done
5917 IFS=$as_save_IFS
5918
5919 fi
5920 fi
5921 RANLIB=$ac_cv_prog_RANLIB
5922 if test -n "$RANLIB"; then
5923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5924 $as_echo "$RANLIB" >&6; }
5925 else
5926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5928 fi
5929
5930
5931 fi
5932 if test -z "$ac_cv_prog_RANLIB"; then
5933   ac_ct_RANLIB=$RANLIB
5934   # Extract the first word of "ranlib", so it can be a program name with args.
5935 set dummy ranlib; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5939   $as_echo_n "(cached) " >&6
5940 else
5941   if test -n "$ac_ct_RANLIB"; then
5942   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5946 do
5947   IFS=$as_save_IFS
5948   test -z "$as_dir" && as_dir=.
5949     for ac_exec_ext in '' $ac_executable_extensions; do
5950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951     ac_cv_prog_ac_ct_RANLIB="ranlib"
5952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953     break 2
5954   fi
5955 done
5956   done
5957 IFS=$as_save_IFS
5958
5959 fi
5960 fi
5961 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5962 if test -n "$ac_ct_RANLIB"; then
5963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5964 $as_echo "$ac_ct_RANLIB" >&6; }
5965 else
5966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5968 fi
5969
5970   if test "x$ac_ct_RANLIB" = x; then
5971     RANLIB=":"
5972   else
5973     case $cross_compiling:$ac_tool_warned in
5974 yes:)
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5977 ac_tool_warned=yes ;;
5978 esac
5979     RANLIB=$ac_ct_RANLIB
5980   fi
5981 else
5982   RANLIB="$ac_cv_prog_RANLIB"
5983 fi
5984
5985 test -z "$RANLIB" && RANLIB=:
5986
5987
5988
5989
5990
5991
5992 # Determine commands to create old-style static archives.
5993 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5994 old_postinstall_cmds='chmod 644 $oldlib'
5995 old_postuninstall_cmds=
5996
5997 if test -n "$RANLIB"; then
5998   case $host_os in
5999   openbsd*)
6000     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6001     ;;
6002   *)
6003     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6004     ;;
6005   esac
6006   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6007 fi
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042 # If no C compiler was specified, use CC.
6043 LTCC=${LTCC-"$CC"}
6044
6045 # If no C compiler flags were specified, use CFLAGS.
6046 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6047
6048 # Allow CC to be a program name with arguments.
6049 compiler=$CC
6050
6051
6052 # Check for command to grab the raw symbol name followed by C symbol from nm.
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6054 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6055 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6056   $as_echo_n "(cached) " >&6
6057 else
6058
6059 # These are sane defaults that work on at least a few old systems.
6060 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6061
6062 # Character class describing NM global symbol codes.
6063 symcode='[BCDEGRST]'
6064
6065 # Regexp to match symbols that can be accessed directly from C.
6066 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6067
6068 # Define system-specific variables.
6069 case $host_os in
6070 aix*)
6071   symcode='[BCDT]'
6072   ;;
6073 cygwin* | mingw* | pw32* | cegcc*)
6074   symcode='[ABCDGISTW]'
6075   ;;
6076 hpux*)
6077   if test "$host_cpu" = ia64; then
6078     symcode='[ABCDEGRST]'
6079   fi
6080   ;;
6081 irix* | nonstopux*)
6082   symcode='[BCDEGRST]'
6083   ;;
6084 osf*)
6085   symcode='[BCDEGQRST]'
6086   ;;
6087 solaris*)
6088   symcode='[BDRT]'
6089   ;;
6090 sco3.2v5*)
6091   symcode='[DT]'
6092   ;;
6093 sysv4.2uw2*)
6094   symcode='[DT]'
6095   ;;
6096 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6097   symcode='[ABDT]'
6098   ;;
6099 sysv4)
6100   symcode='[DFNSTU]'
6101   ;;
6102 esac
6103
6104 # If we're using GNU nm, then use its standard symbol codes.
6105 case `$NM -V 2>&1` in
6106 *GNU* | *'with BFD'*)
6107   symcode='[ABCDGIRSTW]' ;;
6108 esac
6109
6110 # Transform an extracted symbol line into a proper C declaration.
6111 # Some systems (esp. on ia64) link data and code symbols differently,
6112 # so use this general approach.
6113 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6114
6115 # Transform an extracted symbol line into symbol name and symbol address
6116 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6117 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'"
6118
6119 # Handle CRLF in mingw tool chain
6120 opt_cr=
6121 case $build_os in
6122 mingw*)
6123   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6124   ;;
6125 esac
6126
6127 # Try without a prefix underscore, then with it.
6128 for ac_symprfx in "" "_"; do
6129
6130   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6131   symxfrm="\\1 $ac_symprfx\\2 \\2"
6132
6133   # Write the raw and C identifiers.
6134   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6135     # Fake it for dumpbin and say T for any non-static function
6136     # and D for any global variable.
6137     # Also find C++ and __fastcall symbols from MSVC++,
6138     # which start with @ or ?.
6139     lt_cv_sys_global_symbol_pipe="$AWK '"\
6140 "     {last_section=section; section=\$ 3};"\
6141 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6142 "     \$ 0!~/External *\|/{next};"\
6143 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6144 "     {if(hide[section]) next};"\
6145 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6146 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6147 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6148 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6149 "     ' prfx=^$ac_symprfx"
6150   else
6151     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6152   fi
6153
6154   # Check to see that the pipe works correctly.
6155   pipe_works=no
6156
6157   rm -f conftest*
6158   cat > conftest.$ac_ext <<_LT_EOF
6159 #ifdef __cplusplus
6160 extern "C" {
6161 #endif
6162 char nm_test_var;
6163 void nm_test_func(void);
6164 void nm_test_func(void){}
6165 #ifdef __cplusplus
6166 }
6167 #endif
6168 int main(){nm_test_var='a';nm_test_func();return(0);}
6169 _LT_EOF
6170
6171   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6172   (eval $ac_compile) 2>&5
6173   ac_status=$?
6174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6175   test $ac_status = 0; }; then
6176     # Now try to grab the symbols.
6177     nlist=conftest.nm
6178     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6179   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6180   ac_status=$?
6181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6182   test $ac_status = 0; } && test -s "$nlist"; then
6183       # Try sorting and uniquifying the output.
6184       if sort "$nlist" | uniq > "$nlist"T; then
6185         mv -f "$nlist"T "$nlist"
6186       else
6187         rm -f "$nlist"T
6188       fi
6189
6190       # Make sure that we snagged all the symbols we need.
6191       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6192         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6193           cat <<_LT_EOF > conftest.$ac_ext
6194 #ifdef __cplusplus
6195 extern "C" {
6196 #endif
6197
6198 _LT_EOF
6199           # Now generate the symbol file.
6200           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6201
6202           cat <<_LT_EOF >> conftest.$ac_ext
6203
6204 /* The mapping between symbol names and symbols.  */
6205 const struct {
6206   const char *name;
6207   void       *address;
6208 }
6209 lt__PROGRAM__LTX_preloaded_symbols[] =
6210 {
6211   { "@PROGRAM@", (void *) 0 },
6212 _LT_EOF
6213           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6214           cat <<\_LT_EOF >> conftest.$ac_ext
6215   {0, (void *) 0}
6216 };
6217
6218 /* This works around a problem in FreeBSD linker */
6219 #ifdef FREEBSD_WORKAROUND
6220 static const void *lt_preloaded_setup() {
6221   return lt__PROGRAM__LTX_preloaded_symbols;
6222 }
6223 #endif
6224
6225 #ifdef __cplusplus
6226 }
6227 #endif
6228 _LT_EOF
6229           # Now try linking the two files.
6230           mv conftest.$ac_objext conftstm.$ac_objext
6231           lt_save_LIBS="$LIBS"
6232           lt_save_CFLAGS="$CFLAGS"
6233           LIBS="conftstm.$ac_objext"
6234           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6235           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6236   (eval $ac_link) 2>&5
6237   ac_status=$?
6238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6240             pipe_works=yes
6241           fi
6242           LIBS="$lt_save_LIBS"
6243           CFLAGS="$lt_save_CFLAGS"
6244         else
6245           echo "cannot find nm_test_func in $nlist" >&5
6246         fi
6247       else
6248         echo "cannot find nm_test_var in $nlist" >&5
6249       fi
6250     else
6251       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6252     fi
6253   else
6254     echo "$progname: failed program was:" >&5
6255     cat conftest.$ac_ext >&5
6256   fi
6257   rm -rf conftest* conftst*
6258
6259   # Do not use the global_symbol_pipe unless it works.
6260   if test "$pipe_works" = yes; then
6261     break
6262   else
6263     lt_cv_sys_global_symbol_pipe=
6264   fi
6265 done
6266
6267 fi
6268
6269 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6270   lt_cv_sys_global_symbol_to_cdecl=
6271 fi
6272 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6274 $as_echo "failed" >&6; }
6275 else
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6277 $as_echo "ok" >&6; }
6278 fi
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302 # Check whether --enable-libtool-lock was given.
6303 if test "${enable_libtool_lock+set}" = set; then :
6304   enableval=$enable_libtool_lock;
6305 fi
6306
6307 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6308
6309 # Some flags need to be propagated to the compiler or linker for good
6310 # libtool support.
6311 case $host in
6312 ia64-*-hpux*)
6313   # Find out which ABI we are using.
6314   echo 'int i;' > conftest.$ac_ext
6315   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6316   (eval $ac_compile) 2>&5
6317   ac_status=$?
6318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6319   test $ac_status = 0; }; then
6320     case `/usr/bin/file conftest.$ac_objext` in
6321       *ELF-32*)
6322         HPUX_IA64_MODE="32"
6323         ;;
6324       *ELF-64*)
6325         HPUX_IA64_MODE="64"
6326         ;;
6327     esac
6328   fi
6329   rm -rf conftest*
6330   ;;
6331 *-*-irix6*)
6332   # Find out which ABI we are using.
6333   echo '#line 6333 "configure"' > conftest.$ac_ext
6334   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6335   (eval $ac_compile) 2>&5
6336   ac_status=$?
6337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6338   test $ac_status = 0; }; then
6339     if test "$lt_cv_prog_gnu_ld" = yes; then
6340       case `/usr/bin/file conftest.$ac_objext` in
6341         *32-bit*)
6342           LD="${LD-ld} -melf32bsmip"
6343           ;;
6344         *N32*)
6345           LD="${LD-ld} -melf32bmipn32"
6346           ;;
6347         *64-bit*)
6348           LD="${LD-ld} -melf64bmip"
6349         ;;
6350       esac
6351     else
6352       case `/usr/bin/file conftest.$ac_objext` in
6353         *32-bit*)
6354           LD="${LD-ld} -32"
6355           ;;
6356         *N32*)
6357           LD="${LD-ld} -n32"
6358           ;;
6359         *64-bit*)
6360           LD="${LD-ld} -64"
6361           ;;
6362       esac
6363     fi
6364   fi
6365   rm -rf conftest*
6366   ;;
6367
6368 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6369 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6370   # Find out which ABI we are using.
6371   echo 'int i;' > conftest.$ac_ext
6372   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6373   (eval $ac_compile) 2>&5
6374   ac_status=$?
6375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6376   test $ac_status = 0; }; then
6377     case `/usr/bin/file conftest.o` in
6378       *32-bit*)
6379         case $host in
6380           x86_64-*kfreebsd*-gnu)
6381             LD="${LD-ld} -m elf_i386_fbsd"
6382             ;;
6383           x86_64-*linux*)
6384             LD="${LD-ld} -m elf_i386"
6385             ;;
6386           ppc64-*linux*|powerpc64-*linux*)
6387             LD="${LD-ld} -m elf32ppclinux"
6388             ;;
6389           s390x-*linux*)
6390             LD="${LD-ld} -m elf_s390"
6391             ;;
6392           sparc64-*linux*)
6393             LD="${LD-ld} -m elf32_sparc"
6394             ;;
6395         esac
6396         ;;
6397       *64-bit*)
6398         case $host in
6399           x86_64-*kfreebsd*-gnu)
6400             LD="${LD-ld} -m elf_x86_64_fbsd"
6401             ;;
6402           x86_64-*linux*)
6403             LD="${LD-ld} -m elf_x86_64"
6404             ;;
6405           ppc*-*linux*|powerpc*-*linux*)
6406             LD="${LD-ld} -m elf64ppc"
6407             ;;
6408           s390*-*linux*|s390*-*tpf*)
6409             LD="${LD-ld} -m elf64_s390"
6410             ;;
6411           sparc*-*linux*)
6412             LD="${LD-ld} -m elf64_sparc"
6413             ;;
6414         esac
6415         ;;
6416     esac
6417   fi
6418   rm -rf conftest*
6419   ;;
6420
6421 *-*-sco3.2v5*)
6422   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6423   SAVE_CFLAGS="$CFLAGS"
6424   CFLAGS="$CFLAGS -belf"
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6426 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6427 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6428   $as_echo_n "(cached) " >&6
6429 else
6430   ac_ext=c
6431 ac_cpp='$CPP $CPPFLAGS'
6432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6435
6436      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h.  */
6438
6439 int
6440 main ()
6441 {
6442
6443   ;
6444   return 0;
6445 }
6446 _ACEOF
6447 if ac_fn_c_try_link "$LINENO"; then :
6448   lt_cv_cc_needs_belf=yes
6449 else
6450   lt_cv_cc_needs_belf=no
6451 fi
6452 rm -f core conftest.err conftest.$ac_objext \
6453     conftest$ac_exeext conftest.$ac_ext
6454      ac_ext=c
6455 ac_cpp='$CPP $CPPFLAGS'
6456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6459
6460 fi
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6462 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6463   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6464     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6465     CFLAGS="$SAVE_CFLAGS"
6466   fi
6467   ;;
6468 sparc*-*solaris*)
6469   # Find out which ABI we are using.
6470   echo 'int i;' > conftest.$ac_ext
6471   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6472   (eval $ac_compile) 2>&5
6473   ac_status=$?
6474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475   test $ac_status = 0; }; then
6476     case `/usr/bin/file conftest.o` in
6477     *64-bit*)
6478       case $lt_cv_prog_gnu_ld in
6479       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6480       *)
6481         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6482           LD="${LD-ld} -64"
6483         fi
6484         ;;
6485       esac
6486       ;;
6487     esac
6488   fi
6489   rm -rf conftest*
6490   ;;
6491 esac
6492
6493 need_locks="$enable_libtool_lock"
6494
6495
6496   case $host_os in
6497     rhapsody* | darwin*)
6498     if test -n "$ac_tool_prefix"; then
6499   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6500 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6504   $as_echo_n "(cached) " >&6
6505 else
6506   if test -n "$DSYMUTIL"; then
6507   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6508 else
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512   IFS=$as_save_IFS
6513   test -z "$as_dir" && as_dir=.
6514     for ac_exec_ext in '' $ac_executable_extensions; do
6515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518     break 2
6519   fi
6520 done
6521   done
6522 IFS=$as_save_IFS
6523
6524 fi
6525 fi
6526 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6527 if test -n "$DSYMUTIL"; then
6528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6529 $as_echo "$DSYMUTIL" >&6; }
6530 else
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6533 fi
6534
6535
6536 fi
6537 if test -z "$ac_cv_prog_DSYMUTIL"; then
6538   ac_ct_DSYMUTIL=$DSYMUTIL
6539   # Extract the first word of "dsymutil", so it can be a program name with args.
6540 set dummy dsymutil; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6544   $as_echo_n "(cached) " >&6
6545 else
6546   if test -n "$ac_ct_DSYMUTIL"; then
6547   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6551 do
6552   IFS=$as_save_IFS
6553   test -z "$as_dir" && as_dir=.
6554     for ac_exec_ext in '' $ac_executable_extensions; do
6555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558     break 2
6559   fi
6560 done
6561   done
6562 IFS=$as_save_IFS
6563
6564 fi
6565 fi
6566 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6567 if test -n "$ac_ct_DSYMUTIL"; then
6568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6569 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6570 else
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6573 fi
6574
6575   if test "x$ac_ct_DSYMUTIL" = x; then
6576     DSYMUTIL=":"
6577   else
6578     case $cross_compiling:$ac_tool_warned in
6579 yes:)
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6582 ac_tool_warned=yes ;;
6583 esac
6584     DSYMUTIL=$ac_ct_DSYMUTIL
6585   fi
6586 else
6587   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6588 fi
6589
6590     if test -n "$ac_tool_prefix"; then
6591   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6592 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594 $as_echo_n "checking for $ac_word... " >&6; }
6595 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6596   $as_echo_n "(cached) " >&6
6597 else
6598   if test -n "$NMEDIT"; then
6599   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6600 else
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 for as_dir in $PATH
6603 do
6604   IFS=$as_save_IFS
6605   test -z "$as_dir" && as_dir=.
6606     for ac_exec_ext in '' $ac_executable_extensions; do
6607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6610     break 2
6611   fi
6612 done
6613   done
6614 IFS=$as_save_IFS
6615
6616 fi
6617 fi
6618 NMEDIT=$ac_cv_prog_NMEDIT
6619 if test -n "$NMEDIT"; then
6620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6621 $as_echo "$NMEDIT" >&6; }
6622 else
6623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624 $as_echo "no" >&6; }
6625 fi
6626
6627
6628 fi
6629 if test -z "$ac_cv_prog_NMEDIT"; then
6630   ac_ct_NMEDIT=$NMEDIT
6631   # Extract the first word of "nmedit", so it can be a program name with args.
6632 set dummy nmedit; ac_word=$2
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6636   $as_echo_n "(cached) " >&6
6637 else
6638   if test -n "$ac_ct_NMEDIT"; then
6639   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644   IFS=$as_save_IFS
6645   test -z "$as_dir" && as_dir=.
6646     for ac_exec_ext in '' $ac_executable_extensions; do
6647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650     break 2
6651   fi
6652 done
6653   done
6654 IFS=$as_save_IFS
6655
6656 fi
6657 fi
6658 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6659 if test -n "$ac_ct_NMEDIT"; then
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6661 $as_echo "$ac_ct_NMEDIT" >&6; }
6662 else
6663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6665 fi
6666
6667   if test "x$ac_ct_NMEDIT" = x; then
6668     NMEDIT=":"
6669   else
6670     case $cross_compiling:$ac_tool_warned in
6671 yes:)
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6674 ac_tool_warned=yes ;;
6675 esac
6676     NMEDIT=$ac_ct_NMEDIT
6677   fi
6678 else
6679   NMEDIT="$ac_cv_prog_NMEDIT"
6680 fi
6681
6682     if test -n "$ac_tool_prefix"; then
6683   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6684 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686 $as_echo_n "checking for $ac_word... " >&6; }
6687 if test "${ac_cv_prog_LIPO+set}" = set; then :
6688   $as_echo_n "(cached) " >&6
6689 else
6690   if test -n "$LIPO"; then
6691   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6692 else
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696   IFS=$as_save_IFS
6697   test -z "$as_dir" && as_dir=.
6698     for ac_exec_ext in '' $ac_executable_extensions; do
6699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702     break 2
6703   fi
6704 done
6705   done
6706 IFS=$as_save_IFS
6707
6708 fi
6709 fi
6710 LIPO=$ac_cv_prog_LIPO
6711 if test -n "$LIPO"; then
6712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6713 $as_echo "$LIPO" >&6; }
6714 else
6715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716 $as_echo "no" >&6; }
6717 fi
6718
6719
6720 fi
6721 if test -z "$ac_cv_prog_LIPO"; then
6722   ac_ct_LIPO=$LIPO
6723   # Extract the first word of "lipo", so it can be a program name with args.
6724 set dummy lipo; ac_word=$2
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6728   $as_echo_n "(cached) " >&6
6729 else
6730   if test -n "$ac_ct_LIPO"; then
6731   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736   IFS=$as_save_IFS
6737   test -z "$as_dir" && as_dir=.
6738     for ac_exec_ext in '' $ac_executable_extensions; do
6739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740     ac_cv_prog_ac_ct_LIPO="lipo"
6741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742     break 2
6743   fi
6744 done
6745   done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6751 if test -n "$ac_ct_LIPO"; then
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6753 $as_echo "$ac_ct_LIPO" >&6; }
6754 else
6755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6757 fi
6758
6759   if test "x$ac_ct_LIPO" = x; then
6760     LIPO=":"
6761   else
6762     case $cross_compiling:$ac_tool_warned in
6763 yes:)
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6766 ac_tool_warned=yes ;;
6767 esac
6768     LIPO=$ac_ct_LIPO
6769   fi
6770 else
6771   LIPO="$ac_cv_prog_LIPO"
6772 fi
6773
6774     if test -n "$ac_tool_prefix"; then
6775   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6776 set dummy ${ac_tool_prefix}otool; ac_word=$2
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6780   $as_echo_n "(cached) " >&6
6781 else
6782   if test -n "$OTOOL"; then
6783   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6787 do
6788   IFS=$as_save_IFS
6789   test -z "$as_dir" && as_dir=.
6790     for ac_exec_ext in '' $ac_executable_extensions; do
6791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794     break 2
6795   fi
6796 done
6797   done
6798 IFS=$as_save_IFS
6799
6800 fi
6801 fi
6802 OTOOL=$ac_cv_prog_OTOOL
6803 if test -n "$OTOOL"; then
6804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6805 $as_echo "$OTOOL" >&6; }
6806 else
6807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808 $as_echo "no" >&6; }
6809 fi
6810
6811
6812 fi
6813 if test -z "$ac_cv_prog_OTOOL"; then
6814   ac_ct_OTOOL=$OTOOL
6815   # Extract the first word of "otool", so it can be a program name with args.
6816 set dummy otool; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6820   $as_echo_n "(cached) " >&6
6821 else
6822   if test -n "$ac_ct_OTOOL"; then
6823   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828   IFS=$as_save_IFS
6829   test -z "$as_dir" && as_dir=.
6830     for ac_exec_ext in '' $ac_executable_extensions; do
6831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832     ac_cv_prog_ac_ct_OTOOL="otool"
6833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834     break 2
6835   fi
6836 done
6837   done
6838 IFS=$as_save_IFS
6839
6840 fi
6841 fi
6842 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6843 if test -n "$ac_ct_OTOOL"; then
6844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6845 $as_echo "$ac_ct_OTOOL" >&6; }
6846 else
6847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848 $as_echo "no" >&6; }
6849 fi
6850
6851   if test "x$ac_ct_OTOOL" = x; then
6852     OTOOL=":"
6853   else
6854     case $cross_compiling:$ac_tool_warned in
6855 yes:)
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6858 ac_tool_warned=yes ;;
6859 esac
6860     OTOOL=$ac_ct_OTOOL
6861   fi
6862 else
6863   OTOOL="$ac_cv_prog_OTOOL"
6864 fi
6865
6866     if test -n "$ac_tool_prefix"; then
6867   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6868 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 $as_echo_n "checking for $ac_word... " >&6; }
6871 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6872   $as_echo_n "(cached) " >&6
6873 else
6874   if test -n "$OTOOL64"; then
6875   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880   IFS=$as_save_IFS
6881   test -z "$as_dir" && as_dir=.
6882     for ac_exec_ext in '' $ac_executable_extensions; do
6883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6884     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886     break 2
6887   fi
6888 done
6889   done
6890 IFS=$as_save_IFS
6891
6892 fi
6893 fi
6894 OTOOL64=$ac_cv_prog_OTOOL64
6895 if test -n "$OTOOL64"; then
6896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6897 $as_echo "$OTOOL64" >&6; }
6898 else
6899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 $as_echo "no" >&6; }
6901 fi
6902
6903
6904 fi
6905 if test -z "$ac_cv_prog_OTOOL64"; then
6906   ac_ct_OTOOL64=$OTOOL64
6907   # Extract the first word of "otool64", so it can be a program name with args.
6908 set dummy otool64; ac_word=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6912   $as_echo_n "(cached) " >&6
6913 else
6914   if test -n "$ac_ct_OTOOL64"; then
6915   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6916 else
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920   IFS=$as_save_IFS
6921   test -z "$as_dir" && as_dir=.
6922     for ac_exec_ext in '' $ac_executable_extensions; do
6923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6924     ac_cv_prog_ac_ct_OTOOL64="otool64"
6925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926     break 2
6927   fi
6928 done
6929   done
6930 IFS=$as_save_IFS
6931
6932 fi
6933 fi
6934 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6935 if test -n "$ac_ct_OTOOL64"; then
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6937 $as_echo "$ac_ct_OTOOL64" >&6; }
6938 else
6939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6941 fi
6942
6943   if test "x$ac_ct_OTOOL64" = x; then
6944     OTOOL64=":"
6945   else
6946     case $cross_compiling:$ac_tool_warned in
6947 yes:)
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6950 ac_tool_warned=yes ;;
6951 esac
6952     OTOOL64=$ac_ct_OTOOL64
6953   fi
6954 else
6955   OTOOL64="$ac_cv_prog_OTOOL64"
6956 fi
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6985 $as_echo_n "checking for -single_module linker flag... " >&6; }
6986 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6987   $as_echo_n "(cached) " >&6
6988 else
6989   lt_cv_apple_cc_single_mod=no
6990       if test -z "${LT_MULTI_MODULE}"; then
6991         # By default we will add the -single_module flag. You can override
6992         # by either setting the environment variable LT_MULTI_MODULE
6993         # non-empty at configure time, or by adding -multi_module to the
6994         # link flags.
6995         rm -rf libconftest.dylib*
6996         echo "int foo(void){return 1;}" > conftest.c
6997         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6998 -dynamiclib -Wl,-single_module conftest.c" >&5
6999         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7000           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7001         _lt_result=$?
7002         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7003           lt_cv_apple_cc_single_mod=yes
7004         else
7005           cat conftest.err >&5
7006         fi
7007         rm -rf libconftest.dylib*
7008         rm -f conftest.*
7009       fi
7010 fi
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7012 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7014 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7015 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7016   $as_echo_n "(cached) " >&6
7017 else
7018   lt_cv_ld_exported_symbols_list=no
7019       save_LDFLAGS=$LDFLAGS
7020       echo "_main" > conftest.sym
7021       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7022       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h.  */
7024
7025 int
7026 main ()
7027 {
7028
7029   ;
7030   return 0;
7031 }
7032 _ACEOF
7033 if ac_fn_c_try_link "$LINENO"; then :
7034   lt_cv_ld_exported_symbols_list=yes
7035 else
7036   lt_cv_ld_exported_symbols_list=no
7037 fi
7038 rm -f core conftest.err conftest.$ac_objext \
7039     conftest$ac_exeext conftest.$ac_ext
7040         LDFLAGS="$save_LDFLAGS"
7041
7042 fi
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7044 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7045     case $host_os in
7046     rhapsody* | darwin1.[012])
7047       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7048     darwin1.*)
7049       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7050     darwin*) # darwin 5.x on
7051       # if running on 10.5 or later, the deployment target defaults
7052       # to the OS version, if on x86, and 10.4, the deployment
7053       # target defaults to 10.4. Don't you love it?
7054       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7055         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7056           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7057         10.[012]*)
7058           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7059         10.*)
7060           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7061       esac
7062     ;;
7063   esac
7064     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7065       _lt_dar_single_mod='$single_module'
7066     fi
7067     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7068       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7069     else
7070       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7071     fi
7072     if test "$DSYMUTIL" != ":"; then
7073       _lt_dsymutil='~$DSYMUTIL $lib || :'
7074     else
7075       _lt_dsymutil=
7076     fi
7077     ;;
7078   esac
7079
7080 ac_ext=c
7081 ac_cpp='$CPP $CPPFLAGS'
7082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7086 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7087 # On Suns, sometimes $CPP names a directory.
7088 if test -n "$CPP" && test -d "$CPP"; then
7089   CPP=
7090 fi
7091 if test -z "$CPP"; then
7092   if test "${ac_cv_prog_CPP+set}" = set; then :
7093   $as_echo_n "(cached) " >&6
7094 else
7095       # Double quotes because CPP needs to be expanded
7096     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7097     do
7098       ac_preproc_ok=false
7099 for ac_c_preproc_warn_flag in '' yes
7100 do
7101   # Use a header file that comes with gcc, so configuring glibc
7102   # with a fresh cross-compiler works.
7103   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7104   # <limits.h> exists even on freestanding compilers.
7105   # On the NeXT, cc -E runs the code through the compiler's parser,
7106   # not just through cpp. "Syntax error" is here to catch this case.
7107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h.  */
7109 #ifdef __STDC__
7110 # include <limits.h>
7111 #else
7112 # include <assert.h>
7113 #endif
7114                      Syntax error
7115 _ACEOF
7116 if ac_fn_c_try_cpp "$LINENO"; then :
7117
7118 else
7119   # Broken: fails on valid input.
7120 continue
7121 fi
7122 rm -f conftest.err conftest.$ac_ext
7123
7124   # OK, works on sane cases.  Now check whether nonexistent headers
7125   # can be detected and how.
7126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h.  */
7128 #include <ac_nonexistent.h>
7129 _ACEOF
7130 if ac_fn_c_try_cpp "$LINENO"; then :
7131   # Broken: success on invalid input.
7132 continue
7133 else
7134   # Passes both tests.
7135 ac_preproc_ok=:
7136 break
7137 fi
7138 rm -f conftest.err conftest.$ac_ext
7139
7140 done
7141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7142 rm -f conftest.err conftest.$ac_ext
7143 if $ac_preproc_ok; then :
7144   break
7145 fi
7146
7147     done
7148     ac_cv_prog_CPP=$CPP
7149
7150 fi
7151   CPP=$ac_cv_prog_CPP
7152 else
7153   ac_cv_prog_CPP=$CPP
7154 fi
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7156 $as_echo "$CPP" >&6; }
7157 ac_preproc_ok=false
7158 for ac_c_preproc_warn_flag in '' yes
7159 do
7160   # Use a header file that comes with gcc, so configuring glibc
7161   # with a fresh cross-compiler works.
7162   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7163   # <limits.h> exists even on freestanding compilers.
7164   # On the NeXT, cc -E runs the code through the compiler's parser,
7165   # not just through cpp. "Syntax error" is here to catch this case.
7166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h.  */
7168 #ifdef __STDC__
7169 # include <limits.h>
7170 #else
7171 # include <assert.h>
7172 #endif
7173                      Syntax error
7174 _ACEOF
7175 if ac_fn_c_try_cpp "$LINENO"; then :
7176
7177 else
7178   # Broken: fails on valid input.
7179 continue
7180 fi
7181 rm -f conftest.err conftest.$ac_ext
7182
7183   # OK, works on sane cases.  Now check whether nonexistent headers
7184   # can be detected and how.
7185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h.  */
7187 #include <ac_nonexistent.h>
7188 _ACEOF
7189 if ac_fn_c_try_cpp "$LINENO"; then :
7190   # Broken: success on invalid input.
7191 continue
7192 else
7193   # Passes both tests.
7194 ac_preproc_ok=:
7195 break
7196 fi
7197 rm -f conftest.err conftest.$ac_ext
7198
7199 done
7200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7201 rm -f conftest.err conftest.$ac_ext
7202 if $ac_preproc_ok; then :
7203
7204 else
7205   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7207 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7208 See \`config.log' for more details." "$LINENO" 5; }
7209 fi
7210
7211 ac_ext=c
7212 ac_cpp='$CPP $CPPFLAGS'
7213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7216
7217
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7219 $as_echo_n "checking for ANSI C header files... " >&6; }
7220 if test "${ac_cv_header_stdc+set}" = set; then :
7221   $as_echo_n "(cached) " >&6
7222 else
7223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h.  */
7225 #include <stdlib.h>
7226 #include <stdarg.h>
7227 #include <string.h>
7228 #include <float.h>
7229
7230 int
7231 main ()
7232 {
7233
7234   ;
7235   return 0;
7236 }
7237 _ACEOF
7238 if ac_fn_c_try_compile "$LINENO"; then :
7239   ac_cv_header_stdc=yes
7240 else
7241   ac_cv_header_stdc=no
7242 fi
7243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244
7245 if test $ac_cv_header_stdc = yes; then
7246   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h.  */
7249 #include <string.h>
7250
7251 _ACEOF
7252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7253   $EGREP "memchr" >/dev/null 2>&1; then :
7254
7255 else
7256   ac_cv_header_stdc=no
7257 fi
7258 rm -f conftest*
7259
7260 fi
7261
7262 if test $ac_cv_header_stdc = yes; then
7263   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h.  */
7266 #include <stdlib.h>
7267
7268 _ACEOF
7269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7270   $EGREP "free" >/dev/null 2>&1; then :
7271
7272 else
7273   ac_cv_header_stdc=no
7274 fi
7275 rm -f conftest*
7276
7277 fi
7278
7279 if test $ac_cv_header_stdc = yes; then
7280   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7281   if test "$cross_compiling" = yes; then :
7282   :
7283 else
7284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h.  */
7286 #include <ctype.h>
7287 #include <stdlib.h>
7288 #if ((' ' & 0x0FF) == 0x020)
7289 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7290 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7291 #else
7292 # define ISLOWER(c) \
7293                    (('a' <= (c) && (c) <= 'i') \
7294                      || ('j' <= (c) && (c) <= 'r') \
7295                      || ('s' <= (c) && (c) <= 'z'))
7296 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7297 #endif
7298
7299 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7300 int
7301 main ()
7302 {
7303   int i;
7304   for (i = 0; i < 256; i++)
7305     if (XOR (islower (i), ISLOWER (i))
7306         || toupper (i) != TOUPPER (i))
7307       return 2;
7308   return 0;
7309 }
7310 _ACEOF
7311 if ac_fn_c_try_run "$LINENO"; then :
7312
7313 else
7314   ac_cv_header_stdc=no
7315 fi
7316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7317   conftest.$ac_objext conftest.beam conftest.$ac_ext
7318 fi
7319
7320 fi
7321 fi
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7323 $as_echo "$ac_cv_header_stdc" >&6; }
7324 if test $ac_cv_header_stdc = yes; then
7325
7326 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7327
7328 fi
7329
7330 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7331 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7332                   inttypes.h stdint.h unistd.h
7333 do :
7334   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7335 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7336 "
7337 eval as_val=\$$as_ac_Header
7338    if test "x$as_val" = x""yes; then :
7339   cat >>confdefs.h <<_ACEOF
7340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7341 _ACEOF
7342
7343 fi
7344
7345 done
7346
7347
7348 for ac_header in dlfcn.h
7349 do :
7350   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7351 "
7352 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7353   cat >>confdefs.h <<_ACEOF
7354 #define HAVE_DLFCN_H 1
7355 _ACEOF
7356
7357 fi
7358
7359 done
7360
7361
7362
7363 # Set options
7364
7365
7366
7367         enable_dlopen=no
7368
7369
7370
7371             # Check whether --enable-shared was given.
7372 if test "${enable_shared+set}" = set; then :
7373   enableval=$enable_shared; p=${PACKAGE-default}
7374     case $enableval in
7375     yes) enable_shared=yes ;;
7376     no) enable_shared=no ;;
7377     *)
7378       enable_shared=no
7379       # Look at the argument we got.  We use all the common list separators.
7380       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7381       for pkg in $enableval; do
7382         IFS="$lt_save_ifs"
7383         if test "X$pkg" = "X$p"; then
7384           enable_shared=yes
7385         fi
7386       done
7387       IFS="$lt_save_ifs"
7388       ;;
7389     esac
7390 else
7391   enable_shared=yes
7392 fi
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402   # Check whether --enable-static was given.
7403 if test "${enable_static+set}" = set; then :
7404   enableval=$enable_static; p=${PACKAGE-default}
7405     case $enableval in
7406     yes) enable_static=yes ;;
7407     no) enable_static=no ;;
7408     *)
7409      enable_static=no
7410       # Look at the argument we got.  We use all the common list separators.
7411       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7412       for pkg in $enableval; do
7413         IFS="$lt_save_ifs"
7414         if test "X$pkg" = "X$p"; then
7415           enable_static=yes
7416         fi
7417       done
7418       IFS="$lt_save_ifs"
7419       ;;
7420     esac
7421 else
7422   enable_static=yes
7423 fi
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434 # Check whether --with-pic was given.
7435 if test "${with_pic+set}" = set; then :
7436   withval=$with_pic; pic_mode="$withval"
7437 else
7438   pic_mode=default
7439 fi
7440
7441
7442 test -z "$pic_mode" && pic_mode=default
7443
7444
7445
7446
7447
7448
7449
7450   # Check whether --enable-fast-install was given.
7451 if test "${enable_fast_install+set}" = set; then :
7452   enableval=$enable_fast_install; p=${PACKAGE-default}
7453     case $enableval in
7454     yes) enable_fast_install=yes ;;
7455     no) enable_fast_install=no ;;
7456     *)
7457       enable_fast_install=no
7458       # Look at the argument we got.  We use all the common list separators.
7459       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7460       for pkg in $enableval; do
7461         IFS="$lt_save_ifs"
7462         if test "X$pkg" = "X$p"; then
7463           enable_fast_install=yes
7464         fi
7465       done
7466       IFS="$lt_save_ifs"
7467       ;;
7468     esac
7469 else
7470   enable_fast_install=yes
7471 fi
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483 # This can be used to rebuild libtool when needed
7484 LIBTOOL_DEPS="$ltmain"
7485
7486 # Always use our own libtool.
7487 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513 test -z "$LN_S" && LN_S="ln -s"
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528 if test -n "${ZSH_VERSION+set}" ; then
7529    setopt NO_GLOB_SUBST
7530 fi
7531
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7533 $as_echo_n "checking for objdir... " >&6; }
7534 if test "${lt_cv_objdir+set}" = set; then :
7535   $as_echo_n "(cached) " >&6
7536 else
7537   rm -f .libs 2>/dev/null
7538 mkdir .libs 2>/dev/null
7539 if test -d .libs; then
7540   lt_cv_objdir=.libs
7541 else
7542   # MS-DOS does not allow filenames that begin with a dot.
7543   lt_cv_objdir=_libs
7544 fi
7545 rmdir .libs 2>/dev/null
7546 fi
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7548 $as_echo "$lt_cv_objdir" >&6; }
7549 objdir=$lt_cv_objdir
7550
7551
7552
7553
7554
7555 cat >>confdefs.h <<_ACEOF
7556 #define LT_OBJDIR "$lt_cv_objdir/"
7557 _ACEOF
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575 case $host_os in
7576 aix3*)
7577   # AIX sometimes has problems with the GCC collect2 program.  For some
7578   # reason, if we set the COLLECT_NAMES environment variable, the problems
7579   # vanish in a puff of smoke.
7580   if test "X${COLLECT_NAMES+set}" != Xset; then
7581     COLLECT_NAMES=
7582     export COLLECT_NAMES
7583   fi
7584   ;;
7585 esac
7586
7587 # Sed substitution that helps us do robust quoting.  It backslashifies
7588 # metacharacters that are still active within double-quoted strings.
7589 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7590
7591 # Same as above, but do not quote variable references.
7592 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7593
7594 # Sed substitution to delay expansion of an escaped shell variable in a
7595 # double_quote_subst'ed string.
7596 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7597
7598 # Sed substitution to delay expansion of an escaped single quote.
7599 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7600
7601 # Sed substitution to avoid accidental globbing in evaled expressions
7602 no_glob_subst='s/\*/\\\*/g'
7603
7604 # Global variables:
7605 ofile=libtool
7606 can_build_shared=yes
7607
7608 # All known linkers require a `.a' archive for static linking (except MSVC,
7609 # which needs '.lib').
7610 libext=a
7611
7612 with_gnu_ld="$lt_cv_prog_gnu_ld"
7613
7614 old_CC="$CC"
7615 old_CFLAGS="$CFLAGS"
7616
7617 # Set sane defaults for various variables
7618 test -z "$CC" && CC=cc
7619 test -z "$LTCC" && LTCC=$CC
7620 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7621 test -z "$LD" && LD=ld
7622 test -z "$ac_objext" && ac_objext=o
7623
7624 for cc_temp in $compiler""; do
7625   case $cc_temp in
7626     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7627     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7628     \-*) ;;
7629     *) break;;
7630   esac
7631 done
7632 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7633
7634
7635 # Only perform the check for file, if the check method requires it
7636 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7637 case $deplibs_check_method in
7638 file_magic*)
7639   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7641 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7642 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7643   $as_echo_n "(cached) " >&6
7644 else
7645   case $MAGIC_CMD in
7646 [\\/*] |  ?:[\\/]*)
7647   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7648   ;;
7649 *)
7650   lt_save_MAGIC_CMD="$MAGIC_CMD"
7651   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7652   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7653   for ac_dir in $ac_dummy; do
7654     IFS="$lt_save_ifs"
7655     test -z "$ac_dir" && ac_dir=.
7656     if test -f $ac_dir/${ac_tool_prefix}file; then
7657       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7658       if test -n "$file_magic_test_file"; then
7659         case $deplibs_check_method in
7660         "file_magic "*)
7661           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7662           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7663           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7664             $EGREP "$file_magic_regex" > /dev/null; then
7665             :
7666           else
7667             cat <<_LT_EOF 1>&2
7668
7669 *** Warning: the command libtool uses to detect shared libraries,
7670 *** $file_magic_cmd, produces output that libtool cannot recognize.
7671 *** The result is that libtool may fail to recognize shared libraries
7672 *** as such.  This will affect the creation of libtool libraries that
7673 *** depend on shared libraries, but programs linked with such libtool
7674 *** libraries will work regardless of this problem.  Nevertheless, you
7675 *** may want to report the problem to your system manager and/or to
7676 *** bug-libtool@gnu.org
7677
7678 _LT_EOF
7679           fi ;;
7680         esac
7681       fi
7682       break
7683     fi
7684   done
7685   IFS="$lt_save_ifs"
7686   MAGIC_CMD="$lt_save_MAGIC_CMD"
7687   ;;
7688 esac
7689 fi
7690
7691 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7692 if test -n "$MAGIC_CMD"; then
7693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7694 $as_echo "$MAGIC_CMD" >&6; }
7695 else
7696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7698 fi
7699
7700
7701
7702
7703
7704 if test -z "$lt_cv_path_MAGIC_CMD"; then
7705   if test -n "$ac_tool_prefix"; then
7706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7707 $as_echo_n "checking for file... " >&6; }
7708 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7709   $as_echo_n "(cached) " >&6
7710 else
7711   case $MAGIC_CMD in
7712 [\\/*] |  ?:[\\/]*)
7713   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7714   ;;
7715 *)
7716   lt_save_MAGIC_CMD="$MAGIC_CMD"
7717   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7718   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7719   for ac_dir in $ac_dummy; do
7720     IFS="$lt_save_ifs"
7721     test -z "$ac_dir" && ac_dir=.
7722     if test -f $ac_dir/file; then
7723       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7724       if test -n "$file_magic_test_file"; then
7725         case $deplibs_check_method in
7726         "file_magic "*)
7727           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7728           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7729           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7730             $EGREP "$file_magic_regex" > /dev/null; then
7731             :
7732           else
7733             cat <<_LT_EOF 1>&2
7734
7735 *** Warning: the command libtool uses to detect shared libraries,
7736 *** $file_magic_cmd, produces output that libtool cannot recognize.
7737 *** The result is that libtool may fail to recognize shared libraries
7738 *** as such.  This will affect the creation of libtool libraries that
7739 *** depend on shared libraries, but programs linked with such libtool
7740 *** libraries will work regardless of this problem.  Nevertheless, you
7741 *** may want to report the problem to your system manager and/or to
7742 *** bug-libtool@gnu.org
7743
7744 _LT_EOF
7745           fi ;;
7746         esac
7747       fi
7748       break
7749     fi
7750   done
7751   IFS="$lt_save_ifs"
7752   MAGIC_CMD="$lt_save_MAGIC_CMD"
7753   ;;
7754 esac
7755 fi
7756
7757 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7758 if test -n "$MAGIC_CMD"; then
7759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7760 $as_echo "$MAGIC_CMD" >&6; }
7761 else
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7764 fi
7765
7766
7767   else
7768     MAGIC_CMD=:
7769   fi
7770 fi
7771
7772   fi
7773   ;;
7774 esac
7775
7776 # Use C for the default configuration in the libtool script
7777
7778 lt_save_CC="$CC"
7779 ac_ext=c
7780 ac_cpp='$CPP $CPPFLAGS'
7781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7784
7785
7786 # Source file extension for C test sources.
7787 ac_ext=c
7788
7789 # Object file extension for compiled C test sources.
7790 objext=o
7791 objext=$objext
7792
7793 # Code to be used in simple compile tests
7794 lt_simple_compile_test_code="int some_variable = 0;"
7795
7796 # Code to be used in simple link tests
7797 lt_simple_link_test_code='int main(){return(0);}'
7798
7799
7800
7801
7802
7803
7804
7805 # If no C compiler was specified, use CC.
7806 LTCC=${LTCC-"$CC"}
7807
7808 # If no C compiler flags were specified, use CFLAGS.
7809 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7810
7811 # Allow CC to be a program name with arguments.
7812 compiler=$CC
7813
7814 # Save the default compiler, since it gets overwritten when the other
7815 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7816 compiler_DEFAULT=$CC
7817
7818 # save warnings/boilerplate of simple test code
7819 ac_outfile=conftest.$ac_objext
7820 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7821 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7822 _lt_compiler_boilerplate=`cat conftest.err`
7823 $RM conftest*
7824
7825 ac_outfile=conftest.$ac_objext
7826 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7827 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7828 _lt_linker_boilerplate=`cat conftest.err`
7829 $RM -r conftest*
7830
7831
7832 ## CAVEAT EMPTOR:
7833 ## There is no encapsulation within the following macros, do not change
7834 ## the running order or otherwise move them around unless you know exactly
7835 ## what you are doing...
7836 if test -n "$compiler"; then
7837
7838 lt_prog_compiler_no_builtin_flag=
7839
7840 if test "$GCC" = yes; then
7841   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7842
7843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7844 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7845 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7846   $as_echo_n "(cached) " >&6
7847 else
7848   lt_cv_prog_compiler_rtti_exceptions=no
7849    ac_outfile=conftest.$ac_objext
7850    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7851    lt_compiler_flag="-fno-rtti -fno-exceptions"
7852    # Insert the option either (1) after the last *FLAGS variable, or
7853    # (2) before a word containing "conftest.", or (3) at the end.
7854    # Note that $ac_compile itself does not contain backslashes and begins
7855    # with a dollar sign (not a hyphen), so the echo should work correctly.
7856    # The option is referenced via a variable to avoid confusing sed.
7857    lt_compile=`echo "$ac_compile" | $SED \
7858    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7859    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7860    -e 's:$: $lt_compiler_flag:'`
7861    (eval echo "\"\$as_me:7861: $lt_compile\"" >&5)
7862    (eval "$lt_compile" 2>conftest.err)
7863    ac_status=$?
7864    cat conftest.err >&5
7865    echo "$as_me:7865: \$? = $ac_status" >&5
7866    if (exit $ac_status) && test -s "$ac_outfile"; then
7867      # The compiler can only warn and ignore the option if not recognized
7868      # So say no if there are warnings other than the usual output.
7869      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7870      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7871      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7872        lt_cv_prog_compiler_rtti_exceptions=yes
7873      fi
7874    fi
7875    $RM conftest*
7876
7877 fi
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7879 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7880
7881 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7882     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7883 else
7884     :
7885 fi
7886
7887 fi
7888
7889
7890
7891
7892
7893
7894   lt_prog_compiler_wl=
7895 lt_prog_compiler_pic=
7896 lt_prog_compiler_static=
7897
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7899 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7900
7901   if test "$GCC" = yes; then
7902     lt_prog_compiler_wl='-Wl,'
7903     lt_prog_compiler_static='-static'
7904
7905     case $host_os in
7906       aix*)
7907       # All AIX code is PIC.
7908       if test "$host_cpu" = ia64; then
7909         # AIX 5 now supports IA64 processor
7910         lt_prog_compiler_static='-Bstatic'
7911       fi
7912       ;;
7913
7914     amigaos*)
7915       case $host_cpu in
7916       powerpc)
7917             # see comment about AmigaOS4 .so support
7918             lt_prog_compiler_pic='-fPIC'
7919         ;;
7920       m68k)
7921             # FIXME: we need at least 68020 code to build shared libraries, but
7922             # adding the `-m68020' flag to GCC prevents building anything better,
7923             # like `-m68040'.
7924             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7925         ;;
7926       esac
7927       ;;
7928
7929     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7930       # PIC is the default for these OSes.
7931       ;;
7932
7933     mingw* | cygwin* | pw32* | os2* | cegcc*)
7934       # This hack is so that the source file can tell whether it is being
7935       # built for inclusion in a dll (and should export symbols for example).
7936       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7937       # (--disable-auto-import) libraries
7938       lt_prog_compiler_pic='-DDLL_EXPORT'
7939       ;;
7940
7941     darwin* | rhapsody*)
7942       # PIC is the default on this platform
7943       # Common symbols not allowed in MH_DYLIB files
7944       lt_prog_compiler_pic='-fno-common'
7945       ;;
7946
7947     hpux*)
7948       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7949       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7950       # sets the default TLS model and affects inlining.
7951       case $host_cpu in
7952       hppa*64*)
7953         # +Z the default
7954         ;;
7955       *)
7956         lt_prog_compiler_pic='-fPIC'
7957         ;;
7958       esac
7959       ;;
7960
7961     interix[3-9]*)
7962       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7963       # Instead, we relocate shared libraries at runtime.
7964       ;;
7965
7966     msdosdjgpp*)
7967       # Just because we use GCC doesn't mean we suddenly get shared libraries
7968       # on systems that don't support them.
7969       lt_prog_compiler_can_build_shared=no
7970       enable_shared=no
7971       ;;
7972
7973     *nto* | *qnx*)
7974       # QNX uses GNU C++, but need to define -shared option too, otherwise
7975       # it will coredump.
7976       lt_prog_compiler_pic='-fPIC -shared'
7977       ;;
7978
7979     sysv4*MP*)
7980       if test -d /usr/nec; then
7981         lt_prog_compiler_pic=-Kconform_pic
7982       fi
7983       ;;
7984
7985     *)
7986       lt_prog_compiler_pic='-fPIC'
7987       ;;
7988     esac
7989   else
7990     # PORTME Check for flag to pass linker flags through the system compiler.
7991     case $host_os in
7992     aix*)
7993       lt_prog_compiler_wl='-Wl,'
7994       if test "$host_cpu" = ia64; then
7995         # AIX 5 now supports IA64 processor
7996         lt_prog_compiler_static='-Bstatic'
7997       else
7998         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7999       fi
8000       ;;
8001
8002     mingw* | cygwin* | pw32* | os2* | cegcc*)
8003       # This hack is so that the source file can tell whether it is being
8004       # built for inclusion in a dll (and should export symbols for example).
8005       lt_prog_compiler_pic='-DDLL_EXPORT'
8006       ;;
8007
8008     hpux9* | hpux10* | hpux11*)
8009       lt_prog_compiler_wl='-Wl,'
8010       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8011       # not for PA HP-UX.
8012       case $host_cpu in
8013       hppa*64*|ia64*)
8014         # +Z the default
8015         ;;
8016       *)
8017         lt_prog_compiler_pic='+Z'
8018         ;;
8019       esac
8020       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8021       lt_prog_compiler_static='${wl}-a ${wl}archive'
8022       ;;
8023
8024     irix5* | irix6* | nonstopux*)
8025       lt_prog_compiler_wl='-Wl,'
8026       # PIC (with -KPIC) is the default.
8027       lt_prog_compiler_static='-non_shared'
8028       ;;
8029
8030     linux* | k*bsd*-gnu)
8031       case $cc_basename in
8032       # old Intel for x86_64 which still supported -KPIC.
8033       ecc*)
8034         lt_prog_compiler_wl='-Wl,'
8035         lt_prog_compiler_pic='-KPIC'
8036         lt_prog_compiler_static='-static'
8037         ;;
8038       # icc used to be incompatible with GCC.
8039       # ICC 10 doesn't accept -KPIC any more.
8040       icc* | ifort*)
8041         lt_prog_compiler_wl='-Wl,'
8042         lt_prog_compiler_pic='-fPIC'
8043         lt_prog_compiler_static='-static'
8044         ;;
8045       # Lahey Fortran 8.1.
8046       lf95*)
8047         lt_prog_compiler_wl='-Wl,'
8048         lt_prog_compiler_pic='--shared'
8049         lt_prog_compiler_static='--static'
8050         ;;
8051       pgcc* | pgf77* | pgf90* | pgf95*)
8052         # Portland Group compilers (*not* the Pentium gcc compiler,
8053         # which looks to be a dead project)
8054         lt_prog_compiler_wl='-Wl,'
8055         lt_prog_compiler_pic='-fpic'
8056         lt_prog_compiler_static='-Bstatic'
8057         ;;
8058       ccc*)
8059         lt_prog_compiler_wl='-Wl,'
8060         # All Alpha code is PIC.
8061         lt_prog_compiler_static='-non_shared'
8062         ;;
8063       xl*)
8064         # IBM XL C 8.0/Fortran 10.1 on PPC
8065         lt_prog_compiler_wl='-Wl,'
8066         lt_prog_compiler_pic='-qpic'
8067         lt_prog_compiler_static='-qstaticlink'
8068         ;;
8069       *)
8070         case `$CC -V 2>&1 | sed 5q` in
8071         *Sun\ C*)
8072           # Sun C 5.9
8073           lt_prog_compiler_pic='-KPIC'
8074           lt_prog_compiler_static='-Bstatic'
8075           lt_prog_compiler_wl='-Wl,'
8076           ;;
8077         *Sun\ F*)
8078           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8079           lt_prog_compiler_pic='-KPIC'
8080           lt_prog_compiler_static='-Bstatic'
8081           lt_prog_compiler_wl=''
8082           ;;
8083         esac
8084         ;;
8085       esac
8086       ;;
8087
8088     newsos6)
8089       lt_prog_compiler_pic='-KPIC'
8090       lt_prog_compiler_static='-Bstatic'
8091       ;;
8092
8093     *nto* | *qnx*)
8094       # QNX uses GNU C++, but need to define -shared option too, otherwise
8095       # it will coredump.
8096       lt_prog_compiler_pic='-fPIC -shared'
8097       ;;
8098
8099     osf3* | osf4* | osf5*)
8100       lt_prog_compiler_wl='-Wl,'
8101       # All OSF/1 code is PIC.
8102       lt_prog_compiler_static='-non_shared'
8103       ;;
8104
8105     rdos*)
8106       lt_prog_compiler_static='-non_shared'
8107       ;;
8108
8109     solaris*)
8110       lt_prog_compiler_pic='-KPIC'
8111       lt_prog_compiler_static='-Bstatic'
8112       case $cc_basename in
8113       f77* | f90* | f95*)
8114         lt_prog_compiler_wl='-Qoption ld ';;
8115       *)
8116         lt_prog_compiler_wl='-Wl,';;
8117       esac
8118       ;;
8119
8120     sunos4*)
8121       lt_prog_compiler_wl='-Qoption ld '
8122       lt_prog_compiler_pic='-PIC'
8123       lt_prog_compiler_static='-Bstatic'
8124       ;;
8125
8126     sysv4 | sysv4.2uw2* | sysv4.3*)
8127       lt_prog_compiler_wl='-Wl,'
8128       lt_prog_compiler_pic='-KPIC'
8129       lt_prog_compiler_static='-Bstatic'
8130       ;;
8131
8132     sysv4*MP*)
8133       if test -d /usr/nec ;then
8134         lt_prog_compiler_pic='-Kconform_pic'
8135         lt_prog_compiler_static='-Bstatic'
8136       fi
8137       ;;
8138
8139     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8140       lt_prog_compiler_wl='-Wl,'
8141       lt_prog_compiler_pic='-KPIC'
8142       lt_prog_compiler_static='-Bstatic'
8143       ;;
8144
8145     unicos*)
8146       lt_prog_compiler_wl='-Wl,'
8147       lt_prog_compiler_can_build_shared=no
8148       ;;
8149
8150     uts4*)
8151       lt_prog_compiler_pic='-pic'
8152       lt_prog_compiler_static='-Bstatic'
8153       ;;
8154
8155     *)
8156       lt_prog_compiler_can_build_shared=no
8157       ;;
8158     esac
8159   fi
8160
8161 case $host_os in
8162   # For platforms which do not support PIC, -DPIC is meaningless:
8163   *djgpp*)
8164     lt_prog_compiler_pic=
8165     ;;
8166   *)
8167     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8168     ;;
8169 esac
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8171 $as_echo "$lt_prog_compiler_pic" >&6; }
8172
8173
8174
8175
8176
8177
8178 #
8179 # Check to make sure the PIC flag actually works.
8180 #
8181 if test -n "$lt_prog_compiler_pic"; then
8182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8183 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8184 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8185   $as_echo_n "(cached) " >&6
8186 else
8187   lt_cv_prog_compiler_pic_works=no
8188    ac_outfile=conftest.$ac_objext
8189    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8190    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8191    # Insert the option either (1) after the last *FLAGS variable, or
8192    # (2) before a word containing "conftest.", or (3) at the end.
8193    # Note that $ac_compile itself does not contain backslashes and begins
8194    # with a dollar sign (not a hyphen), so the echo should work correctly.
8195    # The option is referenced via a variable to avoid confusing sed.
8196    lt_compile=`echo "$ac_compile" | $SED \
8197    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8198    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8199    -e 's:$: $lt_compiler_flag:'`
8200    (eval echo "\"\$as_me:8200: $lt_compile\"" >&5)
8201    (eval "$lt_compile" 2>conftest.err)
8202    ac_status=$?
8203    cat conftest.err >&5
8204    echo "$as_me:8204: \$? = $ac_status" >&5
8205    if (exit $ac_status) && test -s "$ac_outfile"; then
8206      # The compiler can only warn and ignore the option if not recognized
8207      # So say no if there are warnings other than the usual output.
8208      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8209      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8210      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8211        lt_cv_prog_compiler_pic_works=yes
8212      fi
8213    fi
8214    $RM conftest*
8215
8216 fi
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8218 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8219
8220 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8221     case $lt_prog_compiler_pic in
8222      "" | " "*) ;;
8223      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8224      esac
8225 else
8226     lt_prog_compiler_pic=
8227      lt_prog_compiler_can_build_shared=no
8228 fi
8229
8230 fi
8231
8232
8233
8234
8235
8236
8237 #
8238 # Check to make sure the static flag actually works.
8239 #
8240 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8242 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8243 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8244   $as_echo_n "(cached) " >&6
8245 else
8246   lt_cv_prog_compiler_static_works=no
8247    save_LDFLAGS="$LDFLAGS"
8248    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8249    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8250    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8251      # The linker can only warn and ignore the option if not recognized
8252      # So say no if there are warnings
8253      if test -s conftest.err; then
8254        # Append any errors to the config.log.
8255        cat conftest.err 1>&5
8256        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8257        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8258        if diff conftest.exp conftest.er2 >/dev/null; then
8259          lt_cv_prog_compiler_static_works=yes
8260        fi
8261      else
8262        lt_cv_prog_compiler_static_works=yes
8263      fi
8264    fi
8265    $RM -r conftest*
8266    LDFLAGS="$save_LDFLAGS"
8267
8268 fi
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8270 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8271
8272 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8273     :
8274 else
8275     lt_prog_compiler_static=
8276 fi
8277
8278
8279
8280
8281
8282
8283
8284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8285 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8286 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8287   $as_echo_n "(cached) " >&6
8288 else
8289   lt_cv_prog_compiler_c_o=no
8290    $RM -r conftest 2>/dev/null
8291    mkdir conftest
8292    cd conftest
8293    mkdir out
8294    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8295
8296    lt_compiler_flag="-o out/conftest2.$ac_objext"
8297    # Insert the option either (1) after the last *FLAGS variable, or
8298    # (2) before a word containing "conftest.", or (3) at the end.
8299    # Note that $ac_compile itself does not contain backslashes and begins
8300    # with a dollar sign (not a hyphen), so the echo should work correctly.
8301    lt_compile=`echo "$ac_compile" | $SED \
8302    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8303    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8304    -e 's:$: $lt_compiler_flag:'`
8305    (eval echo "\"\$as_me:8305: $lt_compile\"" >&5)
8306    (eval "$lt_compile" 2>out/conftest.err)
8307    ac_status=$?
8308    cat out/conftest.err >&5
8309    echo "$as_me:8309: \$? = $ac_status" >&5
8310    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8311    then
8312      # The compiler can only warn and ignore the option if not recognized
8313      # So say no if there are warnings
8314      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8315      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8316      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8317        lt_cv_prog_compiler_c_o=yes
8318      fi
8319    fi
8320    chmod u+w . 2>&5
8321    $RM conftest*
8322    # SGI C++ compiler will create directory out/ii_files/ for
8323    # template instantiation
8324    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8325    $RM out/* && rmdir out
8326    cd ..
8327    $RM -r conftest
8328    $RM conftest*
8329
8330 fi
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8332 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8333
8334
8335
8336
8337
8338
8339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8340 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8341 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8342   $as_echo_n "(cached) " >&6
8343 else
8344   lt_cv_prog_compiler_c_o=no
8345    $RM -r conftest 2>/dev/null
8346    mkdir conftest
8347    cd conftest
8348    mkdir out
8349    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8350
8351    lt_compiler_flag="-o out/conftest2.$ac_objext"
8352    # Insert the option either (1) after the last *FLAGS variable, or
8353    # (2) before a word containing "conftest.", or (3) at the end.
8354    # Note that $ac_compile itself does not contain backslashes and begins
8355    # with a dollar sign (not a hyphen), so the echo should work correctly.
8356    lt_compile=`echo "$ac_compile" | $SED \
8357    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8358    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8359    -e 's:$: $lt_compiler_flag:'`
8360    (eval echo "\"\$as_me:8360: $lt_compile\"" >&5)
8361    (eval "$lt_compile" 2>out/conftest.err)
8362    ac_status=$?
8363    cat out/conftest.err >&5
8364    echo "$as_me:8364: \$? = $ac_status" >&5
8365    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8366    then
8367      # The compiler can only warn and ignore the option if not recognized
8368      # So say no if there are warnings
8369      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8370      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8371      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8372        lt_cv_prog_compiler_c_o=yes
8373      fi
8374    fi
8375    chmod u+w . 2>&5
8376    $RM conftest*
8377    # SGI C++ compiler will create directory out/ii_files/ for
8378    # template instantiation
8379    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8380    $RM out/* && rmdir out
8381    cd ..
8382    $RM -r conftest
8383    $RM conftest*
8384
8385 fi
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8387 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8388
8389
8390
8391
8392 hard_links="nottested"
8393 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8394   # do not overwrite the value of need_locks provided by the user
8395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8396 $as_echo_n "checking if we can lock with hard links... " >&6; }
8397   hard_links=yes
8398   $RM conftest*
8399   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8400   touch conftest.a
8401   ln conftest.a conftest.b 2>&5 || hard_links=no
8402   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8404 $as_echo "$hard_links" >&6; }
8405   if test "$hard_links" = no; then
8406     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8407 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8408     need_locks=warn
8409   fi
8410 else
8411   need_locks=no
8412 fi
8413
8414
8415
8416
8417
8418
8419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8420 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8421
8422   runpath_var=
8423   allow_undefined_flag=
8424   always_export_symbols=no
8425   archive_cmds=
8426   archive_expsym_cmds=
8427   compiler_needs_object=no
8428   enable_shared_with_static_runtimes=no
8429   export_dynamic_flag_spec=
8430   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8431   hardcode_automatic=no
8432   hardcode_direct=no
8433   hardcode_direct_absolute=no
8434   hardcode_libdir_flag_spec=
8435   hardcode_libdir_flag_spec_ld=
8436   hardcode_libdir_separator=
8437   hardcode_minus_L=no
8438   hardcode_shlibpath_var=unsupported
8439   inherit_rpath=no
8440   link_all_deplibs=unknown
8441   module_cmds=
8442   module_expsym_cmds=
8443   old_archive_from_new_cmds=
8444   old_archive_from_expsyms_cmds=
8445   thread_safe_flag_spec=
8446   whole_archive_flag_spec=
8447   # include_expsyms should be a list of space-separated symbols to be *always*
8448   # included in the symbol list
8449   include_expsyms=
8450   # exclude_expsyms can be an extended regexp of symbols to exclude
8451   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8452   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8453   # as well as any symbol that contains `d'.
8454   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8455   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8456   # platforms (ab)use it in PIC code, but their linkers get confused if
8457   # the symbol is explicitly referenced.  Since portable code cannot
8458   # rely on this symbol name, it's probably fine to never include it in
8459   # preloaded symbol tables.
8460   # Exclude shared library initialization/finalization symbols.
8461   extract_expsyms_cmds=
8462
8463   case $host_os in
8464   cygwin* | mingw* | pw32* | cegcc*)
8465     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8466     # When not using gcc, we currently assume that we are using
8467     # Microsoft Visual C++.
8468     if test "$GCC" != yes; then
8469       with_gnu_ld=no
8470     fi
8471     ;;
8472   interix*)
8473     # we just hope/assume this is gcc and not c89 (= MSVC++)
8474     with_gnu_ld=yes
8475     ;;
8476   openbsd*)
8477     with_gnu_ld=no
8478     ;;
8479   linux* | k*bsd*-gnu)
8480     link_all_deplibs=no
8481     ;;
8482   esac
8483
8484   ld_shlibs=yes
8485   if test "$with_gnu_ld" = yes; then
8486     # If archive_cmds runs LD, not CC, wlarc should be empty
8487     wlarc='${wl}'
8488
8489     # Set some defaults for GNU ld with shared library support. These
8490     # are reset later if shared libraries are not supported. Putting them
8491     # here allows them to be overridden if necessary.
8492     runpath_var=LD_RUN_PATH
8493     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8494     export_dynamic_flag_spec='${wl}--export-dynamic'
8495     # ancient GNU ld didn't support --whole-archive et. al.
8496     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8497       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8498     else
8499       whole_archive_flag_spec=
8500     fi
8501     supports_anon_versioning=no
8502     case `$LD -v 2>&1` in
8503       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8504       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8505       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8506       *\ 2.11.*) ;; # other 2.11 versions
8507       *) supports_anon_versioning=yes ;;
8508     esac
8509
8510     # See if GNU ld supports shared libraries.
8511     case $host_os in
8512     aix[3-9]*)
8513       # On AIX/PPC, the GNU linker is very broken
8514       if test "$host_cpu" != ia64; then
8515         ld_shlibs=no
8516         cat <<_LT_EOF 1>&2
8517
8518 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8519 *** to be unable to reliably create shared libraries on AIX.
8520 *** Therefore, libtool is disabling shared libraries support.  If you
8521 *** really care for shared libraries, you may want to modify your PATH
8522 *** so that a non-GNU linker is found, and then restart.
8523
8524 _LT_EOF
8525       fi
8526       ;;
8527
8528     amigaos*)
8529       case $host_cpu in
8530       powerpc)
8531             # see comment about AmigaOS4 .so support
8532             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8533             archive_expsym_cmds=''
8534         ;;
8535       m68k)
8536             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)'
8537             hardcode_libdir_flag_spec='-L$libdir'
8538             hardcode_minus_L=yes
8539         ;;
8540       esac
8541       ;;
8542
8543     beos*)
8544       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8545         allow_undefined_flag=unsupported
8546         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8547         # support --undefined.  This deserves some investigation.  FIXME
8548         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549       else
8550         ld_shlibs=no
8551       fi
8552       ;;
8553
8554     cygwin* | mingw* | pw32* | cegcc*)
8555       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8556       # as there is no search path for DLLs.
8557       hardcode_libdir_flag_spec='-L$libdir'
8558       allow_undefined_flag=unsupported
8559       always_export_symbols=no
8560       enable_shared_with_static_runtimes=yes
8561       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8562
8563       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8564         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8565         # If the export-symbols file already is a .def file (1st line
8566         # is EXPORTS), use it as is; otherwise, prepend...
8567         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8568           cp $export_symbols $output_objdir/$soname.def;
8569         else
8570           echo EXPORTS > $output_objdir/$soname.def;
8571           cat $export_symbols >> $output_objdir/$soname.def;
8572         fi~
8573         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8574       else
8575         ld_shlibs=no
8576       fi
8577       ;;
8578
8579     interix[3-9]*)
8580       hardcode_direct=no
8581       hardcode_shlibpath_var=no
8582       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8583       export_dynamic_flag_spec='${wl}-E'
8584       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8585       # Instead, shared libraries are loaded at an image base (0x10000000 by
8586       # default) and relocated if they conflict, which is a slow very memory
8587       # consuming and fragmenting process.  To avoid this, we pick a random,
8588       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8589       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8590       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8591       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'
8592       ;;
8593
8594     gnu* | linux* | tpf* | k*bsd*-gnu)
8595       tmp_diet=no
8596       if test "$host_os" = linux-dietlibc; then
8597         case $cc_basename in
8598           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8599         esac
8600       fi
8601       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8602          && test "$tmp_diet" = no
8603       then
8604         tmp_addflag=
8605         tmp_sharedflag='-shared'
8606         case $cc_basename,$host_cpu in
8607         pgcc*)                          # Portland Group C compiler
8608           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'
8609           tmp_addflag=' $pic_flag'
8610           ;;
8611         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8612           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'
8613           tmp_addflag=' $pic_flag -Mnomain' ;;
8614         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8615           tmp_addflag=' -i_dynamic' ;;
8616         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8617           tmp_addflag=' -i_dynamic -nofor_main' ;;
8618         ifc* | ifort*)                  # Intel Fortran compiler
8619           tmp_addflag=' -nofor_main' ;;
8620         lf95*)                          # Lahey Fortran 8.1
8621           whole_archive_flag_spec=
8622           tmp_sharedflag='--shared' ;;
8623         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8624           tmp_sharedflag='-qmkshrobj'
8625           tmp_addflag= ;;
8626         esac
8627         case `$CC -V 2>&1 | sed 5q` in
8628         *Sun\ C*)                       # Sun C 5.9
8629           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'
8630           compiler_needs_object=yes
8631           tmp_sharedflag='-G' ;;
8632         *Sun\ F*)                       # Sun Fortran 8.3
8633           tmp_sharedflag='-G' ;;
8634         esac
8635         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8636
8637         if test "x$supports_anon_versioning" = xyes; then
8638           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8639             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8640             echo "local: *; };" >> $output_objdir/$libname.ver~
8641             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8642         fi
8643
8644         case $cc_basename in
8645         xlf*)
8646           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8647           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8648           hardcode_libdir_flag_spec=
8649           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8650           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8651           if test "x$supports_anon_versioning" = xyes; then
8652             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8653               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8654               echo "local: *; };" >> $output_objdir/$libname.ver~
8655               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8656           fi
8657           ;;
8658         esac
8659       else
8660         ld_shlibs=no
8661       fi
8662       ;;
8663
8664     netbsd* | netbsdelf*-gnu)
8665       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8666         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8667         wlarc=
8668       else
8669         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8670         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8671       fi
8672       ;;
8673
8674     solaris*)
8675       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8676         ld_shlibs=no
8677         cat <<_LT_EOF 1>&2
8678
8679 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8680 *** create shared libraries on Solaris systems.  Therefore, libtool
8681 *** is disabling shared libraries support.  We urge you to upgrade GNU
8682 *** binutils to release 2.9.1 or newer.  Another option is to modify
8683 *** your PATH or compiler configuration so that the native linker is
8684 *** used, and then restart.
8685
8686 _LT_EOF
8687       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8688         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8689         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8690       else
8691         ld_shlibs=no
8692       fi
8693       ;;
8694
8695     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8696       case `$LD -v 2>&1` in
8697         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8698         ld_shlibs=no
8699         cat <<_LT_EOF 1>&2
8700
8701 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8702 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8703 *** is disabling shared libraries support.  We urge you to upgrade GNU
8704 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8705 *** your PATH or compiler configuration so that the native linker is
8706 *** used, and then restart.
8707
8708 _LT_EOF
8709         ;;
8710         *)
8711           # For security reasons, it is highly recommended that you always
8712           # use absolute paths for naming shared libraries, and exclude the
8713           # DT_RUNPATH tag from executables and libraries.  But doing so
8714           # requires that you compile everything twice, which is a pain.
8715           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8716             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8717             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8718             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8719           else
8720             ld_shlibs=no
8721           fi
8722         ;;
8723       esac
8724       ;;
8725
8726     sunos4*)
8727       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8728       wlarc=
8729       hardcode_direct=yes
8730       hardcode_shlibpath_var=no
8731       ;;
8732
8733     *)
8734       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8735         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8736         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8737       else
8738         ld_shlibs=no
8739       fi
8740       ;;
8741     esac
8742
8743     if test "$ld_shlibs" = no; then
8744       runpath_var=
8745       hardcode_libdir_flag_spec=
8746       export_dynamic_flag_spec=
8747       whole_archive_flag_spec=
8748     fi
8749   else
8750     # PORTME fill in a description of your system's linker (not GNU ld)
8751     case $host_os in
8752     aix3*)
8753       allow_undefined_flag=unsupported
8754       always_export_symbols=yes
8755       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'
8756       # Note: this linker hardcodes the directories in LIBPATH if there
8757       # are no directories specified by -L.
8758       hardcode_minus_L=yes
8759       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8760         # Neither direct hardcoding nor static linking is supported with a
8761         # broken collect2.
8762         hardcode_direct=unsupported
8763       fi
8764       ;;
8765
8766     aix[4-9]*)
8767       if test "$host_cpu" = ia64; then
8768         # On IA64, the linker does run time linking by default, so we don't
8769         # have to do anything special.
8770         aix_use_runtimelinking=no
8771         exp_sym_flag='-Bexport'
8772         no_entry_flag=""
8773       else
8774         # If we're using GNU nm, then we don't want the "-C" option.
8775         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8776         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8777           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'
8778         else
8779           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'
8780         fi
8781         aix_use_runtimelinking=no
8782
8783         # Test if we are trying to use run time linking or normal
8784         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8785         # need to do runtime linking.
8786         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8787           for ld_flag in $LDFLAGS; do
8788           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8789             aix_use_runtimelinking=yes
8790             break
8791           fi
8792           done
8793           ;;
8794         esac
8795
8796         exp_sym_flag='-bexport'
8797         no_entry_flag='-bnoentry'
8798       fi
8799
8800       # When large executables or shared objects are built, AIX ld can
8801       # have problems creating the table of contents.  If linking a library
8802       # or program results in "error TOC overflow" add -mminimal-toc to
8803       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8804       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8805
8806       archive_cmds=''
8807       hardcode_direct=yes
8808       hardcode_direct_absolute=yes
8809       hardcode_libdir_separator=':'
8810       link_all_deplibs=yes
8811       file_list_spec='${wl}-f,'
8812
8813       if test "$GCC" = yes; then
8814         case $host_os in aix4.[012]|aix4.[012].*)
8815         # We only want to do this on AIX 4.2 and lower, the check
8816         # below for broken collect2 doesn't work under 4.3+
8817           collect2name=`${CC} -print-prog-name=collect2`
8818           if test -f "$collect2name" &&
8819            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8820           then
8821           # We have reworked collect2
8822           :
8823           else
8824           # We have old collect2
8825           hardcode_direct=unsupported
8826           # It fails to find uninstalled libraries when the uninstalled
8827           # path is not listed in the libpath.  Setting hardcode_minus_L
8828           # to unsupported forces relinking
8829           hardcode_minus_L=yes
8830           hardcode_libdir_flag_spec='-L$libdir'
8831           hardcode_libdir_separator=
8832           fi
8833           ;;
8834         esac
8835         shared_flag='-shared'
8836         if test "$aix_use_runtimelinking" = yes; then
8837           shared_flag="$shared_flag "'${wl}-G'
8838         fi
8839         link_all_deplibs=no
8840       else
8841         # not using gcc
8842         if test "$host_cpu" = ia64; then
8843         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8844         # chokes on -Wl,-G. The following line is correct:
8845           shared_flag='-G'
8846         else
8847           if test "$aix_use_runtimelinking" = yes; then
8848             shared_flag='${wl}-G'
8849           else
8850             shared_flag='${wl}-bM:SRE'
8851           fi
8852         fi
8853       fi
8854
8855       export_dynamic_flag_spec='${wl}-bexpall'
8856       # It seems that -bexpall does not export symbols beginning with
8857       # underscore (_), so it is better to generate a list of symbols to export.
8858       always_export_symbols=yes
8859       if test "$aix_use_runtimelinking" = yes; then
8860         # Warning - without using the other runtime loading flags (-brtl),
8861         # -berok will link without error, but may produce a broken library.
8862         allow_undefined_flag='-berok'
8863         # Determine the default libpath from the value encoded in an
8864         # empty executable.
8865         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h.  */
8867
8868 int
8869 main ()
8870 {
8871
8872   ;
8873   return 0;
8874 }
8875 _ACEOF
8876 if ac_fn_c_try_link "$LINENO"; then :
8877
8878 lt_aix_libpath_sed='
8879     /Import File Strings/,/^$/ {
8880         /^0/ {
8881             s/^0  *\(.*\)$/\1/
8882             p
8883         }
8884     }'
8885 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8886 # Check for a 64-bit object if we didn't find anything.
8887 if test -z "$aix_libpath"; then
8888   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8889 fi
8890 fi
8891 rm -f core conftest.err conftest.$ac_objext \
8892     conftest$ac_exeext conftest.$ac_ext
8893 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8894
8895         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8896         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"
8897       else
8898         if test "$host_cpu" = ia64; then
8899           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8900           allow_undefined_flag="-z nodefs"
8901           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"
8902         else
8903          # Determine the default libpath from the value encoded in an
8904          # empty executable.
8905          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h.  */
8907
8908 int
8909 main ()
8910 {
8911
8912   ;
8913   return 0;
8914 }
8915 _ACEOF
8916 if ac_fn_c_try_link "$LINENO"; then :
8917
8918 lt_aix_libpath_sed='
8919     /Import File Strings/,/^$/ {
8920         /^0/ {
8921             s/^0  *\(.*\)$/\1/
8922             p
8923         }
8924     }'
8925 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8926 # Check for a 64-bit object if we didn't find anything.
8927 if test -z "$aix_libpath"; then
8928   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8929 fi
8930 fi
8931 rm -f core conftest.err conftest.$ac_objext \
8932     conftest$ac_exeext conftest.$ac_ext
8933 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8934
8935          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8936           # Warning - without using the other run time loading flags,
8937           # -berok will link without error, but may produce a broken library.
8938           no_undefined_flag=' ${wl}-bernotok'
8939           allow_undefined_flag=' ${wl}-berok'
8940           # Exported symbols can be pulled into shared objects from archives
8941           whole_archive_flag_spec='$convenience'
8942           archive_cmds_need_lc=yes
8943           # This is similar to how AIX traditionally builds its shared libraries.
8944           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'
8945         fi
8946       fi
8947       ;;
8948
8949     amigaos*)
8950       case $host_cpu in
8951       powerpc)
8952             # see comment about AmigaOS4 .so support
8953             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8954             archive_expsym_cmds=''
8955         ;;
8956       m68k)
8957             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)'
8958             hardcode_libdir_flag_spec='-L$libdir'
8959             hardcode_minus_L=yes
8960         ;;
8961       esac
8962       ;;
8963
8964     bsdi[45]*)
8965       export_dynamic_flag_spec=-rdynamic
8966       ;;
8967
8968     cygwin* | mingw* | pw32* | cegcc*)
8969       # When not using gcc, we currently assume that we are using
8970       # Microsoft Visual C++.
8971       # hardcode_libdir_flag_spec is actually meaningless, as there is
8972       # no search path for DLLs.
8973       hardcode_libdir_flag_spec=' '
8974       allow_undefined_flag=unsupported
8975       # Tell ltmain to make .lib files, not .a files.
8976       libext=lib
8977       # Tell ltmain to make .dll files, not .so files.
8978       shrext_cmds=".dll"
8979       # FIXME: Setting linknames here is a bad hack.
8980       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8981       # The linker will automatically build a .lib file if we build a DLL.
8982       old_archive_from_new_cmds='true'
8983       # FIXME: Should let the user specify the lib program.
8984       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8985       fix_srcfile_path='`cygpath -w "$srcfile"`'
8986       enable_shared_with_static_runtimes=yes
8987       ;;
8988
8989     darwin* | rhapsody*)
8990
8991
8992   archive_cmds_need_lc=no
8993   hardcode_direct=no
8994   hardcode_automatic=yes
8995   hardcode_shlibpath_var=unsupported
8996   whole_archive_flag_spec=''
8997   link_all_deplibs=yes
8998   allow_undefined_flag="$_lt_dar_allow_undefined"
8999   case $cc_basename in
9000      ifort*) _lt_dar_can_shared=yes ;;
9001      *) _lt_dar_can_shared=$GCC ;;
9002   esac
9003   if test "$_lt_dar_can_shared" = "yes"; then
9004     output_verbose_link_cmd=echo
9005     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9006     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9007     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}"
9008     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}"
9009
9010   else
9011   ld_shlibs=no
9012   fi
9013
9014       ;;
9015
9016     dgux*)
9017       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9018       hardcode_libdir_flag_spec='-L$libdir'
9019       hardcode_shlibpath_var=no
9020       ;;
9021
9022     freebsd1*)
9023       ld_shlibs=no
9024       ;;
9025
9026     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9027     # support.  Future versions do this automatically, but an explicit c++rt0.o
9028     # does not break anything, and helps significantly (at the cost of a little
9029     # extra space).
9030     freebsd2.2*)
9031       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9032       hardcode_libdir_flag_spec='-R$libdir'
9033       hardcode_direct=yes
9034       hardcode_shlibpath_var=no
9035       ;;
9036
9037     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9038     freebsd2*)
9039       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9040       hardcode_direct=yes
9041       hardcode_minus_L=yes
9042       hardcode_shlibpath_var=no
9043       ;;
9044
9045     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9046     freebsd* | dragonfly*)
9047       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9048       hardcode_libdir_flag_spec='-R$libdir'
9049       hardcode_direct=yes
9050       hardcode_shlibpath_var=no
9051       ;;
9052
9053     hpux9*)
9054       if test "$GCC" = yes; then
9055         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'
9056       else
9057         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'
9058       fi
9059       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9060       hardcode_libdir_separator=:
9061       hardcode_direct=yes
9062
9063       # hardcode_minus_L: Not really in the search PATH,
9064       # but as the default location of the library.
9065       hardcode_minus_L=yes
9066       export_dynamic_flag_spec='${wl}-E'
9067       ;;
9068
9069     hpux10*)
9070       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9071         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9072       else
9073         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9074       fi
9075       if test "$with_gnu_ld" = no; then
9076         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9077         hardcode_libdir_flag_spec_ld='+b $libdir'
9078         hardcode_libdir_separator=:
9079         hardcode_direct=yes
9080         hardcode_direct_absolute=yes
9081         export_dynamic_flag_spec='${wl}-E'
9082         # hardcode_minus_L: Not really in the search PATH,
9083         # but as the default location of the library.
9084         hardcode_minus_L=yes
9085       fi
9086       ;;
9087
9088     hpux11*)
9089       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9090         case $host_cpu in
9091         hppa*64*)
9092           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9093           ;;
9094         ia64*)
9095           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9096           ;;
9097         *)
9098           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9099           ;;
9100         esac
9101       else
9102         case $host_cpu in
9103         hppa*64*)
9104           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9105           ;;
9106         ia64*)
9107           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9108           ;;
9109         *)
9110           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9111           ;;
9112         esac
9113       fi
9114       if test "$with_gnu_ld" = no; then
9115         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9116         hardcode_libdir_separator=:
9117
9118         case $host_cpu in
9119         hppa*64*|ia64*)
9120           hardcode_direct=no
9121           hardcode_shlibpath_var=no
9122           ;;
9123         *)
9124           hardcode_direct=yes
9125           hardcode_direct_absolute=yes
9126           export_dynamic_flag_spec='${wl}-E'
9127
9128           # hardcode_minus_L: Not really in the search PATH,
9129           # but as the default location of the library.
9130           hardcode_minus_L=yes
9131           ;;
9132         esac
9133       fi
9134       ;;
9135
9136     irix5* | irix6* | nonstopux*)
9137       if test "$GCC" = yes; then
9138         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'
9139         # Try to use the -exported_symbol ld option, if it does not
9140         # work, assume that -exports_file does not work either and
9141         # implicitly export all symbols.
9142         save_LDFLAGS="$LDFLAGS"
9143         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9144         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h.  */
9146 int foo(void) {}
9147 _ACEOF
9148 if ac_fn_c_try_link "$LINENO"; then :
9149   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'
9150
9151 fi
9152 rm -f core conftest.err conftest.$ac_objext \
9153     conftest$ac_exeext conftest.$ac_ext
9154         LDFLAGS="$save_LDFLAGS"
9155       else
9156         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'
9157         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'
9158       fi
9159       archive_cmds_need_lc='no'
9160       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9161       hardcode_libdir_separator=:
9162       inherit_rpath=yes
9163       link_all_deplibs=yes
9164       ;;
9165
9166     netbsd* | netbsdelf*-gnu)
9167       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9168         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9169       else
9170         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9171       fi
9172       hardcode_libdir_flag_spec='-R$libdir'
9173       hardcode_direct=yes
9174       hardcode_shlibpath_var=no
9175       ;;
9176
9177     newsos6)
9178       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9179       hardcode_direct=yes
9180       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9181       hardcode_libdir_separator=:
9182       hardcode_shlibpath_var=no
9183       ;;
9184
9185     *nto* | *qnx*)
9186       ;;
9187
9188     openbsd*)
9189       if test -f /usr/libexec/ld.so; then
9190         hardcode_direct=yes
9191         hardcode_shlibpath_var=no
9192         hardcode_direct_absolute=yes
9193         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9194           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9195           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9196           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9197           export_dynamic_flag_spec='${wl}-E'
9198         else
9199           case $host_os in
9200            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9201              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9202              hardcode_libdir_flag_spec='-R$libdir'
9203              ;;
9204            *)
9205              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9206              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9207              ;;
9208           esac
9209         fi
9210       else
9211         ld_shlibs=no
9212       fi
9213       ;;
9214
9215     os2*)
9216       hardcode_libdir_flag_spec='-L$libdir'
9217       hardcode_minus_L=yes
9218       allow_undefined_flag=unsupported
9219       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'
9220       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9221       ;;
9222
9223     osf3*)
9224       if test "$GCC" = yes; then
9225         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9226         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'
9227       else
9228         allow_undefined_flag=' -expect_unresolved \*'
9229         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'
9230       fi
9231       archive_cmds_need_lc='no'
9232       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9233       hardcode_libdir_separator=:
9234       ;;
9235
9236     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9237       if test "$GCC" = yes; then
9238         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9239         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'
9240         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9241       else
9242         allow_undefined_flag=' -expect_unresolved \*'
9243         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'
9244         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~
9245         $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'
9246
9247         # Both c and cxx compiler support -rpath directly
9248         hardcode_libdir_flag_spec='-rpath $libdir'
9249       fi
9250       archive_cmds_need_lc='no'
9251       hardcode_libdir_separator=:
9252       ;;
9253
9254     solaris*)
9255       no_undefined_flag=' -z defs'
9256       if test "$GCC" = yes; then
9257         wlarc='${wl}'
9258         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9259         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9260           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9261       else
9262         case `$CC -V 2>&1` in
9263         *"Compilers 5.0"*)
9264           wlarc=''
9265           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9266           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9267           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9268           ;;
9269         *)
9270           wlarc='${wl}'
9271           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9272           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9273           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9274           ;;
9275         esac
9276       fi
9277       hardcode_libdir_flag_spec='-R$libdir'
9278       hardcode_shlibpath_var=no
9279       case $host_os in
9280       solaris2.[0-5] | solaris2.[0-5].*) ;;
9281       *)
9282         # The compiler driver will combine and reorder linker options,
9283         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9284         # but is careful enough not to reorder.
9285         # Supported since Solaris 2.6 (maybe 2.5.1?)
9286         if test "$GCC" = yes; then
9287           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9288         else
9289           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9290         fi
9291         ;;
9292       esac
9293       link_all_deplibs=yes
9294       ;;
9295
9296     sunos4*)
9297       if test "x$host_vendor" = xsequent; then
9298         # Use $CC to link under sequent, because it throws in some extra .o
9299         # files that make .init and .fini sections work.
9300         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9301       else
9302         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9303       fi
9304       hardcode_libdir_flag_spec='-L$libdir'
9305       hardcode_direct=yes
9306       hardcode_minus_L=yes
9307       hardcode_shlibpath_var=no
9308       ;;
9309
9310     sysv4)
9311       case $host_vendor in
9312         sni)
9313           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9314           hardcode_direct=yes # is this really true???
9315         ;;
9316         siemens)
9317           ## LD is ld it makes a PLAMLIB
9318           ## CC just makes a GrossModule.
9319           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9320           reload_cmds='$CC -r -o $output$reload_objs'
9321           hardcode_direct=no
9322         ;;
9323         motorola)
9324           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9325           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9326         ;;
9327       esac
9328       runpath_var='LD_RUN_PATH'
9329       hardcode_shlibpath_var=no
9330       ;;
9331
9332     sysv4.3*)
9333       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9334       hardcode_shlibpath_var=no
9335       export_dynamic_flag_spec='-Bexport'
9336       ;;
9337
9338     sysv4*MP*)
9339       if test -d /usr/nec; then
9340         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9341         hardcode_shlibpath_var=no
9342         runpath_var=LD_RUN_PATH
9343         hardcode_runpath_var=yes
9344         ld_shlibs=yes
9345       fi
9346       ;;
9347
9348     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9349       no_undefined_flag='${wl}-z,text'
9350       archive_cmds_need_lc=no
9351       hardcode_shlibpath_var=no
9352       runpath_var='LD_RUN_PATH'
9353
9354       if test "$GCC" = yes; then
9355         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9356         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9357       else
9358         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9359         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9360       fi
9361       ;;
9362
9363     sysv5* | sco3.2v5* | sco5v6*)
9364       # Note: We can NOT use -z defs as we might desire, because we do not
9365       # link with -lc, and that would cause any symbols used from libc to
9366       # always be unresolved, which means just about no library would
9367       # ever link correctly.  If we're not using GNU ld we use -z text
9368       # though, which does catch some bad symbols but isn't as heavy-handed
9369       # as -z defs.
9370       no_undefined_flag='${wl}-z,text'
9371       allow_undefined_flag='${wl}-z,nodefs'
9372       archive_cmds_need_lc=no
9373       hardcode_shlibpath_var=no
9374       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9375       hardcode_libdir_separator=':'
9376       link_all_deplibs=yes
9377       export_dynamic_flag_spec='${wl}-Bexport'
9378       runpath_var='LD_RUN_PATH'
9379
9380       if test "$GCC" = yes; then
9381         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9382         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9383       else
9384         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9385         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9386       fi
9387       ;;
9388
9389     uts4*)
9390       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391       hardcode_libdir_flag_spec='-L$libdir'
9392       hardcode_shlibpath_var=no
9393       ;;
9394
9395     *)
9396       ld_shlibs=no
9397       ;;
9398     esac
9399
9400     if test x$host_vendor = xsni; then
9401       case $host in
9402       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9403         export_dynamic_flag_spec='${wl}-Blargedynsym'
9404         ;;
9405       esac
9406     fi
9407   fi
9408
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9410 $as_echo "$ld_shlibs" >&6; }
9411 test "$ld_shlibs" = no && can_build_shared=no
9412
9413 with_gnu_ld=$with_gnu_ld
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429 #
9430 # Do we need to explicitly link libc?
9431 #
9432 case "x$archive_cmds_need_lc" in
9433 x|xyes)
9434   # Assume -lc should be added
9435   archive_cmds_need_lc=yes
9436
9437   if test "$enable_shared" = yes && test "$GCC" = yes; then
9438     case $archive_cmds in
9439     *'~'*)
9440       # FIXME: we may have to deal with multi-command sequences.
9441       ;;
9442     '$CC '*)
9443       # Test whether the compiler implicitly links with -lc since on some
9444       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9445       # to ld, don't add -lc before -lgcc.
9446       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9447 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9448       $RM conftest*
9449       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9450
9451       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9452   (eval $ac_compile) 2>&5
9453   ac_status=$?
9454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9455   test $ac_status = 0; } 2>conftest.err; then
9456         soname=conftest
9457         lib=conftest
9458         libobjs=conftest.$ac_objext
9459         deplibs=
9460         wl=$lt_prog_compiler_wl
9461         pic_flag=$lt_prog_compiler_pic
9462         compiler_flags=-v
9463         linker_flags=-v
9464         verstring=
9465         output_objdir=.
9466         libname=conftest
9467         lt_save_allow_undefined_flag=$allow_undefined_flag
9468         allow_undefined_flag=
9469         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9470   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9471   ac_status=$?
9472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9473   test $ac_status = 0; }
9474         then
9475           archive_cmds_need_lc=no
9476         else
9477           archive_cmds_need_lc=yes
9478         fi
9479         allow_undefined_flag=$lt_save_allow_undefined_flag
9480       else
9481         cat conftest.err 1>&5
9482       fi
9483       $RM conftest*
9484       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9485 $as_echo "$archive_cmds_need_lc" >&6; }
9486       ;;
9487     esac
9488   fi
9489   ;;
9490 esac
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9649 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9650
9651 if test "$GCC" = yes; then
9652   case $host_os in
9653     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9654     *) lt_awk_arg="/^libraries:/" ;;
9655   esac
9656   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9657   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9658     # if the path contains ";" then we assume it to be the separator
9659     # otherwise default to the standard path separator (i.e. ":") - it is
9660     # assumed that no part of a normal pathname contains ";" but that should
9661     # okay in the real world where ";" in dirpaths is itself problematic.
9662     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9663   else
9664     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9665   fi
9666   # Ok, now we have the path, separated by spaces, we can step through it
9667   # and add multilib dir if necessary.
9668   lt_tmp_lt_search_path_spec=
9669   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9670   for lt_sys_path in $lt_search_path_spec; do
9671     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9672       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9673     else
9674       test -d "$lt_sys_path" && \
9675         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9676     fi
9677   done
9678   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9679 BEGIN {RS=" "; FS="/|\n";} {
9680   lt_foo="";
9681   lt_count=0;
9682   for (lt_i = NF; lt_i > 0; lt_i--) {
9683     if ($lt_i != "" && $lt_i != ".") {
9684       if ($lt_i == "..") {
9685         lt_count++;
9686       } else {
9687         if (lt_count == 0) {
9688           lt_foo="/" $lt_i lt_foo;
9689         } else {
9690           lt_count--;
9691         }
9692       }
9693     }
9694   }
9695   if (lt_foo != "") { lt_freq[lt_foo]++; }
9696   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9697 }'`
9698   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9699 else
9700   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9701 fi
9702 library_names_spec=
9703 libname_spec='lib$name'
9704 soname_spec=
9705 shrext_cmds=".so"
9706 postinstall_cmds=
9707 postuninstall_cmds=
9708 finish_cmds=
9709 finish_eval=
9710 shlibpath_var=
9711 shlibpath_overrides_runpath=unknown
9712 version_type=none
9713 dynamic_linker="$host_os ld.so"
9714 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9715 need_lib_prefix=unknown
9716 hardcode_into_libs=no
9717
9718 # when you set need_version to no, make sure it does not cause -set_version
9719 # flags to be left without arguments
9720 need_version=unknown
9721
9722 case $host_os in
9723 aix3*)
9724   version_type=linux
9725   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9726   shlibpath_var=LIBPATH
9727
9728   # AIX 3 has no versioning support, so we append a major version to the name.
9729   soname_spec='${libname}${release}${shared_ext}$major'
9730   ;;
9731
9732 aix[4-9]*)
9733   version_type=linux
9734   need_lib_prefix=no
9735   need_version=no
9736   hardcode_into_libs=yes
9737   if test "$host_cpu" = ia64; then
9738     # AIX 5 supports IA64
9739     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9740     shlibpath_var=LD_LIBRARY_PATH
9741   else
9742     # With GCC up to 2.95.x, collect2 would create an import file
9743     # for dependence libraries.  The import file would start with
9744     # the line `#! .'.  This would cause the generated library to
9745     # depend on `.', always an invalid library.  This was fixed in
9746     # development snapshots of GCC prior to 3.0.
9747     case $host_os in
9748       aix4 | aix4.[01] | aix4.[01].*)
9749       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9750            echo ' yes '
9751            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9752         :
9753       else
9754         can_build_shared=no
9755       fi
9756       ;;
9757     esac
9758     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9759     # soname into executable. Probably we can add versioning support to
9760     # collect2, so additional links can be useful in future.
9761     if test "$aix_use_runtimelinking" = yes; then
9762       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9763       # instead of lib<name>.a to let people know that these are not
9764       # typical AIX shared libraries.
9765       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766     else
9767       # We preserve .a as extension for shared libraries through AIX4.2
9768       # and later when we are not doing run time linking.
9769       library_names_spec='${libname}${release}.a $libname.a'
9770       soname_spec='${libname}${release}${shared_ext}$major'
9771     fi
9772     shlibpath_var=LIBPATH
9773   fi
9774   ;;
9775
9776 amigaos*)
9777   case $host_cpu in
9778   powerpc)
9779     # Since July 2007 AmigaOS4 officially supports .so libraries.
9780     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9781     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9782     ;;
9783   m68k)
9784     library_names_spec='$libname.ixlibrary $libname.a'
9785     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9786     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'
9787     ;;
9788   esac
9789   ;;
9790
9791 beos*)
9792   library_names_spec='${libname}${shared_ext}'
9793   dynamic_linker="$host_os ld.so"
9794   shlibpath_var=LIBRARY_PATH
9795   ;;
9796
9797 bsdi[45]*)
9798   version_type=linux
9799   need_version=no
9800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801   soname_spec='${libname}${release}${shared_ext}$major'
9802   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9803   shlibpath_var=LD_LIBRARY_PATH
9804   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9805   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9806   # the default ld.so.conf also contains /usr/contrib/lib and
9807   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9808   # libtool to hard-code these into programs
9809   ;;
9810
9811 cygwin* | mingw* | pw32* | cegcc*)
9812   version_type=windows
9813   shrext_cmds=".dll"
9814   need_version=no
9815   need_lib_prefix=no
9816
9817   case $GCC,$host_os in
9818   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9819     library_names_spec='$libname.dll.a'
9820     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9821     postinstall_cmds='base_file=`basename \${file}`~
9822       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9823       dldir=$destdir/`dirname \$dlpath`~
9824       test -d \$dldir || mkdir -p \$dldir~
9825       $install_prog $dir/$dlname \$dldir/$dlname~
9826       chmod a+x \$dldir/$dlname~
9827       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9828         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9829       fi'
9830     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9831       dlpath=$dir/\$dldll~
9832        $RM \$dlpath'
9833     shlibpath_overrides_runpath=yes
9834
9835     case $host_os in
9836     cygwin*)
9837       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9838       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9839       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9840       ;;
9841     mingw* | cegcc*)
9842       # MinGW DLLs use traditional 'lib' prefix
9843       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9844       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9845       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9846         # It is most probably a Windows format PATH printed by
9847         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9848         # path with ; separators, and with drive letters. We can handle the
9849         # drive letters (cygwin fileutils understands them), so leave them,
9850         # especially as we might pass files found there to a mingw objdump,
9851         # which wouldn't understand a cygwinified path. Ahh.
9852         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9853       else
9854         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9855       fi
9856       ;;
9857     pw32*)
9858       # pw32 DLLs use 'pw' prefix rather than 'lib'
9859       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9860       ;;
9861     esac
9862     ;;
9863
9864   *)
9865     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9866     ;;
9867   esac
9868   dynamic_linker='Win32 ld.exe'
9869   # FIXME: first we should search . and the directory the executable is in
9870   shlibpath_var=PATH
9871   ;;
9872
9873 darwin* | rhapsody*)
9874   dynamic_linker="$host_os dyld"
9875   version_type=darwin
9876   need_lib_prefix=no
9877   need_version=no
9878   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9879   soname_spec='${libname}${release}${major}$shared_ext'
9880   shlibpath_overrides_runpath=yes
9881   shlibpath_var=DYLD_LIBRARY_PATH
9882   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9883
9884   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9885   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9886   ;;
9887
9888 dgux*)
9889   version_type=linux
9890   need_lib_prefix=no
9891   need_version=no
9892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9893   soname_spec='${libname}${release}${shared_ext}$major'
9894   shlibpath_var=LD_LIBRARY_PATH
9895   ;;
9896
9897 freebsd1*)
9898   dynamic_linker=no
9899   ;;
9900
9901 freebsd* | dragonfly*)
9902   # DragonFly does not have aout.  When/if they implement a new
9903   # versioning mechanism, adjust this.
9904   if test -x /usr/bin/objformat; then
9905     objformat=`/usr/bin/objformat`
9906   else
9907     case $host_os in
9908     freebsd[123]*) objformat=aout ;;
9909     *) objformat=elf ;;
9910     esac
9911   fi
9912   version_type=freebsd-$objformat
9913   case $version_type in
9914     freebsd-elf*)
9915       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9916       need_version=no
9917       need_lib_prefix=no
9918       ;;
9919     freebsd-*)
9920       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9921       need_version=yes
9922       ;;
9923   esac
9924   shlibpath_var=LD_LIBRARY_PATH
9925   case $host_os in
9926   freebsd2*)
9927     shlibpath_overrides_runpath=yes
9928     ;;
9929   freebsd3.[01]* | freebsdelf3.[01]*)
9930     shlibpath_overrides_runpath=yes
9931     hardcode_into_libs=yes
9932     ;;
9933   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9934   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9935     shlibpath_overrides_runpath=no
9936     hardcode_into_libs=yes
9937     ;;
9938   *) # from 4.6 on, and DragonFly
9939     shlibpath_overrides_runpath=yes
9940     hardcode_into_libs=yes
9941     ;;
9942   esac
9943   ;;
9944
9945 gnu*)
9946   version_type=linux
9947   need_lib_prefix=no
9948   need_version=no
9949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9950   soname_spec='${libname}${release}${shared_ext}$major'
9951   shlibpath_var=LD_LIBRARY_PATH
9952   hardcode_into_libs=yes
9953   ;;
9954
9955 hpux9* | hpux10* | hpux11*)
9956   # Give a soname corresponding to the major version so that dld.sl refuses to
9957   # link against other versions.
9958   version_type=sunos
9959   need_lib_prefix=no
9960   need_version=no
9961   case $host_cpu in
9962   ia64*)
9963     shrext_cmds='.so'
9964     hardcode_into_libs=yes
9965     dynamic_linker="$host_os dld.so"
9966     shlibpath_var=LD_LIBRARY_PATH
9967     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9968     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969     soname_spec='${libname}${release}${shared_ext}$major'
9970     if test "X$HPUX_IA64_MODE" = X32; then
9971       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9972     else
9973       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9974     fi
9975     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9976     ;;
9977   hppa*64*)
9978     shrext_cmds='.sl'
9979     hardcode_into_libs=yes
9980     dynamic_linker="$host_os dld.sl"
9981     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9982     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984     soname_spec='${libname}${release}${shared_ext}$major'
9985     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9986     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9987     ;;
9988   *)
9989     shrext_cmds='.sl'
9990     dynamic_linker="$host_os dld.sl"
9991     shlibpath_var=SHLIB_PATH
9992     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9993     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9994     soname_spec='${libname}${release}${shared_ext}$major'
9995     ;;
9996   esac
9997   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9998   postinstall_cmds='chmod 555 $lib'
9999   ;;
10000
10001 interix[3-9]*)
10002   version_type=linux
10003   need_lib_prefix=no
10004   need_version=no
10005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10006   soname_spec='${libname}${release}${shared_ext}$major'
10007   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10008   shlibpath_var=LD_LIBRARY_PATH
10009   shlibpath_overrides_runpath=no
10010   hardcode_into_libs=yes
10011   ;;
10012
10013 irix5* | irix6* | nonstopux*)
10014   case $host_os in
10015     nonstopux*) version_type=nonstopux ;;
10016     *)
10017         if test "$lt_cv_prog_gnu_ld" = yes; then
10018                 version_type=linux
10019         else
10020                 version_type=irix
10021         fi ;;
10022   esac
10023   need_lib_prefix=no
10024   need_version=no
10025   soname_spec='${libname}${release}${shared_ext}$major'
10026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10027   case $host_os in
10028   irix5* | nonstopux*)
10029     libsuff= shlibsuff=
10030     ;;
10031   *)
10032     case $LD in # libtool.m4 will add one of these switches to LD
10033     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10034       libsuff= shlibsuff= libmagic=32-bit;;
10035     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10036       libsuff=32 shlibsuff=N32 libmagic=N32;;
10037     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10038       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10039     *) libsuff= shlibsuff= libmagic=never-match;;
10040     esac
10041     ;;
10042   esac
10043   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10044   shlibpath_overrides_runpath=no
10045   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10046   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10047   hardcode_into_libs=yes
10048   ;;
10049
10050 # No shared lib support for Linux oldld, aout, or coff.
10051 linux*oldld* | linux*aout* | linux*coff*)
10052   dynamic_linker=no
10053   ;;
10054
10055 # This must be Linux ELF.
10056 linux* | k*bsd*-gnu)
10057   version_type=linux
10058   need_lib_prefix=no
10059   need_version=no
10060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061   soname_spec='${libname}${release}${shared_ext}$major'
10062   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10063   shlibpath_var=LD_LIBRARY_PATH
10064   shlibpath_overrides_runpath=no
10065   # Some binutils ld are patched to set DT_RUNPATH
10066   save_LDFLAGS=$LDFLAGS
10067   save_libdir=$libdir
10068   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10069        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h.  */
10072
10073 int
10074 main ()
10075 {
10076
10077   ;
10078   return 0;
10079 }
10080 _ACEOF
10081 if ac_fn_c_try_link "$LINENO"; then :
10082   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10083   shlibpath_overrides_runpath=yes
10084 fi
10085 fi
10086 rm -f core conftest.err conftest.$ac_objext \
10087     conftest$ac_exeext conftest.$ac_ext
10088   LDFLAGS=$save_LDFLAGS
10089   libdir=$save_libdir
10090
10091   # This implies no fast_install, which is unacceptable.
10092   # Some rework will be needed to allow for fast_install
10093   # before this can be enabled.
10094   hardcode_into_libs=yes
10095
10096   # Append ld.so.conf contents to the search path
10097   if test -f /etc/ld.so.conf; then
10098     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' ' '`
10099     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10100   fi
10101
10102   # We used to test for /lib/ld.so.1 and disable shared libraries on
10103   # powerpc, because MkLinux only supported shared libraries with the
10104   # GNU dynamic linker.  Since this was broken with cross compilers,
10105   # most powerpc-linux boxes support dynamic linking these days and
10106   # people can always --disable-shared, the test was removed, and we
10107   # assume the GNU/Linux dynamic linker is in use.
10108   dynamic_linker='GNU/Linux ld.so'
10109   ;;
10110
10111 netbsdelf*-gnu)
10112   version_type=linux
10113   need_lib_prefix=no
10114   need_version=no
10115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10116   soname_spec='${libname}${release}${shared_ext}$major'
10117   shlibpath_var=LD_LIBRARY_PATH
10118   shlibpath_overrides_runpath=no
10119   hardcode_into_libs=yes
10120   dynamic_linker='NetBSD ld.elf_so'
10121   ;;
10122
10123 netbsd*)
10124   version_type=sunos
10125   need_lib_prefix=no
10126   need_version=no
10127   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10129     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10130     dynamic_linker='NetBSD (a.out) ld.so'
10131   else
10132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10133     soname_spec='${libname}${release}${shared_ext}$major'
10134     dynamic_linker='NetBSD ld.elf_so'
10135   fi
10136   shlibpath_var=LD_LIBRARY_PATH
10137   shlibpath_overrides_runpath=yes
10138   hardcode_into_libs=yes
10139   ;;
10140
10141 newsos6)
10142   version_type=linux
10143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144   shlibpath_var=LD_LIBRARY_PATH
10145   shlibpath_overrides_runpath=yes
10146   ;;
10147
10148 *nto* | *qnx*)
10149   version_type=qnx
10150   need_lib_prefix=no
10151   need_version=no
10152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10153   soname_spec='${libname}${release}${shared_ext}$major'
10154   shlibpath_var=LD_LIBRARY_PATH
10155   shlibpath_overrides_runpath=no
10156   hardcode_into_libs=yes
10157   dynamic_linker='ldqnx.so'
10158   ;;
10159
10160 openbsd*)
10161   version_type=sunos
10162   sys_lib_dlsearch_path_spec="/usr/lib"
10163   need_lib_prefix=no
10164   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10165   case $host_os in
10166     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10167     *)                          need_version=no  ;;
10168   esac
10169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10170   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10171   shlibpath_var=LD_LIBRARY_PATH
10172   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10173     case $host_os in
10174       openbsd2.[89] | openbsd2.[89].*)
10175         shlibpath_overrides_runpath=no
10176         ;;
10177       *)
10178         shlibpath_overrides_runpath=yes
10179         ;;
10180       esac
10181   else
10182     shlibpath_overrides_runpath=yes
10183   fi
10184   ;;
10185
10186 os2*)
10187   libname_spec='$name'
10188   shrext_cmds=".dll"
10189   need_lib_prefix=no
10190   library_names_spec='$libname${shared_ext} $libname.a'
10191   dynamic_linker='OS/2 ld.exe'
10192   shlibpath_var=LIBPATH
10193   ;;
10194
10195 osf3* | osf4* | osf5*)
10196   version_type=osf
10197   need_lib_prefix=no
10198   need_version=no
10199   soname_spec='${libname}${release}${shared_ext}$major'
10200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10201   shlibpath_var=LD_LIBRARY_PATH
10202   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10203   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10204   ;;
10205
10206 rdos*)
10207   dynamic_linker=no
10208   ;;
10209
10210 solaris*)
10211   version_type=linux
10212   need_lib_prefix=no
10213   need_version=no
10214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215   soname_spec='${libname}${release}${shared_ext}$major'
10216   shlibpath_var=LD_LIBRARY_PATH
10217   shlibpath_overrides_runpath=yes
10218   hardcode_into_libs=yes
10219   # ldd complains unless libraries are executable
10220   postinstall_cmds='chmod +x $lib'
10221   ;;
10222
10223 sunos4*)
10224   version_type=sunos
10225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10226   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10227   shlibpath_var=LD_LIBRARY_PATH
10228   shlibpath_overrides_runpath=yes
10229   if test "$with_gnu_ld" = yes; then
10230     need_lib_prefix=no
10231   fi
10232   need_version=yes
10233   ;;
10234
10235 sysv4 | sysv4.3*)
10236   version_type=linux
10237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238   soname_spec='${libname}${release}${shared_ext}$major'
10239   shlibpath_var=LD_LIBRARY_PATH
10240   case $host_vendor in
10241     sni)
10242       shlibpath_overrides_runpath=no
10243       need_lib_prefix=no
10244       runpath_var=LD_RUN_PATH
10245       ;;
10246     siemens)
10247       need_lib_prefix=no
10248       ;;
10249     motorola)
10250       need_lib_prefix=no
10251       need_version=no
10252       shlibpath_overrides_runpath=no
10253       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10254       ;;
10255   esac
10256   ;;
10257
10258 sysv4*MP*)
10259   if test -d /usr/nec ;then
10260     version_type=linux
10261     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10262     soname_spec='$libname${shared_ext}.$major'
10263     shlibpath_var=LD_LIBRARY_PATH
10264   fi
10265   ;;
10266
10267 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10268   version_type=freebsd-elf
10269   need_lib_prefix=no
10270   need_version=no
10271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10272   soname_spec='${libname}${release}${shared_ext}$major'
10273   shlibpath_var=LD_LIBRARY_PATH
10274   shlibpath_overrides_runpath=yes
10275   hardcode_into_libs=yes
10276   if test "$with_gnu_ld" = yes; then
10277     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10278   else
10279     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10280     case $host_os in
10281       sco3.2v5*)
10282         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10283         ;;
10284     esac
10285   fi
10286   sys_lib_dlsearch_path_spec='/usr/lib'
10287   ;;
10288
10289 tpf*)
10290   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10291   version_type=linux
10292   need_lib_prefix=no
10293   need_version=no
10294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295   shlibpath_var=LD_LIBRARY_PATH
10296   shlibpath_overrides_runpath=no
10297   hardcode_into_libs=yes
10298   ;;
10299
10300 uts4*)
10301   version_type=linux
10302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303   soname_spec='${libname}${release}${shared_ext}$major'
10304   shlibpath_var=LD_LIBRARY_PATH
10305   ;;
10306
10307 *)
10308   dynamic_linker=no
10309   ;;
10310 esac
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10312 $as_echo "$dynamic_linker" >&6; }
10313 test "$dynamic_linker" = no && can_build_shared=no
10314
10315 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10316 if test "$GCC" = yes; then
10317   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10318 fi
10319
10320 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10321   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10322 fi
10323 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10324   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10325 fi
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10414 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10415 hardcode_action=
10416 if test -n "$hardcode_libdir_flag_spec" ||
10417    test -n "$runpath_var" ||
10418    test "X$hardcode_automatic" = "Xyes" ; then
10419
10420   # We can hardcode non-existent directories.
10421   if test "$hardcode_direct" != no &&
10422      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10423      # have to relink, otherwise we might link with an installed library
10424      # when we should be linking with a yet-to-be-installed one
10425      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10426      test "$hardcode_minus_L" != no; then
10427     # Linking always hardcodes the temporary library directory.
10428     hardcode_action=relink
10429   else
10430     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10431     hardcode_action=immediate
10432   fi
10433 else
10434   # We cannot hardcode anything, or else we can only hardcode existing
10435   # directories.
10436   hardcode_action=unsupported
10437 fi
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10439 $as_echo "$hardcode_action" >&6; }
10440
10441 if test "$hardcode_action" = relink ||
10442    test "$inherit_rpath" = yes; then
10443   # Fast installation is not supported
10444   enable_fast_install=no
10445 elif test "$shlibpath_overrides_runpath" = yes ||
10446      test "$enable_shared" = no; then
10447   # Fast installation is not necessary
10448   enable_fast_install=needless
10449 fi
10450
10451
10452
10453
10454
10455
10456   if test "x$enable_dlopen" != xyes; then
10457   enable_dlopen=unknown
10458   enable_dlopen_self=unknown
10459   enable_dlopen_self_static=unknown
10460 else
10461   lt_cv_dlopen=no
10462   lt_cv_dlopen_libs=
10463
10464   case $host_os in
10465   beos*)
10466     lt_cv_dlopen="load_add_on"
10467     lt_cv_dlopen_libs=
10468     lt_cv_dlopen_self=yes
10469     ;;
10470
10471   mingw* | pw32* | cegcc*)
10472     lt_cv_dlopen="LoadLibrary"
10473     lt_cv_dlopen_libs=
10474     ;;
10475
10476   cygwin*)
10477     lt_cv_dlopen="dlopen"
10478     lt_cv_dlopen_libs=
10479     ;;
10480
10481   darwin*)
10482   # if libdl is installed we need to link against it
10483     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10484 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10485 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10486   $as_echo_n "(cached) " >&6
10487 else
10488   ac_check_lib_save_LIBS=$LIBS
10489 LIBS="-ldl  $LIBS"
10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h.  */
10492
10493 /* Override any GCC internal prototype to avoid an error.
10494    Use char because int might match the return type of a GCC
10495    builtin and then its argument prototype would still apply.  */
10496 #ifdef __cplusplus
10497 extern "C"
10498 #endif
10499 char dlopen ();
10500 int
10501 main ()
10502 {
10503 return dlopen ();
10504   ;
10505   return 0;
10506 }
10507 _ACEOF
10508 if ac_fn_c_try_link "$LINENO"; then :
10509   ac_cv_lib_dl_dlopen=yes
10510 else
10511   ac_cv_lib_dl_dlopen=no
10512 fi
10513 rm -f core conftest.err conftest.$ac_objext \
10514     conftest$ac_exeext conftest.$ac_ext
10515 LIBS=$ac_check_lib_save_LIBS
10516 fi
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10518 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10519 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10520   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10521 else
10522
10523     lt_cv_dlopen="dyld"
10524     lt_cv_dlopen_libs=
10525     lt_cv_dlopen_self=yes
10526
10527 fi
10528
10529     ;;
10530
10531   *)
10532     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10533 if test "x$ac_cv_func_shl_load" = x""yes; then :
10534   lt_cv_dlopen="shl_load"
10535 else
10536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10537 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10538 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10539   $as_echo_n "(cached) " >&6
10540 else
10541   ac_check_lib_save_LIBS=$LIBS
10542 LIBS="-ldld  $LIBS"
10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h.  */
10545
10546 /* Override any GCC internal prototype to avoid an error.
10547    Use char because int might match the return type of a GCC
10548    builtin and then its argument prototype would still apply.  */
10549 #ifdef __cplusplus
10550 extern "C"
10551 #endif
10552 char shl_load ();
10553 int
10554 main ()
10555 {
10556 return shl_load ();
10557   ;
10558   return 0;
10559 }
10560 _ACEOF
10561 if ac_fn_c_try_link "$LINENO"; then :
10562   ac_cv_lib_dld_shl_load=yes
10563 else
10564   ac_cv_lib_dld_shl_load=no
10565 fi
10566 rm -f core conftest.err conftest.$ac_objext \
10567     conftest$ac_exeext conftest.$ac_ext
10568 LIBS=$ac_check_lib_save_LIBS
10569 fi
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10571 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10572 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10573   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10574 else
10575   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10576 if test "x$ac_cv_func_dlopen" = x""yes; then :
10577   lt_cv_dlopen="dlopen"
10578 else
10579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10580 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10581 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10582   $as_echo_n "(cached) " >&6
10583 else
10584   ac_check_lib_save_LIBS=$LIBS
10585 LIBS="-ldl  $LIBS"
10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h.  */
10588
10589 /* Override any GCC internal prototype to avoid an error.
10590    Use char because int might match the return type of a GCC
10591    builtin and then its argument prototype would still apply.  */
10592 #ifdef __cplusplus
10593 extern "C"
10594 #endif
10595 char dlopen ();
10596 int
10597 main ()
10598 {
10599 return dlopen ();
10600   ;
10601   return 0;
10602 }
10603 _ACEOF
10604 if ac_fn_c_try_link "$LINENO"; then :
10605   ac_cv_lib_dl_dlopen=yes
10606 else
10607   ac_cv_lib_dl_dlopen=no
10608 fi
10609 rm -f core conftest.err conftest.$ac_objext \
10610     conftest$ac_exeext conftest.$ac_ext
10611 LIBS=$ac_check_lib_save_LIBS
10612 fi
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10614 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10615 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10616   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10617 else
10618   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10619 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10620 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10621   $as_echo_n "(cached) " >&6
10622 else
10623   ac_check_lib_save_LIBS=$LIBS
10624 LIBS="-lsvld  $LIBS"
10625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626 /* end confdefs.h.  */
10627
10628 /* Override any GCC internal prototype to avoid an error.
10629    Use char because int might match the return type of a GCC
10630    builtin and then its argument prototype would still apply.  */
10631 #ifdef __cplusplus
10632 extern "C"
10633 #endif
10634 char dlopen ();
10635 int
10636 main ()
10637 {
10638 return dlopen ();
10639   ;
10640   return 0;
10641 }
10642 _ACEOF
10643 if ac_fn_c_try_link "$LINENO"; then :
10644   ac_cv_lib_svld_dlopen=yes
10645 else
10646   ac_cv_lib_svld_dlopen=no
10647 fi
10648 rm -f core conftest.err conftest.$ac_objext \
10649     conftest$ac_exeext conftest.$ac_ext
10650 LIBS=$ac_check_lib_save_LIBS
10651 fi
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10653 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10654 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10655   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10656 else
10657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10658 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10659 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10660   $as_echo_n "(cached) " >&6
10661 else
10662   ac_check_lib_save_LIBS=$LIBS
10663 LIBS="-ldld  $LIBS"
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h.  */
10666
10667 /* Override any GCC internal prototype to avoid an error.
10668    Use char because int might match the return type of a GCC
10669    builtin and then its argument prototype would still apply.  */
10670 #ifdef __cplusplus
10671 extern "C"
10672 #endif
10673 char dld_link ();
10674 int
10675 main ()
10676 {
10677 return dld_link ();
10678   ;
10679   return 0;
10680 }
10681 _ACEOF
10682 if ac_fn_c_try_link "$LINENO"; then :
10683   ac_cv_lib_dld_dld_link=yes
10684 else
10685   ac_cv_lib_dld_dld_link=no
10686 fi
10687 rm -f core conftest.err conftest.$ac_objext \
10688     conftest$ac_exeext conftest.$ac_ext
10689 LIBS=$ac_check_lib_save_LIBS
10690 fi
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10692 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10693 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10694   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10695 fi
10696
10697
10698 fi
10699
10700
10701 fi
10702
10703
10704 fi
10705
10706
10707 fi
10708
10709
10710 fi
10711
10712     ;;
10713   esac
10714
10715   if test "x$lt_cv_dlopen" != xno; then
10716     enable_dlopen=yes
10717   else
10718     enable_dlopen=no
10719   fi
10720
10721   case $lt_cv_dlopen in
10722   dlopen)
10723     save_CPPFLAGS="$CPPFLAGS"
10724     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10725
10726     save_LDFLAGS="$LDFLAGS"
10727     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10728
10729     save_LIBS="$LIBS"
10730     LIBS="$lt_cv_dlopen_libs $LIBS"
10731
10732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10733 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10734 if test "${lt_cv_dlopen_self+set}" = set; then :
10735   $as_echo_n "(cached) " >&6
10736 else
10737           if test "$cross_compiling" = yes; then :
10738   lt_cv_dlopen_self=cross
10739 else
10740   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10741   lt_status=$lt_dlunknown
10742   cat > conftest.$ac_ext <<_LT_EOF
10743 #line 10743 "configure"
10744 #include "confdefs.h"
10745
10746 #if HAVE_DLFCN_H
10747 #include <dlfcn.h>
10748 #endif
10749
10750 #include <stdio.h>
10751
10752 #ifdef RTLD_GLOBAL
10753 #  define LT_DLGLOBAL           RTLD_GLOBAL
10754 #else
10755 #  ifdef DL_GLOBAL
10756 #    define LT_DLGLOBAL         DL_GLOBAL
10757 #  else
10758 #    define LT_DLGLOBAL         0
10759 #  endif
10760 #endif
10761
10762 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10763    find out it does not work in some platform. */
10764 #ifndef LT_DLLAZY_OR_NOW
10765 #  ifdef RTLD_LAZY
10766 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10767 #  else
10768 #    ifdef DL_LAZY
10769 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10770 #    else
10771 #      ifdef RTLD_NOW
10772 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10773 #      else
10774 #        ifdef DL_NOW
10775 #          define LT_DLLAZY_OR_NOW      DL_NOW
10776 #        else
10777 #          define LT_DLLAZY_OR_NOW      0
10778 #        endif
10779 #      endif
10780 #    endif
10781 #  endif
10782 #endif
10783
10784 void fnord() { int i=42;}
10785 int main ()
10786 {
10787   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10788   int status = $lt_dlunknown;
10789
10790   if (self)
10791     {
10792       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10793       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10794       /* dlclose (self); */
10795     }
10796   else
10797     puts (dlerror ());
10798
10799   return status;
10800 }
10801 _LT_EOF
10802   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10803   (eval $ac_link) 2>&5
10804   ac_status=$?
10805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10806   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10807     (./conftest; exit; ) >&5 2>/dev/null
10808     lt_status=$?
10809     case x$lt_status in
10810       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10811       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10812       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10813     esac
10814   else :
10815     # compilation failed
10816     lt_cv_dlopen_self=no
10817   fi
10818 fi
10819 rm -fr conftest*
10820
10821
10822 fi
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10824 $as_echo "$lt_cv_dlopen_self" >&6; }
10825
10826     if test "x$lt_cv_dlopen_self" = xyes; then
10827       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10828       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10829 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10830 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10831   $as_echo_n "(cached) " >&6
10832 else
10833           if test "$cross_compiling" = yes; then :
10834   lt_cv_dlopen_self_static=cross
10835 else
10836   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10837   lt_status=$lt_dlunknown
10838   cat > conftest.$ac_ext <<_LT_EOF
10839 #line 10839 "configure"
10840 #include "confdefs.h"
10841
10842 #if HAVE_DLFCN_H
10843 #include <dlfcn.h>
10844 #endif
10845
10846 #include <stdio.h>
10847
10848 #ifdef RTLD_GLOBAL
10849 #  define LT_DLGLOBAL           RTLD_GLOBAL
10850 #else
10851 #  ifdef DL_GLOBAL
10852 #    define LT_DLGLOBAL         DL_GLOBAL
10853 #  else
10854 #    define LT_DLGLOBAL         0
10855 #  endif
10856 #endif
10857
10858 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10859    find out it does not work in some platform. */
10860 #ifndef LT_DLLAZY_OR_NOW
10861 #  ifdef RTLD_LAZY
10862 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10863 #  else
10864 #    ifdef DL_LAZY
10865 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10866 #    else
10867 #      ifdef RTLD_NOW
10868 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10869 #      else
10870 #        ifdef DL_NOW
10871 #          define LT_DLLAZY_OR_NOW      DL_NOW
10872 #        else
10873 #          define LT_DLLAZY_OR_NOW      0
10874 #        endif
10875 #      endif
10876 #    endif
10877 #  endif
10878 #endif
10879
10880 void fnord() { int i=42;}
10881 int main ()
10882 {
10883   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10884   int status = $lt_dlunknown;
10885
10886   if (self)
10887     {
10888       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10889       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10890       /* dlclose (self); */
10891     }
10892   else
10893     puts (dlerror ());
10894
10895   return status;
10896 }
10897 _LT_EOF
10898   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10899   (eval $ac_link) 2>&5
10900   ac_status=$?
10901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10902   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10903     (./conftest; exit; ) >&5 2>/dev/null
10904     lt_status=$?
10905     case x$lt_status in
10906       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10907       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10908       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10909     esac
10910   else :
10911     # compilation failed
10912     lt_cv_dlopen_self_static=no
10913   fi
10914 fi
10915 rm -fr conftest*
10916
10917
10918 fi
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10920 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10921     fi
10922
10923     CPPFLAGS="$save_CPPFLAGS"
10924     LDFLAGS="$save_LDFLAGS"
10925     LIBS="$save_LIBS"
10926     ;;
10927   esac
10928
10929   case $lt_cv_dlopen_self in
10930   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10931   *) enable_dlopen_self=unknown ;;
10932   esac
10933
10934   case $lt_cv_dlopen_self_static in
10935   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10936   *) enable_dlopen_self_static=unknown ;;
10937   esac
10938 fi
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956 striplib=
10957 old_striplib=
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10959 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10960 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10961   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10962   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10964 $as_echo "yes" >&6; }
10965 else
10966 # FIXME - insert some real tests, host_os isn't really good enough
10967   case $host_os in
10968   darwin*)
10969     if test -n "$STRIP" ; then
10970       striplib="$STRIP -x"
10971       old_striplib="$STRIP -S"
10972       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10973 $as_echo "yes" >&6; }
10974     else
10975       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976 $as_echo "no" >&6; }
10977     fi
10978     ;;
10979   *)
10980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; }
10982     ;;
10983   esac
10984 fi
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997   # Report which library types will actually be built
10998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10999 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11001 $as_echo "$can_build_shared" >&6; }
11002
11003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11004 $as_echo_n "checking whether to build shared libraries... " >&6; }
11005   test "$can_build_shared" = "no" && enable_shared=no
11006
11007   # On AIX, shared libraries and static libraries use the same namespace, and
11008   # are all built from PIC.
11009   case $host_os in
11010   aix3*)
11011     test "$enable_shared" = yes && enable_static=no
11012     if test -n "$RANLIB"; then
11013       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11014       postinstall_cmds='$RANLIB $lib'
11015     fi
11016     ;;
11017
11018   aix[4-9]*)
11019     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11020       test "$enable_shared" = yes && enable_static=no
11021     fi
11022     ;;
11023   esac
11024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11025 $as_echo "$enable_shared" >&6; }
11026
11027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11028 $as_echo_n "checking whether to build static libraries... " >&6; }
11029   # Make sure either enable_shared or enable_static is yes.
11030   test "$enable_shared" = yes || enable_static=yes
11031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11032 $as_echo "$enable_static" >&6; }
11033
11034
11035
11036
11037 fi
11038 ac_ext=c
11039 ac_cpp='$CPP $CPPFLAGS'
11040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11043
11044 CC="$lt_save_CC"
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058         ac_config_commands="$ac_config_commands libtool"
11059
11060
11061
11062
11063 # Only expand once:
11064
11065
11066 # By default we simply use the C compiler to build assembly code.
11067
11068 test "${CCAS+set}" = set || CCAS=$CC
11069 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11070
11071
11072
11073 depcc="$CCAS"   am_compiler_list=
11074
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11076 $as_echo_n "checking dependency style of $depcc... " >&6; }
11077 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
11078   $as_echo_n "(cached) " >&6
11079 else
11080   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11081   # We make a subdir and do the tests there.  Otherwise we can end up
11082   # making bogus files that we don't know about and never remove.  For
11083   # instance it was reported that on HP-UX the gcc test will end up
11084   # making a dummy file named `D' -- because `-MD' means `put the output
11085   # in D'.
11086   mkdir conftest.dir
11087   # Copy depcomp to subdir because otherwise we won't find it if we're
11088   # using a relative directory.
11089   cp "$am_depcomp" conftest.dir
11090   cd conftest.dir
11091   # We will build objects and dependencies in a subdirectory because
11092   # it helps to detect inapplicable dependency modes.  For instance
11093   # both Tru64's cc and ICC support -MD to output dependencies as a
11094   # side effect of compilation, but ICC will put the dependencies in
11095   # the current directory while Tru64 will put them in the object
11096   # directory.
11097   mkdir sub
11098
11099   am_cv_CCAS_dependencies_compiler_type=none
11100   if test "$am_compiler_list" = ""; then
11101      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11102   fi
11103   am__universal=false
11104
11105
11106   for depmode in $am_compiler_list; do
11107     # Setup a source with many dependencies, because some compilers
11108     # like to wrap large dependency lists on column 80 (with \), and
11109     # we should not choose a depcomp mode which is confused by this.
11110     #
11111     # We need to recreate these files for each test, as the compiler may
11112     # overwrite some of them when testing with obscure command lines.
11113     # This happens at least with the AIX C compiler.
11114     : > sub/conftest.c
11115     for i in 1 2 3 4 5 6; do
11116       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11117       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11118       # Solaris 8's {/usr,}/bin/sh.
11119       touch sub/conftst$i.h
11120     done
11121     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11122
11123     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11124     # mode.  It turns out that the SunPro C++ compiler does not properly
11125     # handle `-M -o', and we need to detect this.  Also, some Intel
11126     # versions had trouble with output in subdirs
11127     am__obj=sub/conftest.${OBJEXT-o}
11128     am__minus_obj="-o $am__obj"
11129     case $depmode in
11130     gcc)
11131       # This depmode causes a compiler race in universal mode.
11132       test "$am__universal" = false || continue
11133       ;;
11134     nosideeffect)
11135       # after this tag, mechanisms are not by side-effect, so they'll
11136       # only be used when explicitly requested
11137       if test "x$enable_dependency_tracking" = xyes; then
11138         continue
11139       else
11140         break
11141       fi
11142       ;;
11143     msvisualcpp | msvcmsys)
11144       # This compiler won't grok `-c -o', but also, the minuso test has
11145       # not run yet.  These depmodes are late enough in the game, and
11146       # so weak that their functioning should not be impacted.
11147       am__obj=conftest.${OBJEXT-o}
11148       am__minus_obj=
11149       ;;
11150     none) break ;;
11151     esac
11152     if depmode=$depmode \
11153        source=sub/conftest.c object=$am__obj \
11154        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11155        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11156          >/dev/null 2>conftest.err &&
11157        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11158        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11159        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11160        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11161       # icc doesn't choke on unknown options, it will just issue warnings
11162       # or remarks (even with -Werror).  So we grep stderr for any message
11163       # that says an option was ignored or not supported.
11164       # When given -MP, icc 7.0 and 7.1 complain thusly:
11165       #   icc: Command line warning: ignoring option '-M'; no argument required
11166       # The diagnosis changed in icc 8.0:
11167       #   icc: Command line remark: option '-MP' not supported
11168       if (grep 'ignoring option' conftest.err ||
11169           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11170         am_cv_CCAS_dependencies_compiler_type=$depmode
11171         break
11172       fi
11173     fi
11174   done
11175
11176   cd ..
11177   rm -rf conftest.dir
11178 else
11179   am_cv_CCAS_dependencies_compiler_type=none
11180 fi
11181
11182 fi
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11184 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11185 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11186
11187  if
11188   test "x$enable_dependency_tracking" != xno \
11189   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11190   am__fastdepCCAS_TRUE=
11191   am__fastdepCCAS_FALSE='#'
11192 else
11193   am__fastdepCCAS_TRUE='#'
11194   am__fastdepCCAS_FALSE=
11195 fi
11196
11197
11198
11199
11200
11201
11202
11203
11204 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11205         if test -n "$ac_tool_prefix"; then
11206   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11207 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11209 $as_echo_n "checking for $ac_word... " >&6; }
11210 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11211   $as_echo_n "(cached) " >&6
11212 else
11213   case $PKG_CONFIG in
11214   [\\/]* | ?:[\\/]*)
11215   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11216   ;;
11217   *)
11218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11219 for as_dir in $PATH
11220 do
11221   IFS=$as_save_IFS
11222   test -z "$as_dir" && as_dir=.
11223     for ac_exec_ext in '' $ac_executable_extensions; do
11224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11225     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11227     break 2
11228   fi
11229 done
11230   done
11231 IFS=$as_save_IFS
11232
11233   ;;
11234 esac
11235 fi
11236 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11237 if test -n "$PKG_CONFIG"; then
11238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11239 $as_echo "$PKG_CONFIG" >&6; }
11240 else
11241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242 $as_echo "no" >&6; }
11243 fi
11244
11245
11246 fi
11247 if test -z "$ac_cv_path_PKG_CONFIG"; then
11248   ac_pt_PKG_CONFIG=$PKG_CONFIG
11249   # Extract the first word of "pkg-config", so it can be a program name with args.
11250 set dummy pkg-config; ac_word=$2
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11254   $as_echo_n "(cached) " >&6
11255 else
11256   case $ac_pt_PKG_CONFIG in
11257   [\\/]* | ?:[\\/]*)
11258   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11259   ;;
11260   *)
11261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11262 for as_dir in $PATH
11263 do
11264   IFS=$as_save_IFS
11265   test -z "$as_dir" && as_dir=.
11266     for ac_exec_ext in '' $ac_executable_extensions; do
11267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11268     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11270     break 2
11271   fi
11272 done
11273   done
11274 IFS=$as_save_IFS
11275
11276   ;;
11277 esac
11278 fi
11279 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11280 if test -n "$ac_pt_PKG_CONFIG"; then
11281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11282 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11283 else
11284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 $as_echo "no" >&6; }
11286 fi
11287
11288   if test "x$ac_pt_PKG_CONFIG" = x; then
11289     PKG_CONFIG=""
11290   else
11291     case $cross_compiling:$ac_tool_warned in
11292 yes:)
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11295 ac_tool_warned=yes ;;
11296 esac
11297     PKG_CONFIG=$ac_pt_PKG_CONFIG
11298   fi
11299 else
11300   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11301 fi
11302
11303 fi
11304 if test -n "$PKG_CONFIG"; then
11305         _pkg_min_version=0.9.0
11306         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11307 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11308         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11309                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11310 $as_echo "yes" >&6; }
11311         else
11312                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313 $as_echo "no" >&6; }
11314                 PKG_CONFIG=""
11315         fi
11316
11317 fi
11318
11319 pkg_failed=no
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
11321 $as_echo_n "checking for GLIB... " >&6; }
11322
11323 if test -n "$PKG_CONFIG"; then
11324     if test -n "$GLIB_CFLAGS"; then
11325         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
11326     else
11327         if test -n "$PKG_CONFIG" && \
11328     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
11329   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11330   ac_status=$?
11331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11332   test $ac_status = 0; }; then
11333   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
11334 else
11335   pkg_failed=yes
11336 fi
11337     fi
11338 else
11339         pkg_failed=untried
11340 fi
11341 if test -n "$PKG_CONFIG"; then
11342     if test -n "$GLIB_LIBS"; then
11343         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
11344     else
11345         if test -n "$PKG_CONFIG" && \
11346     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
11347   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11348   ac_status=$?
11349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11350   test $ac_status = 0; }; then
11351   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
11352 else
11353   pkg_failed=yes
11354 fi
11355     fi
11356 else
11357         pkg_failed=untried
11358 fi
11359
11360 if test $pkg_failed = yes; then
11361         GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
11362         # Put the nasty error message in config.log where it belongs
11363         echo "$GLIB_PKG_ERRORS" 1>&5
11364
11365         HAVE_GLIB=no
11366 elif test $pkg_failed = untried; then
11367         HAVE_GLIB=no
11368 else
11369         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
11370         GLIB_LIBS=$pkg_cv_GLIB_LIBS
11371         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11372 $as_echo "yes" >&6; }
11373         HAVE_GLIB=yes
11374 fi
11375
11376
11377 # Check whether --enable-glib was given.
11378 if test "${enable_glib+set}" = set; then :
11379   enableval=$enable_glib; case "${enableval}" in
11380   yes) HAVE_GLIB=yes ;;
11381   no) HAVE_GLIB=no ;;
11382   *) as_fn_error "bad value ${enableval} for --disable-glib" "$LINENO" 5 ;;
11383 esac
11384 fi
11385
11386  if test "x$HAVE_GLIB" = "xyes"; then
11387   HAVE_GLIB_TRUE=
11388   HAVE_GLIB_FALSE='#'
11389 else
11390   HAVE_GLIB_TRUE='#'
11391   HAVE_GLIB_FALSE=
11392 fi
11393
11394
11395 # Check whether --enable-prototype-checking was given.
11396 if test "${enable_prototype_checking+set}" = set; then :
11397   enableval=$enable_prototype_checking; enable_proto_check=$enableval
11398 else
11399   enable_proto_check=no
11400 fi
11401
11402 if test "x$enable_proto_check" = xyes ; then
11403
11404 $as_echo "#define LIBOIL_STRICT_PROTOTYPES 1" >>confdefs.h
11405
11406 fi
11407
11408
11409 # Check whether --with-alternate-optimization was given.
11410 if test "${with_alternate_optimization+set}" = set; then :
11411   withval=$with_alternate_optimization; enable_alt_opt=yes; LIBOIL_OPT_CFLAGS=$withval
11412 else
11413   enable_alt_opt=no
11414 fi
11415
11416 if test "x$enable_alt_opt" = xyes ; then
11417   LIBOIL_OPT_CFLAGS="$LIBOIL_OPT_CFLAGS -D'OIL_OPT_MANGLE(a)=a\#\#_alt' -D'OIL_OPT_SUFFIX=\"_alt\"'"
11418 fi
11419  if test "x$enable_alt_opt" = xyes; then
11420   USE_ALT_OPT_TRUE=
11421   USE_ALT_OPT_FALSE='#'
11422 else
11423   USE_ALT_OPT_TRUE='#'
11424   USE_ALT_OPT_FALSE=
11425 fi
11426
11427
11428
11429 # Check whether --enable-broken-implementations was given.
11430 if test "${enable_broken_implementations+set}" = set; then :
11431   enableval=$enable_broken_implementations; enable_broken_implementations=$enableval
11432 else
11433   enable_broken_implementations=no
11434 fi
11435
11436 if test "x$enable_broken_implementations" = xyes ; then
11437
11438 $as_echo "#define ENABLE_BROKEN_IMPLS 1" >>confdefs.h
11439
11440 fi
11441
11442 #AC_ARG_ENABLE(new-abi,
11443 #  AC_HELP_STRING([--enable-new-abi],[enable experimental 0.4 ABI]),
11444 #  enable_new_abi=$enableval,enable_new_abi=no)
11445 if test "x$enable_new_abi" = xyes ; then
11446
11447 $as_echo "#define ENABLE_NEW_ABI 1" >>confdefs.h
11448
11449 fi
11450  if test "x$enable_new_abi" = xyes; then
11451   USE_NEW_ABI_TRUE=
11452   USE_NEW_ABI_FALSE='#'
11453 else
11454   USE_NEW_ABI_TRUE='#'
11455   USE_NEW_ABI_FALSE=
11456 fi
11457
11458 if test "x$enable_new_abi" = xyes ; then
11459   LIBOIL_MAJORMINOR=0.4
11460   LIBOIL_OLD_MAJORMINOR=0.3
11461 else
11462   LIBOIL_MAJORMINOR=0.3
11463   LIBOIL_OLD_MAJORMINOR=0.2
11464 fi
11465
11466
11467
11468 ##################################################
11469 # Check for gtk-doc.
11470 ##################################################
11471
11472 if test "x$cross_compiling" = "xyes" ; then
11473   enable_gtk_doc=no
11474 fi
11475
11476
11477 # Check whether --with-html-dir was given.
11478 if test "${with_html_dir+set}" = set; then :
11479   withval=$with_html_dir;
11480 else
11481   with_html_dir='${datadir}/gtk-doc/html'
11482 fi
11483
11484   HTML_DIR="$with_html_dir"
11485
11486
11487     # Check whether --enable-gtk-doc was given.
11488 if test "${enable_gtk_doc+set}" = set; then :
11489   enableval=$enable_gtk_doc;
11490 else
11491   enable_gtk_doc=no
11492 fi
11493
11494
11495   if test x$enable_gtk_doc = xyes; then
11496     if test -n "$PKG_CONFIG" && \
11497     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\""; } >&5
11498   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5
11499   ac_status=$?
11500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11501   test $ac_status = 0; }; then
11502   :
11503 else
11504   as_fn_error "You need to have gtk-doc >= 1.0 installed to build gtk-doc" "$LINENO" 5
11505 fi
11506   fi
11507
11508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
11509 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
11510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
11511 $as_echo "$enable_gtk_doc" >&6; }
11512
11513   for ac_prog in gtkdoc-check
11514 do
11515   # Extract the first word of "$ac_prog", so it can be a program name with args.
11516 set dummy $ac_prog; ac_word=$2
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11518 $as_echo_n "checking for $ac_word... " >&6; }
11519 if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then :
11520   $as_echo_n "(cached) " >&6
11521 else
11522   case $GTKDOC_CHECK in
11523   [\\/]* | ?:[\\/]*)
11524   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
11525   ;;
11526   *)
11527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528 for as_dir in $PATH
11529 do
11530   IFS=$as_save_IFS
11531   test -z "$as_dir" && as_dir=.
11532     for ac_exec_ext in '' $ac_executable_extensions; do
11533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11534     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
11535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11536     break 2
11537   fi
11538 done
11539   done
11540 IFS=$as_save_IFS
11541
11542   ;;
11543 esac
11544 fi
11545 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
11546 if test -n "$GTKDOC_CHECK"; then
11547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
11548 $as_echo "$GTKDOC_CHECK" >&6; }
11549 else
11550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11552 fi
11553
11554
11555   test -n "$GTKDOC_CHECK" && break
11556 done
11557
11558
11559    if test x$enable_gtk_doc = xyes; then
11560   ENABLE_GTK_DOC_TRUE=
11561   ENABLE_GTK_DOC_FALSE='#'
11562 else
11563   ENABLE_GTK_DOC_TRUE='#'
11564   ENABLE_GTK_DOC_FALSE=
11565 fi
11566
11567    if test -n "$LIBTOOL"; then
11568   GTK_DOC_USE_LIBTOOL_TRUE=
11569   GTK_DOC_USE_LIBTOOL_FALSE='#'
11570 else
11571   GTK_DOC_USE_LIBTOOL_TRUE='#'
11572   GTK_DOC_USE_LIBTOOL_FALSE=
11573 fi
11574
11575
11576
11577
11578
11579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports gcc-style inline assembly" >&5
11580 $as_echo_n "checking if compiler supports gcc-style inline assembly... " >&6; }
11581
11582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h.  */
11584
11585 int
11586 main ()
11587 {
11588
11589 #ifndef __GNUC__
11590 #error Not GCC
11591 #endif
11592 #ifdef __GNUC_MINOR__
11593 #if (__GNUC__ * 1000 + __GNUC_MINOR__) < 3004
11594 #error GCC before 3.4 has critical bugs compiling inline assembly
11595 #endif
11596 #endif
11597 __asm__ (""::)
11598   ;
11599   return 0;
11600 }
11601 _ACEOF
11602 if ac_fn_c_try_compile "$LINENO"; then :
11603   flag_ok=yes
11604 else
11605   flag_ok=no
11606 fi
11607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11608
11609   if test "X$flag_ok" = Xyes ; then
11610     HAVE_GCC_ASM=yes
11611     true
11612   else
11613     HAVE_GCC_ASM=no
11614     true
11615   fi
11616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
11617 $as_echo "$flag_ok" >&6; }
11618
11619 if test x$HAVE_GCC_ASM = xyes ; then
11620
11621 $as_echo "#define HAVE_GCC_ASM 1" >>confdefs.h
11622
11623 fi
11624  if test "x$HAVE_GCC_ASM" = "xyes"; then
11625   HAVE_GCC_ASM_TRUE=
11626   HAVE_GCC_ASM_FALSE='#'
11627 else
11628   HAVE_GCC_ASM_TRUE='#'
11629   HAVE_GCC_ASM_FALSE=
11630 fi
11631
11632
11633
11634   case "x${host_cpu}" in
11635     xi?86 | k?)
11636       HAVE_I386=yes
11637
11638 $as_echo "#define HAVE_I386 1" >>confdefs.h
11639
11640       ;;
11641     xx86_64|xamd64)
11642       HAVE_AMD64=yes
11643
11644 $as_echo "#define HAVE_AMD64 1" >>confdefs.h
11645
11646       ;;
11647     xpowerpc|xppc|xpowerpc64|xppc64)
11648       HAVE_POWERPC=yes
11649
11650 $as_echo "#define HAVE_POWERPC 1" >>confdefs.h
11651
11652       ;;
11653     xarm)
11654       HAVE_ARM=yes
11655
11656 $as_echo "#define HAVE_ARM 1" >>confdefs.h
11657
11658       ;;
11659   esac
11660
11661  if test "x$HAVE_I386" = "xyes"; then
11662   HAVE_I386_TRUE=
11663   HAVE_I386_FALSE='#'
11664 else
11665   HAVE_I386_TRUE='#'
11666   HAVE_I386_FALSE=
11667 fi
11668
11669  if test "x$HAVE_AMD64" = "xyes"; then
11670   HAVE_AMD64_TRUE=
11671   HAVE_AMD64_FALSE='#'
11672 else
11673   HAVE_AMD64_TRUE='#'
11674   HAVE_AMD64_FALSE=
11675 fi
11676
11677  if test "x$HAVE_POWERPC" = "xyes"; then
11678   HAVE_POWERPC_TRUE=
11679   HAVE_POWERPC_FALSE='#'
11680 else
11681   HAVE_POWERPC_TRUE='#'
11682   HAVE_POWERPC_FALSE=
11683 fi
11684
11685  if test "x$HAVE_ARM" = "xyes"; then
11686   HAVE_ARM_TRUE=
11687   HAVE_ARM_FALSE='#'
11688 else
11689   HAVE_ARM_TRUE='#'
11690   HAVE_ARM_FALSE=
11691 fi
11692
11693
11694   case "${host_os}" in
11695     mingw*)
11696       HAVE_OS_WIN32=yes
11697
11698 $as_echo "#define HAVE_OS_WIN32 1" >>confdefs.h
11699
11700       ;;
11701     linux*)
11702       HAVE_OS_LINUX=yes
11703
11704 $as_echo "#define HAVE_OS_LINUX 1" >>confdefs.h
11705
11706       ;;
11707   esac
11708
11709  if test "$HAVE_WIN32" = "yes"; then
11710   HAVE_OS_WIN32_TRUE=
11711   HAVE_OS_WIN32_FALSE='#'
11712 else
11713   HAVE_OS_WIN32_TRUE='#'
11714   HAVE_OS_WIN32_FALSE=
11715 fi
11716
11717  if test "$HAVE_LINUX" = "yes"; then
11718   HAVE_OS_LINUX_TRUE=
11719   HAVE_OS_LINUX_FALSE='#'
11720 else
11721   HAVE_OS_LINUX_TRUE='#'
11722   HAVE_OS_LINUX_FALSE=
11723 fi
11724
11725
11726
11727
11728
11729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports FPU instructions on PowerPC" >&5
11730 $as_echo_n "checking if compiler supports FPU instructions on PowerPC... " >&6; }
11731
11732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h.  */
11734
11735 int
11736 main ()
11737 {
11738 double x = 0; __asm__ ("fadd 0,0,0"::"f" (x):"32")
11739   ;
11740   return 0;
11741 }
11742 _ACEOF
11743 if ac_fn_c_try_compile "$LINENO"; then :
11744   flag_ok=yes
11745 else
11746   flag_ok=no
11747 fi
11748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11749
11750   if test "X$flag_ok" = Xyes ; then
11751     HAVE_GCC_ASM_POWERPC_FPU=yes
11752     true
11753   else
11754     HAVE_GCC_ASM_POWERPC_FPU=no
11755     true
11756   fi
11757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
11758 $as_echo "$flag_ok" >&6; }
11759
11760 if test x$HAVE_GCC_ASM_POWERPC_FPU = xyes ; then
11761
11762 $as_echo "#define HAVE_GCC_ASM_POWERPC_FPU 1" >>confdefs.h
11763
11764 fi
11765  if test "x$HAVE_GCC_ASM_POWERPC" = "xyes"; then
11766   HAVE_GCC_ASM_POWERPC_FPU_TRUE=
11767   HAVE_GCC_ASM_POWERPC_FPU_FALSE='#'
11768 else
11769   HAVE_GCC_ASM_POWERPC_FPU_TRUE='#'
11770   HAVE_GCC_ASM_POWERPC_FPU_FALSE=
11771 fi
11772
11773
11774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11775 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11776 if test "${ac_cv_c_bigendian+set}" = set; then :
11777   $as_echo_n "(cached) " >&6
11778 else
11779   ac_cv_c_bigendian=unknown
11780     # See if we're dealing with a universal compiler.
11781     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782 /* end confdefs.h.  */
11783 #ifndef __APPLE_CC__
11784                not a universal capable compiler
11785              #endif
11786              typedef int dummy;
11787
11788 _ACEOF
11789 if ac_fn_c_try_compile "$LINENO"; then :
11790
11791         # Check for potential -arch flags.  It is not universal unless
11792         # there are at least two -arch flags with different values.
11793         ac_arch=
11794         ac_prev=
11795         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11796          if test -n "$ac_prev"; then
11797            case $ac_word in
11798              i?86 | x86_64 | ppc | ppc64)
11799                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11800                  ac_arch=$ac_word
11801                else
11802                  ac_cv_c_bigendian=universal
11803                  break
11804                fi
11805                ;;
11806            esac
11807            ac_prev=
11808          elif test "x$ac_word" = "x-arch"; then
11809            ac_prev=arch
11810          fi
11811        done
11812 fi
11813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11814     if test $ac_cv_c_bigendian = unknown; then
11815       # See if sys/param.h defines the BYTE_ORDER macro.
11816       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h.  */
11818 #include <sys/types.h>
11819              #include <sys/param.h>
11820
11821 int
11822 main ()
11823 {
11824 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11825                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11826                      && LITTLE_ENDIAN)
11827               bogus endian macros
11828              #endif
11829
11830   ;
11831   return 0;
11832 }
11833 _ACEOF
11834 if ac_fn_c_try_compile "$LINENO"; then :
11835   # It does; now see whether it defined to BIG_ENDIAN or not.
11836          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h.  */
11838 #include <sys/types.h>
11839                 #include <sys/param.h>
11840
11841 int
11842 main ()
11843 {
11844 #if BYTE_ORDER != BIG_ENDIAN
11845                  not big endian
11846                 #endif
11847
11848   ;
11849   return 0;
11850 }
11851 _ACEOF
11852 if ac_fn_c_try_compile "$LINENO"; then :
11853   ac_cv_c_bigendian=yes
11854 else
11855   ac_cv_c_bigendian=no
11856 fi
11857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858 fi
11859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11860     fi
11861     if test $ac_cv_c_bigendian = unknown; then
11862       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11863       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h.  */
11865 #include <limits.h>
11866
11867 int
11868 main ()
11869 {
11870 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11871               bogus endian macros
11872              #endif
11873
11874   ;
11875   return 0;
11876 }
11877 _ACEOF
11878 if ac_fn_c_try_compile "$LINENO"; then :
11879   # It does; now see whether it defined to _BIG_ENDIAN or not.
11880          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h.  */
11882 #include <limits.h>
11883
11884 int
11885 main ()
11886 {
11887 #ifndef _BIG_ENDIAN
11888                  not big endian
11889                 #endif
11890
11891   ;
11892   return 0;
11893 }
11894 _ACEOF
11895 if ac_fn_c_try_compile "$LINENO"; then :
11896   ac_cv_c_bigendian=yes
11897 else
11898   ac_cv_c_bigendian=no
11899 fi
11900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11901 fi
11902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11903     fi
11904     if test $ac_cv_c_bigendian = unknown; then
11905       # Compile a test program.
11906       if test "$cross_compiling" = yes; then :
11907   # Try to guess by grepping values from an object file.
11908          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11909 /* end confdefs.h.  */
11910 short int ascii_mm[] =
11911                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11912                 short int ascii_ii[] =
11913                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11914                 int use_ascii (int i) {
11915                   return ascii_mm[i] + ascii_ii[i];
11916                 }
11917                 short int ebcdic_ii[] =
11918                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11919                 short int ebcdic_mm[] =
11920                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11921                 int use_ebcdic (int i) {
11922                   return ebcdic_mm[i] + ebcdic_ii[i];
11923                 }
11924                 extern int foo;
11925
11926 int
11927 main ()
11928 {
11929 return use_ascii (foo) == use_ebcdic (foo);
11930   ;
11931   return 0;
11932 }
11933 _ACEOF
11934 if ac_fn_c_try_compile "$LINENO"; then :
11935   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11936               ac_cv_c_bigendian=yes
11937             fi
11938             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11939               if test "$ac_cv_c_bigendian" = unknown; then
11940                 ac_cv_c_bigendian=no
11941               else
11942                 # finding both strings is unlikely to happen, but who knows?
11943                 ac_cv_c_bigendian=unknown
11944               fi
11945             fi
11946 fi
11947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11948 else
11949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h.  */
11951 $ac_includes_default
11952 int
11953 main ()
11954 {
11955
11956              /* Are we little or big endian?  From Harbison&Steele.  */
11957              union
11958              {
11959                long int l;
11960                char c[sizeof (long int)];
11961              } u;
11962              u.l = 1;
11963              return u.c[sizeof (long int) - 1] == 1;
11964
11965   ;
11966   return 0;
11967 }
11968 _ACEOF
11969 if ac_fn_c_try_run "$LINENO"; then :
11970   ac_cv_c_bigendian=no
11971 else
11972   ac_cv_c_bigendian=yes
11973 fi
11974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11975   conftest.$ac_objext conftest.beam conftest.$ac_ext
11976 fi
11977
11978     fi
11979 fi
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11981 $as_echo "$ac_cv_c_bigendian" >&6; }
11982  case $ac_cv_c_bigendian in #(
11983    yes)
11984      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11985 ;; #(
11986    no)
11987       ;; #(
11988    universal)
11989
11990 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11991
11992      ;; #(
11993    *)
11994      as_fn_error "unknown endianness
11995  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11996  esac
11997
11998
11999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned memory access works correctly" >&5
12000 $as_echo_n "checking if unaligned memory access works correctly... " >&6; }
12001   if test x"$as_cv_unaligned_access" = x ; then
12002     case $host in
12003       alpha*|arm*|hp*|mips*|sh*|sparc*|ia64*)
12004         $as_echo_n "(blacklisted) " >&6
12005         as_cv_unaligned_access=no
12006         ;;
12007       i?86*|x86_64|amd64|powerpc*|m68k*|cris*)
12008         $as_echo_n "(whitelisted) " >&6
12009         as_cv_unaligned_access=yes
12010         ;;
12011     esac
12012   else
12013     $as_echo_n "(cached) " >&6
12014   fi
12015   if test x"$as_cv_unaligned_access" = x ; then
12016     if test "$cross_compiling" = yes; then :
12017   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12019 as_fn_error "cannot run test program while cross compiling
12020 See \`config.log' for more details." "$LINENO" 5; }
12021 else
12022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023 /* end confdefs.h.  */
12024
12025 int main(int argc, char **argv)
12026 {
12027   char array[] = "ABCDEFGH";
12028   unsigned int iarray[2];
12029   memcpy(iarray,array,8);
12030 #define GET(x) (*(unsigned int *)((char *)iarray + (x)))
12031   if(GET(0) != 0x41424344 && GET(0) != 0x44434241) return 1;
12032   if(GET(1) != 0x42434445 && GET(1) != 0x45444342) return 1;
12033   if(GET(2) != 0x43444546 && GET(2) != 0x46454443) return 1;
12034   if(GET(3) != 0x44454647 && GET(3) != 0x47464544) return 1;
12035   return 0;
12036 }
12037
12038 _ACEOF
12039 if ac_fn_c_try_run "$LINENO"; then :
12040   as_cv_unaligned_access="yes"
12041 else
12042   as_cv_unaligned_access="no"
12043 fi
12044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12045   conftest.$ac_objext conftest.beam conftest.$ac_ext
12046 fi
12047
12048   fi
12049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $as_cv_unaligned_access" >&5
12050 $as_echo "$as_cv_unaligned_access" >&6; }
12051   if test "$as_cv_unaligned_access" = "yes"; then
12052
12053 cat >>confdefs.h <<_ACEOF
12054 #define HAVE_UNALIGNED_ACCESS 1
12055 _ACEOF
12056
12057   fi
12058
12059
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12061 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12062 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
12063   $as_echo_n "(cached) " >&6
12064 else
12065   lt_cv_sys_symbol_underscore=no
12066   cat > conftest.$ac_ext <<_LT_EOF
12067 void nm_test_func(){}
12068 int main(){nm_test_func;return 0;}
12069 _LT_EOF
12070   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12071   (eval $ac_compile) 2>&5
12072   ac_status=$?
12073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12074   test $ac_status = 0; }; then
12075     # Now try to grab the symbols.
12076     ac_nlist=conftest.nm
12077     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12078   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12079   ac_status=$?
12080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12081   test $ac_status = 0; } && test -s "$ac_nlist"; then
12082       # See whether the symbols have a leading underscore.
12083       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12084         lt_cv_sys_symbol_underscore=yes
12085       else
12086         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12087           :
12088         else
12089           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12090         fi
12091       fi
12092     else
12093       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12094     fi
12095   else
12096     echo "configure: failed program was:" >&5
12097     cat conftest.c >&5
12098   fi
12099   rm -rf conftest*
12100
12101 fi
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12103 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12104   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12105
12106
12107 if test x${lt_cv_sys_symbol_underscore} = xyes ; then
12108
12109 $as_echo "#define HAVE_SYMBOL_UNDERSCORE 1" >>confdefs.h
12110
12111 fi
12112
12113 # ------ AX CREATE STDINT H -------------------------------------
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
12115 $as_echo_n "checking for stdint types... " >&6; }
12116 ac_stdint_h=`echo liboil/liboil-stdint.h`
12117 # try to shortcircuit - if the default include path of the compiler
12118 # can find a "stdint.h" header then we assume that all compilers can.
12119 if test "${ac_cv_header_stdint_t+set}" = set; then :
12120   $as_echo_n "(cached) " >&6
12121 else
12122
12123 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
12124 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
12125 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h.  */
12128 #include <stdint.h>
12129 int
12130 main ()
12131 {
12132 int_least32_t v = 0;
12133   ;
12134   return 0;
12135 }
12136 _ACEOF
12137 if ac_fn_c_try_compile "$LINENO"; then :
12138   ac_cv_stdint_result="(assuming C99 compatible system)"
12139  ac_cv_header_stdint_t="stdint.h";
12140 else
12141   ac_cv_header_stdint_t=""
12142 fi
12143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12144 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
12145 CFLAGS="-std=c99"
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h.  */
12148 #include <stdint.h>
12149 int
12150 main ()
12151 {
12152 int_least32_t v = 0;
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157 if ac_fn_c_try_compile "$LINENO"; then :
12158   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
12159 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
12160 fi
12161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12162 fi
12163 CXXFLAGS="$old_CXXFLAGS"
12164 CPPFLAGS="$old_CPPFLAGS"
12165 CFLAGS="$old_CFLAGS"
12166 fi
12167
12168
12169 v="... $ac_cv_header_stdint_h"
12170 if test "$ac_stdint_h" = "stdint.h" ; then
12171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
12172 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
12173 elif test "$ac_stdint_h" = "inttypes.h" ; then
12174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
12175 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
12176 elif test "_$ac_cv_header_stdint_t" = "_" ; then
12177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
12178 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
12179 else
12180  ac_cv_header_stdint="$ac_cv_header_stdint_t"
12181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
12182 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
12183 fi
12184
12185 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
12186
12187
12188 inttype_headers=`echo  | sed -e 's/,/ /g'`
12189
12190 ac_cv_stdint_result="(no helpful system typedefs seen)"
12191
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
12193 $as_echo_n "checking for stdint uintptr_t... " >&6; }
12194 if test "${ac_cv_header_stdint_x+set}" = set; then :
12195   $as_echo_n "(cached) " >&6
12196 else
12197
12198  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
12200 $as_echo "(..)" >&6; }
12201   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers
12202   do
12203    unset ac_cv_type_uintptr_t
12204    unset ac_cv_type_uint64_t
12205    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
12206 "
12207 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12208   ac_cv_header_stdint_x=$i
12209 else
12210   continue
12211 fi
12212
12213    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
12214 "
12215 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12216   and64="/uint64_t"
12217 else
12218   and64=""
12219 fi
12220
12221    ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
12222  break
12223   done
12224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
12225 $as_echo_n "checking for stdint uintptr_t... " >&6; }
12226
12227 fi
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
12229 $as_echo "$ac_cv_header_stdint_x" >&6; }
12230
12231
12232 if test "_$ac_cv_header_stdint_x" = "_" ; then
12233
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
12235 $as_echo_n "checking for stdint uint32_t... " >&6; }
12236 if test "${ac_cv_header_stdint_o+set}" = set; then :
12237   $as_echo_n "(cached) " >&6
12238 else
12239
12240  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
12241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
12242 $as_echo "(..)" >&6; }
12243   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers
12244   do
12245    unset ac_cv_type_uint32_t
12246    unset ac_cv_type_uint64_t
12247    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
12248 "
12249 if test "x$ac_cv_type_uint32_t" = x""yes; then :
12250   ac_cv_header_stdint_o=$i
12251 else
12252   continue
12253 fi
12254
12255    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
12256 "
12257 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12258   and64="/uint64_t"
12259 else
12260   and64=""
12261 fi
12262
12263    ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
12264  break
12265    break;
12266   done
12267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
12268 $as_echo_n "checking for stdint uint32_t... " >&6; }
12269
12270 fi
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
12272 $as_echo "$ac_cv_header_stdint_o" >&6; }
12273
12274 fi
12275
12276 if test "_$ac_cv_header_stdint_x" = "_" ; then
12277 if test "_$ac_cv_header_stdint_o" = "_" ; then
12278
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
12280 $as_echo_n "checking for stdint u_int32_t... " >&6; }
12281 if test "${ac_cv_header_stdint_u+set}" = set; then :
12282   $as_echo_n "(cached) " >&6
12283 else
12284
12285  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
12286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
12287 $as_echo "(..)" >&6; }
12288   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
12289    unset ac_cv_type_u_int32_t
12290    unset ac_cv_type_u_int64_t
12291    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
12292 "
12293 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
12294   ac_cv_header_stdint_u=$i
12295 else
12296   continue
12297 fi
12298
12299    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
12300 "
12301 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
12302   and64="/u_int64_t"
12303 else
12304   and64=""
12305 fi
12306
12307    ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
12308  break
12309    break;
12310   done
12311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
12312 $as_echo_n "checking for stdint u_int32_t... " >&6; }
12313
12314 fi
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
12316 $as_echo "$ac_cv_header_stdint_u" >&6; }
12317
12318 fi fi
12319
12320 if test "_$ac_cv_header_stdint_x" = "_" ; then
12321    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
12322 $as_echo_n "checking for stdint datatype model... " >&6; }
12323    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
12324 $as_echo "(..)" >&6; }
12325
12326    # The cast to long int works around a bug in the HP C Compiler
12327 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12328 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12329 # This bug is HP SR number 8606223364.
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12331 $as_echo_n "checking size of char... " >&6; }
12332 if test "${ac_cv_sizeof_char+set}" = set; then :
12333   $as_echo_n "(cached) " >&6
12334 else
12335   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
12336
12337 else
12338   if test "$ac_cv_type_char" = yes; then
12339      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12341 { as_fn_set_status 77
12342 as_fn_error "cannot compute sizeof (char)
12343 See \`config.log' for more details." "$LINENO" 5; }; }
12344    else
12345      ac_cv_sizeof_char=0
12346    fi
12347 fi
12348
12349 fi
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12351 $as_echo "$ac_cv_sizeof_char" >&6; }
12352
12353
12354
12355 cat >>confdefs.h <<_ACEOF
12356 #define SIZEOF_CHAR $ac_cv_sizeof_char
12357 _ACEOF
12358
12359
12360    # The cast to long int works around a bug in the HP C Compiler
12361 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12362 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12363 # This bug is HP SR number 8606223364.
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12365 $as_echo_n "checking size of short... " >&6; }
12366 if test "${ac_cv_sizeof_short+set}" = set; then :
12367   $as_echo_n "(cached) " >&6
12368 else
12369   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12370
12371 else
12372   if test "$ac_cv_type_short" = yes; then
12373      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12375 { as_fn_set_status 77
12376 as_fn_error "cannot compute sizeof (short)
12377 See \`config.log' for more details." "$LINENO" 5; }; }
12378    else
12379      ac_cv_sizeof_short=0
12380    fi
12381 fi
12382
12383 fi
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12385 $as_echo "$ac_cv_sizeof_short" >&6; }
12386
12387
12388
12389 cat >>confdefs.h <<_ACEOF
12390 #define SIZEOF_SHORT $ac_cv_sizeof_short
12391 _ACEOF
12392
12393
12394    # The cast to long int works around a bug in the HP C Compiler
12395 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12396 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12397 # This bug is HP SR number 8606223364.
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12399 $as_echo_n "checking size of int... " >&6; }
12400 if test "${ac_cv_sizeof_int+set}" = set; then :
12401   $as_echo_n "(cached) " >&6
12402 else
12403   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12404
12405 else
12406   if test "$ac_cv_type_int" = yes; then
12407      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12409 { as_fn_set_status 77
12410 as_fn_error "cannot compute sizeof (int)
12411 See \`config.log' for more details." "$LINENO" 5; }; }
12412    else
12413      ac_cv_sizeof_int=0
12414    fi
12415 fi
12416
12417 fi
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12419 $as_echo "$ac_cv_sizeof_int" >&6; }
12420
12421
12422
12423 cat >>confdefs.h <<_ACEOF
12424 #define SIZEOF_INT $ac_cv_sizeof_int
12425 _ACEOF
12426
12427
12428    # The cast to long int works around a bug in the HP C Compiler
12429 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12430 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12431 # This bug is HP SR number 8606223364.
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12433 $as_echo_n "checking size of long... " >&6; }
12434 if test "${ac_cv_sizeof_long+set}" = set; then :
12435   $as_echo_n "(cached) " >&6
12436 else
12437   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12438
12439 else
12440   if test "$ac_cv_type_long" = yes; then
12441      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12443 { as_fn_set_status 77
12444 as_fn_error "cannot compute sizeof (long)
12445 See \`config.log' for more details." "$LINENO" 5; }; }
12446    else
12447      ac_cv_sizeof_long=0
12448    fi
12449 fi
12450
12451 fi
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12453 $as_echo "$ac_cv_sizeof_long" >&6; }
12454
12455
12456
12457 cat >>confdefs.h <<_ACEOF
12458 #define SIZEOF_LONG $ac_cv_sizeof_long
12459 _ACEOF
12460
12461
12462    # The cast to long int works around a bug in the HP C Compiler
12463 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12464 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12465 # This bug is HP SR number 8606223364.
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
12467 $as_echo_n "checking size of void*... " >&6; }
12468 if test "${ac_cv_sizeof_voidp+set}" = set; then :
12469   $as_echo_n "(cached) " >&6
12470 else
12471   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
12472
12473 else
12474   if test "$ac_cv_type_voidp" = yes; then
12475      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12477 { as_fn_set_status 77
12478 as_fn_error "cannot compute sizeof (void*)
12479 See \`config.log' for more details." "$LINENO" 5; }; }
12480    else
12481      ac_cv_sizeof_voidp=0
12482    fi
12483 fi
12484
12485 fi
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
12487 $as_echo "$ac_cv_sizeof_voidp" >&6; }
12488
12489
12490
12491 cat >>confdefs.h <<_ACEOF
12492 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
12493 _ACEOF
12494
12495
12496    ac_cv_char_data_model=""
12497    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
12498    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
12499    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
12500    ac_cv_long_data_model=""
12501    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
12502    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
12503    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
12504    { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
12505 $as_echo_n "checking data model... " >&6; }
12506    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
12507     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
12508     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
12509     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
12510     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
12511     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
12512     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
12513     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
12514     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
12515     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
12516     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
12517     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
12518     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
12519     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
12520     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
12521     222/*|333/*|444/*|666/*|888/*) :
12522                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
12523      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
12524    esac
12525    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
12526 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
12527
12528 fi
12529
12530 if test "_$ac_cv_header_stdint_x" != "_" ; then
12531    ac_cv_header_stdint="$ac_cv_header_stdint_x"
12532 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
12533    ac_cv_header_stdint="$ac_cv_header_stdint_o"
12534 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
12535    ac_cv_header_stdint="$ac_cv_header_stdint_u"
12536 else
12537    ac_cv_header_stdint="stddef.h"
12538 fi
12539
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
12541 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
12543 $as_echo "($ac_cv_header_stdint)" >&6; }
12544 unset ac_cv_type_int_least32_t
12545 unset ac_cv_type_int_fast32_t
12546 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
12547 "
12548 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
12549
12550 fi
12551
12552 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
12553 "
12554 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
12555
12556 fi
12557
12558 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
12559 "
12560 if test "x$ac_cv_type_intmax_t" = x""yes; then :
12561
12562 fi
12563
12564
12565 fi # shortcircut to system "stdint.h"
12566 # ------------------ PREPARE VARIABLES ------------------------------
12567 if test "$GCC" = "yes" ; then
12568 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
12569 else
12570 ac_cv_stdint_message="using $CC"
12571 fi
12572
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
12574 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
12575
12576 # ----------------- DONE inttypes.h checks START header -------------
12577 ac_config_commands="$ac_config_commands $ac_stdint_h"
12578
12579
12580
12581 for ac_header in stdlib.h unistd.h
12582 do :
12583   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12584 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12585 eval as_val=\$$as_ac_Header
12586    if test "x$as_val" = x""yes; then :
12587   cat >>confdefs.h <<_ACEOF
12588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12589 _ACEOF
12590
12591 fi
12592
12593 done
12594
12595 for ac_func in getpagesize
12596 do :
12597   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12598 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12599   cat >>confdefs.h <<_ACEOF
12600 #define HAVE_GETPAGESIZE 1
12601 _ACEOF
12602
12603 fi
12604 done
12605
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12607 $as_echo_n "checking for working mmap... " >&6; }
12608 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12609   $as_echo_n "(cached) " >&6
12610 else
12611   if test "$cross_compiling" = yes; then :
12612   ac_cv_func_mmap_fixed_mapped=no
12613 else
12614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h.  */
12616 $ac_includes_default
12617 /* malloc might have been renamed as rpl_malloc. */
12618 #undef malloc
12619
12620 /* Thanks to Mike Haertel and Jim Avera for this test.
12621    Here is a matrix of mmap possibilities:
12622         mmap private not fixed
12623         mmap private fixed at somewhere currently unmapped
12624         mmap private fixed at somewhere already mapped
12625         mmap shared not fixed
12626         mmap shared fixed at somewhere currently unmapped
12627         mmap shared fixed at somewhere already mapped
12628    For private mappings, we should verify that changes cannot be read()
12629    back from the file, nor mmap's back from the file at a different
12630    address.  (There have been systems where private was not correctly
12631    implemented like the infamous i386 svr4.0, and systems where the
12632    VM page cache was not coherent with the file system buffer cache
12633    like early versions of FreeBSD and possibly contemporary NetBSD.)
12634    For shared mappings, we should conversely verify that changes get
12635    propagated back to all the places they're supposed to be.
12636
12637    Grep wants private fixed already mapped.
12638    The main things grep needs to know about mmap are:
12639    * does it exist and is it safe to write into the mmap'd area
12640    * how to use it (BSD variants)  */
12641
12642 #include <fcntl.h>
12643 #include <sys/mman.h>
12644
12645 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12646 char *malloc ();
12647 #endif
12648
12649 /* This mess was copied from the GNU getpagesize.h.  */
12650 #ifndef HAVE_GETPAGESIZE
12651 /* Assume that all systems that can run configure have sys/param.h.  */
12652 # ifndef HAVE_SYS_PARAM_H
12653 #  define HAVE_SYS_PARAM_H 1
12654 # endif
12655
12656 # ifdef _SC_PAGESIZE
12657 #  define getpagesize() sysconf(_SC_PAGESIZE)
12658 # else /* no _SC_PAGESIZE */
12659 #  ifdef HAVE_SYS_PARAM_H
12660 #   include <sys/param.h>
12661 #   ifdef EXEC_PAGESIZE
12662 #    define getpagesize() EXEC_PAGESIZE
12663 #   else /* no EXEC_PAGESIZE */
12664 #    ifdef NBPG
12665 #     define getpagesize() NBPG * CLSIZE
12666 #     ifndef CLSIZE
12667 #      define CLSIZE 1
12668 #     endif /* no CLSIZE */
12669 #    else /* no NBPG */
12670 #     ifdef NBPC
12671 #      define getpagesize() NBPC
12672 #     else /* no NBPC */
12673 #      ifdef PAGESIZE
12674 #       define getpagesize() PAGESIZE
12675 #      endif /* PAGESIZE */
12676 #     endif /* no NBPC */
12677 #    endif /* no NBPG */
12678 #   endif /* no EXEC_PAGESIZE */
12679 #  else /* no HAVE_SYS_PARAM_H */
12680 #   define getpagesize() 8192   /* punt totally */
12681 #  endif /* no HAVE_SYS_PARAM_H */
12682 # endif /* no _SC_PAGESIZE */
12683
12684 #endif /* no HAVE_GETPAGESIZE */
12685
12686 int
12687 main ()
12688 {
12689   char *data, *data2, *data3;
12690   int i, pagesize;
12691   int fd;
12692
12693   pagesize = getpagesize ();
12694
12695   /* First, make a file with some known garbage in it. */
12696   data = (char *) malloc (pagesize);
12697   if (!data)
12698     return 1;
12699   for (i = 0; i < pagesize; ++i)
12700     *(data + i) = rand ();
12701   umask (0);
12702   fd = creat ("conftest.mmap", 0600);
12703   if (fd < 0)
12704     return 1;
12705   if (write (fd, data, pagesize) != pagesize)
12706     return 1;
12707   close (fd);
12708
12709   /* Next, try to mmap the file at a fixed address which already has
12710      something else allocated at it.  If we can, also make sure that
12711      we see the same garbage.  */
12712   fd = open ("conftest.mmap", O_RDWR);
12713   if (fd < 0)
12714     return 1;
12715   data2 = (char *) malloc (2 * pagesize);
12716   if (!data2)
12717     return 1;
12718   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12719   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12720                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12721     return 1;
12722   for (i = 0; i < pagesize; ++i)
12723     if (*(data + i) != *(data2 + i))
12724       return 1;
12725
12726   /* Finally, make sure that changes to the mapped area do not
12727      percolate back to the file as seen by read().  (This is a bug on
12728      some variants of i386 svr4.0.)  */
12729   for (i = 0; i < pagesize; ++i)
12730     *(data2 + i) = *(data2 + i) + 1;
12731   data3 = (char *) malloc (pagesize);
12732   if (!data3)
12733     return 1;
12734   if (read (fd, data3, pagesize) != pagesize)
12735     return 1;
12736   for (i = 0; i < pagesize; ++i)
12737     if (*(data + i) != *(data3 + i))
12738       return 1;
12739   close (fd);
12740   return 0;
12741 }
12742 _ACEOF
12743 if ac_fn_c_try_run "$LINENO"; then :
12744   ac_cv_func_mmap_fixed_mapped=yes
12745 else
12746   ac_cv_func_mmap_fixed_mapped=no
12747 fi
12748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12749   conftest.$ac_objext conftest.beam conftest.$ac_ext
12750 fi
12751
12752 fi
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12754 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12755 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12756
12757 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12758
12759 fi
12760 rm -f conftest.mmap
12761
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rint in -lm" >&5
12763 $as_echo_n "checking for rint in -lm... " >&6; }
12764 if test "${ac_cv_lib_m_rint+set}" = set; then :
12765   $as_echo_n "(cached) " >&6
12766 else
12767   ac_check_lib_save_LIBS=$LIBS
12768 LIBS="-lm  $LIBS"
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h.  */
12771
12772 /* Override any GCC internal prototype to avoid an error.
12773    Use char because int might match the return type of a GCC
12774    builtin and then its argument prototype would still apply.  */
12775 #ifdef __cplusplus
12776 extern "C"
12777 #endif
12778 char rint ();
12779 int
12780 main ()
12781 {
12782 return rint ();
12783   ;
12784   return 0;
12785 }
12786 _ACEOF
12787 if ac_fn_c_try_link "$LINENO"; then :
12788   ac_cv_lib_m_rint=yes
12789 else
12790   ac_cv_lib_m_rint=no
12791 fi
12792 rm -f core conftest.err conftest.$ac_objext \
12793     conftest$ac_exeext conftest.$ac_ext
12794 LIBS=$ac_check_lib_save_LIBS
12795 fi
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_rint" >&5
12797 $as_echo "$ac_cv_lib_m_rint" >&6; }
12798 if test "x$ac_cv_lib_m_rint" = x""yes; then :
12799
12800 $as_echo "#define HAVE_RINT 1" >>confdefs.h
12801
12802 fi
12803
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rintf in -lm" >&5
12805 $as_echo_n "checking for rintf in -lm... " >&6; }
12806 if test "${ac_cv_lib_m_rintf+set}" = set; then :
12807   $as_echo_n "(cached) " >&6
12808 else
12809   ac_check_lib_save_LIBS=$LIBS
12810 LIBS="-lm  $LIBS"
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h.  */
12813
12814 /* Override any GCC internal prototype to avoid an error.
12815    Use char because int might match the return type of a GCC
12816    builtin and then its argument prototype would still apply.  */
12817 #ifdef __cplusplus
12818 extern "C"
12819 #endif
12820 char rintf ();
12821 int
12822 main ()
12823 {
12824 return rintf ();
12825   ;
12826   return 0;
12827 }
12828 _ACEOF
12829 if ac_fn_c_try_link "$LINENO"; then :
12830   ac_cv_lib_m_rintf=yes
12831 else
12832   ac_cv_lib_m_rintf=no
12833 fi
12834 rm -f core conftest.err conftest.$ac_objext \
12835     conftest$ac_exeext conftest.$ac_ext
12836 LIBS=$ac_check_lib_save_LIBS
12837 fi
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_rintf" >&5
12839 $as_echo "$ac_cv_lib_m_rintf" >&6; }
12840 if test "x$ac_cv_lib_m_rintf" = x""yes; then :
12841
12842 $as_echo "#define HAVE_RINTF 1" >>confdefs.h
12843
12844 fi
12845
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrint in -lm" >&5
12847 $as_echo_n "checking for lrint in -lm... " >&6; }
12848 if test "${ac_cv_lib_m_lrint+set}" = set; then :
12849   $as_echo_n "(cached) " >&6
12850 else
12851   ac_check_lib_save_LIBS=$LIBS
12852 LIBS="-lm  $LIBS"
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h.  */
12855
12856 /* Override any GCC internal prototype to avoid an error.
12857    Use char because int might match the return type of a GCC
12858    builtin and then its argument prototype would still apply.  */
12859 #ifdef __cplusplus
12860 extern "C"
12861 #endif
12862 char lrint ();
12863 int
12864 main ()
12865 {
12866 return lrint ();
12867   ;
12868   return 0;
12869 }
12870 _ACEOF
12871 if ac_fn_c_try_link "$LINENO"; then :
12872   ac_cv_lib_m_lrint=yes
12873 else
12874   ac_cv_lib_m_lrint=no
12875 fi
12876 rm -f core conftest.err conftest.$ac_objext \
12877     conftest$ac_exeext conftest.$ac_ext
12878 LIBS=$ac_check_lib_save_LIBS
12879 fi
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lrint" >&5
12881 $as_echo "$ac_cv_lib_m_lrint" >&6; }
12882 if test "x$ac_cv_lib_m_lrint" = x""yes; then :
12883
12884 $as_echo "#define HAVE_LRINT 1" >>confdefs.h
12885
12886 fi
12887
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf in -lm" >&5
12889 $as_echo_n "checking for lrintf in -lm... " >&6; }
12890 if test "${ac_cv_lib_m_lrintf+set}" = set; then :
12891   $as_echo_n "(cached) " >&6
12892 else
12893   ac_check_lib_save_LIBS=$LIBS
12894 LIBS="-lm  $LIBS"
12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h.  */
12897
12898 /* Override any GCC internal prototype to avoid an error.
12899    Use char because int might match the return type of a GCC
12900    builtin and then its argument prototype would still apply.  */
12901 #ifdef __cplusplus
12902 extern "C"
12903 #endif
12904 char lrintf ();
12905 int
12906 main ()
12907 {
12908 return lrintf ();
12909   ;
12910   return 0;
12911 }
12912 _ACEOF
12913 if ac_fn_c_try_link "$LINENO"; then :
12914   ac_cv_lib_m_lrintf=yes
12915 else
12916   ac_cv_lib_m_lrintf=no
12917 fi
12918 rm -f core conftest.err conftest.$ac_objext \
12919     conftest$ac_exeext conftest.$ac_ext
12920 LIBS=$ac_check_lib_save_LIBS
12921 fi
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lrintf" >&5
12923 $as_echo "$ac_cv_lib_m_lrintf" >&6; }
12924 if test "x$ac_cv_lib_m_lrintf" = x""yes; then :
12925
12926 $as_echo "#define HAVE_LRINTF 1" >>confdefs.h
12927
12928 fi
12929
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos in -lm" >&5
12931 $as_echo_n "checking for sincos in -lm... " >&6; }
12932 if test "${ac_cv_lib_m_sincos+set}" = set; then :
12933   $as_echo_n "(cached) " >&6
12934 else
12935   ac_check_lib_save_LIBS=$LIBS
12936 LIBS="-lm  $LIBS"
12937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938 /* end confdefs.h.  */
12939
12940 /* Override any GCC internal prototype to avoid an error.
12941    Use char because int might match the return type of a GCC
12942    builtin and then its argument prototype would still apply.  */
12943 #ifdef __cplusplus
12944 extern "C"
12945 #endif
12946 char sincos ();
12947 int
12948 main ()
12949 {
12950 return sincos ();
12951   ;
12952   return 0;
12953 }
12954 _ACEOF
12955 if ac_fn_c_try_link "$LINENO"; then :
12956   ac_cv_lib_m_sincos=yes
12957 else
12958   ac_cv_lib_m_sincos=no
12959 fi
12960 rm -f core conftest.err conftest.$ac_objext \
12961     conftest$ac_exeext conftest.$ac_ext
12962 LIBS=$ac_check_lib_save_LIBS
12963 fi
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sincos" >&5
12965 $as_echo "$ac_cv_lib_m_sincos" >&6; }
12966 if test "x$ac_cv_lib_m_sincos" = x""yes; then :
12967
12968 $as_echo "#define HAVE_SINCOS 1" >>confdefs.h
12969
12970 fi
12971
12972
12973 ac_fn_c_check_header_mongrel "$LINENO" "ieee754.h" "ac_cv_header_ieee754_h" "$ac_includes_default"
12974 if test "x$ac_cv_header_ieee754_h" = x""yes; then :
12975
12976 $as_echo "#define HAVE_IEEE754_H 1" >>confdefs.h
12977
12978 fi
12979
12980
12981
12982 for ac_header in inttypes.h
12983 do :
12984   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12985 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
12986   cat >>confdefs.h <<_ACEOF
12987 #define HAVE_INTTYPES_H 1
12988 _ACEOF
12989
12990 fi
12991
12992 done
12993
12994 for ac_header in sys/time.h
12995 do :
12996   ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12997 if test "x$ac_cv_header_sys_time_h" = x""yes; then :
12998   cat >>confdefs.h <<_ACEOF
12999 #define HAVE_SYS_TIME_H 1
13000 _ACEOF
13001
13002 fi
13003
13004 done
13005
13006 for ac_header in unistd.h
13007 do :
13008   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13009 if test "x$ac_cv_header_unistd_h" = x""yes; then :
13010   cat >>confdefs.h <<_ACEOF
13011 #define HAVE_UNISTD_H 1
13012 _ACEOF
13013
13014 fi
13015
13016 done
13017
13018
13019 for ac_func in gettimeofday
13020 do :
13021   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13022 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
13023   cat >>confdefs.h <<_ACEOF
13024 #define HAVE_GETTIMEOFDAY 1
13025 _ACEOF
13026
13027 fi
13028 done
13029
13030 for ac_func in sigaction
13031 do :
13032   ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
13033 if test "x$ac_cv_func_sigaction" = x""yes; then :
13034   cat >>confdefs.h <<_ACEOF
13035 #define HAVE_SIGACTION 1
13036 _ACEOF
13037
13038 fi
13039 done
13040
13041 for ac_func in sigsetjmp
13042 do :
13043   ac_fn_c_check_func "$LINENO" "sigsetjmp" "ac_cv_func_sigsetjmp"
13044 if test "x$ac_cv_func_sigsetjmp" = x""yes; then :
13045   cat >>confdefs.h <<_ACEOF
13046 #define HAVE_SIGSETJMP 1
13047 _ACEOF
13048
13049 fi
13050 done
13051
13052
13053 LIBM=
13054 case $host in
13055 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
13056   # These system don't have libm, or don't need it
13057   ;;
13058 *-ncr-sysv4.3*)
13059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13060 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13061 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13062   $as_echo_n "(cached) " >&6
13063 else
13064   ac_check_lib_save_LIBS=$LIBS
13065 LIBS="-lmw  $LIBS"
13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h.  */
13068
13069 /* Override any GCC internal prototype to avoid an error.
13070    Use char because int might match the return type of a GCC
13071    builtin and then its argument prototype would still apply.  */
13072 #ifdef __cplusplus
13073 extern "C"
13074 #endif
13075 char _mwvalidcheckl ();
13076 int
13077 main ()
13078 {
13079 return _mwvalidcheckl ();
13080   ;
13081   return 0;
13082 }
13083 _ACEOF
13084 if ac_fn_c_try_link "$LINENO"; then :
13085   ac_cv_lib_mw__mwvalidcheckl=yes
13086 else
13087   ac_cv_lib_mw__mwvalidcheckl=no
13088 fi
13089 rm -f core conftest.err conftest.$ac_objext \
13090     conftest$ac_exeext conftest.$ac_ext
13091 LIBS=$ac_check_lib_save_LIBS
13092 fi
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13094 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13095 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
13096   LIBM="-lmw"
13097 fi
13098
13099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13100 $as_echo_n "checking for cos in -lm... " >&6; }
13101 if test "${ac_cv_lib_m_cos+set}" = set; then :
13102   $as_echo_n "(cached) " >&6
13103 else
13104   ac_check_lib_save_LIBS=$LIBS
13105 LIBS="-lm  $LIBS"
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h.  */
13108
13109 /* Override any GCC internal prototype to avoid an error.
13110    Use char because int might match the return type of a GCC
13111    builtin and then its argument prototype would still apply.  */
13112 #ifdef __cplusplus
13113 extern "C"
13114 #endif
13115 char cos ();
13116 int
13117 main ()
13118 {
13119 return cos ();
13120   ;
13121   return 0;
13122 }
13123 _ACEOF
13124 if ac_fn_c_try_link "$LINENO"; then :
13125   ac_cv_lib_m_cos=yes
13126 else
13127   ac_cv_lib_m_cos=no
13128 fi
13129 rm -f core conftest.err conftest.$ac_objext \
13130     conftest$ac_exeext conftest.$ac_ext
13131 LIBS=$ac_check_lib_save_LIBS
13132 fi
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13134 $as_echo "$ac_cv_lib_m_cos" >&6; }
13135 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13136   LIBM="$LIBM -lm"
13137 fi
13138
13139   ;;
13140 *)
13141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13142 $as_echo_n "checking for cos in -lm... " >&6; }
13143 if test "${ac_cv_lib_m_cos+set}" = set; then :
13144   $as_echo_n "(cached) " >&6
13145 else
13146   ac_check_lib_save_LIBS=$LIBS
13147 LIBS="-lm  $LIBS"
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h.  */
13150
13151 /* Override any GCC internal prototype to avoid an error.
13152    Use char because int might match the return type of a GCC
13153    builtin and then its argument prototype would still apply.  */
13154 #ifdef __cplusplus
13155 extern "C"
13156 #endif
13157 char cos ();
13158 int
13159 main ()
13160 {
13161 return cos ();
13162   ;
13163   return 0;
13164 }
13165 _ACEOF
13166 if ac_fn_c_try_link "$LINENO"; then :
13167   ac_cv_lib_m_cos=yes
13168 else
13169   ac_cv_lib_m_cos=no
13170 fi
13171 rm -f core conftest.err conftest.$ac_objext \
13172     conftest$ac_exeext conftest.$ac_ext
13173 LIBS=$ac_check_lib_save_LIBS
13174 fi
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13176 $as_echo "$ac_cv_lib_m_cos" >&6; }
13177 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13178   LIBM="-lm"
13179 fi
13180
13181   ;;
13182 esac
13183
13184
13185
13186
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13188 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13189 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
13190   $as_echo_n "(cached) " >&6
13191 else
13192   ac_check_lib_save_LIBS=$LIBS
13193 LIBS="-lrt  $LIBS"
13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h.  */
13196
13197 /* Override any GCC internal prototype to avoid an error.
13198    Use char because int might match the return type of a GCC
13199    builtin and then its argument prototype would still apply.  */
13200 #ifdef __cplusplus
13201 extern "C"
13202 #endif
13203 char clock_gettime ();
13204 int
13205 main ()
13206 {
13207 return clock_gettime ();
13208   ;
13209   return 0;
13210 }
13211 _ACEOF
13212 if ac_fn_c_try_link "$LINENO"; then :
13213   ac_cv_lib_rt_clock_gettime=yes
13214 else
13215   ac_cv_lib_rt_clock_gettime=no
13216 fi
13217 rm -f core conftest.err conftest.$ac_objext \
13218     conftest$ac_exeext conftest.$ac_ext
13219 LIBS=$ac_check_lib_save_LIBS
13220 fi
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13222 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13223 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
13224
13225 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13226
13227    LIBRT=-lrt
13228
13229 fi
13230
13231
13232
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clocks" >&5
13234 $as_echo_n "checking for monotonic clocks... " >&6; }
13235 if test "${oil_cv_monotonic_clock+set}" = set; then :
13236   $as_echo_n "(cached) " >&6
13237 else
13238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h.  */
13240
13241 #include <time.h>
13242 #include <unistd.h>
13243 int main() {
13244 #if !(defined(_POSIX_MONOTONIC_CLOCK) && _POSIX_MONOTONIC_CLOCK >= 0 && defined(CLOCK_MONOTONIC))
13245         #error No monotonic clock
13246 #endif
13247         return 0;
13248 }
13249
13250 _ACEOF
13251 if ac_fn_c_try_compile "$LINENO"; then :
13252   oil_cv_monotonic_clock=yes
13253 else
13254   oil_cv_monotonic_clock=no
13255 fi
13256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13257 fi
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $oil_cv_monotonic_clock" >&5
13259 $as_echo "$oil_cv_monotonic_clock" >&6; }
13260 if test "$oil_cv_monotonic_clock" = "yes"; then
13261
13262 $as_echo "#define HAVE_MONOTONIC_CLOCK 1" >>confdefs.h
13263
13264 fi
13265
13266
13267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wall" >&5
13268 $as_echo_n "checking to see if compiler understands -Wall... " >&6; }
13269
13270   save_CFLAGS="$CFLAGS"
13271   CFLAGS="$CFLAGS -Wall"
13272
13273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h.  */
13275
13276 int
13277 main ()
13278 {
13279
13280   ;
13281   return 0;
13282 }
13283 _ACEOF
13284 if ac_fn_c_try_compile "$LINENO"; then :
13285   flag_ok=yes
13286 else
13287   flag_ok=no
13288 fi
13289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13290   CFLAGS="$save_CFLAGS"
13291
13292   if test "X$flag_ok" = Xyes ; then
13293     LIBOIL_CFLAGS="$LIBOIL_CFLAGS -Wall"
13294     true
13295   else
13296
13297     true
13298   fi
13299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13300 $as_echo "$flag_ok" >&6; }
13301
13302 if test "x$LIBOIL_CVS" = "xyes"
13303 then
13304
13305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Werror" >&5
13306 $as_echo_n "checking to see if compiler understands -Werror... " >&6; }
13307
13308   save_CFLAGS="$CFLAGS"
13309   CFLAGS="$CFLAGS -Werror"
13310
13311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h.  */
13313
13314 int
13315 main ()
13316 {
13317
13318   ;
13319   return 0;
13320 }
13321 _ACEOF
13322 if ac_fn_c_try_compile "$LINENO"; then :
13323   flag_ok=yes
13324 else
13325   flag_ok=no
13326 fi
13327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13328   CFLAGS="$save_CFLAGS"
13329
13330   if test "X$flag_ok" = Xyes ; then
13331     LIBOIL_CFLAGS="$LIBOIL_CFLAGS -Werror"
13332     true
13333   else
13334
13335     true
13336   fi
13337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13338 $as_echo "$flag_ok" >&6; }
13339
13340 fi
13341 if test x$HAVE_GCC_ASM = xyes -a x$HAVE_POWERPC = xyes ; then
13342
13343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands \"-Wa,-maltivec\"" >&5
13344 $as_echo_n "checking to see if compiler understands \"-Wa,-maltivec\"... " >&6; }
13345
13346   save_CFLAGS="$CFLAGS"
13347   CFLAGS="$CFLAGS "-Wa,-maltivec""
13348
13349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13350 /* end confdefs.h.  */
13351
13352 int
13353 main ()
13354 {
13355
13356   ;
13357   return 0;
13358 }
13359 _ACEOF
13360 if ac_fn_c_try_compile "$LINENO"; then :
13361   flag_ok=yes
13362 else
13363   flag_ok=no
13364 fi
13365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13366   CFLAGS="$save_CFLAGS"
13367
13368   if test "X$flag_ok" = Xyes ; then
13369     LIBOIL_CFLAGS="$LIBOIL_CFLAGS -Wa,-maltivec"
13370     true
13371   else
13372     true
13373     true
13374   fi
13375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13376 $as_echo "$flag_ok" >&6; }
13377
13378
13379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands \"-Wa,-mregnames\"" >&5
13380 $as_echo_n "checking to see if compiler understands \"-Wa,-mregnames\"... " >&6; }
13381
13382   save_CFLAGS="$CFLAGS"
13383   CFLAGS="$CFLAGS "-Wa,-mregnames""
13384
13385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h.  */
13387
13388 int
13389 main ()
13390 {
13391
13392   ;
13393   return 0;
13394 }
13395 _ACEOF
13396 if ac_fn_c_try_compile "$LINENO"; then :
13397   flag_ok=yes
13398 else
13399   flag_ok=no
13400 fi
13401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13402   CFLAGS="$save_CFLAGS"
13403
13404   if test "X$flag_ok" = Xyes ; then
13405     LIBOIL_CFLAGS="$LIBOIL_CFLAGS -Wa,-mregnames"
13406     true
13407   else
13408     true
13409     true
13410   fi
13411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13412 $as_echo "$flag_ok" >&6; }
13413
13414
13415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands \"-force_cpusubtype_ALL\"" >&5
13416 $as_echo_n "checking to see if compiler understands \"-force_cpusubtype_ALL\"... " >&6; }
13417
13418   save_CFLAGS="$CFLAGS"
13419   CFLAGS="$CFLAGS "-force_cpusubtype_ALL""
13420
13421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h.  */
13423
13424 int
13425 main ()
13426 {
13427
13428   ;
13429   return 0;
13430 }
13431 _ACEOF
13432 if ac_fn_c_try_compile "$LINENO"; then :
13433   flag_ok=yes
13434 else
13435   flag_ok=no
13436 fi
13437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13438   CFLAGS="$save_CFLAGS"
13439
13440   if test "X$flag_ok" = Xyes ; then
13441     LIBOIL_CFLAGS="$LIBOIL_CFLAGS -force_cpusubtype_ALL"
13442     true
13443   else
13444     true
13445     true
13446   fi
13447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13448 $as_echo "$flag_ok" >&6; }
13449
13450
13451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands \"-fno-tree-vectorize\"" >&5
13452 $as_echo_n "checking to see if compiler understands \"-fno-tree-vectorize\"... " >&6; }
13453
13454   save_CFLAGS="$CFLAGS"
13455   CFLAGS="$CFLAGS "-fno-tree-vectorize""
13456
13457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h.  */
13459
13460 int
13461 main ()
13462 {
13463
13464   ;
13465   return 0;
13466 }
13467 _ACEOF
13468 if ac_fn_c_try_compile "$LINENO"; then :
13469   flag_ok=yes
13470 else
13471   flag_ok=no
13472 fi
13473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13474   CFLAGS="$save_CFLAGS"
13475
13476   if test "X$flag_ok" = Xyes ; then
13477     LIBOIL_CFLAGS="$LIBOIL_CFLAGS -fno-tree-vectorize"
13478     true
13479   else
13480     true
13481     true
13482   fi
13483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13484 $as_echo "$flag_ok" >&6; }
13485
13486 fi
13487
13488 # Check whether --enable-vfp was given.
13489 if test "${enable_vfp+set}" = set; then :
13490   enableval=$enable_vfp; enable_vfp=$enableval
13491 else
13492   enable_vfp=yes
13493 fi
13494
13495 if test "x$enable-vfp" = xyes -a x$HAVE_GCC_ASM = xyes -a x$HAVE_ARM = xyes; then
13496
13497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands \"-Wa,-mfpu=vfp\"" >&5
13498 $as_echo_n "checking to see if compiler understands \"-Wa,-mfpu=vfp\"... " >&6; }
13499
13500   save_CFLAGS="$CFLAGS"
13501   CFLAGS="$CFLAGS "-Wa,-mfpu=vfp""
13502
13503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h.  */
13505
13506 int
13507 main ()
13508 {
13509
13510   ;
13511   return 0;
13512 }
13513 _ACEOF
13514 if ac_fn_c_try_compile "$LINENO"; then :
13515   flag_ok=yes
13516 else
13517   flag_ok=no
13518 fi
13519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520   CFLAGS="$save_CFLAGS"
13521
13522   if test "X$flag_ok" = Xyes ; then
13523     VFP_CFLAGS="$VFP_CFLAGS -mfpu=vfp"
13524     true
13525   else
13526     true
13527     true
13528   fi
13529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13530 $as_echo "$flag_ok" >&6; }
13531
13532   #AS_COMPILER_FLAG(["-Wa,-mfloat-abi=softfp"],
13533   #  [VFP_CFLAGS="$VFP_CFLAGS -mfloat-abi=softfp"],
13534   #  true)
13535 fi
13536
13537
13538 #AS_COMPILER_FLAG(["-fasm-blocks"], HAVE_ASM_BLOCKS=yes, HAVE_ASM_BLOCKS=no)
13539 HAVE_ASM_BLOCKS=no
13540 if test "x$HAVE_ASM_BLOCKS" = "xyes"
13541 then
13542   LIBOIL_CFLAGS="$LIBOIL_CFLAGS -fasm-blocks"
13543 fi
13544  if test "x$HAVE_ASM_BLOCKS" = "xyes"; then
13545   HAVE_ASM_BLOCKS_TRUE=
13546   HAVE_ASM_BLOCKS_FALSE='#'
13547 else
13548   HAVE_ASM_BLOCKS_TRUE='#'
13549   HAVE_ASM_BLOCKS_FALSE=
13550 fi
13551
13552
13553 #if test "x$HAVE_I386" = "xyes"
13554 #then
13555 #  # I'd write a test for this, but as of 4.1.2, gcc is still broken
13556 #  AC_DEFINE(USE_SSE_WRAPPER, 1, [Defined if SSE functions need stack alignment wrappers])
13557 #fi
13558
13559
13560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports MMX intrinsics" >&5
13561 $as_echo_n "checking if compiler supports MMX intrinsics... " >&6; }
13562
13563   save_CFLAGS="$CFLAGS"
13564   CFLAGS="$CFLAGS -mmmx"
13565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566 /* end confdefs.h.  */
13567 #include <mmintrin.h>
13568 int
13569 main ()
13570 {
13571 _mm_empty()
13572   ;
13573   return 0;
13574 }
13575 _ACEOF
13576 if ac_fn_c_try_compile "$LINENO"; then :
13577   flag_ok=yes
13578 else
13579   flag_ok=no
13580 fi
13581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13582   CFLAGS="$save_CFLAGS"
13583
13584   MMX_CFLAGS="-mmmx"
13585   if test "X$flag_ok" = Xyes ; then
13586     HAVE_MMX_INTRINSICS=yes
13587     true
13588   else
13589     HAVE_MMX_INTRINSICS=no
13590     true
13591   fi
13592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13593 $as_echo "$flag_ok" >&6; }
13594
13595
13596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE intrinsics" >&5
13597 $as_echo_n "checking if compiler supports SSE intrinsics... " >&6; }
13598
13599   save_CFLAGS="$CFLAGS"
13600   CFLAGS="$CFLAGS -msse"
13601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h.  */
13603 #include <xmmintrin.h>
13604 int
13605 main ()
13606 {
13607
13608 #ifdef __GNUC_MINOR__
13609 #if (__GNUC__ * 1000 + __GNUC_MINOR__) < 4002
13610 #error GCC before 4.2 has critical bugs compiling SSE intrinsics
13611 #endif
13612 #endif
13613 __m128 a; a = _mm_or_ps(a,a)
13614   ;
13615   return 0;
13616 }
13617 _ACEOF
13618 if ac_fn_c_try_compile "$LINENO"; then :
13619   flag_ok=yes
13620 else
13621   flag_ok=no
13622 fi
13623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624   CFLAGS="$save_CFLAGS"
13625
13626   SSE_CFLAGS="-msse"
13627   if test "X$flag_ok" = Xyes ; then
13628     HAVE_SSE_INTRINSICS=yes
13629     true
13630   else
13631     HAVE_SSE_INTRINSICS=no
13632     true
13633   fi
13634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13635 $as_echo "$flag_ok" >&6; }
13636
13637
13638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE2 intrinsics" >&5
13639 $as_echo_n "checking if compiler supports SSE2 intrinsics... " >&6; }
13640
13641   save_CFLAGS="$CFLAGS"
13642   CFLAGS="$CFLAGS -msse2"
13643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h.  */
13645 #include <emmintrin.h>
13646 int
13647 main ()
13648 {
13649
13650 #ifdef __GNUC_MINOR__
13651 #if (__GNUC__ * 1000 + __GNUC_MINOR__) < 4002
13652 #error GCC before 4.2 has critical bugs compiling SSE2 intrinsics
13653 #endif
13654 #endif
13655 __m128i a; a = _mm_setzero_si128(); a = _mm_srli_epi16(a,8)
13656   ;
13657   return 0;
13658 }
13659 _ACEOF
13660 if ac_fn_c_try_compile "$LINENO"; then :
13661   flag_ok=yes
13662 else
13663   flag_ok=no
13664 fi
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666   CFLAGS="$save_CFLAGS"
13667
13668   SSE2_CFLAGS="-msse2"
13669   if test "X$flag_ok" = Xyes ; then
13670     HAVE_SSE2_INTRINSICS=yes
13671     true
13672   else
13673     HAVE_SSE2_INTRINSICS=no
13674     true
13675   fi
13676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13677 $as_echo "$flag_ok" >&6; }
13678
13679
13680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE3 intrinsics" >&5
13681 $as_echo_n "checking if compiler supports SSE3 intrinsics... " >&6; }
13682
13683   save_CFLAGS="$CFLAGS"
13684   CFLAGS="$CFLAGS -msse3"
13685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h.  */
13687 #include <pmmintrin.h>
13688 int
13689 main ()
13690 {
13691
13692 #ifdef __GNUC_MINOR__
13693 #if (__GNUC__ * 1000 + __GNUC_MINOR__) < 4002
13694 #error GCC before 4.2 has critical bugs compiling SSE2 intrinsics
13695 #endif
13696 #endif
13697 __m128 a; a = _mm_addsub_ps(a,a)
13698   ;
13699   return 0;
13700 }
13701 _ACEOF
13702 if ac_fn_c_try_compile "$LINENO"; then :
13703   flag_ok=yes
13704 else
13705   flag_ok=no
13706 fi
13707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13708   CFLAGS="$save_CFLAGS"
13709
13710   SSE3_CFLAGS="-msse3"
13711   if test "X$flag_ok" = Xyes ; then
13712     HAVE_SSE3_INTRINSICS=yes
13713     true
13714   else
13715     HAVE_SSE3_INTRINSICS=no
13716     true
13717   fi
13718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13719 $as_echo "$flag_ok" >&6; }
13720
13721
13722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports 3DNOW intrinsics" >&5
13723 $as_echo_n "checking if compiler supports 3DNOW intrinsics... " >&6; }
13724
13725   save_CFLAGS="$CFLAGS"
13726   CFLAGS="$CFLAGS -m3dnow"
13727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13728 /* end confdefs.h.  */
13729 #include <mm3dnow.h>
13730 int
13731 main ()
13732 {
13733 _m_femms()
13734   ;
13735   return 0;
13736 }
13737 _ACEOF
13738 if ac_fn_c_try_compile "$LINENO"; then :
13739   flag_ok=yes
13740 else
13741   flag_ok=no
13742 fi
13743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744   CFLAGS="$save_CFLAGS"
13745
13746   _3DNOW_CFLAGS="-m3dnow"
13747   if test "X$flag_ok" = Xyes ; then
13748     HAVE_3DNOW_INTRINSICS=yes
13749     true
13750   else
13751     HAVE_3DNOW_INTRINSICS=no
13752     true
13753   fi
13754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13755 $as_echo "$flag_ok" >&6; }
13756
13757
13758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports 3DNOWEXT intrinsics" >&5
13759 $as_echo_n "checking if compiler supports 3DNOWEXT intrinsics... " >&6; }
13760
13761   save_CFLAGS="$CFLAGS"
13762   CFLAGS="$CFLAGS -m3dnow -march=athlon"
13763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h.  */
13765 #include <mm3dnow.h>
13766 int
13767 main ()
13768 {
13769 __m64 a;a=_m_pf2iw(a)
13770   ;
13771   return 0;
13772 }
13773 _ACEOF
13774 if ac_fn_c_try_compile "$LINENO"; then :
13775   flag_ok=yes
13776 else
13777   flag_ok=no
13778 fi
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780   CFLAGS="$save_CFLAGS"
13781
13782   _3DNOWEXT_CFLAGS="-m3dnow -march=athlon"
13783   if test "X$flag_ok" = Xyes ; then
13784     HAVE_3DNOWEXT_INTRINSICS=yes
13785     true
13786   else
13787     HAVE_3DNOWEXT_INTRINSICS=no
13788     true
13789   fi
13790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13791 $as_echo "$flag_ok" >&6; }
13792
13793
13794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ALTIVEC intrinsics" >&5
13795 $as_echo_n "checking if compiler supports ALTIVEC intrinsics... " >&6; }
13796
13797   save_CFLAGS="$CFLAGS"
13798   CFLAGS="$CFLAGS -maltivec"
13799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800 /* end confdefs.h.  */
13801 #include <altivec.h>
13802 int
13803 main ()
13804 {
13805 __vector a; a = vec_or(a,a)
13806   ;
13807   return 0;
13808 }
13809 _ACEOF
13810 if ac_fn_c_try_compile "$LINENO"; then :
13811   flag_ok=yes
13812 else
13813   flag_ok=no
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816   CFLAGS="$save_CFLAGS"
13817
13818   ALTIVEC_CFLAGS="-maltivec"
13819   if test "X$flag_ok" = Xyes ; then
13820     HAVE_ALTIVEC_INTRINSICS=yes
13821     true
13822   else
13823     HAVE_ALTIVEC_INTRINSICS=no
13824     true
13825   fi
13826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13827 $as_echo "$flag_ok" >&6; }
13828
13829
13830  if test "x$HAVE_MMX_INTRINSICS" = "xyes"; then
13831   HAVE_MMX_INTRINSICS_TRUE=
13832   HAVE_MMX_INTRINSICS_FALSE='#'
13833 else
13834   HAVE_MMX_INTRINSICS_TRUE='#'
13835   HAVE_MMX_INTRINSICS_FALSE=
13836 fi
13837
13838  if test "x$HAVE_SSE_INTRINSICS" = "xyes"; then
13839   HAVE_SSE_INTRINSICS_TRUE=
13840   HAVE_SSE_INTRINSICS_FALSE='#'
13841 else
13842   HAVE_SSE_INTRINSICS_TRUE='#'
13843   HAVE_SSE_INTRINSICS_FALSE=
13844 fi
13845
13846  if test "x$HAVE_SSE2_INTRINSICS" = "xyes"; then
13847   HAVE_SSE2_INTRINSICS_TRUE=
13848   HAVE_SSE2_INTRINSICS_FALSE='#'
13849 else
13850   HAVE_SSE2_INTRINSICS_TRUE='#'
13851   HAVE_SSE2_INTRINSICS_FALSE=
13852 fi
13853
13854  if test "x$HAVE_SSE3_INTRINSICS" = "xyes"; then
13855   HAVE_SSE3_INTRINSICS_TRUE=
13856   HAVE_SSE3_INTRINSICS_FALSE='#'
13857 else
13858   HAVE_SSE3_INTRINSICS_TRUE='#'
13859   HAVE_SSE3_INTRINSICS_FALSE=
13860 fi
13861
13862  if test "x$HAVE_3DNOW_INTRINSICS" = "xyes"; then
13863   HAVE_3DNOW_INTRINSICS_TRUE=
13864   HAVE_3DNOW_INTRINSICS_FALSE='#'
13865 else
13866   HAVE_3DNOW_INTRINSICS_TRUE='#'
13867   HAVE_3DNOW_INTRINSICS_FALSE=
13868 fi
13869
13870  if test "x$HAVE_3DNOWEXT_INTRINSICS" = "xyes"; then
13871   HAVE_3DNOWEXT_INTRINSICS_TRUE=
13872   HAVE_3DNOWEXT_INTRINSICS_FALSE='#'
13873 else
13874   HAVE_3DNOWEXT_INTRINSICS_TRUE='#'
13875   HAVE_3DNOWEXT_INTRINSICS_FALSE=
13876 fi
13877
13878  if test "x$HAVE_ALTIVEC_INTRINSICS" = "xyes"; then
13879   HAVE_ALTIVEC_INTRINSICS_TRUE=
13880   HAVE_ALTIVEC_INTRINSICS_FALSE='#'
13881 else
13882   HAVE_ALTIVEC_INTRINSICS_TRUE='#'
13883   HAVE_ALTIVEC_INTRINSICS_FALSE=
13884 fi
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports 'pmaddubsw %%mm0, %%mm0' asm instruction" >&5
13897 $as_echo_n "checking if compiler supports 'pmaddubsw %%mm0, %%mm0' asm instruction... " >&6; }
13898
13899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h.  */
13901
13902 int
13903 main ()
13904 {
13905
13906 #ifndef __GNUC__
13907 #error Not GCC
13908 #endif
13909 #ifdef __GNUC_MINOR__
13910 #if (__GNUC__ * 1000 + __GNUC_MINOR__) < 3004
13911 #error GCC before 3.4 has critical bugs compiling inline assembly
13912 #endif
13913 #endif
13914 __asm__ ("pmaddubsw %%mm0, %%mm0"::)
13915   ;
13916   return 0;
13917 }
13918 _ACEOF
13919 if ac_fn_c_try_compile "$LINENO"; then :
13920   flag_ok=yes
13921 else
13922   flag_ok=no
13923 fi
13924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925
13926   if test "X$flag_ok" = Xyes ; then
13927     HAVE_SSSE3_ASM=yes
13928     true
13929   else
13930     HAVE_SSSE3_ASM=no
13931     true
13932   fi
13933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13934 $as_echo "$flag_ok" >&6; }
13935
13936 if test "x$HAVE_SSSE3_ASM" = xyes ; then
13937
13938 $as_echo "#define HAVE_SSSE3_ASM 1" >>confdefs.h
13939
13940 fi
13941
13942
13943 $as_echo "#define OIL_EXPORTS 1" >>confdefs.h
13944
13945
13946 LIBOIL_CFLAGS="$LIBOIL_CFLAGS -D_BSD_SOURCE -D_GNU_SOURCE -I\$(top_srcdir) -DOIL_ENABLE_UNSTABLE_API"
13947
13948
13949 LIBOIL_LIBS="\$(top_builddir)/liboil/liboil-$LIBOIL_MAJORMINOR.la $LIBM $LIBRT"
13950
13951
13952 pkgconfigdir="\$(libdir)/pkgconfig"
13953
13954
13955 ac_config_files="$ac_config_files Makefile doc/Makefile liboil/Makefile liboil/amd64/Makefile liboil/3dnow/Makefile liboil/c/Makefile liboil/colorspace/Makefile liboil/conv/Makefile liboil/copy/Makefile liboil/dct/Makefile liboil/deprecated/Makefile liboil/fb/Makefile liboil/i386/Makefile liboil/i386_amd64/Makefile liboil/jpeg/Makefile liboil/math/Makefile liboil/md5/Makefile liboil/mmx/Makefile liboil/motovec/Makefile liboil/powerpc/Makefile liboil/powerpc_asm_blocks/Makefile liboil/ref/Makefile liboil/simdpack/Makefile liboil/sse/Makefile liboil/utf8/Makefile liboil/arm/Makefile testsuite/Makefile testsuite/instruction/Makefile examples/Makefile examples/audioresample/Makefile examples/huffman/Makefile examples/jpeg/Makefile examples/md5/Makefile examples/taylor/Makefile examples/uberopt/Makefile examples/videoscale/Makefile examples/work/Makefile liboil-uninstalled.pc liboil.pc"
13956
13957 cat >confcache <<\_ACEOF
13958 # This file is a shell script that caches the results of configure
13959 # tests run on this system so they can be shared between configure
13960 # scripts and configure runs, see configure's option --config-cache.
13961 # It is not useful on other systems.  If it contains results you don't
13962 # want to keep, you may remove or edit it.
13963 #
13964 # config.status only pays attention to the cache file if you give it
13965 # the --recheck option to rerun configure.
13966 #
13967 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13968 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13969 # following values.
13970
13971 _ACEOF
13972
13973 # The following way of writing the cache mishandles newlines in values,
13974 # but we know of no workaround that is simple, portable, and efficient.
13975 # So, we kill variables containing newlines.
13976 # Ultrix sh set writes to stderr and can't be redirected directly,
13977 # and sets the high bit in the cache file unless we assign to the vars.
13978 (
13979   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13980     eval ac_val=\$$ac_var
13981     case $ac_val in #(
13982     *${as_nl}*)
13983       case $ac_var in #(
13984       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13986       esac
13987       case $ac_var in #(
13988       _ | IFS | as_nl) ;; #(
13989       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13990       *) { eval $ac_var=; unset $ac_var;} ;;
13991       esac ;;
13992     esac
13993   done
13994
13995   (set) 2>&1 |
13996     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13997     *${as_nl}ac_space=\ *)
13998       # `set' does not quote correctly, so add quotes: double-quote
13999       # substitution turns \\\\ into \\, and sed turns \\ into \.
14000       sed -n \
14001         "s/'/'\\\\''/g;
14002           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14003       ;; #(
14004     *)
14005       # `set' quotes correctly as required by POSIX, so do not add quotes.
14006       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14007       ;;
14008     esac |
14009     sort
14010 ) |
14011   sed '
14012      /^ac_cv_env_/b end
14013      t clear
14014      :clear
14015      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14016      t end
14017      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14018      :end' >>confcache
14019 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14020   if test -w "$cache_file"; then
14021     test "x$cache_file" != "x/dev/null" &&
14022       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14023 $as_echo "$as_me: updating cache $cache_file" >&6;}
14024     cat confcache >$cache_file
14025   else
14026     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14027 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14028   fi
14029 fi
14030 rm -f confcache
14031
14032 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14033 # Let make expand exec_prefix.
14034 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14035
14036 DEFS=-DHAVE_CONFIG_H
14037
14038 ac_libobjs=
14039 ac_ltlibobjs=
14040 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14041   # 1. Remove the extension, and $U if already installed.
14042   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14043   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14044   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14045   #    will be set to the directory where LIBOBJS objects are built.
14046   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14047   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14048 done
14049 LIBOBJS=$ac_libobjs
14050
14051 LTLIBOBJS=$ac_ltlibobjs
14052
14053
14054  if test -n "$EXEEXT"; then
14055   am__EXEEXT_TRUE=
14056   am__EXEEXT_FALSE='#'
14057 else
14058   am__EXEEXT_TRUE='#'
14059   am__EXEEXT_FALSE=
14060 fi
14061
14062 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14063   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14065 fi
14066 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14067   as_fn_error "conditional \"AMDEP\" was never defined.
14068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14069 fi
14070 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14071   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14073 fi
14074 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14075   as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
14076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14077 fi
14078 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
14079   as_fn_error "conditional \"HAVE_GLIB\" was never defined.
14080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14081 fi
14082 if test -z "${USE_ALT_OPT_TRUE}" && test -z "${USE_ALT_OPT_FALSE}"; then
14083   as_fn_error "conditional \"USE_ALT_OPT\" was never defined.
14084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14085 fi
14086 if test -z "${USE_NEW_ABI_TRUE}" && test -z "${USE_NEW_ABI_FALSE}"; then
14087   as_fn_error "conditional \"USE_NEW_ABI\" was never defined.
14088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14089 fi
14090 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
14091   as_fn_error "conditional \"ENABLE_GTK_DOC\" was never defined.
14092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14093 fi
14094 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
14095   as_fn_error "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
14096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14097 fi
14098 if test -z "${HAVE_GCC_ASM_TRUE}" && test -z "${HAVE_GCC_ASM_FALSE}"; then
14099   as_fn_error "conditional \"HAVE_GCC_ASM\" was never defined.
14100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14101 fi
14102 if test -z "${HAVE_I386_TRUE}" && test -z "${HAVE_I386_FALSE}"; then
14103   as_fn_error "conditional \"HAVE_I386\" was never defined.
14104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14105 fi
14106 if test -z "${HAVE_AMD64_TRUE}" && test -z "${HAVE_AMD64_FALSE}"; then
14107   as_fn_error "conditional \"HAVE_AMD64\" was never defined.
14108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14109 fi
14110 if test -z "${HAVE_POWERPC_TRUE}" && test -z "${HAVE_POWERPC_FALSE}"; then
14111   as_fn_error "conditional \"HAVE_POWERPC\" was never defined.
14112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14113 fi
14114 if test -z "${HAVE_ARM_TRUE}" && test -z "${HAVE_ARM_FALSE}"; then
14115   as_fn_error "conditional \"HAVE_ARM\" was never defined.
14116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14117 fi
14118 if test -z "${HAVE_OS_WIN32_TRUE}" && test -z "${HAVE_OS_WIN32_FALSE}"; then
14119   as_fn_error "conditional \"HAVE_OS_WIN32\" was never defined.
14120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14121 fi
14122 if test -z "${HAVE_OS_LINUX_TRUE}" && test -z "${HAVE_OS_LINUX_FALSE}"; then
14123   as_fn_error "conditional \"HAVE_OS_LINUX\" was never defined.
14124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14125 fi
14126 if test -z "${HAVE_GCC_ASM_POWERPC_FPU_TRUE}" && test -z "${HAVE_GCC_ASM_POWERPC_FPU_FALSE}"; then
14127   as_fn_error "conditional \"HAVE_GCC_ASM_POWERPC_FPU\" was never defined.
14128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14129 fi
14130
14131 if test -z "${HAVE_ASM_BLOCKS_TRUE}" && test -z "${HAVE_ASM_BLOCKS_FALSE}"; then
14132   as_fn_error "conditional \"HAVE_ASM_BLOCKS\" was never defined.
14133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14134 fi
14135 if test -z "${HAVE_MMX_INTRINSICS_TRUE}" && test -z "${HAVE_MMX_INTRINSICS_FALSE}"; then
14136   as_fn_error "conditional \"HAVE_MMX_INTRINSICS\" was never defined.
14137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14138 fi
14139 if test -z "${HAVE_SSE_INTRINSICS_TRUE}" && test -z "${HAVE_SSE_INTRINSICS_FALSE}"; then
14140   as_fn_error "conditional \"HAVE_SSE_INTRINSICS\" was never defined.
14141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14142 fi
14143 if test -z "${HAVE_SSE2_INTRINSICS_TRUE}" && test -z "${HAVE_SSE2_INTRINSICS_FALSE}"; then
14144   as_fn_error "conditional \"HAVE_SSE2_INTRINSICS\" was never defined.
14145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14146 fi
14147 if test -z "${HAVE_SSE3_INTRINSICS_TRUE}" && test -z "${HAVE_SSE3_INTRINSICS_FALSE}"; then
14148   as_fn_error "conditional \"HAVE_SSE3_INTRINSICS\" was never defined.
14149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14150 fi
14151 if test -z "${HAVE_3DNOW_INTRINSICS_TRUE}" && test -z "${HAVE_3DNOW_INTRINSICS_FALSE}"; then
14152   as_fn_error "conditional \"HAVE_3DNOW_INTRINSICS\" was never defined.
14153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14154 fi
14155 if test -z "${HAVE_3DNOWEXT_INTRINSICS_TRUE}" && test -z "${HAVE_3DNOWEXT_INTRINSICS_FALSE}"; then
14156   as_fn_error "conditional \"HAVE_3DNOWEXT_INTRINSICS\" was never defined.
14157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14158 fi
14159 if test -z "${HAVE_ALTIVEC_INTRINSICS_TRUE}" && test -z "${HAVE_ALTIVEC_INTRINSICS_FALSE}"; then
14160   as_fn_error "conditional \"HAVE_ALTIVEC_INTRINSICS\" was never defined.
14161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14162 fi
14163
14164 : ${CONFIG_STATUS=./config.status}
14165 ac_write_fail=0
14166 ac_clean_files_save=$ac_clean_files
14167 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14169 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14170 as_write_fail=0
14171 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14172 #! $SHELL
14173 # Generated by $as_me.
14174 # Run this file to recreate the current configuration.
14175 # Compiler output produced by configure, useful for debugging
14176 # configure, is in config.log if it exists.
14177
14178 debug=false
14179 ac_cs_recheck=false
14180 ac_cs_silent=false
14181
14182 SHELL=\${CONFIG_SHELL-$SHELL}
14183 export SHELL
14184 _ASEOF
14185 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14186 ## -------------------- ##
14187 ## M4sh Initialization. ##
14188 ## -------------------- ##
14189
14190 # Be more Bourne compatible
14191 DUALCASE=1; export DUALCASE # for MKS sh
14192 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14193   emulate sh
14194   NULLCMD=:
14195   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14196   # is contrary to our usage.  Disable this feature.
14197   alias -g '${1+"$@"}'='"$@"'
14198   setopt NO_GLOB_SUBST
14199 else
14200   case `(set -o) 2>/dev/null` in #(
14201   *posix*) :
14202     set -o posix ;; #(
14203   *) :
14204      ;;
14205 esac
14206 fi
14207
14208
14209 as_nl='
14210 '
14211 export as_nl
14212 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14213 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14214 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14215 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14216 # Prefer a ksh shell builtin over an external printf program on Solaris,
14217 # but without wasting forks for bash or zsh.
14218 if test -z "$BASH_VERSION$ZSH_VERSION" \
14219     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14220   as_echo='print -r --'
14221   as_echo_n='print -rn --'
14222 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14223   as_echo='printf %s\n'
14224   as_echo_n='printf %s'
14225 else
14226   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14227     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14228     as_echo_n='/usr/ucb/echo -n'
14229   else
14230     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14231     as_echo_n_body='eval
14232       arg=$1;
14233       case $arg in #(
14234       *"$as_nl"*)
14235         expr "X$arg" : "X\\(.*\\)$as_nl";
14236         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14237       esac;
14238       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14239     '
14240     export as_echo_n_body
14241     as_echo_n='sh -c $as_echo_n_body as_echo'
14242   fi
14243   export as_echo_body
14244   as_echo='sh -c $as_echo_body as_echo'
14245 fi
14246
14247 # The user is always right.
14248 if test "${PATH_SEPARATOR+set}" != set; then
14249   PATH_SEPARATOR=:
14250   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14251     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14252       PATH_SEPARATOR=';'
14253   }
14254 fi
14255
14256
14257 # IFS
14258 # We need space, tab and new line, in precisely that order.  Quoting is
14259 # there to prevent editors from complaining about space-tab.
14260 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14261 # splitting by setting IFS to empty value.)
14262 IFS=" ""        $as_nl"
14263
14264 # Find who we are.  Look in the path if we contain no directory separator.
14265 case $0 in #((
14266   *[\\/]* ) as_myself=$0 ;;
14267   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268 for as_dir in $PATH
14269 do
14270   IFS=$as_save_IFS
14271   test -z "$as_dir" && as_dir=.
14272     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14273   done
14274 IFS=$as_save_IFS
14275
14276      ;;
14277 esac
14278 # We did not find ourselves, most probably we were run as `sh COMMAND'
14279 # in which case we are not to be found in the path.
14280 if test "x$as_myself" = x; then
14281   as_myself=$0
14282 fi
14283 if test ! -f "$as_myself"; then
14284   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14285   exit 1
14286 fi
14287
14288 # Unset variables that we do not need and which cause bugs (e.g. in
14289 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14290 # suppresses any "Segmentation fault" message there.  '((' could
14291 # trigger a bug in pdksh 5.2.14.
14292 for as_var in BASH_ENV ENV MAIL MAILPATH
14293 do eval test x\${$as_var+set} = xset \
14294   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14295 done
14296 PS1='$ '
14297 PS2='> '
14298 PS4='+ '
14299
14300 # NLS nuisances.
14301 LC_ALL=C
14302 export LC_ALL
14303 LANGUAGE=C
14304 export LANGUAGE
14305
14306 # CDPATH.
14307 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14308
14309
14310 # as_fn_error ERROR [LINENO LOG_FD]
14311 # ---------------------------------
14312 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14313 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14314 # script with status $?, using 1 if that was 0.
14315 as_fn_error ()
14316 {
14317   as_status=$?; test $as_status -eq 0 && as_status=1
14318   if test "$3"; then
14319     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14320     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14321   fi
14322   $as_echo "$as_me: error: $1" >&2
14323   as_fn_exit $as_status
14324 } # as_fn_error
14325
14326
14327 # as_fn_set_status STATUS
14328 # -----------------------
14329 # Set $? to STATUS, without forking.
14330 as_fn_set_status ()
14331 {
14332   return $1
14333 } # as_fn_set_status
14334
14335 # as_fn_exit STATUS
14336 # -----------------
14337 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14338 as_fn_exit ()
14339 {
14340   set +e
14341   as_fn_set_status $1
14342   exit $1
14343 } # as_fn_exit
14344
14345 # as_fn_unset VAR
14346 # ---------------
14347 # Portably unset VAR.
14348 as_fn_unset ()
14349 {
14350   { eval $1=; unset $1;}
14351 }
14352 as_unset=as_fn_unset
14353 # as_fn_append VAR VALUE
14354 # ----------------------
14355 # Append the text in VALUE to the end of the definition contained in VAR. Take
14356 # advantage of any shell optimizations that allow amortized linear growth over
14357 # repeated appends, instead of the typical quadratic growth present in naive
14358 # implementations.
14359 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14360   eval 'as_fn_append ()
14361   {
14362     eval $1+=\$2
14363   }'
14364 else
14365   as_fn_append ()
14366   {
14367     eval $1=\$$1\$2
14368   }
14369 fi # as_fn_append
14370
14371 # as_fn_arith ARG...
14372 # ------------------
14373 # Perform arithmetic evaluation on the ARGs, and store the result in the
14374 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14375 # must be portable across $(()) and expr.
14376 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14377   eval 'as_fn_arith ()
14378   {
14379     as_val=$(( $* ))
14380   }'
14381 else
14382   as_fn_arith ()
14383   {
14384     as_val=`expr "$@" || test $? -eq 1`
14385   }
14386 fi # as_fn_arith
14387
14388
14389 if expr a : '\(a\)' >/dev/null 2>&1 &&
14390    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14391   as_expr=expr
14392 else
14393   as_expr=false
14394 fi
14395
14396 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14397   as_basename=basename
14398 else
14399   as_basename=false
14400 fi
14401
14402 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14403   as_dirname=dirname
14404 else
14405   as_dirname=false
14406 fi
14407
14408 as_me=`$as_basename -- "$0" ||
14409 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14410          X"$0" : 'X\(//\)$' \| \
14411          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14412 $as_echo X/"$0" |
14413     sed '/^.*\/\([^/][^/]*\)\/*$/{
14414             s//\1/
14415             q
14416           }
14417           /^X\/\(\/\/\)$/{
14418             s//\1/
14419             q
14420           }
14421           /^X\/\(\/\).*/{
14422             s//\1/
14423             q
14424           }
14425           s/.*/./; q'`
14426
14427 # Avoid depending upon Character Ranges.
14428 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14429 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14430 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14431 as_cr_digits='0123456789'
14432 as_cr_alnum=$as_cr_Letters$as_cr_digits
14433
14434 ECHO_C= ECHO_N= ECHO_T=
14435 case `echo -n x` in #(((((
14436 -n*)
14437   case `echo 'xy\c'` in
14438   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14439   xy)  ECHO_C='\c';;
14440   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14441        ECHO_T=' ';;
14442   esac;;
14443 *)
14444   ECHO_N='-n';;
14445 esac
14446
14447 rm -f conf$$ conf$$.exe conf$$.file
14448 if test -d conf$$.dir; then
14449   rm -f conf$$.dir/conf$$.file
14450 else
14451   rm -f conf$$.dir
14452   mkdir conf$$.dir 2>/dev/null
14453 fi
14454 if (echo >conf$$.file) 2>/dev/null; then
14455   if ln -s conf$$.file conf$$ 2>/dev/null; then
14456     as_ln_s='ln -s'
14457     # ... but there are two gotchas:
14458     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14459     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14460     # In both cases, we have to default to `cp -p'.
14461     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14462       as_ln_s='cp -p'
14463   elif ln conf$$.file conf$$ 2>/dev/null; then
14464     as_ln_s=ln
14465   else
14466     as_ln_s='cp -p'
14467   fi
14468 else
14469   as_ln_s='cp -p'
14470 fi
14471 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14472 rmdir conf$$.dir 2>/dev/null
14473
14474
14475 # as_fn_mkdir_p
14476 # -------------
14477 # Create "$as_dir" as a directory, including parents if necessary.
14478 as_fn_mkdir_p ()
14479 {
14480
14481   case $as_dir in #(
14482   -*) as_dir=./$as_dir;;
14483   esac
14484   test -d "$as_dir" || eval $as_mkdir_p || {
14485     as_dirs=
14486     while :; do
14487       case $as_dir in #(
14488       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14489       *) as_qdir=$as_dir;;
14490       esac
14491       as_dirs="'$as_qdir' $as_dirs"
14492       as_dir=`$as_dirname -- "$as_dir" ||
14493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14494          X"$as_dir" : 'X\(//\)[^/]' \| \
14495          X"$as_dir" : 'X\(//\)$' \| \
14496          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14497 $as_echo X"$as_dir" |
14498     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14499             s//\1/
14500             q
14501           }
14502           /^X\(\/\/\)[^/].*/{
14503             s//\1/
14504             q
14505           }
14506           /^X\(\/\/\)$/{
14507             s//\1/
14508             q
14509           }
14510           /^X\(\/\).*/{
14511             s//\1/
14512             q
14513           }
14514           s/.*/./; q'`
14515       test -d "$as_dir" && break
14516     done
14517     test -z "$as_dirs" || eval "mkdir $as_dirs"
14518   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14519
14520
14521 } # as_fn_mkdir_p
14522 if mkdir -p . 2>/dev/null; then
14523   as_mkdir_p='mkdir -p "$as_dir"'
14524 else
14525   test -d ./-p && rmdir ./-p
14526   as_mkdir_p=false
14527 fi
14528
14529 if test -x / >/dev/null 2>&1; then
14530   as_test_x='test -x'
14531 else
14532   if ls -dL / >/dev/null 2>&1; then
14533     as_ls_L_option=L
14534   else
14535     as_ls_L_option=
14536   fi
14537   as_test_x='
14538     eval sh -c '\''
14539       if test -d "$1"; then
14540         test -d "$1/.";
14541       else
14542         case $1 in #(
14543         -*)set "./$1";;
14544         esac;
14545         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14546         ???[sx]*):;;*)false;;esac;fi
14547     '\'' sh
14548   '
14549 fi
14550 as_executable_p=$as_test_x
14551
14552 # Sed expression to map a string onto a valid CPP name.
14553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14554
14555 # Sed expression to map a string onto a valid variable name.
14556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14557
14558
14559 exec 6>&1
14560 ## ----------------------------------- ##
14561 ## Main body of $CONFIG_STATUS script. ##
14562 ## ----------------------------------- ##
14563 _ASEOF
14564 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14565
14566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14567 # Save the log message, to keep $0 and so on meaningful, and to
14568 # report actual input values of CONFIG_FILES etc. instead of their
14569 # values after options handling.
14570 ac_log="
14571 This file was extended by liboil $as_me 0.3.17, which was
14572 generated by GNU Autoconf 2.64.  Invocation command line was
14573
14574   CONFIG_FILES    = $CONFIG_FILES
14575   CONFIG_HEADERS  = $CONFIG_HEADERS
14576   CONFIG_LINKS    = $CONFIG_LINKS
14577   CONFIG_COMMANDS = $CONFIG_COMMANDS
14578   $ $0 $@
14579
14580 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14581 "
14582
14583 _ACEOF
14584
14585 case $ac_config_files in *"
14586 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14587 esac
14588
14589 case $ac_config_headers in *"
14590 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14591 esac
14592
14593
14594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14595 # Files that config.status was made for.
14596 config_files="$ac_config_files"
14597 config_headers="$ac_config_headers"
14598 config_commands="$ac_config_commands"
14599
14600 _ACEOF
14601
14602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14603 ac_cs_usage="\
14604 \`$as_me' instantiates files and other configuration actions
14605 from templates according to the current configuration.  Unless the files
14606 and actions are specified as TAGs, all are instantiated by default.
14607
14608 Usage: $0 [OPTION]... [TAG]...
14609
14610   -h, --help       print this help, then exit
14611   -V, --version    print version number and configuration settings, then exit
14612   -q, --quiet, --silent
14613                    do not print progress messages
14614   -d, --debug      don't remove temporary files
14615       --recheck    update $as_me by reconfiguring in the same conditions
14616       --file=FILE[:TEMPLATE]
14617                    instantiate the configuration file FILE
14618       --header=FILE[:TEMPLATE]
14619                    instantiate the configuration header FILE
14620
14621 Configuration files:
14622 $config_files
14623
14624 Configuration headers:
14625 $config_headers
14626
14627 Configuration commands:
14628 $config_commands
14629
14630 Report bugs to the package provider."
14631
14632 _ACEOF
14633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14634 ac_cs_version="\\
14635 liboil config.status 0.3.17
14636 configured by $0, generated by GNU Autoconf 2.64,
14637   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14638
14639 Copyright (C) 2009 Free Software Foundation, Inc.
14640 This config.status script is free software; the Free Software Foundation
14641 gives unlimited permission to copy, distribute and modify it."
14642
14643 ac_pwd='$ac_pwd'
14644 srcdir='$srcdir'
14645 INSTALL='$INSTALL'
14646 MKDIR_P='$MKDIR_P'
14647 AWK='$AWK'
14648 test -n "\$AWK" || AWK=awk
14649 _ACEOF
14650
14651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14652 # The default lists apply if the user does not specify any file.
14653 ac_need_defaults=:
14654 while test $# != 0
14655 do
14656   case $1 in
14657   --*=*)
14658     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14659     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14660     ac_shift=:
14661     ;;
14662   *)
14663     ac_option=$1
14664     ac_optarg=$2
14665     ac_shift=shift
14666     ;;
14667   esac
14668
14669   case $ac_option in
14670   # Handling of the options.
14671   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14672     ac_cs_recheck=: ;;
14673   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14674     $as_echo "$ac_cs_version"; exit ;;
14675   --debug | --debu | --deb | --de | --d | -d )
14676     debug=: ;;
14677   --file | --fil | --fi | --f )
14678     $ac_shift
14679     case $ac_optarg in
14680     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14681     esac
14682     as_fn_append CONFIG_FILES " '$ac_optarg'"
14683     ac_need_defaults=false;;
14684   --header | --heade | --head | --hea )
14685     $ac_shift
14686     case $ac_optarg in
14687     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14688     esac
14689     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14690     ac_need_defaults=false;;
14691   --he | --h)
14692     # Conflict between --help and --header
14693     as_fn_error "ambiguous option: \`$1'
14694 Try \`$0 --help' for more information.";;
14695   --help | --hel | -h )
14696     $as_echo "$ac_cs_usage"; exit ;;
14697   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14698   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14699     ac_cs_silent=: ;;
14700
14701   # This is an error.
14702   -*) as_fn_error "unrecognized option: \`$1'
14703 Try \`$0 --help' for more information." ;;
14704
14705   *) as_fn_append ac_config_targets " $1"
14706      ac_need_defaults=false ;;
14707
14708   esac
14709   shift
14710 done
14711
14712 ac_configure_extra_args=
14713
14714 if $ac_cs_silent; then
14715   exec 6>/dev/null
14716   ac_configure_extra_args="$ac_configure_extra_args --silent"
14717 fi
14718
14719 _ACEOF
14720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14721 if \$ac_cs_recheck; then
14722   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14723   shift
14724   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14725   CONFIG_SHELL='$SHELL'
14726   export CONFIG_SHELL
14727   exec "\$@"
14728 fi
14729
14730 _ACEOF
14731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14732 exec 5>>config.log
14733 {
14734   echo
14735   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14736 ## Running $as_me. ##
14737 _ASBOX
14738   $as_echo "$ac_log"
14739 } >&5
14740
14741 _ACEOF
14742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14743 #
14744 # INIT-COMMANDS
14745 #
14746 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14747
14748
14749 # The HP-UX ksh and POSIX shell print the target directory to stdout
14750 # if CDPATH is set.
14751 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14752
14753 sed_quote_subst='$sed_quote_subst'
14754 double_quote_subst='$double_quote_subst'
14755 delay_variable_subst='$delay_variable_subst'
14756 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
14757 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14758 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14759 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14760 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14761 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14762 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14763 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14764 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14765 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14766 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14767 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14768 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14769 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14770 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14771 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14772 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14773 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14774 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14775 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14776 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14777 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14778 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14779 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14780 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14781 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14782 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14783 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14784 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14785 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14786 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14787 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14788 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14789 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14790 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14791 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14792 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14793 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14794 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14795 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14796 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14797 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14798 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14799 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14800 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14801 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14802 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"`'
14803 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"`'
14804 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14805 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14806 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14807 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14808 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14809 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14810 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14811 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14812 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14813 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14814 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14815 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14816 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14817 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14818 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14819 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14820 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14821 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14822 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14823 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14824 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14825 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14826 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14827 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14828 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14829 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14830 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14831 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14832 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14833 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14834 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14835 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14836 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14837 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14838 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14839 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14840 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14841 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14842 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14843 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14844 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14845 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14846 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14847 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14848 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14849 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14850 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14851 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14852 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14853 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14854 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14855 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14856 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14857 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14858 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14859 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14860 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14861 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14862 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14863 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14864 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14865 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14866 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14867 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14868 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14869 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14870 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14871 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14872 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14873 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14874 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14875 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14876
14877 LTCC='$LTCC'
14878 LTCFLAGS='$LTCFLAGS'
14879 compiler='$compiler_DEFAULT'
14880
14881 # Quote evaled strings.
14882 for var in SED \
14883 GREP \
14884 EGREP \
14885 FGREP \
14886 LD \
14887 NM \
14888 LN_S \
14889 lt_SP2NL \
14890 lt_NL2SP \
14891 reload_flag \
14892 deplibs_check_method \
14893 file_magic_cmd \
14894 AR \
14895 AR_FLAGS \
14896 STRIP \
14897 RANLIB \
14898 CC \
14899 CFLAGS \
14900 compiler \
14901 lt_cv_sys_global_symbol_pipe \
14902 lt_cv_sys_global_symbol_to_cdecl \
14903 lt_cv_sys_global_symbol_to_c_name_address \
14904 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14905 SHELL \
14906 ECHO \
14907 lt_prog_compiler_no_builtin_flag \
14908 lt_prog_compiler_wl \
14909 lt_prog_compiler_pic \
14910 lt_prog_compiler_static \
14911 lt_cv_prog_compiler_c_o \
14912 need_locks \
14913 DSYMUTIL \
14914 NMEDIT \
14915 LIPO \
14916 OTOOL \
14917 OTOOL64 \
14918 shrext_cmds \
14919 export_dynamic_flag_spec \
14920 whole_archive_flag_spec \
14921 compiler_needs_object \
14922 with_gnu_ld \
14923 allow_undefined_flag \
14924 no_undefined_flag \
14925 hardcode_libdir_flag_spec \
14926 hardcode_libdir_flag_spec_ld \
14927 hardcode_libdir_separator \
14928 fix_srcfile_path \
14929 exclude_expsyms \
14930 include_expsyms \
14931 file_list_spec \
14932 variables_saved_for_relink \
14933 libname_spec \
14934 library_names_spec \
14935 soname_spec \
14936 finish_eval \
14937 old_striplib \
14938 striplib; do
14939     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14940     *[\\\\\\\`\\"\\\$]*)
14941       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14942       ;;
14943     *)
14944       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14945       ;;
14946     esac
14947 done
14948
14949 # Double-quote double-evaled strings.
14950 for var in reload_cmds \
14951 old_postinstall_cmds \
14952 old_postuninstall_cmds \
14953 old_archive_cmds \
14954 extract_expsyms_cmds \
14955 old_archive_from_new_cmds \
14956 old_archive_from_expsyms_cmds \
14957 archive_cmds \
14958 archive_expsym_cmds \
14959 module_cmds \
14960 module_expsym_cmds \
14961 export_symbols_cmds \
14962 prelink_cmds \
14963 postinstall_cmds \
14964 postuninstall_cmds \
14965 finish_cmds \
14966 sys_lib_search_path_spec \
14967 sys_lib_dlsearch_path_spec; do
14968     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14969     *[\\\\\\\`\\"\\\$]*)
14970       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14971       ;;
14972     *)
14973       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14974       ;;
14975     esac
14976 done
14977
14978 # Fix-up fallback echo if it was mangled by the above quoting rules.
14979 case \$lt_ECHO in
14980 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14981   ;;
14982 esac
14983
14984 ac_aux_dir='$ac_aux_dir'
14985 xsi_shell='$xsi_shell'
14986 lt_shell_append='$lt_shell_append'
14987
14988 # See if we are running on zsh, and set the options which allow our
14989 # commands through without removal of \ escapes INIT.
14990 if test -n "\${ZSH_VERSION+set}" ; then
14991    setopt NO_GLOB_SUBST
14992 fi
14993
14994
14995     PACKAGE='$PACKAGE'
14996     VERSION='$VERSION'
14997     TIMESTAMP='$TIMESTAMP'
14998     RM='$RM'
14999     ofile='$ofile'
15000
15001
15002
15003 # variables for create stdint.h replacement
15004 PACKAGE="$PACKAGE"
15005 VERSION="$VERSION"
15006 ac_stdint_h="$ac_stdint_h"
15007 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
15008 ac_cv_stdint_message="$ac_cv_stdint_message"
15009 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
15010 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
15011 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
15012 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
15013 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
15014 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
15015 ac_cv_char_data_model="$ac_cv_char_data_model"
15016 ac_cv_long_data_model="$ac_cv_long_data_model"
15017 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
15018 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
15019 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
15020
15021
15022 _ACEOF
15023
15024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15025
15026 # Handling of arguments.
15027 for ac_config_target in $ac_config_targets
15028 do
15029   case $ac_config_target in
15030     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15031     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15032     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15033     "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
15034     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15035     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15036     "liboil/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/Makefile" ;;
15037     "liboil/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/amd64/Makefile" ;;
15038     "liboil/3dnow/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/3dnow/Makefile" ;;
15039     "liboil/c/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/c/Makefile" ;;
15040     "liboil/colorspace/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/colorspace/Makefile" ;;
15041     "liboil/conv/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/conv/Makefile" ;;
15042     "liboil/copy/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/copy/Makefile" ;;
15043     "liboil/dct/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/dct/Makefile" ;;
15044     "liboil/deprecated/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/deprecated/Makefile" ;;
15045     "liboil/fb/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/fb/Makefile" ;;
15046     "liboil/i386/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/i386/Makefile" ;;
15047     "liboil/i386_amd64/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/i386_amd64/Makefile" ;;
15048     "liboil/jpeg/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/jpeg/Makefile" ;;
15049     "liboil/math/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/math/Makefile" ;;
15050     "liboil/md5/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/md5/Makefile" ;;
15051     "liboil/mmx/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/mmx/Makefile" ;;
15052     "liboil/motovec/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/motovec/Makefile" ;;
15053     "liboil/powerpc/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/powerpc/Makefile" ;;
15054     "liboil/powerpc_asm_blocks/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/powerpc_asm_blocks/Makefile" ;;
15055     "liboil/ref/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/ref/Makefile" ;;
15056     "liboil/simdpack/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/simdpack/Makefile" ;;
15057     "liboil/sse/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/sse/Makefile" ;;
15058     "liboil/utf8/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/utf8/Makefile" ;;
15059     "liboil/arm/Makefile") CONFIG_FILES="$CONFIG_FILES liboil/arm/Makefile" ;;
15060     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15061     "testsuite/instruction/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/instruction/Makefile" ;;
15062     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15063     "examples/audioresample/Makefile") CONFIG_FILES="$CONFIG_FILES examples/audioresample/Makefile" ;;
15064     "examples/huffman/Makefile") CONFIG_FILES="$CONFIG_FILES examples/huffman/Makefile" ;;
15065     "examples/jpeg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/jpeg/Makefile" ;;
15066     "examples/md5/Makefile") CONFIG_FILES="$CONFIG_FILES examples/md5/Makefile" ;;
15067     "examples/taylor/Makefile") CONFIG_FILES="$CONFIG_FILES examples/taylor/Makefile" ;;
15068     "examples/uberopt/Makefile") CONFIG_FILES="$CONFIG_FILES examples/uberopt/Makefile" ;;
15069     "examples/videoscale/Makefile") CONFIG_FILES="$CONFIG_FILES examples/videoscale/Makefile" ;;
15070     "examples/work/Makefile") CONFIG_FILES="$CONFIG_FILES examples/work/Makefile" ;;
15071     "liboil-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES liboil-uninstalled.pc" ;;
15072     "liboil.pc") CONFIG_FILES="$CONFIG_FILES liboil.pc" ;;
15073
15074   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15075   esac
15076 done
15077
15078
15079 # If the user did not use the arguments to specify the items to instantiate,
15080 # then the envvar interface is used.  Set only those that are not.
15081 # We use the long form for the default assignment because of an extremely
15082 # bizarre bug on SunOS 4.1.3.
15083 if $ac_need_defaults; then
15084   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15085   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15086   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15087 fi
15088
15089 # Have a temporary directory for convenience.  Make it in the build tree
15090 # simply because there is no reason against having it here, and in addition,
15091 # creating and moving files from /tmp can sometimes cause problems.
15092 # Hook for its removal unless debugging.
15093 # Note that there is a small window in which the directory will not be cleaned:
15094 # after its creation but before its name has been assigned to `$tmp'.
15095 $debug ||
15096 {
15097   tmp=
15098   trap 'exit_status=$?
15099   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15100 ' 0
15101   trap 'as_fn_exit 1' 1 2 13 15
15102 }
15103 # Create a (secure) tmp directory for tmp files.
15104
15105 {
15106   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15107   test -n "$tmp" && test -d "$tmp"
15108 }  ||
15109 {
15110   tmp=./conf$$-$RANDOM
15111   (umask 077 && mkdir "$tmp")
15112 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15113
15114 # Set up the scripts for CONFIG_FILES section.
15115 # No need to generate them if there are no CONFIG_FILES.
15116 # This happens for instance with `./config.status config.h'.
15117 if test -n "$CONFIG_FILES"; then
15118
15119
15120 ac_cr=`echo X | tr X '\015'`
15121 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15122 # But we know of no other shell where ac_cr would be empty at this
15123 # point, so we can use a bashism as a fallback.
15124 if test "x$ac_cr" = x; then
15125   eval ac_cr=\$\'\\r\'
15126 fi
15127 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15128 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15129   ac_cs_awk_cr='\r'
15130 else
15131   ac_cs_awk_cr=$ac_cr
15132 fi
15133
15134 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15135 _ACEOF
15136
15137
15138 {
15139   echo "cat >conf$$subs.awk <<_ACEOF" &&
15140   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15141   echo "_ACEOF"
15142 } >conf$$subs.sh ||
15143   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15144 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15145 ac_delim='%!_!# '
15146 for ac_last_try in false false false false false :; do
15147   . ./conf$$subs.sh ||
15148     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15149
15150   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15151   if test $ac_delim_n = $ac_delim_num; then
15152     break
15153   elif $ac_last_try; then
15154     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15155   else
15156     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15157   fi
15158 done
15159 rm -f conf$$subs.sh
15160
15161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15162 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15163 _ACEOF
15164 sed -n '
15165 h
15166 s/^/S["/; s/!.*/"]=/
15167 p
15168 g
15169 s/^[^!]*!//
15170 :repl
15171 t repl
15172 s/'"$ac_delim"'$//
15173 t delim
15174 :nl
15175 h
15176 s/\(.\{148\}\).*/\1/
15177 t more1
15178 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15179 p
15180 n
15181 b repl
15182 :more1
15183 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15184 p
15185 g
15186 s/.\{148\}//
15187 t nl
15188 :delim
15189 h
15190 s/\(.\{148\}\).*/\1/
15191 t more2
15192 s/["\\]/\\&/g; s/^/"/; s/$/"/
15193 p
15194 b
15195 :more2
15196 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15197 p
15198 g
15199 s/.\{148\}//
15200 t delim
15201 ' <conf$$subs.awk | sed '
15202 /^[^""]/{
15203   N
15204   s/\n//
15205 }
15206 ' >>$CONFIG_STATUS || ac_write_fail=1
15207 rm -f conf$$subs.awk
15208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15209 _ACAWK
15210 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15211   for (key in S) S_is_set[key] = 1
15212   FS = "\a"
15213
15214 }
15215 {
15216   line = $ 0
15217   nfields = split(line, field, "@")
15218   substed = 0
15219   len = length(field[1])
15220   for (i = 2; i < nfields; i++) {
15221     key = field[i]
15222     keylen = length(key)
15223     if (S_is_set[key]) {
15224       value = S[key]
15225       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15226       len += length(value) + length(field[++i])
15227       substed = 1
15228     } else
15229       len += 1 + keylen
15230   }
15231
15232   print line
15233 }
15234
15235 _ACAWK
15236 _ACEOF
15237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15238 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15239   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15240 else
15241   cat
15242 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15243   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15244 _ACEOF
15245
15246 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15247 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15248 # trailing colons and then remove the whole line if VPATH becomes empty
15249 # (actually we leave an empty line to preserve line numbers).
15250 if test "x$srcdir" = x.; then
15251   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15252 s/:*\$(srcdir):*/:/
15253 s/:*\${srcdir}:*/:/
15254 s/:*@srcdir@:*/:/
15255 s/^\([^=]*=[     ]*\):*/\1/
15256 s/:*$//
15257 s/^[^=]*=[       ]*$//
15258 }'
15259 fi
15260
15261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15262 fi # test -n "$CONFIG_FILES"
15263
15264 # Set up the scripts for CONFIG_HEADERS section.
15265 # No need to generate them if there are no CONFIG_HEADERS.
15266 # This happens for instance with `./config.status Makefile'.
15267 if test -n "$CONFIG_HEADERS"; then
15268 cat >"$tmp/defines.awk" <<\_ACAWK ||
15269 BEGIN {
15270 _ACEOF
15271
15272 # Transform confdefs.h into an awk script `defines.awk', embedded as
15273 # here-document in config.status, that substitutes the proper values into
15274 # config.h.in to produce config.h.
15275
15276 # Create a delimiter string that does not exist in confdefs.h, to ease
15277 # handling of long lines.
15278 ac_delim='%!_!# '
15279 for ac_last_try in false false :; do
15280   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15281   if test -z "$ac_t"; then
15282     break
15283   elif $ac_last_try; then
15284     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15285   else
15286     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15287   fi
15288 done
15289
15290 # For the awk script, D is an array of macro values keyed by name,
15291 # likewise P contains macro parameters if any.  Preserve backslash
15292 # newline sequences.
15293
15294 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15295 sed -n '
15296 s/.\{148\}/&'"$ac_delim"'/g
15297 t rset
15298 :rset
15299 s/^[     ]*#[    ]*define[       ][      ]*/ /
15300 t def
15301 d
15302 :def
15303 s/\\$//
15304 t bsnl
15305 s/["\\]/\\&/g
15306 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15307 D["\1"]=" \3"/p
15308 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15309 d
15310 :bsnl
15311 s/["\\]/\\&/g
15312 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15313 D["\1"]=" \3\\\\\\n"\\/p
15314 t cont
15315 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15316 t cont
15317 d
15318 :cont
15319 n
15320 s/.\{148\}/&'"$ac_delim"'/g
15321 t clear
15322 :clear
15323 s/\\$//
15324 t bsnlc
15325 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15326 d
15327 :bsnlc
15328 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15329 b cont
15330 ' <confdefs.h | sed '
15331 s/'"$ac_delim"'/"\\\
15332 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15333
15334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15335   for (key in D) D_is_set[key] = 1
15336   FS = "\a"
15337 }
15338 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15339   line = \$ 0
15340   split(line, arg, " ")
15341   if (arg[1] == "#") {
15342     defundef = arg[2]
15343     mac1 = arg[3]
15344   } else {
15345     defundef = substr(arg[1], 2)
15346     mac1 = arg[2]
15347   }
15348   split(mac1, mac2, "(") #)
15349   macro = mac2[1]
15350   prefix = substr(line, 1, index(line, defundef) - 1)
15351   if (D_is_set[macro]) {
15352     # Preserve the white space surrounding the "#".
15353     print prefix "define", macro P[macro] D[macro]
15354     next
15355   } else {
15356     # Replace #undef with comments.  This is necessary, for example,
15357     # in the case of _POSIX_SOURCE, which is predefined and required
15358     # on some systems where configure will not decide to define it.
15359     if (defundef == "undef") {
15360       print "/*", prefix defundef, macro, "*/"
15361       next
15362     }
15363   }
15364 }
15365 { print }
15366 _ACAWK
15367 _ACEOF
15368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15369   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15370 fi # test -n "$CONFIG_HEADERS"
15371
15372
15373 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15374 shift
15375 for ac_tag
15376 do
15377   case $ac_tag in
15378   :[FHLC]) ac_mode=$ac_tag; continue;;
15379   esac
15380   case $ac_mode$ac_tag in
15381   :[FHL]*:*);;
15382   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15383   :[FH]-) ac_tag=-:-;;
15384   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15385   esac
15386   ac_save_IFS=$IFS
15387   IFS=:
15388   set x $ac_tag
15389   IFS=$ac_save_IFS
15390   shift
15391   ac_file=$1
15392   shift
15393
15394   case $ac_mode in
15395   :L) ac_source=$1;;
15396   :[FH])
15397     ac_file_inputs=
15398     for ac_f
15399     do
15400       case $ac_f in
15401       -) ac_f="$tmp/stdin";;
15402       *) # Look for the file first in the build tree, then in the source tree
15403          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15404          # because $ac_f cannot contain `:'.
15405          test -f "$ac_f" ||
15406            case $ac_f in
15407            [\\/$]*) false;;
15408            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15409            esac ||
15410            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15411       esac
15412       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15413       as_fn_append ac_file_inputs " '$ac_f'"
15414     done
15415
15416     # Let's still pretend it is `configure' which instantiates (i.e., don't
15417     # use $as_me), people would be surprised to read:
15418     #    /* config.h.  Generated by config.status.  */
15419     configure_input='Generated from '`
15420           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15421         `' by configure.'
15422     if test x"$ac_file" != x-; then
15423       configure_input="$ac_file.  $configure_input"
15424       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15425 $as_echo "$as_me: creating $ac_file" >&6;}
15426     fi
15427     # Neutralize special characters interpreted by sed in replacement strings.
15428     case $configure_input in #(
15429     *\&* | *\|* | *\\* )
15430        ac_sed_conf_input=`$as_echo "$configure_input" |
15431        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15432     *) ac_sed_conf_input=$configure_input;;
15433     esac
15434
15435     case $ac_tag in
15436     *:-:* | *:-) cat >"$tmp/stdin" \
15437       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15438     esac
15439     ;;
15440   esac
15441
15442   ac_dir=`$as_dirname -- "$ac_file" ||
15443 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15444          X"$ac_file" : 'X\(//\)[^/]' \| \
15445          X"$ac_file" : 'X\(//\)$' \| \
15446          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15447 $as_echo X"$ac_file" |
15448     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15449             s//\1/
15450             q
15451           }
15452           /^X\(\/\/\)[^/].*/{
15453             s//\1/
15454             q
15455           }
15456           /^X\(\/\/\)$/{
15457             s//\1/
15458             q
15459           }
15460           /^X\(\/\).*/{
15461             s//\1/
15462             q
15463           }
15464           s/.*/./; q'`
15465   as_dir="$ac_dir"; as_fn_mkdir_p
15466   ac_builddir=.
15467
15468 case "$ac_dir" in
15469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15470 *)
15471   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15472   # A ".." for each directory in $ac_dir_suffix.
15473   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15474   case $ac_top_builddir_sub in
15475   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15476   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15477   esac ;;
15478 esac
15479 ac_abs_top_builddir=$ac_pwd
15480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15481 # for backward compatibility:
15482 ac_top_builddir=$ac_top_build_prefix
15483
15484 case $srcdir in
15485   .)  # We are building in place.
15486     ac_srcdir=.
15487     ac_top_srcdir=$ac_top_builddir_sub
15488     ac_abs_top_srcdir=$ac_pwd ;;
15489   [\\/]* | ?:[\\/]* )  # Absolute name.
15490     ac_srcdir=$srcdir$ac_dir_suffix;
15491     ac_top_srcdir=$srcdir
15492     ac_abs_top_srcdir=$srcdir ;;
15493   *) # Relative name.
15494     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15495     ac_top_srcdir=$ac_top_build_prefix$srcdir
15496     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15497 esac
15498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15499
15500
15501   case $ac_mode in
15502   :F)
15503   #
15504   # CONFIG_FILE
15505   #
15506
15507   case $INSTALL in
15508   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15509   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15510   esac
15511   ac_MKDIR_P=$MKDIR_P
15512   case $MKDIR_P in
15513   [\\/$]* | ?:[\\/]* ) ;;
15514   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15515   esac
15516 _ACEOF
15517
15518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15519 # If the template does not know about datarootdir, expand it.
15520 # FIXME: This hack should be removed a few years after 2.60.
15521 ac_datarootdir_hack=; ac_datarootdir_seen=
15522 ac_sed_dataroot='
15523 /datarootdir/ {
15524   p
15525   q
15526 }
15527 /@datadir@/p
15528 /@docdir@/p
15529 /@infodir@/p
15530 /@localedir@/p
15531 /@mandir@/p'
15532 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15533 *datarootdir*) ac_datarootdir_seen=yes;;
15534 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15535   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15536 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15537 _ACEOF
15538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15539   ac_datarootdir_hack='
15540   s&@datadir@&$datadir&g
15541   s&@docdir@&$docdir&g
15542   s&@infodir@&$infodir&g
15543   s&@localedir@&$localedir&g
15544   s&@mandir@&$mandir&g
15545   s&\\\${datarootdir}&$datarootdir&g' ;;
15546 esac
15547 _ACEOF
15548
15549 # Neutralize VPATH when `$srcdir' = `.'.
15550 # Shell code in configure.ac might set extrasub.
15551 # FIXME: do we really want to maintain this feature?
15552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15553 ac_sed_extra="$ac_vpsub
15554 $extrasub
15555 _ACEOF
15556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15557 :t
15558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15559 s|@configure_input@|$ac_sed_conf_input|;t t
15560 s&@top_builddir@&$ac_top_builddir_sub&;t t
15561 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15562 s&@srcdir@&$ac_srcdir&;t t
15563 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15564 s&@top_srcdir@&$ac_top_srcdir&;t t
15565 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15566 s&@builddir@&$ac_builddir&;t t
15567 s&@abs_builddir@&$ac_abs_builddir&;t t
15568 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15569 s&@INSTALL@&$ac_INSTALL&;t t
15570 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15571 $ac_datarootdir_hack
15572 "
15573 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15574   || as_fn_error "could not create $ac_file" "$LINENO" 5
15575
15576 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15577   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15578   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15579   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15580 which seems to be undefined.  Please make sure it is defined." >&5
15581 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15582 which seems to be undefined.  Please make sure it is defined." >&2;}
15583
15584   rm -f "$tmp/stdin"
15585   case $ac_file in
15586   -) cat "$tmp/out" && rm -f "$tmp/out";;
15587   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15588   esac \
15589   || as_fn_error "could not create $ac_file" "$LINENO" 5
15590  ;;
15591   :H)
15592   #
15593   # CONFIG_HEADER
15594   #
15595   if test x"$ac_file" != x-; then
15596     {
15597       $as_echo "/* $configure_input  */" \
15598       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15599     } >"$tmp/config.h" \
15600       || as_fn_error "could not create $ac_file" "$LINENO" 5
15601     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15602       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15603 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15604     else
15605       rm -f "$ac_file"
15606       mv "$tmp/config.h" "$ac_file" \
15607         || as_fn_error "could not create $ac_file" "$LINENO" 5
15608     fi
15609   else
15610     $as_echo "/* $configure_input  */" \
15611       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15612       || as_fn_error "could not create -" "$LINENO" 5
15613   fi
15614 # Compute "$ac_file"'s index in $config_headers.
15615 _am_arg="$ac_file"
15616 _am_stamp_count=1
15617 for _am_header in $config_headers :; do
15618   case $_am_header in
15619     $_am_arg | $_am_arg:* )
15620       break ;;
15621     * )
15622       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15623   esac
15624 done
15625 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15626 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15627          X"$_am_arg" : 'X\(//\)[^/]' \| \
15628          X"$_am_arg" : 'X\(//\)$' \| \
15629          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15630 $as_echo X"$_am_arg" |
15631     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15632             s//\1/
15633             q
15634           }
15635           /^X\(\/\/\)[^/].*/{
15636             s//\1/
15637             q
15638           }
15639           /^X\(\/\/\)$/{
15640             s//\1/
15641             q
15642           }
15643           /^X\(\/\).*/{
15644             s//\1/
15645             q
15646           }
15647           s/.*/./; q'`/stamp-h$_am_stamp_count
15648  ;;
15649
15650   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15651 $as_echo "$as_me: executing $ac_file commands" >&6;}
15652  ;;
15653   esac
15654
15655
15656   case $ac_file$ac_mode in
15657     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15658   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15659   # are listed without --file.  Let's play safe and only enable the eval
15660   # if we detect the quoting.
15661   case $CONFIG_FILES in
15662   *\'*) eval set x "$CONFIG_FILES" ;;
15663   *)   set x $CONFIG_FILES ;;
15664   esac
15665   shift
15666   for mf
15667   do
15668     # Strip MF so we end up with the name of the file.
15669     mf=`echo "$mf" | sed -e 's/:.*$//'`
15670     # Check whether this is an Automake generated Makefile or not.
15671     # We used to match only the files named `Makefile.in', but
15672     # some people rename them; so instead we look at the file content.
15673     # Grep'ing the first line is not enough: some people post-process
15674     # each Makefile.in and add a new line on top of each file to say so.
15675     # Grep'ing the whole file is not good either: AIX grep has a line
15676     # limit of 2048, but all sed's we know have understand at least 4000.
15677     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15678       dirpart=`$as_dirname -- "$mf" ||
15679 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15680          X"$mf" : 'X\(//\)[^/]' \| \
15681          X"$mf" : 'X\(//\)$' \| \
15682          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15683 $as_echo X"$mf" |
15684     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15685             s//\1/
15686             q
15687           }
15688           /^X\(\/\/\)[^/].*/{
15689             s//\1/
15690             q
15691           }
15692           /^X\(\/\/\)$/{
15693             s//\1/
15694             q
15695           }
15696           /^X\(\/\).*/{
15697             s//\1/
15698             q
15699           }
15700           s/.*/./; q'`
15701     else
15702       continue
15703     fi
15704     # Extract the definition of DEPDIR, am__include, and am__quote
15705     # from the Makefile without running `make'.
15706     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15707     test -z "$DEPDIR" && continue
15708     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15709     test -z "am__include" && continue
15710     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15711     # When using ansi2knr, U may be empty or an underscore; expand it
15712     U=`sed -n 's/^U = //p' < "$mf"`
15713     # Find all dependency output files, they are included files with
15714     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15715     # simplest approach to changing $(DEPDIR) to its actual value in the
15716     # expansion.
15717     for file in `sed -n "
15718       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15719          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15720       # Make sure the directory exists.
15721       test -f "$dirpart/$file" && continue
15722       fdir=`$as_dirname -- "$file" ||
15723 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15724          X"$file" : 'X\(//\)[^/]' \| \
15725          X"$file" : 'X\(//\)$' \| \
15726          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15727 $as_echo X"$file" |
15728     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15729             s//\1/
15730             q
15731           }
15732           /^X\(\/\/\)[^/].*/{
15733             s//\1/
15734             q
15735           }
15736           /^X\(\/\/\)$/{
15737             s//\1/
15738             q
15739           }
15740           /^X\(\/\).*/{
15741             s//\1/
15742             q
15743           }
15744           s/.*/./; q'`
15745       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15746       # echo "creating $dirpart/$file"
15747       echo '# dummy' > "$dirpart/$file"
15748     done
15749   done
15750 }
15751  ;;
15752     "libtool":C)
15753
15754     # See if we are running on zsh, and set the options which allow our
15755     # commands through without removal of \ escapes.
15756     if test -n "${ZSH_VERSION+set}" ; then
15757       setopt NO_GLOB_SUBST
15758     fi
15759
15760     cfgfile="${ofile}T"
15761     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15762     $RM "$cfgfile"
15763
15764     cat <<_LT_EOF >> "$cfgfile"
15765 #! $SHELL
15766
15767 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15768 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15769 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15770 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15771 #
15772 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15773 #                 2006, 2007, 2008 Free Software Foundation, Inc.
15774 #   Written by Gordon Matzigkeit, 1996
15775 #
15776 #   This file is part of GNU Libtool.
15777 #
15778 # GNU Libtool is free software; you can redistribute it and/or
15779 # modify it under the terms of the GNU General Public License as
15780 # published by the Free Software Foundation; either version 2 of
15781 # the License, or (at your option) any later version.
15782 #
15783 # As a special exception to the GNU General Public License,
15784 # if you distribute this file as part of a program or library that
15785 # is built using GNU Libtool, you may include this file under the
15786 # same distribution terms that you use for the rest of that program.
15787 #
15788 # GNU Libtool is distributed in the hope that it will be useful,
15789 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15790 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15791 # GNU General Public License for more details.
15792 #
15793 # You should have received a copy of the GNU General Public License
15794 # along with GNU Libtool; see the file COPYING.  If not, a copy
15795 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15796 # obtained by writing to the Free Software Foundation, Inc.,
15797 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15798
15799
15800 # The names of the tagged configurations supported by this script.
15801 available_tags=""
15802
15803 # ### BEGIN LIBTOOL CONFIG
15804
15805 # Assembler program.
15806 AS=$AS
15807
15808 # DLL creation program.
15809 DLLTOOL=$DLLTOOL
15810
15811 # Object dumper program.
15812 OBJDUMP=$OBJDUMP
15813
15814 # Which release of libtool.m4 was used?
15815 macro_version=$macro_version
15816 macro_revision=$macro_revision
15817
15818 # Whether or not to build shared libraries.
15819 build_libtool_libs=$enable_shared
15820
15821 # Whether or not to build static libraries.
15822 build_old_libs=$enable_static
15823
15824 # What type of objects to build.
15825 pic_mode=$pic_mode
15826
15827 # Whether or not to optimize for fast installation.
15828 fast_install=$enable_fast_install
15829
15830 # The host system.
15831 host_alias=$host_alias
15832 host=$host
15833 host_os=$host_os
15834
15835 # The build system.
15836 build_alias=$build_alias
15837 build=$build
15838 build_os=$build_os
15839
15840 # A sed program that does not truncate output.
15841 SED=$lt_SED
15842
15843 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15844 Xsed="\$SED -e 1s/^X//"
15845
15846 # A grep program that handles long lines.
15847 GREP=$lt_GREP
15848
15849 # An ERE matcher.
15850 EGREP=$lt_EGREP
15851
15852 # A literal string matcher.
15853 FGREP=$lt_FGREP
15854
15855 # A BSD- or MS-compatible name lister.
15856 NM=$lt_NM
15857
15858 # Whether we need soft or hard links.
15859 LN_S=$lt_LN_S
15860
15861 # What is the maximum length of a command?
15862 max_cmd_len=$max_cmd_len
15863
15864 # Object file suffix (normally "o").
15865 objext=$ac_objext
15866
15867 # Executable file suffix (normally "").
15868 exeext=$exeext
15869
15870 # whether the shell understands "unset".
15871 lt_unset=$lt_unset
15872
15873 # turn spaces into newlines.
15874 SP2NL=$lt_lt_SP2NL
15875
15876 # turn newlines into spaces.
15877 NL2SP=$lt_lt_NL2SP
15878
15879 # How to create reloadable object files.
15880 reload_flag=$lt_reload_flag
15881 reload_cmds=$lt_reload_cmds
15882
15883 # Method to check whether dependent libraries are shared objects.
15884 deplibs_check_method=$lt_deplibs_check_method
15885
15886 # Command to use when deplibs_check_method == "file_magic".
15887 file_magic_cmd=$lt_file_magic_cmd
15888
15889 # The archiver.
15890 AR=$lt_AR
15891 AR_FLAGS=$lt_AR_FLAGS
15892
15893 # A symbol stripping program.
15894 STRIP=$lt_STRIP
15895
15896 # Commands used to install an old-style archive.
15897 RANLIB=$lt_RANLIB
15898 old_postinstall_cmds=$lt_old_postinstall_cmds
15899 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15900
15901 # A C compiler.
15902 LTCC=$lt_CC
15903
15904 # LTCC compiler flags.
15905 LTCFLAGS=$lt_CFLAGS
15906
15907 # Take the output of nm and produce a listing of raw symbols and C names.
15908 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15909
15910 # Transform the output of nm in a proper C declaration.
15911 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15912
15913 # Transform the output of nm in a C name address pair.
15914 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15915
15916 # Transform the output of nm in a C name address pair when lib prefix is needed.
15917 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15918
15919 # The name of the directory that contains temporary libtool files.
15920 objdir=$objdir
15921
15922 # Shell to use when invoking shell scripts.
15923 SHELL=$lt_SHELL
15924
15925 # An echo program that does not interpret backslashes.
15926 ECHO=$lt_ECHO
15927
15928 # Used to examine libraries when file_magic_cmd begins with "file".
15929 MAGIC_CMD=$MAGIC_CMD
15930
15931 # Must we lock files when doing compilation?
15932 need_locks=$lt_need_locks
15933
15934 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15935 DSYMUTIL=$lt_DSYMUTIL
15936
15937 # Tool to change global to local symbols on Mac OS X.
15938 NMEDIT=$lt_NMEDIT
15939
15940 # Tool to manipulate fat objects and archives on Mac OS X.
15941 LIPO=$lt_LIPO
15942
15943 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15944 OTOOL=$lt_OTOOL
15945
15946 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15947 OTOOL64=$lt_OTOOL64
15948
15949 # Old archive suffix (normally "a").
15950 libext=$libext
15951
15952 # Shared library suffix (normally ".so").
15953 shrext_cmds=$lt_shrext_cmds
15954
15955 # The commands to extract the exported symbol list from a shared archive.
15956 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15957
15958 # Variables whose values should be saved in libtool wrapper scripts and
15959 # restored at link time.
15960 variables_saved_for_relink=$lt_variables_saved_for_relink
15961
15962 # Do we need the "lib" prefix for modules?
15963 need_lib_prefix=$need_lib_prefix
15964
15965 # Do we need a version for libraries?
15966 need_version=$need_version
15967
15968 # Library versioning type.
15969 version_type=$version_type
15970
15971 # Shared library runtime path variable.
15972 runpath_var=$runpath_var
15973
15974 # Shared library path variable.
15975 shlibpath_var=$shlibpath_var
15976
15977 # Is shlibpath searched before the hard-coded library search path?
15978 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15979
15980 # Format of library name prefix.
15981 libname_spec=$lt_libname_spec
15982
15983 # List of archive names.  First name is the real one, the rest are links.
15984 # The last name is the one that the linker finds with -lNAME
15985 library_names_spec=$lt_library_names_spec
15986
15987 # The coded name of the library, if different from the real name.
15988 soname_spec=$lt_soname_spec
15989
15990 # Command to use after installation of a shared archive.
15991 postinstall_cmds=$lt_postinstall_cmds
15992
15993 # Command to use after uninstallation of a shared archive.
15994 postuninstall_cmds=$lt_postuninstall_cmds
15995
15996 # Commands used to finish a libtool library installation in a directory.
15997 finish_cmds=$lt_finish_cmds
15998
15999 # As "finish_cmds", except a single script fragment to be evaled but
16000 # not shown.
16001 finish_eval=$lt_finish_eval
16002
16003 # Whether we should hardcode library paths into libraries.
16004 hardcode_into_libs=$hardcode_into_libs
16005
16006 # Compile-time system search path for libraries.
16007 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16008
16009 # Run-time system search path for libraries.
16010 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16011
16012 # Whether dlopen is supported.
16013 dlopen_support=$enable_dlopen
16014
16015 # Whether dlopen of programs is supported.
16016 dlopen_self=$enable_dlopen_self
16017
16018 # Whether dlopen of statically linked programs is supported.
16019 dlopen_self_static=$enable_dlopen_self_static
16020
16021 # Commands to strip libraries.
16022 old_striplib=$lt_old_striplib
16023 striplib=$lt_striplib
16024
16025
16026 # The linker used to build libraries.
16027 LD=$lt_LD
16028
16029 # Commands used to build an old-style archive.
16030 old_archive_cmds=$lt_old_archive_cmds
16031
16032 # A language specific compiler.
16033 CC=$lt_compiler
16034
16035 # Is the compiler the GNU compiler?
16036 with_gcc=$GCC
16037
16038 # Compiler flag to turn off builtin functions.
16039 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16040
16041 # How to pass a linker flag through the compiler.
16042 wl=$lt_lt_prog_compiler_wl
16043
16044 # Additional compiler flags for building library objects.
16045 pic_flag=$lt_lt_prog_compiler_pic
16046
16047 # Compiler flag to prevent dynamic linking.
16048 link_static_flag=$lt_lt_prog_compiler_static
16049
16050 # Does compiler simultaneously support -c and -o options?
16051 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16052
16053 # Whether or not to add -lc for building shared libraries.
16054 build_libtool_need_lc=$archive_cmds_need_lc
16055
16056 # Whether or not to disallow shared libs when runtime libs are static.
16057 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16058
16059 # Compiler flag to allow reflexive dlopens.
16060 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16061
16062 # Compiler flag to generate shared objects directly from archives.
16063 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16064
16065 # Whether the compiler copes with passing no objects directly.
16066 compiler_needs_object=$lt_compiler_needs_object
16067
16068 # Create an old-style archive from a shared archive.
16069 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16070
16071 # Create a temporary old-style archive to link instead of a shared archive.
16072 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16073
16074 # Commands used to build a shared archive.
16075 archive_cmds=$lt_archive_cmds
16076 archive_expsym_cmds=$lt_archive_expsym_cmds
16077
16078 # Commands used to build a loadable module if different from building
16079 # a shared archive.
16080 module_cmds=$lt_module_cmds
16081 module_expsym_cmds=$lt_module_expsym_cmds
16082
16083 # Whether we are building with GNU ld or not.
16084 with_gnu_ld=$lt_with_gnu_ld
16085
16086 # Flag that allows shared libraries with undefined symbols to be built.
16087 allow_undefined_flag=$lt_allow_undefined_flag
16088
16089 # Flag that enforces no undefined symbols.
16090 no_undefined_flag=$lt_no_undefined_flag
16091
16092 # Flag to hardcode \$libdir into a binary during linking.
16093 # This must work even if \$libdir does not exist
16094 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16095
16096 # If ld is used when linking, flag to hardcode \$libdir into a binary
16097 # during linking.  This must work even if \$libdir does not exist.
16098 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16099
16100 # Whether we need a single "-rpath" flag with a separated argument.
16101 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16102
16103 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16104 # DIR into the resulting binary.
16105 hardcode_direct=$hardcode_direct
16106
16107 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16108 # DIR into the resulting binary and the resulting library dependency is
16109 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16110 # library is relocated.
16111 hardcode_direct_absolute=$hardcode_direct_absolute
16112
16113 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16114 # into the resulting binary.
16115 hardcode_minus_L=$hardcode_minus_L
16116
16117 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16118 # into the resulting binary.
16119 hardcode_shlibpath_var=$hardcode_shlibpath_var
16120
16121 # Set to "yes" if building a shared library automatically hardcodes DIR
16122 # into the library and all subsequent libraries and executables linked
16123 # against it.
16124 hardcode_automatic=$hardcode_automatic
16125
16126 # Set to yes if linker adds runtime paths of dependent libraries
16127 # to runtime path list.
16128 inherit_rpath=$inherit_rpath
16129
16130 # Whether libtool must link a program against all its dependency libraries.
16131 link_all_deplibs=$link_all_deplibs
16132
16133 # Fix the shell variable \$srcfile for the compiler.
16134 fix_srcfile_path=$lt_fix_srcfile_path
16135
16136 # Set to "yes" if exported symbols are required.
16137 always_export_symbols=$always_export_symbols
16138
16139 # The commands to list exported symbols.
16140 export_symbols_cmds=$lt_export_symbols_cmds
16141
16142 # Symbols that should not be listed in the preloaded symbols.
16143 exclude_expsyms=$lt_exclude_expsyms
16144
16145 # Symbols that must always be exported.
16146 include_expsyms=$lt_include_expsyms
16147
16148 # Commands necessary for linking programs (against libraries) with templates.
16149 prelink_cmds=$lt_prelink_cmds
16150
16151 # Specify filename containing input files.
16152 file_list_spec=$lt_file_list_spec
16153
16154 # How to hardcode a shared library path into an executable.
16155 hardcode_action=$hardcode_action
16156
16157 # ### END LIBTOOL CONFIG
16158
16159 _LT_EOF
16160
16161   case $host_os in
16162   aix3*)
16163     cat <<\_LT_EOF >> "$cfgfile"
16164 # AIX sometimes has problems with the GCC collect2 program.  For some
16165 # reason, if we set the COLLECT_NAMES environment variable, the problems
16166 # vanish in a puff of smoke.
16167 if test "X${COLLECT_NAMES+set}" != Xset; then
16168   COLLECT_NAMES=
16169   export COLLECT_NAMES
16170 fi
16171 _LT_EOF
16172     ;;
16173   esac
16174
16175
16176 ltmain="$ac_aux_dir/ltmain.sh"
16177
16178
16179   # We use sed instead of cat because bash on DJGPP gets confused if
16180   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16181   # text mode, it properly converts lines to CR/LF.  This bash problem
16182   # is reportedly fixed, but why not run on old versions too?
16183   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16184     || (rm -f "$cfgfile"; exit 1)
16185
16186   case $xsi_shell in
16187   yes)
16188     cat << \_LT_EOF >> "$cfgfile"
16189
16190 # func_dirname file append nondir_replacement
16191 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16192 # otherwise set result to NONDIR_REPLACEMENT.
16193 func_dirname ()
16194 {
16195   case ${1} in
16196     */*) func_dirname_result="${1%/*}${2}" ;;
16197     *  ) func_dirname_result="${3}" ;;
16198   esac
16199 }
16200
16201 # func_basename file
16202 func_basename ()
16203 {
16204   func_basename_result="${1##*/}"
16205 }
16206
16207 # func_dirname_and_basename file append nondir_replacement
16208 # perform func_basename and func_dirname in a single function
16209 # call:
16210 #   dirname:  Compute the dirname of FILE.  If nonempty,
16211 #             add APPEND to the result, otherwise set result
16212 #             to NONDIR_REPLACEMENT.
16213 #             value returned in "$func_dirname_result"
16214 #   basename: Compute filename of FILE.
16215 #             value retuned in "$func_basename_result"
16216 # Implementation must be kept synchronized with func_dirname
16217 # and func_basename. For efficiency, we do not delegate to
16218 # those functions but instead duplicate the functionality here.
16219 func_dirname_and_basename ()
16220 {
16221   case ${1} in
16222     */*) func_dirname_result="${1%/*}${2}" ;;
16223     *  ) func_dirname_result="${3}" ;;
16224   esac
16225   func_basename_result="${1##*/}"
16226 }
16227
16228 # func_stripname prefix suffix name
16229 # strip PREFIX and SUFFIX off of NAME.
16230 # PREFIX and SUFFIX must not contain globbing or regex special
16231 # characters, hashes, percent signs, but SUFFIX may contain a leading
16232 # dot (in which case that matches only a dot).
16233 func_stripname ()
16234 {
16235   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16236   # positional parameters, so assign one to ordinary parameter first.
16237   func_stripname_result=${3}
16238   func_stripname_result=${func_stripname_result#"${1}"}
16239   func_stripname_result=${func_stripname_result%"${2}"}
16240 }
16241
16242 # func_opt_split
16243 func_opt_split ()
16244 {
16245   func_opt_split_opt=${1%%=*}
16246   func_opt_split_arg=${1#*=}
16247 }
16248
16249 # func_lo2o object
16250 func_lo2o ()
16251 {
16252   case ${1} in
16253     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16254     *)    func_lo2o_result=${1} ;;
16255   esac
16256 }
16257
16258 # func_xform libobj-or-source
16259 func_xform ()
16260 {
16261   func_xform_result=${1%.*}.lo
16262 }
16263
16264 # func_arith arithmetic-term...
16265 func_arith ()
16266 {
16267   func_arith_result=$(( $* ))
16268 }
16269
16270 # func_len string
16271 # STRING may not start with a hyphen.
16272 func_len ()
16273 {
16274   func_len_result=${#1}
16275 }
16276
16277 _LT_EOF
16278     ;;
16279   *) # Bourne compatible functions.
16280     cat << \_LT_EOF >> "$cfgfile"
16281
16282 # func_dirname file append nondir_replacement
16283 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16284 # otherwise set result to NONDIR_REPLACEMENT.
16285 func_dirname ()
16286 {
16287   # Extract subdirectory from the argument.
16288   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16289   if test "X$func_dirname_result" = "X${1}"; then
16290     func_dirname_result="${3}"
16291   else
16292     func_dirname_result="$func_dirname_result${2}"
16293   fi
16294 }
16295
16296 # func_basename file
16297 func_basename ()
16298 {
16299   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16300 }
16301
16302
16303 # func_stripname prefix suffix name
16304 # strip PREFIX and SUFFIX off of NAME.
16305 # PREFIX and SUFFIX must not contain globbing or regex special
16306 # characters, hashes, percent signs, but SUFFIX may contain a leading
16307 # dot (in which case that matches only a dot).
16308 # func_strip_suffix prefix name
16309 func_stripname ()
16310 {
16311   case ${2} in
16312     .*) func_stripname_result=`$ECHO "X${3}" \
16313            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16314     *)  func_stripname_result=`$ECHO "X${3}" \
16315            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16316   esac
16317 }
16318
16319 # sed scripts:
16320 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16321 my_sed_long_arg='1s/^-[^=]*=//'
16322
16323 # func_opt_split
16324 func_opt_split ()
16325 {
16326   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16327   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16328 }
16329
16330 # func_lo2o object
16331 func_lo2o ()
16332 {
16333   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16334 }
16335
16336 # func_xform libobj-or-source
16337 func_xform ()
16338 {
16339   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16340 }
16341
16342 # func_arith arithmetic-term...
16343 func_arith ()
16344 {
16345   func_arith_result=`expr "$@"`
16346 }
16347
16348 # func_len string
16349 # STRING may not start with a hyphen.
16350 func_len ()
16351 {
16352   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16353 }
16354
16355 _LT_EOF
16356 esac
16357
16358 case $lt_shell_append in
16359   yes)
16360     cat << \_LT_EOF >> "$cfgfile"
16361
16362 # func_append var value
16363 # Append VALUE to the end of shell variable VAR.
16364 func_append ()
16365 {
16366   eval "$1+=\$2"
16367 }
16368 _LT_EOF
16369     ;;
16370   *)
16371     cat << \_LT_EOF >> "$cfgfile"
16372
16373 # func_append var value
16374 # Append VALUE to the end of shell variable VAR.
16375 func_append ()
16376 {
16377   eval "$1=\$$1\$2"
16378 }
16379
16380 _LT_EOF
16381     ;;
16382   esac
16383
16384
16385   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16386     || (rm -f "$cfgfile"; exit 1)
16387
16388   mv -f "$cfgfile" "$ofile" ||
16389     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16390   chmod +x "$ofile"
16391
16392  ;;
16393     "$ac_stdint_h":C)
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
16395 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
16396 ac_stdint=$tmp/_stdint.h
16397
16398 echo "#ifndef" $_ac_stdint_h >$ac_stdint
16399 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
16400 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
16401 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
16402 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
16403 if test "_$ac_cv_header_stdint_t" != "_" ; then
16404 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
16405 echo "#include <stdint.h>" >>$ac_stdint
16406 echo "#endif" >>$ac_stdint
16407 echo "#endif" >>$ac_stdint
16408 else
16409
16410 cat >>$ac_stdint <<STDINT_EOF
16411
16412 /* ................... shortcircuit part ........................... */
16413
16414 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
16415 #include <stdint.h>
16416 #else
16417 #include <stddef.h>
16418
16419 /* .................... configured part ............................ */
16420
16421 STDINT_EOF
16422
16423 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
16424 if test "_$ac_cv_header_stdint_x" != "_" ; then
16425   ac_header="$ac_cv_header_stdint_x"
16426   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
16427 else
16428   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
16429 fi
16430
16431 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
16432 if  test "_$ac_cv_header_stdint_o" != "_" ; then
16433   ac_header="$ac_cv_header_stdint_o"
16434   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
16435 else
16436   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
16437 fi
16438
16439 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
16440 if  test "_$ac_cv_header_stdint_u" != "_" ; then
16441   ac_header="$ac_cv_header_stdint_u"
16442   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
16443 else
16444   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
16445 fi
16446
16447 echo "" >>$ac_stdint
16448
16449 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
16450   echo "#include <$ac_header>" >>$ac_stdint
16451   echo "" >>$ac_stdint
16452 fi fi
16453
16454 echo "/* which 64bit typedef has been found */" >>$ac_stdint
16455 if test "$ac_cv_type_uint64_t" = "yes" ; then
16456 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
16457 else
16458 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
16459 fi
16460 if test "$ac_cv_type_u_int64_t" = "yes" ; then
16461 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
16462 else
16463 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
16464 fi
16465 echo "" >>$ac_stdint
16466
16467 echo "/* which type model has been detected */" >>$ac_stdint
16468 if test "_$ac_cv_char_data_model" != "_" ; then
16469 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
16470 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
16471 else
16472 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
16473 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
16474 fi
16475 echo "" >>$ac_stdint
16476
16477 echo "/* whether int_least types were detected */" >>$ac_stdint
16478 if test "$ac_cv_type_int_least32_t" = "yes"; then
16479 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
16480 else
16481 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
16482 fi
16483 echo "/* whether int_fast types were detected */" >>$ac_stdint
16484 if test "$ac_cv_type_int_fast32_t" = "yes"; then
16485 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
16486 else
16487 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
16488 fi
16489 echo "/* whether intmax_t type was detected */" >>$ac_stdint
16490 if test "$ac_cv_type_intmax_t" = "yes"; then
16491 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
16492 else
16493 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
16494 fi
16495 echo "" >>$ac_stdint
16496
16497   cat >>$ac_stdint <<STDINT_EOF
16498 /* .................... detections part ............................ */
16499
16500 /* whether we need to define bitspecific types from compiler base types */
16501 #ifndef _STDINT_HEADER_INTPTR
16502 #ifndef _STDINT_HEADER_UINT32
16503 #ifndef _STDINT_HEADER_U_INT32
16504 #define _STDINT_NEED_INT_MODEL_T
16505 #else
16506 #define _STDINT_HAVE_U_INT_TYPES
16507 #endif
16508 #endif
16509 #endif
16510
16511 #ifdef _STDINT_HAVE_U_INT_TYPES
16512 #undef _STDINT_NEED_INT_MODEL_T
16513 #endif
16514
16515 #ifdef  _STDINT_CHAR_MODEL
16516 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
16517 #ifndef _STDINT_BYTE_MODEL
16518 #define _STDINT_BYTE_MODEL 12
16519 #endif
16520 #endif
16521 #endif
16522
16523 #ifndef _STDINT_HAVE_INT_LEAST32_T
16524 #define _STDINT_NEED_INT_LEAST_T
16525 #endif
16526
16527 #ifndef _STDINT_HAVE_INT_FAST32_T
16528 #define _STDINT_NEED_INT_FAST_T
16529 #endif
16530
16531 #ifndef _STDINT_HEADER_INTPTR
16532 #define _STDINT_NEED_INTPTR_T
16533 #ifndef _STDINT_HAVE_INTMAX_T
16534 #define _STDINT_NEED_INTMAX_T
16535 #endif
16536 #endif
16537
16538
16539 /* .................... definition part ............................ */
16540
16541 /* some system headers have good uint64_t */
16542 #ifndef _HAVE_UINT64_T
16543 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
16544 #define _HAVE_UINT64_T
16545 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
16546 #define _HAVE_UINT64_T
16547 typedef u_int64_t uint64_t;
16548 #endif
16549 #endif
16550
16551 #ifndef _HAVE_UINT64_T
16552 /* .. here are some common heuristics using compiler runtime specifics */
16553 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
16554 #define _HAVE_UINT64_T
16555 #define _HAVE_LONGLONG_UINT64_T
16556 typedef long long int64_t;
16557 typedef unsigned long long uint64_t;
16558
16559 #elif !defined __STRICT_ANSI__
16560 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
16561 #define _HAVE_UINT64_T
16562 typedef __int64 int64_t;
16563 typedef unsigned __int64 uint64_t;
16564
16565 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
16566 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
16567 #if !defined _NO_LONGLONG
16568 #define _HAVE_UINT64_T
16569 #define _HAVE_LONGLONG_UINT64_T
16570 typedef long long int64_t;
16571 typedef unsigned long long uint64_t;
16572 #endif
16573
16574 #elif defined __alpha || (defined __mips && defined _ABIN32)
16575 #if !defined _NO_LONGLONG
16576 typedef long int64_t;
16577 typedef unsigned long uint64_t;
16578 #endif
16579   /* compiler/cpu type to define int64_t */
16580 #endif
16581 #endif
16582 #endif
16583
16584 #if defined _STDINT_HAVE_U_INT_TYPES
16585 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
16586 typedef u_int8_t uint8_t;
16587 typedef u_int16_t uint16_t;
16588 typedef u_int32_t uint32_t;
16589
16590 /* glibc compatibility */
16591 #ifndef __int8_t_defined
16592 #define __int8_t_defined
16593 #endif
16594 #endif
16595
16596 #ifdef _STDINT_NEED_INT_MODEL_T
16597 /* we must guess all the basic types. Apart from byte-adressable system, */
16598 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
16599 /* (btw, those nibble-addressable systems are way off, or so we assume) */
16600
16601
16602 #if defined _STDINT_BYTE_MODEL
16603 #if _STDINT_LONG_MODEL+0 == 242
16604 /* 2:4:2 =  IP16 = a normal 16-bit system                */
16605 typedef unsigned char   uint8_t;
16606 typedef unsigned short  uint16_t;
16607 typedef unsigned long   uint32_t;
16608 #ifndef __int8_t_defined
16609 #define __int8_t_defined
16610 typedef          char    int8_t;
16611 typedef          short   int16_t;
16612 typedef          long    int32_t;
16613 #endif
16614 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
16615 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
16616 /* 4:4:4 = ILP32 = a normal 32-bit system                */
16617 typedef unsigned char   uint8_t;
16618 typedef unsigned short  uint16_t;
16619 typedef unsigned int    uint32_t;
16620 #ifndef __int8_t_defined
16621 #define __int8_t_defined
16622 typedef          char    int8_t;
16623 typedef          short   int16_t;
16624 typedef          int     int32_t;
16625 #endif
16626 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
16627 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
16628 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
16629 typedef unsigned char   uint8_t;
16630 typedef unsigned short  uint16_t;
16631 typedef unsigned int    uint32_t;
16632 #ifndef __int8_t_defined
16633 #define __int8_t_defined
16634 typedef          char    int8_t;
16635 typedef          short   int16_t;
16636 typedef          int     int32_t;
16637 #endif
16638 /* this system has a "long" of 64bit */
16639 #ifndef _HAVE_UINT64_T
16640 #define _HAVE_UINT64_T
16641 typedef unsigned long   uint64_t;
16642 typedef          long    int64_t;
16643 #endif
16644 #elif _STDINT_LONG_MODEL+0 == 448
16645 /*      LLP64   a 64-bit system derived from a 32-bit system */
16646 typedef unsigned char   uint8_t;
16647 typedef unsigned short  uint16_t;
16648 typedef unsigned int    uint32_t;
16649 #ifndef __int8_t_defined
16650 #define __int8_t_defined
16651 typedef          char    int8_t;
16652 typedef          short   int16_t;
16653 typedef          int     int32_t;
16654 #endif
16655 /* assuming the system has a "long long" */
16656 #ifndef _HAVE_UINT64_T
16657 #define _HAVE_UINT64_T
16658 #define _HAVE_LONGLONG_UINT64_T
16659 typedef unsigned long long uint64_t;
16660 typedef          long long  int64_t;
16661 #endif
16662 #else
16663 #define _STDINT_NO_INT32_T
16664 #endif
16665 #else
16666 #define _STDINT_NO_INT8_T
16667 #define _STDINT_NO_INT32_T
16668 #endif
16669 #endif
16670
16671 /*
16672  * quote from SunOS-5.8 sys/inttypes.h:
16673  * Use at your own risk.  As of February 1996, the committee is squarely
16674  * behind the fixed sized types; the "least" and "fast" types are still being
16675  * discussed.  The probability that the "fast" types may be removed before
16676  * the standard is finalized is high enough that they are not currently
16677  * implemented.
16678  */
16679
16680 #if defined _STDINT_NEED_INT_LEAST_T
16681 typedef  int8_t    int_least8_t;
16682 typedef  int16_t   int_least16_t;
16683 typedef  int32_t   int_least32_t;
16684 #ifdef _HAVE_UINT64_T
16685 typedef  int64_t   int_least64_t;
16686 #endif
16687
16688 typedef uint8_t   uint_least8_t;
16689 typedef uint16_t  uint_least16_t;
16690 typedef uint32_t  uint_least32_t;
16691 #ifdef _HAVE_UINT64_T
16692 typedef uint64_t  uint_least64_t;
16693 #endif
16694   /* least types */
16695 #endif
16696
16697 #if defined _STDINT_NEED_INT_FAST_T
16698 typedef  int8_t    int_fast8_t;
16699 typedef  int       int_fast16_t;
16700 typedef  int32_t   int_fast32_t;
16701 #ifdef _HAVE_UINT64_T
16702 typedef  int64_t   int_fast64_t;
16703 #endif
16704
16705 typedef uint8_t   uint_fast8_t;
16706 typedef unsigned  uint_fast16_t;
16707 typedef uint32_t  uint_fast32_t;
16708 #ifdef _HAVE_UINT64_T
16709 typedef uint64_t  uint_fast64_t;
16710 #endif
16711   /* fast types */
16712 #endif
16713
16714 #ifdef _STDINT_NEED_INTMAX_T
16715 #ifdef _HAVE_UINT64_T
16716 typedef  int64_t       intmax_t;
16717 typedef uint64_t      uintmax_t;
16718 #else
16719 typedef          long  intmax_t;
16720 typedef unsigned long uintmax_t;
16721 #endif
16722 #endif
16723
16724 #ifdef _STDINT_NEED_INTPTR_T
16725 #ifndef __intptr_t_defined
16726 #define __intptr_t_defined
16727 /* we encourage using "long" to store pointer values, never use "int" ! */
16728 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
16729 typedef  unsigned int   uintptr_t;
16730 typedef           int    intptr_t;
16731 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
16732 typedef  unsigned long  uintptr_t;
16733 typedef           long   intptr_t;
16734 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
16735 typedef        uint64_t uintptr_t;
16736 typedef         int64_t  intptr_t;
16737 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
16738 typedef  unsigned long  uintptr_t;
16739 typedef           long   intptr_t;
16740 #endif
16741 #endif
16742 #endif
16743
16744 /* The ISO C99 standard specifies that in C++ implementations these
16745    should only be defined if explicitly requested.  */
16746 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
16747 #ifndef UINT32_C
16748
16749 /* Signed.  */
16750 # define INT8_C(c)      c
16751 # define INT16_C(c)     c
16752 # define INT32_C(c)     c
16753 # ifdef _HAVE_LONGLONG_UINT64_T
16754 #  define INT64_C(c)    c ## L
16755 # else
16756 #  define INT64_C(c)    c ## LL
16757 # endif
16758
16759 /* Unsigned.  */
16760 # define UINT8_C(c)     c ## U
16761 # define UINT16_C(c)    c ## U
16762 # define UINT32_C(c)    c ## U
16763 # ifdef _HAVE_LONGLONG_UINT64_T
16764 #  define UINT64_C(c)   c ## UL
16765 # else
16766 #  define UINT64_C(c)   c ## ULL
16767 # endif
16768
16769 /* Maximal type.  */
16770 # ifdef _HAVE_LONGLONG_UINT64_T
16771 #  define INTMAX_C(c)   c ## L
16772 #  define UINTMAX_C(c)  c ## UL
16773 # else
16774 #  define INTMAX_C(c)   c ## LL
16775 #  define UINTMAX_C(c)  c ## ULL
16776 # endif
16777
16778   /* literalnumbers */
16779 #endif
16780 #endif
16781
16782 /* These limits are merily those of a two complement byte-oriented system */
16783
16784 /* Minimum of signed integral types.  */
16785 # define INT8_MIN               (-128)
16786 # define INT16_MIN              (-32767-1)
16787 # define INT32_MIN              (-2147483647-1)
16788 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
16789 /* Maximum of signed integral types.  */
16790 # define INT8_MAX               (127)
16791 # define INT16_MAX              (32767)
16792 # define INT32_MAX              (2147483647)
16793 # define INT64_MAX              (__INT64_C(9223372036854775807))
16794
16795 /* Maximum of unsigned integral types.  */
16796 # define UINT8_MAX              (255)
16797 # define UINT16_MAX             (65535)
16798 # define UINT32_MAX             (4294967295U)
16799 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
16800
16801 /* Minimum of signed integral types having a minimum size.  */
16802 # define INT_LEAST8_MIN         INT8_MIN
16803 # define INT_LEAST16_MIN        INT16_MIN
16804 # define INT_LEAST32_MIN        INT32_MIN
16805 # define INT_LEAST64_MIN        INT64_MIN
16806 /* Maximum of signed integral types having a minimum size.  */
16807 # define INT_LEAST8_MAX         INT8_MAX
16808 # define INT_LEAST16_MAX        INT16_MAX
16809 # define INT_LEAST32_MAX        INT32_MAX
16810 # define INT_LEAST64_MAX        INT64_MAX
16811
16812 /* Maximum of unsigned integral types having a minimum size.  */
16813 # define UINT_LEAST8_MAX        UINT8_MAX
16814 # define UINT_LEAST16_MAX       UINT16_MAX
16815 # define UINT_LEAST32_MAX       UINT32_MAX
16816 # define UINT_LEAST64_MAX       UINT64_MAX
16817
16818   /* shortcircuit*/
16819 #endif
16820   /* once */
16821 #endif
16822 #endif
16823 STDINT_EOF
16824 fi
16825     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
16826       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
16827 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
16828     else
16829       ac_dir=`$as_dirname -- "$ac_stdint_h" ||
16830 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16831          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
16832          X"$ac_stdint_h" : 'X\(//\)$' \| \
16833          X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
16834 $as_echo X"$ac_stdint_h" |
16835     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16836             s//\1/
16837             q
16838           }
16839           /^X\(\/\/\)[^/].*/{
16840             s//\1/
16841             q
16842           }
16843           /^X\(\/\/\)$/{
16844             s//\1/
16845             q
16846           }
16847           /^X\(\/\).*/{
16848             s//\1/
16849             q
16850           }
16851           s/.*/./; q'`
16852       as_dir="$ac_dir"; as_fn_mkdir_p
16853       rm -f $ac_stdint_h
16854       mv $ac_stdint $ac_stdint_h
16855     fi
16856  ;;
16857
16858   esac
16859 done # for ac_tag
16860
16861
16862 as_fn_exit 0
16863 _ACEOF
16864 ac_clean_files=$ac_clean_files_save
16865
16866 test $ac_write_fail = 0 ||
16867   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16868
16869
16870 # configure is writing to config.log, and then calls config.status.
16871 # config.status does its own redirection, appending to config.log.
16872 # Unfortunately, on DOS this fails, as config.log is still kept open
16873 # by configure, so config.status won't be able to write to it; its
16874 # output is simply discarded.  So we exec the FD to /dev/null,
16875 # effectively closing config.log, so it can be properly (re)opened and
16876 # appended to by config.status.  When coming back to configure, we
16877 # need to make the FD available again.
16878 if test "$no_create" != yes; then
16879   ac_cs_success=:
16880   ac_config_status_args=
16881   test "$silent" = yes &&
16882     ac_config_status_args="$ac_config_status_args --quiet"
16883   exec 5>/dev/null
16884   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16885   exec 5>>config.log
16886   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16887   # would make configure fail if this is the last instruction.
16888   $ac_cs_success || as_fn_exit $?
16889 fi
16890 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16891   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16892 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16893 fi
16894
16895
16896
16897