Merge branch 'master' of git://git.project-moonshot.org/moonshot-ui into HEAD
[moonshot-ui.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for Moonshot-ui 0.1.
4 #
5 # Report bugs to <moonshot-community@jiscmail.ac.uk>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
177   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     PATH=/empty FPATH=/empty; export PATH FPATH
182     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185   if (eval "$as_required") 2>/dev/null; then :
186   as_have_required=yes
187 else
188   as_have_required=no
189 fi
190   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192 else
193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 as_found=false
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 do
197   IFS=$as_save_IFS
198   test -z "$as_dir" && as_dir=.
199   as_found=:
200   case $as_dir in #(
201          /*)
202            for as_base in sh bash ksh sh5; do
203              # Try only shells that exist, to save several forks.
204              as_shell=$as_dir/$as_base
205              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207   CONFIG_SHELL=$as_shell as_have_required=yes
208                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209   break 2
210 fi
211 fi
212            done;;
213        esac
214   as_found=false
215 done
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218   CONFIG_SHELL=$SHELL as_have_required=yes
219 fi; }
220 IFS=$as_save_IFS
221
222
223       if test "x$CONFIG_SHELL" != x; then :
224   # We cannot yet assume a decent shell, so we have to provide a
225         # neutralization value for shells without unset; and this also
226         # works around shells that cannot unset nonexistent variables.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: moonshot-community@jiscmail.ac.uk about your system,
243 $0: including any error possibly output before this
244 $0: message. Then install a modern shell, or manually run
245 $0: the script under such a shell if you do have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541 as_awk_strverscmp='
542   # Use only awk features that work with 7th edition Unix awk (1978).
543   # My, what an old awk you have, Mr. Solaris!
544   END {
545     while (length(v1) && length(v2)) {
546       # Set d1 to be the next thing to compare from v1, and likewise for d2.
547       # Normally this is a single character, but if v1 and v2 contain digits,
548       # compare them as integers and fractions as strverscmp does.
549       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
550         # Split v1 and v2 into their leading digit string components d1 and d2,
551         # and advance v1 and v2 past the leading digit strings.
552         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
553         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
554         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
555         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
556         if (d1 ~ /^0/) {
557           if (d2 ~ /^0/) {
558             # Compare two fractions.
559             while (d1 ~ /^0/ && d2 ~ /^0/) {
560               d1 = substr(d1, 2); len1--
561               d2 = substr(d2, 2); len2--
562             }
563             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
564               # The two components differ in length, and the common prefix
565               # contains only leading zeros.  Consider the longer to be less.
566               d1 = -len1
567               d2 = -len2
568             } else {
569               # Otherwise, compare as strings.
570               d1 = "x" d1
571               d2 = "x" d2
572             }
573           } else {
574             # A fraction is less than an integer.
575             exit 1
576           }
577         } else {
578           if (d2 ~ /^0/) {
579             # An integer is greater than a fraction.
580             exit 2
581           } else {
582             # Compare two integers.
583             d1 += 0
584             d2 += 0
585           }
586         }
587       } else {
588         # The normal case, without worrying about digits.
589         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
590         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
591       }
592       if (d1 < d2) exit 1
593       if (d1 > d2) exit 2
594     }
595     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
596     # which mishandles some comparisons of empty strings to integers.
597     if (length(v2)) exit 1
598     if (length(v1)) exit 2
599   }
600 '
601
602 test -n "$DJDIR" || exec 7<&0 </dev/null
603 exec 6>&1
604
605 # Name of the host.
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610 #
611 # Initializations.
612 #
613 ac_default_prefix=/usr/local
614 ac_clean_files=
615 ac_config_libobj_dir=.
616 LIBOBJS=
617 cross_compiling=no
618 subdirs=
619 MFLAGS=
620 MAKEFLAGS=
621
622 # Identity of this package.
623 PACKAGE_NAME='Moonshot-ui'
624 PACKAGE_TARNAME='moonshot-ui'
625 PACKAGE_VERSION='0.1'
626 PACKAGE_STRING='Moonshot-ui 0.1'
627 PACKAGE_BUGREPORT='moonshot-community@jiscmail.ac.uk'
628 PACKAGE_URL='http://www.project-moonshot.org/'
629
630 ac_unique_file="configure.ac"
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stdio.h>
634 #ifdef HAVE_SYS_TYPES_H
635 # include <sys/types.h>
636 #endif
637 #ifdef HAVE_SYS_STAT_H
638 # include <sys/stat.h>
639 #endif
640 #ifdef STDC_HEADERS
641 # include <stdlib.h>
642 # include <stddef.h>
643 #else
644 # ifdef HAVE_STDLIB_H
645 #  include <stdlib.h>
646 # endif
647 #endif
648 #ifdef HAVE_STRING_H
649 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
650 #  include <memory.h>
651 # endif
652 # include <string.h>
653 #endif
654 #ifdef HAVE_STRINGS_H
655 # include <strings.h>
656 #endif
657 #ifdef HAVE_INTTYPES_H
658 # include <inttypes.h>
659 #endif
660 #ifdef HAVE_STDINT_H
661 # include <stdint.h>
662 #endif
663 #ifdef HAVE_UNISTD_H
664 # include <unistd.h>
665 #endif"
666
667 gt_needs=
668 ac_subst_vars='am__EXEEXT_FALSE
669 am__EXEEXT_TRUE
670 LTLIBOBJS
671 LIBOBJS
672 GETTEXT_PACKAGE
673 POSUB
674 LTLIBINTL
675 LIBINTL
676 INTLLIBS
677 LTLIBICONV
678 LIBICONV
679 INTL_MACOSX_LIBS
680 XGETTEXT_EXTRA_OPTIONS
681 MSGMERGE
682 XGETTEXT_015
683 XGETTEXT
684 GMSGFMT_015
685 MSGFMT_015
686 GMSGFMT
687 MSGFMT
688 GETTEXT_MACRO_VERSION
689 USE_NLS
690 libmoonshot_LIBS
691 libmoonshot_CFLAGS
692 moonshot_LIBS
693 moonshot_CFLAGS
694 MOONSHOT_WEBP
695 MOONSHOT_APP
696 UPDATE_DESKTOP_DATABASE
697 UPDATE_MIME_DATABASE
698 WIX_LIGHT
699 WIX_CANDLE
700 IMAGEMAGICK_CONVERT
701 MSVC_LIB
702 MIDL
703 MIDL_WRAPPER
704 MSRPC_LIBS
705 MSRPC_CFLAGS
706 IPC_GDBUS_FALSE
707 IPC_GDBUS_TRUE
708 IPC_DBUS_GLIB_FALSE
709 IPC_DBUS_GLIB_TRUE
710 IPC_DBUS_FALSE
711 IPC_DBUS_TRUE
712 IPC_MSRPC_FALSE
713 IPC_MSRPC_TRUE
714 OS_MACOS_FALSE
715 OS_MACOS_TRUE
716 OS_WIN32_FALSE
717 OS_WIN32_TRUE
718 OS_LINUX_FALSE
719 OS_LINUX_TRUE
720 GDBUS_LIBS
721 GDBUS_CFLAGS
722 MAC_LIBS
723 MAC_CFLAGS
724 GTK_LIBS
725 GTK_CFLAGS
726 VALAC
727 PKG_CONFIG_LIBDIR
728 PKG_CONFIG_PATH
729 PKG_CONFIG
730 CPP
731 OTOOL64
732 OTOOL
733 LIPO
734 NMEDIT
735 DSYMUTIL
736 MANIFEST_TOOL
737 RANLIB
738 ac_ct_AR
739 AR
740 LN_S
741 NM
742 ac_ct_DUMPBIN
743 DUMPBIN
744 LD
745 FGREP
746 EGREP
747 GREP
748 SED
749 am__fastdepCC_FALSE
750 am__fastdepCC_TRUE
751 CCDEPMODE
752 AMDEPBACKSLASH
753 AMDEP_FALSE
754 AMDEP_TRUE
755 am__quote
756 am__include
757 DEPDIR
758 OBJEXT
759 EXEEXT
760 ac_ct_CC
761 CPPFLAGS
762 LDFLAGS
763 CFLAGS
764 CC
765 host_os
766 host_vendor
767 host_cpu
768 host
769 build_os
770 build_vendor
771 build_cpu
772 build
773 LIBTOOL
774 OBJDUMP
775 DLLTOOL
776 AS
777 MAINT
778 MAINTAINER_MODE_FALSE
779 MAINTAINER_MODE_TRUE
780 AM_BACKSLASH
781 AM_DEFAULT_VERBOSITY
782 am__untar
783 am__tar
784 AMTAR
785 am__leading_dot
786 SET_MAKE
787 AWK
788 mkdir_p
789 MKDIR_P
790 INSTALL_STRIP_PROGRAM
791 STRIP
792 install_sh
793 MAKEINFO
794 AUTOHEADER
795 AUTOMAKE
796 AUTOCONF
797 ACLOCAL
798 VERSION
799 PACKAGE
800 CYGPATH_W
801 am__isrc
802 INSTALL_DATA
803 INSTALL_SCRIPT
804 INSTALL_PROGRAM
805 target_alias
806 host_alias
807 build_alias
808 LIBS
809 ECHO_T
810 ECHO_N
811 ECHO_C
812 DEFS
813 mandir
814 localedir
815 libdir
816 psdir
817 pdfdir
818 dvidir
819 htmldir
820 infodir
821 docdir
822 oldincludedir
823 includedir
824 localstatedir
825 sharedstatedir
826 sysconfdir
827 datadir
828 datarootdir
829 libexecdir
830 sbindir
831 bindir
832 program_transform_name
833 prefix
834 exec_prefix
835 PACKAGE_URL
836 PACKAGE_BUGREPORT
837 PACKAGE_STRING
838 PACKAGE_VERSION
839 PACKAGE_TARNAME
840 PACKAGE_NAME
841 PATH_SEPARATOR
842 SHELL'
843 ac_subst_files=''
844 ac_user_opts='
845 enable_option_checking
846 enable_silent_rules
847 enable_maintainer_mode
848 enable_shared
849 enable_static
850 with_pic
851 enable_fast_install
852 enable_dependency_tracking
853 with_gnu_ld
854 with_sysroot
855 enable_libtool_lock
856 enable_nls
857 enable_rpath
858 with_libiconv_prefix
859 with_libintl_prefix
860 '
861       ac_precious_vars='build_alias
862 host_alias
863 target_alias
864 CC
865 CFLAGS
866 LDFLAGS
867 LIBS
868 CPPFLAGS
869 CPP
870 PKG_CONFIG
871 PKG_CONFIG_PATH
872 PKG_CONFIG_LIBDIR
873 GTK_CFLAGS
874 GTK_LIBS
875 MAC_CFLAGS
876 MAC_LIBS
877 GDBUS_CFLAGS
878 GDBUS_LIBS
879 moonshot_CFLAGS
880 moonshot_LIBS
881 libmoonshot_CFLAGS
882 libmoonshot_LIBS'
883
884
885 # Initialize some variables set by options.
886 ac_init_help=
887 ac_init_version=false
888 ac_unrecognized_opts=
889 ac_unrecognized_sep=
890 # The variables have the same names as the options, with
891 # dashes changed to underlines.
892 cache_file=/dev/null
893 exec_prefix=NONE
894 no_create=
895 no_recursion=
896 prefix=NONE
897 program_prefix=NONE
898 program_suffix=NONE
899 program_transform_name=s,x,x,
900 silent=
901 site=
902 srcdir=
903 verbose=
904 x_includes=NONE
905 x_libraries=NONE
906
907 # Installation directory options.
908 # These are left unexpanded so users can "make install exec_prefix=/foo"
909 # and all the variables that are supposed to be based on exec_prefix
910 # by default will actually change.
911 # Use braces instead of parens because sh, perl, etc. also accept them.
912 # (The list follows the same order as the GNU Coding Standards.)
913 bindir='${exec_prefix}/bin'
914 sbindir='${exec_prefix}/sbin'
915 libexecdir='${exec_prefix}/libexec'
916 datarootdir='${prefix}/share'
917 datadir='${datarootdir}'
918 sysconfdir='${prefix}/etc'
919 sharedstatedir='${prefix}/com'
920 localstatedir='${prefix}/var'
921 includedir='${prefix}/include'
922 oldincludedir='/usr/include'
923 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
924 infodir='${datarootdir}/info'
925 htmldir='${docdir}'
926 dvidir='${docdir}'
927 pdfdir='${docdir}'
928 psdir='${docdir}'
929 libdir='${exec_prefix}/lib'
930 localedir='${datarootdir}/locale'
931 mandir='${datarootdir}/man'
932
933 ac_prev=
934 ac_dashdash=
935 for ac_option
936 do
937   # If the previous option needs an argument, assign it.
938   if test -n "$ac_prev"; then
939     eval $ac_prev=\$ac_option
940     ac_prev=
941     continue
942   fi
943
944   case $ac_option in
945   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946   *=)   ac_optarg= ;;
947   *)    ac_optarg=yes ;;
948   esac
949
950   # Accept the important Cygnus configure options, so we can diagnose typos.
951
952   case $ac_dashdash$ac_option in
953   --)
954     ac_dashdash=yes ;;
955
956   -bindir | --bindir | --bindi | --bind | --bin | --bi)
957     ac_prev=bindir ;;
958   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959     bindir=$ac_optarg ;;
960
961   -build | --build | --buil | --bui | --bu)
962     ac_prev=build_alias ;;
963   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964     build_alias=$ac_optarg ;;
965
966   -cache-file | --cache-file | --cache-fil | --cache-fi \
967   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968     ac_prev=cache_file ;;
969   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971     cache_file=$ac_optarg ;;
972
973   --config-cache | -C)
974     cache_file=config.cache ;;
975
976   -datadir | --datadir | --datadi | --datad)
977     ac_prev=datadir ;;
978   -datadir=* | --datadir=* | --datadi=* | --datad=*)
979     datadir=$ac_optarg ;;
980
981   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982   | --dataroo | --dataro | --datar)
983     ac_prev=datarootdir ;;
984   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986     datarootdir=$ac_optarg ;;
987
988   -disable-* | --disable-*)
989     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990     # Reject names that are not valid shell variable names.
991     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992       as_fn_error $? "invalid feature name: $ac_useropt"
993     ac_useropt_orig=$ac_useropt
994     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995     case $ac_user_opts in
996       *"
997 "enable_$ac_useropt"
998 "*) ;;
999       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000          ac_unrecognized_sep=', ';;
1001     esac
1002     eval enable_$ac_useropt=no ;;
1003
1004   -docdir | --docdir | --docdi | --doc | --do)
1005     ac_prev=docdir ;;
1006   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007     docdir=$ac_optarg ;;
1008
1009   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010     ac_prev=dvidir ;;
1011   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012     dvidir=$ac_optarg ;;
1013
1014   -enable-* | --enable-*)
1015     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016     # Reject names that are not valid shell variable names.
1017     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018       as_fn_error $? "invalid feature name: $ac_useropt"
1019     ac_useropt_orig=$ac_useropt
1020     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021     case $ac_user_opts in
1022       *"
1023 "enable_$ac_useropt"
1024 "*) ;;
1025       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026          ac_unrecognized_sep=', ';;
1027     esac
1028     eval enable_$ac_useropt=\$ac_optarg ;;
1029
1030   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032   | --exec | --exe | --ex)
1033     ac_prev=exec_prefix ;;
1034   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036   | --exec=* | --exe=* | --ex=*)
1037     exec_prefix=$ac_optarg ;;
1038
1039   -gas | --gas | --ga | --g)
1040     # Obsolete; use --with-gas.
1041     with_gas=yes ;;
1042
1043   -help | --help | --hel | --he | -h)
1044     ac_init_help=long ;;
1045   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046     ac_init_help=recursive ;;
1047   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048     ac_init_help=short ;;
1049
1050   -host | --host | --hos | --ho)
1051     ac_prev=host_alias ;;
1052   -host=* | --host=* | --hos=* | --ho=*)
1053     host_alias=$ac_optarg ;;
1054
1055   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056     ac_prev=htmldir ;;
1057   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058   | --ht=*)
1059     htmldir=$ac_optarg ;;
1060
1061   -includedir | --includedir | --includedi | --included | --include \
1062   | --includ | --inclu | --incl | --inc)
1063     ac_prev=includedir ;;
1064   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065   | --includ=* | --inclu=* | --incl=* | --inc=*)
1066     includedir=$ac_optarg ;;
1067
1068   -infodir | --infodir | --infodi | --infod | --info | --inf)
1069     ac_prev=infodir ;;
1070   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071     infodir=$ac_optarg ;;
1072
1073   -libdir | --libdir | --libdi | --libd)
1074     ac_prev=libdir ;;
1075   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076     libdir=$ac_optarg ;;
1077
1078   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079   | --libexe | --libex | --libe)
1080     ac_prev=libexecdir ;;
1081   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082   | --libexe=* | --libex=* | --libe=*)
1083     libexecdir=$ac_optarg ;;
1084
1085   -localedir | --localedir | --localedi | --localed | --locale)
1086     ac_prev=localedir ;;
1087   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088     localedir=$ac_optarg ;;
1089
1090   -localstatedir | --localstatedir | --localstatedi | --localstated \
1091   | --localstate | --localstat | --localsta | --localst | --locals)
1092     ac_prev=localstatedir ;;
1093   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095     localstatedir=$ac_optarg ;;
1096
1097   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098     ac_prev=mandir ;;
1099   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100     mandir=$ac_optarg ;;
1101
1102   -nfp | --nfp | --nf)
1103     # Obsolete; use --without-fp.
1104     with_fp=no ;;
1105
1106   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107   | --no-cr | --no-c | -n)
1108     no_create=yes ;;
1109
1110   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112     no_recursion=yes ;;
1113
1114   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116   | --oldin | --oldi | --old | --ol | --o)
1117     ac_prev=oldincludedir ;;
1118   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121     oldincludedir=$ac_optarg ;;
1122
1123   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124     ac_prev=prefix ;;
1125   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126     prefix=$ac_optarg ;;
1127
1128   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129   | --program-pre | --program-pr | --program-p)
1130     ac_prev=program_prefix ;;
1131   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133     program_prefix=$ac_optarg ;;
1134
1135   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136   | --program-suf | --program-su | --program-s)
1137     ac_prev=program_suffix ;;
1138   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140     program_suffix=$ac_optarg ;;
1141
1142   -program-transform-name | --program-transform-name \
1143   | --program-transform-nam | --program-transform-na \
1144   | --program-transform-n | --program-transform- \
1145   | --program-transform | --program-transfor \
1146   | --program-transfo | --program-transf \
1147   | --program-trans | --program-tran \
1148   | --progr-tra | --program-tr | --program-t)
1149     ac_prev=program_transform_name ;;
1150   -program-transform-name=* | --program-transform-name=* \
1151   | --program-transform-nam=* | --program-transform-na=* \
1152   | --program-transform-n=* | --program-transform-=* \
1153   | --program-transform=* | --program-transfor=* \
1154   | --program-transfo=* | --program-transf=* \
1155   | --program-trans=* | --program-tran=* \
1156   | --progr-tra=* | --program-tr=* | --program-t=*)
1157     program_transform_name=$ac_optarg ;;
1158
1159   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160     ac_prev=pdfdir ;;
1161   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162     pdfdir=$ac_optarg ;;
1163
1164   -psdir | --psdir | --psdi | --psd | --ps)
1165     ac_prev=psdir ;;
1166   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167     psdir=$ac_optarg ;;
1168
1169   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170   | -silent | --silent | --silen | --sile | --sil)
1171     silent=yes ;;
1172
1173   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174     ac_prev=sbindir ;;
1175   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176   | --sbi=* | --sb=*)
1177     sbindir=$ac_optarg ;;
1178
1179   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181   | --sharedst | --shareds | --shared | --share | --shar \
1182   | --sha | --sh)
1183     ac_prev=sharedstatedir ;;
1184   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187   | --sha=* | --sh=*)
1188     sharedstatedir=$ac_optarg ;;
1189
1190   -site | --site | --sit)
1191     ac_prev=site ;;
1192   -site=* | --site=* | --sit=*)
1193     site=$ac_optarg ;;
1194
1195   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196     ac_prev=srcdir ;;
1197   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198     srcdir=$ac_optarg ;;
1199
1200   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201   | --syscon | --sysco | --sysc | --sys | --sy)
1202     ac_prev=sysconfdir ;;
1203   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205     sysconfdir=$ac_optarg ;;
1206
1207   -target | --target | --targe | --targ | --tar | --ta | --t)
1208     ac_prev=target_alias ;;
1209   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210     target_alias=$ac_optarg ;;
1211
1212   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213     verbose=yes ;;
1214
1215   -version | --version | --versio | --versi | --vers | -V)
1216     ac_init_version=: ;;
1217
1218   -with-* | --with-*)
1219     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222       as_fn_error $? "invalid package name: $ac_useropt"
1223     ac_useropt_orig=$ac_useropt
1224     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225     case $ac_user_opts in
1226       *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230          ac_unrecognized_sep=', ';;
1231     esac
1232     eval with_$ac_useropt=\$ac_optarg ;;
1233
1234   -without-* | --without-*)
1235     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236     # Reject names that are not valid shell variable names.
1237     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238       as_fn_error $? "invalid package name: $ac_useropt"
1239     ac_useropt_orig=$ac_useropt
1240     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241     case $ac_user_opts in
1242       *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246          ac_unrecognized_sep=', ';;
1247     esac
1248     eval with_$ac_useropt=no ;;
1249
1250   --x)
1251     # Obsolete; use --with-x.
1252     with_x=yes ;;
1253
1254   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255   | --x-incl | --x-inc | --x-in | --x-i)
1256     ac_prev=x_includes ;;
1257   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259     x_includes=$ac_optarg ;;
1260
1261   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263     ac_prev=x_libraries ;;
1264   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266     x_libraries=$ac_optarg ;;
1267
1268   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1269 Try \`$0 --help' for more information"
1270     ;;
1271
1272   *=*)
1273     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274     # Reject names that are not valid shell variable names.
1275     case $ac_envvar in #(
1276       '' | [0-9]* | *[!_$as_cr_alnum]* )
1277       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1278     esac
1279     eval $ac_envvar=\$ac_optarg
1280     export $ac_envvar ;;
1281
1282   *)
1283     # FIXME: should be removed in autoconf 3.0.
1284     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288     ;;
1289
1290   esac
1291 done
1292
1293 if test -n "$ac_prev"; then
1294   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295   as_fn_error $? "missing argument to $ac_option"
1296 fi
1297
1298 if test -n "$ac_unrecognized_opts"; then
1299   case $enable_option_checking in
1300     no) ;;
1301     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1302     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303   esac
1304 fi
1305
1306 # Check all directory arguments for consistency.
1307 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308                 datadir sysconfdir sharedstatedir localstatedir includedir \
1309                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310                 libdir localedir mandir
1311 do
1312   eval ac_val=\$$ac_var
1313   # Remove trailing slashes.
1314   case $ac_val in
1315     */ )
1316       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317       eval $ac_var=\$ac_val;;
1318   esac
1319   # Be sure to have absolute directory names.
1320   case $ac_val in
1321     [\\/$]* | ?:[\\/]* )  continue;;
1322     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323   esac
1324   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1325 done
1326
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1330 build=$build_alias
1331 host=$host_alias
1332 target=$target_alias
1333
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336   if test "x$build_alias" = x; then
1337     cross_compiling=maybe
1338     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1339     If a cross compiler is detected then cross compile mode will be used" >&2
1340   elif test "x$build_alias" != "x$host_alias"; then
1341     cross_compiling=yes
1342   fi
1343 fi
1344
1345 ac_tool_prefix=
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348 test "$silent" = yes && exec 6>/dev/null
1349
1350
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354   as_fn_error $? "working directory cannot be determined"
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356   as_fn_error $? "pwd does not report name of working directory"
1357
1358
1359 # Find the source files, if location was not specified.
1360 if test -z "$srcdir"; then
1361   ac_srcdir_defaulted=yes
1362   # Try the directory containing this script, then the parent directory.
1363   ac_confdir=`$as_dirname -- "$as_myself" ||
1364 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365          X"$as_myself" : 'X\(//\)[^/]' \| \
1366          X"$as_myself" : 'X\(//\)$' \| \
1367          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368 $as_echo X"$as_myself" |
1369     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370             s//\1/
1371             q
1372           }
1373           /^X\(\/\/\)[^/].*/{
1374             s//\1/
1375             q
1376           }
1377           /^X\(\/\/\)$/{
1378             s//\1/
1379             q
1380           }
1381           /^X\(\/\).*/{
1382             s//\1/
1383             q
1384           }
1385           s/.*/./; q'`
1386   srcdir=$ac_confdir
1387   if test ! -r "$srcdir/$ac_unique_file"; then
1388     srcdir=..
1389   fi
1390 else
1391   ac_srcdir_defaulted=no
1392 fi
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1395   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1396 fi
1397 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398 ac_abs_confdir=`(
1399         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1400         pwd)`
1401 # When building in place, set srcdir=.
1402 if test "$ac_abs_confdir" = "$ac_pwd"; then
1403   srcdir=.
1404 fi
1405 # Remove unnecessary trailing slashes from srcdir.
1406 # Double slashes in file names in object file debugging info
1407 # mess up M-x gdb in Emacs.
1408 case $srcdir in
1409 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410 esac
1411 for ac_var in $ac_precious_vars; do
1412   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413   eval ac_env_${ac_var}_value=\$${ac_var}
1414   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416 done
1417
1418 #
1419 # Report the --help message.
1420 #
1421 if test "$ac_init_help" = "long"; then
1422   # Omit some internal or obsolete options to make the list less imposing.
1423   # This message is too long to be a string in the A/UX 3.1 sh.
1424   cat <<_ACEOF
1425 \`configure' configures Moonshot-ui 0.1 to adapt to many kinds of systems.
1426
1427 Usage: $0 [OPTION]... [VAR=VALUE]...
1428
1429 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430 VAR=VALUE.  See below for descriptions of some of the useful variables.
1431
1432 Defaults for the options are specified in brackets.
1433
1434 Configuration:
1435   -h, --help              display this help and exit
1436       --help=short        display options specific to this package
1437       --help=recursive    display the short help of all the included packages
1438   -V, --version           display version information and exit
1439   -q, --quiet, --silent   do not print \`checking ...' messages
1440       --cache-file=FILE   cache test results in FILE [disabled]
1441   -C, --config-cache      alias for \`--cache-file=config.cache'
1442   -n, --no-create         do not create output files
1443       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1444
1445 Installation directories:
1446   --prefix=PREFIX         install architecture-independent files in PREFIX
1447                           [$ac_default_prefix]
1448   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1449                           [PREFIX]
1450
1451 By default, \`make install' will install all the files in
1452 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1453 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454 for instance \`--prefix=\$HOME'.
1455
1456 For better control, use the options below.
1457
1458 Fine tuning of the installation directories:
1459   --bindir=DIR            user executables [EPREFIX/bin]
1460   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1461   --libexecdir=DIR        program executables [EPREFIX/libexec]
1462   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1463   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1464   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1465   --libdir=DIR            object code libraries [EPREFIX/lib]
1466   --includedir=DIR        C header files [PREFIX/include]
1467   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1468   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1469   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1470   --infodir=DIR           info documentation [DATAROOTDIR/info]
1471   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1472   --mandir=DIR            man documentation [DATAROOTDIR/man]
1473   --docdir=DIR            documentation root [DATAROOTDIR/doc/moonshot-ui]
1474   --htmldir=DIR           html documentation [DOCDIR]
1475   --dvidir=DIR            dvi documentation [DOCDIR]
1476   --pdfdir=DIR            pdf documentation [DOCDIR]
1477   --psdir=DIR             ps documentation [DOCDIR]
1478 _ACEOF
1479
1480   cat <<\_ACEOF
1481
1482 Program names:
1483   --program-prefix=PREFIX            prepend PREFIX to installed program names
1484   --program-suffix=SUFFIX            append SUFFIX to installed program names
1485   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1486
1487 System types:
1488   --build=BUILD     configure for building on BUILD [guessed]
1489   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1490 _ACEOF
1491 fi
1492
1493 if test -n "$ac_init_help"; then
1494   case $ac_init_help in
1495      short | recursive ) echo "Configuration of Moonshot-ui 0.1:";;
1496    esac
1497   cat <<\_ACEOF
1498
1499 Optional Features:
1500   --disable-option-checking  ignore unrecognized --enable/--with options
1501   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1502   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1503   --enable-silent-rules          less verbose build output (undo: `make V=1')
1504   --disable-silent-rules         verbose build output (undo: `make V=0')
1505   --disable-maintainer-mode  disable make rules and dependencies not useful
1506                           (and sometimes confusing) to the casual installer
1507   --enable-shared[=PKGS]  build shared libraries [default=yes]
1508   --enable-static[=PKGS]  build static libraries [default=yes]
1509   --enable-fast-install[=PKGS]
1510                           optimize for fast installation [default=yes]
1511   --disable-dependency-tracking  speeds up one-time build
1512   --enable-dependency-tracking   do not reject slow dependency extractors
1513   --disable-libtool-lock  avoid locking (might break parallel builds)
1514   --disable-nls           do not use Native Language Support
1515   --disable-rpath         do not hardcode runtime library paths
1516
1517 Optional Packages:
1518   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1519   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1520   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1521                           both]
1522   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1523   --with-sysroot=DIR Search for dependent libraries within DIR
1524                         (or the compiler's sysroot if not specified).
1525   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1526   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1527   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1528   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1529   --without-libintl-prefix     don't search for libintl in includedir and libdir
1530
1531 Some influential environment variables:
1532   CC          C compiler command
1533   CFLAGS      C compiler flags
1534   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1535               nonstandard directory <lib dir>
1536   LIBS        libraries to pass to the linker, e.g. -l<library>
1537   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538               you have headers in a nonstandard directory <include dir>
1539   CPP         C preprocessor
1540   PKG_CONFIG  path to pkg-config utility
1541   PKG_CONFIG_PATH
1542               directories to add to pkg-config's search path
1543   PKG_CONFIG_LIBDIR
1544               path overriding pkg-config's built-in search path
1545   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1546   GTK_LIBS    linker flags for GTK, overriding pkg-config
1547   MAC_CFLAGS  C compiler flags for MAC, overriding pkg-config
1548   MAC_LIBS    linker flags for MAC, overriding pkg-config
1549   GDBUS_CFLAGS
1550               C compiler flags for GDBUS, overriding pkg-config
1551   GDBUS_LIBS  linker flags for GDBUS, overriding pkg-config
1552   moonshot_CFLAGS
1553               C compiler flags for moonshot, overriding pkg-config
1554   moonshot_LIBS
1555               linker flags for moonshot, overriding pkg-config
1556   libmoonshot_CFLAGS
1557               C compiler flags for libmoonshot, overriding pkg-config
1558   libmoonshot_LIBS
1559               linker flags for libmoonshot, overriding pkg-config
1560
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1563
1564 Report bugs to <moonshot-community@jiscmail.ac.uk>.
1565 Moonshot-ui home page: <http://www.project-moonshot.org/>.
1566 _ACEOF
1567 ac_status=$?
1568 fi
1569
1570 if test "$ac_init_help" = "recursive"; then
1571   # If there are subdirs, report their specific --help.
1572   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573     test -d "$ac_dir" ||
1574       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1575       continue
1576     ac_builddir=.
1577
1578 case "$ac_dir" in
1579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *)
1581   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1582   # A ".." for each directory in $ac_dir_suffix.
1583   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1584   case $ac_top_builddir_sub in
1585   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587   esac ;;
1588 esac
1589 ac_abs_top_builddir=$ac_pwd
1590 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1591 # for backward compatibility:
1592 ac_top_builddir=$ac_top_build_prefix
1593
1594 case $srcdir in
1595   .)  # We are building in place.
1596     ac_srcdir=.
1597     ac_top_srcdir=$ac_top_builddir_sub
1598     ac_abs_top_srcdir=$ac_pwd ;;
1599   [\\/]* | ?:[\\/]* )  # Absolute name.
1600     ac_srcdir=$srcdir$ac_dir_suffix;
1601     ac_top_srcdir=$srcdir
1602     ac_abs_top_srcdir=$srcdir ;;
1603   *) # Relative name.
1604     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1605     ac_top_srcdir=$ac_top_build_prefix$srcdir
1606     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1607 esac
1608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609
1610     cd "$ac_dir" || { ac_status=$?; continue; }
1611     # Check for guested configure.
1612     if test -f "$ac_srcdir/configure.gnu"; then
1613       echo &&
1614       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1615     elif test -f "$ac_srcdir/configure"; then
1616       echo &&
1617       $SHELL "$ac_srcdir/configure" --help=recursive
1618     else
1619       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620     fi || ac_status=$?
1621     cd "$ac_pwd" || { ac_status=$?; break; }
1622   done
1623 fi
1624
1625 test -n "$ac_init_help" && exit $ac_status
1626 if $ac_init_version; then
1627   cat <<\_ACEOF
1628 Moonshot-ui configure 0.1
1629 generated by GNU Autoconf 2.67
1630
1631 Copyright (C) 2010 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1634 _ACEOF
1635   exit
1636 fi
1637
1638 ## ------------------------ ##
1639 ## Autoconf initialization. ##
1640 ## ------------------------ ##
1641
1642 # ac_fn_c_try_compile LINENO
1643 # --------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_compile ()
1646 {
1647   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648   rm -f conftest.$ac_objext
1649   if { { ac_try="$ac_compile"
1650 case "(($ac_try" in
1651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652   *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656   (eval "$ac_compile") 2>conftest.err
1657   ac_status=$?
1658   if test -s conftest.err; then
1659     grep -v '^ *+' conftest.err >conftest.er1
1660     cat conftest.er1 >&5
1661     mv -f conftest.er1 conftest.err
1662   fi
1663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664   test $ac_status = 0; } && {
1665          test -z "$ac_c_werror_flag" ||
1666          test ! -s conftest.err
1667        } && test -s conftest.$ac_objext; then :
1668   ac_retval=0
1669 else
1670   $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673         ac_retval=1
1674 fi
1675   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676   as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_compile
1679
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_link ()
1684 {
1685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686   rm -f conftest.$ac_objext conftest$ac_exeext
1687   if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690   *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694   (eval "$ac_link") 2>conftest.err
1695   ac_status=$?
1696   if test -s conftest.err; then
1697     grep -v '^ *+' conftest.err >conftest.er1
1698     cat conftest.er1 >&5
1699     mv -f conftest.er1 conftest.err
1700   fi
1701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702   test $ac_status = 0; } && {
1703          test -z "$ac_c_werror_flag" ||
1704          test ! -s conftest.err
1705        } && test -s conftest$ac_exeext && {
1706          test "$cross_compiling" = yes ||
1707          $as_test_x conftest$ac_exeext
1708        }; then :
1709   ac_retval=0
1710 else
1711   $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714         ac_retval=1
1715 fi
1716   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718   # interfere with the next link command; also delete a directory that is
1719   # left behind by Apple's compiler.  We do this before executing the actions.
1720   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722   as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_link
1725
1726 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1727 # -------------------------------------------------------
1728 # Tests whether HEADER exists and can be compiled using the include files in
1729 # INCLUDES, setting the cache variable VAR accordingly.
1730 ac_fn_c_check_header_compile ()
1731 {
1732   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval "test \"\${$3+set}\"" = set; then :
1736   $as_echo_n "(cached) " >&6
1737 else
1738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h.  */
1740 $4
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_compile "$LINENO"; then :
1744   eval "$3=yes"
1745 else
1746   eval "$3=no"
1747 fi
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749 fi
1750 eval ac_res=\$$3
1751                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754
1755 } # ac_fn_c_check_header_compile
1756
1757 # ac_fn_c_try_cpp LINENO
1758 # ----------------------
1759 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_cpp ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   if { { ac_try="$ac_cpp conftest.$ac_ext"
1764 case "(($ac_try" in
1765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766   *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1771   ac_status=$?
1772   if test -s conftest.err; then
1773     grep -v '^ *+' conftest.err >conftest.er1
1774     cat conftest.er1 >&5
1775     mv -f conftest.er1 conftest.err
1776   fi
1777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778   test $ac_status = 0; } > conftest.i && {
1779          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1780          test ! -s conftest.err
1781        }; then :
1782   ac_retval=0
1783 else
1784   $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1786
1787     ac_retval=1
1788 fi
1789   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1790   as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_cpp
1793
1794 # ac_fn_c_try_run LINENO
1795 # ----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1797 # that executables *can* be run.
1798 ac_fn_c_try_run ()
1799 {
1800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801   if { { ac_try="$ac_link"
1802 case "(($ac_try" in
1803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804   *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808   (eval "$ac_link") 2>&5
1809   ac_status=$?
1810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1812   { { case "(($ac_try" in
1813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814   *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818   (eval "$ac_try") 2>&5
1819   ac_status=$?
1820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821   test $ac_status = 0; }; }; then :
1822   ac_retval=0
1823 else
1824   $as_echo "$as_me: program exited with status $ac_status" >&5
1825        $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828        ac_retval=$ac_status
1829 fi
1830   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832   as_fn_set_status $ac_retval
1833
1834 } # ac_fn_c_try_run
1835
1836 # ac_fn_c_check_func LINENO FUNC VAR
1837 # ----------------------------------
1838 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1839 ac_fn_c_check_func ()
1840 {
1841   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval "test \"\${$3+set}\"" = set; then :
1845   $as_echo_n "(cached) " >&6
1846 else
1847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h.  */
1849 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1851 #define $2 innocuous_$2
1852
1853 /* System header to define __stub macros and hopefully few prototypes,
1854     which can conflict with char $2 (); below.
1855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1856     <limits.h> exists even on freestanding compilers.  */
1857
1858 #ifdef __STDC__
1859 # include <limits.h>
1860 #else
1861 # include <assert.h>
1862 #endif
1863
1864 #undef $2
1865
1866 /* Override any GCC internal prototype to avoid an error.
1867    Use char because int might match the return type of a GCC
1868    builtin and then its argument prototype would still apply.  */
1869 #ifdef __cplusplus
1870 extern "C"
1871 #endif
1872 char $2 ();
1873 /* The GNU C library defines this for functions which it implements
1874     to always fail with ENOSYS.  Some functions are actually named
1875     something starting with __ and the normal name is an alias.  */
1876 #if defined __stub_$2 || defined __stub___$2
1877 choke me
1878 #endif
1879
1880 int
1881 main ()
1882 {
1883 return $2 ();
1884   ;
1885   return 0;
1886 }
1887 _ACEOF
1888 if ac_fn_c_try_link "$LINENO"; then :
1889   eval "$3=yes"
1890 else
1891   eval "$3=no"
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext \
1894     conftest$ac_exeext conftest.$ac_ext
1895 fi
1896 eval ac_res=\$$3
1897                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1900
1901 } # ac_fn_c_check_func
1902 cat >config.log <<_ACEOF
1903 This file contains any messages produced by compilers while
1904 running configure, to aid debugging if configure makes a mistake.
1905
1906 It was created by Moonshot-ui $as_me 0.1, which was
1907 generated by GNU Autoconf 2.67.  Invocation command line was
1908
1909   $ $0 $@
1910
1911 _ACEOF
1912 exec 5>>config.log
1913 {
1914 cat <<_ASUNAME
1915 ## --------- ##
1916 ## Platform. ##
1917 ## --------- ##
1918
1919 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1920 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1921 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1922 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1923 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1924
1925 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1926 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1927
1928 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1929 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1930 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1931 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1932 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1933 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1934 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1935
1936 _ASUNAME
1937
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1940 do
1941   IFS=$as_save_IFS
1942   test -z "$as_dir" && as_dir=.
1943     $as_echo "PATH: $as_dir"
1944   done
1945 IFS=$as_save_IFS
1946
1947 } >&5
1948
1949 cat >&5 <<_ACEOF
1950
1951
1952 ## ----------- ##
1953 ## Core tests. ##
1954 ## ----------- ##
1955
1956 _ACEOF
1957
1958
1959 # Keep a trace of the command line.
1960 # Strip out --no-create and --no-recursion so they do not pile up.
1961 # Strip out --silent because we don't want to record it for future runs.
1962 # Also quote any args containing shell meta-characters.
1963 # Make two passes to allow for proper duplicate-argument suppression.
1964 ac_configure_args=
1965 ac_configure_args0=
1966 ac_configure_args1=
1967 ac_must_keep_next=false
1968 for ac_pass in 1 2
1969 do
1970   for ac_arg
1971   do
1972     case $ac_arg in
1973     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1974     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1975     | -silent | --silent | --silen | --sile | --sil)
1976       continue ;;
1977     *\'*)
1978       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1979     esac
1980     case $ac_pass in
1981     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1982     2)
1983       as_fn_append ac_configure_args1 " '$ac_arg'"
1984       if test $ac_must_keep_next = true; then
1985         ac_must_keep_next=false # Got value, back to normal.
1986       else
1987         case $ac_arg in
1988           *=* | --config-cache | -C | -disable-* | --disable-* \
1989           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1990           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1991           | -with-* | --with-* | -without-* | --without-* | --x)
1992             case "$ac_configure_args0 " in
1993               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1994             esac
1995             ;;
1996           -* ) ac_must_keep_next=true ;;
1997         esac
1998       fi
1999       as_fn_append ac_configure_args " '$ac_arg'"
2000       ;;
2001     esac
2002   done
2003 done
2004 { ac_configure_args0=; unset ac_configure_args0;}
2005 { ac_configure_args1=; unset ac_configure_args1;}
2006
2007 # When interrupted or exit'd, cleanup temporary files, and complete
2008 # config.log.  We remove comments because anyway the quotes in there
2009 # would cause problems or look ugly.
2010 # WARNING: Use '\'' to represent an apostrophe within the trap.
2011 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2012 trap 'exit_status=$?
2013   # Save into config.log some information that might help in debugging.
2014   {
2015     echo
2016
2017     $as_echo "## ---------------- ##
2018 ## Cache variables. ##
2019 ## ---------------- ##"
2020     echo
2021     # The following way of writing the cache mishandles newlines in values,
2022 (
2023   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2024     eval ac_val=\$$ac_var
2025     case $ac_val in #(
2026     *${as_nl}*)
2027       case $ac_var in #(
2028       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2029 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2030       esac
2031       case $ac_var in #(
2032       _ | IFS | as_nl) ;; #(
2033       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2034       *) { eval $ac_var=; unset $ac_var;} ;;
2035       esac ;;
2036     esac
2037   done
2038   (set) 2>&1 |
2039     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2040     *${as_nl}ac_space=\ *)
2041       sed -n \
2042         "s/'\''/'\''\\\\'\'''\''/g;
2043           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2044       ;; #(
2045     *)
2046       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2047       ;;
2048     esac |
2049     sort
2050 )
2051     echo
2052
2053     $as_echo "## ----------------- ##
2054 ## Output variables. ##
2055 ## ----------------- ##"
2056     echo
2057     for ac_var in $ac_subst_vars
2058     do
2059       eval ac_val=\$$ac_var
2060       case $ac_val in
2061       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062       esac
2063       $as_echo "$ac_var='\''$ac_val'\''"
2064     done | sort
2065     echo
2066
2067     if test -n "$ac_subst_files"; then
2068       $as_echo "## ------------------- ##
2069 ## File substitutions. ##
2070 ## ------------------- ##"
2071       echo
2072       for ac_var in $ac_subst_files
2073       do
2074         eval ac_val=\$$ac_var
2075         case $ac_val in
2076         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2077         esac
2078         $as_echo "$ac_var='\''$ac_val'\''"
2079       done | sort
2080       echo
2081     fi
2082
2083     if test -s confdefs.h; then
2084       $as_echo "## ----------- ##
2085 ## confdefs.h. ##
2086 ## ----------- ##"
2087       echo
2088       cat confdefs.h
2089       echo
2090     fi
2091     test "$ac_signal" != 0 &&
2092       $as_echo "$as_me: caught signal $ac_signal"
2093     $as_echo "$as_me: exit $exit_status"
2094   } >&5
2095   rm -f core *.core core.conftest.* &&
2096     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2097     exit $exit_status
2098 ' 0
2099 for ac_signal in 1 2 13 15; do
2100   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2101 done
2102 ac_signal=0
2103
2104 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2105 rm -f -r conftest* confdefs.h
2106
2107 $as_echo "/* confdefs.h */" > confdefs.h
2108
2109 # Predefined preprocessor variables.
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_NAME "$PACKAGE_NAME"
2113 _ACEOF
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2117 _ACEOF
2118
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2121 _ACEOF
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_STRING "$PACKAGE_STRING"
2125 _ACEOF
2126
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2129 _ACEOF
2130
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_URL "$PACKAGE_URL"
2133 _ACEOF
2134
2135
2136 # Let the site file select an alternate cache file if it wants to.
2137 # Prefer an explicitly selected file to automatically selected ones.
2138 ac_site_file1=NONE
2139 ac_site_file2=NONE
2140 if test -n "$CONFIG_SITE"; then
2141   # We do not want a PATH search for config.site.
2142   case $CONFIG_SITE in #((
2143     -*)  ac_site_file1=./$CONFIG_SITE;;
2144     */*) ac_site_file1=$CONFIG_SITE;;
2145     *)   ac_site_file1=./$CONFIG_SITE;;
2146   esac
2147 elif test "x$prefix" != xNONE; then
2148   ac_site_file1=$prefix/share/config.site
2149   ac_site_file2=$prefix/etc/config.site
2150 else
2151   ac_site_file1=$ac_default_prefix/share/config.site
2152   ac_site_file2=$ac_default_prefix/etc/config.site
2153 fi
2154 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2155 do
2156   test "x$ac_site_file" = xNONE && continue
2157   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2158     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2159 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2160     sed 's/^/| /' "$ac_site_file" >&5
2161     . "$ac_site_file" \
2162       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2164 as_fn_error $? "failed to load site script $ac_site_file
2165 See \`config.log' for more details" "$LINENO" 5 ; }
2166   fi
2167 done
2168
2169 if test -r "$cache_file"; then
2170   # Some versions of bash will fail to source /dev/null (special files
2171   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2172   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2173     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2174 $as_echo "$as_me: loading cache $cache_file" >&6;}
2175     case $cache_file in
2176       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2177       *)                      . "./$cache_file";;
2178     esac
2179   fi
2180 else
2181   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2182 $as_echo "$as_me: creating cache $cache_file" >&6;}
2183   >$cache_file
2184 fi
2185
2186 gt_needs="$gt_needs "
2187 # Check that the precious variables saved in the cache have kept the same
2188 # value.
2189 ac_cache_corrupted=false
2190 for ac_var in $ac_precious_vars; do
2191   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2192   eval ac_new_set=\$ac_env_${ac_var}_set
2193   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2194   eval ac_new_val=\$ac_env_${ac_var}_value
2195   case $ac_old_set,$ac_new_set in
2196     set,)
2197       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2198 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2199       ac_cache_corrupted=: ;;
2200     ,set)
2201       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2202 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2203       ac_cache_corrupted=: ;;
2204     ,);;
2205     *)
2206       if test "x$ac_old_val" != "x$ac_new_val"; then
2207         # differences in whitespace do not lead to failure.
2208         ac_old_val_w=`echo x $ac_old_val`
2209         ac_new_val_w=`echo x $ac_new_val`
2210         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2211           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2212 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2213           ac_cache_corrupted=:
2214         else
2215           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2216 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2217           eval $ac_var=\$ac_old_val
2218         fi
2219         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2220 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2221         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2222 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2223       fi;;
2224   esac
2225   # Pass precious variables to config.status.
2226   if test "$ac_new_set" = set; then
2227     case $ac_new_val in
2228     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2229     *) ac_arg=$ac_var=$ac_new_val ;;
2230     esac
2231     case " $ac_configure_args " in
2232       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2233       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2234     esac
2235   fi
2236 done
2237 if $ac_cache_corrupted; then
2238   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2240   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2241 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2242   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2243 fi
2244 ## -------------------- ##
2245 ## Main body of script. ##
2246 ## -------------------- ##
2247
2248 ac_ext=c
2249 ac_cpp='$CPP $CPPFLAGS'
2250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2253
2254
2255
2256 # Remove this when we can depend on autoconf >= 2.64
2257 PACKAGE_URL=http://www.project-moonshot.org/
2258
2259
2260 $as_echo "#define PACKAGE_URL \"http://www.project-moonshot.org\"" >>confdefs.h
2261
2262 ac_config_headers="$ac_config_headers config.h"
2263
2264
2265
2266 ac_aux_dir=
2267 for ac_dir in build-aux "$srcdir"/build-aux; do
2268   if test -f "$ac_dir/install-sh"; then
2269     ac_aux_dir=$ac_dir
2270     ac_install_sh="$ac_aux_dir/install-sh -c"
2271     break
2272   elif test -f "$ac_dir/install.sh"; then
2273     ac_aux_dir=$ac_dir
2274     ac_install_sh="$ac_aux_dir/install.sh -c"
2275     break
2276   elif test -f "$ac_dir/shtool"; then
2277     ac_aux_dir=$ac_dir
2278     ac_install_sh="$ac_aux_dir/shtool install -c"
2279     break
2280   fi
2281 done
2282 if test -z "$ac_aux_dir"; then
2283   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2284 fi
2285
2286 # These three variables are undocumented and unsupported,
2287 # and are intended to be withdrawn in a future Autoconf release.
2288 # They can cause serious problems if a builder's source tree is in a directory
2289 # whose full name contains unusual characters.
2290 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2291 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2292 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2293
2294
2295
2296 am__api_version='1.11'
2297
2298 # Find a good install program.  We prefer a C program (faster),
2299 # so one script is as good as another.  But avoid the broken or
2300 # incompatible versions:
2301 # SysV /etc/install, /usr/sbin/install
2302 # SunOS /usr/etc/install
2303 # IRIX /sbin/install
2304 # AIX /bin/install
2305 # AmigaOS /C/install, which installs bootblocks on floppy discs
2306 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2307 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2308 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2309 # OS/2's system install, which has a completely different semantic
2310 # ./install, which can be erroneously created by make from ./install.sh.
2311 # Reject install programs that cannot install multiple files.
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2313 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2314 if test -z "$INSTALL"; then
2315 if test "${ac_cv_path_install+set}" = set; then :
2316   $as_echo_n "(cached) " >&6
2317 else
2318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2320 do
2321   IFS=$as_save_IFS
2322   test -z "$as_dir" && as_dir=.
2323     # Account for people who put trailing slashes in PATH elements.
2324 case $as_dir/ in #((
2325   ./ | .// | /[cC]/* | \
2326   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2327   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2328   /usr/ucb/* ) ;;
2329   *)
2330     # OSF1 and SCO ODT 3.0 have their own names for install.
2331     # Don't use installbsd from OSF since it installs stuff as root
2332     # by default.
2333     for ac_prog in ginstall scoinst install; do
2334       for ac_exec_ext in '' $ac_executable_extensions; do
2335         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2336           if test $ac_prog = install &&
2337             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2338             # AIX install.  It has an incompatible calling convention.
2339             :
2340           elif test $ac_prog = install &&
2341             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2342             # program-specific install script used by HP pwplus--don't use.
2343             :
2344           else
2345             rm -rf conftest.one conftest.two conftest.dir
2346             echo one > conftest.one
2347             echo two > conftest.two
2348             mkdir conftest.dir
2349             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2350               test -s conftest.one && test -s conftest.two &&
2351               test -s conftest.dir/conftest.one &&
2352               test -s conftest.dir/conftest.two
2353             then
2354               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2355               break 3
2356             fi
2357           fi
2358         fi
2359       done
2360     done
2361     ;;
2362 esac
2363
2364   done
2365 IFS=$as_save_IFS
2366
2367 rm -rf conftest.one conftest.two conftest.dir
2368
2369 fi
2370   if test "${ac_cv_path_install+set}" = set; then
2371     INSTALL=$ac_cv_path_install
2372   else
2373     # As a last resort, use the slow shell script.  Don't cache a
2374     # value for INSTALL within a source directory, because that will
2375     # break other packages using the cache if that directory is
2376     # removed, or if the value is a relative name.
2377     INSTALL=$ac_install_sh
2378   fi
2379 fi
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2381 $as_echo "$INSTALL" >&6; }
2382
2383 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2384 # It thinks the first close brace ends the variable substitution.
2385 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2386
2387 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2388
2389 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2390
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2392 $as_echo_n "checking whether build environment is sane... " >&6; }
2393 # Just in case
2394 sleep 1
2395 echo timestamp > conftest.file
2396 # Reject unsafe characters in $srcdir or the absolute working directory
2397 # name.  Accept space and tab only in the latter.
2398 am_lf='
2399 '
2400 case `pwd` in
2401   *[\\\"\#\$\&\'\`$am_lf]*)
2402     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2403 esac
2404 case $srcdir in
2405   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2406     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2407 esac
2408
2409 # Do `set' in a subshell so we don't clobber the current shell's
2410 # arguments.  Must try -L first in case configure is actually a
2411 # symlink; some systems play weird games with the mod time of symlinks
2412 # (eg FreeBSD returns the mod time of the symlink's containing
2413 # directory).
2414 if (
2415    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2416    if test "$*" = "X"; then
2417       # -L didn't work.
2418       set X `ls -t "$srcdir/configure" conftest.file`
2419    fi
2420    rm -f conftest.file
2421    if test "$*" != "X $srcdir/configure conftest.file" \
2422       && test "$*" != "X conftest.file $srcdir/configure"; then
2423
2424       # If neither matched, then we have a broken ls.  This can happen
2425       # if, for instance, CONFIG_SHELL is bash and it inherits a
2426       # broken ls alias from the environment.  This has actually
2427       # happened.  Such a system could not be considered "sane".
2428       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2429 alias in your environment" "$LINENO" 5
2430    fi
2431
2432    test "$2" = conftest.file
2433    )
2434 then
2435    # Ok.
2436    :
2437 else
2438    as_fn_error $? "newly created file is older than distributed files!
2439 Check your system clock" "$LINENO" 5
2440 fi
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2442 $as_echo "yes" >&6; }
2443 test "$program_prefix" != NONE &&
2444   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2445 # Use a double $ so make ignores it.
2446 test "$program_suffix" != NONE &&
2447   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2448 # Double any \ or $.
2449 # By default was `s,x,x', remove it if useless.
2450 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2451 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2452
2453 # expand $ac_aux_dir to an absolute path
2454 am_aux_dir=`cd $ac_aux_dir && pwd`
2455
2456 if test x"${MISSING+set}" != xset; then
2457   case $am_aux_dir in
2458   *\ * | *\     *)
2459     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2460   *)
2461     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2462   esac
2463 fi
2464 # Use eval to expand $SHELL
2465 if eval "$MISSING --run true"; then
2466   am_missing_run="$MISSING --run "
2467 else
2468   am_missing_run=
2469   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2470 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2471 fi
2472
2473 if test x"${install_sh}" != xset; then
2474   case $am_aux_dir in
2475   *\ * | *\     *)
2476     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2477   *)
2478     install_sh="\${SHELL} $am_aux_dir/install-sh"
2479   esac
2480 fi
2481
2482 # Installed binaries are usually stripped using `strip' when the user
2483 # run `make install-strip'.  However `strip' might not be the right
2484 # tool to use in cross-compilation environments, therefore Automake
2485 # will honor the `STRIP' environment variable to overrule this program.
2486 if test "$cross_compiling" != no; then
2487   if test -n "$ac_tool_prefix"; then
2488   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2489 set dummy ${ac_tool_prefix}strip; ac_word=$2
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2491 $as_echo_n "checking for $ac_word... " >&6; }
2492 if test "${ac_cv_prog_STRIP+set}" = set; then :
2493   $as_echo_n "(cached) " >&6
2494 else
2495   if test -n "$STRIP"; then
2496   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2500 do
2501   IFS=$as_save_IFS
2502   test -z "$as_dir" && as_dir=.
2503     for ac_exec_ext in '' $ac_executable_extensions; do
2504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2507     break 2
2508   fi
2509 done
2510   done
2511 IFS=$as_save_IFS
2512
2513 fi
2514 fi
2515 STRIP=$ac_cv_prog_STRIP
2516 if test -n "$STRIP"; then
2517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2518 $as_echo "$STRIP" >&6; }
2519 else
2520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2521 $as_echo "no" >&6; }
2522 fi
2523
2524
2525 fi
2526 if test -z "$ac_cv_prog_STRIP"; then
2527   ac_ct_STRIP=$STRIP
2528   # Extract the first word of "strip", so it can be a program name with args.
2529 set dummy strip; ac_word=$2
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2531 $as_echo_n "checking for $ac_word... " >&6; }
2532 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2533   $as_echo_n "(cached) " >&6
2534 else
2535   if test -n "$ac_ct_STRIP"; then
2536   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2537 else
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2540 do
2541   IFS=$as_save_IFS
2542   test -z "$as_dir" && as_dir=.
2543     for ac_exec_ext in '' $ac_executable_extensions; do
2544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545     ac_cv_prog_ac_ct_STRIP="strip"
2546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2547     break 2
2548   fi
2549 done
2550   done
2551 IFS=$as_save_IFS
2552
2553 fi
2554 fi
2555 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2556 if test -n "$ac_ct_STRIP"; then
2557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2558 $as_echo "$ac_ct_STRIP" >&6; }
2559 else
2560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2561 $as_echo "no" >&6; }
2562 fi
2563
2564   if test "x$ac_ct_STRIP" = x; then
2565     STRIP=":"
2566   else
2567     case $cross_compiling:$ac_tool_warned in
2568 yes:)
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2571 ac_tool_warned=yes ;;
2572 esac
2573     STRIP=$ac_ct_STRIP
2574   fi
2575 else
2576   STRIP="$ac_cv_prog_STRIP"
2577 fi
2578
2579 fi
2580 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2581
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2583 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2584 if test -z "$MKDIR_P"; then
2585   if test "${ac_cv_path_mkdir+set}" = set; then :
2586   $as_echo_n "(cached) " >&6
2587 else
2588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2590 do
2591   IFS=$as_save_IFS
2592   test -z "$as_dir" && as_dir=.
2593     for ac_prog in mkdir gmkdir; do
2594          for ac_exec_ext in '' $ac_executable_extensions; do
2595            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2596            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2597              'mkdir (GNU coreutils) '* | \
2598              'mkdir (coreutils) '* | \
2599              'mkdir (fileutils) '4.1*)
2600                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2601                break 3;;
2602            esac
2603          done
2604        done
2605   done
2606 IFS=$as_save_IFS
2607
2608 fi
2609
2610   test -d ./--version && rmdir ./--version
2611   if test "${ac_cv_path_mkdir+set}" = set; then
2612     MKDIR_P="$ac_cv_path_mkdir -p"
2613   else
2614     # As a last resort, use the slow shell script.  Don't cache a
2615     # value for MKDIR_P within a source directory, because that will
2616     # break other packages using the cache if that directory is
2617     # removed, or if the value is a relative name.
2618     MKDIR_P="$ac_install_sh -d"
2619   fi
2620 fi
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2622 $as_echo "$MKDIR_P" >&6; }
2623
2624 mkdir_p="$MKDIR_P"
2625 case $mkdir_p in
2626   [\\/$]* | ?:[\\/]*) ;;
2627   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2628 esac
2629
2630 for ac_prog in gawk mawk nawk awk
2631 do
2632   # Extract the first word of "$ac_prog", so it can be a program name with args.
2633 set dummy $ac_prog; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if test "${ac_cv_prog_AWK+set}" = set; then :
2637   $as_echo_n "(cached) " >&6
2638 else
2639   if test -n "$AWK"; then
2640   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647     for ac_exec_ext in '' $ac_executable_extensions; do
2648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649     ac_cv_prog_AWK="$ac_prog"
2650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654   done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 AWK=$ac_cv_prog_AWK
2660 if test -n "$AWK"; then
2661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2662 $as_echo "$AWK" >&6; }
2663 else
2664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2666 fi
2667
2668
2669   test -n "$AWK" && break
2670 done
2671
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2673 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2674 set x ${MAKE-make}
2675 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2676 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2677   $as_echo_n "(cached) " >&6
2678 else
2679   cat >conftest.make <<\_ACEOF
2680 SHELL = /bin/sh
2681 all:
2682         @echo '@@@%%%=$(MAKE)=@@@%%%'
2683 _ACEOF
2684 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2685 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2686   *@@@%%%=?*=@@@%%%*)
2687     eval ac_cv_prog_make_${ac_make}_set=yes;;
2688   *)
2689     eval ac_cv_prog_make_${ac_make}_set=no;;
2690 esac
2691 rm -f conftest.make
2692 fi
2693 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2695 $as_echo "yes" >&6; }
2696   SET_MAKE=
2697 else
2698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699 $as_echo "no" >&6; }
2700   SET_MAKE="MAKE=${MAKE-make}"
2701 fi
2702
2703 rm -rf .tst 2>/dev/null
2704 mkdir .tst 2>/dev/null
2705 if test -d .tst; then
2706   am__leading_dot=.
2707 else
2708   am__leading_dot=_
2709 fi
2710 rmdir .tst 2>/dev/null
2711
2712 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2713   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2714   # is not polluted with repeated "-I."
2715   am__isrc=' -I$(srcdir)'
2716   # test to see if srcdir already configured
2717   if test -f $srcdir/config.status; then
2718     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2719   fi
2720 fi
2721
2722 # test whether we have cygpath
2723 if test -z "$CYGPATH_W"; then
2724   if (cygpath --version) >/dev/null 2>/dev/null; then
2725     CYGPATH_W='cygpath -w'
2726   else
2727     CYGPATH_W=echo
2728   fi
2729 fi
2730
2731
2732 # Define the identity of the package.
2733  PACKAGE='moonshot-ui'
2734  VERSION='0.1'
2735
2736
2737 cat >>confdefs.h <<_ACEOF
2738 #define PACKAGE "$PACKAGE"
2739 _ACEOF
2740
2741
2742 cat >>confdefs.h <<_ACEOF
2743 #define VERSION "$VERSION"
2744 _ACEOF
2745
2746 # Some tools Automake needs.
2747
2748 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2749
2750
2751 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2752
2753
2754 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2755
2756
2757 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2758
2759
2760 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2761
2762 # We need awk for the "check" target.  The system "awk" is bad on
2763 # some platforms.
2764 # Always define AMTAR for backward compatibility.
2765
2766 AMTAR=${AMTAR-"${am_missing_run}tar"}
2767
2768
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2770 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2771 # Loop over all known methods to create a tar archive until one works.
2772 _am_tools='gnutar  pax cpio none'
2773 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2774 # Do not fold the above two line into one, because Tru64 sh and
2775 # Solaris sh will not grok spaces in the rhs of `-'.
2776 for _am_tool in $_am_tools
2777 do
2778   case $_am_tool in
2779   gnutar)
2780     for _am_tar in tar gnutar gtar;
2781     do
2782       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2783    ($_am_tar --version) >&5 2>&5
2784    ac_status=$?
2785    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786    (exit $ac_status); } && break
2787     done
2788     am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2789     am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2790     am__untar="$_am_tar -xf -"
2791     ;;
2792   plaintar)
2793     # Must skip GNU tar: if it does not support --format= it doesn't create
2794     # ustar tarball either.
2795     (tar --version) >/dev/null 2>&1 && continue
2796     am__tar='tar chf - "$$tardir"'
2797     am__tar_='tar chf - "$tardir"'
2798     am__untar='tar xf -'
2799     ;;
2800   pax)
2801     am__tar='pax -L -x pax -w "$$tardir"'
2802     am__tar_='pax -L -x pax -w "$tardir"'
2803     am__untar='pax -r'
2804     ;;
2805   cpio)
2806     am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2807     am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2808     am__untar='cpio -i -H pax -d'
2809     ;;
2810   none)
2811     am__tar=false
2812     am__tar_=false
2813     am__untar=false
2814     ;;
2815   esac
2816
2817   # If the value was cached, stop now.  We just wanted to have am__tar
2818   # and am__untar set.
2819   test -n "${am_cv_prog_tar_pax}" && break
2820
2821   # tar/untar a dummy directory, and stop if the command works
2822   rm -rf conftest.dir
2823   mkdir conftest.dir
2824   echo GrepMe > conftest.dir/file
2825   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2826    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2827    ac_status=$?
2828    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829    (exit $ac_status); }
2830   rm -rf conftest.dir
2831   if test -s conftest.tar; then
2832     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2833    ($am__untar <conftest.tar) >&5 2>&5
2834    ac_status=$?
2835    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836    (exit $ac_status); }
2837     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2838   fi
2839 done
2840 rm -rf conftest.dir
2841
2842 if test "${am_cv_prog_tar_pax+set}" = set; then :
2843   $as_echo_n "(cached) " >&6
2844 else
2845   am_cv_prog_tar_pax=$_am_tool
2846 fi
2847
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2849 $as_echo "$am_cv_prog_tar_pax" >&6; }
2850
2851
2852
2853
2854
2855 # Check whether --enable-silent-rules was given.
2856 if test "${enable_silent_rules+set}" = set; then :
2857   enableval=$enable_silent_rules;
2858 fi
2859
2860 case $enable_silent_rules in
2861 yes) AM_DEFAULT_VERBOSITY=0;;
2862 no)  AM_DEFAULT_VERBOSITY=1;;
2863 *)   AM_DEFAULT_VERBOSITY=0;;
2864 esac
2865 AM_BACKSLASH='\'
2866
2867
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
2869 $as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
2870     # Check whether --enable-maintainer-mode was given.
2871 if test "${enable_maintainer_mode+set}" = set; then :
2872   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2873 else
2874   USE_MAINTAINER_MODE=yes
2875 fi
2876
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2878 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2879    if test $USE_MAINTAINER_MODE = yes; then
2880   MAINTAINER_MODE_TRUE=
2881   MAINTAINER_MODE_FALSE='#'
2882 else
2883   MAINTAINER_MODE_TRUE='#'
2884   MAINTAINER_MODE_FALSE=
2885 fi
2886
2887   MAINT=$MAINTAINER_MODE_TRUE
2888
2889
2890
2891
2892 case `pwd` in
2893   *\ * | *\     *)
2894     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2895 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2896 esac
2897
2898
2899
2900 macro_version='2.4.2'
2901 macro_revision='1.3337'
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915 ltmain="$ac_aux_dir/ltmain.sh"
2916
2917 # Make sure we can run config.sub.
2918 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2919   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2920
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2922 $as_echo_n "checking build system type... " >&6; }
2923 if test "${ac_cv_build+set}" = set; then :
2924   $as_echo_n "(cached) " >&6
2925 else
2926   ac_build_alias=$build_alias
2927 test "x$ac_build_alias" = x &&
2928   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2929 test "x$ac_build_alias" = x &&
2930   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2931 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2932   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2933
2934 fi
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2936 $as_echo "$ac_cv_build" >&6; }
2937 case $ac_cv_build in
2938 *-*-*) ;;
2939 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2940 esac
2941 build=$ac_cv_build
2942 ac_save_IFS=$IFS; IFS='-'
2943 set x $ac_cv_build
2944 shift
2945 build_cpu=$1
2946 build_vendor=$2
2947 shift; shift
2948 # Remember, the first character of IFS is used to create $*,
2949 # except with old shells:
2950 build_os=$*
2951 IFS=$ac_save_IFS
2952 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2953
2954
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2956 $as_echo_n "checking host system type... " >&6; }
2957 if test "${ac_cv_host+set}" = set; then :
2958   $as_echo_n "(cached) " >&6
2959 else
2960   if test "x$host_alias" = x; then
2961   ac_cv_host=$ac_cv_build
2962 else
2963   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2964     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2965 fi
2966
2967 fi
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2969 $as_echo "$ac_cv_host" >&6; }
2970 case $ac_cv_host in
2971 *-*-*) ;;
2972 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2973 esac
2974 host=$ac_cv_host
2975 ac_save_IFS=$IFS; IFS='-'
2976 set x $ac_cv_host
2977 shift
2978 host_cpu=$1
2979 host_vendor=$2
2980 shift; shift
2981 # Remember, the first character of IFS is used to create $*,
2982 # except with old shells:
2983 host_os=$*
2984 IFS=$ac_save_IFS
2985 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2986
2987
2988 # Backslashify metacharacters that are still active within
2989 # double-quoted strings.
2990 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2991
2992 # Same as above, but do not quote variable references.
2993 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2994
2995 # Sed substitution to delay expansion of an escaped shell variable in a
2996 # double_quote_subst'ed string.
2997 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2998
2999 # Sed substitution to delay expansion of an escaped single quote.
3000 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3001
3002 # Sed substitution to avoid accidental globbing in evaled expressions
3003 no_glob_subst='s/\*/\\\*/g'
3004
3005 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3006 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3007 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3008
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3010 $as_echo_n "checking how to print strings... " >&6; }
3011 # Test print first, because it will be a builtin if present.
3012 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3013    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3014   ECHO='print -r --'
3015 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3016   ECHO='printf %s\n'
3017 else
3018   # Use this function as a fallback that always works.
3019   func_fallback_echo ()
3020   {
3021     eval 'cat <<_LTECHO_EOF
3022 $1
3023 _LTECHO_EOF'
3024   }
3025   ECHO='func_fallback_echo'
3026 fi
3027
3028 # func_echo_all arg...
3029 # Invoke $ECHO with all args, space-separated.
3030 func_echo_all ()
3031 {
3032     $ECHO ""
3033 }
3034
3035 case "$ECHO" in
3036   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3037 $as_echo "printf" >&6; } ;;
3038   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3039 $as_echo "print -r" >&6; } ;;
3040   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3041 $as_echo "cat" >&6; } ;;
3042 esac
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057 DEPDIR="${am__leading_dot}deps"
3058
3059 ac_config_commands="$ac_config_commands depfiles"
3060
3061
3062 am_make=${MAKE-make}
3063 cat > confinc << 'END'
3064 am__doit:
3065         @echo this is the am__doit target
3066 .PHONY: am__doit
3067 END
3068 # If we don't find an include directive, just comment out the code.
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3070 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3071 am__include="#"
3072 am__quote=
3073 _am_result=none
3074 # First try GNU make style include.
3075 echo "include confinc" > confmf
3076 # Ignore all kinds of additional output from `make'.
3077 case `$am_make -s -f confmf 2> /dev/null` in #(
3078 *the\ am__doit\ target*)
3079   am__include=include
3080   am__quote=
3081   _am_result=GNU
3082   ;;
3083 esac
3084 # Now try BSD make style include.
3085 if test "$am__include" = "#"; then
3086    echo '.include "confinc"' > confmf
3087    case `$am_make -s -f confmf 2> /dev/null` in #(
3088    *the\ am__doit\ target*)
3089      am__include=.include
3090      am__quote="\""
3091      _am_result=BSD
3092      ;;
3093    esac
3094 fi
3095
3096
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3098 $as_echo "$_am_result" >&6; }
3099 rm -f confinc confmf
3100
3101 # Check whether --enable-dependency-tracking was given.
3102 if test "${enable_dependency_tracking+set}" = set; then :
3103   enableval=$enable_dependency_tracking;
3104 fi
3105
3106 if test "x$enable_dependency_tracking" != xno; then
3107   am_depcomp="$ac_aux_dir/depcomp"
3108   AMDEPBACKSLASH='\'
3109 fi
3110  if test "x$enable_dependency_tracking" != xno; then
3111   AMDEP_TRUE=
3112   AMDEP_FALSE='#'
3113 else
3114   AMDEP_TRUE='#'
3115   AMDEP_FALSE=
3116 fi
3117
3118
3119 ac_ext=c
3120 ac_cpp='$CPP $CPPFLAGS'
3121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124 if test -n "$ac_tool_prefix"; then
3125   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3126 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if test "${ac_cv_prog_CC+set}" = set; then :
3130   $as_echo_n "(cached) " >&6
3131 else
3132   if test -n "$CC"; then
3133   ac_cv_prog_CC="$CC" # Let the user override the test.
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138   IFS=$as_save_IFS
3139   test -z "$as_dir" && as_dir=.
3140     for ac_exec_ext in '' $ac_executable_extensions; do
3141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3142     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144     break 2
3145   fi
3146 done
3147   done
3148 IFS=$as_save_IFS
3149
3150 fi
3151 fi
3152 CC=$ac_cv_prog_CC
3153 if test -n "$CC"; then
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3155 $as_echo "$CC" >&6; }
3156 else
3157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3159 fi
3160
3161
3162 fi
3163 if test -z "$ac_cv_prog_CC"; then
3164   ac_ct_CC=$CC
3165   # Extract the first word of "gcc", so it can be a program name with args.
3166 set dummy gcc; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3170   $as_echo_n "(cached) " >&6
3171 else
3172   if test -n "$ac_ct_CC"; then
3173   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3177 do
3178   IFS=$as_save_IFS
3179   test -z "$as_dir" && as_dir=.
3180     for ac_exec_ext in '' $ac_executable_extensions; do
3181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3182     ac_cv_prog_ac_ct_CC="gcc"
3183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184     break 2
3185   fi
3186 done
3187   done
3188 IFS=$as_save_IFS
3189
3190 fi
3191 fi
3192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3193 if test -n "$ac_ct_CC"; then
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3195 $as_echo "$ac_ct_CC" >&6; }
3196 else
3197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3199 fi
3200
3201   if test "x$ac_ct_CC" = x; then
3202     CC=""
3203   else
3204     case $cross_compiling:$ac_tool_warned in
3205 yes:)
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3208 ac_tool_warned=yes ;;
3209 esac
3210     CC=$ac_ct_CC
3211   fi
3212 else
3213   CC="$ac_cv_prog_CC"
3214 fi
3215
3216 if test -z "$CC"; then
3217           if test -n "$ac_tool_prefix"; then
3218     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3219 set dummy ${ac_tool_prefix}cc; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if test "${ac_cv_prog_CC+set}" = set; then :
3223   $as_echo_n "(cached) " >&6
3224 else
3225   if test -n "$CC"; then
3226   ac_cv_prog_CC="$CC" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231   IFS=$as_save_IFS
3232   test -z "$as_dir" && as_dir=.
3233     for ac_exec_ext in '' $ac_executable_extensions; do
3234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235     ac_cv_prog_CC="${ac_tool_prefix}cc"
3236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237     break 2
3238   fi
3239 done
3240   done
3241 IFS=$as_save_IFS
3242
3243 fi
3244 fi
3245 CC=$ac_cv_prog_CC
3246 if test -n "$CC"; then
3247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3248 $as_echo "$CC" >&6; }
3249 else
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3252 fi
3253
3254
3255   fi
3256 fi
3257 if test -z "$CC"; then
3258   # Extract the first word of "cc", so it can be a program name with args.
3259 set dummy cc; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if test "${ac_cv_prog_CC+set}" = set; then :
3263   $as_echo_n "(cached) " >&6
3264 else
3265   if test -n "$CC"; then
3266   ac_cv_prog_CC="$CC" # Let the user override the test.
3267 else
3268   ac_prog_rejected=no
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     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3277        ac_prog_rejected=yes
3278        continue
3279      fi
3280     ac_cv_prog_CC="cc"
3281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282     break 2
3283   fi
3284 done
3285   done
3286 IFS=$as_save_IFS
3287
3288 if test $ac_prog_rejected = yes; then
3289   # We found a bogon in the path, so make sure we never use it.
3290   set dummy $ac_cv_prog_CC
3291   shift
3292   if test $# != 0; then
3293     # We chose a different compiler from the bogus one.
3294     # However, it has the same basename, so the bogon will be chosen
3295     # first if we set CC to just the basename; use the full file name.
3296     shift
3297     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3298   fi
3299 fi
3300 fi
3301 fi
3302 CC=$ac_cv_prog_CC
3303 if test -n "$CC"; then
3304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3305 $as_echo "$CC" >&6; }
3306 else
3307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3309 fi
3310
3311
3312 fi
3313 if test -z "$CC"; then
3314   if test -n "$ac_tool_prefix"; then
3315   for ac_prog in cl.exe
3316   do
3317     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if test "${ac_cv_prog_CC+set}" = set; then :
3322   $as_echo_n "(cached) " >&6
3323 else
3324   if test -n "$CC"; then
3325   ac_cv_prog_CC="$CC" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3329 do
3330   IFS=$as_save_IFS
3331   test -z "$as_dir" && as_dir=.
3332     for ac_exec_ext in '' $ac_executable_extensions; do
3333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336     break 2
3337   fi
3338 done
3339   done
3340 IFS=$as_save_IFS
3341
3342 fi
3343 fi
3344 CC=$ac_cv_prog_CC
3345 if test -n "$CC"; then
3346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3347 $as_echo "$CC" >&6; }
3348 else
3349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3351 fi
3352
3353
3354     test -n "$CC" && break
3355   done
3356 fi
3357 if test -z "$CC"; then
3358   ac_ct_CC=$CC
3359   for ac_prog in cl.exe
3360 do
3361   # Extract the first word of "$ac_prog", so it can be a program name with args.
3362 set dummy $ac_prog; ac_word=$2
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 $as_echo_n "checking for $ac_word... " >&6; }
3365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3366   $as_echo_n "(cached) " >&6
3367 else
3368   if test -n "$ac_ct_CC"; then
3369   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3370 else
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3373 do
3374   IFS=$as_save_IFS
3375   test -z "$as_dir" && as_dir=.
3376     for ac_exec_ext in '' $ac_executable_extensions; do
3377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3378     ac_cv_prog_ac_ct_CC="$ac_prog"
3379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380     break 2
3381   fi
3382 done
3383   done
3384 IFS=$as_save_IFS
3385
3386 fi
3387 fi
3388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3389 if test -n "$ac_ct_CC"; then
3390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3391 $as_echo "$ac_ct_CC" >&6; }
3392 else
3393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394 $as_echo "no" >&6; }
3395 fi
3396
3397
3398   test -n "$ac_ct_CC" && break
3399 done
3400
3401   if test "x$ac_ct_CC" = x; then
3402     CC=""
3403   else
3404     case $cross_compiling:$ac_tool_warned in
3405 yes:)
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3408 ac_tool_warned=yes ;;
3409 esac
3410     CC=$ac_ct_CC
3411   fi
3412 fi
3413
3414 fi
3415
3416
3417 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419 as_fn_error $? "no acceptable C compiler found in \$PATH
3420 See \`config.log' for more details" "$LINENO" 5 ; }
3421
3422 # Provide some information about the compiler.
3423 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3424 set X $ac_compile
3425 ac_compiler=$2
3426 for ac_option in --version -v -V -qversion; do
3427   { { ac_try="$ac_compiler $ac_option >&5"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433 $as_echo "$ac_try_echo"; } >&5
3434   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3435   ac_status=$?
3436   if test -s conftest.err; then
3437     sed '10a\
3438 ... rest of stderr output deleted ...
3439          10q' conftest.err >conftest.er1
3440     cat conftest.er1 >&5
3441   fi
3442   rm -f conftest.er1 conftest.err
3443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444   test $ac_status = 0; }
3445 done
3446
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h.  */
3449
3450 int
3451 main ()
3452 {
3453
3454   ;
3455   return 0;
3456 }
3457 _ACEOF
3458 ac_clean_files_save=$ac_clean_files
3459 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3460 # Try to create an executable without -o first, disregard a.out.
3461 # It will help us diagnose broken compilers, and finding out an intuition
3462 # of exeext.
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3464 $as_echo_n "checking whether the C compiler works... " >&6; }
3465 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3466
3467 # The possible output files:
3468 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3469
3470 ac_rmfiles=
3471 for ac_file in $ac_files
3472 do
3473   case $ac_file in
3474     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3475     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3476   esac
3477 done
3478 rm -f $ac_rmfiles
3479
3480 if { { ac_try="$ac_link_default"
3481 case "(($ac_try" in
3482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483   *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486 $as_echo "$ac_try_echo"; } >&5
3487   (eval "$ac_link_default") 2>&5
3488   ac_status=$?
3489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490   test $ac_status = 0; }; then :
3491   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3492 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3493 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3494 # so that the user can short-circuit this test for compilers unknown to
3495 # Autoconf.
3496 for ac_file in $ac_files ''
3497 do
3498   test -f "$ac_file" || continue
3499   case $ac_file in
3500     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3501         ;;
3502     [ab].out )
3503         # We found the default executable, but exeext='' is most
3504         # certainly right.
3505         break;;
3506     *.* )
3507         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3508         then :; else
3509            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3510         fi
3511         # We set ac_cv_exeext here because the later test for it is not
3512         # safe: cross compilers may not add the suffix if given an `-o'
3513         # argument, so we may need to know it at that point already.
3514         # Even if this section looks crufty: it has the advantage of
3515         # actually working.
3516         break;;
3517     * )
3518         break;;
3519   esac
3520 done
3521 test "$ac_cv_exeext" = no && ac_cv_exeext=
3522
3523 else
3524   ac_file=''
3525 fi
3526 if test -z "$ac_file"; then :
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 $as_echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3531
3532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 as_fn_error 77 "C compiler cannot create executables
3535 See \`config.log' for more details" "$LINENO" 5 ; }
3536 else
3537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3538 $as_echo "yes" >&6; }
3539 fi
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3541 $as_echo_n "checking for C compiler default output file name... " >&6; }
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3543 $as_echo "$ac_file" >&6; }
3544 ac_exeext=$ac_cv_exeext
3545
3546 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3547 ac_clean_files=$ac_clean_files_save
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3549 $as_echo_n "checking for suffix of executables... " >&6; }
3550 if { { ac_try="$ac_link"
3551 case "(($ac_try" in
3552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553   *) ac_try_echo=$ac_try;;
3554 esac
3555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3556 $as_echo "$ac_try_echo"; } >&5
3557   (eval "$ac_link") 2>&5
3558   ac_status=$?
3559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3560   test $ac_status = 0; }; then :
3561   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3562 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3563 # work properly (i.e., refer to `conftest.exe'), while it won't with
3564 # `rm'.
3565 for ac_file in conftest.exe conftest conftest.*; do
3566   test -f "$ac_file" || continue
3567   case $ac_file in
3568     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3569     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3570           break;;
3571     * ) break;;
3572   esac
3573 done
3574 else
3575   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3578 See \`config.log' for more details" "$LINENO" 5 ; }
3579 fi
3580 rm -f conftest conftest$ac_cv_exeext
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3582 $as_echo "$ac_cv_exeext" >&6; }
3583
3584 rm -f conftest.$ac_ext
3585 EXEEXT=$ac_cv_exeext
3586 ac_exeext=$EXEEXT
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h.  */
3589 #include <stdio.h>
3590 int
3591 main ()
3592 {
3593 FILE *f = fopen ("conftest.out", "w");
3594  return ferror (f) || fclose (f) != 0;
3595
3596   ;
3597   return 0;
3598 }
3599 _ACEOF
3600 ac_clean_files="$ac_clean_files conftest.out"
3601 # Check that the compiler produces executables we can run.  If not, either
3602 # the compiler is broken, or we cross compile.
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3604 $as_echo_n "checking whether we are cross compiling... " >&6; }
3605 if test "$cross_compiling" != yes; then
3606   { { ac_try="$ac_link"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613   (eval "$ac_link") 2>&5
3614   ac_status=$?
3615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616   test $ac_status = 0; }
3617   if { ac_try='./conftest$ac_cv_exeext'
3618   { { case "(($ac_try" in
3619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620   *) ac_try_echo=$ac_try;;
3621 esac
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624   (eval "$ac_try") 2>&5
3625   ac_status=$?
3626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627   test $ac_status = 0; }; }; then
3628     cross_compiling=no
3629   else
3630     if test "$cross_compiling" = maybe; then
3631         cross_compiling=yes
3632     else
3633         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635 as_fn_error $? "cannot run C compiled programs.
3636 If you meant to cross compile, use \`--host'.
3637 See \`config.log' for more details" "$LINENO" 5 ; }
3638     fi
3639   fi
3640 fi
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3642 $as_echo "$cross_compiling" >&6; }
3643
3644 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3645 ac_clean_files=$ac_clean_files_save
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3647 $as_echo_n "checking for suffix of object files... " >&6; }
3648 if test "${ac_cv_objext+set}" = set; then :
3649   $as_echo_n "(cached) " >&6
3650 else
3651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h.  */
3653
3654 int
3655 main ()
3656 {
3657
3658   ;
3659   return 0;
3660 }
3661 _ACEOF
3662 rm -f conftest.o conftest.obj
3663 if { { ac_try="$ac_compile"
3664 case "(($ac_try" in
3665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666   *) ac_try_echo=$ac_try;;
3667 esac
3668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669 $as_echo "$ac_try_echo"; } >&5
3670   (eval "$ac_compile") 2>&5
3671   ac_status=$?
3672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673   test $ac_status = 0; }; then :
3674   for ac_file in conftest.o conftest.obj conftest.*; do
3675   test -f "$ac_file" || continue;
3676   case $ac_file in
3677     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3678     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3679        break;;
3680   esac
3681 done
3682 else
3683   $as_echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3685
3686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688 as_fn_error $? "cannot compute suffix of object files: cannot compile
3689 See \`config.log' for more details" "$LINENO" 5 ; }
3690 fi
3691 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3692 fi
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3694 $as_echo "$ac_cv_objext" >&6; }
3695 OBJEXT=$ac_cv_objext
3696 ac_objext=$OBJEXT
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3698 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3699 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3700   $as_echo_n "(cached) " >&6
3701 else
3702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h.  */
3704
3705 int
3706 main ()
3707 {
3708 #ifndef __GNUC__
3709        choke me
3710 #endif
3711
3712   ;
3713   return 0;
3714 }
3715 _ACEOF
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717   ac_compiler_gnu=yes
3718 else
3719   ac_compiler_gnu=no
3720 fi
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3723
3724 fi
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3726 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3727 if test $ac_compiler_gnu = yes; then
3728   GCC=yes
3729 else
3730   GCC=
3731 fi
3732 ac_test_CFLAGS=${CFLAGS+set}
3733 ac_save_CFLAGS=$CFLAGS
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3735 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3736 if test "${ac_cv_prog_cc_g+set}" = set; then :
3737   $as_echo_n "(cached) " >&6
3738 else
3739   ac_save_c_werror_flag=$ac_c_werror_flag
3740    ac_c_werror_flag=yes
3741    ac_cv_prog_cc_g=no
3742    CFLAGS="-g"
3743    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h.  */
3745
3746 int
3747 main ()
3748 {
3749
3750   ;
3751   return 0;
3752 }
3753 _ACEOF
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755   ac_cv_prog_cc_g=yes
3756 else
3757   CFLAGS=""
3758       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h.  */
3760
3761 int
3762 main ()
3763 {
3764
3765   ;
3766   return 0;
3767 }
3768 _ACEOF
3769 if ac_fn_c_try_compile "$LINENO"; then :
3770
3771 else
3772   ac_c_werror_flag=$ac_save_c_werror_flag
3773          CFLAGS="-g"
3774          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h.  */
3776
3777 int
3778 main ()
3779 {
3780
3781   ;
3782   return 0;
3783 }
3784 _ACEOF
3785 if ac_fn_c_try_compile "$LINENO"; then :
3786   ac_cv_prog_cc_g=yes
3787 fi
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 fi
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 fi
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793    ac_c_werror_flag=$ac_save_c_werror_flag
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3796 $as_echo "$ac_cv_prog_cc_g" >&6; }
3797 if test "$ac_test_CFLAGS" = set; then
3798   CFLAGS=$ac_save_CFLAGS
3799 elif test $ac_cv_prog_cc_g = yes; then
3800   if test "$GCC" = yes; then
3801     CFLAGS="-g -O2"
3802   else
3803     CFLAGS="-g"
3804   fi
3805 else
3806   if test "$GCC" = yes; then
3807     CFLAGS="-O2"
3808   else
3809     CFLAGS=
3810   fi
3811 fi
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3813 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3814 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3815   $as_echo_n "(cached) " >&6
3816 else
3817   ac_cv_prog_cc_c89=no
3818 ac_save_CC=$CC
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h.  */
3821 #include <stdarg.h>
3822 #include <stdio.h>
3823 #include <sys/types.h>
3824 #include <sys/stat.h>
3825 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3826 struct buf { int x; };
3827 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3828 static char *e (p, i)
3829      char **p;
3830      int i;
3831 {
3832   return p[i];
3833 }
3834 static char *f (char * (*g) (char **, int), char **p, ...)
3835 {
3836   char *s;
3837   va_list v;
3838   va_start (v,p);
3839   s = g (p, va_arg (v,int));
3840   va_end (v);
3841   return s;
3842 }
3843
3844 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3845    function prototypes and stuff, but not '\xHH' hex character constants.
3846    These don't provoke an error unfortunately, instead are silently treated
3847    as 'x'.  The following induces an error, until -std is added to get
3848    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3849    array size at least.  It's necessary to write '\x00'==0 to get something
3850    that's true only with -std.  */
3851 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3852
3853 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3854    inside strings and character constants.  */
3855 #define FOO(x) 'x'
3856 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3857
3858 int test (int i, double x);
3859 struct s1 {int (*f) (int a);};
3860 struct s2 {int (*f) (double a);};
3861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3862 int argc;
3863 char **argv;
3864 int
3865 main ()
3866 {
3867 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3868   ;
3869   return 0;
3870 }
3871 _ACEOF
3872 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3873         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3874 do
3875   CC="$ac_save_CC $ac_arg"
3876   if ac_fn_c_try_compile "$LINENO"; then :
3877   ac_cv_prog_cc_c89=$ac_arg
3878 fi
3879 rm -f core conftest.err conftest.$ac_objext
3880   test "x$ac_cv_prog_cc_c89" != "xno" && break
3881 done
3882 rm -f conftest.$ac_ext
3883 CC=$ac_save_CC
3884
3885 fi
3886 # AC_CACHE_VAL
3887 case "x$ac_cv_prog_cc_c89" in
3888   x)
3889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3890 $as_echo "none needed" >&6; } ;;
3891   xno)
3892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3893 $as_echo "unsupported" >&6; } ;;
3894   *)
3895     CC="$CC $ac_cv_prog_cc_c89"
3896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3897 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3898 esac
3899 if test "x$ac_cv_prog_cc_c89" != xno; then :
3900
3901 fi
3902
3903 ac_ext=c
3904 ac_cpp='$CPP $CPPFLAGS'
3905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908
3909 depcc="$CC"   am_compiler_list=
3910
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3912 $as_echo_n "checking dependency style of $depcc... " >&6; }
3913 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3914   $as_echo_n "(cached) " >&6
3915 else
3916   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3917   # We make a subdir and do the tests there.  Otherwise we can end up
3918   # making bogus files that we don't know about and never remove.  For
3919   # instance it was reported that on HP-UX the gcc test will end up
3920   # making a dummy file named `D' -- because `-MD' means `put the output
3921   # in D'.
3922   mkdir conftest.dir
3923   # Copy depcomp to subdir because otherwise we won't find it if we're
3924   # using a relative directory.
3925   cp "$am_depcomp" conftest.dir
3926   cd conftest.dir
3927   # We will build objects and dependencies in a subdirectory because
3928   # it helps to detect inapplicable dependency modes.  For instance
3929   # both Tru64's cc and ICC support -MD to output dependencies as a
3930   # side effect of compilation, but ICC will put the dependencies in
3931   # the current directory while Tru64 will put them in the object
3932   # directory.
3933   mkdir sub
3934
3935   am_cv_CC_dependencies_compiler_type=none
3936   if test "$am_compiler_list" = ""; then
3937      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3938   fi
3939   am__universal=false
3940   case " $depcc " in #(
3941      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3942      esac
3943
3944   for depmode in $am_compiler_list; do
3945     # Setup a source with many dependencies, because some compilers
3946     # like to wrap large dependency lists on column 80 (with \), and
3947     # we should not choose a depcomp mode which is confused by this.
3948     #
3949     # We need to recreate these files for each test, as the compiler may
3950     # overwrite some of them when testing with obscure command lines.
3951     # This happens at least with the AIX C compiler.
3952     : > sub/conftest.c
3953     for i in 1 2 3 4 5 6; do
3954       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3955       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3956       # Solaris 8's {/usr,}/bin/sh.
3957       touch sub/conftst$i.h
3958     done
3959     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3960
3961     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3962     # mode.  It turns out that the SunPro C++ compiler does not properly
3963     # handle `-M -o', and we need to detect this.  Also, some Intel
3964     # versions had trouble with output in subdirs
3965     am__obj=sub/conftest.${OBJEXT-o}
3966     am__minus_obj="-o $am__obj"
3967     case $depmode in
3968     gcc)
3969       # This depmode causes a compiler race in universal mode.
3970       test "$am__universal" = false || continue
3971       ;;
3972     nosideeffect)
3973       # after this tag, mechanisms are not by side-effect, so they'll
3974       # only be used when explicitly requested
3975       if test "x$enable_dependency_tracking" = xyes; then
3976         continue
3977       else
3978         break
3979       fi
3980       ;;
3981     msvisualcpp | msvcmsys)
3982       # This compiler won't grok `-c -o', but also, the minuso test has
3983       # not run yet.  These depmodes are late enough in the game, and
3984       # so weak that their functioning should not be impacted.
3985       am__obj=conftest.${OBJEXT-o}
3986       am__minus_obj=
3987       ;;
3988     none) break ;;
3989     esac
3990     if depmode=$depmode \
3991        source=sub/conftest.c object=$am__obj \
3992        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3993        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3994          >/dev/null 2>conftest.err &&
3995        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3996        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3997        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3998        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3999       # icc doesn't choke on unknown options, it will just issue warnings
4000       # or remarks (even with -Werror).  So we grep stderr for any message
4001       # that says an option was ignored or not supported.
4002       # When given -MP, icc 7.0 and 7.1 complain thusly:
4003       #   icc: Command line warning: ignoring option '-M'; no argument required
4004       # The diagnosis changed in icc 8.0:
4005       #   icc: Command line remark: option '-MP' not supported
4006       if (grep 'ignoring option' conftest.err ||
4007           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4008         am_cv_CC_dependencies_compiler_type=$depmode
4009         break
4010       fi
4011     fi
4012   done
4013
4014   cd ..
4015   rm -rf conftest.dir
4016 else
4017   am_cv_CC_dependencies_compiler_type=none
4018 fi
4019
4020 fi
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4022 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4023 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4024
4025  if
4026   test "x$enable_dependency_tracking" != xno \
4027   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4028   am__fastdepCC_TRUE=
4029   am__fastdepCC_FALSE='#'
4030 else
4031   am__fastdepCC_TRUE='#'
4032   am__fastdepCC_FALSE=
4033 fi
4034
4035
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4037 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4038 if test "${ac_cv_path_SED+set}" = set; then :
4039   $as_echo_n "(cached) " >&6
4040 else
4041             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4042      for ac_i in 1 2 3 4 5 6 7; do
4043        ac_script="$ac_script$as_nl$ac_script"
4044      done
4045      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4046      { ac_script=; unset ac_script;}
4047      if test -z "$SED"; then
4048   ac_path_SED_found=false
4049   # Loop through the user's path and test for each of PROGNAME-LIST
4050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4052 do
4053   IFS=$as_save_IFS
4054   test -z "$as_dir" && as_dir=.
4055     for ac_prog in sed gsed; do
4056     for ac_exec_ext in '' $ac_executable_extensions; do
4057       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4058       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4059 # Check for GNU ac_path_SED and select it if it is found.
4060   # Check for GNU $ac_path_SED
4061 case `"$ac_path_SED" --version 2>&1` in
4062 *GNU*)
4063   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4064 *)
4065   ac_count=0
4066   $as_echo_n 0123456789 >"conftest.in"
4067   while :
4068   do
4069     cat "conftest.in" "conftest.in" >"conftest.tmp"
4070     mv "conftest.tmp" "conftest.in"
4071     cp "conftest.in" "conftest.nl"
4072     $as_echo '' >> "conftest.nl"
4073     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4074     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4075     as_fn_arith $ac_count + 1 && ac_count=$as_val
4076     if test $ac_count -gt ${ac_path_SED_max-0}; then
4077       # Best one so far, save it but keep looking for a better one
4078       ac_cv_path_SED="$ac_path_SED"
4079       ac_path_SED_max=$ac_count
4080     fi
4081     # 10*(2^10) chars as input seems more than enough
4082     test $ac_count -gt 10 && break
4083   done
4084   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4085 esac
4086
4087       $ac_path_SED_found && break 3
4088     done
4089   done
4090   done
4091 IFS=$as_save_IFS
4092   if test -z "$ac_cv_path_SED"; then
4093     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4094   fi
4095 else
4096   ac_cv_path_SED=$SED
4097 fi
4098
4099 fi
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4101 $as_echo "$ac_cv_path_SED" >&6; }
4102  SED="$ac_cv_path_SED"
4103   rm -f conftest.sed
4104
4105 test -z "$SED" && SED=sed
4106 Xsed="$SED -e 1s/^X//"
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4119 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4120 if test "${ac_cv_path_GREP+set}" = set; then :
4121   $as_echo_n "(cached) " >&6
4122 else
4123   if test -z "$GREP"; then
4124   ac_path_GREP_found=false
4125   # Loop through the user's path and test for each of PROGNAME-LIST
4126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4128 do
4129   IFS=$as_save_IFS
4130   test -z "$as_dir" && as_dir=.
4131     for ac_prog in grep ggrep; do
4132     for ac_exec_ext in '' $ac_executable_extensions; do
4133       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4134       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4135 # Check for GNU ac_path_GREP and select it if it is found.
4136   # Check for GNU $ac_path_GREP
4137 case `"$ac_path_GREP" --version 2>&1` in
4138 *GNU*)
4139   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4140 *)
4141   ac_count=0
4142   $as_echo_n 0123456789 >"conftest.in"
4143   while :
4144   do
4145     cat "conftest.in" "conftest.in" >"conftest.tmp"
4146     mv "conftest.tmp" "conftest.in"
4147     cp "conftest.in" "conftest.nl"
4148     $as_echo 'GREP' >> "conftest.nl"
4149     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4150     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4151     as_fn_arith $ac_count + 1 && ac_count=$as_val
4152     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4153       # Best one so far, save it but keep looking for a better one
4154       ac_cv_path_GREP="$ac_path_GREP"
4155       ac_path_GREP_max=$ac_count
4156     fi
4157     # 10*(2^10) chars as input seems more than enough
4158     test $ac_count -gt 10 && break
4159   done
4160   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4161 esac
4162
4163       $ac_path_GREP_found && break 3
4164     done
4165   done
4166   done
4167 IFS=$as_save_IFS
4168   if test -z "$ac_cv_path_GREP"; then
4169     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4170   fi
4171 else
4172   ac_cv_path_GREP=$GREP
4173 fi
4174
4175 fi
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4177 $as_echo "$ac_cv_path_GREP" >&6; }
4178  GREP="$ac_cv_path_GREP"
4179
4180
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4182 $as_echo_n "checking for egrep... " >&6; }
4183 if test "${ac_cv_path_EGREP+set}" = set; then :
4184   $as_echo_n "(cached) " >&6
4185 else
4186   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4187    then ac_cv_path_EGREP="$GREP -E"
4188    else
4189      if test -z "$EGREP"; then
4190   ac_path_EGREP_found=false
4191   # Loop through the user's path and test for each of PROGNAME-LIST
4192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4194 do
4195   IFS=$as_save_IFS
4196   test -z "$as_dir" && as_dir=.
4197     for ac_prog in egrep; do
4198     for ac_exec_ext in '' $ac_executable_extensions; do
4199       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4200       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4201 # Check for GNU ac_path_EGREP and select it if it is found.
4202   # Check for GNU $ac_path_EGREP
4203 case `"$ac_path_EGREP" --version 2>&1` in
4204 *GNU*)
4205   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4206 *)
4207   ac_count=0
4208   $as_echo_n 0123456789 >"conftest.in"
4209   while :
4210   do
4211     cat "conftest.in" "conftest.in" >"conftest.tmp"
4212     mv "conftest.tmp" "conftest.in"
4213     cp "conftest.in" "conftest.nl"
4214     $as_echo 'EGREP' >> "conftest.nl"
4215     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4216     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4217     as_fn_arith $ac_count + 1 && ac_count=$as_val
4218     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4219       # Best one so far, save it but keep looking for a better one
4220       ac_cv_path_EGREP="$ac_path_EGREP"
4221       ac_path_EGREP_max=$ac_count
4222     fi
4223     # 10*(2^10) chars as input seems more than enough
4224     test $ac_count -gt 10 && break
4225   done
4226   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4227 esac
4228
4229       $ac_path_EGREP_found && break 3
4230     done
4231   done
4232   done
4233 IFS=$as_save_IFS
4234   if test -z "$ac_cv_path_EGREP"; then
4235     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4236   fi
4237 else
4238   ac_cv_path_EGREP=$EGREP
4239 fi
4240
4241    fi
4242 fi
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4244 $as_echo "$ac_cv_path_EGREP" >&6; }
4245  EGREP="$ac_cv_path_EGREP"
4246
4247
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4249 $as_echo_n "checking for fgrep... " >&6; }
4250 if test "${ac_cv_path_FGREP+set}" = set; then :
4251   $as_echo_n "(cached) " >&6
4252 else
4253   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4254    then ac_cv_path_FGREP="$GREP -F"
4255    else
4256      if test -z "$FGREP"; then
4257   ac_path_FGREP_found=false
4258   # Loop through the user's path and test for each of PROGNAME-LIST
4259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4261 do
4262   IFS=$as_save_IFS
4263   test -z "$as_dir" && as_dir=.
4264     for ac_prog in fgrep; do
4265     for ac_exec_ext in '' $ac_executable_extensions; do
4266       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4267       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4268 # Check for GNU ac_path_FGREP and select it if it is found.
4269   # Check for GNU $ac_path_FGREP
4270 case `"$ac_path_FGREP" --version 2>&1` in
4271 *GNU*)
4272   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4273 *)
4274   ac_count=0
4275   $as_echo_n 0123456789 >"conftest.in"
4276   while :
4277   do
4278     cat "conftest.in" "conftest.in" >"conftest.tmp"
4279     mv "conftest.tmp" "conftest.in"
4280     cp "conftest.in" "conftest.nl"
4281     $as_echo 'FGREP' >> "conftest.nl"
4282     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4283     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4284     as_fn_arith $ac_count + 1 && ac_count=$as_val
4285     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4286       # Best one so far, save it but keep looking for a better one
4287       ac_cv_path_FGREP="$ac_path_FGREP"
4288       ac_path_FGREP_max=$ac_count
4289     fi
4290     # 10*(2^10) chars as input seems more than enough
4291     test $ac_count -gt 10 && break
4292   done
4293   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4294 esac
4295
4296       $ac_path_FGREP_found && break 3
4297     done
4298   done
4299   done
4300 IFS=$as_save_IFS
4301   if test -z "$ac_cv_path_FGREP"; then
4302     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4303   fi
4304 else
4305   ac_cv_path_FGREP=$FGREP
4306 fi
4307
4308    fi
4309 fi
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4311 $as_echo "$ac_cv_path_FGREP" >&6; }
4312  FGREP="$ac_cv_path_FGREP"
4313
4314
4315 test -z "$GREP" && GREP=grep
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335 # Check whether --with-gnu-ld was given.
4336 if test "${with_gnu_ld+set}" = set; then :
4337   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4338 else
4339   with_gnu_ld=no
4340 fi
4341
4342 ac_prog=ld
4343 if test "$GCC" = yes; then
4344   # Check if gcc -print-prog-name=ld gives a path.
4345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4346 $as_echo_n "checking for ld used by $CC... " >&6; }
4347   case $host in
4348   *-*-mingw*)
4349     # gcc leaves a trailing carriage return which upsets mingw
4350     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4351   *)
4352     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4353   esac
4354   case $ac_prog in
4355     # Accept absolute paths.
4356     [\\/]* | ?:[\\/]*)
4357       re_direlt='/[^/][^/]*/\.\./'
4358       # Canonicalize the pathname of ld
4359       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4360       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4361         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4362       done
4363       test -z "$LD" && LD="$ac_prog"
4364       ;;
4365   "")
4366     # If it fails, then pretend we aren't using GCC.
4367     ac_prog=ld
4368     ;;
4369   *)
4370     # If it is relative, then search for the first ld in PATH.
4371     with_gnu_ld=unknown
4372     ;;
4373   esac
4374 elif test "$with_gnu_ld" = yes; then
4375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4376 $as_echo_n "checking for GNU ld... " >&6; }
4377 else
4378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4379 $as_echo_n "checking for non-GNU ld... " >&6; }
4380 fi
4381 if test "${lt_cv_path_LD+set}" = set; then :
4382   $as_echo_n "(cached) " >&6
4383 else
4384   if test -z "$LD"; then
4385   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4386   for ac_dir in $PATH; do
4387     IFS="$lt_save_ifs"
4388     test -z "$ac_dir" && ac_dir=.
4389     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4390       lt_cv_path_LD="$ac_dir/$ac_prog"
4391       # Check to see if the program is GNU ld.  I'd rather use --version,
4392       # but apparently some variants of GNU ld only accept -v.
4393       # Break only if it was the GNU/non-GNU ld that we prefer.
4394       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4395       *GNU* | *'with BFD'*)
4396         test "$with_gnu_ld" != no && break
4397         ;;
4398       *)
4399         test "$with_gnu_ld" != yes && break
4400         ;;
4401       esac
4402     fi
4403   done
4404   IFS="$lt_save_ifs"
4405 else
4406   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4407 fi
4408 fi
4409
4410 LD="$lt_cv_path_LD"
4411 if test -n "$LD"; then
4412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4413 $as_echo "$LD" >&6; }
4414 else
4415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4417 fi
4418 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4420 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4421 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4422   $as_echo_n "(cached) " >&6
4423 else
4424   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4425 case `$LD -v 2>&1 </dev/null` in
4426 *GNU* | *'with BFD'*)
4427   lt_cv_prog_gnu_ld=yes
4428   ;;
4429 *)
4430   lt_cv_prog_gnu_ld=no
4431   ;;
4432 esac
4433 fi
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4435 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4436 with_gnu_ld=$lt_cv_prog_gnu_ld
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4447 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4448 if test "${lt_cv_path_NM+set}" = set; then :
4449   $as_echo_n "(cached) " >&6
4450 else
4451   if test -n "$NM"; then
4452   # Let the user override the test.
4453   lt_cv_path_NM="$NM"
4454 else
4455   lt_nm_to_check="${ac_tool_prefix}nm"
4456   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4457     lt_nm_to_check="$lt_nm_to_check nm"
4458   fi
4459   for lt_tmp_nm in $lt_nm_to_check; do
4460     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4461     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4462       IFS="$lt_save_ifs"
4463       test -z "$ac_dir" && ac_dir=.
4464       tmp_nm="$ac_dir/$lt_tmp_nm"
4465       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4466         # Check to see if the nm accepts a BSD-compat flag.
4467         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4468         #   nm: unknown option "B" ignored
4469         # Tru64's nm complains that /dev/null is an invalid object file
4470         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4471         */dev/null* | *'Invalid file or object type'*)
4472           lt_cv_path_NM="$tmp_nm -B"
4473           break
4474           ;;
4475         *)
4476           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4477           */dev/null*)
4478             lt_cv_path_NM="$tmp_nm -p"
4479             break
4480             ;;
4481           *)
4482             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4483             continue # so that we can try to find one that supports BSD flags
4484             ;;
4485           esac
4486           ;;
4487         esac
4488       fi
4489     done
4490     IFS="$lt_save_ifs"
4491   done
4492   : ${lt_cv_path_NM=no}
4493 fi
4494 fi
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4496 $as_echo "$lt_cv_path_NM" >&6; }
4497 if test "$lt_cv_path_NM" != "no"; then
4498   NM="$lt_cv_path_NM"
4499 else
4500   # Didn't find any BSD compatible name lister, look for dumpbin.
4501   if test -n "$DUMPBIN"; then :
4502     # Let the user override the test.
4503   else
4504     if test -n "$ac_tool_prefix"; then
4505   for ac_prog in dumpbin "link -dump"
4506   do
4507     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4512   $as_echo_n "(cached) " >&6
4513 else
4514   if test -n "$DUMPBIN"; then
4515   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520   IFS=$as_save_IFS
4521   test -z "$as_dir" && as_dir=.
4522     for ac_exec_ext in '' $ac_executable_extensions; do
4523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4524     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526     break 2
4527   fi
4528 done
4529   done
4530 IFS=$as_save_IFS
4531
4532 fi
4533 fi
4534 DUMPBIN=$ac_cv_prog_DUMPBIN
4535 if test -n "$DUMPBIN"; then
4536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4537 $as_echo "$DUMPBIN" >&6; }
4538 else
4539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4541 fi
4542
4543
4544     test -n "$DUMPBIN" && break
4545   done
4546 fi
4547 if test -z "$DUMPBIN"; then
4548   ac_ct_DUMPBIN=$DUMPBIN
4549   for ac_prog in dumpbin "link -dump"
4550 do
4551   # Extract the first word of "$ac_prog", so it can be a program name with args.
4552 set dummy $ac_prog; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4556   $as_echo_n "(cached) " >&6
4557 else
4558   if test -n "$ac_ct_DUMPBIN"; then
4559   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564   IFS=$as_save_IFS
4565   test -z "$as_dir" && as_dir=.
4566     for ac_exec_ext in '' $ac_executable_extensions; do
4567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570     break 2
4571   fi
4572 done
4573   done
4574 IFS=$as_save_IFS
4575
4576 fi
4577 fi
4578 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4579 if test -n "$ac_ct_DUMPBIN"; then
4580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4581 $as_echo "$ac_ct_DUMPBIN" >&6; }
4582 else
4583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4585 fi
4586
4587
4588   test -n "$ac_ct_DUMPBIN" && break
4589 done
4590
4591   if test "x$ac_ct_DUMPBIN" = x; then
4592     DUMPBIN=":"
4593   else
4594     case $cross_compiling:$ac_tool_warned in
4595 yes:)
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4598 ac_tool_warned=yes ;;
4599 esac
4600     DUMPBIN=$ac_ct_DUMPBIN
4601   fi
4602 fi
4603
4604     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4605     *COFF*)
4606       DUMPBIN="$DUMPBIN -symbols"
4607       ;;
4608     *)
4609       DUMPBIN=:
4610       ;;
4611     esac
4612   fi
4613
4614   if test "$DUMPBIN" != ":"; then
4615     NM="$DUMPBIN"
4616   fi
4617 fi
4618 test -z "$NM" && NM=nm
4619
4620
4621
4622
4623
4624
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4626 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4627 if test "${lt_cv_nm_interface+set}" = set; then :
4628   $as_echo_n "(cached) " >&6
4629 else
4630   lt_cv_nm_interface="BSD nm"
4631   echo "int some_variable = 0;" > conftest.$ac_ext
4632   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4633   (eval "$ac_compile" 2>conftest.err)
4634   cat conftest.err >&5
4635   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4636   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4637   cat conftest.err >&5
4638   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4639   cat conftest.out >&5
4640   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4641     lt_cv_nm_interface="MS dumpbin"
4642   fi
4643   rm -f conftest*
4644 fi
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4646 $as_echo "$lt_cv_nm_interface" >&6; }
4647
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4649 $as_echo_n "checking whether ln -s works... " >&6; }
4650 LN_S=$as_ln_s
4651 if test "$LN_S" = "ln -s"; then
4652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4653 $as_echo "yes" >&6; }
4654 else
4655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4656 $as_echo "no, using $LN_S" >&6; }
4657 fi
4658
4659 # find the maximum length of command line arguments
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4661 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4662 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4663   $as_echo_n "(cached) " >&6
4664 else
4665     i=0
4666   teststring="ABCD"
4667
4668   case $build_os in
4669   msdosdjgpp*)
4670     # On DJGPP, this test can blow up pretty badly due to problems in libc
4671     # (any single argument exceeding 2000 bytes causes a buffer overrun
4672     # during glob expansion).  Even if it were fixed, the result of this
4673     # check would be larger than it should be.
4674     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4675     ;;
4676
4677   gnu*)
4678     # Under GNU Hurd, this test is not required because there is
4679     # no limit to the length of command line arguments.
4680     # Libtool will interpret -1 as no limit whatsoever
4681     lt_cv_sys_max_cmd_len=-1;
4682     ;;
4683
4684   cygwin* | mingw* | cegcc*)
4685     # On Win9x/ME, this test blows up -- it succeeds, but takes
4686     # about 5 minutes as the teststring grows exponentially.
4687     # Worse, since 9x/ME are not pre-emptively multitasking,
4688     # you end up with a "frozen" computer, even though with patience
4689     # the test eventually succeeds (with a max line length of 256k).
4690     # Instead, let's just punt: use the minimum linelength reported by
4691     # all of the supported platforms: 8192 (on NT/2K/XP).
4692     lt_cv_sys_max_cmd_len=8192;
4693     ;;
4694
4695   mint*)
4696     # On MiNT this can take a long time and run out of memory.
4697     lt_cv_sys_max_cmd_len=8192;
4698     ;;
4699
4700   amigaos*)
4701     # On AmigaOS with pdksh, this test takes hours, literally.
4702     # So we just punt and use a minimum line length of 8192.
4703     lt_cv_sys_max_cmd_len=8192;
4704     ;;
4705
4706   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4707     # This has been around since 386BSD, at least.  Likely further.
4708     if test -x /sbin/sysctl; then
4709       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4710     elif test -x /usr/sbin/sysctl; then
4711       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4712     else
4713       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4714     fi
4715     # And add a safety zone
4716     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4717     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4718     ;;
4719
4720   interix*)
4721     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4722     lt_cv_sys_max_cmd_len=196608
4723     ;;
4724
4725   os2*)
4726     # The test takes a long time on OS/2.
4727     lt_cv_sys_max_cmd_len=8192
4728     ;;
4729
4730   osf*)
4731     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4732     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4733     # nice to cause kernel panics so lets avoid the loop below.
4734     # First set a reasonable default.
4735     lt_cv_sys_max_cmd_len=16384
4736     #
4737     if test -x /sbin/sysconfig; then
4738       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4739         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4740       esac
4741     fi
4742     ;;
4743   sco3.2v5*)
4744     lt_cv_sys_max_cmd_len=102400
4745     ;;
4746   sysv5* | sco5v6* | sysv4.2uw2*)
4747     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4748     if test -n "$kargmax"; then
4749       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4750     else
4751       lt_cv_sys_max_cmd_len=32768
4752     fi
4753     ;;
4754   *)
4755     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4756     if test -n "$lt_cv_sys_max_cmd_len"; then
4757       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4758       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4759     else
4760       # Make teststring a little bigger before we do anything with it.
4761       # a 1K string should be a reasonable start.
4762       for i in 1 2 3 4 5 6 7 8 ; do
4763         teststring=$teststring$teststring
4764       done
4765       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4766       # If test is not a shell built-in, we'll probably end up computing a
4767       # maximum length that is only half of the actual maximum length, but
4768       # we can't tell.
4769       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4770                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4771               test $i != 17 # 1/2 MB should be enough
4772       do
4773         i=`expr $i + 1`
4774         teststring=$teststring$teststring
4775       done
4776       # Only check the string length outside the loop.
4777       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4778       teststring=
4779       # Add a significant safety factor because C++ compilers can tack on
4780       # massive amounts of additional arguments before passing them to the
4781       # linker.  It appears as though 1/2 is a usable value.
4782       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4783     fi
4784     ;;
4785   esac
4786
4787 fi
4788
4789 if test -n $lt_cv_sys_max_cmd_len ; then
4790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4791 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4792 else
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4794 $as_echo "none" >&6; }
4795 fi
4796 max_cmd_len=$lt_cv_sys_max_cmd_len
4797
4798
4799
4800
4801
4802
4803 : ${CP="cp -f"}
4804 : ${MV="mv -f"}
4805 : ${RM="rm -f"}
4806
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4808 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4809 # Try some XSI features
4810 xsi_shell=no
4811 ( _lt_dummy="a/b/c"
4812   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4813       = c,a/b,b/c, \
4814     && eval 'test $(( 1 + 1 )) -eq 2 \
4815     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4816   && xsi_shell=yes
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4818 $as_echo "$xsi_shell" >&6; }
4819
4820
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4822 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4823 lt_shell_append=no
4824 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4825     >/dev/null 2>&1 \
4826   && lt_shell_append=yes
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4828 $as_echo "$lt_shell_append" >&6; }
4829
4830
4831 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4832   lt_unset=unset
4833 else
4834   lt_unset=false
4835 fi
4836
4837
4838
4839
4840
4841 # test EBCDIC or ASCII
4842 case `echo X|tr X '\101'` in
4843  A) # ASCII based system
4844     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4845   lt_SP2NL='tr \040 \012'
4846   lt_NL2SP='tr \015\012 \040\040'
4847   ;;
4848  *) # EBCDIC based system
4849   lt_SP2NL='tr \100 \n'
4850   lt_NL2SP='tr \r\n \100\100'
4851   ;;
4852 esac
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4863 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4864 if test "${lt_cv_to_host_file_cmd+set}" = set; then :
4865   $as_echo_n "(cached) " >&6
4866 else
4867   case $host in
4868   *-*-mingw* )
4869     case $build in
4870       *-*-mingw* ) # actually msys
4871         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4872         ;;
4873       *-*-cygwin* )
4874         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4875         ;;
4876       * ) # otherwise, assume *nix
4877         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4878         ;;
4879     esac
4880     ;;
4881   *-*-cygwin* )
4882     case $build in
4883       *-*-mingw* ) # actually msys
4884         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4885         ;;
4886       *-*-cygwin* )
4887         lt_cv_to_host_file_cmd=func_convert_file_noop
4888         ;;
4889       * ) # otherwise, assume *nix
4890         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4891         ;;
4892     esac
4893     ;;
4894   * ) # unhandled hosts (and "normal" native builds)
4895     lt_cv_to_host_file_cmd=func_convert_file_noop
4896     ;;
4897 esac
4898
4899 fi
4900
4901 to_host_file_cmd=$lt_cv_to_host_file_cmd
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4903 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4904
4905
4906
4907
4908
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4910 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4911 if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
4912   $as_echo_n "(cached) " >&6
4913 else
4914   #assume ordinary cross tools, or native build.
4915 lt_cv_to_tool_file_cmd=func_convert_file_noop
4916 case $host in
4917   *-*-mingw* )
4918     case $build in
4919       *-*-mingw* ) # actually msys
4920         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4921         ;;
4922     esac
4923     ;;
4924 esac
4925
4926 fi
4927
4928 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4930 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4931
4932
4933
4934
4935
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4937 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4938 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4939   $as_echo_n "(cached) " >&6
4940 else
4941   lt_cv_ld_reload_flag='-r'
4942 fi
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4944 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4945 reload_flag=$lt_cv_ld_reload_flag
4946 case $reload_flag in
4947 "" | " "*) ;;
4948 *) reload_flag=" $reload_flag" ;;
4949 esac
4950 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4951 case $host_os in
4952   cygwin* | mingw* | pw32* | cegcc*)
4953     if test "$GCC" != yes; then
4954       reload_cmds=false
4955     fi
4956     ;;
4957   darwin*)
4958     if test "$GCC" = yes; then
4959       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4960     else
4961       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4962     fi
4963     ;;
4964 esac
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974 if test -n "$ac_tool_prefix"; then
4975   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4976 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4980   $as_echo_n "(cached) " >&6
4981 else
4982   if test -n "$OBJDUMP"; then
4983   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990     for ac_exec_ext in '' $ac_executable_extensions; do
4991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994     break 2
4995   fi
4996 done
4997   done
4998 IFS=$as_save_IFS
4999
5000 fi
5001 fi
5002 OBJDUMP=$ac_cv_prog_OBJDUMP
5003 if test -n "$OBJDUMP"; then
5004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5005 $as_echo "$OBJDUMP" >&6; }
5006 else
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5009 fi
5010
5011
5012 fi
5013 if test -z "$ac_cv_prog_OBJDUMP"; then
5014   ac_ct_OBJDUMP=$OBJDUMP
5015   # Extract the first word of "objdump", so it can be a program name with args.
5016 set dummy objdump; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5020   $as_echo_n "(cached) " >&6
5021 else
5022   if test -n "$ac_ct_OBJDUMP"; then
5023   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5027 do
5028   IFS=$as_save_IFS
5029   test -z "$as_dir" && as_dir=.
5030     for ac_exec_ext in '' $ac_executable_extensions; do
5031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5032     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034     break 2
5035   fi
5036 done
5037   done
5038 IFS=$as_save_IFS
5039
5040 fi
5041 fi
5042 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5043 if test -n "$ac_ct_OBJDUMP"; then
5044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5045 $as_echo "$ac_ct_OBJDUMP" >&6; }
5046 else
5047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5049 fi
5050
5051   if test "x$ac_ct_OBJDUMP" = x; then
5052     OBJDUMP="false"
5053   else
5054     case $cross_compiling:$ac_tool_warned in
5055 yes:)
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5058 ac_tool_warned=yes ;;
5059 esac
5060     OBJDUMP=$ac_ct_OBJDUMP
5061   fi
5062 else
5063   OBJDUMP="$ac_cv_prog_OBJDUMP"
5064 fi
5065
5066 test -z "$OBJDUMP" && OBJDUMP=objdump
5067
5068
5069
5070
5071
5072
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5074 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5075 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5076   $as_echo_n "(cached) " >&6
5077 else
5078   lt_cv_file_magic_cmd='$MAGIC_CMD'
5079 lt_cv_file_magic_test_file=
5080 lt_cv_deplibs_check_method='unknown'
5081 # Need to set the preceding variable on all platforms that support
5082 # interlibrary dependencies.
5083 # 'none' -- dependencies not supported.
5084 # `unknown' -- same as none, but documents that we really don't know.
5085 # 'pass_all' -- all dependencies passed with no checks.
5086 # 'test_compile' -- check by making test program.
5087 # 'file_magic [[regex]]' -- check by looking for files in library path
5088 # which responds to the $file_magic_cmd with a given extended regex.
5089 # If you have `file' or equivalent on your system and you're not sure
5090 # whether `pass_all' will *always* work, you probably want this one.
5091
5092 case $host_os in
5093 aix[4-9]*)
5094   lt_cv_deplibs_check_method=pass_all
5095   ;;
5096
5097 beos*)
5098   lt_cv_deplibs_check_method=pass_all
5099   ;;
5100
5101 bsdi[45]*)
5102   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5103   lt_cv_file_magic_cmd='/usr/bin/file -L'
5104   lt_cv_file_magic_test_file=/shlib/libc.so
5105   ;;
5106
5107 cygwin*)
5108   # func_win32_libid is a shell function defined in ltmain.sh
5109   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5110   lt_cv_file_magic_cmd='func_win32_libid'
5111   ;;
5112
5113 mingw* | pw32*)
5114   # Base MSYS/MinGW do not provide the 'file' command needed by
5115   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5116   # unless we find 'file', for example because we are cross-compiling.
5117   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5118   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5119     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5120     lt_cv_file_magic_cmd='func_win32_libid'
5121   else
5122     # Keep this pattern in sync with the one in func_win32_libid.
5123     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5124     lt_cv_file_magic_cmd='$OBJDUMP -f'
5125   fi
5126   ;;
5127
5128 cegcc*)
5129   # use the weaker test based on 'objdump'. See mingw*.
5130   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5131   lt_cv_file_magic_cmd='$OBJDUMP -f'
5132   ;;
5133
5134 darwin* | rhapsody*)
5135   lt_cv_deplibs_check_method=pass_all
5136   ;;
5137
5138 freebsd* | dragonfly*)
5139   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5140     case $host_cpu in
5141     i*86 )
5142       # Not sure whether the presence of OpenBSD here was a mistake.
5143       # Let's accept both of them until this is cleared up.
5144       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5145       lt_cv_file_magic_cmd=/usr/bin/file
5146       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5147       ;;
5148     esac
5149   else
5150     lt_cv_deplibs_check_method=pass_all
5151   fi
5152   ;;
5153
5154 gnu*)
5155   lt_cv_deplibs_check_method=pass_all
5156   ;;
5157
5158 haiku*)
5159   lt_cv_deplibs_check_method=pass_all
5160   ;;
5161
5162 hpux10.20* | hpux11*)
5163   lt_cv_file_magic_cmd=/usr/bin/file
5164   case $host_cpu in
5165   ia64*)
5166     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5167     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5168     ;;
5169   hppa*64*)
5170     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5171     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5172     ;;
5173   *)
5174     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5175     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5176     ;;
5177   esac
5178   ;;
5179
5180 interix[3-9]*)
5181   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5182   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5183   ;;
5184
5185 irix5* | irix6* | nonstopux*)
5186   case $LD in
5187   *-32|*"-32 ") libmagic=32-bit;;
5188   *-n32|*"-n32 ") libmagic=N32;;
5189   *-64|*"-64 ") libmagic=64-bit;;
5190   *) libmagic=never-match;;
5191   esac
5192   lt_cv_deplibs_check_method=pass_all
5193   ;;
5194
5195 # This must be glibc/ELF.
5196 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5197   lt_cv_deplibs_check_method=pass_all
5198   ;;
5199
5200 netbsd* | netbsdelf*-gnu)
5201   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5202     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5203   else
5204     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5205   fi
5206   ;;
5207
5208 newos6*)
5209   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5210   lt_cv_file_magic_cmd=/usr/bin/file
5211   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5212   ;;
5213
5214 *nto* | *qnx*)
5215   lt_cv_deplibs_check_method=pass_all
5216   ;;
5217
5218 openbsd*)
5219   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5220     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5221   else
5222     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5223   fi
5224   ;;
5225
5226 osf3* | osf4* | osf5*)
5227   lt_cv_deplibs_check_method=pass_all
5228   ;;
5229
5230 rdos*)
5231   lt_cv_deplibs_check_method=pass_all
5232   ;;
5233
5234 solaris*)
5235   lt_cv_deplibs_check_method=pass_all
5236   ;;
5237
5238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5239   lt_cv_deplibs_check_method=pass_all
5240   ;;
5241
5242 sysv4 | sysv4.3*)
5243   case $host_vendor in
5244   motorola)
5245     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]'
5246     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5247     ;;
5248   ncr)
5249     lt_cv_deplibs_check_method=pass_all
5250     ;;
5251   sequent)
5252     lt_cv_file_magic_cmd='/bin/file'
5253     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5254     ;;
5255   sni)
5256     lt_cv_file_magic_cmd='/bin/file'
5257     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5258     lt_cv_file_magic_test_file=/lib/libc.so
5259     ;;
5260   siemens)
5261     lt_cv_deplibs_check_method=pass_all
5262     ;;
5263   pc)
5264     lt_cv_deplibs_check_method=pass_all
5265     ;;
5266   esac
5267   ;;
5268
5269 tpf*)
5270   lt_cv_deplibs_check_method=pass_all
5271   ;;
5272 esac
5273
5274 fi
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5276 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5277
5278 file_magic_glob=
5279 want_nocaseglob=no
5280 if test "$build" = "$host"; then
5281   case $host_os in
5282   mingw* | pw32*)
5283     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5284       want_nocaseglob=yes
5285     else
5286       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5287     fi
5288     ;;
5289   esac
5290 fi
5291
5292 file_magic_cmd=$lt_cv_file_magic_cmd
5293 deplibs_check_method=$lt_cv_deplibs_check_method
5294 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317 if test -n "$ac_tool_prefix"; then
5318   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5319 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5323   $as_echo_n "(cached) " >&6
5324 else
5325   if test -n "$DLLTOOL"; then
5326   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5327 else
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5330 do
5331   IFS=$as_save_IFS
5332   test -z "$as_dir" && as_dir=.
5333     for ac_exec_ext in '' $ac_executable_extensions; do
5334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5335     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337     break 2
5338   fi
5339 done
5340   done
5341 IFS=$as_save_IFS
5342
5343 fi
5344 fi
5345 DLLTOOL=$ac_cv_prog_DLLTOOL
5346 if test -n "$DLLTOOL"; then
5347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5348 $as_echo "$DLLTOOL" >&6; }
5349 else
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5352 fi
5353
5354
5355 fi
5356 if test -z "$ac_cv_prog_DLLTOOL"; then
5357   ac_ct_DLLTOOL=$DLLTOOL
5358   # Extract the first word of "dlltool", so it can be a program name with args.
5359 set dummy dlltool; ac_word=$2
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361 $as_echo_n "checking for $ac_word... " >&6; }
5362 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5363   $as_echo_n "(cached) " >&6
5364 else
5365   if test -n "$ac_ct_DLLTOOL"; then
5366   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5367 else
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH
5370 do
5371   IFS=$as_save_IFS
5372   test -z "$as_dir" && as_dir=.
5373     for ac_exec_ext in '' $ac_executable_extensions; do
5374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5375     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5377     break 2
5378   fi
5379 done
5380   done
5381 IFS=$as_save_IFS
5382
5383 fi
5384 fi
5385 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5386 if test -n "$ac_ct_DLLTOOL"; then
5387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5388 $as_echo "$ac_ct_DLLTOOL" >&6; }
5389 else
5390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 $as_echo "no" >&6; }
5392 fi
5393
5394   if test "x$ac_ct_DLLTOOL" = x; then
5395     DLLTOOL="false"
5396   else
5397     case $cross_compiling:$ac_tool_warned in
5398 yes:)
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5401 ac_tool_warned=yes ;;
5402 esac
5403     DLLTOOL=$ac_ct_DLLTOOL
5404   fi
5405 else
5406   DLLTOOL="$ac_cv_prog_DLLTOOL"
5407 fi
5408
5409 test -z "$DLLTOOL" && DLLTOOL=dlltool
5410
5411
5412
5413
5414
5415
5416
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5418 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5419 if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
5420   $as_echo_n "(cached) " >&6
5421 else
5422   lt_cv_sharedlib_from_linklib_cmd='unknown'
5423
5424 case $host_os in
5425 cygwin* | mingw* | pw32* | cegcc*)
5426   # two different shell functions defined in ltmain.sh
5427   # decide which to use based on capabilities of $DLLTOOL
5428   case `$DLLTOOL --help 2>&1` in
5429   *--identify-strict*)
5430     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5431     ;;
5432   *)
5433     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5434     ;;
5435   esac
5436   ;;
5437 *)
5438   # fallback: assume linklib IS sharedlib
5439   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5440   ;;
5441 esac
5442
5443 fi
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5445 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5446 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5447 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5448
5449
5450
5451
5452
5453
5454
5455
5456 if test -n "$ac_tool_prefix"; then
5457   for ac_prog in ar
5458   do
5459     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if test "${ac_cv_prog_AR+set}" = set; then :
5464   $as_echo_n "(cached) " >&6
5465 else
5466   if test -n "$AR"; then
5467   ac_cv_prog_AR="$AR" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472   IFS=$as_save_IFS
5473   test -z "$as_dir" && as_dir=.
5474     for ac_exec_ext in '' $ac_executable_extensions; do
5475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5476     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478     break 2
5479   fi
5480 done
5481   done
5482 IFS=$as_save_IFS
5483
5484 fi
5485 fi
5486 AR=$ac_cv_prog_AR
5487 if test -n "$AR"; then
5488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5489 $as_echo "$AR" >&6; }
5490 else
5491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493 fi
5494
5495
5496     test -n "$AR" && break
5497   done
5498 fi
5499 if test -z "$AR"; then
5500   ac_ct_AR=$AR
5501   for ac_prog in ar
5502 do
5503   # Extract the first word of "$ac_prog", so it can be a program name with args.
5504 set dummy $ac_prog; ac_word=$2
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5508   $as_echo_n "(cached) " >&6
5509 else
5510   if test -n "$ac_ct_AR"; then
5511   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516   IFS=$as_save_IFS
5517   test -z "$as_dir" && as_dir=.
5518     for ac_exec_ext in '' $ac_executable_extensions; do
5519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520     ac_cv_prog_ac_ct_AR="$ac_prog"
5521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522     break 2
5523   fi
5524 done
5525   done
5526 IFS=$as_save_IFS
5527
5528 fi
5529 fi
5530 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5531 if test -n "$ac_ct_AR"; then
5532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5533 $as_echo "$ac_ct_AR" >&6; }
5534 else
5535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537 fi
5538
5539
5540   test -n "$ac_ct_AR" && break
5541 done
5542
5543   if test "x$ac_ct_AR" = x; then
5544     AR="false"
5545   else
5546     case $cross_compiling:$ac_tool_warned in
5547 yes:)
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5550 ac_tool_warned=yes ;;
5551 esac
5552     AR=$ac_ct_AR
5553   fi
5554 fi
5555
5556 : ${AR=ar}
5557 : ${AR_FLAGS=cru}
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5570 $as_echo_n "checking for archiver @FILE support... " >&6; }
5571 if test "${lt_cv_ar_at_file+set}" = set; then :
5572   $as_echo_n "(cached) " >&6
5573 else
5574   lt_cv_ar_at_file=no
5575    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h.  */
5577
5578 int
5579 main ()
5580 {
5581
5582   ;
5583   return 0;
5584 }
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"; then :
5587   echo conftest.$ac_objext > conftest.lst
5588       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5589       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5590   (eval $lt_ar_try) 2>&5
5591   ac_status=$?
5592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5593   test $ac_status = 0; }
5594       if test "$ac_status" -eq 0; then
5595         # Ensure the archiver fails upon bogus file names.
5596         rm -f conftest.$ac_objext libconftest.a
5597         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5598   (eval $lt_ar_try) 2>&5
5599   ac_status=$?
5600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5601   test $ac_status = 0; }
5602         if test "$ac_status" -ne 0; then
5603           lt_cv_ar_at_file=@
5604         fi
5605       fi
5606       rm -f conftest.* libconftest.a
5607
5608 fi
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610
5611 fi
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5613 $as_echo "$lt_cv_ar_at_file" >&6; }
5614
5615 if test "x$lt_cv_ar_at_file" = xno; then
5616   archiver_list_spec=
5617 else
5618   archiver_list_spec=$lt_cv_ar_at_file
5619 fi
5620
5621
5622
5623
5624
5625
5626
5627 if test -n "$ac_tool_prefix"; then
5628   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5629 set dummy ${ac_tool_prefix}strip; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if test "${ac_cv_prog_STRIP+set}" = set; then :
5633   $as_echo_n "(cached) " >&6
5634 else
5635   if test -n "$STRIP"; then
5636   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5637 else
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5640 do
5641   IFS=$as_save_IFS
5642   test -z "$as_dir" && as_dir=.
5643     for ac_exec_ext in '' $ac_executable_extensions; do
5644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5645     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647     break 2
5648   fi
5649 done
5650   done
5651 IFS=$as_save_IFS
5652
5653 fi
5654 fi
5655 STRIP=$ac_cv_prog_STRIP
5656 if test -n "$STRIP"; then
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5658 $as_echo "$STRIP" >&6; }
5659 else
5660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5662 fi
5663
5664
5665 fi
5666 if test -z "$ac_cv_prog_STRIP"; then
5667   ac_ct_STRIP=$STRIP
5668   # Extract the first word of "strip", so it can be a program name with args.
5669 set dummy strip; ac_word=$2
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671 $as_echo_n "checking for $ac_word... " >&6; }
5672 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5673   $as_echo_n "(cached) " >&6
5674 else
5675   if test -n "$ac_ct_STRIP"; then
5676   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5677 else
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 for as_dir in $PATH
5680 do
5681   IFS=$as_save_IFS
5682   test -z "$as_dir" && as_dir=.
5683     for ac_exec_ext in '' $ac_executable_extensions; do
5684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5685     ac_cv_prog_ac_ct_STRIP="strip"
5686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687     break 2
5688   fi
5689 done
5690   done
5691 IFS=$as_save_IFS
5692
5693 fi
5694 fi
5695 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5696 if test -n "$ac_ct_STRIP"; then
5697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5698 $as_echo "$ac_ct_STRIP" >&6; }
5699 else
5700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5702 fi
5703
5704   if test "x$ac_ct_STRIP" = x; then
5705     STRIP=":"
5706   else
5707     case $cross_compiling:$ac_tool_warned in
5708 yes:)
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5711 ac_tool_warned=yes ;;
5712 esac
5713     STRIP=$ac_ct_STRIP
5714   fi
5715 else
5716   STRIP="$ac_cv_prog_STRIP"
5717 fi
5718
5719 test -z "$STRIP" && STRIP=:
5720
5721
5722
5723
5724
5725
5726 if test -n "$ac_tool_prefix"; then
5727   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5732   $as_echo_n "(cached) " >&6
5733 else
5734   if test -n "$RANLIB"; then
5735   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742     for ac_exec_ext in '' $ac_executable_extensions; do
5743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749   done
5750 IFS=$as_save_IFS
5751
5752 fi
5753 fi
5754 RANLIB=$ac_cv_prog_RANLIB
5755 if test -n "$RANLIB"; then
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5757 $as_echo "$RANLIB" >&6; }
5758 else
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762
5763
5764 fi
5765 if test -z "$ac_cv_prog_RANLIB"; then
5766   ac_ct_RANLIB=$RANLIB
5767   # Extract the first word of "ranlib", so it can be a program name with args.
5768 set dummy ranlib; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5772   $as_echo_n "(cached) " >&6
5773 else
5774   if test -n "$ac_ct_RANLIB"; then
5775   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780   IFS=$as_save_IFS
5781   test -z "$as_dir" && as_dir=.
5782     for ac_exec_ext in '' $ac_executable_extensions; do
5783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784     ac_cv_prog_ac_ct_RANLIB="ranlib"
5785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786     break 2
5787   fi
5788 done
5789   done
5790 IFS=$as_save_IFS
5791
5792 fi
5793 fi
5794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5795 if test -n "$ac_ct_RANLIB"; then
5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5797 $as_echo "$ac_ct_RANLIB" >&6; }
5798 else
5799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5801 fi
5802
5803   if test "x$ac_ct_RANLIB" = x; then
5804     RANLIB=":"
5805   else
5806     case $cross_compiling:$ac_tool_warned in
5807 yes:)
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5810 ac_tool_warned=yes ;;
5811 esac
5812     RANLIB=$ac_ct_RANLIB
5813   fi
5814 else
5815   RANLIB="$ac_cv_prog_RANLIB"
5816 fi
5817
5818 test -z "$RANLIB" && RANLIB=:
5819
5820
5821
5822
5823
5824
5825 # Determine commands to create old-style static archives.
5826 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5827 old_postinstall_cmds='chmod 644 $oldlib'
5828 old_postuninstall_cmds=
5829
5830 if test -n "$RANLIB"; then
5831   case $host_os in
5832   openbsd*)
5833     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5834     ;;
5835   *)
5836     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5837     ;;
5838   esac
5839   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5840 fi
5841
5842 case $host_os in
5843   darwin*)
5844     lock_old_archive_extraction=yes ;;
5845   *)
5846     lock_old_archive_extraction=no ;;
5847 esac
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887 # If no C compiler was specified, use CC.
5888 LTCC=${LTCC-"$CC"}
5889
5890 # If no C compiler flags were specified, use CFLAGS.
5891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5892
5893 # Allow CC to be a program name with arguments.
5894 compiler=$CC
5895
5896
5897 # Check for command to grab the raw symbol name followed by C symbol from nm.
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5899 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5900 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5901   $as_echo_n "(cached) " >&6
5902 else
5903
5904 # These are sane defaults that work on at least a few old systems.
5905 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5906
5907 # Character class describing NM global symbol codes.
5908 symcode='[BCDEGRST]'
5909
5910 # Regexp to match symbols that can be accessed directly from C.
5911 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5912
5913 # Define system-specific variables.
5914 case $host_os in
5915 aix*)
5916   symcode='[BCDT]'
5917   ;;
5918 cygwin* | mingw* | pw32* | cegcc*)
5919   symcode='[ABCDGISTW]'
5920   ;;
5921 hpux*)
5922   if test "$host_cpu" = ia64; then
5923     symcode='[ABCDEGRST]'
5924   fi
5925   ;;
5926 irix* | nonstopux*)
5927   symcode='[BCDEGRST]'
5928   ;;
5929 osf*)
5930   symcode='[BCDEGQRST]'
5931   ;;
5932 solaris*)
5933   symcode='[BDRT]'
5934   ;;
5935 sco3.2v5*)
5936   symcode='[DT]'
5937   ;;
5938 sysv4.2uw2*)
5939   symcode='[DT]'
5940   ;;
5941 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5942   symcode='[ABDT]'
5943   ;;
5944 sysv4)
5945   symcode='[DFNSTU]'
5946   ;;
5947 esac
5948
5949 # If we're using GNU nm, then use its standard symbol codes.
5950 case `$NM -V 2>&1` in
5951 *GNU* | *'with BFD'*)
5952   symcode='[ABCDGIRSTW]' ;;
5953 esac
5954
5955 # Transform an extracted symbol line into a proper C declaration.
5956 # Some systems (esp. on ia64) link data and code symbols differently,
5957 # so use this general approach.
5958 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5959
5960 # Transform an extracted symbol line into symbol name and symbol address
5961 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5962 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'"
5963
5964 # Handle CRLF in mingw tool chain
5965 opt_cr=
5966 case $build_os in
5967 mingw*)
5968   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5969   ;;
5970 esac
5971
5972 # Try without a prefix underscore, then with it.
5973 for ac_symprfx in "" "_"; do
5974
5975   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5976   symxfrm="\\1 $ac_symprfx\\2 \\2"
5977
5978   # Write the raw and C identifiers.
5979   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5980     # Fake it for dumpbin and say T for any non-static function
5981     # and D for any global variable.
5982     # Also find C++ and __fastcall symbols from MSVC++,
5983     # which start with @ or ?.
5984     lt_cv_sys_global_symbol_pipe="$AWK '"\
5985 "     {last_section=section; section=\$ 3};"\
5986 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5987 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5988 "     \$ 0!~/External *\|/{next};"\
5989 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5990 "     {if(hide[section]) next};"\
5991 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5992 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5993 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5994 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5995 "     ' prfx=^$ac_symprfx"
5996   else
5997     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5998   fi
5999   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6000
6001   # Check to see that the pipe works correctly.
6002   pipe_works=no
6003
6004   rm -f conftest*
6005   cat > conftest.$ac_ext <<_LT_EOF
6006 #ifdef __cplusplus
6007 extern "C" {
6008 #endif
6009 char nm_test_var;
6010 void nm_test_func(void);
6011 void nm_test_func(void){}
6012 #ifdef __cplusplus
6013 }
6014 #endif
6015 int main(){nm_test_var='a';nm_test_func();return(0);}
6016 _LT_EOF
6017
6018   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6019   (eval $ac_compile) 2>&5
6020   ac_status=$?
6021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6022   test $ac_status = 0; }; then
6023     # Now try to grab the symbols.
6024     nlist=conftest.nm
6025     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6026   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6027   ac_status=$?
6028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6029   test $ac_status = 0; } && test -s "$nlist"; then
6030       # Try sorting and uniquifying the output.
6031       if sort "$nlist" | uniq > "$nlist"T; then
6032         mv -f "$nlist"T "$nlist"
6033       else
6034         rm -f "$nlist"T
6035       fi
6036
6037       # Make sure that we snagged all the symbols we need.
6038       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6039         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6040           cat <<_LT_EOF > conftest.$ac_ext
6041 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6042 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6043 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6044    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6045 # define LT_DLSYM_CONST
6046 #elif defined(__osf__)
6047 /* This system does not cope well with relocations in const data.  */
6048 # define LT_DLSYM_CONST
6049 #else
6050 # define LT_DLSYM_CONST const
6051 #endif
6052
6053 #ifdef __cplusplus
6054 extern "C" {
6055 #endif
6056
6057 _LT_EOF
6058           # Now generate the symbol file.
6059           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6060
6061           cat <<_LT_EOF >> conftest.$ac_ext
6062
6063 /* The mapping between symbol names and symbols.  */
6064 LT_DLSYM_CONST struct {
6065   const char *name;
6066   void       *address;
6067 }
6068 lt__PROGRAM__LTX_preloaded_symbols[] =
6069 {
6070   { "@PROGRAM@", (void *) 0 },
6071 _LT_EOF
6072           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6073           cat <<\_LT_EOF >> conftest.$ac_ext
6074   {0, (void *) 0}
6075 };
6076
6077 /* This works around a problem in FreeBSD linker */
6078 #ifdef FREEBSD_WORKAROUND
6079 static const void *lt_preloaded_setup() {
6080   return lt__PROGRAM__LTX_preloaded_symbols;
6081 }
6082 #endif
6083
6084 #ifdef __cplusplus
6085 }
6086 #endif
6087 _LT_EOF
6088           # Now try linking the two files.
6089           mv conftest.$ac_objext conftstm.$ac_objext
6090           lt_globsym_save_LIBS=$LIBS
6091           lt_globsym_save_CFLAGS=$CFLAGS
6092           LIBS="conftstm.$ac_objext"
6093           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6094           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6095   (eval $ac_link) 2>&5
6096   ac_status=$?
6097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6098   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6099             pipe_works=yes
6100           fi
6101           LIBS=$lt_globsym_save_LIBS
6102           CFLAGS=$lt_globsym_save_CFLAGS
6103         else
6104           echo "cannot find nm_test_func in $nlist" >&5
6105         fi
6106       else
6107         echo "cannot find nm_test_var in $nlist" >&5
6108       fi
6109     else
6110       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6111     fi
6112   else
6113     echo "$progname: failed program was:" >&5
6114     cat conftest.$ac_ext >&5
6115   fi
6116   rm -rf conftest* conftst*
6117
6118   # Do not use the global_symbol_pipe unless it works.
6119   if test "$pipe_works" = yes; then
6120     break
6121   else
6122     lt_cv_sys_global_symbol_pipe=
6123   fi
6124 done
6125
6126 fi
6127
6128 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6129   lt_cv_sys_global_symbol_to_cdecl=
6130 fi
6131 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6133 $as_echo "failed" >&6; }
6134 else
6135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6136 $as_echo "ok" >&6; }
6137 fi
6138
6139 # Response file support.
6140 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6141   nm_file_list_spec='@'
6142 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6143   nm_file_list_spec='@'
6144 fi
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6173 $as_echo_n "checking for sysroot... " >&6; }
6174
6175 # Check whether --with-sysroot was given.
6176 if test "${with_sysroot+set}" = set; then :
6177   withval=$with_sysroot;
6178 else
6179   with_sysroot=no
6180 fi
6181
6182
6183 lt_sysroot=
6184 case ${with_sysroot} in #(
6185  yes)
6186    if test "$GCC" = yes; then
6187      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6188    fi
6189    ;; #(
6190  /*)
6191    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6192    ;; #(
6193  no|'')
6194    ;; #(
6195  *)
6196    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6197 $as_echo "${with_sysroot}" >&6; }
6198    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6199    ;;
6200 esac
6201
6202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6203 $as_echo "${lt_sysroot:-no}" >&6; }
6204
6205
6206
6207
6208
6209 # Check whether --enable-libtool-lock was given.
6210 if test "${enable_libtool_lock+set}" = set; then :
6211   enableval=$enable_libtool_lock;
6212 fi
6213
6214 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6215
6216 # Some flags need to be propagated to the compiler or linker for good
6217 # libtool support.
6218 case $host in
6219 ia64-*-hpux*)
6220   # Find out which ABI we are using.
6221   echo 'int i;' > conftest.$ac_ext
6222   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6223   (eval $ac_compile) 2>&5
6224   ac_status=$?
6225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226   test $ac_status = 0; }; then
6227     case `/usr/bin/file conftest.$ac_objext` in
6228       *ELF-32*)
6229         HPUX_IA64_MODE="32"
6230         ;;
6231       *ELF-64*)
6232         HPUX_IA64_MODE="64"
6233         ;;
6234     esac
6235   fi
6236   rm -rf conftest*
6237   ;;
6238 *-*-irix6*)
6239   # Find out which ABI we are using.
6240   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6241   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6242   (eval $ac_compile) 2>&5
6243   ac_status=$?
6244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245   test $ac_status = 0; }; then
6246     if test "$lt_cv_prog_gnu_ld" = yes; then
6247       case `/usr/bin/file conftest.$ac_objext` in
6248         *32-bit*)
6249           LD="${LD-ld} -melf32bsmip"
6250           ;;
6251         *N32*)
6252           LD="${LD-ld} -melf32bmipn32"
6253           ;;
6254         *64-bit*)
6255           LD="${LD-ld} -melf64bmip"
6256         ;;
6257       esac
6258     else
6259       case `/usr/bin/file conftest.$ac_objext` in
6260         *32-bit*)
6261           LD="${LD-ld} -32"
6262           ;;
6263         *N32*)
6264           LD="${LD-ld} -n32"
6265           ;;
6266         *64-bit*)
6267           LD="${LD-ld} -64"
6268           ;;
6269       esac
6270     fi
6271   fi
6272   rm -rf conftest*
6273   ;;
6274
6275 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6276 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6277   # Find out which ABI we are using.
6278   echo 'int i;' > conftest.$ac_ext
6279   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6280   (eval $ac_compile) 2>&5
6281   ac_status=$?
6282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6283   test $ac_status = 0; }; then
6284     case `/usr/bin/file conftest.o` in
6285       *32-bit*)
6286         case $host in
6287           x86_64-*kfreebsd*-gnu)
6288             LD="${LD-ld} -m elf_i386_fbsd"
6289             ;;
6290           x86_64-*linux*)
6291             LD="${LD-ld} -m elf_i386"
6292             ;;
6293           ppc64-*linux*|powerpc64-*linux*)
6294             LD="${LD-ld} -m elf32ppclinux"
6295             ;;
6296           s390x-*linux*)
6297             LD="${LD-ld} -m elf_s390"
6298             ;;
6299           sparc64-*linux*)
6300             LD="${LD-ld} -m elf32_sparc"
6301             ;;
6302         esac
6303         ;;
6304       *64-bit*)
6305         case $host in
6306           x86_64-*kfreebsd*-gnu)
6307             LD="${LD-ld} -m elf_x86_64_fbsd"
6308             ;;
6309           x86_64-*linux*)
6310             LD="${LD-ld} -m elf_x86_64"
6311             ;;
6312           ppc*-*linux*|powerpc*-*linux*)
6313             LD="${LD-ld} -m elf64ppc"
6314             ;;
6315           s390*-*linux*|s390*-*tpf*)
6316             LD="${LD-ld} -m elf64_s390"
6317             ;;
6318           sparc*-*linux*)
6319             LD="${LD-ld} -m elf64_sparc"
6320             ;;
6321         esac
6322         ;;
6323     esac
6324   fi
6325   rm -rf conftest*
6326   ;;
6327
6328 *-*-sco3.2v5*)
6329   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6330   SAVE_CFLAGS="$CFLAGS"
6331   CFLAGS="$CFLAGS -belf"
6332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6333 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6334 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6335   $as_echo_n "(cached) " >&6
6336 else
6337   ac_ext=c
6338 ac_cpp='$CPP $CPPFLAGS'
6339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6342
6343      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h.  */
6345
6346 int
6347 main ()
6348 {
6349
6350   ;
6351   return 0;
6352 }
6353 _ACEOF
6354 if ac_fn_c_try_link "$LINENO"; then :
6355   lt_cv_cc_needs_belf=yes
6356 else
6357   lt_cv_cc_needs_belf=no
6358 fi
6359 rm -f core conftest.err conftest.$ac_objext \
6360     conftest$ac_exeext conftest.$ac_ext
6361      ac_ext=c
6362 ac_cpp='$CPP $CPPFLAGS'
6363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6366
6367 fi
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6369 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6370   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6371     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6372     CFLAGS="$SAVE_CFLAGS"
6373   fi
6374   ;;
6375 *-*solaris*)
6376   # Find out which ABI we are using.
6377   echo 'int i;' > conftest.$ac_ext
6378   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6379   (eval $ac_compile) 2>&5
6380   ac_status=$?
6381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6382   test $ac_status = 0; }; then
6383     case `/usr/bin/file conftest.o` in
6384     *64-bit*)
6385       case $lt_cv_prog_gnu_ld in
6386       yes*)
6387         case $host in
6388         i?86-*-solaris*)
6389           LD="${LD-ld} -m elf_x86_64"
6390           ;;
6391         sparc*-*-solaris*)
6392           LD="${LD-ld} -m elf64_sparc"
6393           ;;
6394         esac
6395         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6396         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6397           LD="${LD-ld}_sol2"
6398         fi
6399         ;;
6400       *)
6401         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6402           LD="${LD-ld} -64"
6403         fi
6404         ;;
6405       esac
6406       ;;
6407     esac
6408   fi
6409   rm -rf conftest*
6410   ;;
6411 esac
6412
6413 need_locks="$enable_libtool_lock"
6414
6415 if test -n "$ac_tool_prefix"; then
6416   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6417 set dummy ${ac_tool_prefix}mt; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
6421   $as_echo_n "(cached) " >&6
6422 else
6423   if test -n "$MANIFEST_TOOL"; then
6424   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6428 do
6429   IFS=$as_save_IFS
6430   test -z "$as_dir" && as_dir=.
6431     for ac_exec_ext in '' $ac_executable_extensions; do
6432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435     break 2
6436   fi
6437 done
6438   done
6439 IFS=$as_save_IFS
6440
6441 fi
6442 fi
6443 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6444 if test -n "$MANIFEST_TOOL"; then
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6446 $as_echo "$MANIFEST_TOOL" >&6; }
6447 else
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6450 fi
6451
6452
6453 fi
6454 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6455   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6456   # Extract the first word of "mt", so it can be a program name with args.
6457 set dummy mt; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
6461   $as_echo_n "(cached) " >&6
6462 else
6463   if test -n "$ac_ct_MANIFEST_TOOL"; then
6464   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469   IFS=$as_save_IFS
6470   test -z "$as_dir" && as_dir=.
6471     for ac_exec_ext in '' $ac_executable_extensions; do
6472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475     break 2
6476   fi
6477 done
6478   done
6479 IFS=$as_save_IFS
6480
6481 fi
6482 fi
6483 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6484 if test -n "$ac_ct_MANIFEST_TOOL"; then
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6486 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6487 else
6488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6490 fi
6491
6492   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6493     MANIFEST_TOOL=":"
6494   else
6495     case $cross_compiling:$ac_tool_warned in
6496 yes:)
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6499 ac_tool_warned=yes ;;
6500 esac
6501     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6502   fi
6503 else
6504   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6505 fi
6506
6507 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6509 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6510 if test "${lt_cv_path_mainfest_tool+set}" = set; then :
6511   $as_echo_n "(cached) " >&6
6512 else
6513   lt_cv_path_mainfest_tool=no
6514   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6515   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6516   cat conftest.err >&5
6517   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6518     lt_cv_path_mainfest_tool=yes
6519   fi
6520   rm -f conftest*
6521 fi
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6523 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6524 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6525   MANIFEST_TOOL=:
6526 fi
6527
6528
6529
6530
6531
6532
6533   case $host_os in
6534     rhapsody* | darwin*)
6535     if test -n "$ac_tool_prefix"; then
6536   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6537 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539 $as_echo_n "checking for $ac_word... " >&6; }
6540 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6541   $as_echo_n "(cached) " >&6
6542 else
6543   if test -n "$DSYMUTIL"; then
6544   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6545 else
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6548 do
6549   IFS=$as_save_IFS
6550   test -z "$as_dir" && as_dir=.
6551     for ac_exec_ext in '' $ac_executable_extensions; do
6552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555     break 2
6556   fi
6557 done
6558   done
6559 IFS=$as_save_IFS
6560
6561 fi
6562 fi
6563 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6564 if test -n "$DSYMUTIL"; then
6565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6566 $as_echo "$DSYMUTIL" >&6; }
6567 else
6568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
6570 fi
6571
6572
6573 fi
6574 if test -z "$ac_cv_prog_DSYMUTIL"; then
6575   ac_ct_DSYMUTIL=$DSYMUTIL
6576   # Extract the first word of "dsymutil", so it can be a program name with args.
6577 set dummy dsymutil; ac_word=$2
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579 $as_echo_n "checking for $ac_word... " >&6; }
6580 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6581   $as_echo_n "(cached) " >&6
6582 else
6583   if test -n "$ac_ct_DSYMUTIL"; then
6584   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6585 else
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 for as_dir in $PATH
6588 do
6589   IFS=$as_save_IFS
6590   test -z "$as_dir" && as_dir=.
6591     for ac_exec_ext in '' $ac_executable_extensions; do
6592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6593     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595     break 2
6596   fi
6597 done
6598   done
6599 IFS=$as_save_IFS
6600
6601 fi
6602 fi
6603 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6604 if test -n "$ac_ct_DSYMUTIL"; then
6605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6606 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6607 else
6608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609 $as_echo "no" >&6; }
6610 fi
6611
6612   if test "x$ac_ct_DSYMUTIL" = x; then
6613     DSYMUTIL=":"
6614   else
6615     case $cross_compiling:$ac_tool_warned in
6616 yes:)
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6619 ac_tool_warned=yes ;;
6620 esac
6621     DSYMUTIL=$ac_ct_DSYMUTIL
6622   fi
6623 else
6624   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6625 fi
6626
6627     if test -n "$ac_tool_prefix"; then
6628   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6629 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 $as_echo_n "checking for $ac_word... " >&6; }
6632 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6633   $as_echo_n "(cached) " >&6
6634 else
6635   if test -n "$NMEDIT"; then
6636   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6637 else
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6640 do
6641   IFS=$as_save_IFS
6642   test -z "$as_dir" && as_dir=.
6643     for ac_exec_ext in '' $ac_executable_extensions; do
6644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647     break 2
6648   fi
6649 done
6650   done
6651 IFS=$as_save_IFS
6652
6653 fi
6654 fi
6655 NMEDIT=$ac_cv_prog_NMEDIT
6656 if test -n "$NMEDIT"; then
6657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6658 $as_echo "$NMEDIT" >&6; }
6659 else
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6662 fi
6663
6664
6665 fi
6666 if test -z "$ac_cv_prog_NMEDIT"; then
6667   ac_ct_NMEDIT=$NMEDIT
6668   # Extract the first word of "nmedit", so it can be a program name with args.
6669 set dummy nmedit; ac_word=$2
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6673   $as_echo_n "(cached) " >&6
6674 else
6675   if test -n "$ac_ct_NMEDIT"; then
6676   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681   IFS=$as_save_IFS
6682   test -z "$as_dir" && as_dir=.
6683     for ac_exec_ext in '' $ac_executable_extensions; do
6684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687     break 2
6688   fi
6689 done
6690   done
6691 IFS=$as_save_IFS
6692
6693 fi
6694 fi
6695 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6696 if test -n "$ac_ct_NMEDIT"; then
6697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6698 $as_echo "$ac_ct_NMEDIT" >&6; }
6699 else
6700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6702 fi
6703
6704   if test "x$ac_ct_NMEDIT" = x; then
6705     NMEDIT=":"
6706   else
6707     case $cross_compiling:$ac_tool_warned in
6708 yes:)
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6711 ac_tool_warned=yes ;;
6712 esac
6713     NMEDIT=$ac_ct_NMEDIT
6714   fi
6715 else
6716   NMEDIT="$ac_cv_prog_NMEDIT"
6717 fi
6718
6719     if test -n "$ac_tool_prefix"; then
6720   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if test "${ac_cv_prog_LIPO+set}" = set; then :
6725   $as_echo_n "(cached) " >&6
6726 else
6727   if test -n "$LIPO"; then
6728   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733   IFS=$as_save_IFS
6734   test -z "$as_dir" && as_dir=.
6735     for ac_exec_ext in '' $ac_executable_extensions; do
6736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739     break 2
6740   fi
6741 done
6742   done
6743 IFS=$as_save_IFS
6744
6745 fi
6746 fi
6747 LIPO=$ac_cv_prog_LIPO
6748 if test -n "$LIPO"; then
6749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6750 $as_echo "$LIPO" >&6; }
6751 else
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6754 fi
6755
6756
6757 fi
6758 if test -z "$ac_cv_prog_LIPO"; then
6759   ac_ct_LIPO=$LIPO
6760   # Extract the first word of "lipo", so it can be a program name with args.
6761 set dummy lipo; ac_word=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6765   $as_echo_n "(cached) " >&6
6766 else
6767   if test -n "$ac_ct_LIPO"; then
6768   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6772 do
6773   IFS=$as_save_IFS
6774   test -z "$as_dir" && as_dir=.
6775     for ac_exec_ext in '' $ac_executable_extensions; do
6776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777     ac_cv_prog_ac_ct_LIPO="lipo"
6778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779     break 2
6780   fi
6781 done
6782   done
6783 IFS=$as_save_IFS
6784
6785 fi
6786 fi
6787 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6788 if test -n "$ac_ct_LIPO"; then
6789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6790 $as_echo "$ac_ct_LIPO" >&6; }
6791 else
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6794 fi
6795
6796   if test "x$ac_ct_LIPO" = x; then
6797     LIPO=":"
6798   else
6799     case $cross_compiling:$ac_tool_warned in
6800 yes:)
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803 ac_tool_warned=yes ;;
6804 esac
6805     LIPO=$ac_ct_LIPO
6806   fi
6807 else
6808   LIPO="$ac_cv_prog_LIPO"
6809 fi
6810
6811     if test -n "$ac_tool_prefix"; then
6812   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6813 set dummy ${ac_tool_prefix}otool; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6817   $as_echo_n "(cached) " >&6
6818 else
6819   if test -n "$OTOOL"; then
6820   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827     for ac_exec_ext in '' $ac_executable_extensions; do
6828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831     break 2
6832   fi
6833 done
6834   done
6835 IFS=$as_save_IFS
6836
6837 fi
6838 fi
6839 OTOOL=$ac_cv_prog_OTOOL
6840 if test -n "$OTOOL"; then
6841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6842 $as_echo "$OTOOL" >&6; }
6843 else
6844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6846 fi
6847
6848
6849 fi
6850 if test -z "$ac_cv_prog_OTOOL"; then
6851   ac_ct_OTOOL=$OTOOL
6852   # Extract the first word of "otool", so it can be a program name with args.
6853 set dummy otool; ac_word=$2
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 $as_echo_n "checking for $ac_word... " >&6; }
6856 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6857   $as_echo_n "(cached) " >&6
6858 else
6859   if test -n "$ac_ct_OTOOL"; then
6860   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865   IFS=$as_save_IFS
6866   test -z "$as_dir" && as_dir=.
6867     for ac_exec_ext in '' $ac_executable_extensions; do
6868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869     ac_cv_prog_ac_ct_OTOOL="otool"
6870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871     break 2
6872   fi
6873 done
6874   done
6875 IFS=$as_save_IFS
6876
6877 fi
6878 fi
6879 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6880 if test -n "$ac_ct_OTOOL"; then
6881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6882 $as_echo "$ac_ct_OTOOL" >&6; }
6883 else
6884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6886 fi
6887
6888   if test "x$ac_ct_OTOOL" = x; then
6889     OTOOL=":"
6890   else
6891     case $cross_compiling:$ac_tool_warned in
6892 yes:)
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6895 ac_tool_warned=yes ;;
6896 esac
6897     OTOOL=$ac_ct_OTOOL
6898   fi
6899 else
6900   OTOOL="$ac_cv_prog_OTOOL"
6901 fi
6902
6903     if test -n "$ac_tool_prefix"; then
6904   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6905 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6909   $as_echo_n "(cached) " >&6
6910 else
6911   if test -n "$OTOOL64"; then
6912   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917   IFS=$as_save_IFS
6918   test -z "$as_dir" && as_dir=.
6919     for ac_exec_ext in '' $ac_executable_extensions; do
6920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6921     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923     break 2
6924   fi
6925 done
6926   done
6927 IFS=$as_save_IFS
6928
6929 fi
6930 fi
6931 OTOOL64=$ac_cv_prog_OTOOL64
6932 if test -n "$OTOOL64"; then
6933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6934 $as_echo "$OTOOL64" >&6; }
6935 else
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6938 fi
6939
6940
6941 fi
6942 if test -z "$ac_cv_prog_OTOOL64"; then
6943   ac_ct_OTOOL64=$OTOOL64
6944   # Extract the first word of "otool64", so it can be a program name with args.
6945 set dummy otool64; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6949   $as_echo_n "(cached) " >&6
6950 else
6951   if test -n "$ac_ct_OTOOL64"; then
6952   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6953 else
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957   IFS=$as_save_IFS
6958   test -z "$as_dir" && as_dir=.
6959     for ac_exec_ext in '' $ac_executable_extensions; do
6960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6961     ac_cv_prog_ac_ct_OTOOL64="otool64"
6962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963     break 2
6964   fi
6965 done
6966   done
6967 IFS=$as_save_IFS
6968
6969 fi
6970 fi
6971 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6972 if test -n "$ac_ct_OTOOL64"; then
6973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6974 $as_echo "$ac_ct_OTOOL64" >&6; }
6975 else
6976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6978 fi
6979
6980   if test "x$ac_ct_OTOOL64" = x; then
6981     OTOOL64=":"
6982   else
6983     case $cross_compiling:$ac_tool_warned in
6984 yes:)
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987 ac_tool_warned=yes ;;
6988 esac
6989     OTOOL64=$ac_ct_OTOOL64
6990   fi
6991 else
6992   OTOOL64="$ac_cv_prog_OTOOL64"
6993 fi
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7022 $as_echo_n "checking for -single_module linker flag... " >&6; }
7023 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7024   $as_echo_n "(cached) " >&6
7025 else
7026   lt_cv_apple_cc_single_mod=no
7027       if test -z "${LT_MULTI_MODULE}"; then
7028         # By default we will add the -single_module flag. You can override
7029         # by either setting the environment variable LT_MULTI_MODULE
7030         # non-empty at configure time, or by adding -multi_module to the
7031         # link flags.
7032         rm -rf libconftest.dylib*
7033         echo "int foo(void){return 1;}" > conftest.c
7034         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7035 -dynamiclib -Wl,-single_module conftest.c" >&5
7036         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7037           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7038         _lt_result=$?
7039         # If there is a non-empty error log, and "single_module"
7040         # appears in it, assume the flag caused a linker warning
7041         if test -s conftest.err && $GREP single_module conftest.err; then
7042           cat conftest.err >&5
7043         # Otherwise, if the output was created with a 0 exit code from
7044         # the compiler, it worked.
7045         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7046           lt_cv_apple_cc_single_mod=yes
7047         else
7048           cat conftest.err >&5
7049         fi
7050         rm -rf libconftest.dylib*
7051         rm -f conftest.*
7052       fi
7053 fi
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7055 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7056
7057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7058 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7059 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7060   $as_echo_n "(cached) " >&6
7061 else
7062   lt_cv_ld_exported_symbols_list=no
7063       save_LDFLAGS=$LDFLAGS
7064       echo "_main" > conftest.sym
7065       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7066       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h.  */
7068
7069 int
7070 main ()
7071 {
7072
7073   ;
7074   return 0;
7075 }
7076 _ACEOF
7077 if ac_fn_c_try_link "$LINENO"; then :
7078   lt_cv_ld_exported_symbols_list=yes
7079 else
7080   lt_cv_ld_exported_symbols_list=no
7081 fi
7082 rm -f core conftest.err conftest.$ac_objext \
7083     conftest$ac_exeext conftest.$ac_ext
7084         LDFLAGS="$save_LDFLAGS"
7085
7086 fi
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7088 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7089
7090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7091 $as_echo_n "checking for -force_load linker flag... " >&6; }
7092 if test "${lt_cv_ld_force_load+set}" = set; then :
7093   $as_echo_n "(cached) " >&6
7094 else
7095   lt_cv_ld_force_load=no
7096       cat > conftest.c << _LT_EOF
7097 int forced_loaded() { return 2;}
7098 _LT_EOF
7099       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7100       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7101       echo "$AR cru libconftest.a conftest.o" >&5
7102       $AR cru libconftest.a conftest.o 2>&5
7103       echo "$RANLIB libconftest.a" >&5
7104       $RANLIB libconftest.a 2>&5
7105       cat > conftest.c << _LT_EOF
7106 int main() { return 0;}
7107 _LT_EOF
7108       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7109       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7110       _lt_result=$?
7111       if test -s conftest.err && $GREP force_load conftest.err; then
7112         cat conftest.err >&5
7113       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7114         lt_cv_ld_force_load=yes
7115       else
7116         cat conftest.err >&5
7117       fi
7118         rm -f conftest.err libconftest.a conftest conftest.c
7119         rm -rf conftest.dSYM
7120
7121 fi
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7123 $as_echo "$lt_cv_ld_force_load" >&6; }
7124     case $host_os in
7125     rhapsody* | darwin1.[012])
7126       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7127     darwin1.*)
7128       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7129     darwin*) # darwin 5.x on
7130       # if running on 10.5 or later, the deployment target defaults
7131       # to the OS version, if on x86, and 10.4, the deployment
7132       # target defaults to 10.4. Don't you love it?
7133       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7134         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7135           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7136         10.[012]*)
7137           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7138         10.*)
7139           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7140       esac
7141     ;;
7142   esac
7143     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7144       _lt_dar_single_mod='$single_module'
7145     fi
7146     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7147       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7148     else
7149       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7150     fi
7151     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7152       _lt_dsymutil='~$DSYMUTIL $lib || :'
7153     else
7154       _lt_dsymutil=
7155     fi
7156     ;;
7157   esac
7158
7159 ac_ext=c
7160 ac_cpp='$CPP $CPPFLAGS'
7161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7165 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7166 # On Suns, sometimes $CPP names a directory.
7167 if test -n "$CPP" && test -d "$CPP"; then
7168   CPP=
7169 fi
7170 if test -z "$CPP"; then
7171   if test "${ac_cv_prog_CPP+set}" = set; then :
7172   $as_echo_n "(cached) " >&6
7173 else
7174       # Double quotes because CPP needs to be expanded
7175     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7176     do
7177       ac_preproc_ok=false
7178 for ac_c_preproc_warn_flag in '' yes
7179 do
7180   # Use a header file that comes with gcc, so configuring glibc
7181   # with a fresh cross-compiler works.
7182   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7183   # <limits.h> exists even on freestanding compilers.
7184   # On the NeXT, cc -E runs the code through the compiler's parser,
7185   # not just through cpp. "Syntax error" is here to catch this case.
7186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h.  */
7188 #ifdef __STDC__
7189 # include <limits.h>
7190 #else
7191 # include <assert.h>
7192 #endif
7193                      Syntax error
7194 _ACEOF
7195 if ac_fn_c_try_cpp "$LINENO"; then :
7196
7197 else
7198   # Broken: fails on valid input.
7199 continue
7200 fi
7201 rm -f conftest.err conftest.i conftest.$ac_ext
7202
7203   # OK, works on sane cases.  Now check whether nonexistent headers
7204   # can be detected and how.
7205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h.  */
7207 #include <ac_nonexistent.h>
7208 _ACEOF
7209 if ac_fn_c_try_cpp "$LINENO"; then :
7210   # Broken: success on invalid input.
7211 continue
7212 else
7213   # Passes both tests.
7214 ac_preproc_ok=:
7215 break
7216 fi
7217 rm -f conftest.err conftest.i conftest.$ac_ext
7218
7219 done
7220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7221 rm -f conftest.i conftest.err conftest.$ac_ext
7222 if $ac_preproc_ok; then :
7223   break
7224 fi
7225
7226     done
7227     ac_cv_prog_CPP=$CPP
7228
7229 fi
7230   CPP=$ac_cv_prog_CPP
7231 else
7232   ac_cv_prog_CPP=$CPP
7233 fi
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7235 $as_echo "$CPP" >&6; }
7236 ac_preproc_ok=false
7237 for ac_c_preproc_warn_flag in '' yes
7238 do
7239   # Use a header file that comes with gcc, so configuring glibc
7240   # with a fresh cross-compiler works.
7241   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7242   # <limits.h> exists even on freestanding compilers.
7243   # On the NeXT, cc -E runs the code through the compiler's parser,
7244   # not just through cpp. "Syntax error" is here to catch this case.
7245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h.  */
7247 #ifdef __STDC__
7248 # include <limits.h>
7249 #else
7250 # include <assert.h>
7251 #endif
7252                      Syntax error
7253 _ACEOF
7254 if ac_fn_c_try_cpp "$LINENO"; then :
7255
7256 else
7257   # Broken: fails on valid input.
7258 continue
7259 fi
7260 rm -f conftest.err conftest.i conftest.$ac_ext
7261
7262   # OK, works on sane cases.  Now check whether nonexistent headers
7263   # can be detected and how.
7264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h.  */
7266 #include <ac_nonexistent.h>
7267 _ACEOF
7268 if ac_fn_c_try_cpp "$LINENO"; then :
7269   # Broken: success on invalid input.
7270 continue
7271 else
7272   # Passes both tests.
7273 ac_preproc_ok=:
7274 break
7275 fi
7276 rm -f conftest.err conftest.i conftest.$ac_ext
7277
7278 done
7279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7280 rm -f conftest.i conftest.err conftest.$ac_ext
7281 if $ac_preproc_ok; then :
7282
7283 else
7284   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7286 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7287 See \`config.log' for more details" "$LINENO" 5 ; }
7288 fi
7289
7290 ac_ext=c
7291 ac_cpp='$CPP $CPPFLAGS'
7292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7295
7296
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7298 $as_echo_n "checking for ANSI C header files... " >&6; }
7299 if test "${ac_cv_header_stdc+set}" = set; then :
7300   $as_echo_n "(cached) " >&6
7301 else
7302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h.  */
7304 #include <stdlib.h>
7305 #include <stdarg.h>
7306 #include <string.h>
7307 #include <float.h>
7308
7309 int
7310 main ()
7311 {
7312
7313   ;
7314   return 0;
7315 }
7316 _ACEOF
7317 if ac_fn_c_try_compile "$LINENO"; then :
7318   ac_cv_header_stdc=yes
7319 else
7320   ac_cv_header_stdc=no
7321 fi
7322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323
7324 if test $ac_cv_header_stdc = yes; then
7325   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327 /* end confdefs.h.  */
7328 #include <string.h>
7329
7330 _ACEOF
7331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7332   $EGREP "memchr" >/dev/null 2>&1; then :
7333
7334 else
7335   ac_cv_header_stdc=no
7336 fi
7337 rm -f conftest*
7338
7339 fi
7340
7341 if test $ac_cv_header_stdc = yes; then
7342   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h.  */
7345 #include <stdlib.h>
7346
7347 _ACEOF
7348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7349   $EGREP "free" >/dev/null 2>&1; then :
7350
7351 else
7352   ac_cv_header_stdc=no
7353 fi
7354 rm -f conftest*
7355
7356 fi
7357
7358 if test $ac_cv_header_stdc = yes; then
7359   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7360   if test "$cross_compiling" = yes; then :
7361   :
7362 else
7363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h.  */
7365 #include <ctype.h>
7366 #include <stdlib.h>
7367 #if ((' ' & 0x0FF) == 0x020)
7368 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7369 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7370 #else
7371 # define ISLOWER(c) \
7372                    (('a' <= (c) && (c) <= 'i') \
7373                      || ('j' <= (c) && (c) <= 'r') \
7374                      || ('s' <= (c) && (c) <= 'z'))
7375 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7376 #endif
7377
7378 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7379 int
7380 main ()
7381 {
7382   int i;
7383   for (i = 0; i < 256; i++)
7384     if (XOR (islower (i), ISLOWER (i))
7385         || toupper (i) != TOUPPER (i))
7386       return 2;
7387   return 0;
7388 }
7389 _ACEOF
7390 if ac_fn_c_try_run "$LINENO"; then :
7391
7392 else
7393   ac_cv_header_stdc=no
7394 fi
7395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7396   conftest.$ac_objext conftest.beam conftest.$ac_ext
7397 fi
7398
7399 fi
7400 fi
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7402 $as_echo "$ac_cv_header_stdc" >&6; }
7403 if test $ac_cv_header_stdc = yes; then
7404
7405 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7406
7407 fi
7408
7409 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7410 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7411                   inttypes.h stdint.h unistd.h
7412 do :
7413   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7414 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7415 "
7416 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7417   cat >>confdefs.h <<_ACEOF
7418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7419 _ACEOF
7420
7421 fi
7422
7423 done
7424
7425
7426 for ac_header in dlfcn.h
7427 do :
7428   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7429 "
7430 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7431   cat >>confdefs.h <<_ACEOF
7432 #define HAVE_DLFCN_H 1
7433 _ACEOF
7434
7435 fi
7436
7437 done
7438
7439
7440
7441
7442
7443 # Set options
7444 enable_win32_dll=yes
7445
7446 case $host in
7447 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7448   if test -n "$ac_tool_prefix"; then
7449   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7450 set dummy ${ac_tool_prefix}as; ac_word=$2
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if test "${ac_cv_prog_AS+set}" = set; then :
7454   $as_echo_n "(cached) " >&6
7455 else
7456   if test -n "$AS"; then
7457   ac_cv_prog_AS="$AS" # Let the user override the test.
7458 else
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462   IFS=$as_save_IFS
7463   test -z "$as_dir" && as_dir=.
7464     for ac_exec_ext in '' $ac_executable_extensions; do
7465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7466     ac_cv_prog_AS="${ac_tool_prefix}as"
7467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468     break 2
7469   fi
7470 done
7471   done
7472 IFS=$as_save_IFS
7473
7474 fi
7475 fi
7476 AS=$ac_cv_prog_AS
7477 if test -n "$AS"; then
7478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7479 $as_echo "$AS" >&6; }
7480 else
7481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7483 fi
7484
7485
7486 fi
7487 if test -z "$ac_cv_prog_AS"; then
7488   ac_ct_AS=$AS
7489   # Extract the first word of "as", so it can be a program name with args.
7490 set dummy as; ac_word=$2
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492 $as_echo_n "checking for $ac_word... " >&6; }
7493 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7494   $as_echo_n "(cached) " >&6
7495 else
7496   if test -n "$ac_ct_AS"; then
7497   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7498 else
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500 for as_dir in $PATH
7501 do
7502   IFS=$as_save_IFS
7503   test -z "$as_dir" && as_dir=.
7504     for ac_exec_ext in '' $ac_executable_extensions; do
7505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7506     ac_cv_prog_ac_ct_AS="as"
7507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508     break 2
7509   fi
7510 done
7511   done
7512 IFS=$as_save_IFS
7513
7514 fi
7515 fi
7516 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7517 if test -n "$ac_ct_AS"; then
7518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7519 $as_echo "$ac_ct_AS" >&6; }
7520 else
7521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7523 fi
7524
7525   if test "x$ac_ct_AS" = x; then
7526     AS="false"
7527   else
7528     case $cross_compiling:$ac_tool_warned in
7529 yes:)
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7532 ac_tool_warned=yes ;;
7533 esac
7534     AS=$ac_ct_AS
7535   fi
7536 else
7537   AS="$ac_cv_prog_AS"
7538 fi
7539
7540   if test -n "$ac_tool_prefix"; then
7541   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7542 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7546   $as_echo_n "(cached) " >&6
7547 else
7548   if test -n "$DLLTOOL"; then
7549   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554   IFS=$as_save_IFS
7555   test -z "$as_dir" && as_dir=.
7556     for ac_exec_ext in '' $ac_executable_extensions; do
7557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7558     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560     break 2
7561   fi
7562 done
7563   done
7564 IFS=$as_save_IFS
7565
7566 fi
7567 fi
7568 DLLTOOL=$ac_cv_prog_DLLTOOL
7569 if test -n "$DLLTOOL"; then
7570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7571 $as_echo "$DLLTOOL" >&6; }
7572 else
7573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7575 fi
7576
7577
7578 fi
7579 if test -z "$ac_cv_prog_DLLTOOL"; then
7580   ac_ct_DLLTOOL=$DLLTOOL
7581   # Extract the first word of "dlltool", so it can be a program name with args.
7582 set dummy dlltool; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7586   $as_echo_n "(cached) " >&6
7587 else
7588   if test -n "$ac_ct_DLLTOOL"; then
7589   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594   IFS=$as_save_IFS
7595   test -z "$as_dir" && as_dir=.
7596     for ac_exec_ext in '' $ac_executable_extensions; do
7597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600     break 2
7601   fi
7602 done
7603   done
7604 IFS=$as_save_IFS
7605
7606 fi
7607 fi
7608 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7609 if test -n "$ac_ct_DLLTOOL"; then
7610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7611 $as_echo "$ac_ct_DLLTOOL" >&6; }
7612 else
7613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7615 fi
7616
7617   if test "x$ac_ct_DLLTOOL" = x; then
7618     DLLTOOL="false"
7619   else
7620     case $cross_compiling:$ac_tool_warned in
7621 yes:)
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7624 ac_tool_warned=yes ;;
7625 esac
7626     DLLTOOL=$ac_ct_DLLTOOL
7627   fi
7628 else
7629   DLLTOOL="$ac_cv_prog_DLLTOOL"
7630 fi
7631
7632   if test -n "$ac_tool_prefix"; then
7633   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7634 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7638   $as_echo_n "(cached) " >&6
7639 else
7640   if test -n "$OBJDUMP"; then
7641   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646   IFS=$as_save_IFS
7647   test -z "$as_dir" && as_dir=.
7648     for ac_exec_ext in '' $ac_executable_extensions; do
7649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652     break 2
7653   fi
7654 done
7655   done
7656 IFS=$as_save_IFS
7657
7658 fi
7659 fi
7660 OBJDUMP=$ac_cv_prog_OBJDUMP
7661 if test -n "$OBJDUMP"; then
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7663 $as_echo "$OBJDUMP" >&6; }
7664 else
7665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7667 fi
7668
7669
7670 fi
7671 if test -z "$ac_cv_prog_OBJDUMP"; then
7672   ac_ct_OBJDUMP=$OBJDUMP
7673   # Extract the first word of "objdump", so it can be a program name with args.
7674 set dummy objdump; ac_word=$2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676 $as_echo_n "checking for $ac_word... " >&6; }
7677 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7678   $as_echo_n "(cached) " >&6
7679 else
7680   if test -n "$ac_ct_OBJDUMP"; then
7681   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7682 else
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7685 do
7686   IFS=$as_save_IFS
7687   test -z "$as_dir" && as_dir=.
7688     for ac_exec_ext in '' $ac_executable_extensions; do
7689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692     break 2
7693   fi
7694 done
7695   done
7696 IFS=$as_save_IFS
7697
7698 fi
7699 fi
7700 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7701 if test -n "$ac_ct_OBJDUMP"; then
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7703 $as_echo "$ac_ct_OBJDUMP" >&6; }
7704 else
7705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7707 fi
7708
7709   if test "x$ac_ct_OBJDUMP" = x; then
7710     OBJDUMP="false"
7711   else
7712     case $cross_compiling:$ac_tool_warned in
7713 yes:)
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7716 ac_tool_warned=yes ;;
7717 esac
7718     OBJDUMP=$ac_ct_OBJDUMP
7719   fi
7720 else
7721   OBJDUMP="$ac_cv_prog_OBJDUMP"
7722 fi
7723
7724   ;;
7725 esac
7726
7727 test -z "$AS" && AS=as
7728
7729
7730
7731
7732
7733 test -z "$DLLTOOL" && DLLTOOL=dlltool
7734
7735
7736
7737
7738
7739 test -z "$OBJDUMP" && OBJDUMP=objdump
7740
7741
7742
7743
7744
7745
7746
7747         enable_dlopen=no
7748
7749
7750
7751             # Check whether --enable-shared was given.
7752 if test "${enable_shared+set}" = set; then :
7753   enableval=$enable_shared; p=${PACKAGE-default}
7754     case $enableval in
7755     yes) enable_shared=yes ;;
7756     no) enable_shared=no ;;
7757     *)
7758       enable_shared=no
7759       # Look at the argument we got.  We use all the common list separators.
7760       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7761       for pkg in $enableval; do
7762         IFS="$lt_save_ifs"
7763         if test "X$pkg" = "X$p"; then
7764           enable_shared=yes
7765         fi
7766       done
7767       IFS="$lt_save_ifs"
7768       ;;
7769     esac
7770 else
7771   enable_shared=yes
7772 fi
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782   # Check whether --enable-static was given.
7783 if test "${enable_static+set}" = set; then :
7784   enableval=$enable_static; p=${PACKAGE-default}
7785     case $enableval in
7786     yes) enable_static=yes ;;
7787     no) enable_static=no ;;
7788     *)
7789      enable_static=no
7790       # Look at the argument we got.  We use all the common list separators.
7791       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7792       for pkg in $enableval; do
7793         IFS="$lt_save_ifs"
7794         if test "X$pkg" = "X$p"; then
7795           enable_static=yes
7796         fi
7797       done
7798       IFS="$lt_save_ifs"
7799       ;;
7800     esac
7801 else
7802   enable_static=yes
7803 fi
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814 # Check whether --with-pic was given.
7815 if test "${with_pic+set}" = set; then :
7816   withval=$with_pic; lt_p=${PACKAGE-default}
7817     case $withval in
7818     yes|no) pic_mode=$withval ;;
7819     *)
7820       pic_mode=default
7821       # Look at the argument we got.  We use all the common list separators.
7822       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7823       for lt_pkg in $withval; do
7824         IFS="$lt_save_ifs"
7825         if test "X$lt_pkg" = "X$lt_p"; then
7826           pic_mode=yes
7827         fi
7828       done
7829       IFS="$lt_save_ifs"
7830       ;;
7831     esac
7832 else
7833   pic_mode=default
7834 fi
7835
7836
7837 test -z "$pic_mode" && pic_mode=default
7838
7839
7840
7841
7842
7843
7844
7845   # Check whether --enable-fast-install was given.
7846 if test "${enable_fast_install+set}" = set; then :
7847   enableval=$enable_fast_install; p=${PACKAGE-default}
7848     case $enableval in
7849     yes) enable_fast_install=yes ;;
7850     no) enable_fast_install=no ;;
7851     *)
7852       enable_fast_install=no
7853       # Look at the argument we got.  We use all the common list separators.
7854       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7855       for pkg in $enableval; do
7856         IFS="$lt_save_ifs"
7857         if test "X$pkg" = "X$p"; then
7858           enable_fast_install=yes
7859         fi
7860       done
7861       IFS="$lt_save_ifs"
7862       ;;
7863     esac
7864 else
7865   enable_fast_install=yes
7866 fi
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878 # This can be used to rebuild libtool when needed
7879 LIBTOOL_DEPS="$ltmain"
7880
7881 # Always use our own libtool.
7882 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913 test -z "$LN_S" && LN_S="ln -s"
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928 if test -n "${ZSH_VERSION+set}" ; then
7929    setopt NO_GLOB_SUBST
7930 fi
7931
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7933 $as_echo_n "checking for objdir... " >&6; }
7934 if test "${lt_cv_objdir+set}" = set; then :
7935   $as_echo_n "(cached) " >&6
7936 else
7937   rm -f .libs 2>/dev/null
7938 mkdir .libs 2>/dev/null
7939 if test -d .libs; then
7940   lt_cv_objdir=.libs
7941 else
7942   # MS-DOS does not allow filenames that begin with a dot.
7943   lt_cv_objdir=_libs
7944 fi
7945 rmdir .libs 2>/dev/null
7946 fi
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7948 $as_echo "$lt_cv_objdir" >&6; }
7949 objdir=$lt_cv_objdir
7950
7951
7952
7953
7954
7955 cat >>confdefs.h <<_ACEOF
7956 #define LT_OBJDIR "$lt_cv_objdir/"
7957 _ACEOF
7958
7959
7960
7961
7962 case $host_os in
7963 aix3*)
7964   # AIX sometimes has problems with the GCC collect2 program.  For some
7965   # reason, if we set the COLLECT_NAMES environment variable, the problems
7966   # vanish in a puff of smoke.
7967   if test "X${COLLECT_NAMES+set}" != Xset; then
7968     COLLECT_NAMES=
7969     export COLLECT_NAMES
7970   fi
7971   ;;
7972 esac
7973
7974 # Global variables:
7975 ofile=libtool
7976 can_build_shared=yes
7977
7978 # All known linkers require a `.a' archive for static linking (except MSVC,
7979 # which needs '.lib').
7980 libext=a
7981
7982 with_gnu_ld="$lt_cv_prog_gnu_ld"
7983
7984 old_CC="$CC"
7985 old_CFLAGS="$CFLAGS"
7986
7987 # Set sane defaults for various variables
7988 test -z "$CC" && CC=cc
7989 test -z "$LTCC" && LTCC=$CC
7990 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7991 test -z "$LD" && LD=ld
7992 test -z "$ac_objext" && ac_objext=o
7993
7994 for cc_temp in $compiler""; do
7995   case $cc_temp in
7996     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7997     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7998     \-*) ;;
7999     *) break;;
8000   esac
8001 done
8002 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8003
8004
8005 # Only perform the check for file, if the check method requires it
8006 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8007 case $deplibs_check_method in
8008 file_magic*)
8009   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8011 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8012 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8013   $as_echo_n "(cached) " >&6
8014 else
8015   case $MAGIC_CMD in
8016 [\\/*] |  ?:[\\/]*)
8017   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8018   ;;
8019 *)
8020   lt_save_MAGIC_CMD="$MAGIC_CMD"
8021   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8022   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8023   for ac_dir in $ac_dummy; do
8024     IFS="$lt_save_ifs"
8025     test -z "$ac_dir" && ac_dir=.
8026     if test -f $ac_dir/${ac_tool_prefix}file; then
8027       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8028       if test -n "$file_magic_test_file"; then
8029         case $deplibs_check_method in
8030         "file_magic "*)
8031           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8032           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8033           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8034             $EGREP "$file_magic_regex" > /dev/null; then
8035             :
8036           else
8037             cat <<_LT_EOF 1>&2
8038
8039 *** Warning: the command libtool uses to detect shared libraries,
8040 *** $file_magic_cmd, produces output that libtool cannot recognize.
8041 *** The result is that libtool may fail to recognize shared libraries
8042 *** as such.  This will affect the creation of libtool libraries that
8043 *** depend on shared libraries, but programs linked with such libtool
8044 *** libraries will work regardless of this problem.  Nevertheless, you
8045 *** may want to report the problem to your system manager and/or to
8046 *** bug-libtool@gnu.org
8047
8048 _LT_EOF
8049           fi ;;
8050         esac
8051       fi
8052       break
8053     fi
8054   done
8055   IFS="$lt_save_ifs"
8056   MAGIC_CMD="$lt_save_MAGIC_CMD"
8057   ;;
8058 esac
8059 fi
8060
8061 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8062 if test -n "$MAGIC_CMD"; then
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8064 $as_echo "$MAGIC_CMD" >&6; }
8065 else
8066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8068 fi
8069
8070
8071
8072
8073
8074 if test -z "$lt_cv_path_MAGIC_CMD"; then
8075   if test -n "$ac_tool_prefix"; then
8076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8077 $as_echo_n "checking for file... " >&6; }
8078 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8079   $as_echo_n "(cached) " >&6
8080 else
8081   case $MAGIC_CMD in
8082 [\\/*] |  ?:[\\/]*)
8083   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8084   ;;
8085 *)
8086   lt_save_MAGIC_CMD="$MAGIC_CMD"
8087   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8088   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8089   for ac_dir in $ac_dummy; do
8090     IFS="$lt_save_ifs"
8091     test -z "$ac_dir" && ac_dir=.
8092     if test -f $ac_dir/file; then
8093       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8094       if test -n "$file_magic_test_file"; then
8095         case $deplibs_check_method in
8096         "file_magic "*)
8097           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8098           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8099           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8100             $EGREP "$file_magic_regex" > /dev/null; then
8101             :
8102           else
8103             cat <<_LT_EOF 1>&2
8104
8105 *** Warning: the command libtool uses to detect shared libraries,
8106 *** $file_magic_cmd, produces output that libtool cannot recognize.
8107 *** The result is that libtool may fail to recognize shared libraries
8108 *** as such.  This will affect the creation of libtool libraries that
8109 *** depend on shared libraries, but programs linked with such libtool
8110 *** libraries will work regardless of this problem.  Nevertheless, you
8111 *** may want to report the problem to your system manager and/or to
8112 *** bug-libtool@gnu.org
8113
8114 _LT_EOF
8115           fi ;;
8116         esac
8117       fi
8118       break
8119     fi
8120   done
8121   IFS="$lt_save_ifs"
8122   MAGIC_CMD="$lt_save_MAGIC_CMD"
8123   ;;
8124 esac
8125 fi
8126
8127 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8128 if test -n "$MAGIC_CMD"; then
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8130 $as_echo "$MAGIC_CMD" >&6; }
8131 else
8132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8134 fi
8135
8136
8137   else
8138     MAGIC_CMD=:
8139   fi
8140 fi
8141
8142   fi
8143   ;;
8144 esac
8145
8146 # Use C for the default configuration in the libtool script
8147
8148 lt_save_CC="$CC"
8149 ac_ext=c
8150 ac_cpp='$CPP $CPPFLAGS'
8151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8154
8155
8156 # Source file extension for C test sources.
8157 ac_ext=c
8158
8159 # Object file extension for compiled C test sources.
8160 objext=o
8161 objext=$objext
8162
8163 # Code to be used in simple compile tests
8164 lt_simple_compile_test_code="int some_variable = 0;"
8165
8166 # Code to be used in simple link tests
8167 lt_simple_link_test_code='int main(){return(0);}'
8168
8169
8170
8171
8172
8173
8174
8175 # If no C compiler was specified, use CC.
8176 LTCC=${LTCC-"$CC"}
8177
8178 # If no C compiler flags were specified, use CFLAGS.
8179 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8180
8181 # Allow CC to be a program name with arguments.
8182 compiler=$CC
8183
8184 # Save the default compiler, since it gets overwritten when the other
8185 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8186 compiler_DEFAULT=$CC
8187
8188 # save warnings/boilerplate of simple test code
8189 ac_outfile=conftest.$ac_objext
8190 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8191 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8192 _lt_compiler_boilerplate=`cat conftest.err`
8193 $RM conftest*
8194
8195 ac_outfile=conftest.$ac_objext
8196 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8197 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8198 _lt_linker_boilerplate=`cat conftest.err`
8199 $RM -r conftest*
8200
8201
8202 ## CAVEAT EMPTOR:
8203 ## There is no encapsulation within the following macros, do not change
8204 ## the running order or otherwise move them around unless you know exactly
8205 ## what you are doing...
8206 if test -n "$compiler"; then
8207
8208 lt_prog_compiler_no_builtin_flag=
8209
8210 if test "$GCC" = yes; then
8211   case $cc_basename in
8212   nvcc*)
8213     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8214   *)
8215     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8216   esac
8217
8218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8219 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8220 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8221   $as_echo_n "(cached) " >&6
8222 else
8223   lt_cv_prog_compiler_rtti_exceptions=no
8224    ac_outfile=conftest.$ac_objext
8225    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8226    lt_compiler_flag="-fno-rtti -fno-exceptions"
8227    # Insert the option either (1) after the last *FLAGS variable, or
8228    # (2) before a word containing "conftest.", or (3) at the end.
8229    # Note that $ac_compile itself does not contain backslashes and begins
8230    # with a dollar sign (not a hyphen), so the echo should work correctly.
8231    # The option is referenced via a variable to avoid confusing sed.
8232    lt_compile=`echo "$ac_compile" | $SED \
8233    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8234    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8235    -e 's:$: $lt_compiler_flag:'`
8236    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8237    (eval "$lt_compile" 2>conftest.err)
8238    ac_status=$?
8239    cat conftest.err >&5
8240    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241    if (exit $ac_status) && test -s "$ac_outfile"; then
8242      # The compiler can only warn and ignore the option if not recognized
8243      # So say no if there are warnings other than the usual output.
8244      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8245      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8246      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8247        lt_cv_prog_compiler_rtti_exceptions=yes
8248      fi
8249    fi
8250    $RM conftest*
8251
8252 fi
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8254 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8255
8256 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8257     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8258 else
8259     :
8260 fi
8261
8262 fi
8263
8264
8265
8266
8267
8268
8269   lt_prog_compiler_wl=
8270 lt_prog_compiler_pic=
8271 lt_prog_compiler_static=
8272
8273
8274   if test "$GCC" = yes; then
8275     lt_prog_compiler_wl='-Wl,'
8276     lt_prog_compiler_static='-static'
8277
8278     case $host_os in
8279       aix*)
8280       # All AIX code is PIC.
8281       if test "$host_cpu" = ia64; then
8282         # AIX 5 now supports IA64 processor
8283         lt_prog_compiler_static='-Bstatic'
8284       fi
8285       ;;
8286
8287     amigaos*)
8288       case $host_cpu in
8289       powerpc)
8290             # see comment about AmigaOS4 .so support
8291             lt_prog_compiler_pic='-fPIC'
8292         ;;
8293       m68k)
8294             # FIXME: we need at least 68020 code to build shared libraries, but
8295             # adding the `-m68020' flag to GCC prevents building anything better,
8296             # like `-m68040'.
8297             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8298         ;;
8299       esac
8300       ;;
8301
8302     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8303       # PIC is the default for these OSes.
8304       ;;
8305
8306     mingw* | cygwin* | pw32* | os2* | cegcc*)
8307       # This hack is so that the source file can tell whether it is being
8308       # built for inclusion in a dll (and should export symbols for example).
8309       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8310       # (--disable-auto-import) libraries
8311       lt_prog_compiler_pic='-DDLL_EXPORT'
8312       ;;
8313
8314     darwin* | rhapsody*)
8315       # PIC is the default on this platform
8316       # Common symbols not allowed in MH_DYLIB files
8317       lt_prog_compiler_pic='-fno-common'
8318       ;;
8319
8320     haiku*)
8321       # PIC is the default for Haiku.
8322       # The "-static" flag exists, but is broken.
8323       lt_prog_compiler_static=
8324       ;;
8325
8326     hpux*)
8327       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8328       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8329       # sets the default TLS model and affects inlining.
8330       case $host_cpu in
8331       hppa*64*)
8332         # +Z the default
8333         ;;
8334       *)
8335         lt_prog_compiler_pic='-fPIC'
8336         ;;
8337       esac
8338       ;;
8339
8340     interix[3-9]*)
8341       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8342       # Instead, we relocate shared libraries at runtime.
8343       ;;
8344
8345     msdosdjgpp*)
8346       # Just because we use GCC doesn't mean we suddenly get shared libraries
8347       # on systems that don't support them.
8348       lt_prog_compiler_can_build_shared=no
8349       enable_shared=no
8350       ;;
8351
8352     *nto* | *qnx*)
8353       # QNX uses GNU C++, but need to define -shared option too, otherwise
8354       # it will coredump.
8355       lt_prog_compiler_pic='-fPIC -shared'
8356       ;;
8357
8358     sysv4*MP*)
8359       if test -d /usr/nec; then
8360         lt_prog_compiler_pic=-Kconform_pic
8361       fi
8362       ;;
8363
8364     *)
8365       lt_prog_compiler_pic='-fPIC'
8366       ;;
8367     esac
8368
8369     case $cc_basename in
8370     nvcc*) # Cuda Compiler Driver 2.2
8371       lt_prog_compiler_wl='-Xlinker '
8372       if test -n "$lt_prog_compiler_pic"; then
8373         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8374       fi
8375       ;;
8376     esac
8377   else
8378     # PORTME Check for flag to pass linker flags through the system compiler.
8379     case $host_os in
8380     aix*)
8381       lt_prog_compiler_wl='-Wl,'
8382       if test "$host_cpu" = ia64; then
8383         # AIX 5 now supports IA64 processor
8384         lt_prog_compiler_static='-Bstatic'
8385       else
8386         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8387       fi
8388       ;;
8389
8390     mingw* | cygwin* | pw32* | os2* | cegcc*)
8391       # This hack is so that the source file can tell whether it is being
8392       # built for inclusion in a dll (and should export symbols for example).
8393       lt_prog_compiler_pic='-DDLL_EXPORT'
8394       ;;
8395
8396     hpux9* | hpux10* | hpux11*)
8397       lt_prog_compiler_wl='-Wl,'
8398       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8399       # not for PA HP-UX.
8400       case $host_cpu in
8401       hppa*64*|ia64*)
8402         # +Z the default
8403         ;;
8404       *)
8405         lt_prog_compiler_pic='+Z'
8406         ;;
8407       esac
8408       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8409       lt_prog_compiler_static='${wl}-a ${wl}archive'
8410       ;;
8411
8412     irix5* | irix6* | nonstopux*)
8413       lt_prog_compiler_wl='-Wl,'
8414       # PIC (with -KPIC) is the default.
8415       lt_prog_compiler_static='-non_shared'
8416       ;;
8417
8418     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8419       case $cc_basename in
8420       # old Intel for x86_64 which still supported -KPIC.
8421       ecc*)
8422         lt_prog_compiler_wl='-Wl,'
8423         lt_prog_compiler_pic='-KPIC'
8424         lt_prog_compiler_static='-static'
8425         ;;
8426       # icc used to be incompatible with GCC.
8427       # ICC 10 doesn't accept -KPIC any more.
8428       icc* | ifort*)
8429         lt_prog_compiler_wl='-Wl,'
8430         lt_prog_compiler_pic='-fPIC'
8431         lt_prog_compiler_static='-static'
8432         ;;
8433       # Lahey Fortran 8.1.
8434       lf95*)
8435         lt_prog_compiler_wl='-Wl,'
8436         lt_prog_compiler_pic='--shared'
8437         lt_prog_compiler_static='--static'
8438         ;;
8439       nagfor*)
8440         # NAG Fortran compiler
8441         lt_prog_compiler_wl='-Wl,-Wl,,'
8442         lt_prog_compiler_pic='-PIC'
8443         lt_prog_compiler_static='-Bstatic'
8444         ;;
8445       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8446         # Portland Group compilers (*not* the Pentium gcc compiler,
8447         # which looks to be a dead project)
8448         lt_prog_compiler_wl='-Wl,'
8449         lt_prog_compiler_pic='-fpic'
8450         lt_prog_compiler_static='-Bstatic'
8451         ;;
8452       ccc*)
8453         lt_prog_compiler_wl='-Wl,'
8454         # All Alpha code is PIC.
8455         lt_prog_compiler_static='-non_shared'
8456         ;;
8457       xl* | bgxl* | bgf* | mpixl*)
8458         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8459         lt_prog_compiler_wl='-Wl,'
8460         lt_prog_compiler_pic='-qpic'
8461         lt_prog_compiler_static='-qstaticlink'
8462         ;;
8463       *)
8464         case `$CC -V 2>&1 | sed 5q` in
8465         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8466           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8467           lt_prog_compiler_pic='-KPIC'
8468           lt_prog_compiler_static='-Bstatic'
8469           lt_prog_compiler_wl=''
8470           ;;
8471         *Sun\ F* | *Sun*Fortran*)
8472           lt_prog_compiler_pic='-KPIC'
8473           lt_prog_compiler_static='-Bstatic'
8474           lt_prog_compiler_wl='-Qoption ld '
8475           ;;
8476         *Sun\ C*)
8477           # Sun C 5.9
8478           lt_prog_compiler_pic='-KPIC'
8479           lt_prog_compiler_static='-Bstatic'
8480           lt_prog_compiler_wl='-Wl,'
8481           ;;
8482         *Intel*\ [CF]*Compiler*)
8483           lt_prog_compiler_wl='-Wl,'
8484           lt_prog_compiler_pic='-fPIC'
8485           lt_prog_compiler_static='-static'
8486           ;;
8487         *Portland\ Group*)
8488           lt_prog_compiler_wl='-Wl,'
8489           lt_prog_compiler_pic='-fpic'
8490           lt_prog_compiler_static='-Bstatic'
8491           ;;
8492         esac
8493         ;;
8494       esac
8495       ;;
8496
8497     newsos6)
8498       lt_prog_compiler_pic='-KPIC'
8499       lt_prog_compiler_static='-Bstatic'
8500       ;;
8501
8502     *nto* | *qnx*)
8503       # QNX uses GNU C++, but need to define -shared option too, otherwise
8504       # it will coredump.
8505       lt_prog_compiler_pic='-fPIC -shared'
8506       ;;
8507
8508     osf3* | osf4* | osf5*)
8509       lt_prog_compiler_wl='-Wl,'
8510       # All OSF/1 code is PIC.
8511       lt_prog_compiler_static='-non_shared'
8512       ;;
8513
8514     rdos*)
8515       lt_prog_compiler_static='-non_shared'
8516       ;;
8517
8518     solaris*)
8519       lt_prog_compiler_pic='-KPIC'
8520       lt_prog_compiler_static='-Bstatic'
8521       case $cc_basename in
8522       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8523         lt_prog_compiler_wl='-Qoption ld ';;
8524       *)
8525         lt_prog_compiler_wl='-Wl,';;
8526       esac
8527       ;;
8528
8529     sunos4*)
8530       lt_prog_compiler_wl='-Qoption ld '
8531       lt_prog_compiler_pic='-PIC'
8532       lt_prog_compiler_static='-Bstatic'
8533       ;;
8534
8535     sysv4 | sysv4.2uw2* | sysv4.3*)
8536       lt_prog_compiler_wl='-Wl,'
8537       lt_prog_compiler_pic='-KPIC'
8538       lt_prog_compiler_static='-Bstatic'
8539       ;;
8540
8541     sysv4*MP*)
8542       if test -d /usr/nec ;then
8543         lt_prog_compiler_pic='-Kconform_pic'
8544         lt_prog_compiler_static='-Bstatic'
8545       fi
8546       ;;
8547
8548     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8549       lt_prog_compiler_wl='-Wl,'
8550       lt_prog_compiler_pic='-KPIC'
8551       lt_prog_compiler_static='-Bstatic'
8552       ;;
8553
8554     unicos*)
8555       lt_prog_compiler_wl='-Wl,'
8556       lt_prog_compiler_can_build_shared=no
8557       ;;
8558
8559     uts4*)
8560       lt_prog_compiler_pic='-pic'
8561       lt_prog_compiler_static='-Bstatic'
8562       ;;
8563
8564     *)
8565       lt_prog_compiler_can_build_shared=no
8566       ;;
8567     esac
8568   fi
8569
8570 case $host_os in
8571   # For platforms which do not support PIC, -DPIC is meaningless:
8572   *djgpp*)
8573     lt_prog_compiler_pic=
8574     ;;
8575   *)
8576     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8577     ;;
8578 esac
8579
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8581 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8582 if test "${lt_cv_prog_compiler_pic+set}" = set; then :
8583   $as_echo_n "(cached) " >&6
8584 else
8585   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8586 fi
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8588 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8589 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8590
8591 #
8592 # Check to make sure the PIC flag actually works.
8593 #
8594 if test -n "$lt_prog_compiler_pic"; then
8595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8596 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8597 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8598   $as_echo_n "(cached) " >&6
8599 else
8600   lt_cv_prog_compiler_pic_works=no
8601    ac_outfile=conftest.$ac_objext
8602    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8603    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8604    # Insert the option either (1) after the last *FLAGS variable, or
8605    # (2) before a word containing "conftest.", or (3) at the end.
8606    # Note that $ac_compile itself does not contain backslashes and begins
8607    # with a dollar sign (not a hyphen), so the echo should work correctly.
8608    # The option is referenced via a variable to avoid confusing sed.
8609    lt_compile=`echo "$ac_compile" | $SED \
8610    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8611    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8612    -e 's:$: $lt_compiler_flag:'`
8613    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8614    (eval "$lt_compile" 2>conftest.err)
8615    ac_status=$?
8616    cat conftest.err >&5
8617    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618    if (exit $ac_status) && test -s "$ac_outfile"; then
8619      # The compiler can only warn and ignore the option if not recognized
8620      # So say no if there are warnings other than the usual output.
8621      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8622      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8623      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8624        lt_cv_prog_compiler_pic_works=yes
8625      fi
8626    fi
8627    $RM conftest*
8628
8629 fi
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8631 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8632
8633 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8634     case $lt_prog_compiler_pic in
8635      "" | " "*) ;;
8636      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8637      esac
8638 else
8639     lt_prog_compiler_pic=
8640      lt_prog_compiler_can_build_shared=no
8641 fi
8642
8643 fi
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655 #
8656 # Check to make sure the static flag actually works.
8657 #
8658 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8660 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8661 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8662   $as_echo_n "(cached) " >&6
8663 else
8664   lt_cv_prog_compiler_static_works=no
8665    save_LDFLAGS="$LDFLAGS"
8666    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8667    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8668    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8669      # The linker can only warn and ignore the option if not recognized
8670      # So say no if there are warnings
8671      if test -s conftest.err; then
8672        # Append any errors to the config.log.
8673        cat conftest.err 1>&5
8674        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8675        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8676        if diff conftest.exp conftest.er2 >/dev/null; then
8677          lt_cv_prog_compiler_static_works=yes
8678        fi
8679      else
8680        lt_cv_prog_compiler_static_works=yes
8681      fi
8682    fi
8683    $RM -r conftest*
8684    LDFLAGS="$save_LDFLAGS"
8685
8686 fi
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8688 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8689
8690 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8691     :
8692 else
8693     lt_prog_compiler_static=
8694 fi
8695
8696
8697
8698
8699
8700
8701
8702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8703 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8704 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8705   $as_echo_n "(cached) " >&6
8706 else
8707   lt_cv_prog_compiler_c_o=no
8708    $RM -r conftest 2>/dev/null
8709    mkdir conftest
8710    cd conftest
8711    mkdir out
8712    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8713
8714    lt_compiler_flag="-o out/conftest2.$ac_objext"
8715    # Insert the option either (1) after the last *FLAGS variable, or
8716    # (2) before a word containing "conftest.", or (3) at the end.
8717    # Note that $ac_compile itself does not contain backslashes and begins
8718    # with a dollar sign (not a hyphen), so the echo should work correctly.
8719    lt_compile=`echo "$ac_compile" | $SED \
8720    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8721    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8722    -e 's:$: $lt_compiler_flag:'`
8723    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8724    (eval "$lt_compile" 2>out/conftest.err)
8725    ac_status=$?
8726    cat out/conftest.err >&5
8727    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8729    then
8730      # The compiler can only warn and ignore the option if not recognized
8731      # So say no if there are warnings
8732      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8733      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8734      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8735        lt_cv_prog_compiler_c_o=yes
8736      fi
8737    fi
8738    chmod u+w . 2>&5
8739    $RM conftest*
8740    # SGI C++ compiler will create directory out/ii_files/ for
8741    # template instantiation
8742    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8743    $RM out/* && rmdir out
8744    cd ..
8745    $RM -r conftest
8746    $RM conftest*
8747
8748 fi
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8750 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8751
8752
8753
8754
8755
8756
8757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8758 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8759 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8760   $as_echo_n "(cached) " >&6
8761 else
8762   lt_cv_prog_compiler_c_o=no
8763    $RM -r conftest 2>/dev/null
8764    mkdir conftest
8765    cd conftest
8766    mkdir out
8767    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8768
8769    lt_compiler_flag="-o out/conftest2.$ac_objext"
8770    # Insert the option either (1) after the last *FLAGS variable, or
8771    # (2) before a word containing "conftest.", or (3) at the end.
8772    # Note that $ac_compile itself does not contain backslashes and begins
8773    # with a dollar sign (not a hyphen), so the echo should work correctly.
8774    lt_compile=`echo "$ac_compile" | $SED \
8775    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8776    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8777    -e 's:$: $lt_compiler_flag:'`
8778    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8779    (eval "$lt_compile" 2>out/conftest.err)
8780    ac_status=$?
8781    cat out/conftest.err >&5
8782    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8784    then
8785      # The compiler can only warn and ignore the option if not recognized
8786      # So say no if there are warnings
8787      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8788      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8789      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8790        lt_cv_prog_compiler_c_o=yes
8791      fi
8792    fi
8793    chmod u+w . 2>&5
8794    $RM conftest*
8795    # SGI C++ compiler will create directory out/ii_files/ for
8796    # template instantiation
8797    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8798    $RM out/* && rmdir out
8799    cd ..
8800    $RM -r conftest
8801    $RM conftest*
8802
8803 fi
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8805 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8806
8807
8808
8809
8810 hard_links="nottested"
8811 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8812   # do not overwrite the value of need_locks provided by the user
8813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8814 $as_echo_n "checking if we can lock with hard links... " >&6; }
8815   hard_links=yes
8816   $RM conftest*
8817   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8818   touch conftest.a
8819   ln conftest.a conftest.b 2>&5 || hard_links=no
8820   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8822 $as_echo "$hard_links" >&6; }
8823   if test "$hard_links" = no; then
8824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8825 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8826     need_locks=warn
8827   fi
8828 else
8829   need_locks=no
8830 fi
8831
8832
8833
8834
8835
8836
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8838 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8839
8840   runpath_var=
8841   allow_undefined_flag=
8842   always_export_symbols=no
8843   archive_cmds=
8844   archive_expsym_cmds=
8845   compiler_needs_object=no
8846   enable_shared_with_static_runtimes=no
8847   export_dynamic_flag_spec=
8848   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8849   hardcode_automatic=no
8850   hardcode_direct=no
8851   hardcode_direct_absolute=no
8852   hardcode_libdir_flag_spec=
8853   hardcode_libdir_separator=
8854   hardcode_minus_L=no
8855   hardcode_shlibpath_var=unsupported
8856   inherit_rpath=no
8857   link_all_deplibs=unknown
8858   module_cmds=
8859   module_expsym_cmds=
8860   old_archive_from_new_cmds=
8861   old_archive_from_expsyms_cmds=
8862   thread_safe_flag_spec=
8863   whole_archive_flag_spec=
8864   # include_expsyms should be a list of space-separated symbols to be *always*
8865   # included in the symbol list
8866   include_expsyms=
8867   # exclude_expsyms can be an extended regexp of symbols to exclude
8868   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8869   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8870   # as well as any symbol that contains `d'.
8871   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8872   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8873   # platforms (ab)use it in PIC code, but their linkers get confused if
8874   # the symbol is explicitly referenced.  Since portable code cannot
8875   # rely on this symbol name, it's probably fine to never include it in
8876   # preloaded symbol tables.
8877   # Exclude shared library initialization/finalization symbols.
8878   extract_expsyms_cmds=
8879
8880   case $host_os in
8881   cygwin* | mingw* | pw32* | cegcc*)
8882     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8883     # When not using gcc, we currently assume that we are using
8884     # Microsoft Visual C++.
8885     if test "$GCC" != yes; then
8886       with_gnu_ld=no
8887     fi
8888     ;;
8889   interix*)
8890     # we just hope/assume this is gcc and not c89 (= MSVC++)
8891     with_gnu_ld=yes
8892     ;;
8893   openbsd*)
8894     with_gnu_ld=no
8895     ;;
8896   linux* | k*bsd*-gnu | gnu*)
8897     link_all_deplibs=no
8898     ;;
8899   esac
8900
8901   ld_shlibs=yes
8902
8903   # On some targets, GNU ld is compatible enough with the native linker
8904   # that we're better off using the native interface for both.
8905   lt_use_gnu_ld_interface=no
8906   if test "$with_gnu_ld" = yes; then
8907     case $host_os in
8908       aix*)
8909         # The AIX port of GNU ld has always aspired to compatibility
8910         # with the native linker.  However, as the warning in the GNU ld
8911         # block says, versions before 2.19.5* couldn't really create working
8912         # shared libraries, regardless of the interface used.
8913         case `$LD -v 2>&1` in
8914           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8915           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8916           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8917           *)
8918             lt_use_gnu_ld_interface=yes
8919             ;;
8920         esac
8921         ;;
8922       *)
8923         lt_use_gnu_ld_interface=yes
8924         ;;
8925     esac
8926   fi
8927
8928   if test "$lt_use_gnu_ld_interface" = yes; then
8929     # If archive_cmds runs LD, not CC, wlarc should be empty
8930     wlarc='${wl}'
8931
8932     # Set some defaults for GNU ld with shared library support. These
8933     # are reset later if shared libraries are not supported. Putting them
8934     # here allows them to be overridden if necessary.
8935     runpath_var=LD_RUN_PATH
8936     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8937     export_dynamic_flag_spec='${wl}--export-dynamic'
8938     # ancient GNU ld didn't support --whole-archive et. al.
8939     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8940       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8941     else
8942       whole_archive_flag_spec=
8943     fi
8944     supports_anon_versioning=no
8945     case `$LD -v 2>&1` in
8946       *GNU\ gold*) supports_anon_versioning=yes ;;
8947       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8948       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8949       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8950       *\ 2.11.*) ;; # other 2.11 versions
8951       *) supports_anon_versioning=yes ;;
8952     esac
8953
8954     # See if GNU ld supports shared libraries.
8955     case $host_os in
8956     aix[3-9]*)
8957       # On AIX/PPC, the GNU linker is very broken
8958       if test "$host_cpu" != ia64; then
8959         ld_shlibs=no
8960         cat <<_LT_EOF 1>&2
8961
8962 *** Warning: the GNU linker, at least up to release 2.19, is reported
8963 *** to be unable to reliably create shared libraries on AIX.
8964 *** Therefore, libtool is disabling shared libraries support.  If you
8965 *** really care for shared libraries, you may want to install binutils
8966 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8967 *** You will then need to restart the configuration process.
8968
8969 _LT_EOF
8970       fi
8971       ;;
8972
8973     amigaos*)
8974       case $host_cpu in
8975       powerpc)
8976             # see comment about AmigaOS4 .so support
8977             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8978             archive_expsym_cmds=''
8979         ;;
8980       m68k)
8981             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)'
8982             hardcode_libdir_flag_spec='-L$libdir'
8983             hardcode_minus_L=yes
8984         ;;
8985       esac
8986       ;;
8987
8988     beos*)
8989       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8990         allow_undefined_flag=unsupported
8991         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8992         # support --undefined.  This deserves some investigation.  FIXME
8993         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994       else
8995         ld_shlibs=no
8996       fi
8997       ;;
8998
8999     cygwin* | mingw* | pw32* | cegcc*)
9000       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9001       # as there is no search path for DLLs.
9002       hardcode_libdir_flag_spec='-L$libdir'
9003       export_dynamic_flag_spec='${wl}--export-all-symbols'
9004       allow_undefined_flag=unsupported
9005       always_export_symbols=no
9006       enable_shared_with_static_runtimes=yes
9007       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9008       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9009
9010       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9011         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9012         # If the export-symbols file already is a .def file (1st line
9013         # is EXPORTS), use it as is; otherwise, prepend...
9014         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9015           cp $export_symbols $output_objdir/$soname.def;
9016         else
9017           echo EXPORTS > $output_objdir/$soname.def;
9018           cat $export_symbols >> $output_objdir/$soname.def;
9019         fi~
9020         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9021       else
9022         ld_shlibs=no
9023       fi
9024       ;;
9025
9026     haiku*)
9027       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028       link_all_deplibs=yes
9029       ;;
9030
9031     interix[3-9]*)
9032       hardcode_direct=no
9033       hardcode_shlibpath_var=no
9034       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9035       export_dynamic_flag_spec='${wl}-E'
9036       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9037       # Instead, shared libraries are loaded at an image base (0x10000000 by
9038       # default) and relocated if they conflict, which is a slow very memory
9039       # consuming and fragmenting process.  To avoid this, we pick a random,
9040       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9041       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9042       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9043       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'
9044       ;;
9045
9046     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9047       tmp_diet=no
9048       if test "$host_os" = linux-dietlibc; then
9049         case $cc_basename in
9050           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9051         esac
9052       fi
9053       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9054          && test "$tmp_diet" = no
9055       then
9056         tmp_addflag=' $pic_flag'
9057         tmp_sharedflag='-shared'
9058         case $cc_basename,$host_cpu in
9059         pgcc*)                          # Portland Group C compiler
9060           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9061           tmp_addflag=' $pic_flag'
9062           ;;
9063         pgf77* | pgf90* | pgf95* | pgfortran*)
9064                                         # Portland Group f77 and f90 compilers
9065           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9066           tmp_addflag=' $pic_flag -Mnomain' ;;
9067         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9068           tmp_addflag=' -i_dynamic' ;;
9069         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9070           tmp_addflag=' -i_dynamic -nofor_main' ;;
9071         ifc* | ifort*)                  # Intel Fortran compiler
9072           tmp_addflag=' -nofor_main' ;;
9073         lf95*)                          # Lahey Fortran 8.1
9074           whole_archive_flag_spec=
9075           tmp_sharedflag='--shared' ;;
9076         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9077           tmp_sharedflag='-qmkshrobj'
9078           tmp_addflag= ;;
9079         nvcc*)  # Cuda Compiler Driver 2.2
9080           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9081           compiler_needs_object=yes
9082           ;;
9083         esac
9084         case `$CC -V 2>&1 | sed 5q` in
9085         *Sun\ C*)                       # Sun C 5.9
9086           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9087           compiler_needs_object=yes
9088           tmp_sharedflag='-G' ;;
9089         *Sun\ F*)                       # Sun Fortran 8.3
9090           tmp_sharedflag='-G' ;;
9091         esac
9092         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9093
9094         if test "x$supports_anon_versioning" = xyes; then
9095           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9096             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9097             echo "local: *; };" >> $output_objdir/$libname.ver~
9098             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9099         fi
9100
9101         case $cc_basename in
9102         xlf* | bgf* | bgxlf* | mpixlf*)
9103           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9104           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9105           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9106           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9107           if test "x$supports_anon_versioning" = xyes; then
9108             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9109               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9110               echo "local: *; };" >> $output_objdir/$libname.ver~
9111               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9112           fi
9113           ;;
9114         esac
9115       else
9116         ld_shlibs=no
9117       fi
9118       ;;
9119
9120     netbsd* | netbsdelf*-gnu)
9121       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9122         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9123         wlarc=
9124       else
9125         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9127       fi
9128       ;;
9129
9130     solaris*)
9131       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9132         ld_shlibs=no
9133         cat <<_LT_EOF 1>&2
9134
9135 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9136 *** create shared libraries on Solaris systems.  Therefore, libtool
9137 *** is disabling shared libraries support.  We urge you to upgrade GNU
9138 *** binutils to release 2.9.1 or newer.  Another option is to modify
9139 *** your PATH or compiler configuration so that the native linker is
9140 *** used, and then restart.
9141
9142 _LT_EOF
9143       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9144         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9145         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9146       else
9147         ld_shlibs=no
9148       fi
9149       ;;
9150
9151     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9152       case `$LD -v 2>&1` in
9153         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9154         ld_shlibs=no
9155         cat <<_LT_EOF 1>&2
9156
9157 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9158 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9159 *** is disabling shared libraries support.  We urge you to upgrade GNU
9160 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9161 *** your PATH or compiler configuration so that the native linker is
9162 *** used, and then restart.
9163
9164 _LT_EOF
9165         ;;
9166         *)
9167           # For security reasons, it is highly recommended that you always
9168           # use absolute paths for naming shared libraries, and exclude the
9169           # DT_RUNPATH tag from executables and libraries.  But doing so
9170           # requires that you compile everything twice, which is a pain.
9171           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9172             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9173             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9174             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9175           else
9176             ld_shlibs=no
9177           fi
9178         ;;
9179       esac
9180       ;;
9181
9182     sunos4*)
9183       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9184       wlarc=
9185       hardcode_direct=yes
9186       hardcode_shlibpath_var=no
9187       ;;
9188
9189     *)
9190       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9191         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9192         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9193       else
9194         ld_shlibs=no
9195       fi
9196       ;;
9197     esac
9198
9199     if test "$ld_shlibs" = no; then
9200       runpath_var=
9201       hardcode_libdir_flag_spec=
9202       export_dynamic_flag_spec=
9203       whole_archive_flag_spec=
9204     fi
9205   else
9206     # PORTME fill in a description of your system's linker (not GNU ld)
9207     case $host_os in
9208     aix3*)
9209       allow_undefined_flag=unsupported
9210       always_export_symbols=yes
9211       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'
9212       # Note: this linker hardcodes the directories in LIBPATH if there
9213       # are no directories specified by -L.
9214       hardcode_minus_L=yes
9215       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9216         # Neither direct hardcoding nor static linking is supported with a
9217         # broken collect2.
9218         hardcode_direct=unsupported
9219       fi
9220       ;;
9221
9222     aix[4-9]*)
9223       if test "$host_cpu" = ia64; then
9224         # On IA64, the linker does run time linking by default, so we don't
9225         # have to do anything special.
9226         aix_use_runtimelinking=no
9227         exp_sym_flag='-Bexport'
9228         no_entry_flag=""
9229       else
9230         # If we're using GNU nm, then we don't want the "-C" option.
9231         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9232         # Also, AIX nm treats weak defined symbols like other global
9233         # defined symbols, whereas GNU nm marks them as "W".
9234         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9235           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9236         else
9237           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'
9238         fi
9239         aix_use_runtimelinking=no
9240
9241         # Test if we are trying to use run time linking or normal
9242         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9243         # need to do runtime linking.
9244         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9245           for ld_flag in $LDFLAGS; do
9246           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9247             aix_use_runtimelinking=yes
9248             break
9249           fi
9250           done
9251           ;;
9252         esac
9253
9254         exp_sym_flag='-bexport'
9255         no_entry_flag='-bnoentry'
9256       fi
9257
9258       # When large executables or shared objects are built, AIX ld can
9259       # have problems creating the table of contents.  If linking a library
9260       # or program results in "error TOC overflow" add -mminimal-toc to
9261       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9262       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9263
9264       archive_cmds=''
9265       hardcode_direct=yes
9266       hardcode_direct_absolute=yes
9267       hardcode_libdir_separator=':'
9268       link_all_deplibs=yes
9269       file_list_spec='${wl}-f,'
9270
9271       if test "$GCC" = yes; then
9272         case $host_os in aix4.[012]|aix4.[012].*)
9273         # We only want to do this on AIX 4.2 and lower, the check
9274         # below for broken collect2 doesn't work under 4.3+
9275           collect2name=`${CC} -print-prog-name=collect2`
9276           if test -f "$collect2name" &&
9277            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9278           then
9279           # We have reworked collect2
9280           :
9281           else
9282           # We have old collect2
9283           hardcode_direct=unsupported
9284           # It fails to find uninstalled libraries when the uninstalled
9285           # path is not listed in the libpath.  Setting hardcode_minus_L
9286           # to unsupported forces relinking
9287           hardcode_minus_L=yes
9288           hardcode_libdir_flag_spec='-L$libdir'
9289           hardcode_libdir_separator=
9290           fi
9291           ;;
9292         esac
9293         shared_flag='-shared'
9294         if test "$aix_use_runtimelinking" = yes; then
9295           shared_flag="$shared_flag "'${wl}-G'
9296         fi
9297         link_all_deplibs=no
9298       else
9299         # not using gcc
9300         if test "$host_cpu" = ia64; then
9301         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9302         # chokes on -Wl,-G. The following line is correct:
9303           shared_flag='-G'
9304         else
9305           if test "$aix_use_runtimelinking" = yes; then
9306             shared_flag='${wl}-G'
9307           else
9308             shared_flag='${wl}-bM:SRE'
9309           fi
9310         fi
9311       fi
9312
9313       export_dynamic_flag_spec='${wl}-bexpall'
9314       # It seems that -bexpall does not export symbols beginning with
9315       # underscore (_), so it is better to generate a list of symbols to export.
9316       always_export_symbols=yes
9317       if test "$aix_use_runtimelinking" = yes; then
9318         # Warning - without using the other runtime loading flags (-brtl),
9319         # -berok will link without error, but may produce a broken library.
9320         allow_undefined_flag='-berok'
9321         # Determine the default libpath from the value encoded in an
9322         # empty executable.
9323         if test "${lt_cv_aix_libpath+set}" = set; then
9324   aix_libpath=$lt_cv_aix_libpath
9325 else
9326   if test "${lt_cv_aix_libpath_+set}" = set; then :
9327   $as_echo_n "(cached) " >&6
9328 else
9329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h.  */
9331
9332 int
9333 main ()
9334 {
9335
9336   ;
9337   return 0;
9338 }
9339 _ACEOF
9340 if ac_fn_c_try_link "$LINENO"; then :
9341
9342   lt_aix_libpath_sed='
9343       /Import File Strings/,/^$/ {
9344           /^0/ {
9345               s/^0  *\([^ ]*\) *$/\1/
9346               p
9347           }
9348       }'
9349   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9350   # Check for a 64-bit object if we didn't find anything.
9351   if test -z "$lt_cv_aix_libpath_"; then
9352     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9353   fi
9354 fi
9355 rm -f core conftest.err conftest.$ac_objext \
9356     conftest$ac_exeext conftest.$ac_ext
9357   if test -z "$lt_cv_aix_libpath_"; then
9358     lt_cv_aix_libpath_="/usr/lib:/lib"
9359   fi
9360
9361 fi
9362
9363   aix_libpath=$lt_cv_aix_libpath_
9364 fi
9365
9366         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9367         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9368       else
9369         if test "$host_cpu" = ia64; then
9370           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9371           allow_undefined_flag="-z nodefs"
9372           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"
9373         else
9374          # Determine the default libpath from the value encoded in an
9375          # empty executable.
9376          if test "${lt_cv_aix_libpath+set}" = set; then
9377   aix_libpath=$lt_cv_aix_libpath
9378 else
9379   if test "${lt_cv_aix_libpath_+set}" = set; then :
9380   $as_echo_n "(cached) " >&6
9381 else
9382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h.  */
9384
9385 int
9386 main ()
9387 {
9388
9389   ;
9390   return 0;
9391 }
9392 _ACEOF
9393 if ac_fn_c_try_link "$LINENO"; then :
9394
9395   lt_aix_libpath_sed='
9396       /Import File Strings/,/^$/ {
9397           /^0/ {
9398               s/^0  *\([^ ]*\) *$/\1/
9399               p
9400           }
9401       }'
9402   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9403   # Check for a 64-bit object if we didn't find anything.
9404   if test -z "$lt_cv_aix_libpath_"; then
9405     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9406   fi
9407 fi
9408 rm -f core conftest.err conftest.$ac_objext \
9409     conftest$ac_exeext conftest.$ac_ext
9410   if test -z "$lt_cv_aix_libpath_"; then
9411     lt_cv_aix_libpath_="/usr/lib:/lib"
9412   fi
9413
9414 fi
9415
9416   aix_libpath=$lt_cv_aix_libpath_
9417 fi
9418
9419          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9420           # Warning - without using the other run time loading flags,
9421           # -berok will link without error, but may produce a broken library.
9422           no_undefined_flag=' ${wl}-bernotok'
9423           allow_undefined_flag=' ${wl}-berok'
9424           if test "$with_gnu_ld" = yes; then
9425             # We only use this code for GNU lds that support --whole-archive.
9426             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9427           else
9428             # Exported symbols can be pulled into shared objects from archives
9429             whole_archive_flag_spec='$convenience'
9430           fi
9431           archive_cmds_need_lc=yes
9432           # This is similar to how AIX traditionally builds its shared libraries.
9433           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'
9434         fi
9435       fi
9436       ;;
9437
9438     amigaos*)
9439       case $host_cpu in
9440       powerpc)
9441             # see comment about AmigaOS4 .so support
9442             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9443             archive_expsym_cmds=''
9444         ;;
9445       m68k)
9446             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)'
9447             hardcode_libdir_flag_spec='-L$libdir'
9448             hardcode_minus_L=yes
9449         ;;
9450       esac
9451       ;;
9452
9453     bsdi[45]*)
9454       export_dynamic_flag_spec=-rdynamic
9455       ;;
9456
9457     cygwin* | mingw* | pw32* | cegcc*)
9458       # When not using gcc, we currently assume that we are using
9459       # Microsoft Visual C++.
9460       # hardcode_libdir_flag_spec is actually meaningless, as there is
9461       # no search path for DLLs.
9462       case $cc_basename in
9463       cl*)
9464         # Native MSVC
9465         hardcode_libdir_flag_spec=' '
9466         allow_undefined_flag=unsupported
9467         always_export_symbols=yes
9468         file_list_spec='@'
9469         # Tell ltmain to make .lib files, not .a files.
9470         libext=lib
9471         # Tell ltmain to make .dll files, not .so files.
9472         shrext_cmds=".dll"
9473         # FIXME: Setting linknames here is a bad hack.
9474         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9475         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9476             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9477           else
9478             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9479           fi~
9480           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9481           linknames='
9482         # The linker will not automatically build a static lib if we build a DLL.
9483         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9484         enable_shared_with_static_runtimes=yes
9485         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9486         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9487         # Don't use ranlib
9488         old_postinstall_cmds='chmod 644 $oldlib'
9489         postlink_cmds='lt_outputfile="@OUTPUT@"~
9490           lt_tool_outputfile="@TOOL_OUTPUT@"~
9491           case $lt_outputfile in
9492             *.exe|*.EXE) ;;
9493             *)
9494               lt_outputfile="$lt_outputfile.exe"
9495               lt_tool_outputfile="$lt_tool_outputfile.exe"
9496               ;;
9497           esac~
9498           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9499             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9500             $RM "$lt_outputfile.manifest";
9501           fi'
9502         ;;
9503       *)
9504         # Assume MSVC wrapper
9505         hardcode_libdir_flag_spec=' '
9506         allow_undefined_flag=unsupported
9507         # Tell ltmain to make .lib files, not .a files.
9508         libext=lib
9509         # Tell ltmain to make .dll files, not .so files.
9510         shrext_cmds=".dll"
9511         # FIXME: Setting linknames here is a bad hack.
9512         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9513         # The linker will automatically build a .lib file if we build a DLL.
9514         old_archive_from_new_cmds='true'
9515         # FIXME: Should let the user specify the lib program.
9516         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9517         enable_shared_with_static_runtimes=yes
9518         ;;
9519       esac
9520       ;;
9521
9522     darwin* | rhapsody*)
9523
9524
9525   archive_cmds_need_lc=no
9526   hardcode_direct=no
9527   hardcode_automatic=yes
9528   hardcode_shlibpath_var=unsupported
9529   if test "$lt_cv_ld_force_load" = "yes"; then
9530     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9531
9532   else
9533     whole_archive_flag_spec=''
9534   fi
9535   link_all_deplibs=yes
9536   allow_undefined_flag="$_lt_dar_allow_undefined"
9537   case $cc_basename in
9538      ifort*) _lt_dar_can_shared=yes ;;
9539      *) _lt_dar_can_shared=$GCC ;;
9540   esac
9541   if test "$_lt_dar_can_shared" = "yes"; then
9542     output_verbose_link_cmd=func_echo_all
9543     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9544     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9545     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}"
9546     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}"
9547
9548   else
9549   ld_shlibs=no
9550   fi
9551
9552       ;;
9553
9554     dgux*)
9555       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9556       hardcode_libdir_flag_spec='-L$libdir'
9557       hardcode_shlibpath_var=no
9558       ;;
9559
9560     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9561     # support.  Future versions do this automatically, but an explicit c++rt0.o
9562     # does not break anything, and helps significantly (at the cost of a little
9563     # extra space).
9564     freebsd2.2*)
9565       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9566       hardcode_libdir_flag_spec='-R$libdir'
9567       hardcode_direct=yes
9568       hardcode_shlibpath_var=no
9569       ;;
9570
9571     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9572     freebsd2.*)
9573       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9574       hardcode_direct=yes
9575       hardcode_minus_L=yes
9576       hardcode_shlibpath_var=no
9577       ;;
9578
9579     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9580     freebsd* | dragonfly*)
9581       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9582       hardcode_libdir_flag_spec='-R$libdir'
9583       hardcode_direct=yes
9584       hardcode_shlibpath_var=no
9585       ;;
9586
9587     hpux9*)
9588       if test "$GCC" = yes; then
9589         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9590       else
9591         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'
9592       fi
9593       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9594       hardcode_libdir_separator=:
9595       hardcode_direct=yes
9596
9597       # hardcode_minus_L: Not really in the search PATH,
9598       # but as the default location of the library.
9599       hardcode_minus_L=yes
9600       export_dynamic_flag_spec='${wl}-E'
9601       ;;
9602
9603     hpux10*)
9604       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9605         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9606       else
9607         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9608       fi
9609       if test "$with_gnu_ld" = no; then
9610         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9611         hardcode_libdir_separator=:
9612         hardcode_direct=yes
9613         hardcode_direct_absolute=yes
9614         export_dynamic_flag_spec='${wl}-E'
9615         # hardcode_minus_L: Not really in the search PATH,
9616         # but as the default location of the library.
9617         hardcode_minus_L=yes
9618       fi
9619       ;;
9620
9621     hpux11*)
9622       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9623         case $host_cpu in
9624         hppa*64*)
9625           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9626           ;;
9627         ia64*)
9628           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9629           ;;
9630         *)
9631           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9632           ;;
9633         esac
9634       else
9635         case $host_cpu in
9636         hppa*64*)
9637           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9638           ;;
9639         ia64*)
9640           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9641           ;;
9642         *)
9643
9644           # Older versions of the 11.00 compiler do not understand -b yet
9645           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9646           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9647 $as_echo_n "checking if $CC understands -b... " >&6; }
9648 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9649   $as_echo_n "(cached) " >&6
9650 else
9651   lt_cv_prog_compiler__b=no
9652    save_LDFLAGS="$LDFLAGS"
9653    LDFLAGS="$LDFLAGS -b"
9654    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9655    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9656      # The linker can only warn and ignore the option if not recognized
9657      # So say no if there are warnings
9658      if test -s conftest.err; then
9659        # Append any errors to the config.log.
9660        cat conftest.err 1>&5
9661        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9662        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9663        if diff conftest.exp conftest.er2 >/dev/null; then
9664          lt_cv_prog_compiler__b=yes
9665        fi
9666      else
9667        lt_cv_prog_compiler__b=yes
9668      fi
9669    fi
9670    $RM -r conftest*
9671    LDFLAGS="$save_LDFLAGS"
9672
9673 fi
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9675 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9676
9677 if test x"$lt_cv_prog_compiler__b" = xyes; then
9678     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9679 else
9680     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9681 fi
9682
9683           ;;
9684         esac
9685       fi
9686       if test "$with_gnu_ld" = no; then
9687         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9688         hardcode_libdir_separator=:
9689
9690         case $host_cpu in
9691         hppa*64*|ia64*)
9692           hardcode_direct=no
9693           hardcode_shlibpath_var=no
9694           ;;
9695         *)
9696           hardcode_direct=yes
9697           hardcode_direct_absolute=yes
9698           export_dynamic_flag_spec='${wl}-E'
9699
9700           # hardcode_minus_L: Not really in the search PATH,
9701           # but as the default location of the library.
9702           hardcode_minus_L=yes
9703           ;;
9704         esac
9705       fi
9706       ;;
9707
9708     irix5* | irix6* | nonstopux*)
9709       if test "$GCC" = yes; then
9710         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9711         # Try to use the -exported_symbol ld option, if it does not
9712         # work, assume that -exports_file does not work either and
9713         # implicitly export all symbols.
9714         # This should be the same for all languages, so no per-tag cache variable.
9715         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9716 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9717 if test "${lt_cv_irix_exported_symbol+set}" = set; then :
9718   $as_echo_n "(cached) " >&6
9719 else
9720   save_LDFLAGS="$LDFLAGS"
9721            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9722            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723 /* end confdefs.h.  */
9724 int foo (void) { return 0; }
9725 _ACEOF
9726 if ac_fn_c_try_link "$LINENO"; then :
9727   lt_cv_irix_exported_symbol=yes
9728 else
9729   lt_cv_irix_exported_symbol=no
9730 fi
9731 rm -f core conftest.err conftest.$ac_objext \
9732     conftest$ac_exeext conftest.$ac_ext
9733            LDFLAGS="$save_LDFLAGS"
9734 fi
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9736 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9737         if test "$lt_cv_irix_exported_symbol" = yes; then
9738           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9739         fi
9740       else
9741         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9742         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9743       fi
9744       archive_cmds_need_lc='no'
9745       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9746       hardcode_libdir_separator=:
9747       inherit_rpath=yes
9748       link_all_deplibs=yes
9749       ;;
9750
9751     netbsd* | netbsdelf*-gnu)
9752       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9753         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9754       else
9755         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9756       fi
9757       hardcode_libdir_flag_spec='-R$libdir'
9758       hardcode_direct=yes
9759       hardcode_shlibpath_var=no
9760       ;;
9761
9762     newsos6)
9763       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9764       hardcode_direct=yes
9765       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9766       hardcode_libdir_separator=:
9767       hardcode_shlibpath_var=no
9768       ;;
9769
9770     *nto* | *qnx*)
9771       ;;
9772
9773     openbsd*)
9774       if test -f /usr/libexec/ld.so; then
9775         hardcode_direct=yes
9776         hardcode_shlibpath_var=no
9777         hardcode_direct_absolute=yes
9778         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9779           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9780           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9781           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9782           export_dynamic_flag_spec='${wl}-E'
9783         else
9784           case $host_os in
9785            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9786              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9787              hardcode_libdir_flag_spec='-R$libdir'
9788              ;;
9789            *)
9790              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9791              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9792              ;;
9793           esac
9794         fi
9795       else
9796         ld_shlibs=no
9797       fi
9798       ;;
9799
9800     os2*)
9801       hardcode_libdir_flag_spec='-L$libdir'
9802       hardcode_minus_L=yes
9803       allow_undefined_flag=unsupported
9804       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'
9805       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9806       ;;
9807
9808     osf3*)
9809       if test "$GCC" = yes; then
9810         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9811         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9812       else
9813         allow_undefined_flag=' -expect_unresolved \*'
9814         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9815       fi
9816       archive_cmds_need_lc='no'
9817       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9818       hardcode_libdir_separator=:
9819       ;;
9820
9821     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9822       if test "$GCC" = yes; then
9823         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9824         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9825         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9826       else
9827         allow_undefined_flag=' -expect_unresolved \*'
9828         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9829         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~
9830         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9831
9832         # Both c and cxx compiler support -rpath directly
9833         hardcode_libdir_flag_spec='-rpath $libdir'
9834       fi
9835       archive_cmds_need_lc='no'
9836       hardcode_libdir_separator=:
9837       ;;
9838
9839     solaris*)
9840       no_undefined_flag=' -z defs'
9841       if test "$GCC" = yes; then
9842         wlarc='${wl}'
9843         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9844         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9845           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9846       else
9847         case `$CC -V 2>&1` in
9848         *"Compilers 5.0"*)
9849           wlarc=''
9850           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9851           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9852           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9853           ;;
9854         *)
9855           wlarc='${wl}'
9856           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9857           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9858           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9859           ;;
9860         esac
9861       fi
9862       hardcode_libdir_flag_spec='-R$libdir'
9863       hardcode_shlibpath_var=no
9864       case $host_os in
9865       solaris2.[0-5] | solaris2.[0-5].*) ;;
9866       *)
9867         # The compiler driver will combine and reorder linker options,
9868         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9869         # but is careful enough not to reorder.
9870         # Supported since Solaris 2.6 (maybe 2.5.1?)
9871         if test "$GCC" = yes; then
9872           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9873         else
9874           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9875         fi
9876         ;;
9877       esac
9878       link_all_deplibs=yes
9879       ;;
9880
9881     sunos4*)
9882       if test "x$host_vendor" = xsequent; then
9883         # Use $CC to link under sequent, because it throws in some extra .o
9884         # files that make .init and .fini sections work.
9885         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9886       else
9887         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9888       fi
9889       hardcode_libdir_flag_spec='-L$libdir'
9890       hardcode_direct=yes
9891       hardcode_minus_L=yes
9892       hardcode_shlibpath_var=no
9893       ;;
9894
9895     sysv4)
9896       case $host_vendor in
9897         sni)
9898           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9899           hardcode_direct=yes # is this really true???
9900         ;;
9901         siemens)
9902           ## LD is ld it makes a PLAMLIB
9903           ## CC just makes a GrossModule.
9904           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9905           reload_cmds='$CC -r -o $output$reload_objs'
9906           hardcode_direct=no
9907         ;;
9908         motorola)
9909           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9910           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9911         ;;
9912       esac
9913       runpath_var='LD_RUN_PATH'
9914       hardcode_shlibpath_var=no
9915       ;;
9916
9917     sysv4.3*)
9918       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9919       hardcode_shlibpath_var=no
9920       export_dynamic_flag_spec='-Bexport'
9921       ;;
9922
9923     sysv4*MP*)
9924       if test -d /usr/nec; then
9925         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9926         hardcode_shlibpath_var=no
9927         runpath_var=LD_RUN_PATH
9928         hardcode_runpath_var=yes
9929         ld_shlibs=yes
9930       fi
9931       ;;
9932
9933     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9934       no_undefined_flag='${wl}-z,text'
9935       archive_cmds_need_lc=no
9936       hardcode_shlibpath_var=no
9937       runpath_var='LD_RUN_PATH'
9938
9939       if test "$GCC" = yes; then
9940         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9941         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9942       else
9943         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9944         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9945       fi
9946       ;;
9947
9948     sysv5* | sco3.2v5* | sco5v6*)
9949       # Note: We can NOT use -z defs as we might desire, because we do not
9950       # link with -lc, and that would cause any symbols used from libc to
9951       # always be unresolved, which means just about no library would
9952       # ever link correctly.  If we're not using GNU ld we use -z text
9953       # though, which does catch some bad symbols but isn't as heavy-handed
9954       # as -z defs.
9955       no_undefined_flag='${wl}-z,text'
9956       allow_undefined_flag='${wl}-z,nodefs'
9957       archive_cmds_need_lc=no
9958       hardcode_shlibpath_var=no
9959       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9960       hardcode_libdir_separator=':'
9961       link_all_deplibs=yes
9962       export_dynamic_flag_spec='${wl}-Bexport'
9963       runpath_var='LD_RUN_PATH'
9964
9965       if test "$GCC" = yes; then
9966         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9967         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9968       else
9969         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9970         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9971       fi
9972       ;;
9973
9974     uts4*)
9975       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9976       hardcode_libdir_flag_spec='-L$libdir'
9977       hardcode_shlibpath_var=no
9978       ;;
9979
9980     *)
9981       ld_shlibs=no
9982       ;;
9983     esac
9984
9985     if test x$host_vendor = xsni; then
9986       case $host in
9987       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9988         export_dynamic_flag_spec='${wl}-Blargedynsym'
9989         ;;
9990       esac
9991     fi
9992   fi
9993
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9995 $as_echo "$ld_shlibs" >&6; }
9996 test "$ld_shlibs" = no && can_build_shared=no
9997
9998 with_gnu_ld=$with_gnu_ld
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014 #
10015 # Do we need to explicitly link libc?
10016 #
10017 case "x$archive_cmds_need_lc" in
10018 x|xyes)
10019   # Assume -lc should be added
10020   archive_cmds_need_lc=yes
10021
10022   if test "$enable_shared" = yes && test "$GCC" = yes; then
10023     case $archive_cmds in
10024     *'~'*)
10025       # FIXME: we may have to deal with multi-command sequences.
10026       ;;
10027     '$CC '*)
10028       # Test whether the compiler implicitly links with -lc since on some
10029       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10030       # to ld, don't add -lc before -lgcc.
10031       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10032 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10033 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10034   $as_echo_n "(cached) " >&6
10035 else
10036   $RM conftest*
10037         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10038
10039         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10040   (eval $ac_compile) 2>&5
10041   ac_status=$?
10042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10043   test $ac_status = 0; } 2>conftest.err; then
10044           soname=conftest
10045           lib=conftest
10046           libobjs=conftest.$ac_objext
10047           deplibs=
10048           wl=$lt_prog_compiler_wl
10049           pic_flag=$lt_prog_compiler_pic
10050           compiler_flags=-v
10051           linker_flags=-v
10052           verstring=
10053           output_objdir=.
10054           libname=conftest
10055           lt_save_allow_undefined_flag=$allow_undefined_flag
10056           allow_undefined_flag=
10057           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10058   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10059   ac_status=$?
10060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10061   test $ac_status = 0; }
10062           then
10063             lt_cv_archive_cmds_need_lc=no
10064           else
10065             lt_cv_archive_cmds_need_lc=yes
10066           fi
10067           allow_undefined_flag=$lt_save_allow_undefined_flag
10068         else
10069           cat conftest.err 1>&5
10070         fi
10071         $RM conftest*
10072
10073 fi
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10075 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10076       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10077       ;;
10078     esac
10079   fi
10080   ;;
10081 esac
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10235 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10236
10237 if test "$GCC" = yes; then
10238   case $host_os in
10239     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10240     *) lt_awk_arg="/^libraries:/" ;;
10241   esac
10242   case $host_os in
10243     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10244     *) lt_sed_strip_eq="s,=/,/,g" ;;
10245   esac
10246   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10247   case $lt_search_path_spec in
10248   *\;*)
10249     # if the path contains ";" then we assume it to be the separator
10250     # otherwise default to the standard path separator (i.e. ":") - it is
10251     # assumed that no part of a normal pathname contains ";" but that should
10252     # okay in the real world where ";" in dirpaths is itself problematic.
10253     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10254     ;;
10255   *)
10256     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10257     ;;
10258   esac
10259   # Ok, now we have the path, separated by spaces, we can step through it
10260   # and add multilib dir if necessary.
10261   lt_tmp_lt_search_path_spec=
10262   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10263   for lt_sys_path in $lt_search_path_spec; do
10264     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10265       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10266     else
10267       test -d "$lt_sys_path" && \
10268         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10269     fi
10270   done
10271   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10272 BEGIN {RS=" "; FS="/|\n";} {
10273   lt_foo="";
10274   lt_count=0;
10275   for (lt_i = NF; lt_i > 0; lt_i--) {
10276     if ($lt_i != "" && $lt_i != ".") {
10277       if ($lt_i == "..") {
10278         lt_count++;
10279       } else {
10280         if (lt_count == 0) {
10281           lt_foo="/" $lt_i lt_foo;
10282         } else {
10283           lt_count--;
10284         }
10285       }
10286     }
10287   }
10288   if (lt_foo != "") { lt_freq[lt_foo]++; }
10289   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10290 }'`
10291   # AWK program above erroneously prepends '/' to C:/dos/paths
10292   # for these hosts.
10293   case $host_os in
10294     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10295       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10296   esac
10297   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10298 else
10299   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10300 fi
10301 library_names_spec=
10302 libname_spec='lib$name'
10303 soname_spec=
10304 shrext_cmds=".so"
10305 postinstall_cmds=
10306 postuninstall_cmds=
10307 finish_cmds=
10308 finish_eval=
10309 shlibpath_var=
10310 shlibpath_overrides_runpath=unknown
10311 version_type=none
10312 dynamic_linker="$host_os ld.so"
10313 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10314 need_lib_prefix=unknown
10315 hardcode_into_libs=no
10316
10317 # when you set need_version to no, make sure it does not cause -set_version
10318 # flags to be left without arguments
10319 need_version=unknown
10320
10321 case $host_os in
10322 aix3*)
10323   version_type=linux # correct to gnu/linux during the next big refactor
10324   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10325   shlibpath_var=LIBPATH
10326
10327   # AIX 3 has no versioning support, so we append a major version to the name.
10328   soname_spec='${libname}${release}${shared_ext}$major'
10329   ;;
10330
10331 aix[4-9]*)
10332   version_type=linux # correct to gnu/linux during the next big refactor
10333   need_lib_prefix=no
10334   need_version=no
10335   hardcode_into_libs=yes
10336   if test "$host_cpu" = ia64; then
10337     # AIX 5 supports IA64
10338     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10339     shlibpath_var=LD_LIBRARY_PATH
10340   else
10341     # With GCC up to 2.95.x, collect2 would create an import file
10342     # for dependence libraries.  The import file would start with
10343     # the line `#! .'.  This would cause the generated library to
10344     # depend on `.', always an invalid library.  This was fixed in
10345     # development snapshots of GCC prior to 3.0.
10346     case $host_os in
10347       aix4 | aix4.[01] | aix4.[01].*)
10348       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10349            echo ' yes '
10350            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10351         :
10352       else
10353         can_build_shared=no
10354       fi
10355       ;;
10356     esac
10357     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10358     # soname into executable. Probably we can add versioning support to
10359     # collect2, so additional links can be useful in future.
10360     if test "$aix_use_runtimelinking" = yes; then
10361       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10362       # instead of lib<name>.a to let people know that these are not
10363       # typical AIX shared libraries.
10364       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365     else
10366       # We preserve .a as extension for shared libraries through AIX4.2
10367       # and later when we are not doing run time linking.
10368       library_names_spec='${libname}${release}.a $libname.a'
10369       soname_spec='${libname}${release}${shared_ext}$major'
10370     fi
10371     shlibpath_var=LIBPATH
10372   fi
10373   ;;
10374
10375 amigaos*)
10376   case $host_cpu in
10377   powerpc)
10378     # Since July 2007 AmigaOS4 officially supports .so libraries.
10379     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10380     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381     ;;
10382   m68k)
10383     library_names_spec='$libname.ixlibrary $libname.a'
10384     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10385     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10386     ;;
10387   esac
10388   ;;
10389
10390 beos*)
10391   library_names_spec='${libname}${shared_ext}'
10392   dynamic_linker="$host_os ld.so"
10393   shlibpath_var=LIBRARY_PATH
10394   ;;
10395
10396 bsdi[45]*)
10397   version_type=linux # correct to gnu/linux during the next big refactor
10398   need_version=no
10399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400   soname_spec='${libname}${release}${shared_ext}$major'
10401   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10402   shlibpath_var=LD_LIBRARY_PATH
10403   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10404   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10405   # the default ld.so.conf also contains /usr/contrib/lib and
10406   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10407   # libtool to hard-code these into programs
10408   ;;
10409
10410 cygwin* | mingw* | pw32* | cegcc*)
10411   version_type=windows
10412   shrext_cmds=".dll"
10413   need_version=no
10414   need_lib_prefix=no
10415
10416   case $GCC,$cc_basename in
10417   yes,*)
10418     # gcc
10419     library_names_spec='$libname.dll.a'
10420     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10421     postinstall_cmds='base_file=`basename \${file}`~
10422       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10423       dldir=$destdir/`dirname \$dlpath`~
10424       test -d \$dldir || mkdir -p \$dldir~
10425       $install_prog $dir/$dlname \$dldir/$dlname~
10426       chmod a+x \$dldir/$dlname~
10427       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10428         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10429       fi'
10430     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10431       dlpath=$dir/\$dldll~
10432        $RM \$dlpath'
10433     shlibpath_overrides_runpath=yes
10434
10435     case $host_os in
10436     cygwin*)
10437       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10438       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10439
10440       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10441       ;;
10442     mingw* | cegcc*)
10443       # MinGW DLLs use traditional 'lib' prefix
10444       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10445       ;;
10446     pw32*)
10447       # pw32 DLLs use 'pw' prefix rather than 'lib'
10448       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10449       ;;
10450     esac
10451     dynamic_linker='Win32 ld.exe'
10452     ;;
10453
10454   *,cl*)
10455     # Native MSVC
10456     libname_spec='$name'
10457     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10458     library_names_spec='${libname}.dll.lib'
10459
10460     case $build_os in
10461     mingw*)
10462       sys_lib_search_path_spec=
10463       lt_save_ifs=$IFS
10464       IFS=';'
10465       for lt_path in $LIB
10466       do
10467         IFS=$lt_save_ifs
10468         # Let DOS variable expansion print the short 8.3 style file name.
10469         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10470         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10471       done
10472       IFS=$lt_save_ifs
10473       # Convert to MSYS style.
10474       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10475       ;;
10476     cygwin*)
10477       # Convert to unix form, then to dos form, then back to unix form
10478       # but this time dos style (no spaces!) so that the unix form looks
10479       # like /cygdrive/c/PROGRA~1:/cygdr...
10480       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10481       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10482       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10483       ;;
10484     *)
10485       sys_lib_search_path_spec="$LIB"
10486       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10487         # It is most probably a Windows format PATH.
10488         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10489       else
10490         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10491       fi
10492       # FIXME: find the short name or the path components, as spaces are
10493       # common. (e.g. "Program Files" -> "PROGRA~1")
10494       ;;
10495     esac
10496
10497     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10498     postinstall_cmds='base_file=`basename \${file}`~
10499       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10500       dldir=$destdir/`dirname \$dlpath`~
10501       test -d \$dldir || mkdir -p \$dldir~
10502       $install_prog $dir/$dlname \$dldir/$dlname'
10503     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10504       dlpath=$dir/\$dldll~
10505        $RM \$dlpath'
10506     shlibpath_overrides_runpath=yes
10507     dynamic_linker='Win32 link.exe'
10508     ;;
10509
10510   *)
10511     # Assume MSVC wrapper
10512     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10513     dynamic_linker='Win32 ld.exe'
10514     ;;
10515   esac
10516   # FIXME: first we should search . and the directory the executable is in
10517   shlibpath_var=PATH
10518   ;;
10519
10520 darwin* | rhapsody*)
10521   dynamic_linker="$host_os dyld"
10522   version_type=darwin
10523   need_lib_prefix=no
10524   need_version=no
10525   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10526   soname_spec='${libname}${release}${major}$shared_ext'
10527   shlibpath_overrides_runpath=yes
10528   shlibpath_var=DYLD_LIBRARY_PATH
10529   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10530
10531   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10532   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10533   ;;
10534
10535 dgux*)
10536   version_type=linux # correct to gnu/linux during the next big refactor
10537   need_lib_prefix=no
10538   need_version=no
10539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10540   soname_spec='${libname}${release}${shared_ext}$major'
10541   shlibpath_var=LD_LIBRARY_PATH
10542   ;;
10543
10544 freebsd* | dragonfly*)
10545   # DragonFly does not have aout.  When/if they implement a new
10546   # versioning mechanism, adjust this.
10547   if test -x /usr/bin/objformat; then
10548     objformat=`/usr/bin/objformat`
10549   else
10550     case $host_os in
10551     freebsd[23].*) objformat=aout ;;
10552     *) objformat=elf ;;
10553     esac
10554   fi
10555   version_type=freebsd-$objformat
10556   case $version_type in
10557     freebsd-elf*)
10558       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10559       need_version=no
10560       need_lib_prefix=no
10561       ;;
10562     freebsd-*)
10563       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10564       need_version=yes
10565       ;;
10566   esac
10567   shlibpath_var=LD_LIBRARY_PATH
10568   case $host_os in
10569   freebsd2.*)
10570     shlibpath_overrides_runpath=yes
10571     ;;
10572   freebsd3.[01]* | freebsdelf3.[01]*)
10573     shlibpath_overrides_runpath=yes
10574     hardcode_into_libs=yes
10575     ;;
10576   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10577   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10578     shlibpath_overrides_runpath=no
10579     hardcode_into_libs=yes
10580     ;;
10581   *) # from 4.6 on, and DragonFly
10582     shlibpath_overrides_runpath=yes
10583     hardcode_into_libs=yes
10584     ;;
10585   esac
10586   ;;
10587
10588 gnu*)
10589   version_type=linux # correct to gnu/linux during the next big refactor
10590   need_lib_prefix=no
10591   need_version=no
10592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10593   soname_spec='${libname}${release}${shared_ext}$major'
10594   shlibpath_var=LD_LIBRARY_PATH
10595   shlibpath_overrides_runpath=no
10596   hardcode_into_libs=yes
10597   ;;
10598
10599 haiku*)
10600   version_type=linux # correct to gnu/linux during the next big refactor
10601   need_lib_prefix=no
10602   need_version=no
10603   dynamic_linker="$host_os runtime_loader"
10604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10605   soname_spec='${libname}${release}${shared_ext}$major'
10606   shlibpath_var=LIBRARY_PATH
10607   shlibpath_overrides_runpath=yes
10608   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10609   hardcode_into_libs=yes
10610   ;;
10611
10612 hpux9* | hpux10* | hpux11*)
10613   # Give a soname corresponding to the major version so that dld.sl refuses to
10614   # link against other versions.
10615   version_type=sunos
10616   need_lib_prefix=no
10617   need_version=no
10618   case $host_cpu in
10619   ia64*)
10620     shrext_cmds='.so'
10621     hardcode_into_libs=yes
10622     dynamic_linker="$host_os dld.so"
10623     shlibpath_var=LD_LIBRARY_PATH
10624     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10625     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626     soname_spec='${libname}${release}${shared_ext}$major'
10627     if test "X$HPUX_IA64_MODE" = X32; then
10628       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10629     else
10630       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10631     fi
10632     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10633     ;;
10634   hppa*64*)
10635     shrext_cmds='.sl'
10636     hardcode_into_libs=yes
10637     dynamic_linker="$host_os dld.sl"
10638     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10639     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10640     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641     soname_spec='${libname}${release}${shared_ext}$major'
10642     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10643     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10644     ;;
10645   *)
10646     shrext_cmds='.sl'
10647     dynamic_linker="$host_os dld.sl"
10648     shlibpath_var=SHLIB_PATH
10649     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10650     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651     soname_spec='${libname}${release}${shared_ext}$major'
10652     ;;
10653   esac
10654   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10655   postinstall_cmds='chmod 555 $lib'
10656   # or fails outright, so override atomically:
10657   install_override_mode=555
10658   ;;
10659
10660 interix[3-9]*)
10661   version_type=linux # correct to gnu/linux during the next big refactor
10662   need_lib_prefix=no
10663   need_version=no
10664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10665   soname_spec='${libname}${release}${shared_ext}$major'
10666   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10667   shlibpath_var=LD_LIBRARY_PATH
10668   shlibpath_overrides_runpath=no
10669   hardcode_into_libs=yes
10670   ;;
10671
10672 irix5* | irix6* | nonstopux*)
10673   case $host_os in
10674     nonstopux*) version_type=nonstopux ;;
10675     *)
10676         if test "$lt_cv_prog_gnu_ld" = yes; then
10677                 version_type=linux # correct to gnu/linux during the next big refactor
10678         else
10679                 version_type=irix
10680         fi ;;
10681   esac
10682   need_lib_prefix=no
10683   need_version=no
10684   soname_spec='${libname}${release}${shared_ext}$major'
10685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10686   case $host_os in
10687   irix5* | nonstopux*)
10688     libsuff= shlibsuff=
10689     ;;
10690   *)
10691     case $LD in # libtool.m4 will add one of these switches to LD
10692     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10693       libsuff= shlibsuff= libmagic=32-bit;;
10694     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10695       libsuff=32 shlibsuff=N32 libmagic=N32;;
10696     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10697       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10698     *) libsuff= shlibsuff= libmagic=never-match;;
10699     esac
10700     ;;
10701   esac
10702   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10703   shlibpath_overrides_runpath=no
10704   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10705   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10706   hardcode_into_libs=yes
10707   ;;
10708
10709 # No shared lib support for Linux oldld, aout, or coff.
10710 linux*oldld* | linux*aout* | linux*coff*)
10711   dynamic_linker=no
10712   ;;
10713
10714 # This must be glibc/ELF.
10715 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10716   version_type=linux # correct to gnu/linux during the next big refactor
10717   need_lib_prefix=no
10718   need_version=no
10719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720   soname_spec='${libname}${release}${shared_ext}$major'
10721   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10722   shlibpath_var=LD_LIBRARY_PATH
10723   shlibpath_overrides_runpath=no
10724
10725   # Some binutils ld are patched to set DT_RUNPATH
10726   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10727   $as_echo_n "(cached) " >&6
10728 else
10729   lt_cv_shlibpath_overrides_runpath=no
10730     save_LDFLAGS=$LDFLAGS
10731     save_libdir=$libdir
10732     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10733          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10734     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h.  */
10736
10737 int
10738 main ()
10739 {
10740
10741   ;
10742   return 0;
10743 }
10744 _ACEOF
10745 if ac_fn_c_try_link "$LINENO"; then :
10746   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10747   lt_cv_shlibpath_overrides_runpath=yes
10748 fi
10749 fi
10750 rm -f core conftest.err conftest.$ac_objext \
10751     conftest$ac_exeext conftest.$ac_ext
10752     LDFLAGS=$save_LDFLAGS
10753     libdir=$save_libdir
10754
10755 fi
10756
10757   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10758
10759   # This implies no fast_install, which is unacceptable.
10760   # Some rework will be needed to allow for fast_install
10761   # before this can be enabled.
10762   hardcode_into_libs=yes
10763
10764   # Append ld.so.conf contents to the search path
10765   if test -f /etc/ld.so.conf; then
10766     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;s/"//g;/^$/d' | tr '\n' ' '`
10767     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10768   fi
10769
10770   # We used to test for /lib/ld.so.1 and disable shared libraries on
10771   # powerpc, because MkLinux only supported shared libraries with the
10772   # GNU dynamic linker.  Since this was broken with cross compilers,
10773   # most powerpc-linux boxes support dynamic linking these days and
10774   # people can always --disable-shared, the test was removed, and we
10775   # assume the GNU/Linux dynamic linker is in use.
10776   dynamic_linker='GNU/Linux ld.so'
10777   ;;
10778
10779 netbsdelf*-gnu)
10780   version_type=linux
10781   need_lib_prefix=no
10782   need_version=no
10783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10784   soname_spec='${libname}${release}${shared_ext}$major'
10785   shlibpath_var=LD_LIBRARY_PATH
10786   shlibpath_overrides_runpath=no
10787   hardcode_into_libs=yes
10788   dynamic_linker='NetBSD ld.elf_so'
10789   ;;
10790
10791 netbsd*)
10792   version_type=sunos
10793   need_lib_prefix=no
10794   need_version=no
10795   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10796     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10797     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10798     dynamic_linker='NetBSD (a.out) ld.so'
10799   else
10800     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10801     soname_spec='${libname}${release}${shared_ext}$major'
10802     dynamic_linker='NetBSD ld.elf_so'
10803   fi
10804   shlibpath_var=LD_LIBRARY_PATH
10805   shlibpath_overrides_runpath=yes
10806   hardcode_into_libs=yes
10807   ;;
10808
10809 newsos6)
10810   version_type=linux # correct to gnu/linux during the next big refactor
10811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812   shlibpath_var=LD_LIBRARY_PATH
10813   shlibpath_overrides_runpath=yes
10814   ;;
10815
10816 *nto* | *qnx*)
10817   version_type=qnx
10818   need_lib_prefix=no
10819   need_version=no
10820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10821   soname_spec='${libname}${release}${shared_ext}$major'
10822   shlibpath_var=LD_LIBRARY_PATH
10823   shlibpath_overrides_runpath=no
10824   hardcode_into_libs=yes
10825   dynamic_linker='ldqnx.so'
10826   ;;
10827
10828 openbsd*)
10829   version_type=sunos
10830   sys_lib_dlsearch_path_spec="/usr/lib"
10831   need_lib_prefix=no
10832   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10833   case $host_os in
10834     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10835     *)                          need_version=no  ;;
10836   esac
10837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10838   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10839   shlibpath_var=LD_LIBRARY_PATH
10840   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10841     case $host_os in
10842       openbsd2.[89] | openbsd2.[89].*)
10843         shlibpath_overrides_runpath=no
10844         ;;
10845       *)
10846         shlibpath_overrides_runpath=yes
10847         ;;
10848       esac
10849   else
10850     shlibpath_overrides_runpath=yes
10851   fi
10852   ;;
10853
10854 os2*)
10855   libname_spec='$name'
10856   shrext_cmds=".dll"
10857   need_lib_prefix=no
10858   library_names_spec='$libname${shared_ext} $libname.a'
10859   dynamic_linker='OS/2 ld.exe'
10860   shlibpath_var=LIBPATH
10861   ;;
10862
10863 osf3* | osf4* | osf5*)
10864   version_type=osf
10865   need_lib_prefix=no
10866   need_version=no
10867   soname_spec='${libname}${release}${shared_ext}$major'
10868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869   shlibpath_var=LD_LIBRARY_PATH
10870   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10871   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10872   ;;
10873
10874 rdos*)
10875   dynamic_linker=no
10876   ;;
10877
10878 solaris*)
10879   version_type=linux # correct to gnu/linux during the next big refactor
10880   need_lib_prefix=no
10881   need_version=no
10882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10883   soname_spec='${libname}${release}${shared_ext}$major'
10884   shlibpath_var=LD_LIBRARY_PATH
10885   shlibpath_overrides_runpath=yes
10886   hardcode_into_libs=yes
10887   # ldd complains unless libraries are executable
10888   postinstall_cmds='chmod +x $lib'
10889   ;;
10890
10891 sunos4*)
10892   version_type=sunos
10893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10894   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10895   shlibpath_var=LD_LIBRARY_PATH
10896   shlibpath_overrides_runpath=yes
10897   if test "$with_gnu_ld" = yes; then
10898     need_lib_prefix=no
10899   fi
10900   need_version=yes
10901   ;;
10902
10903 sysv4 | sysv4.3*)
10904   version_type=linux # correct to gnu/linux during the next big refactor
10905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10906   soname_spec='${libname}${release}${shared_ext}$major'
10907   shlibpath_var=LD_LIBRARY_PATH
10908   case $host_vendor in
10909     sni)
10910       shlibpath_overrides_runpath=no
10911       need_lib_prefix=no
10912       runpath_var=LD_RUN_PATH
10913       ;;
10914     siemens)
10915       need_lib_prefix=no
10916       ;;
10917     motorola)
10918       need_lib_prefix=no
10919       need_version=no
10920       shlibpath_overrides_runpath=no
10921       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10922       ;;
10923   esac
10924   ;;
10925
10926 sysv4*MP*)
10927   if test -d /usr/nec ;then
10928     version_type=linux # correct to gnu/linux during the next big refactor
10929     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10930     soname_spec='$libname${shared_ext}.$major'
10931     shlibpath_var=LD_LIBRARY_PATH
10932   fi
10933   ;;
10934
10935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10936   version_type=freebsd-elf
10937   need_lib_prefix=no
10938   need_version=no
10939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10940   soname_spec='${libname}${release}${shared_ext}$major'
10941   shlibpath_var=LD_LIBRARY_PATH
10942   shlibpath_overrides_runpath=yes
10943   hardcode_into_libs=yes
10944   if test "$with_gnu_ld" = yes; then
10945     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10946   else
10947     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10948     case $host_os in
10949       sco3.2v5*)
10950         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10951         ;;
10952     esac
10953   fi
10954   sys_lib_dlsearch_path_spec='/usr/lib'
10955   ;;
10956
10957 tpf*)
10958   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10959   version_type=linux # correct to gnu/linux during the next big refactor
10960   need_lib_prefix=no
10961   need_version=no
10962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963   shlibpath_var=LD_LIBRARY_PATH
10964   shlibpath_overrides_runpath=no
10965   hardcode_into_libs=yes
10966   ;;
10967
10968 uts4*)
10969   version_type=linux # correct to gnu/linux during the next big refactor
10970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971   soname_spec='${libname}${release}${shared_ext}$major'
10972   shlibpath_var=LD_LIBRARY_PATH
10973   ;;
10974
10975 *)
10976   dynamic_linker=no
10977   ;;
10978 esac
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10980 $as_echo "$dynamic_linker" >&6; }
10981 test "$dynamic_linker" = no && can_build_shared=no
10982
10983 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10984 if test "$GCC" = yes; then
10985   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10986 fi
10987
10988 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10989   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10990 fi
10991 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10992   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10993 fi
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11087 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11088 hardcode_action=
11089 if test -n "$hardcode_libdir_flag_spec" ||
11090    test -n "$runpath_var" ||
11091    test "X$hardcode_automatic" = "Xyes" ; then
11092
11093   # We can hardcode non-existent directories.
11094   if test "$hardcode_direct" != no &&
11095      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11096      # have to relink, otherwise we might link with an installed library
11097      # when we should be linking with a yet-to-be-installed one
11098      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11099      test "$hardcode_minus_L" != no; then
11100     # Linking always hardcodes the temporary library directory.
11101     hardcode_action=relink
11102   else
11103     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11104     hardcode_action=immediate
11105   fi
11106 else
11107   # We cannot hardcode anything, or else we can only hardcode existing
11108   # directories.
11109   hardcode_action=unsupported
11110 fi
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11112 $as_echo "$hardcode_action" >&6; }
11113
11114 if test "$hardcode_action" = relink ||
11115    test "$inherit_rpath" = yes; then
11116   # Fast installation is not supported
11117   enable_fast_install=no
11118 elif test "$shlibpath_overrides_runpath" = yes ||
11119      test "$enable_shared" = no; then
11120   # Fast installation is not necessary
11121   enable_fast_install=needless
11122 fi
11123
11124
11125
11126
11127
11128
11129   if test "x$enable_dlopen" != xyes; then
11130   enable_dlopen=unknown
11131   enable_dlopen_self=unknown
11132   enable_dlopen_self_static=unknown
11133 else
11134   lt_cv_dlopen=no
11135   lt_cv_dlopen_libs=
11136
11137   case $host_os in
11138   beos*)
11139     lt_cv_dlopen="load_add_on"
11140     lt_cv_dlopen_libs=
11141     lt_cv_dlopen_self=yes
11142     ;;
11143
11144   mingw* | pw32* | cegcc*)
11145     lt_cv_dlopen="LoadLibrary"
11146     lt_cv_dlopen_libs=
11147     ;;
11148
11149   cygwin*)
11150     lt_cv_dlopen="dlopen"
11151     lt_cv_dlopen_libs=
11152     ;;
11153
11154   darwin*)
11155   # if libdl is installed we need to link against it
11156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11157 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11158 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11159   $as_echo_n "(cached) " >&6
11160 else
11161   ac_check_lib_save_LIBS=$LIBS
11162 LIBS="-ldl  $LIBS"
11163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164 /* end confdefs.h.  */
11165
11166 /* Override any GCC internal prototype to avoid an error.
11167    Use char because int might match the return type of a GCC
11168    builtin and then its argument prototype would still apply.  */
11169 #ifdef __cplusplus
11170 extern "C"
11171 #endif
11172 char dlopen ();
11173 int
11174 main ()
11175 {
11176 return dlopen ();
11177   ;
11178   return 0;
11179 }
11180 _ACEOF
11181 if ac_fn_c_try_link "$LINENO"; then :
11182   ac_cv_lib_dl_dlopen=yes
11183 else
11184   ac_cv_lib_dl_dlopen=no
11185 fi
11186 rm -f core conftest.err conftest.$ac_objext \
11187     conftest$ac_exeext conftest.$ac_ext
11188 LIBS=$ac_check_lib_save_LIBS
11189 fi
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11191 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11192 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11193   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11194 else
11195
11196     lt_cv_dlopen="dyld"
11197     lt_cv_dlopen_libs=
11198     lt_cv_dlopen_self=yes
11199
11200 fi
11201
11202     ;;
11203
11204   *)
11205     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11206 if test "x$ac_cv_func_shl_load" = x""yes; then :
11207   lt_cv_dlopen="shl_load"
11208 else
11209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11210 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11211 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11212   $as_echo_n "(cached) " >&6
11213 else
11214   ac_check_lib_save_LIBS=$LIBS
11215 LIBS="-ldld  $LIBS"
11216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217 /* end confdefs.h.  */
11218
11219 /* Override any GCC internal prototype to avoid an error.
11220    Use char because int might match the return type of a GCC
11221    builtin and then its argument prototype would still apply.  */
11222 #ifdef __cplusplus
11223 extern "C"
11224 #endif
11225 char shl_load ();
11226 int
11227 main ()
11228 {
11229 return shl_load ();
11230   ;
11231   return 0;
11232 }
11233 _ACEOF
11234 if ac_fn_c_try_link "$LINENO"; then :
11235   ac_cv_lib_dld_shl_load=yes
11236 else
11237   ac_cv_lib_dld_shl_load=no
11238 fi
11239 rm -f core conftest.err conftest.$ac_objext \
11240     conftest$ac_exeext conftest.$ac_ext
11241 LIBS=$ac_check_lib_save_LIBS
11242 fi
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11244 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11245 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11246   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11247 else
11248   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11249 if test "x$ac_cv_func_dlopen" = x""yes; then :
11250   lt_cv_dlopen="dlopen"
11251 else
11252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11253 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11254 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11255   $as_echo_n "(cached) " >&6
11256 else
11257   ac_check_lib_save_LIBS=$LIBS
11258 LIBS="-ldl  $LIBS"
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h.  */
11261
11262 /* Override any GCC internal prototype to avoid an error.
11263    Use char because int might match the return type of a GCC
11264    builtin and then its argument prototype would still apply.  */
11265 #ifdef __cplusplus
11266 extern "C"
11267 #endif
11268 char dlopen ();
11269 int
11270 main ()
11271 {
11272 return dlopen ();
11273   ;
11274   return 0;
11275 }
11276 _ACEOF
11277 if ac_fn_c_try_link "$LINENO"; then :
11278   ac_cv_lib_dl_dlopen=yes
11279 else
11280   ac_cv_lib_dl_dlopen=no
11281 fi
11282 rm -f core conftest.err conftest.$ac_objext \
11283     conftest$ac_exeext conftest.$ac_ext
11284 LIBS=$ac_check_lib_save_LIBS
11285 fi
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11287 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11288 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11289   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11290 else
11291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11292 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11293 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11294   $as_echo_n "(cached) " >&6
11295 else
11296   ac_check_lib_save_LIBS=$LIBS
11297 LIBS="-lsvld  $LIBS"
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h.  */
11300
11301 /* Override any GCC internal prototype to avoid an error.
11302    Use char because int might match the return type of a GCC
11303    builtin and then its argument prototype would still apply.  */
11304 #ifdef __cplusplus
11305 extern "C"
11306 #endif
11307 char dlopen ();
11308 int
11309 main ()
11310 {
11311 return dlopen ();
11312   ;
11313   return 0;
11314 }
11315 _ACEOF
11316 if ac_fn_c_try_link "$LINENO"; then :
11317   ac_cv_lib_svld_dlopen=yes
11318 else
11319   ac_cv_lib_svld_dlopen=no
11320 fi
11321 rm -f core conftest.err conftest.$ac_objext \
11322     conftest$ac_exeext conftest.$ac_ext
11323 LIBS=$ac_check_lib_save_LIBS
11324 fi
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11326 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11327 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11328   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11329 else
11330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11331 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11332 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11333   $as_echo_n "(cached) " >&6
11334 else
11335   ac_check_lib_save_LIBS=$LIBS
11336 LIBS="-ldld  $LIBS"
11337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11338 /* end confdefs.h.  */
11339
11340 /* Override any GCC internal prototype to avoid an error.
11341    Use char because int might match the return type of a GCC
11342    builtin and then its argument prototype would still apply.  */
11343 #ifdef __cplusplus
11344 extern "C"
11345 #endif
11346 char dld_link ();
11347 int
11348 main ()
11349 {
11350 return dld_link ();
11351   ;
11352   return 0;
11353 }
11354 _ACEOF
11355 if ac_fn_c_try_link "$LINENO"; then :
11356   ac_cv_lib_dld_dld_link=yes
11357 else
11358   ac_cv_lib_dld_dld_link=no
11359 fi
11360 rm -f core conftest.err conftest.$ac_objext \
11361     conftest$ac_exeext conftest.$ac_ext
11362 LIBS=$ac_check_lib_save_LIBS
11363 fi
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11365 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11366 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11367   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11368 fi
11369
11370
11371 fi
11372
11373
11374 fi
11375
11376
11377 fi
11378
11379
11380 fi
11381
11382
11383 fi
11384
11385     ;;
11386   esac
11387
11388   if test "x$lt_cv_dlopen" != xno; then
11389     enable_dlopen=yes
11390   else
11391     enable_dlopen=no
11392   fi
11393
11394   case $lt_cv_dlopen in
11395   dlopen)
11396     save_CPPFLAGS="$CPPFLAGS"
11397     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11398
11399     save_LDFLAGS="$LDFLAGS"
11400     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11401
11402     save_LIBS="$LIBS"
11403     LIBS="$lt_cv_dlopen_libs $LIBS"
11404
11405     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11406 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11407 if test "${lt_cv_dlopen_self+set}" = set; then :
11408   $as_echo_n "(cached) " >&6
11409 else
11410           if test "$cross_compiling" = yes; then :
11411   lt_cv_dlopen_self=cross
11412 else
11413   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11414   lt_status=$lt_dlunknown
11415   cat > conftest.$ac_ext <<_LT_EOF
11416 #line $LINENO "configure"
11417 #include "confdefs.h"
11418
11419 #if HAVE_DLFCN_H
11420 #include <dlfcn.h>
11421 #endif
11422
11423 #include <stdio.h>
11424
11425 #ifdef RTLD_GLOBAL
11426 #  define LT_DLGLOBAL           RTLD_GLOBAL
11427 #else
11428 #  ifdef DL_GLOBAL
11429 #    define LT_DLGLOBAL         DL_GLOBAL
11430 #  else
11431 #    define LT_DLGLOBAL         0
11432 #  endif
11433 #endif
11434
11435 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11436    find out it does not work in some platform. */
11437 #ifndef LT_DLLAZY_OR_NOW
11438 #  ifdef RTLD_LAZY
11439 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11440 #  else
11441 #    ifdef DL_LAZY
11442 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11443 #    else
11444 #      ifdef RTLD_NOW
11445 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11446 #      else
11447 #        ifdef DL_NOW
11448 #          define LT_DLLAZY_OR_NOW      DL_NOW
11449 #        else
11450 #          define LT_DLLAZY_OR_NOW      0
11451 #        endif
11452 #      endif
11453 #    endif
11454 #  endif
11455 #endif
11456
11457 /* When -fvisbility=hidden is used, assume the code has been annotated
11458    correspondingly for the symbols needed.  */
11459 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11460 int fnord () __attribute__((visibility("default")));
11461 #endif
11462
11463 int fnord () { return 42; }
11464 int main ()
11465 {
11466   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11467   int status = $lt_dlunknown;
11468
11469   if (self)
11470     {
11471       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11472       else
11473         {
11474           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11475           else puts (dlerror ());
11476         }
11477       /* dlclose (self); */
11478     }
11479   else
11480     puts (dlerror ());
11481
11482   return status;
11483 }
11484 _LT_EOF
11485   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11486   (eval $ac_link) 2>&5
11487   ac_status=$?
11488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11489   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11490     (./conftest; exit; ) >&5 2>/dev/null
11491     lt_status=$?
11492     case x$lt_status in
11493       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11494       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11495       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11496     esac
11497   else :
11498     # compilation failed
11499     lt_cv_dlopen_self=no
11500   fi
11501 fi
11502 rm -fr conftest*
11503
11504
11505 fi
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11507 $as_echo "$lt_cv_dlopen_self" >&6; }
11508
11509     if test "x$lt_cv_dlopen_self" = xyes; then
11510       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11511       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11512 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11513 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11514   $as_echo_n "(cached) " >&6
11515 else
11516           if test "$cross_compiling" = yes; then :
11517   lt_cv_dlopen_self_static=cross
11518 else
11519   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11520   lt_status=$lt_dlunknown
11521   cat > conftest.$ac_ext <<_LT_EOF
11522 #line $LINENO "configure"
11523 #include "confdefs.h"
11524
11525 #if HAVE_DLFCN_H
11526 #include <dlfcn.h>
11527 #endif
11528
11529 #include <stdio.h>
11530
11531 #ifdef RTLD_GLOBAL
11532 #  define LT_DLGLOBAL           RTLD_GLOBAL
11533 #else
11534 #  ifdef DL_GLOBAL
11535 #    define LT_DLGLOBAL         DL_GLOBAL
11536 #  else
11537 #    define LT_DLGLOBAL         0
11538 #  endif
11539 #endif
11540
11541 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11542    find out it does not work in some platform. */
11543 #ifndef LT_DLLAZY_OR_NOW
11544 #  ifdef RTLD_LAZY
11545 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11546 #  else
11547 #    ifdef DL_LAZY
11548 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11549 #    else
11550 #      ifdef RTLD_NOW
11551 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11552 #      else
11553 #        ifdef DL_NOW
11554 #          define LT_DLLAZY_OR_NOW      DL_NOW
11555 #        else
11556 #          define LT_DLLAZY_OR_NOW      0
11557 #        endif
11558 #      endif
11559 #    endif
11560 #  endif
11561 #endif
11562
11563 /* When -fvisbility=hidden is used, assume the code has been annotated
11564    correspondingly for the symbols needed.  */
11565 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11566 int fnord () __attribute__((visibility("default")));
11567 #endif
11568
11569 int fnord () { return 42; }
11570 int main ()
11571 {
11572   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11573   int status = $lt_dlunknown;
11574
11575   if (self)
11576     {
11577       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11578       else
11579         {
11580           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11581           else puts (dlerror ());
11582         }
11583       /* dlclose (self); */
11584     }
11585   else
11586     puts (dlerror ());
11587
11588   return status;
11589 }
11590 _LT_EOF
11591   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11592   (eval $ac_link) 2>&5
11593   ac_status=$?
11594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11595   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11596     (./conftest; exit; ) >&5 2>/dev/null
11597     lt_status=$?
11598     case x$lt_status in
11599       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11600       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11601       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11602     esac
11603   else :
11604     # compilation failed
11605     lt_cv_dlopen_self_static=no
11606   fi
11607 fi
11608 rm -fr conftest*
11609
11610
11611 fi
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11613 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11614     fi
11615
11616     CPPFLAGS="$save_CPPFLAGS"
11617     LDFLAGS="$save_LDFLAGS"
11618     LIBS="$save_LIBS"
11619     ;;
11620   esac
11621
11622   case $lt_cv_dlopen_self in
11623   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11624   *) enable_dlopen_self=unknown ;;
11625   esac
11626
11627   case $lt_cv_dlopen_self_static in
11628   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11629   *) enable_dlopen_self_static=unknown ;;
11630   esac
11631 fi
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649 striplib=
11650 old_striplib=
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11652 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11653 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11654   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11655   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11657 $as_echo "yes" >&6; }
11658 else
11659 # FIXME - insert some real tests, host_os isn't really good enough
11660   case $host_os in
11661   darwin*)
11662     if test -n "$STRIP" ; then
11663       striplib="$STRIP -x"
11664       old_striplib="$STRIP -S"
11665       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11666 $as_echo "yes" >&6; }
11667     else
11668       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669 $as_echo "no" >&6; }
11670     fi
11671     ;;
11672   *)
11673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11674 $as_echo "no" >&6; }
11675     ;;
11676   esac
11677 fi
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690   # Report which library types will actually be built
11691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11692 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11694 $as_echo "$can_build_shared" >&6; }
11695
11696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11697 $as_echo_n "checking whether to build shared libraries... " >&6; }
11698   test "$can_build_shared" = "no" && enable_shared=no
11699
11700   # On AIX, shared libraries and static libraries use the same namespace, and
11701   # are all built from PIC.
11702   case $host_os in
11703   aix3*)
11704     test "$enable_shared" = yes && enable_static=no
11705     if test -n "$RANLIB"; then
11706       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11707       postinstall_cmds='$RANLIB $lib'
11708     fi
11709     ;;
11710
11711   aix[4-9]*)
11712     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11713       test "$enable_shared" = yes && enable_static=no
11714     fi
11715     ;;
11716   esac
11717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11718 $as_echo "$enable_shared" >&6; }
11719
11720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11721 $as_echo_n "checking whether to build static libraries... " >&6; }
11722   # Make sure either enable_shared or enable_static is yes.
11723   test "$enable_shared" = yes || enable_static=yes
11724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11725 $as_echo "$enable_static" >&6; }
11726
11727
11728
11729
11730 fi
11731 ac_ext=c
11732 ac_cpp='$CPP $CPPFLAGS'
11733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11736
11737 CC="$lt_save_CC"
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753         ac_config_commands="$ac_config_commands libtool"
11754
11755
11756
11757
11758 # Only expand once:
11759
11760
11761
11762 # Checks for programs.
11763
11764
11765
11766
11767
11768
11769
11770 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11771         if test -n "$ac_tool_prefix"; then
11772   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11773 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 $as_echo_n "checking for $ac_word... " >&6; }
11776 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11777   $as_echo_n "(cached) " >&6
11778 else
11779   case $PKG_CONFIG in
11780   [\\/]* | ?:[\\/]*)
11781   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11782   ;;
11783   *)
11784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11786 do
11787   IFS=$as_save_IFS
11788   test -z "$as_dir" && as_dir=.
11789     for ac_exec_ext in '' $ac_executable_extensions; do
11790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11791     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793     break 2
11794   fi
11795 done
11796   done
11797 IFS=$as_save_IFS
11798
11799   ;;
11800 esac
11801 fi
11802 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11803 if test -n "$PKG_CONFIG"; then
11804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11805 $as_echo "$PKG_CONFIG" >&6; }
11806 else
11807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11809 fi
11810
11811
11812 fi
11813 if test -z "$ac_cv_path_PKG_CONFIG"; then
11814   ac_pt_PKG_CONFIG=$PKG_CONFIG
11815   # Extract the first word of "pkg-config", so it can be a program name with args.
11816 set dummy pkg-config; ac_word=$2
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11818 $as_echo_n "checking for $ac_word... " >&6; }
11819 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11820   $as_echo_n "(cached) " >&6
11821 else
11822   case $ac_pt_PKG_CONFIG in
11823   [\\/]* | ?:[\\/]*)
11824   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11825   ;;
11826   *)
11827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828 for as_dir in $PATH
11829 do
11830   IFS=$as_save_IFS
11831   test -z "$as_dir" && as_dir=.
11832     for ac_exec_ext in '' $ac_executable_extensions; do
11833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11834     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11836     break 2
11837   fi
11838 done
11839   done
11840 IFS=$as_save_IFS
11841
11842   ;;
11843 esac
11844 fi
11845 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11846 if test -n "$ac_pt_PKG_CONFIG"; then
11847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11848 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11849 else
11850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11852 fi
11853
11854   if test "x$ac_pt_PKG_CONFIG" = x; then
11855     PKG_CONFIG=""
11856   else
11857     case $cross_compiling:$ac_tool_warned in
11858 yes:)
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11861 ac_tool_warned=yes ;;
11862 esac
11863     PKG_CONFIG=$ac_pt_PKG_CONFIG
11864   fi
11865 else
11866   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11867 fi
11868
11869 fi
11870 if test -n "$PKG_CONFIG"; then
11871         _pkg_min_version=0.23
11872         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11873 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11874         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11875                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11876 $as_echo "yes" >&6; }
11877         else
11878                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879 $as_echo "no" >&6; }
11880                 PKG_CONFIG=""
11881         fi
11882 fi
11883 ac_ext=c
11884 ac_cpp='$CPP $CPPFLAGS'
11885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11888 if test -n "$ac_tool_prefix"; then
11889   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11890 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11892 $as_echo_n "checking for $ac_word... " >&6; }
11893 if test "${ac_cv_prog_CC+set}" = set; then :
11894   $as_echo_n "(cached) " >&6
11895 else
11896   if test -n "$CC"; then
11897   ac_cv_prog_CC="$CC" # Let the user override the test.
11898 else
11899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900 for as_dir in $PATH
11901 do
11902   IFS=$as_save_IFS
11903   test -z "$as_dir" && as_dir=.
11904     for ac_exec_ext in '' $ac_executable_extensions; do
11905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11906     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11908     break 2
11909   fi
11910 done
11911   done
11912 IFS=$as_save_IFS
11913
11914 fi
11915 fi
11916 CC=$ac_cv_prog_CC
11917 if test -n "$CC"; then
11918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11919 $as_echo "$CC" >&6; }
11920 else
11921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922 $as_echo "no" >&6; }
11923 fi
11924
11925
11926 fi
11927 if test -z "$ac_cv_prog_CC"; then
11928   ac_ct_CC=$CC
11929   # Extract the first word of "gcc", so it can be a program name with args.
11930 set dummy gcc; ac_word=$2
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11932 $as_echo_n "checking for $ac_word... " >&6; }
11933 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11934   $as_echo_n "(cached) " >&6
11935 else
11936   if test -n "$ac_ct_CC"; then
11937   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11938 else
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11941 do
11942   IFS=$as_save_IFS
11943   test -z "$as_dir" && as_dir=.
11944     for ac_exec_ext in '' $ac_executable_extensions; do
11945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11946     ac_cv_prog_ac_ct_CC="gcc"
11947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11948     break 2
11949   fi
11950 done
11951   done
11952 IFS=$as_save_IFS
11953
11954 fi
11955 fi
11956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11957 if test -n "$ac_ct_CC"; then
11958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11959 $as_echo "$ac_ct_CC" >&6; }
11960 else
11961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962 $as_echo "no" >&6; }
11963 fi
11964
11965   if test "x$ac_ct_CC" = x; then
11966     CC=""
11967   else
11968     case $cross_compiling:$ac_tool_warned in
11969 yes:)
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11972 ac_tool_warned=yes ;;
11973 esac
11974     CC=$ac_ct_CC
11975   fi
11976 else
11977   CC="$ac_cv_prog_CC"
11978 fi
11979
11980 if test -z "$CC"; then
11981           if test -n "$ac_tool_prefix"; then
11982     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11983 set dummy ${ac_tool_prefix}cc; ac_word=$2
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11985 $as_echo_n "checking for $ac_word... " >&6; }
11986 if test "${ac_cv_prog_CC+set}" = set; then :
11987   $as_echo_n "(cached) " >&6
11988 else
11989   if test -n "$CC"; then
11990   ac_cv_prog_CC="$CC" # Let the user override the test.
11991 else
11992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11993 for as_dir in $PATH
11994 do
11995   IFS=$as_save_IFS
11996   test -z "$as_dir" && as_dir=.
11997     for ac_exec_ext in '' $ac_executable_extensions; do
11998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11999     ac_cv_prog_CC="${ac_tool_prefix}cc"
12000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12001     break 2
12002   fi
12003 done
12004   done
12005 IFS=$as_save_IFS
12006
12007 fi
12008 fi
12009 CC=$ac_cv_prog_CC
12010 if test -n "$CC"; then
12011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12012 $as_echo "$CC" >&6; }
12013 else
12014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12015 $as_echo "no" >&6; }
12016 fi
12017
12018
12019   fi
12020 fi
12021 if test -z "$CC"; then
12022   # Extract the first word of "cc", so it can be a program name with args.
12023 set dummy cc; ac_word=$2
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12025 $as_echo_n "checking for $ac_word... " >&6; }
12026 if test "${ac_cv_prog_CC+set}" = set; then :
12027   $as_echo_n "(cached) " >&6
12028 else
12029   if test -n "$CC"; then
12030   ac_cv_prog_CC="$CC" # Let the user override the test.
12031 else
12032   ac_prog_rejected=no
12033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12034 for as_dir in $PATH
12035 do
12036   IFS=$as_save_IFS
12037   test -z "$as_dir" && as_dir=.
12038     for ac_exec_ext in '' $ac_executable_extensions; do
12039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12040     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12041        ac_prog_rejected=yes
12042        continue
12043      fi
12044     ac_cv_prog_CC="cc"
12045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12046     break 2
12047   fi
12048 done
12049   done
12050 IFS=$as_save_IFS
12051
12052 if test $ac_prog_rejected = yes; then
12053   # We found a bogon in the path, so make sure we never use it.
12054   set dummy $ac_cv_prog_CC
12055   shift
12056   if test $# != 0; then
12057     # We chose a different compiler from the bogus one.
12058     # However, it has the same basename, so the bogon will be chosen
12059     # first if we set CC to just the basename; use the full file name.
12060     shift
12061     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12062   fi
12063 fi
12064 fi
12065 fi
12066 CC=$ac_cv_prog_CC
12067 if test -n "$CC"; then
12068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12069 $as_echo "$CC" >&6; }
12070 else
12071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072 $as_echo "no" >&6; }
12073 fi
12074
12075
12076 fi
12077 if test -z "$CC"; then
12078   if test -n "$ac_tool_prefix"; then
12079   for ac_prog in cl.exe
12080   do
12081     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if test "${ac_cv_prog_CC+set}" = set; then :
12086   $as_echo_n "(cached) " >&6
12087 else
12088   if test -n "$CC"; then
12089   ac_cv_prog_CC="$CC" # Let the user override the test.
12090 else
12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12093 do
12094   IFS=$as_save_IFS
12095   test -z "$as_dir" && as_dir=.
12096     for ac_exec_ext in '' $ac_executable_extensions; do
12097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12098     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12100     break 2
12101   fi
12102 done
12103   done
12104 IFS=$as_save_IFS
12105
12106 fi
12107 fi
12108 CC=$ac_cv_prog_CC
12109 if test -n "$CC"; then
12110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12111 $as_echo "$CC" >&6; }
12112 else
12113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114 $as_echo "no" >&6; }
12115 fi
12116
12117
12118     test -n "$CC" && break
12119   done
12120 fi
12121 if test -z "$CC"; then
12122   ac_ct_CC=$CC
12123   for ac_prog in cl.exe
12124 do
12125   # Extract the first word of "$ac_prog", so it can be a program name with args.
12126 set dummy $ac_prog; ac_word=$2
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12128 $as_echo_n "checking for $ac_word... " >&6; }
12129 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12130   $as_echo_n "(cached) " >&6
12131 else
12132   if test -n "$ac_ct_CC"; then
12133   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12134 else
12135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136 for as_dir in $PATH
12137 do
12138   IFS=$as_save_IFS
12139   test -z "$as_dir" && as_dir=.
12140     for ac_exec_ext in '' $ac_executable_extensions; do
12141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12142     ac_cv_prog_ac_ct_CC="$ac_prog"
12143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12144     break 2
12145   fi
12146 done
12147   done
12148 IFS=$as_save_IFS
12149
12150 fi
12151 fi
12152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12153 if test -n "$ac_ct_CC"; then
12154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12155 $as_echo "$ac_ct_CC" >&6; }
12156 else
12157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158 $as_echo "no" >&6; }
12159 fi
12160
12161
12162   test -n "$ac_ct_CC" && break
12163 done
12164
12165   if test "x$ac_ct_CC" = x; then
12166     CC=""
12167   else
12168     case $cross_compiling:$ac_tool_warned in
12169 yes:)
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12172 ac_tool_warned=yes ;;
12173 esac
12174     CC=$ac_ct_CC
12175   fi
12176 fi
12177
12178 fi
12179
12180
12181 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12183 as_fn_error $? "no acceptable C compiler found in \$PATH
12184 See \`config.log' for more details" "$LINENO" 5 ; }
12185
12186 # Provide some information about the compiler.
12187 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12188 set X $ac_compile
12189 ac_compiler=$2
12190 for ac_option in --version -v -V -qversion; do
12191   { { ac_try="$ac_compiler $ac_option >&5"
12192 case "(($ac_try" in
12193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194   *) ac_try_echo=$ac_try;;
12195 esac
12196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12197 $as_echo "$ac_try_echo"; } >&5
12198   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12199   ac_status=$?
12200   if test -s conftest.err; then
12201     sed '10a\
12202 ... rest of stderr output deleted ...
12203          10q' conftest.err >conftest.er1
12204     cat conftest.er1 >&5
12205   fi
12206   rm -f conftest.er1 conftest.err
12207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12208   test $ac_status = 0; }
12209 done
12210
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12212 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12213 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12214   $as_echo_n "(cached) " >&6
12215 else
12216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h.  */
12218
12219 int
12220 main ()
12221 {
12222 #ifndef __GNUC__
12223        choke me
12224 #endif
12225
12226   ;
12227   return 0;
12228 }
12229 _ACEOF
12230 if ac_fn_c_try_compile "$LINENO"; then :
12231   ac_compiler_gnu=yes
12232 else
12233   ac_compiler_gnu=no
12234 fi
12235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12236 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12237
12238 fi
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12240 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12241 if test $ac_compiler_gnu = yes; then
12242   GCC=yes
12243 else
12244   GCC=
12245 fi
12246 ac_test_CFLAGS=${CFLAGS+set}
12247 ac_save_CFLAGS=$CFLAGS
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12249 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12250 if test "${ac_cv_prog_cc_g+set}" = set; then :
12251   $as_echo_n "(cached) " >&6
12252 else
12253   ac_save_c_werror_flag=$ac_c_werror_flag
12254    ac_c_werror_flag=yes
12255    ac_cv_prog_cc_g=no
12256    CFLAGS="-g"
12257    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h.  */
12259
12260 int
12261 main ()
12262 {
12263
12264   ;
12265   return 0;
12266 }
12267 _ACEOF
12268 if ac_fn_c_try_compile "$LINENO"; then :
12269   ac_cv_prog_cc_g=yes
12270 else
12271   CFLAGS=""
12272       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h.  */
12274
12275 int
12276 main ()
12277 {
12278
12279   ;
12280   return 0;
12281 }
12282 _ACEOF
12283 if ac_fn_c_try_compile "$LINENO"; then :
12284
12285 else
12286   ac_c_werror_flag=$ac_save_c_werror_flag
12287          CFLAGS="-g"
12288          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h.  */
12290
12291 int
12292 main ()
12293 {
12294
12295   ;
12296   return 0;
12297 }
12298 _ACEOF
12299 if ac_fn_c_try_compile "$LINENO"; then :
12300   ac_cv_prog_cc_g=yes
12301 fi
12302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12303 fi
12304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12305 fi
12306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12307    ac_c_werror_flag=$ac_save_c_werror_flag
12308 fi
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12310 $as_echo "$ac_cv_prog_cc_g" >&6; }
12311 if test "$ac_test_CFLAGS" = set; then
12312   CFLAGS=$ac_save_CFLAGS
12313 elif test $ac_cv_prog_cc_g = yes; then
12314   if test "$GCC" = yes; then
12315     CFLAGS="-g -O2"
12316   else
12317     CFLAGS="-g"
12318   fi
12319 else
12320   if test "$GCC" = yes; then
12321     CFLAGS="-O2"
12322   else
12323     CFLAGS=
12324   fi
12325 fi
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12327 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12328 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12329   $as_echo_n "(cached) " >&6
12330 else
12331   ac_cv_prog_cc_c89=no
12332 ac_save_CC=$CC
12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h.  */
12335 #include <stdarg.h>
12336 #include <stdio.h>
12337 #include <sys/types.h>
12338 #include <sys/stat.h>
12339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12340 struct buf { int x; };
12341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12342 static char *e (p, i)
12343      char **p;
12344      int i;
12345 {
12346   return p[i];
12347 }
12348 static char *f (char * (*g) (char **, int), char **p, ...)
12349 {
12350   char *s;
12351   va_list v;
12352   va_start (v,p);
12353   s = g (p, va_arg (v,int));
12354   va_end (v);
12355   return s;
12356 }
12357
12358 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12359    function prototypes and stuff, but not '\xHH' hex character constants.
12360    These don't provoke an error unfortunately, instead are silently treated
12361    as 'x'.  The following induces an error, until -std is added to get
12362    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12363    array size at least.  It's necessary to write '\x00'==0 to get something
12364    that's true only with -std.  */
12365 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12366
12367 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12368    inside strings and character constants.  */
12369 #define FOO(x) 'x'
12370 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12371
12372 int test (int i, double x);
12373 struct s1 {int (*f) (int a);};
12374 struct s2 {int (*f) (double a);};
12375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12376 int argc;
12377 char **argv;
12378 int
12379 main ()
12380 {
12381 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12382   ;
12383   return 0;
12384 }
12385 _ACEOF
12386 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12387         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12388 do
12389   CC="$ac_save_CC $ac_arg"
12390   if ac_fn_c_try_compile "$LINENO"; then :
12391   ac_cv_prog_cc_c89=$ac_arg
12392 fi
12393 rm -f core conftest.err conftest.$ac_objext
12394   test "x$ac_cv_prog_cc_c89" != "xno" && break
12395 done
12396 rm -f conftest.$ac_ext
12397 CC=$ac_save_CC
12398
12399 fi
12400 # AC_CACHE_VAL
12401 case "x$ac_cv_prog_cc_c89" in
12402   x)
12403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12404 $as_echo "none needed" >&6; } ;;
12405   xno)
12406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12407 $as_echo "unsupported" >&6; } ;;
12408   *)
12409     CC="$CC $ac_cv_prog_cc_c89"
12410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12411 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12412 esac
12413 if test "x$ac_cv_prog_cc_c89" != xno; then :
12414
12415 fi
12416
12417 ac_ext=c
12418 ac_cpp='$CPP $CPPFLAGS'
12419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12422
12423 depcc="$CC"   am_compiler_list=
12424
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12426 $as_echo_n "checking dependency style of $depcc... " >&6; }
12427 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12428   $as_echo_n "(cached) " >&6
12429 else
12430   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12431   # We make a subdir and do the tests there.  Otherwise we can end up
12432   # making bogus files that we don't know about and never remove.  For
12433   # instance it was reported that on HP-UX the gcc test will end up
12434   # making a dummy file named `D' -- because `-MD' means `put the output
12435   # in D'.
12436   mkdir conftest.dir
12437   # Copy depcomp to subdir because otherwise we won't find it if we're
12438   # using a relative directory.
12439   cp "$am_depcomp" conftest.dir
12440   cd conftest.dir
12441   # We will build objects and dependencies in a subdirectory because
12442   # it helps to detect inapplicable dependency modes.  For instance
12443   # both Tru64's cc and ICC support -MD to output dependencies as a
12444   # side effect of compilation, but ICC will put the dependencies in
12445   # the current directory while Tru64 will put them in the object
12446   # directory.
12447   mkdir sub
12448
12449   am_cv_CC_dependencies_compiler_type=none
12450   if test "$am_compiler_list" = ""; then
12451      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12452   fi
12453   am__universal=false
12454   case " $depcc " in #(
12455      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12456      esac
12457
12458   for depmode in $am_compiler_list; do
12459     # Setup a source with many dependencies, because some compilers
12460     # like to wrap large dependency lists on column 80 (with \), and
12461     # we should not choose a depcomp mode which is confused by this.
12462     #
12463     # We need to recreate these files for each test, as the compiler may
12464     # overwrite some of them when testing with obscure command lines.
12465     # This happens at least with the AIX C compiler.
12466     : > sub/conftest.c
12467     for i in 1 2 3 4 5 6; do
12468       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12469       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12470       # Solaris 8's {/usr,}/bin/sh.
12471       touch sub/conftst$i.h
12472     done
12473     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12474
12475     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12476     # mode.  It turns out that the SunPro C++ compiler does not properly
12477     # handle `-M -o', and we need to detect this.  Also, some Intel
12478     # versions had trouble with output in subdirs
12479     am__obj=sub/conftest.${OBJEXT-o}
12480     am__minus_obj="-o $am__obj"
12481     case $depmode in
12482     gcc)
12483       # This depmode causes a compiler race in universal mode.
12484       test "$am__universal" = false || continue
12485       ;;
12486     nosideeffect)
12487       # after this tag, mechanisms are not by side-effect, so they'll
12488       # only be used when explicitly requested
12489       if test "x$enable_dependency_tracking" = xyes; then
12490         continue
12491       else
12492         break
12493       fi
12494       ;;
12495     msvisualcpp | msvcmsys)
12496       # This compiler won't grok `-c -o', but also, the minuso test has
12497       # not run yet.  These depmodes are late enough in the game, and
12498       # so weak that their functioning should not be impacted.
12499       am__obj=conftest.${OBJEXT-o}
12500       am__minus_obj=
12501       ;;
12502     none) break ;;
12503     esac
12504     if depmode=$depmode \
12505        source=sub/conftest.c object=$am__obj \
12506        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12507        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12508          >/dev/null 2>conftest.err &&
12509        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12510        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12511        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12512        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12513       # icc doesn't choke on unknown options, it will just issue warnings
12514       # or remarks (even with -Werror).  So we grep stderr for any message
12515       # that says an option was ignored or not supported.
12516       # When given -MP, icc 7.0 and 7.1 complain thusly:
12517       #   icc: Command line warning: ignoring option '-M'; no argument required
12518       # The diagnosis changed in icc 8.0:
12519       #   icc: Command line remark: option '-MP' not supported
12520       if (grep 'ignoring option' conftest.err ||
12521           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12522         am_cv_CC_dependencies_compiler_type=$depmode
12523         break
12524       fi
12525     fi
12526   done
12527
12528   cd ..
12529   rm -rf conftest.dir
12530 else
12531   am_cv_CC_dependencies_compiler_type=none
12532 fi
12533
12534 fi
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12536 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12537 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12538
12539  if
12540   test "x$enable_dependency_tracking" != xno \
12541   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12542   am__fastdepCC_TRUE=
12543   am__fastdepCC_FALSE='#'
12544 else
12545   am__fastdepCC_TRUE='#'
12546   am__fastdepCC_FALSE=
12547 fi
12548
12549
12550 if test "x$CC" != xcc; then
12551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12552 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12553 else
12554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12555 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12556 fi
12557 set dummy $CC; ac_cc=`$as_echo "$2" |
12558                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12559 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
12560   $as_echo_n "(cached) " >&6
12561 else
12562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h.  */
12564
12565 int
12566 main ()
12567 {
12568
12569   ;
12570   return 0;
12571 }
12572 _ACEOF
12573 # Make sure it works both with $CC and with simple cc.
12574 # We do the test twice because some compilers refuse to overwrite an
12575 # existing .o file with -o, though they will create one.
12576 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12577 rm -f conftest2.*
12578 if { { case "(($ac_try" in
12579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580   *) ac_try_echo=$ac_try;;
12581 esac
12582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12583 $as_echo "$ac_try_echo"; } >&5
12584   (eval "$ac_try") 2>&5
12585   ac_status=$?
12586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12587   test $ac_status = 0; } &&
12588    test -f conftest2.$ac_objext && { { case "(($ac_try" in
12589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590   *) ac_try_echo=$ac_try;;
12591 esac
12592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12593 $as_echo "$ac_try_echo"; } >&5
12594   (eval "$ac_try") 2>&5
12595   ac_status=$?
12596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12597   test $ac_status = 0; };
12598 then
12599   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12600   if test "x$CC" != xcc; then
12601     # Test first that cc exists at all.
12602     if { ac_try='cc -c conftest.$ac_ext >&5'
12603   { { case "(($ac_try" in
12604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605   *) ac_try_echo=$ac_try;;
12606 esac
12607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12608 $as_echo "$ac_try_echo"; } >&5
12609   (eval "$ac_try") 2>&5
12610   ac_status=$?
12611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12612   test $ac_status = 0; }; }; then
12613       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12614       rm -f conftest2.*
12615       if { { case "(($ac_try" in
12616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617   *) ac_try_echo=$ac_try;;
12618 esac
12619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12620 $as_echo "$ac_try_echo"; } >&5
12621   (eval "$ac_try") 2>&5
12622   ac_status=$?
12623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12624   test $ac_status = 0; } &&
12625          test -f conftest2.$ac_objext && { { case "(($ac_try" in
12626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627   *) ac_try_echo=$ac_try;;
12628 esac
12629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12630 $as_echo "$ac_try_echo"; } >&5
12631   (eval "$ac_try") 2>&5
12632   ac_status=$?
12633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12634   test $ac_status = 0; };
12635       then
12636         # cc works too.
12637         :
12638       else
12639         # cc exists but doesn't like -o.
12640         eval ac_cv_prog_cc_${ac_cc}_c_o=no
12641       fi
12642     fi
12643   fi
12644 else
12645   eval ac_cv_prog_cc_${ac_cc}_c_o=no
12646 fi
12647 rm -f core conftest*
12648
12649 fi
12650 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12652 $as_echo "yes" >&6; }
12653 else
12654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655 $as_echo "no" >&6; }
12656
12657 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12658
12659 fi
12660
12661 # FIXME: we rely on the cache variable name because
12662 # there is no other way.
12663 set dummy $CC
12664 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12665 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12666 if test "$am_t" != yes; then
12667    # Losing compiler, so override with the script.
12668    # FIXME: It is wrong to rewrite CC.
12669    # But if we don't then we get into trouble of one sort or another.
12670    # A longer-term fix would be to have automake use am__CC in this case,
12671    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12672    CC="$am_aux_dir/compile $CC"
12673 fi
12674
12675
12676 # Extract the first word of "valac", so it can be a program name with args.
12677 set dummy valac; ac_word=$2
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12679 $as_echo_n "checking for $ac_word... " >&6; }
12680 if test "${ac_cv_path_VALAC+set}" = set; then :
12681   $as_echo_n "(cached) " >&6
12682 else
12683   case $VALAC in
12684   [\\/]* | ?:[\\/]*)
12685   ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
12686   ;;
12687   *)
12688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12689 for as_dir in $PATH
12690 do
12691   IFS=$as_save_IFS
12692   test -z "$as_dir" && as_dir=.
12693     for ac_exec_ext in '' $ac_executable_extensions; do
12694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12695     ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext"
12696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12697     break 2
12698   fi
12699 done
12700   done
12701 IFS=$as_save_IFS
12702
12703   ;;
12704 esac
12705 fi
12706 VALAC=$ac_cv_path_VALAC
12707 if test -n "$VALAC"; then
12708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
12709 $as_echo "$VALAC" >&6; }
12710 else
12711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712 $as_echo "no" >&6; }
12713 fi
12714
12715
12716  if test -z "$VALAC"; then :
12717   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&5
12718 $as_echo "$as_me: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&2;}
12719 else
12720   if test -n "0.9"; then :
12721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is at least version 0.9" >&5
12722 $as_echo_n "checking $VALAC is at least version 0.9... " >&6; }
12723        am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
12724        as_arg_v1=0.9
12725 as_arg_v2="$am__vala_version"
12726 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12727 case $? in #(
12728   1) :
12729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12730 $as_echo "yes" >&6; } ;; #(
12731   0) :
12732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12733 $as_echo "yes" >&6; } ;; #(
12734   2) :
12735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736 $as_echo "no" >&6; }
12737           as_fn_error $? "Vala 0.9 not found." "$LINENO" 5  ;; #(
12738   *) :
12739      ;;
12740 esac
12741 fi
12742 fi
12743
12744
12745 # Platform checks
12746
12747
12748 case "$host" in
12749   *-*-mingw*)
12750     win32=yes
12751     macos=no
12752     linux=no
12753     SERVER_IPC_MODULE="msrpc-glib2-1.0"
12754     CLIENT_IPC_MODULE="msrpc-mingw-1.0"
12755
12756 pkg_failed=no
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12758 $as_echo_n "checking for GTK... " >&6; }
12759
12760 if test -n "$GTK_CFLAGS"; then
12761     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12762  elif test -n "$PKG_CONFIG"; then
12763     if test -n "$PKG_CONFIG" && \
12764     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12765   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12766   ac_status=$?
12767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12768   test $ac_status = 0; }; then
12769   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
12770                       test "x$?" != "x0" && pkg_failed=yes
12771 else
12772   pkg_failed=yes
12773 fi
12774  else
12775     pkg_failed=untried
12776 fi
12777 if test -n "$GTK_LIBS"; then
12778     pkg_cv_GTK_LIBS="$GTK_LIBS"
12779  elif test -n "$PKG_CONFIG"; then
12780     if test -n "$PKG_CONFIG" && \
12781     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12782   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12783   ac_status=$?
12784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12785   test $ac_status = 0; }; then
12786   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
12787                       test "x$?" != "x0" && pkg_failed=yes
12788 else
12789   pkg_failed=yes
12790 fi
12791  else
12792     pkg_failed=untried
12793 fi
12794
12795
12796
12797 if test $pkg_failed = yes; then
12798         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799 $as_echo "no" >&6; }
12800
12801 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12802         _pkg_short_errors_supported=yes
12803 else
12804         _pkg_short_errors_supported=no
12805 fi
12806         if test $_pkg_short_errors_supported = yes; then
12807                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12808         else
12809                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12810         fi
12811         # Put the nasty error message in config.log where it belongs
12812         echo "$GTK_PKG_ERRORS" >&5
12813
12814         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
12815
12816 $GTK_PKG_ERRORS
12817
12818 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12819 installed software in a non-standard prefix.
12820
12821 Alternatively, you may set the environment variables GTK_CFLAGS
12822 and GTK_LIBS to avoid the need to call pkg-config.
12823 See the pkg-config man page for more details." "$LINENO" 5
12824 elif test $pkg_failed = untried; then
12825         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826 $as_echo "no" >&6; }
12827         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12829 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12830 is in your PATH or set the PKG_CONFIG environment variable to the full
12831 path to pkg-config.
12832
12833 Alternatively, you may set the environment variables GTK_CFLAGS
12834 and GTK_LIBS to avoid the need to call pkg-config.
12835 See the pkg-config man page for more details.
12836
12837 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12838 See \`config.log' for more details" "$LINENO" 5 ; }
12839 else
12840         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
12841         GTK_LIBS=$pkg_cv_GTK_LIBS
12842         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12843 $as_echo "yes" >&6; }
12844         GTK_VERSION="gtk+-2.0"
12845
12846 fi
12847     ;;
12848
12849   *darwin*)
12850     win32=no
12851     macos=yes
12852     linux=no
12853
12854     # We require dbus-glib for the client library even if we are using GDBus
12855     # in the server. The reason we can't always use dbus-glib in the server is
12856     # because Vala drops support for it, but as it ships with DBus there is very
12857     # little danger of it being dropped by distros any time soon.
12858     CLIENT_IPC_MODULE="dbus-glib-1"
12859         SERVER_IPC_MODULE="dbus-glib-1"
12860
12861
12862 pkg_failed=no
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAC" >&5
12864 $as_echo_n "checking for MAC... " >&6; }
12865
12866 if test -n "$MAC_CFLAGS"; then
12867     pkg_cv_MAC_CFLAGS="$MAC_CFLAGS"
12868  elif test -n "$PKG_CONFIG"; then
12869     if test -n "$PKG_CONFIG" && \
12870     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
12871         \""; } >&5
12872   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
12873         ") 2>&5
12874   ac_status=$?
12875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12876   test $ac_status = 0; }; then
12877   pkg_cv_MAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration >= 1.0.1
12878         " 2>/dev/null`
12879                       test "x$?" != "x0" && pkg_failed=yes
12880 else
12881   pkg_failed=yes
12882 fi
12883  else
12884     pkg_failed=untried
12885 fi
12886 if test -n "$MAC_LIBS"; then
12887     pkg_cv_MAC_LIBS="$MAC_LIBS"
12888  elif test -n "$PKG_CONFIG"; then
12889     if test -n "$PKG_CONFIG" && \
12890     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
12891         \""; } >&5
12892   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
12893         ") 2>&5
12894   ac_status=$?
12895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12896   test $ac_status = 0; }; then
12897   pkg_cv_MAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration >= 1.0.1
12898         " 2>/dev/null`
12899                       test "x$?" != "x0" && pkg_failed=yes
12900 else
12901   pkg_failed=yes
12902 fi
12903  else
12904     pkg_failed=untried
12905 fi
12906
12907
12908
12909 if test $pkg_failed = yes; then
12910         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911 $as_echo "no" >&6; }
12912
12913 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12914         _pkg_short_errors_supported=yes
12915 else
12916         _pkg_short_errors_supported=no
12917 fi
12918         if test $_pkg_short_errors_supported = yes; then
12919                 MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
12920         " 2>&1`
12921         else
12922                 MAC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
12923         " 2>&1`
12924         fi
12925         # Put the nasty error message in config.log where it belongs
12926         echo "$MAC_PKG_ERRORS" >&5
12927
12928         as_fn_error $? "Package requirements (gtk-mac-integration >= 1.0.1
12929         ) were not met:
12930
12931 $MAC_PKG_ERRORS
12932
12933 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12934 installed software in a non-standard prefix.
12935
12936 Alternatively, you may set the environment variables MAC_CFLAGS
12937 and MAC_LIBS to avoid the need to call pkg-config.
12938 See the pkg-config man page for more details." "$LINENO" 5
12939 elif test $pkg_failed = untried; then
12940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12942         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12944 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12945 is in your PATH or set the PKG_CONFIG environment variable to the full
12946 path to pkg-config.
12947
12948 Alternatively, you may set the environment variables MAC_CFLAGS
12949 and MAC_LIBS to avoid the need to call pkg-config.
12950 See the pkg-config man page for more details.
12951
12952 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12953 See \`config.log' for more details" "$LINENO" 5 ; }
12954 else
12955         MAC_CFLAGS=$pkg_cv_MAC_CFLAGS
12956         MAC_LIBS=$pkg_cv_MAC_LIBS
12957         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12958 $as_echo "yes" >&6; }
12959
12960 fi
12961
12962 # TODO: Move to GTK+-3
12963 #            [gtk+-3.0 >= 2.0],
12964 #            [GTK_VERSION="gtk+-3.0"]
12965
12966 pkg_failed=no
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12968 $as_echo_n "checking for GTK... " >&6; }
12969
12970 if test -n "$GTK_CFLAGS"; then
12971     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12972  elif test -n "$PKG_CONFIG"; then
12973     if test -n "$PKG_CONFIG" && \
12974     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12975   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12976   ac_status=$?
12977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12978   test $ac_status = 0; }; then
12979   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
12980                       test "x$?" != "x0" && pkg_failed=yes
12981 else
12982   pkg_failed=yes
12983 fi
12984  else
12985     pkg_failed=untried
12986 fi
12987 if test -n "$GTK_LIBS"; then
12988     pkg_cv_GTK_LIBS="$GTK_LIBS"
12989  elif test -n "$PKG_CONFIG"; then
12990     if test -n "$PKG_CONFIG" && \
12991     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12992   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12993   ac_status=$?
12994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12995   test $ac_status = 0; }; then
12996   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
12997                       test "x$?" != "x0" && pkg_failed=yes
12998 else
12999   pkg_failed=yes
13000 fi
13001  else
13002     pkg_failed=untried
13003 fi
13004
13005
13006
13007 if test $pkg_failed = yes; then
13008         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13009 $as_echo "no" >&6; }
13010
13011 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13012         _pkg_short_errors_supported=yes
13013 else
13014         _pkg_short_errors_supported=no
13015 fi
13016         if test $_pkg_short_errors_supported = yes; then
13017                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13018         else
13019                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13020         fi
13021         # Put the nasty error message in config.log where it belongs
13022         echo "$GTK_PKG_ERRORS" >&5
13023
13024         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13025
13026 $GTK_PKG_ERRORS
13027
13028 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13029 installed software in a non-standard prefix.
13030
13031 Alternatively, you may set the environment variables GTK_CFLAGS
13032 and GTK_LIBS to avoid the need to call pkg-config.
13033 See the pkg-config man page for more details." "$LINENO" 5
13034 elif test $pkg_failed = untried; then
13035         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13036 $as_echo "no" >&6; }
13037         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13039 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13040 is in your PATH or set the PKG_CONFIG environment variable to the full
13041 path to pkg-config.
13042
13043 Alternatively, you may set the environment variables GTK_CFLAGS
13044 and GTK_LIBS to avoid the need to call pkg-config.
13045 See the pkg-config man page for more details.
13046
13047 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13048 See \`config.log' for more details" "$LINENO" 5 ; }
13049 else
13050         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13051         GTK_LIBS=$pkg_cv_GTK_LIBS
13052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13053 $as_echo "yes" >&6; }
13054         GTK_VERSION="gtk+-2.0"
13055
13056 fi
13057
13058     ;;
13059   *)
13060     macos=no
13061     win32=no
13062     linux=yes
13063
13064     # We require dbus-glib for the client library even if we are using GDBus
13065     # in the server. The reason we can't always use dbus-glib in the server is
13066     # because Vala drops support for it, but as it ships with DBus there is very
13067     # little danger of it being dropped by distros any time soon.
13068     CLIENT_IPC_MODULE="dbus-glib-1"
13069
13070 pkg_failed=no
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDBUS" >&5
13072 $as_echo_n "checking for GDBUS... " >&6; }
13073
13074 if test -n "$GDBUS_CFLAGS"; then
13075     pkg_cv_GDBUS_CFLAGS="$GDBUS_CFLAGS"
13076  elif test -n "$PKG_CONFIG"; then
13077     if test -n "$PKG_CONFIG" && \
13078     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
13079   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
13080   ac_status=$?
13081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13082   test $ac_status = 0; }; then
13083   pkg_cv_GDBUS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
13084                       test "x$?" != "x0" && pkg_failed=yes
13085 else
13086   pkg_failed=yes
13087 fi
13088  else
13089     pkg_failed=untried
13090 fi
13091 if test -n "$GDBUS_LIBS"; then
13092     pkg_cv_GDBUS_LIBS="$GDBUS_LIBS"
13093  elif test -n "$PKG_CONFIG"; then
13094     if test -n "$PKG_CONFIG" && \
13095     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
13096   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
13097   ac_status=$?
13098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13099   test $ac_status = 0; }; then
13100   pkg_cv_GDBUS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
13101                       test "x$?" != "x0" && pkg_failed=yes
13102 else
13103   pkg_failed=yes
13104 fi
13105  else
13106     pkg_failed=untried
13107 fi
13108
13109
13110
13111 if test $pkg_failed = yes; then
13112         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13114
13115 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13116         _pkg_short_errors_supported=yes
13117 else
13118         _pkg_short_errors_supported=no
13119 fi
13120         if test $_pkg_short_errors_supported = yes; then
13121                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
13122         else
13123                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
13124         fi
13125         # Put the nasty error message in config.log where it belongs
13126         echo "$GDBUS_PKG_ERRORS" >&5
13127
13128         SERVER_IPC_MODULE="dbus-glib-1"
13129
13130 elif test $pkg_failed = untried; then
13131         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132 $as_echo "no" >&6; }
13133         SERVER_IPC_MODULE="dbus-glib-1"
13134
13135 else
13136         GDBUS_CFLAGS=$pkg_cv_GDBUS_CFLAGS
13137         GDBUS_LIBS=$pkg_cv_GDBUS_LIBS
13138         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13139 $as_echo "yes" >&6; }
13140         SERVER_IPC_MODULE="gio-2.0"
13141 fi
13142 # TODO: Move to GTK+-3
13143 #            [gtk+-3.0 >= 2.0],
13144 #            [GTK_VERSION="gtk+-3.0"]
13145
13146 pkg_failed=no
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
13148 $as_echo_n "checking for GTK... " >&6; }
13149
13150 if test -n "$GTK_CFLAGS"; then
13151     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13152  elif test -n "$PKG_CONFIG"; then
13153     if test -n "$PKG_CONFIG" && \
13154     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13155   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13156   ac_status=$?
13157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13158   test $ac_status = 0; }; then
13159   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
13160                       test "x$?" != "x0" && pkg_failed=yes
13161 else
13162   pkg_failed=yes
13163 fi
13164  else
13165     pkg_failed=untried
13166 fi
13167 if test -n "$GTK_LIBS"; then
13168     pkg_cv_GTK_LIBS="$GTK_LIBS"
13169  elif test -n "$PKG_CONFIG"; then
13170     if test -n "$PKG_CONFIG" && \
13171     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13172   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13173   ac_status=$?
13174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13175   test $ac_status = 0; }; then
13176   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
13177                       test "x$?" != "x0" && pkg_failed=yes
13178 else
13179   pkg_failed=yes
13180 fi
13181  else
13182     pkg_failed=untried
13183 fi
13184
13185
13186
13187 if test $pkg_failed = yes; then
13188         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189 $as_echo "no" >&6; }
13190
13191 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13192         _pkg_short_errors_supported=yes
13193 else
13194         _pkg_short_errors_supported=no
13195 fi
13196         if test $_pkg_short_errors_supported = yes; then
13197                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13198         else
13199                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13200         fi
13201         # Put the nasty error message in config.log where it belongs
13202         echo "$GTK_PKG_ERRORS" >&5
13203
13204         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13205
13206 $GTK_PKG_ERRORS
13207
13208 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13209 installed software in a non-standard prefix.
13210
13211 Alternatively, you may set the environment variables GTK_CFLAGS
13212 and GTK_LIBS to avoid the need to call pkg-config.
13213 See the pkg-config man page for more details." "$LINENO" 5
13214 elif test $pkg_failed = untried; then
13215         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216 $as_echo "no" >&6; }
13217         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13219 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13220 is in your PATH or set the PKG_CONFIG environment variable to the full
13221 path to pkg-config.
13222
13223 Alternatively, you may set the environment variables GTK_CFLAGS
13224 and GTK_LIBS to avoid the need to call pkg-config.
13225 See the pkg-config man page for more details.
13226
13227 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13228 See \`config.log' for more details" "$LINENO" 5 ; }
13229 else
13230         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13231         GTK_LIBS=$pkg_cv_GTK_LIBS
13232         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13233 $as_echo "yes" >&6; }
13234         GTK_VERSION="gtk+-2.0"
13235
13236 fi
13237
13238     ;;
13239 esac
13240
13241  if test "$linux" = "yes"; then
13242   OS_LINUX_TRUE=
13243   OS_LINUX_FALSE='#'
13244 else
13245   OS_LINUX_TRUE='#'
13246   OS_LINUX_FALSE=
13247 fi
13248
13249  if test "$win32" = "yes"; then
13250   OS_WIN32_TRUE=
13251   OS_WIN32_FALSE='#'
13252 else
13253   OS_WIN32_TRUE='#'
13254   OS_WIN32_FALSE=
13255 fi
13256
13257  if test "$macos" = "yes"; then
13258   OS_MACOS_TRUE=
13259   OS_MACOS_FALSE='#'
13260 else
13261   OS_MACOS_TRUE='#'
13262   OS_MACOS_FALSE=
13263 fi
13264
13265
13266  if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
13267   IPC_MSRPC_TRUE=
13268   IPC_MSRPC_FALSE='#'
13269 else
13270   IPC_MSRPC_TRUE='#'
13271   IPC_MSRPC_FALSE=
13272 fi
13273
13274  if test "$SERVER_IPC_MODULE" != "msrpc-glib2-1.0"; then
13275   IPC_DBUS_TRUE=
13276   IPC_DBUS_FALSE='#'
13277 else
13278   IPC_DBUS_TRUE='#'
13279   IPC_DBUS_FALSE=
13280 fi
13281
13282  if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
13283   IPC_DBUS_GLIB_TRUE=
13284   IPC_DBUS_GLIB_FALSE='#'
13285 else
13286   IPC_DBUS_GLIB_TRUE='#'
13287   IPC_DBUS_GLIB_FALSE=
13288 fi
13289
13290  if test "$SERVER_IPC_MODULE" = "gio-2.0"; then
13291   IPC_GDBUS_TRUE=
13292   IPC_GDBUS_FALSE='#'
13293 else
13294   IPC_GDBUS_TRUE='#'
13295   IPC_GDBUS_FALSE=
13296 fi
13297
13298
13299 if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
13300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is no greater than 0.12.1" >&5
13301 $as_echo_n "checking $VALAC is no greater than 0.12.1... " >&6; }
13302   vala_version=`$VALAC --version | sed 's/Vala  *//'`
13303   as_arg_v1=0.12.2
13304 as_arg_v2="$vala_version"
13305 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13306 case $? in #(
13307   1) :
13308     vala_supports_dbus_glib="no" ;; #(
13309   0) :
13310     vala_supports_dbus_glib="no" ;; #(
13311   2) :
13312     vala_supports_dbus_glib="yes" ;; #(
13313   *) :
13314      ;;
13315 esac
13316
13317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vala_supports_dbus_glib" >&5
13318 $as_echo "$vala_supports_dbus_glib" >&6; }
13319   if test "$vala_supports_dbus_glib" = "no"; then
13320     as_fn_error $? "
13321 *** Vala 0.12.1 or earlier is required for dbus-glib support. Newer versions
13322 *** require that you have GLib 2.26 or newer (for GDBus support)." "$LINENO" 5
13323   fi
13324 fi
13325
13326 if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
13327   # MS RPC utilities
13328
13329   pkg_config_args="msrpc-mingw-1.0"
13330
13331
13332
13333
13334
13335
13336
13337
13338 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13339         if test -n "$ac_tool_prefix"; then
13340   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13341 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13343 $as_echo_n "checking for $ac_word... " >&6; }
13344 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13345   $as_echo_n "(cached) " >&6
13346 else
13347   case $PKG_CONFIG in
13348   [\\/]* | ?:[\\/]*)
13349   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13350   ;;
13351   *)
13352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353 for as_dir in $PATH
13354 do
13355   IFS=$as_save_IFS
13356   test -z "$as_dir" && as_dir=.
13357     for ac_exec_ext in '' $ac_executable_extensions; do
13358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13359     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361     break 2
13362   fi
13363 done
13364   done
13365 IFS=$as_save_IFS
13366
13367   ;;
13368 esac
13369 fi
13370 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13371 if test -n "$PKG_CONFIG"; then
13372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13373 $as_echo "$PKG_CONFIG" >&6; }
13374 else
13375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376 $as_echo "no" >&6; }
13377 fi
13378
13379
13380 fi
13381 if test -z "$ac_cv_path_PKG_CONFIG"; then
13382   ac_pt_PKG_CONFIG=$PKG_CONFIG
13383   # Extract the first word of "pkg-config", so it can be a program name with args.
13384 set dummy pkg-config; ac_word=$2
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13386 $as_echo_n "checking for $ac_word... " >&6; }
13387 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
13388   $as_echo_n "(cached) " >&6
13389 else
13390   case $ac_pt_PKG_CONFIG in
13391   [\\/]* | ?:[\\/]*)
13392   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13393   ;;
13394   *)
13395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13396 for as_dir in $PATH
13397 do
13398   IFS=$as_save_IFS
13399   test -z "$as_dir" && as_dir=.
13400     for ac_exec_ext in '' $ac_executable_extensions; do
13401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13402     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13404     break 2
13405   fi
13406 done
13407   done
13408 IFS=$as_save_IFS
13409
13410   ;;
13411 esac
13412 fi
13413 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13414 if test -n "$ac_pt_PKG_CONFIG"; then
13415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13416 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13417 else
13418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 $as_echo "no" >&6; }
13420 fi
13421
13422   if test "x$ac_pt_PKG_CONFIG" = x; then
13423     PKG_CONFIG=""
13424   else
13425     case $cross_compiling:$ac_tool_warned in
13426 yes:)
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13429 ac_tool_warned=yes ;;
13430 esac
13431     PKG_CONFIG=$ac_pt_PKG_CONFIG
13432   fi
13433 else
13434   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13435 fi
13436
13437 fi
13438 if test -n "$PKG_CONFIG"; then
13439         _pkg_min_version=0.16
13440         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13441 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13442         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13443                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13444 $as_echo "yes" >&6; }
13445         else
13446                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13447 $as_echo "no" >&6; }
13448                 PKG_CONFIG=""
13449         fi
13450 fi
13451
13452   no_msrpc=""
13453
13454   if test "x$PKG_CONFIG" = x ; then
13455     no_msrpc=yes
13456     PKG_CONFIG=no
13457   fi
13458
13459   min_msrpc_mingw_version=0.1.0
13460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msrpc-mingw - version >= $min_msrpc_version" >&5
13461 $as_echo_n "checking for msrpc-mingw - version >= $min_msrpc_version... " >&6; }
13462
13463   if test x$PKG_CONFIG != xno ; then
13464     if $PKG_CONFIG --uninstalled $pkg_config_args; then
13465       echo "Will use uninstalled version of msrpc-mingw found in PKG_CONFIG_PATH"
13466     fi
13467
13468     if $PKG_CONFIG --atleast-version $min_msrpc_mingw_version $pkg_config_args; then
13469       :
13470     else
13471       no_msrpc=yes
13472     fi
13473   fi
13474
13475   if test x"$no_msrpc" = x ; then
13476     MIDL_WRAPPER=`$PKG_CONFIG --variable=midl_wrapper msrpc-mingw-1.0`
13477     MSRPC_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13478     MSRPC_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13479   fi
13480
13481   if test "x$no_msrpc" = x ; then
13482      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13483 $as_echo "yes" >&6; }
13484      :
13485   else
13486      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487 $as_echo "no" >&6; }
13488      if test "$PKG_CONFIG" = "no" ; then
13489        echo "*** A new enough version of pkg-config was not found."
13490        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13491      else
13492        echo "not found"
13493      fi
13494      MSRPC_CFLAGS=""
13495      MSRPC_LIBS=""
13496      MIDL_WRAPPER=""
13497      as_fn_error $? "
13498 *** msrpc-mingw 0.1.0 or better is required." "$LINENO" 5
13499   fi
13500
13501
13502
13503
13504
13505   # Extract the first word of "midl", so it can be a program name with args.
13506 set dummy midl; ac_word=$2
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13508 $as_echo_n "checking for $ac_word... " >&6; }
13509 if test "${ac_cv_path_MIDL+set}" = set; then :
13510   $as_echo_n "(cached) " >&6
13511 else
13512   case $MIDL in
13513   [\\/]* | ?:[\\/]*)
13514   ac_cv_path_MIDL="$MIDL" # Let the user override the test with a path.
13515   ;;
13516   *)
13517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13518 for as_dir in /c/Program\ Files/Microsoft\ SDKs/Windows/v7.0/Bin$PATH_SEPARATOR$PATH
13519 do
13520   IFS=$as_save_IFS
13521   test -z "$as_dir" && as_dir=.
13522     for ac_exec_ext in '' $ac_executable_extensions; do
13523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13524     ac_cv_path_MIDL="$as_dir/$ac_word$ac_exec_ext"
13525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13526     break 2
13527   fi
13528 done
13529   done
13530 IFS=$as_save_IFS
13531
13532   test -z "$ac_cv_path_MIDL" && ac_cv_path_MIDL="no"
13533   ;;
13534 esac
13535 fi
13536 MIDL=$ac_cv_path_MIDL
13537 if test -n "$MIDL"; then
13538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIDL" >&5
13539 $as_echo "$MIDL" >&6; }
13540 else
13541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13542 $as_echo "no" >&6; }
13543 fi
13544
13545
13546   if test "$MIDL" = "no"; then
13547      as_fn_error $? "
13548 *** Could not find the Microsoft interface compiler MIDL.EXE.
13549 *** This program is available as part of the MS Windows SDK, in
13550 *** the Win32 Development Tools package. If it is not in the PATH
13551 *** or its default location you may set the 'MIDL' environment
13552 *** variable to point to its location and rerun configure." "$LINENO" 5
13553   fi
13554 fi
13555
13556 if test "$win32" = "yes"; then
13557   # Other Windows-specific tools
13558
13559   # LIB.EXE from MSVC to build an MSVC-compatible import library.
13560   # Extract the first word of "lib", so it can be a program name with args.
13561 set dummy lib; ac_word=$2
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563 $as_echo_n "checking for $ac_word... " >&6; }
13564 if test "${ac_cv_path_MSVC_LIB+set}" = set; then :
13565   $as_echo_n "(cached) " >&6
13566 else
13567   case $MSVC_LIB in
13568   [\\/]* | ?:[\\/]*)
13569   ac_cv_path_MSVC_LIB="$MSVC_LIB" # Let the user override the test with a path.
13570   ;;
13571   *)
13572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13573 for as_dir in /c/Program\ Files/Microsoft\ Visual\ Studio\ 9.0/VC/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/VC/bin$PATH_SEPARATOR$PATH
13574 do
13575   IFS=$as_save_IFS
13576   test -z "$as_dir" && as_dir=.
13577     for ac_exec_ext in '' $ac_executable_extensions; do
13578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13579     ac_cv_path_MSVC_LIB="$as_dir/$ac_word$ac_exec_ext"
13580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13581     break 2
13582   fi
13583 done
13584   done
13585 IFS=$as_save_IFS
13586
13587   test -z "$ac_cv_path_MSVC_LIB" && ac_cv_path_MSVC_LIB="no"
13588   ;;
13589 esac
13590 fi
13591 MSVC_LIB=$ac_cv_path_MSVC_LIB
13592 if test -n "$MSVC_LIB"; then
13593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_LIB" >&5
13594 $as_echo "$MSVC_LIB" >&6; }
13595 else
13596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597 $as_echo "no" >&6; }
13598 fi
13599
13600
13601
13602   if test "$MSVC_LIB" = "no"; then
13603      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13604 *** Could not find the Microsoft 'LIB.EXE' program. This is required
13605 *** to build the Visual C import library for libmoonshot. Use the
13606 *** MSVC_LIB environment variable to pass its location if this is
13607 *** outside the PATH." >&5
13608 $as_echo "$as_me: WARNING:
13609 *** Could not find the Microsoft 'LIB.EXE' program. This is required
13610 *** to build the Visual C import library for libmoonshot. Use the
13611 *** MSVC_LIB environment variable to pass its location if this is
13612 *** outside the PATH." >&2;}
13613   fi
13614
13615
13616   # ImageMagick for the 'make icons' target. Note that
13617   # c:/windows/system32/convert.exe is nothing to do with ImageMagick.
13618   # Extract the first word of "convert", so it can be a program name with args.
13619 set dummy convert; ac_word=$2
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13621 $as_echo_n "checking for $ac_word... " >&6; }
13622 if test "${ac_cv_path_IMAGEMAGICK_CONVERT+set}" = set; then :
13623   $as_echo_n "(cached) " >&6
13624 else
13625   case $IMAGEMAGICK_CONVERT in
13626   [\\/]* | ?:[\\/]*)
13627   ac_cv_path_IMAGEMAGICK_CONVERT="$IMAGEMAGICK_CONVERT" # Let the user override the test with a path.
13628   ;;
13629   *)
13630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in /c/Program\ Files/ImageMagick$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/ImageMagick$PATH_SEPARATOR$PATH
13632 do
13633   IFS=$as_save_IFS
13634   test -z "$as_dir" && as_dir=.
13635     for ac_exec_ext in '' $ac_executable_extensions; do
13636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13637     ac_cv_path_IMAGEMAGICK_CONVERT="$as_dir/$ac_word$ac_exec_ext"
13638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13639     break 2
13640   fi
13641 done
13642   done
13643 IFS=$as_save_IFS
13644
13645   test -z "$ac_cv_path_IMAGEMAGICK_CONVERT" && ac_cv_path_IMAGEMAGICK_CONVERT="no"
13646   ;;
13647 esac
13648 fi
13649 IMAGEMAGICK_CONVERT=$ac_cv_path_IMAGEMAGICK_CONVERT
13650 if test -n "$IMAGEMAGICK_CONVERT"; then
13651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CONVERT" >&5
13652 $as_echo "$IMAGEMAGICK_CONVERT" >&6; }
13653 else
13654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13655 $as_echo "no" >&6; }
13656 fi
13657
13658
13659
13660   if test "$IMAGEMAGICK_CONVERT" = "no" || test "$IMAGEMAGICK_CONVERT" = "/c/windows/system32/convert"; then
13661      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13662 *** Could not find ImageMagick convert.exe. This is required for the
13663 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
13664 *** variable to pass its location if this is outside the PATH." >&5
13665 $as_echo "$as_me: WARNING:
13666 *** Could not find ImageMagick convert.exe. This is required for the
13667 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
13668 *** variable to pass its location if this is outside the PATH." >&2;}
13669   fi
13670
13671
13672   # Windows Installer XML tools
13673   # Extract the first word of "candle", so it can be a program name with args.
13674 set dummy candle; ac_word=$2
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13676 $as_echo_n "checking for $ac_word... " >&6; }
13677 if test "${ac_cv_path_WIX_CANDLE+set}" = set; then :
13678   $as_echo_n "(cached) " >&6
13679 else
13680   case $WIX_CANDLE in
13681   [\\/]* | ?:[\\/]*)
13682   ac_cv_path_WIX_CANDLE="$WIX_CANDLE" # Let the user override the test with a path.
13683   ;;
13684   *)
13685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13686 for as_dir in /c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH
13687 do
13688   IFS=$as_save_IFS
13689   test -z "$as_dir" && as_dir=.
13690     for ac_exec_ext in '' $ac_executable_extensions; do
13691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13692     ac_cv_path_WIX_CANDLE="$as_dir/$ac_word$ac_exec_ext"
13693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13694     break 2
13695   fi
13696 done
13697   done
13698 IFS=$as_save_IFS
13699
13700   test -z "$ac_cv_path_WIX_CANDLE" && ac_cv_path_WIX_CANDLE="no"
13701   ;;
13702 esac
13703 fi
13704 WIX_CANDLE=$ac_cv_path_WIX_CANDLE
13705 if test -n "$WIX_CANDLE"; then
13706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_CANDLE" >&5
13707 $as_echo "$WIX_CANDLE" >&6; }
13708 else
13709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13710 $as_echo "no" >&6; }
13711 fi
13712
13713
13714   # Extract the first word of "light", so it can be a program name with args.
13715 set dummy light; ac_word=$2
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13717 $as_echo_n "checking for $ac_word... " >&6; }
13718 if test "${ac_cv_path_WIX_LIGHT+set}" = set; then :
13719   $as_echo_n "(cached) " >&6
13720 else
13721   case $WIX_LIGHT in
13722   [\\/]* | ?:[\\/]*)
13723   ac_cv_path_WIX_LIGHT="$WIX_LIGHT" # Let the user override the test with a path.
13724   ;;
13725   *)
13726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13727 for as_dir in /c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH
13728 do
13729   IFS=$as_save_IFS
13730   test -z "$as_dir" && as_dir=.
13731     for ac_exec_ext in '' $ac_executable_extensions; do
13732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13733     ac_cv_path_WIX_LIGHT="$as_dir/$ac_word$ac_exec_ext"
13734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13735     break 2
13736   fi
13737 done
13738   done
13739 IFS=$as_save_IFS
13740
13741   test -z "$ac_cv_path_WIX_LIGHT" && ac_cv_path_WIX_LIGHT="no"
13742   ;;
13743 esac
13744 fi
13745 WIX_LIGHT=$ac_cv_path_WIX_LIGHT
13746 if test -n "$WIX_LIGHT"; then
13747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_LIGHT" >&5
13748 $as_echo "$WIX_LIGHT" >&6; }
13749 else
13750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13751 $as_echo "no" >&6; }
13752 fi
13753
13754
13755
13756   if test "$WIX_CANDLE" = "no" || test "$WIX_LIGHT" = "no"; then
13757      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13758 *** Could not find the Windows Installer XML tools. These are required
13759 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
13760 *** environment variables to pass their locations if they are outside
13761 *** the PATH." >&5
13762 $as_echo "$as_me: WARNING:
13763 *** Could not find the Windows Installer XML tools. These are required
13764 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
13765 *** environment variables to pass their locations if they are outside
13766 *** the PATH." >&2;}
13767   fi
13768 fi
13769
13770 if test "$linux" = "yes"; then
13771   # Extract the first word of "update-mime-database", so it can be a program name with args.
13772 set dummy update-mime-database; ac_word=$2
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13774 $as_echo_n "checking for $ac_word... " >&6; }
13775 if test "${ac_cv_path_UPDATE_MIME_DATABASE+set}" = set; then :
13776   $as_echo_n "(cached) " >&6
13777 else
13778   case $UPDATE_MIME_DATABASE in
13779   [\\/]* | ?:[\\/]*)
13780   ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
13781   ;;
13782   *)
13783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13784 for as_dir in $PATH
13785 do
13786   IFS=$as_save_IFS
13787   test -z "$as_dir" && as_dir=.
13788     for ac_exec_ext in '' $ac_executable_extensions; do
13789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13790     ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
13791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13792     break 2
13793   fi
13794 done
13795   done
13796 IFS=$as_save_IFS
13797
13798   test -z "$ac_cv_path_UPDATE_MIME_DATABASE" && ac_cv_path_UPDATE_MIME_DATABASE="no"
13799   ;;
13800 esac
13801 fi
13802 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
13803 if test -n "$UPDATE_MIME_DATABASE"; then
13804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
13805 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
13806 else
13807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 $as_echo "no" >&6; }
13809 fi
13810
13811
13812   if test "$UPDATE_MIME_DATABASE" = "no"; then
13813     as_fn_error $? "
13814 *** Could not find the Freedesktop.org  mime database update tool.
13815 *** Web provisioning files could not be automatically installed." "$LINENO" 5
13816   fi
13817   # Extract the first word of "update-desktop-database", so it can be a program name with args.
13818 set dummy update-desktop-database; ac_word=$2
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13820 $as_echo_n "checking for $ac_word... " >&6; }
13821 if test "${ac_cv_path_UPDATE_DESKTOP_DATABASE+set}" = set; then :
13822   $as_echo_n "(cached) " >&6
13823 else
13824   case $UPDATE_DESKTOP_DATABASE in
13825   [\\/]* | ?:[\\/]*)
13826   ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
13827   ;;
13828   *)
13829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $PATH
13831 do
13832   IFS=$as_save_IFS
13833   test -z "$as_dir" && as_dir=.
13834     for ac_exec_ext in '' $ac_executable_extensions; do
13835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13836     ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
13837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13838     break 2
13839   fi
13840 done
13841   done
13842 IFS=$as_save_IFS
13843
13844   test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
13845   ;;
13846 esac
13847 fi
13848 UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
13849 if test -n "$UPDATE_DESKTOP_DATABASE"; then
13850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
13851 $as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
13852 else
13853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854 $as_echo "no" >&6; }
13855 fi
13856
13857
13858   if test "$UPDATE_DESKTOP_DATABASE" = "no"; then
13859     as_fn_error $? "
13860 *** Could not find the Freedesktop.org desktop entry database update
13861 *** tool. Web provisioning files could not be automatically installed." "$LINENO" 5
13862   fi
13863 fi
13864
13865 MOONSHOT_APP="$bindir/moonshot"
13866 MOONSHOT_WEBP="$bindir/moonshot-webp"
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878 # Dependencies
13879
13880 pkg_failed=no
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot" >&5
13882 $as_echo_n "checking for moonshot... " >&6; }
13883
13884 if test -n "$moonshot_CFLAGS"; then
13885     pkg_cv_moonshot_CFLAGS="$moonshot_CFLAGS"
13886  elif test -n "$PKG_CONFIG"; then
13887     if test -n "$PKG_CONFIG" && \
13888     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
13889         atk >= 1.20
13890         glib-2.0 >= 2.22
13891         gobject-2.0 >= 2.22
13892         \$GTK_VERSION
13893         gee-1.0 >= 0.5
13894         \$SERVER_IPC_MODULE
13895                 \$MAC
13896 \""; } >&5
13897   ($PKG_CONFIG --exists --print-errors "
13898         atk >= 1.20
13899         glib-2.0 >= 2.22
13900         gobject-2.0 >= 2.22
13901         $GTK_VERSION
13902         gee-1.0 >= 0.5
13903         $SERVER_IPC_MODULE
13904                 $MAC
13905 ") 2>&5
13906   ac_status=$?
13907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13908   test $ac_status = 0; }; then
13909   pkg_cv_moonshot_CFLAGS=`$PKG_CONFIG --cflags "
13910         atk >= 1.20
13911         glib-2.0 >= 2.22
13912         gobject-2.0 >= 2.22
13913         $GTK_VERSION
13914         gee-1.0 >= 0.5
13915         $SERVER_IPC_MODULE
13916                 $MAC
13917 " 2>/dev/null`
13918                       test "x$?" != "x0" && pkg_failed=yes
13919 else
13920   pkg_failed=yes
13921 fi
13922  else
13923     pkg_failed=untried
13924 fi
13925 if test -n "$moonshot_LIBS"; then
13926     pkg_cv_moonshot_LIBS="$moonshot_LIBS"
13927  elif test -n "$PKG_CONFIG"; then
13928     if test -n "$PKG_CONFIG" && \
13929     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
13930         atk >= 1.20
13931         glib-2.0 >= 2.22
13932         gobject-2.0 >= 2.22
13933         \$GTK_VERSION
13934         gee-1.0 >= 0.5
13935         \$SERVER_IPC_MODULE
13936                 \$MAC
13937 \""; } >&5
13938   ($PKG_CONFIG --exists --print-errors "
13939         atk >= 1.20
13940         glib-2.0 >= 2.22
13941         gobject-2.0 >= 2.22
13942         $GTK_VERSION
13943         gee-1.0 >= 0.5
13944         $SERVER_IPC_MODULE
13945                 $MAC
13946 ") 2>&5
13947   ac_status=$?
13948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13949   test $ac_status = 0; }; then
13950   pkg_cv_moonshot_LIBS=`$PKG_CONFIG --libs "
13951         atk >= 1.20
13952         glib-2.0 >= 2.22
13953         gobject-2.0 >= 2.22
13954         $GTK_VERSION
13955         gee-1.0 >= 0.5
13956         $SERVER_IPC_MODULE
13957                 $MAC
13958 " 2>/dev/null`
13959                       test "x$?" != "x0" && pkg_failed=yes
13960 else
13961   pkg_failed=yes
13962 fi
13963  else
13964     pkg_failed=untried
13965 fi
13966
13967
13968
13969 if test $pkg_failed = yes; then
13970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13971 $as_echo "no" >&6; }
13972
13973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13974         _pkg_short_errors_supported=yes
13975 else
13976         _pkg_short_errors_supported=no
13977 fi
13978         if test $_pkg_short_errors_supported = yes; then
13979                 moonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
13980         atk >= 1.20
13981         glib-2.0 >= 2.22
13982         gobject-2.0 >= 2.22
13983         $GTK_VERSION
13984         gee-1.0 >= 0.5
13985         $SERVER_IPC_MODULE
13986                 $MAC
13987 " 2>&1`
13988         else
13989                 moonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
13990         atk >= 1.20
13991         glib-2.0 >= 2.22
13992         gobject-2.0 >= 2.22
13993         $GTK_VERSION
13994         gee-1.0 >= 0.5
13995         $SERVER_IPC_MODULE
13996                 $MAC
13997 " 2>&1`
13998         fi
13999         # Put the nasty error message in config.log where it belongs
14000         echo "$moonshot_PKG_ERRORS" >&5
14001
14002         as_fn_error $? "Package requirements (
14003         atk >= 1.20
14004         glib-2.0 >= 2.22
14005         gobject-2.0 >= 2.22
14006         $GTK_VERSION
14007         gee-1.0 >= 0.5
14008         $SERVER_IPC_MODULE
14009                 $MAC
14010 ) were not met:
14011
14012 $moonshot_PKG_ERRORS
14013
14014 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14015 installed software in a non-standard prefix.
14016
14017 Alternatively, you may set the environment variables moonshot_CFLAGS
14018 and moonshot_LIBS to avoid the need to call pkg-config.
14019 See the pkg-config man page for more details." "$LINENO" 5
14020 elif test $pkg_failed = untried; then
14021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 $as_echo "no" >&6; }
14023         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14025 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14026 is in your PATH or set the PKG_CONFIG environment variable to the full
14027 path to pkg-config.
14028
14029 Alternatively, you may set the environment variables moonshot_CFLAGS
14030 and moonshot_LIBS to avoid the need to call pkg-config.
14031 See the pkg-config man page for more details.
14032
14033 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14034 See \`config.log' for more details" "$LINENO" 5 ; }
14035 else
14036         moonshot_CFLAGS=$pkg_cv_moonshot_CFLAGS
14037         moonshot_LIBS=$pkg_cv_moonshot_LIBS
14038         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14039 $as_echo "yes" >&6; }
14040
14041 fi
14042
14043
14044 pkg_failed=no
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmoonshot" >&5
14046 $as_echo_n "checking for libmoonshot... " >&6; }
14047
14048 if test -n "$libmoonshot_CFLAGS"; then
14049     pkg_cv_libmoonshot_CFLAGS="$libmoonshot_CFLAGS"
14050  elif test -n "$PKG_CONFIG"; then
14051     if test -n "$PKG_CONFIG" && \
14052     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14053         \$CLIENT_IPC_MODULE
14054 \""; } >&5
14055   ($PKG_CONFIG --exists --print-errors "
14056         $CLIENT_IPC_MODULE
14057 ") 2>&5
14058   ac_status=$?
14059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14060   test $ac_status = 0; }; then
14061   pkg_cv_libmoonshot_CFLAGS=`$PKG_CONFIG --cflags "
14062         $CLIENT_IPC_MODULE
14063 " 2>/dev/null`
14064                       test "x$?" != "x0" && pkg_failed=yes
14065 else
14066   pkg_failed=yes
14067 fi
14068  else
14069     pkg_failed=untried
14070 fi
14071 if test -n "$libmoonshot_LIBS"; then
14072     pkg_cv_libmoonshot_LIBS="$libmoonshot_LIBS"
14073  elif test -n "$PKG_CONFIG"; then
14074     if test -n "$PKG_CONFIG" && \
14075     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14076         \$CLIENT_IPC_MODULE
14077 \""; } >&5
14078   ($PKG_CONFIG --exists --print-errors "
14079         $CLIENT_IPC_MODULE
14080 ") 2>&5
14081   ac_status=$?
14082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14083   test $ac_status = 0; }; then
14084   pkg_cv_libmoonshot_LIBS=`$PKG_CONFIG --libs "
14085         $CLIENT_IPC_MODULE
14086 " 2>/dev/null`
14087                       test "x$?" != "x0" && pkg_failed=yes
14088 else
14089   pkg_failed=yes
14090 fi
14091  else
14092     pkg_failed=untried
14093 fi
14094
14095
14096
14097 if test $pkg_failed = yes; then
14098         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14099 $as_echo "no" >&6; }
14100
14101 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14102         _pkg_short_errors_supported=yes
14103 else
14104         _pkg_short_errors_supported=no
14105 fi
14106         if test $_pkg_short_errors_supported = yes; then
14107                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
14108         $CLIENT_IPC_MODULE
14109 " 2>&1`
14110         else
14111                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
14112         $CLIENT_IPC_MODULE
14113 " 2>&1`
14114         fi
14115         # Put the nasty error message in config.log where it belongs
14116         echo "$libmoonshot_PKG_ERRORS" >&5
14117
14118         as_fn_error $? "Package requirements (
14119         $CLIENT_IPC_MODULE
14120 ) were not met:
14121
14122 $libmoonshot_PKG_ERRORS
14123
14124 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14125 installed software in a non-standard prefix.
14126
14127 Alternatively, you may set the environment variables libmoonshot_CFLAGS
14128 and libmoonshot_LIBS to avoid the need to call pkg-config.
14129 See the pkg-config man page for more details." "$LINENO" 5
14130 elif test $pkg_failed = untried; then
14131         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14132 $as_echo "no" >&6; }
14133         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14135 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14136 is in your PATH or set the PKG_CONFIG environment variable to the full
14137 path to pkg-config.
14138
14139 Alternatively, you may set the environment variables libmoonshot_CFLAGS
14140 and libmoonshot_LIBS to avoid the need to call pkg-config.
14141 See the pkg-config man page for more details.
14142
14143 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14144 See \`config.log' for more details" "$LINENO" 5 ; }
14145 else
14146         libmoonshot_CFLAGS=$pkg_cv_libmoonshot_CFLAGS
14147         libmoonshot_LIBS=$pkg_cv_libmoonshot_LIBS
14148         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14149 $as_echo "yes" >&6; }
14150
14151 fi
14152
14153 # i18n stuff
14154
14155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14156 $as_echo_n "checking whether NLS is requested... " >&6; }
14157     # Check whether --enable-nls was given.
14158 if test "${enable_nls+set}" = set; then :
14159   enableval=$enable_nls; USE_NLS=$enableval
14160 else
14161   USE_NLS=yes
14162 fi
14163
14164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14165 $as_echo "$USE_NLS" >&6; }
14166
14167
14168
14169
14170       GETTEXT_MACRO_VERSION=0.18
14171
14172
14173
14174
14175 # Prepare PATH_SEPARATOR.
14176 # The user is always right.
14177 if test "${PATH_SEPARATOR+set}" != set; then
14178   echo "#! /bin/sh" >conf$$.sh
14179   echo  "exit 0"   >>conf$$.sh
14180   chmod +x conf$$.sh
14181   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14182     PATH_SEPARATOR=';'
14183   else
14184     PATH_SEPARATOR=:
14185   fi
14186   rm -f conf$$.sh
14187 fi
14188
14189 # Find out how to test for executable files. Don't use a zero-byte file,
14190 # as systems may use methods other than mode bits to determine executability.
14191 cat >conf$$.file <<_ASEOF
14192 #! /bin/sh
14193 exit 0
14194 _ASEOF
14195 chmod +x conf$$.file
14196 if test -x conf$$.file >/dev/null 2>&1; then
14197   ac_executable_p="test -x"
14198 else
14199   ac_executable_p="test -f"
14200 fi
14201 rm -f conf$$.file
14202
14203 # Extract the first word of "msgfmt", so it can be a program name with args.
14204 set dummy msgfmt; ac_word=$2
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14206 $as_echo_n "checking for $ac_word... " >&6; }
14207 if test "${ac_cv_path_MSGFMT+set}" = set; then :
14208   $as_echo_n "(cached) " >&6
14209 else
14210   case "$MSGFMT" in
14211   [\\/]* | ?:[\\/]*)
14212     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14213     ;;
14214   *)
14215     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14216     for ac_dir in $PATH; do
14217       IFS="$ac_save_IFS"
14218       test -z "$ac_dir" && ac_dir=.
14219       for ac_exec_ext in '' $ac_executable_extensions; do
14220         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14221           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14222           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14223      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14224             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14225             break 2
14226           fi
14227         fi
14228       done
14229     done
14230     IFS="$ac_save_IFS"
14231   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14232     ;;
14233 esac
14234 fi
14235 MSGFMT="$ac_cv_path_MSGFMT"
14236 if test "$MSGFMT" != ":"; then
14237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14238 $as_echo "$MSGFMT" >&6; }
14239 else
14240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14241 $as_echo "no" >&6; }
14242 fi
14243
14244   # Extract the first word of "gmsgfmt", so it can be a program name with args.
14245 set dummy gmsgfmt; ac_word=$2
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14247 $as_echo_n "checking for $ac_word... " >&6; }
14248 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
14249   $as_echo_n "(cached) " >&6
14250 else
14251   case $GMSGFMT in
14252   [\\/]* | ?:[\\/]*)
14253   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14254   ;;
14255   *)
14256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14257 for as_dir in $PATH
14258 do
14259   IFS=$as_save_IFS
14260   test -z "$as_dir" && as_dir=.
14261     for ac_exec_ext in '' $ac_executable_extensions; do
14262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14263     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14265     break 2
14266   fi
14267 done
14268   done
14269 IFS=$as_save_IFS
14270
14271   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14272   ;;
14273 esac
14274 fi
14275 GMSGFMT=$ac_cv_path_GMSGFMT
14276 if test -n "$GMSGFMT"; then
14277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14278 $as_echo "$GMSGFMT" >&6; }
14279 else
14280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14281 $as_echo "no" >&6; }
14282 fi
14283
14284
14285
14286     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14287     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14288     *) MSGFMT_015=$MSGFMT ;;
14289   esac
14290
14291   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14292     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14293     *) GMSGFMT_015=$GMSGFMT ;;
14294   esac
14295
14296
14297
14298 # Prepare PATH_SEPARATOR.
14299 # The user is always right.
14300 if test "${PATH_SEPARATOR+set}" != set; then
14301   echo "#! /bin/sh" >conf$$.sh
14302   echo  "exit 0"   >>conf$$.sh
14303   chmod +x conf$$.sh
14304   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14305     PATH_SEPARATOR=';'
14306   else
14307     PATH_SEPARATOR=:
14308   fi
14309   rm -f conf$$.sh
14310 fi
14311
14312 # Find out how to test for executable files. Don't use a zero-byte file,
14313 # as systems may use methods other than mode bits to determine executability.
14314 cat >conf$$.file <<_ASEOF
14315 #! /bin/sh
14316 exit 0
14317 _ASEOF
14318 chmod +x conf$$.file
14319 if test -x conf$$.file >/dev/null 2>&1; then
14320   ac_executable_p="test -x"
14321 else
14322   ac_executable_p="test -f"
14323 fi
14324 rm -f conf$$.file
14325
14326 # Extract the first word of "xgettext", so it can be a program name with args.
14327 set dummy xgettext; ac_word=$2
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14329 $as_echo_n "checking for $ac_word... " >&6; }
14330 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
14331   $as_echo_n "(cached) " >&6
14332 else
14333   case "$XGETTEXT" in
14334   [\\/]* | ?:[\\/]*)
14335     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14336     ;;
14337   *)
14338     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14339     for ac_dir in $PATH; do
14340       IFS="$ac_save_IFS"
14341       test -z "$ac_dir" && ac_dir=.
14342       for ac_exec_ext in '' $ac_executable_extensions; do
14343         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14344           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14345           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14346      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14347             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14348             break 2
14349           fi
14350         fi
14351       done
14352     done
14353     IFS="$ac_save_IFS"
14354   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14355     ;;
14356 esac
14357 fi
14358 XGETTEXT="$ac_cv_path_XGETTEXT"
14359 if test "$XGETTEXT" != ":"; then
14360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14361 $as_echo "$XGETTEXT" >&6; }
14362 else
14363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14364 $as_echo "no" >&6; }
14365 fi
14366
14367     rm -f messages.po
14368
14369     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14370     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14371     *) XGETTEXT_015=$XGETTEXT ;;
14372   esac
14373
14374
14375
14376 # Prepare PATH_SEPARATOR.
14377 # The user is always right.
14378 if test "${PATH_SEPARATOR+set}" != set; then
14379   echo "#! /bin/sh" >conf$$.sh
14380   echo  "exit 0"   >>conf$$.sh
14381   chmod +x conf$$.sh
14382   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14383     PATH_SEPARATOR=';'
14384   else
14385     PATH_SEPARATOR=:
14386   fi
14387   rm -f conf$$.sh
14388 fi
14389
14390 # Find out how to test for executable files. Don't use a zero-byte file,
14391 # as systems may use methods other than mode bits to determine executability.
14392 cat >conf$$.file <<_ASEOF
14393 #! /bin/sh
14394 exit 0
14395 _ASEOF
14396 chmod +x conf$$.file
14397 if test -x conf$$.file >/dev/null 2>&1; then
14398   ac_executable_p="test -x"
14399 else
14400   ac_executable_p="test -f"
14401 fi
14402 rm -f conf$$.file
14403
14404 # Extract the first word of "msgmerge", so it can be a program name with args.
14405 set dummy msgmerge; ac_word=$2
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14407 $as_echo_n "checking for $ac_word... " >&6; }
14408 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
14409   $as_echo_n "(cached) " >&6
14410 else
14411   case "$MSGMERGE" in
14412   [\\/]* | ?:[\\/]*)
14413     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14414     ;;
14415   *)
14416     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14417     for ac_dir in $PATH; do
14418       IFS="$ac_save_IFS"
14419       test -z "$ac_dir" && ac_dir=.
14420       for ac_exec_ext in '' $ac_executable_extensions; do
14421         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14422           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14423           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14424             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14425             break 2
14426           fi
14427         fi
14428       done
14429     done
14430     IFS="$ac_save_IFS"
14431   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14432     ;;
14433 esac
14434 fi
14435 MSGMERGE="$ac_cv_path_MSGMERGE"
14436 if test "$MSGMERGE" != ":"; then
14437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14438 $as_echo "$MSGMERGE" >&6; }
14439 else
14440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 $as_echo "no" >&6; }
14442 fi
14443
14444
14445         test -n "$localedir" || localedir='${datadir}/locale'
14446
14447
14448     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14449
14450
14451   ac_config_commands="$ac_config_commands po-directories"
14452
14453
14454
14455       if test "X$prefix" = "XNONE"; then
14456     acl_final_prefix="$ac_default_prefix"
14457   else
14458     acl_final_prefix="$prefix"
14459   fi
14460   if test "X$exec_prefix" = "XNONE"; then
14461     acl_final_exec_prefix='${prefix}'
14462   else
14463     acl_final_exec_prefix="$exec_prefix"
14464   fi
14465   acl_save_prefix="$prefix"
14466   prefix="$acl_final_prefix"
14467   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14468   prefix="$acl_save_prefix"
14469
14470
14471 # Check whether --with-gnu-ld was given.
14472 if test "${with_gnu_ld+set}" = set; then :
14473   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14474 else
14475   with_gnu_ld=no
14476 fi
14477
14478 # Prepare PATH_SEPARATOR.
14479 # The user is always right.
14480 if test "${PATH_SEPARATOR+set}" != set; then
14481   echo "#! /bin/sh" >conf$$.sh
14482   echo  "exit 0"   >>conf$$.sh
14483   chmod +x conf$$.sh
14484   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14485     PATH_SEPARATOR=';'
14486   else
14487     PATH_SEPARATOR=:
14488   fi
14489   rm -f conf$$.sh
14490 fi
14491 ac_prog=ld
14492 if test "$GCC" = yes; then
14493   # Check if gcc -print-prog-name=ld gives a path.
14494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14495 $as_echo_n "checking for ld used by GCC... " >&6; }
14496   case $host in
14497   *-*-mingw*)
14498     # gcc leaves a trailing carriage return which upsets mingw
14499     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14500   *)
14501     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14502   esac
14503   case $ac_prog in
14504     # Accept absolute paths.
14505     [\\/]* | [A-Za-z]:[\\/]*)
14506       re_direlt='/[^/][^/]*/\.\./'
14507       # Canonicalize the path of ld
14508       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14509       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14510         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14511       done
14512       test -z "$LD" && LD="$ac_prog"
14513       ;;
14514   "")
14515     # If it fails, then pretend we aren't using GCC.
14516     ac_prog=ld
14517     ;;
14518   *)
14519     # If it is relative, then search for the first ld in PATH.
14520     with_gnu_ld=unknown
14521     ;;
14522   esac
14523 elif test "$with_gnu_ld" = yes; then
14524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14525 $as_echo_n "checking for GNU ld... " >&6; }
14526 else
14527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14528 $as_echo_n "checking for non-GNU ld... " >&6; }
14529 fi
14530 if test "${acl_cv_path_LD+set}" = set; then :
14531   $as_echo_n "(cached) " >&6
14532 else
14533   if test -z "$LD"; then
14534   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14535   for ac_dir in $PATH; do
14536     test -z "$ac_dir" && ac_dir=.
14537     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14538       acl_cv_path_LD="$ac_dir/$ac_prog"
14539       # Check to see if the program is GNU ld.  I'd rather use --version,
14540       # but apparently some GNU ld's only accept -v.
14541       # Break only if it was the GNU/non-GNU ld that we prefer.
14542       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14543       *GNU* | *'with BFD'*)
14544         test "$with_gnu_ld" != no && break ;;
14545       *)
14546         test "$with_gnu_ld" != yes && break ;;
14547       esac
14548     fi
14549   done
14550   IFS="$ac_save_ifs"
14551 else
14552   acl_cv_path_LD="$LD" # Let the user override the test with a path.
14553 fi
14554 fi
14555
14556 LD="$acl_cv_path_LD"
14557 if test -n "$LD"; then
14558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14559 $as_echo "$LD" >&6; }
14560 else
14561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14562 $as_echo "no" >&6; }
14563 fi
14564 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14566 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14567 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
14568   $as_echo_n "(cached) " >&6
14569 else
14570   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14571 case `$LD -v 2>&1 </dev/null` in
14572 *GNU* | *'with BFD'*)
14573   acl_cv_prog_gnu_ld=yes ;;
14574 *)
14575   acl_cv_prog_gnu_ld=no ;;
14576 esac
14577 fi
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14579 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14580 with_gnu_ld=$acl_cv_prog_gnu_ld
14581
14582
14583
14584
14585                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14586 $as_echo_n "checking for shared library run path origin... " >&6; }
14587 if test "${acl_cv_rpath+set}" = set; then :
14588   $as_echo_n "(cached) " >&6
14589 else
14590
14591     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14592     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14593     . ./conftest.sh
14594     rm -f ./conftest.sh
14595     acl_cv_rpath=done
14596
14597 fi
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14599 $as_echo "$acl_cv_rpath" >&6; }
14600   wl="$acl_cv_wl"
14601   acl_libext="$acl_cv_libext"
14602   acl_shlibext="$acl_cv_shlibext"
14603   acl_libname_spec="$acl_cv_libname_spec"
14604   acl_library_names_spec="$acl_cv_library_names_spec"
14605   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14606   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14607   acl_hardcode_direct="$acl_cv_hardcode_direct"
14608   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14609     # Check whether --enable-rpath was given.
14610 if test "${enable_rpath+set}" = set; then :
14611   enableval=$enable_rpath; :
14612 else
14613   enable_rpath=yes
14614 fi
14615
14616
14617
14618
14619   acl_libdirstem=lib
14620   acl_libdirstem2=
14621   case "$host_os" in
14622     solaris*)
14623                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
14624 $as_echo_n "checking for 64-bit host... " >&6; }
14625 if test "${gl_cv_solaris_64bit+set}" = set; then :
14626   $as_echo_n "(cached) " >&6
14627 else
14628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h.  */
14630
14631 #ifdef _LP64
14632 sixtyfour bits
14633 #endif
14634
14635 _ACEOF
14636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14637   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
14638   gl_cv_solaris_64bit=yes
14639 else
14640   gl_cv_solaris_64bit=no
14641 fi
14642 rm -f conftest*
14643
14644
14645 fi
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14647 $as_echo "$gl_cv_solaris_64bit" >&6; }
14648       if test $gl_cv_solaris_64bit = yes; then
14649         acl_libdirstem=lib/64
14650         case "$host_cpu" in
14651           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
14652           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14653         esac
14654       fi
14655       ;;
14656     *)
14657       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14658       if test -n "$searchpath"; then
14659         acl_save_IFS="${IFS=    }"; IFS=":"
14660         for searchdir in $searchpath; do
14661           if test -d "$searchdir"; then
14662             case "$searchdir" in
14663               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14664               */../ | */.. )
14665                 # Better ignore directories of this form. They are misleading.
14666                 ;;
14667               *) searchdir=`cd "$searchdir" && pwd`
14668                  case "$searchdir" in
14669                    */lib64 ) acl_libdirstem=lib64 ;;
14670                  esac ;;
14671             esac
14672           fi
14673         done
14674         IFS="$acl_save_IFS"
14675       fi
14676       ;;
14677   esac
14678   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691     use_additional=yes
14692
14693   acl_save_prefix="$prefix"
14694   prefix="$acl_final_prefix"
14695   acl_save_exec_prefix="$exec_prefix"
14696   exec_prefix="$acl_final_exec_prefix"
14697
14698     eval additional_includedir=\"$includedir\"
14699     eval additional_libdir=\"$libdir\"
14700
14701   exec_prefix="$acl_save_exec_prefix"
14702   prefix="$acl_save_prefix"
14703
14704
14705 # Check whether --with-libiconv-prefix was given.
14706 if test "${with_libiconv_prefix+set}" = set; then :
14707   withval=$with_libiconv_prefix;
14708     if test "X$withval" = "Xno"; then
14709       use_additional=no
14710     else
14711       if test "X$withval" = "X"; then
14712
14713   acl_save_prefix="$prefix"
14714   prefix="$acl_final_prefix"
14715   acl_save_exec_prefix="$exec_prefix"
14716   exec_prefix="$acl_final_exec_prefix"
14717
14718           eval additional_includedir=\"$includedir\"
14719           eval additional_libdir=\"$libdir\"
14720
14721   exec_prefix="$acl_save_exec_prefix"
14722   prefix="$acl_save_prefix"
14723
14724       else
14725         additional_includedir="$withval/include"
14726         additional_libdir="$withval/$acl_libdirstem"
14727         if test "$acl_libdirstem2" != "$acl_libdirstem" \
14728            && ! test -d "$withval/$acl_libdirstem"; then
14729           additional_libdir="$withval/$acl_libdirstem2"
14730         fi
14731       fi
14732     fi
14733
14734 fi
14735
14736       LIBICONV=
14737   LTLIBICONV=
14738   INCICONV=
14739   LIBICONV_PREFIX=
14740       HAVE_LIBICONV=
14741   rpathdirs=
14742   ltrpathdirs=
14743   names_already_handled=
14744   names_next_round='iconv '
14745   while test -n "$names_next_round"; do
14746     names_this_round="$names_next_round"
14747     names_next_round=
14748     for name in $names_this_round; do
14749       already_handled=
14750       for n in $names_already_handled; do
14751         if test "$n" = "$name"; then
14752           already_handled=yes
14753           break
14754         fi
14755       done
14756       if test -z "$already_handled"; then
14757         names_already_handled="$names_already_handled $name"
14758                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14759         eval value=\"\$HAVE_LIB$uppername\"
14760         if test -n "$value"; then
14761           if test "$value" = yes; then
14762             eval value=\"\$LIB$uppername\"
14763             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14764             eval value=\"\$LTLIB$uppername\"
14765             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14766           else
14767                                     :
14768           fi
14769         else
14770                               found_dir=
14771           found_la=
14772           found_so=
14773           found_a=
14774           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14775           if test -n "$acl_shlibext"; then
14776             shrext=".$acl_shlibext"             # typically: shrext=.so
14777           else
14778             shrext=
14779           fi
14780           if test $use_additional = yes; then
14781             dir="$additional_libdir"
14782                                     if test -n "$acl_shlibext"; then
14783               if test -f "$dir/$libname$shrext"; then
14784                 found_dir="$dir"
14785                 found_so="$dir/$libname$shrext"
14786               else
14787                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14788                   ver=`(cd "$dir" && \
14789                         for f in "$libname$shrext".*; do echo "$f"; done \
14790                         | sed -e "s,^$libname$shrext\\\\.,," \
14791                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14792                         | sed 1q ) 2>/dev/null`
14793                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14794                     found_dir="$dir"
14795                     found_so="$dir/$libname$shrext.$ver"
14796                   fi
14797                 else
14798                   eval library_names=\"$acl_library_names_spec\"
14799                   for f in $library_names; do
14800                     if test -f "$dir/$f"; then
14801                       found_dir="$dir"
14802                       found_so="$dir/$f"
14803                       break
14804                     fi
14805                   done
14806                 fi
14807               fi
14808             fi
14809                         if test "X$found_dir" = "X"; then
14810               if test -f "$dir/$libname.$acl_libext"; then
14811                 found_dir="$dir"
14812                 found_a="$dir/$libname.$acl_libext"
14813               fi
14814             fi
14815             if test "X$found_dir" != "X"; then
14816               if test -f "$dir/$libname.la"; then
14817                 found_la="$dir/$libname.la"
14818               fi
14819             fi
14820           fi
14821           if test "X$found_dir" = "X"; then
14822             for x in $LDFLAGS $LTLIBICONV; do
14823
14824   acl_save_prefix="$prefix"
14825   prefix="$acl_final_prefix"
14826   acl_save_exec_prefix="$exec_prefix"
14827   exec_prefix="$acl_final_exec_prefix"
14828   eval x=\"$x\"
14829   exec_prefix="$acl_save_exec_prefix"
14830   prefix="$acl_save_prefix"
14831
14832               case "$x" in
14833                 -L*)
14834                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14835                                     if test -n "$acl_shlibext"; then
14836                     if test -f "$dir/$libname$shrext"; then
14837                       found_dir="$dir"
14838                       found_so="$dir/$libname$shrext"
14839                     else
14840                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14841                         ver=`(cd "$dir" && \
14842                               for f in "$libname$shrext".*; do echo "$f"; done \
14843                               | sed -e "s,^$libname$shrext\\\\.,," \
14844                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14845                               | sed 1q ) 2>/dev/null`
14846                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14847                           found_dir="$dir"
14848                           found_so="$dir/$libname$shrext.$ver"
14849                         fi
14850                       else
14851                         eval library_names=\"$acl_library_names_spec\"
14852                         for f in $library_names; do
14853                           if test -f "$dir/$f"; then
14854                             found_dir="$dir"
14855                             found_so="$dir/$f"
14856                             break
14857                           fi
14858                         done
14859                       fi
14860                     fi
14861                   fi
14862                                     if test "X$found_dir" = "X"; then
14863                     if test -f "$dir/$libname.$acl_libext"; then
14864                       found_dir="$dir"
14865                       found_a="$dir/$libname.$acl_libext"
14866                     fi
14867                   fi
14868                   if test "X$found_dir" != "X"; then
14869                     if test -f "$dir/$libname.la"; then
14870                       found_la="$dir/$libname.la"
14871                     fi
14872                   fi
14873                   ;;
14874               esac
14875               if test "X$found_dir" != "X"; then
14876                 break
14877               fi
14878             done
14879           fi
14880           if test "X$found_dir" != "X"; then
14881                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14882             if test "X$found_so" != "X"; then
14883                                                         if test "$enable_rpath" = no \
14884                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14885                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14886                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14887               else
14888                                                                                 haveit=
14889                 for x in $ltrpathdirs; do
14890                   if test "X$x" = "X$found_dir"; then
14891                     haveit=yes
14892                     break
14893                   fi
14894                 done
14895                 if test -z "$haveit"; then
14896                   ltrpathdirs="$ltrpathdirs $found_dir"
14897                 fi
14898                                 if test "$acl_hardcode_direct" = yes; then
14899                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14900                 else
14901                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14902                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14903                                                             haveit=
14904                     for x in $rpathdirs; do
14905                       if test "X$x" = "X$found_dir"; then
14906                         haveit=yes
14907                         break
14908                       fi
14909                     done
14910                     if test -z "$haveit"; then
14911                       rpathdirs="$rpathdirs $found_dir"
14912                     fi
14913                   else
14914                                                                                 haveit=
14915                     for x in $LDFLAGS $LIBICONV; do
14916
14917   acl_save_prefix="$prefix"
14918   prefix="$acl_final_prefix"
14919   acl_save_exec_prefix="$exec_prefix"
14920   exec_prefix="$acl_final_exec_prefix"
14921   eval x=\"$x\"
14922   exec_prefix="$acl_save_exec_prefix"
14923   prefix="$acl_save_prefix"
14924
14925                       if test "X$x" = "X-L$found_dir"; then
14926                         haveit=yes
14927                         break
14928                       fi
14929                     done
14930                     if test -z "$haveit"; then
14931                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14932                     fi
14933                     if test "$acl_hardcode_minus_L" != no; then
14934                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14935                     else
14936                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14937                     fi
14938                   fi
14939                 fi
14940               fi
14941             else
14942               if test "X$found_a" != "X"; then
14943                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14944               else
14945                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14946               fi
14947             fi
14948                         additional_includedir=
14949             case "$found_dir" in
14950               */$acl_libdirstem | */$acl_libdirstem/)
14951                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14952                 if test "$name" = 'iconv'; then
14953                   LIBICONV_PREFIX="$basedir"
14954                 fi
14955                 additional_includedir="$basedir/include"
14956                 ;;
14957               */$acl_libdirstem2 | */$acl_libdirstem2/)
14958                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14959                 if test "$name" = 'iconv'; then
14960                   LIBICONV_PREFIX="$basedir"
14961                 fi
14962                 additional_includedir="$basedir/include"
14963                 ;;
14964             esac
14965             if test "X$additional_includedir" != "X"; then
14966                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14967                 haveit=
14968                 if test "X$additional_includedir" = "X/usr/local/include"; then
14969                   if test -n "$GCC"; then
14970                     case $host_os in
14971                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14972                     esac
14973                   fi
14974                 fi
14975                 if test -z "$haveit"; then
14976                   for x in $CPPFLAGS $INCICONV; do
14977
14978   acl_save_prefix="$prefix"
14979   prefix="$acl_final_prefix"
14980   acl_save_exec_prefix="$exec_prefix"
14981   exec_prefix="$acl_final_exec_prefix"
14982   eval x=\"$x\"
14983   exec_prefix="$acl_save_exec_prefix"
14984   prefix="$acl_save_prefix"
14985
14986                     if test "X$x" = "X-I$additional_includedir"; then
14987                       haveit=yes
14988                       break
14989                     fi
14990                   done
14991                   if test -z "$haveit"; then
14992                     if test -d "$additional_includedir"; then
14993                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14994                     fi
14995                   fi
14996                 fi
14997               fi
14998             fi
14999                         if test -n "$found_la"; then
15000                                                         save_libdir="$libdir"
15001               case "$found_la" in
15002                 */* | *\\*) . "$found_la" ;;
15003                 *) . "./$found_la" ;;
15004               esac
15005               libdir="$save_libdir"
15006                             for dep in $dependency_libs; do
15007                 case "$dep" in
15008                   -L*)
15009                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15010                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15011                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15012                       haveit=
15013                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15014                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15015                         if test -n "$GCC"; then
15016                           case $host_os in
15017                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15018                           esac
15019                         fi
15020                       fi
15021                       if test -z "$haveit"; then
15022                         haveit=
15023                         for x in $LDFLAGS $LIBICONV; do
15024
15025   acl_save_prefix="$prefix"
15026   prefix="$acl_final_prefix"
15027   acl_save_exec_prefix="$exec_prefix"
15028   exec_prefix="$acl_final_exec_prefix"
15029   eval x=\"$x\"
15030   exec_prefix="$acl_save_exec_prefix"
15031   prefix="$acl_save_prefix"
15032
15033                           if test "X$x" = "X-L$additional_libdir"; then
15034                             haveit=yes
15035                             break
15036                           fi
15037                         done
15038                         if test -z "$haveit"; then
15039                           if test -d "$additional_libdir"; then
15040                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15041                           fi
15042                         fi
15043                         haveit=
15044                         for x in $LDFLAGS $LTLIBICONV; do
15045
15046   acl_save_prefix="$prefix"
15047   prefix="$acl_final_prefix"
15048   acl_save_exec_prefix="$exec_prefix"
15049   exec_prefix="$acl_final_exec_prefix"
15050   eval x=\"$x\"
15051   exec_prefix="$acl_save_exec_prefix"
15052   prefix="$acl_save_prefix"
15053
15054                           if test "X$x" = "X-L$additional_libdir"; then
15055                             haveit=yes
15056                             break
15057                           fi
15058                         done
15059                         if test -z "$haveit"; then
15060                           if test -d "$additional_libdir"; then
15061                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15062                           fi
15063                         fi
15064                       fi
15065                     fi
15066                     ;;
15067                   -R*)
15068                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15069                     if test "$enable_rpath" != no; then
15070                                                                   haveit=
15071                       for x in $rpathdirs; do
15072                         if test "X$x" = "X$dir"; then
15073                           haveit=yes
15074                           break
15075                         fi
15076                       done
15077                       if test -z "$haveit"; then
15078                         rpathdirs="$rpathdirs $dir"
15079                       fi
15080                                                                   haveit=
15081                       for x in $ltrpathdirs; do
15082                         if test "X$x" = "X$dir"; then
15083                           haveit=yes
15084                           break
15085                         fi
15086                       done
15087                       if test -z "$haveit"; then
15088                         ltrpathdirs="$ltrpathdirs $dir"
15089                       fi
15090                     fi
15091                     ;;
15092                   -l*)
15093                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15094                     ;;
15095                   *.la)
15096                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15097                     ;;
15098                   *)
15099                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15100                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15101                     ;;
15102                 esac
15103               done
15104             fi
15105           else
15106                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15107             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15108           fi
15109         fi
15110       fi
15111     done
15112   done
15113   if test "X$rpathdirs" != "X"; then
15114     if test -n "$acl_hardcode_libdir_separator"; then
15115                         alldirs=
15116       for found_dir in $rpathdirs; do
15117         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15118       done
15119             acl_save_libdir="$libdir"
15120       libdir="$alldirs"
15121       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15122       libdir="$acl_save_libdir"
15123       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15124     else
15125             for found_dir in $rpathdirs; do
15126         acl_save_libdir="$libdir"
15127         libdir="$found_dir"
15128         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15129         libdir="$acl_save_libdir"
15130         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15131       done
15132     fi
15133   fi
15134   if test "X$ltrpathdirs" != "X"; then
15135             for found_dir in $ltrpathdirs; do
15136       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15137     done
15138   fi
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15171 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15172 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
15173   $as_echo_n "(cached) " >&6
15174 else
15175   gt_save_LIBS="$LIBS"
15176      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15177      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178 /* end confdefs.h.  */
15179 #include <CoreFoundation/CFPreferences.h>
15180 int
15181 main ()
15182 {
15183 CFPreferencesCopyAppValue(NULL, NULL)
15184   ;
15185   return 0;
15186 }
15187 _ACEOF
15188 if ac_fn_c_try_link "$LINENO"; then :
15189   gt_cv_func_CFPreferencesCopyAppValue=yes
15190 else
15191   gt_cv_func_CFPreferencesCopyAppValue=no
15192 fi
15193 rm -f core conftest.err conftest.$ac_objext \
15194     conftest$ac_exeext conftest.$ac_ext
15195      LIBS="$gt_save_LIBS"
15196 fi
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15198 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15199   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15200
15201 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15202
15203   fi
15204     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15205 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15206 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
15207   $as_echo_n "(cached) " >&6
15208 else
15209   gt_save_LIBS="$LIBS"
15210      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15211      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h.  */
15213 #include <CoreFoundation/CFLocale.h>
15214 int
15215 main ()
15216 {
15217 CFLocaleCopyCurrent();
15218   ;
15219   return 0;
15220 }
15221 _ACEOF
15222 if ac_fn_c_try_link "$LINENO"; then :
15223   gt_cv_func_CFLocaleCopyCurrent=yes
15224 else
15225   gt_cv_func_CFLocaleCopyCurrent=no
15226 fi
15227 rm -f core conftest.err conftest.$ac_objext \
15228     conftest$ac_exeext conftest.$ac_ext
15229      LIBS="$gt_save_LIBS"
15230 fi
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15232 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15233   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15234
15235 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15236
15237   fi
15238   INTL_MACOSX_LIBS=
15239   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15240     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15241   fi
15242
15243
15244
15245
15246
15247
15248   LIBINTL=
15249   LTLIBINTL=
15250   POSUB=
15251
15252     case " $gt_needs " in
15253     *" need-formatstring-macros "*) gt_api_version=3 ;;
15254     *" need-ngettext "*) gt_api_version=2 ;;
15255     *) gt_api_version=1 ;;
15256   esac
15257   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15258   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15259
15260     if test "$USE_NLS" = "yes"; then
15261     gt_use_preinstalled_gnugettext=no
15262
15263
15264         if test $gt_api_version -ge 3; then
15265           gt_revision_test_code='
15266 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15267 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15268 #endif
15269 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15270 '
15271         else
15272           gt_revision_test_code=
15273         fi
15274         if test $gt_api_version -ge 2; then
15275           gt_expression_test_code=' + * ngettext ("", "", 0)'
15276         else
15277           gt_expression_test_code=
15278         fi
15279
15280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15281 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15282 if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
15283   $as_echo_n "(cached) " >&6
15284 else
15285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286 /* end confdefs.h.  */
15287 #include <libintl.h>
15288 $gt_revision_test_code
15289 extern int _nl_msg_cat_cntr;
15290 extern int *_nl_domain_bindings;
15291 int
15292 main ()
15293 {
15294 bindtextdomain ("", "");
15295 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15296   ;
15297   return 0;
15298 }
15299 _ACEOF
15300 if ac_fn_c_try_link "$LINENO"; then :
15301   eval "$gt_func_gnugettext_libc=yes"
15302 else
15303   eval "$gt_func_gnugettext_libc=no"
15304 fi
15305 rm -f core conftest.err conftest.$ac_objext \
15306     conftest$ac_exeext conftest.$ac_ext
15307 fi
15308 eval ac_res=\$$gt_func_gnugettext_libc
15309                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15310 $as_echo "$ac_res" >&6; }
15311
15312         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15313
15314
15315
15316
15317
15318           am_save_CPPFLAGS="$CPPFLAGS"
15319
15320   for element in $INCICONV; do
15321     haveit=
15322     for x in $CPPFLAGS; do
15323
15324   acl_save_prefix="$prefix"
15325   prefix="$acl_final_prefix"
15326   acl_save_exec_prefix="$exec_prefix"
15327   exec_prefix="$acl_final_exec_prefix"
15328   eval x=\"$x\"
15329   exec_prefix="$acl_save_exec_prefix"
15330   prefix="$acl_save_prefix"
15331
15332       if test "X$x" = "X$element"; then
15333         haveit=yes
15334         break
15335       fi
15336     done
15337     if test -z "$haveit"; then
15338       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15339     fi
15340   done
15341
15342
15343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15344 $as_echo_n "checking for iconv... " >&6; }
15345 if test "${am_cv_func_iconv+set}" = set; then :
15346   $as_echo_n "(cached) " >&6
15347 else
15348
15349     am_cv_func_iconv="no, consider installing GNU libiconv"
15350     am_cv_lib_iconv=no
15351     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15352 /* end confdefs.h.  */
15353 #include <stdlib.h>
15354 #include <iconv.h>
15355 int
15356 main ()
15357 {
15358 iconv_t cd = iconv_open("","");
15359        iconv(cd,NULL,NULL,NULL,NULL);
15360        iconv_close(cd);
15361   ;
15362   return 0;
15363 }
15364 _ACEOF
15365 if ac_fn_c_try_link "$LINENO"; then :
15366   am_cv_func_iconv=yes
15367 fi
15368 rm -f core conftest.err conftest.$ac_objext \
15369     conftest$ac_exeext conftest.$ac_ext
15370     if test "$am_cv_func_iconv" != yes; then
15371       am_save_LIBS="$LIBS"
15372       LIBS="$LIBS $LIBICONV"
15373       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h.  */
15375 #include <stdlib.h>
15376 #include <iconv.h>
15377 int
15378 main ()
15379 {
15380 iconv_t cd = iconv_open("","");
15381          iconv(cd,NULL,NULL,NULL,NULL);
15382          iconv_close(cd);
15383   ;
15384   return 0;
15385 }
15386 _ACEOF
15387 if ac_fn_c_try_link "$LINENO"; then :
15388   am_cv_lib_iconv=yes
15389         am_cv_func_iconv=yes
15390 fi
15391 rm -f core conftest.err conftest.$ac_objext \
15392     conftest$ac_exeext conftest.$ac_ext
15393       LIBS="$am_save_LIBS"
15394     fi
15395
15396 fi
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15398 $as_echo "$am_cv_func_iconv" >&6; }
15399   if test "$am_cv_func_iconv" = yes; then
15400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15401 $as_echo_n "checking for working iconv... " >&6; }
15402 if test "${am_cv_func_iconv_works+set}" = set; then :
15403   $as_echo_n "(cached) " >&6
15404 else
15405
15406             am_save_LIBS="$LIBS"
15407       if test $am_cv_lib_iconv = yes; then
15408         LIBS="$LIBS $LIBICONV"
15409       fi
15410       if test "$cross_compiling" = yes; then :
15411   case "$host_os" in
15412            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15413            *)            am_cv_func_iconv_works="guessing yes" ;;
15414          esac
15415 else
15416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h.  */
15418
15419 #include <iconv.h>
15420 #include <string.h>
15421 int main ()
15422 {
15423   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15424      returns.  */
15425   {
15426     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15427     if (cd_utf8_to_88591 != (iconv_t)(-1))
15428       {
15429         static const char input[] = "\342\202\254"; /* EURO SIGN */
15430         char buf[10];
15431         const char *inptr = input;
15432         size_t inbytesleft = strlen (input);
15433         char *outptr = buf;
15434         size_t outbytesleft = sizeof (buf);
15435         size_t res = iconv (cd_utf8_to_88591,
15436                             (char **) &inptr, &inbytesleft,
15437                             &outptr, &outbytesleft);
15438         if (res == 0)
15439           return 1;
15440       }
15441   }
15442   /* Test against Solaris 10 bug: Failures are not distinguishable from
15443      successful returns.  */
15444   {
15445     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15446     if (cd_ascii_to_88591 != (iconv_t)(-1))
15447       {
15448         static const char input[] = "\263";
15449         char buf[10];
15450         const char *inptr = input;
15451         size_t inbytesleft = strlen (input);
15452         char *outptr = buf;
15453         size_t outbytesleft = sizeof (buf);
15454         size_t res = iconv (cd_ascii_to_88591,
15455                             (char **) &inptr, &inbytesleft,
15456                             &outptr, &outbytesleft);
15457         if (res == 0)
15458           return 1;
15459       }
15460   }
15461 #if 0 /* This bug could be worked around by the caller.  */
15462   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15463   {
15464     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15465     if (cd_88591_to_utf8 != (iconv_t)(-1))
15466       {
15467         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15468         char buf[50];
15469         const char *inptr = input;
15470         size_t inbytesleft = strlen (input);
15471         char *outptr = buf;
15472         size_t outbytesleft = sizeof (buf);
15473         size_t res = iconv (cd_88591_to_utf8,
15474                             (char **) &inptr, &inbytesleft,
15475                             &outptr, &outbytesleft);
15476         if ((int)res > 0)
15477           return 1;
15478       }
15479   }
15480 #endif
15481   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15482      provided.  */
15483   if (/* Try standardized names.  */
15484       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15485       /* Try IRIX, OSF/1 names.  */
15486       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15487       /* Try AIX names.  */
15488       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15489       /* Try HP-UX names.  */
15490       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15491     return 1;
15492   return 0;
15493 }
15494 _ACEOF
15495 if ac_fn_c_try_run "$LINENO"; then :
15496   am_cv_func_iconv_works=yes
15497 else
15498   am_cv_func_iconv_works=no
15499 fi
15500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15501   conftest.$ac_objext conftest.beam conftest.$ac_ext
15502 fi
15503
15504       LIBS="$am_save_LIBS"
15505
15506 fi
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15508 $as_echo "$am_cv_func_iconv_works" >&6; }
15509     case "$am_cv_func_iconv_works" in
15510       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15511       *)   am_func_iconv=yes ;;
15512     esac
15513   else
15514     am_func_iconv=no am_cv_lib_iconv=no
15515   fi
15516   if test "$am_func_iconv" = yes; then
15517
15518 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15519
15520   fi
15521   if test "$am_cv_lib_iconv" = yes; then
15522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15523 $as_echo_n "checking how to link with libiconv... " >&6; }
15524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15525 $as_echo "$LIBICONV" >&6; }
15526   else
15527             CPPFLAGS="$am_save_CPPFLAGS"
15528     LIBICONV=
15529     LTLIBICONV=
15530   fi
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542     use_additional=yes
15543
15544   acl_save_prefix="$prefix"
15545   prefix="$acl_final_prefix"
15546   acl_save_exec_prefix="$exec_prefix"
15547   exec_prefix="$acl_final_exec_prefix"
15548
15549     eval additional_includedir=\"$includedir\"
15550     eval additional_libdir=\"$libdir\"
15551
15552   exec_prefix="$acl_save_exec_prefix"
15553   prefix="$acl_save_prefix"
15554
15555
15556 # Check whether --with-libintl-prefix was given.
15557 if test "${with_libintl_prefix+set}" = set; then :
15558   withval=$with_libintl_prefix;
15559     if test "X$withval" = "Xno"; then
15560       use_additional=no
15561     else
15562       if test "X$withval" = "X"; then
15563
15564   acl_save_prefix="$prefix"
15565   prefix="$acl_final_prefix"
15566   acl_save_exec_prefix="$exec_prefix"
15567   exec_prefix="$acl_final_exec_prefix"
15568
15569           eval additional_includedir=\"$includedir\"
15570           eval additional_libdir=\"$libdir\"
15571
15572   exec_prefix="$acl_save_exec_prefix"
15573   prefix="$acl_save_prefix"
15574
15575       else
15576         additional_includedir="$withval/include"
15577         additional_libdir="$withval/$acl_libdirstem"
15578         if test "$acl_libdirstem2" != "$acl_libdirstem" \
15579            && ! test -d "$withval/$acl_libdirstem"; then
15580           additional_libdir="$withval/$acl_libdirstem2"
15581         fi
15582       fi
15583     fi
15584
15585 fi
15586
15587       LIBINTL=
15588   LTLIBINTL=
15589   INCINTL=
15590   LIBINTL_PREFIX=
15591       HAVE_LIBINTL=
15592   rpathdirs=
15593   ltrpathdirs=
15594   names_already_handled=
15595   names_next_round='intl '
15596   while test -n "$names_next_round"; do
15597     names_this_round="$names_next_round"
15598     names_next_round=
15599     for name in $names_this_round; do
15600       already_handled=
15601       for n in $names_already_handled; do
15602         if test "$n" = "$name"; then
15603           already_handled=yes
15604           break
15605         fi
15606       done
15607       if test -z "$already_handled"; then
15608         names_already_handled="$names_already_handled $name"
15609                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15610         eval value=\"\$HAVE_LIB$uppername\"
15611         if test -n "$value"; then
15612           if test "$value" = yes; then
15613             eval value=\"\$LIB$uppername\"
15614             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15615             eval value=\"\$LTLIB$uppername\"
15616             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15617           else
15618                                     :
15619           fi
15620         else
15621                               found_dir=
15622           found_la=
15623           found_so=
15624           found_a=
15625           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15626           if test -n "$acl_shlibext"; then
15627             shrext=".$acl_shlibext"             # typically: shrext=.so
15628           else
15629             shrext=
15630           fi
15631           if test $use_additional = yes; then
15632             dir="$additional_libdir"
15633                                     if test -n "$acl_shlibext"; then
15634               if test -f "$dir/$libname$shrext"; then
15635                 found_dir="$dir"
15636                 found_so="$dir/$libname$shrext"
15637               else
15638                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15639                   ver=`(cd "$dir" && \
15640                         for f in "$libname$shrext".*; do echo "$f"; done \
15641                         | sed -e "s,^$libname$shrext\\\\.,," \
15642                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15643                         | sed 1q ) 2>/dev/null`
15644                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15645                     found_dir="$dir"
15646                     found_so="$dir/$libname$shrext.$ver"
15647                   fi
15648                 else
15649                   eval library_names=\"$acl_library_names_spec\"
15650                   for f in $library_names; do
15651                     if test -f "$dir/$f"; then
15652                       found_dir="$dir"
15653                       found_so="$dir/$f"
15654                       break
15655                     fi
15656                   done
15657                 fi
15658               fi
15659             fi
15660                         if test "X$found_dir" = "X"; then
15661               if test -f "$dir/$libname.$acl_libext"; then
15662                 found_dir="$dir"
15663                 found_a="$dir/$libname.$acl_libext"
15664               fi
15665             fi
15666             if test "X$found_dir" != "X"; then
15667               if test -f "$dir/$libname.la"; then
15668                 found_la="$dir/$libname.la"
15669               fi
15670             fi
15671           fi
15672           if test "X$found_dir" = "X"; then
15673             for x in $LDFLAGS $LTLIBINTL; do
15674
15675   acl_save_prefix="$prefix"
15676   prefix="$acl_final_prefix"
15677   acl_save_exec_prefix="$exec_prefix"
15678   exec_prefix="$acl_final_exec_prefix"
15679   eval x=\"$x\"
15680   exec_prefix="$acl_save_exec_prefix"
15681   prefix="$acl_save_prefix"
15682
15683               case "$x" in
15684                 -L*)
15685                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15686                                     if test -n "$acl_shlibext"; then
15687                     if test -f "$dir/$libname$shrext"; then
15688                       found_dir="$dir"
15689                       found_so="$dir/$libname$shrext"
15690                     else
15691                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15692                         ver=`(cd "$dir" && \
15693                               for f in "$libname$shrext".*; do echo "$f"; done \
15694                               | sed -e "s,^$libname$shrext\\\\.,," \
15695                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15696                               | sed 1q ) 2>/dev/null`
15697                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15698                           found_dir="$dir"
15699                           found_so="$dir/$libname$shrext.$ver"
15700                         fi
15701                       else
15702                         eval library_names=\"$acl_library_names_spec\"
15703                         for f in $library_names; do
15704                           if test -f "$dir/$f"; then
15705                             found_dir="$dir"
15706                             found_so="$dir/$f"
15707                             break
15708                           fi
15709                         done
15710                       fi
15711                     fi
15712                   fi
15713                                     if test "X$found_dir" = "X"; then
15714                     if test -f "$dir/$libname.$acl_libext"; then
15715                       found_dir="$dir"
15716                       found_a="$dir/$libname.$acl_libext"
15717                     fi
15718                   fi
15719                   if test "X$found_dir" != "X"; then
15720                     if test -f "$dir/$libname.la"; then
15721                       found_la="$dir/$libname.la"
15722                     fi
15723                   fi
15724                   ;;
15725               esac
15726               if test "X$found_dir" != "X"; then
15727                 break
15728               fi
15729             done
15730           fi
15731           if test "X$found_dir" != "X"; then
15732                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15733             if test "X$found_so" != "X"; then
15734                                                         if test "$enable_rpath" = no \
15735                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15736                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15737                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15738               else
15739                                                                                 haveit=
15740                 for x in $ltrpathdirs; do
15741                   if test "X$x" = "X$found_dir"; then
15742                     haveit=yes
15743                     break
15744                   fi
15745                 done
15746                 if test -z "$haveit"; then
15747                   ltrpathdirs="$ltrpathdirs $found_dir"
15748                 fi
15749                                 if test "$acl_hardcode_direct" = yes; then
15750                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15751                 else
15752                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15753                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15754                                                             haveit=
15755                     for x in $rpathdirs; do
15756                       if test "X$x" = "X$found_dir"; then
15757                         haveit=yes
15758                         break
15759                       fi
15760                     done
15761                     if test -z "$haveit"; then
15762                       rpathdirs="$rpathdirs $found_dir"
15763                     fi
15764                   else
15765                                                                                 haveit=
15766                     for x in $LDFLAGS $LIBINTL; do
15767
15768   acl_save_prefix="$prefix"
15769   prefix="$acl_final_prefix"
15770   acl_save_exec_prefix="$exec_prefix"
15771   exec_prefix="$acl_final_exec_prefix"
15772   eval x=\"$x\"
15773   exec_prefix="$acl_save_exec_prefix"
15774   prefix="$acl_save_prefix"
15775
15776                       if test "X$x" = "X-L$found_dir"; then
15777                         haveit=yes
15778                         break
15779                       fi
15780                     done
15781                     if test -z "$haveit"; then
15782                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15783                     fi
15784                     if test "$acl_hardcode_minus_L" != no; then
15785                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15786                     else
15787                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15788                     fi
15789                   fi
15790                 fi
15791               fi
15792             else
15793               if test "X$found_a" != "X"; then
15794                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15795               else
15796                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15797               fi
15798             fi
15799                         additional_includedir=
15800             case "$found_dir" in
15801               */$acl_libdirstem | */$acl_libdirstem/)
15802                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15803                 if test "$name" = 'intl'; then
15804                   LIBINTL_PREFIX="$basedir"
15805                 fi
15806                 additional_includedir="$basedir/include"
15807                 ;;
15808               */$acl_libdirstem2 | */$acl_libdirstem2/)
15809                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15810                 if test "$name" = 'intl'; then
15811                   LIBINTL_PREFIX="$basedir"
15812                 fi
15813                 additional_includedir="$basedir/include"
15814                 ;;
15815             esac
15816             if test "X$additional_includedir" != "X"; then
15817                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15818                 haveit=
15819                 if test "X$additional_includedir" = "X/usr/local/include"; then
15820                   if test -n "$GCC"; then
15821                     case $host_os in
15822                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15823                     esac
15824                   fi
15825                 fi
15826                 if test -z "$haveit"; then
15827                   for x in $CPPFLAGS $INCINTL; do
15828
15829   acl_save_prefix="$prefix"
15830   prefix="$acl_final_prefix"
15831   acl_save_exec_prefix="$exec_prefix"
15832   exec_prefix="$acl_final_exec_prefix"
15833   eval x=\"$x\"
15834   exec_prefix="$acl_save_exec_prefix"
15835   prefix="$acl_save_prefix"
15836
15837                     if test "X$x" = "X-I$additional_includedir"; then
15838                       haveit=yes
15839                       break
15840                     fi
15841                   done
15842                   if test -z "$haveit"; then
15843                     if test -d "$additional_includedir"; then
15844                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15845                     fi
15846                   fi
15847                 fi
15848               fi
15849             fi
15850                         if test -n "$found_la"; then
15851                                                         save_libdir="$libdir"
15852               case "$found_la" in
15853                 */* | *\\*) . "$found_la" ;;
15854                 *) . "./$found_la" ;;
15855               esac
15856               libdir="$save_libdir"
15857                             for dep in $dependency_libs; do
15858                 case "$dep" in
15859                   -L*)
15860                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15861                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15862                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15863                       haveit=
15864                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15865                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15866                         if test -n "$GCC"; then
15867                           case $host_os in
15868                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15869                           esac
15870                         fi
15871                       fi
15872                       if test -z "$haveit"; then
15873                         haveit=
15874                         for x in $LDFLAGS $LIBINTL; do
15875
15876   acl_save_prefix="$prefix"
15877   prefix="$acl_final_prefix"
15878   acl_save_exec_prefix="$exec_prefix"
15879   exec_prefix="$acl_final_exec_prefix"
15880   eval x=\"$x\"
15881   exec_prefix="$acl_save_exec_prefix"
15882   prefix="$acl_save_prefix"
15883
15884                           if test "X$x" = "X-L$additional_libdir"; then
15885                             haveit=yes
15886                             break
15887                           fi
15888                         done
15889                         if test -z "$haveit"; then
15890                           if test -d "$additional_libdir"; then
15891                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15892                           fi
15893                         fi
15894                         haveit=
15895                         for x in $LDFLAGS $LTLIBINTL; do
15896
15897   acl_save_prefix="$prefix"
15898   prefix="$acl_final_prefix"
15899   acl_save_exec_prefix="$exec_prefix"
15900   exec_prefix="$acl_final_exec_prefix"
15901   eval x=\"$x\"
15902   exec_prefix="$acl_save_exec_prefix"
15903   prefix="$acl_save_prefix"
15904
15905                           if test "X$x" = "X-L$additional_libdir"; then
15906                             haveit=yes
15907                             break
15908                           fi
15909                         done
15910                         if test -z "$haveit"; then
15911                           if test -d "$additional_libdir"; then
15912                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15913                           fi
15914                         fi
15915                       fi
15916                     fi
15917                     ;;
15918                   -R*)
15919                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15920                     if test "$enable_rpath" != no; then
15921                                                                   haveit=
15922                       for x in $rpathdirs; do
15923                         if test "X$x" = "X$dir"; then
15924                           haveit=yes
15925                           break
15926                         fi
15927                       done
15928                       if test -z "$haveit"; then
15929                         rpathdirs="$rpathdirs $dir"
15930                       fi
15931                                                                   haveit=
15932                       for x in $ltrpathdirs; do
15933                         if test "X$x" = "X$dir"; then
15934                           haveit=yes
15935                           break
15936                         fi
15937                       done
15938                       if test -z "$haveit"; then
15939                         ltrpathdirs="$ltrpathdirs $dir"
15940                       fi
15941                     fi
15942                     ;;
15943                   -l*)
15944                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15945                     ;;
15946                   *.la)
15947                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15948                     ;;
15949                   *)
15950                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15951                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15952                     ;;
15953                 esac
15954               done
15955             fi
15956           else
15957                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15958             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15959           fi
15960         fi
15961       fi
15962     done
15963   done
15964   if test "X$rpathdirs" != "X"; then
15965     if test -n "$acl_hardcode_libdir_separator"; then
15966                         alldirs=
15967       for found_dir in $rpathdirs; do
15968         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15969       done
15970             acl_save_libdir="$libdir"
15971       libdir="$alldirs"
15972       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15973       libdir="$acl_save_libdir"
15974       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15975     else
15976             for found_dir in $rpathdirs; do
15977         acl_save_libdir="$libdir"
15978         libdir="$found_dir"
15979         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15980         libdir="$acl_save_libdir"
15981         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15982       done
15983     fi
15984   fi
15985   if test "X$ltrpathdirs" != "X"; then
15986             for found_dir in $ltrpathdirs; do
15987       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15988     done
15989   fi
15990
15991
15992
15993
15994
15995
15996           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15997 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15998 if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
15999   $as_echo_n "(cached) " >&6
16000 else
16001   gt_save_CPPFLAGS="$CPPFLAGS"
16002             CPPFLAGS="$CPPFLAGS $INCINTL"
16003             gt_save_LIBS="$LIBS"
16004             LIBS="$LIBS $LIBINTL"
16005                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h.  */
16007 #include <libintl.h>
16008 $gt_revision_test_code
16009 extern int _nl_msg_cat_cntr;
16010 extern
16011 #ifdef __cplusplus
16012 "C"
16013 #endif
16014 const char *_nl_expand_alias (const char *);
16015 int
16016 main ()
16017 {
16018 bindtextdomain ("", "");
16019 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16020   ;
16021   return 0;
16022 }
16023 _ACEOF
16024 if ac_fn_c_try_link "$LINENO"; then :
16025   eval "$gt_func_gnugettext_libintl=yes"
16026 else
16027   eval "$gt_func_gnugettext_libintl=no"
16028 fi
16029 rm -f core conftest.err conftest.$ac_objext \
16030     conftest$ac_exeext conftest.$ac_ext
16031                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16032               LIBS="$LIBS $LIBICONV"
16033               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h.  */
16035 #include <libintl.h>
16036 $gt_revision_test_code
16037 extern int _nl_msg_cat_cntr;
16038 extern
16039 #ifdef __cplusplus
16040 "C"
16041 #endif
16042 const char *_nl_expand_alias (const char *);
16043 int
16044 main ()
16045 {
16046 bindtextdomain ("", "");
16047 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16048   ;
16049   return 0;
16050 }
16051 _ACEOF
16052 if ac_fn_c_try_link "$LINENO"; then :
16053   LIBINTL="$LIBINTL $LIBICONV"
16054                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16055                 eval "$gt_func_gnugettext_libintl=yes"
16056
16057 fi
16058 rm -f core conftest.err conftest.$ac_objext \
16059     conftest$ac_exeext conftest.$ac_ext
16060             fi
16061             CPPFLAGS="$gt_save_CPPFLAGS"
16062             LIBS="$gt_save_LIBS"
16063 fi
16064 eval ac_res=\$$gt_func_gnugettext_libintl
16065                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16066 $as_echo "$ac_res" >&6; }
16067         fi
16068
16069                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16070            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16071                 && test "$PACKAGE" != gettext-runtime \
16072                 && test "$PACKAGE" != gettext-tools; }; then
16073           gt_use_preinstalled_gnugettext=yes
16074         else
16075                     LIBINTL=
16076           LTLIBINTL=
16077           INCINTL=
16078         fi
16079
16080
16081
16082     if test -n "$INTL_MACOSX_LIBS"; then
16083       if test "$gt_use_preinstalled_gnugettext" = "yes" \
16084          || test "$nls_cv_use_gnu_gettext" = "yes"; then
16085                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16086         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16087       fi
16088     fi
16089
16090     if test "$gt_use_preinstalled_gnugettext" = "yes" \
16091        || test "$nls_cv_use_gnu_gettext" = "yes"; then
16092
16093 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16094
16095     else
16096       USE_NLS=no
16097     fi
16098   fi
16099
16100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16101 $as_echo_n "checking whether to use NLS... " >&6; }
16102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16103 $as_echo "$USE_NLS" >&6; }
16104   if test "$USE_NLS" = "yes"; then
16105     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16106 $as_echo_n "checking where the gettext function comes from... " >&6; }
16107     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16108       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16109         gt_source="external libintl"
16110       else
16111         gt_source="libc"
16112       fi
16113     else
16114       gt_source="included intl directory"
16115     fi
16116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16117 $as_echo "$gt_source" >&6; }
16118   fi
16119
16120   if test "$USE_NLS" = "yes"; then
16121
16122     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16123       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16124         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16125 $as_echo_n "checking how to link with libintl... " >&6; }
16126         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16127 $as_echo "$LIBINTL" >&6; }
16128
16129   for element in $INCINTL; do
16130     haveit=
16131     for x in $CPPFLAGS; do
16132
16133   acl_save_prefix="$prefix"
16134   prefix="$acl_final_prefix"
16135   acl_save_exec_prefix="$exec_prefix"
16136   exec_prefix="$acl_final_exec_prefix"
16137   eval x=\"$x\"
16138   exec_prefix="$acl_save_exec_prefix"
16139   prefix="$acl_save_prefix"
16140
16141       if test "X$x" = "X$element"; then
16142         haveit=yes
16143         break
16144       fi
16145     done
16146     if test -z "$haveit"; then
16147       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16148     fi
16149   done
16150
16151       fi
16152
16153
16154 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16155
16156
16157 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16158
16159     fi
16160
16161         POSUB=po
16162   fi
16163
16164
16165
16166     INTLLIBS="$LIBINTL"
16167
16168
16169
16170
16171
16172
16173
16174
16175 GETTEXT_PACKAGE=PACKAGE_TARNAME
16176
16177
16178 $as_echo "#define GETTEXT_PACKAGE PACKAGE_TARNAME" >>confdefs.h
16179
16180
16181 ac_config_files="$ac_config_files Makefile po/Makefile.in moonshot.desktop moonshot-webp.desktop moonshot-ui.spec"
16182
16183
16184 cat >confcache <<\_ACEOF
16185 # This file is a shell script that caches the results of configure
16186 # tests run on this system so they can be shared between configure
16187 # scripts and configure runs, see configure's option --config-cache.
16188 # It is not useful on other systems.  If it contains results you don't
16189 # want to keep, you may remove or edit it.
16190 #
16191 # config.status only pays attention to the cache file if you give it
16192 # the --recheck option to rerun configure.
16193 #
16194 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16195 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16196 # following values.
16197
16198 _ACEOF
16199
16200 # The following way of writing the cache mishandles newlines in values,
16201 # but we know of no workaround that is simple, portable, and efficient.
16202 # So, we kill variables containing newlines.
16203 # Ultrix sh set writes to stderr and can't be redirected directly,
16204 # and sets the high bit in the cache file unless we assign to the vars.
16205 (
16206   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16207     eval ac_val=\$$ac_var
16208     case $ac_val in #(
16209     *${as_nl}*)
16210       case $ac_var in #(
16211       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16213       esac
16214       case $ac_var in #(
16215       _ | IFS | as_nl) ;; #(
16216       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16217       *) { eval $ac_var=; unset $ac_var;} ;;
16218       esac ;;
16219     esac
16220   done
16221
16222   (set) 2>&1 |
16223     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16224     *${as_nl}ac_space=\ *)
16225       # `set' does not quote correctly, so add quotes: double-quote
16226       # substitution turns \\\\ into \\, and sed turns \\ into \.
16227       sed -n \
16228         "s/'/'\\\\''/g;
16229           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16230       ;; #(
16231     *)
16232       # `set' quotes correctly as required by POSIX, so do not add quotes.
16233       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16234       ;;
16235     esac |
16236     sort
16237 ) |
16238   sed '
16239      /^ac_cv_env_/b end
16240      t clear
16241      :clear
16242      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16243      t end
16244      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16245      :end' >>confcache
16246 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16247   if test -w "$cache_file"; then
16248     test "x$cache_file" != "x/dev/null" &&
16249       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16250 $as_echo "$as_me: updating cache $cache_file" >&6;}
16251     cat confcache >$cache_file
16252   else
16253     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16254 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16255   fi
16256 fi
16257 rm -f confcache
16258
16259 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16260 # Let make expand exec_prefix.
16261 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16262
16263 DEFS=-DHAVE_CONFIG_H
16264
16265 ac_libobjs=
16266 ac_ltlibobjs=
16267 U=
16268 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16269   # 1. Remove the extension, and $U if already installed.
16270   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16271   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16272   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16273   #    will be set to the directory where LIBOBJS objects are built.
16274   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16275   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16276 done
16277 LIBOBJS=$ac_libobjs
16278
16279 LTLIBOBJS=$ac_ltlibobjs
16280
16281
16282  if test -n "$EXEEXT"; then
16283   am__EXEEXT_TRUE=
16284   am__EXEEXT_FALSE='#'
16285 else
16286   am__EXEEXT_TRUE='#'
16287   am__EXEEXT_FALSE=
16288 fi
16289
16290 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16291   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16293 fi
16294 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16295   as_fn_error $? "conditional \"AMDEP\" was never defined.
16296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16297 fi
16298 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16299   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16301 fi
16302 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16303   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16305 fi
16306 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
16307   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
16308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16309 fi
16310 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
16311   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
16312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16313 fi
16314 if test -z "${OS_MACOS_TRUE}" && test -z "${OS_MACOS_FALSE}"; then
16315   as_fn_error $? "conditional \"OS_MACOS\" was never defined.
16316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16317 fi
16318 if test -z "${IPC_MSRPC_TRUE}" && test -z "${IPC_MSRPC_FALSE}"; then
16319   as_fn_error $? "conditional \"IPC_MSRPC\" was never defined.
16320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16321 fi
16322 if test -z "${IPC_DBUS_TRUE}" && test -z "${IPC_DBUS_FALSE}"; then
16323   as_fn_error $? "conditional \"IPC_DBUS\" was never defined.
16324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16325 fi
16326 if test -z "${IPC_DBUS_GLIB_TRUE}" && test -z "${IPC_DBUS_GLIB_FALSE}"; then
16327   as_fn_error $? "conditional \"IPC_DBUS_GLIB\" was never defined.
16328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16329 fi
16330 if test -z "${IPC_GDBUS_TRUE}" && test -z "${IPC_GDBUS_FALSE}"; then
16331   as_fn_error $? "conditional \"IPC_GDBUS\" was never defined.
16332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16333 fi
16334
16335 : ${CONFIG_STATUS=./config.status}
16336 ac_write_fail=0
16337 ac_clean_files_save=$ac_clean_files
16338 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16340 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16341 as_write_fail=0
16342 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16343 #! $SHELL
16344 # Generated by $as_me.
16345 # Run this file to recreate the current configuration.
16346 # Compiler output produced by configure, useful for debugging
16347 # configure, is in config.log if it exists.
16348
16349 debug=false
16350 ac_cs_recheck=false
16351 ac_cs_silent=false
16352
16353 SHELL=\${CONFIG_SHELL-$SHELL}
16354 export SHELL
16355 _ASEOF
16356 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16357 ## -------------------- ##
16358 ## M4sh Initialization. ##
16359 ## -------------------- ##
16360
16361 # Be more Bourne compatible
16362 DUALCASE=1; export DUALCASE # for MKS sh
16363 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16364   emulate sh
16365   NULLCMD=:
16366   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16367   # is contrary to our usage.  Disable this feature.
16368   alias -g '${1+"$@"}'='"$@"'
16369   setopt NO_GLOB_SUBST
16370 else
16371   case `(set -o) 2>/dev/null` in #(
16372   *posix*) :
16373     set -o posix ;; #(
16374   *) :
16375      ;;
16376 esac
16377 fi
16378
16379
16380 as_nl='
16381 '
16382 export as_nl
16383 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16384 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16385 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16386 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16387 # Prefer a ksh shell builtin over an external printf program on Solaris,
16388 # but without wasting forks for bash or zsh.
16389 if test -z "$BASH_VERSION$ZSH_VERSION" \
16390     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16391   as_echo='print -r --'
16392   as_echo_n='print -rn --'
16393 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16394   as_echo='printf %s\n'
16395   as_echo_n='printf %s'
16396 else
16397   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16398     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16399     as_echo_n='/usr/ucb/echo -n'
16400   else
16401     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16402     as_echo_n_body='eval
16403       arg=$1;
16404       case $arg in #(
16405       *"$as_nl"*)
16406         expr "X$arg" : "X\\(.*\\)$as_nl";
16407         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16408       esac;
16409       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16410     '
16411     export as_echo_n_body
16412     as_echo_n='sh -c $as_echo_n_body as_echo'
16413   fi
16414   export as_echo_body
16415   as_echo='sh -c $as_echo_body as_echo'
16416 fi
16417
16418 # The user is always right.
16419 if test "${PATH_SEPARATOR+set}" != set; then
16420   PATH_SEPARATOR=:
16421   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16422     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16423       PATH_SEPARATOR=';'
16424   }
16425 fi
16426
16427
16428 # IFS
16429 # We need space, tab and new line, in precisely that order.  Quoting is
16430 # there to prevent editors from complaining about space-tab.
16431 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16432 # splitting by setting IFS to empty value.)
16433 IFS=" ""        $as_nl"
16434
16435 # Find who we are.  Look in the path if we contain no directory separator.
16436 case $0 in #((
16437   *[\\/]* ) as_myself=$0 ;;
16438   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16439 for as_dir in $PATH
16440 do
16441   IFS=$as_save_IFS
16442   test -z "$as_dir" && as_dir=.
16443     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16444   done
16445 IFS=$as_save_IFS
16446
16447      ;;
16448 esac
16449 # We did not find ourselves, most probably we were run as `sh COMMAND'
16450 # in which case we are not to be found in the path.
16451 if test "x$as_myself" = x; then
16452   as_myself=$0
16453 fi
16454 if test ! -f "$as_myself"; then
16455   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16456   exit 1
16457 fi
16458
16459 # Unset variables that we do not need and which cause bugs (e.g. in
16460 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16461 # suppresses any "Segmentation fault" message there.  '((' could
16462 # trigger a bug in pdksh 5.2.14.
16463 for as_var in BASH_ENV ENV MAIL MAILPATH
16464 do eval test x\${$as_var+set} = xset \
16465   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16466 done
16467 PS1='$ '
16468 PS2='> '
16469 PS4='+ '
16470
16471 # NLS nuisances.
16472 LC_ALL=C
16473 export LC_ALL
16474 LANGUAGE=C
16475 export LANGUAGE
16476
16477 # CDPATH.
16478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16479
16480
16481 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16482 # ----------------------------------------
16483 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16484 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16485 # script with STATUS, using 1 if that was 0.
16486 as_fn_error ()
16487 {
16488   as_status=$1; test $as_status -eq 0 && as_status=1
16489   if test "$4"; then
16490     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16491     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16492   fi
16493   $as_echo "$as_me: error: $2" >&2
16494   as_fn_exit $as_status
16495 } # as_fn_error
16496
16497
16498 # as_fn_set_status STATUS
16499 # -----------------------
16500 # Set $? to STATUS, without forking.
16501 as_fn_set_status ()
16502 {
16503   return $1
16504 } # as_fn_set_status
16505
16506 # as_fn_exit STATUS
16507 # -----------------
16508 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16509 as_fn_exit ()
16510 {
16511   set +e
16512   as_fn_set_status $1
16513   exit $1
16514 } # as_fn_exit
16515
16516 # as_fn_unset VAR
16517 # ---------------
16518 # Portably unset VAR.
16519 as_fn_unset ()
16520 {
16521   { eval $1=; unset $1;}
16522 }
16523 as_unset=as_fn_unset
16524 # as_fn_append VAR VALUE
16525 # ----------------------
16526 # Append the text in VALUE to the end of the definition contained in VAR. Take
16527 # advantage of any shell optimizations that allow amortized linear growth over
16528 # repeated appends, instead of the typical quadratic growth present in naive
16529 # implementations.
16530 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16531   eval 'as_fn_append ()
16532   {
16533     eval $1+=\$2
16534   }'
16535 else
16536   as_fn_append ()
16537   {
16538     eval $1=\$$1\$2
16539   }
16540 fi # as_fn_append
16541
16542 # as_fn_arith ARG...
16543 # ------------------
16544 # Perform arithmetic evaluation on the ARGs, and store the result in the
16545 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16546 # must be portable across $(()) and expr.
16547 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16548   eval 'as_fn_arith ()
16549   {
16550     as_val=$(( $* ))
16551   }'
16552 else
16553   as_fn_arith ()
16554   {
16555     as_val=`expr "$@" || test $? -eq 1`
16556   }
16557 fi # as_fn_arith
16558
16559
16560 if expr a : '\(a\)' >/dev/null 2>&1 &&
16561    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16562   as_expr=expr
16563 else
16564   as_expr=false
16565 fi
16566
16567 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16568   as_basename=basename
16569 else
16570   as_basename=false
16571 fi
16572
16573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16574   as_dirname=dirname
16575 else
16576   as_dirname=false
16577 fi
16578
16579 as_me=`$as_basename -- "$0" ||
16580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16581          X"$0" : 'X\(//\)$' \| \
16582          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16583 $as_echo X/"$0" |
16584     sed '/^.*\/\([^/][^/]*\)\/*$/{
16585             s//\1/
16586             q
16587           }
16588           /^X\/\(\/\/\)$/{
16589             s//\1/
16590             q
16591           }
16592           /^X\/\(\/\).*/{
16593             s//\1/
16594             q
16595           }
16596           s/.*/./; q'`
16597
16598 # Avoid depending upon Character Ranges.
16599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16602 as_cr_digits='0123456789'
16603 as_cr_alnum=$as_cr_Letters$as_cr_digits
16604
16605 ECHO_C= ECHO_N= ECHO_T=
16606 case `echo -n x` in #(((((
16607 -n*)
16608   case `echo 'xy\c'` in
16609   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16610   xy)  ECHO_C='\c';;
16611   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16612        ECHO_T=' ';;
16613   esac;;
16614 *)
16615   ECHO_N='-n';;
16616 esac
16617
16618 rm -f conf$$ conf$$.exe conf$$.file
16619 if test -d conf$$.dir; then
16620   rm -f conf$$.dir/conf$$.file
16621 else
16622   rm -f conf$$.dir
16623   mkdir conf$$.dir 2>/dev/null
16624 fi
16625 if (echo >conf$$.file) 2>/dev/null; then
16626   if ln -s conf$$.file conf$$ 2>/dev/null; then
16627     as_ln_s='ln -s'
16628     # ... but there are two gotchas:
16629     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16630     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16631     # In both cases, we have to default to `cp -p'.
16632     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16633       as_ln_s='cp -p'
16634   elif ln conf$$.file conf$$ 2>/dev/null; then
16635     as_ln_s=ln
16636   else
16637     as_ln_s='cp -p'
16638   fi
16639 else
16640   as_ln_s='cp -p'
16641 fi
16642 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16643 rmdir conf$$.dir 2>/dev/null
16644
16645
16646 # as_fn_mkdir_p
16647 # -------------
16648 # Create "$as_dir" as a directory, including parents if necessary.
16649 as_fn_mkdir_p ()
16650 {
16651
16652   case $as_dir in #(
16653   -*) as_dir=./$as_dir;;
16654   esac
16655   test -d "$as_dir" || eval $as_mkdir_p || {
16656     as_dirs=
16657     while :; do
16658       case $as_dir in #(
16659       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16660       *) as_qdir=$as_dir;;
16661       esac
16662       as_dirs="'$as_qdir' $as_dirs"
16663       as_dir=`$as_dirname -- "$as_dir" ||
16664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16665          X"$as_dir" : 'X\(//\)[^/]' \| \
16666          X"$as_dir" : 'X\(//\)$' \| \
16667          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16668 $as_echo X"$as_dir" |
16669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16670             s//\1/
16671             q
16672           }
16673           /^X\(\/\/\)[^/].*/{
16674             s//\1/
16675             q
16676           }
16677           /^X\(\/\/\)$/{
16678             s//\1/
16679             q
16680           }
16681           /^X\(\/\).*/{
16682             s//\1/
16683             q
16684           }
16685           s/.*/./; q'`
16686       test -d "$as_dir" && break
16687     done
16688     test -z "$as_dirs" || eval "mkdir $as_dirs"
16689   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16690
16691
16692 } # as_fn_mkdir_p
16693 if mkdir -p . 2>/dev/null; then
16694   as_mkdir_p='mkdir -p "$as_dir"'
16695 else
16696   test -d ./-p && rmdir ./-p
16697   as_mkdir_p=false
16698 fi
16699
16700 if test -x / >/dev/null 2>&1; then
16701   as_test_x='test -x'
16702 else
16703   if ls -dL / >/dev/null 2>&1; then
16704     as_ls_L_option=L
16705   else
16706     as_ls_L_option=
16707   fi
16708   as_test_x='
16709     eval sh -c '\''
16710       if test -d "$1"; then
16711         test -d "$1/.";
16712       else
16713         case $1 in #(
16714         -*)set "./$1";;
16715         esac;
16716         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16717         ???[sx]*):;;*)false;;esac;fi
16718     '\'' sh
16719   '
16720 fi
16721 as_executable_p=$as_test_x
16722
16723 # Sed expression to map a string onto a valid CPP name.
16724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16725
16726 # Sed expression to map a string onto a valid variable name.
16727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16728
16729
16730 exec 6>&1
16731 ## ----------------------------------- ##
16732 ## Main body of $CONFIG_STATUS script. ##
16733 ## ----------------------------------- ##
16734 _ASEOF
16735 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16736
16737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16738 # Save the log message, to keep $0 and so on meaningful, and to
16739 # report actual input values of CONFIG_FILES etc. instead of their
16740 # values after options handling.
16741 ac_log="
16742 This file was extended by Moonshot-ui $as_me 0.1, which was
16743 generated by GNU Autoconf 2.67.  Invocation command line was
16744
16745   CONFIG_FILES    = $CONFIG_FILES
16746   CONFIG_HEADERS  = $CONFIG_HEADERS
16747   CONFIG_LINKS    = $CONFIG_LINKS
16748   CONFIG_COMMANDS = $CONFIG_COMMANDS
16749   $ $0 $@
16750
16751 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16752 "
16753
16754 _ACEOF
16755
16756 case $ac_config_files in *"
16757 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16758 esac
16759
16760 case $ac_config_headers in *"
16761 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16762 esac
16763
16764
16765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16766 # Files that config.status was made for.
16767 config_files="$ac_config_files"
16768 config_headers="$ac_config_headers"
16769 config_commands="$ac_config_commands"
16770
16771 _ACEOF
16772
16773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16774 ac_cs_usage="\
16775 \`$as_me' instantiates files and other configuration actions
16776 from templates according to the current configuration.  Unless the files
16777 and actions are specified as TAGs, all are instantiated by default.
16778
16779 Usage: $0 [OPTION]... [TAG]...
16780
16781   -h, --help       print this help, then exit
16782   -V, --version    print version number and configuration settings, then exit
16783       --config     print configuration, then exit
16784   -q, --quiet, --silent
16785                    do not print progress messages
16786   -d, --debug      don't remove temporary files
16787       --recheck    update $as_me by reconfiguring in the same conditions
16788       --file=FILE[:TEMPLATE]
16789                    instantiate the configuration file FILE
16790       --header=FILE[:TEMPLATE]
16791                    instantiate the configuration header FILE
16792
16793 Configuration files:
16794 $config_files
16795
16796 Configuration headers:
16797 $config_headers
16798
16799 Configuration commands:
16800 $config_commands
16801
16802 Report bugs to <moonshot-community@jiscmail.ac.uk>.
16803 Moonshot-ui home page: <http://www.project-moonshot.org/>."
16804
16805 _ACEOF
16806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16807 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16808 ac_cs_version="\\
16809 Moonshot-ui config.status 0.1
16810 configured by $0, generated by GNU Autoconf 2.67,
16811   with options \\"\$ac_cs_config\\"
16812
16813 Copyright (C) 2010 Free Software Foundation, Inc.
16814 This config.status script is free software; the Free Software Foundation
16815 gives unlimited permission to copy, distribute and modify it."
16816
16817 ac_pwd='$ac_pwd'
16818 srcdir='$srcdir'
16819 INSTALL='$INSTALL'
16820 MKDIR_P='$MKDIR_P'
16821 AWK='$AWK'
16822 test -n "\$AWK" || AWK=awk
16823 _ACEOF
16824
16825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16826 # The default lists apply if the user does not specify any file.
16827 ac_need_defaults=:
16828 while test $# != 0
16829 do
16830   case $1 in
16831   --*=?*)
16832     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16833     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16834     ac_shift=:
16835     ;;
16836   --*=)
16837     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16838     ac_optarg=
16839     ac_shift=:
16840     ;;
16841   *)
16842     ac_option=$1
16843     ac_optarg=$2
16844     ac_shift=shift
16845     ;;
16846   esac
16847
16848   case $ac_option in
16849   # Handling of the options.
16850   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16851     ac_cs_recheck=: ;;
16852   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16853     $as_echo "$ac_cs_version"; exit ;;
16854   --config | --confi | --conf | --con | --co | --c )
16855     $as_echo "$ac_cs_config"; exit ;;
16856   --debug | --debu | --deb | --de | --d | -d )
16857     debug=: ;;
16858   --file | --fil | --fi | --f )
16859     $ac_shift
16860     case $ac_optarg in
16861     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16862     '') as_fn_error $? "missing file argument" ;;
16863     esac
16864     as_fn_append CONFIG_FILES " '$ac_optarg'"
16865     ac_need_defaults=false;;
16866   --header | --heade | --head | --hea )
16867     $ac_shift
16868     case $ac_optarg in
16869     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16870     esac
16871     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16872     ac_need_defaults=false;;
16873   --he | --h)
16874     # Conflict between --help and --header
16875     as_fn_error $? "ambiguous option: \`$1'
16876 Try \`$0 --help' for more information.";;
16877   --help | --hel | -h )
16878     $as_echo "$ac_cs_usage"; exit ;;
16879   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16880   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16881     ac_cs_silent=: ;;
16882
16883   # This is an error.
16884   -*) as_fn_error $? "unrecognized option: \`$1'
16885 Try \`$0 --help' for more information." ;;
16886
16887   *) as_fn_append ac_config_targets " $1"
16888      ac_need_defaults=false ;;
16889
16890   esac
16891   shift
16892 done
16893
16894 ac_configure_extra_args=
16895
16896 if $ac_cs_silent; then
16897   exec 6>/dev/null
16898   ac_configure_extra_args="$ac_configure_extra_args --silent"
16899 fi
16900
16901 _ACEOF
16902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16903 if \$ac_cs_recheck; then
16904   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16905   shift
16906   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16907   CONFIG_SHELL='$SHELL'
16908   export CONFIG_SHELL
16909   exec "\$@"
16910 fi
16911
16912 _ACEOF
16913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16914 exec 5>>config.log
16915 {
16916   echo
16917   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16918 ## Running $as_me. ##
16919 _ASBOX
16920   $as_echo "$ac_log"
16921 } >&5
16922
16923 _ACEOF
16924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16925 #
16926 # INIT-COMMANDS
16927 #
16928 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16929
16930
16931 # The HP-UX ksh and POSIX shell print the target directory to stdout
16932 # if CDPATH is set.
16933 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16934
16935 sed_quote_subst='$sed_quote_subst'
16936 double_quote_subst='$double_quote_subst'
16937 delay_variable_subst='$delay_variable_subst'
16938 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16939 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16940 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16941 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16942 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16943 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16944 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16945 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16946 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16947 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16948 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16949 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16950 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16951 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16952 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16953 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16954 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16955 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16956 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16957 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16958 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16959 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16960 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16961 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16962 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16963 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16964 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16965 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16966 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16967 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16968 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16969 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16970 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16971 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16972 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16973 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16974 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16975 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16976 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16977 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16978 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16979 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16980 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16981 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16982 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16983 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16984 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16985 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16986 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16987 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16988 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16989 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16990 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16991 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16992 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16993 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16994 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16995 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16996 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16997 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16998 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16999 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17000 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17001 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17002 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17003 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17004 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17005 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17006 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17007 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17008 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17009 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17010 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17011 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17012 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17013 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17014 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17015 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17016 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17017 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17018 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17019 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17020 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17021 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17022 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17023 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17024 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17025 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17026 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17027 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17028 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17029 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17030 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17031 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17032 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17033 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17034 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17035 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17036 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17037 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17038 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17039 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17040 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17041 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17042 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17043 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17044 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17045 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17046 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17047 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17048 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17049 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17050 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17051 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17052 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17053 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17054 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17055 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17056 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17057 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17058 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17059 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17060 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17061 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17062 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17063 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17064 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17065 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17066 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17067 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17068 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17069
17070 LTCC='$LTCC'
17071 LTCFLAGS='$LTCFLAGS'
17072 compiler='$compiler_DEFAULT'
17073
17074 # A function that is used when there is no print builtin or printf.
17075 func_fallback_echo ()
17076 {
17077   eval 'cat <<_LTECHO_EOF
17078 \$1
17079 _LTECHO_EOF'
17080 }
17081
17082 # Quote evaled strings.
17083 for var in AS \
17084 DLLTOOL \
17085 OBJDUMP \
17086 SHELL \
17087 ECHO \
17088 PATH_SEPARATOR \
17089 SED \
17090 GREP \
17091 EGREP \
17092 FGREP \
17093 LD \
17094 NM \
17095 LN_S \
17096 lt_SP2NL \
17097 lt_NL2SP \
17098 reload_flag \
17099 deplibs_check_method \
17100 file_magic_cmd \
17101 file_magic_glob \
17102 want_nocaseglob \
17103 sharedlib_from_linklib_cmd \
17104 AR \
17105 AR_FLAGS \
17106 archiver_list_spec \
17107 STRIP \
17108 RANLIB \
17109 CC \
17110 CFLAGS \
17111 compiler \
17112 lt_cv_sys_global_symbol_pipe \
17113 lt_cv_sys_global_symbol_to_cdecl \
17114 lt_cv_sys_global_symbol_to_c_name_address \
17115 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17116 nm_file_list_spec \
17117 lt_prog_compiler_no_builtin_flag \
17118 lt_prog_compiler_pic \
17119 lt_prog_compiler_wl \
17120 lt_prog_compiler_static \
17121 lt_cv_prog_compiler_c_o \
17122 need_locks \
17123 MANIFEST_TOOL \
17124 DSYMUTIL \
17125 NMEDIT \
17126 LIPO \
17127 OTOOL \
17128 OTOOL64 \
17129 shrext_cmds \
17130 export_dynamic_flag_spec \
17131 whole_archive_flag_spec \
17132 compiler_needs_object \
17133 with_gnu_ld \
17134 allow_undefined_flag \
17135 no_undefined_flag \
17136 hardcode_libdir_flag_spec \
17137 hardcode_libdir_separator \
17138 exclude_expsyms \
17139 include_expsyms \
17140 file_list_spec \
17141 variables_saved_for_relink \
17142 libname_spec \
17143 library_names_spec \
17144 soname_spec \
17145 install_override_mode \
17146 finish_eval \
17147 old_striplib \
17148 striplib; do
17149     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17150     *[\\\\\\\`\\"\\\$]*)
17151       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17152       ;;
17153     *)
17154       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17155       ;;
17156     esac
17157 done
17158
17159 # Double-quote double-evaled strings.
17160 for var in reload_cmds \
17161 old_postinstall_cmds \
17162 old_postuninstall_cmds \
17163 old_archive_cmds \
17164 extract_expsyms_cmds \
17165 old_archive_from_new_cmds \
17166 old_archive_from_expsyms_cmds \
17167 archive_cmds \
17168 archive_expsym_cmds \
17169 module_cmds \
17170 module_expsym_cmds \
17171 export_symbols_cmds \
17172 prelink_cmds \
17173 postlink_cmds \
17174 postinstall_cmds \
17175 postuninstall_cmds \
17176 finish_cmds \
17177 sys_lib_search_path_spec \
17178 sys_lib_dlsearch_path_spec; do
17179     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17180     *[\\\\\\\`\\"\\\$]*)
17181       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17182       ;;
17183     *)
17184       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17185       ;;
17186     esac
17187 done
17188
17189 ac_aux_dir='$ac_aux_dir'
17190 xsi_shell='$xsi_shell'
17191 lt_shell_append='$lt_shell_append'
17192
17193 # See if we are running on zsh, and set the options which allow our
17194 # commands through without removal of \ escapes INIT.
17195 if test -n "\${ZSH_VERSION+set}" ; then
17196    setopt NO_GLOB_SUBST
17197 fi
17198
17199
17200     PACKAGE='$PACKAGE'
17201     VERSION='$VERSION'
17202     TIMESTAMP='$TIMESTAMP'
17203     RM='$RM'
17204     ofile='$ofile'
17205
17206
17207
17208 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17209     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17210     # from automake < 1.5.
17211     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17212     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17213     LINGUAS="${LINGUAS-%UNSET%}"
17214
17215
17216 _ACEOF
17217
17218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17219
17220 # Handling of arguments.
17221 for ac_config_target in $ac_config_targets
17222 do
17223   case $ac_config_target in
17224     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17225     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17226     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17227     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17228     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17229     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17230     "moonshot.desktop") CONFIG_FILES="$CONFIG_FILES moonshot.desktop" ;;
17231     "moonshot-webp.desktop") CONFIG_FILES="$CONFIG_FILES moonshot-webp.desktop" ;;
17232     "moonshot-ui.spec") CONFIG_FILES="$CONFIG_FILES moonshot-ui.spec" ;;
17233
17234   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
17235   esac
17236 done
17237
17238
17239 # If the user did not use the arguments to specify the items to instantiate,
17240 # then the envvar interface is used.  Set only those that are not.
17241 # We use the long form for the default assignment because of an extremely
17242 # bizarre bug on SunOS 4.1.3.
17243 if $ac_need_defaults; then
17244   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17245   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17246   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17247 fi
17248
17249 # Have a temporary directory for convenience.  Make it in the build tree
17250 # simply because there is no reason against having it here, and in addition,
17251 # creating and moving files from /tmp can sometimes cause problems.
17252 # Hook for its removal unless debugging.
17253 # Note that there is a small window in which the directory will not be cleaned:
17254 # after its creation but before its name has been assigned to `$tmp'.
17255 $debug ||
17256 {
17257   tmp=
17258   trap 'exit_status=$?
17259   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17260 ' 0
17261   trap 'as_fn_exit 1' 1 2 13 15
17262 }
17263 # Create a (secure) tmp directory for tmp files.
17264
17265 {
17266   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17267   test -n "$tmp" && test -d "$tmp"
17268 }  ||
17269 {
17270   tmp=./conf$$-$RANDOM
17271   (umask 077 && mkdir "$tmp")
17272 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17273
17274 # Set up the scripts for CONFIG_FILES section.
17275 # No need to generate them if there are no CONFIG_FILES.
17276 # This happens for instance with `./config.status config.h'.
17277 if test -n "$CONFIG_FILES"; then
17278
17279
17280 ac_cr=`echo X | tr X '\015'`
17281 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17282 # But we know of no other shell where ac_cr would be empty at this
17283 # point, so we can use a bashism as a fallback.
17284 if test "x$ac_cr" = x; then
17285   eval ac_cr=\$\'\\r\'
17286 fi
17287 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17288 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17289   ac_cs_awk_cr='\\r'
17290 else
17291   ac_cs_awk_cr=$ac_cr
17292 fi
17293
17294 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17295 _ACEOF
17296
17297
17298 {
17299   echo "cat >conf$$subs.awk <<_ACEOF" &&
17300   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17301   echo "_ACEOF"
17302 } >conf$$subs.sh ||
17303   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17304 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17305 ac_delim='%!_!# '
17306 for ac_last_try in false false false false false :; do
17307   . ./conf$$subs.sh ||
17308     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17309
17310   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17311   if test $ac_delim_n = $ac_delim_num; then
17312     break
17313   elif $ac_last_try; then
17314     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17315   else
17316     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17317   fi
17318 done
17319 rm -f conf$$subs.sh
17320
17321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17322 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17323 _ACEOF
17324 sed -n '
17325 h
17326 s/^/S["/; s/!.*/"]=/
17327 p
17328 g
17329 s/^[^!]*!//
17330 :repl
17331 t repl
17332 s/'"$ac_delim"'$//
17333 t delim
17334 :nl
17335 h
17336 s/\(.\{148\}\)..*/\1/
17337 t more1
17338 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17339 p
17340 n
17341 b repl
17342 :more1
17343 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17344 p
17345 g
17346 s/.\{148\}//
17347 t nl
17348 :delim
17349 h
17350 s/\(.\{148\}\)..*/\1/
17351 t more2
17352 s/["\\]/\\&/g; s/^/"/; s/$/"/
17353 p
17354 b
17355 :more2
17356 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17357 p
17358 g
17359 s/.\{148\}//
17360 t delim
17361 ' <conf$$subs.awk | sed '
17362 /^[^""]/{
17363   N
17364   s/\n//
17365 }
17366 ' >>$CONFIG_STATUS || ac_write_fail=1
17367 rm -f conf$$subs.awk
17368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17369 _ACAWK
17370 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17371   for (key in S) S_is_set[key] = 1
17372   FS = "\a"
17373
17374 }
17375 {
17376   line = $ 0
17377   nfields = split(line, field, "@")
17378   substed = 0
17379   len = length(field[1])
17380   for (i = 2; i < nfields; i++) {
17381     key = field[i]
17382     keylen = length(key)
17383     if (S_is_set[key]) {
17384       value = S[key]
17385       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17386       len += length(value) + length(field[++i])
17387       substed = 1
17388     } else
17389       len += 1 + keylen
17390   }
17391
17392   print line
17393 }
17394
17395 _ACAWK
17396 _ACEOF
17397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17398 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17399   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17400 else
17401   cat
17402 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17403   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17404 _ACEOF
17405
17406 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17407 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17408 # trailing colons and then remove the whole line if VPATH becomes empty
17409 # (actually we leave an empty line to preserve line numbers).
17410 if test "x$srcdir" = x.; then
17411   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17412 h
17413 s///
17414 s/^/:/
17415 s/[      ]*$/:/
17416 s/:\$(srcdir):/:/g
17417 s/:\${srcdir}:/:/g
17418 s/:@srcdir@:/:/g
17419 s/^:*//
17420 s/:*$//
17421 x
17422 s/\(=[   ]*\).*/\1/
17423 G
17424 s/\n//
17425 s/^[^=]*=[       ]*$//
17426 }'
17427 fi
17428
17429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17430 fi # test -n "$CONFIG_FILES"
17431
17432 # Set up the scripts for CONFIG_HEADERS section.
17433 # No need to generate them if there are no CONFIG_HEADERS.
17434 # This happens for instance with `./config.status Makefile'.
17435 if test -n "$CONFIG_HEADERS"; then
17436 cat >"$tmp/defines.awk" <<\_ACAWK ||
17437 BEGIN {
17438 _ACEOF
17439
17440 # Transform confdefs.h into an awk script `defines.awk', embedded as
17441 # here-document in config.status, that substitutes the proper values into
17442 # config.h.in to produce config.h.
17443
17444 # Create a delimiter string that does not exist in confdefs.h, to ease
17445 # handling of long lines.
17446 ac_delim='%!_!# '
17447 for ac_last_try in false false :; do
17448   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17449   if test -z "$ac_t"; then
17450     break
17451   elif $ac_last_try; then
17452     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17453   else
17454     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17455   fi
17456 done
17457
17458 # For the awk script, D is an array of macro values keyed by name,
17459 # likewise P contains macro parameters if any.  Preserve backslash
17460 # newline sequences.
17461
17462 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17463 sed -n '
17464 s/.\{148\}/&'"$ac_delim"'/g
17465 t rset
17466 :rset
17467 s/^[     ]*#[    ]*define[       ][      ]*/ /
17468 t def
17469 d
17470 :def
17471 s/\\$//
17472 t bsnl
17473 s/["\\]/\\&/g
17474 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17475 D["\1"]=" \3"/p
17476 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17477 d
17478 :bsnl
17479 s/["\\]/\\&/g
17480 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17481 D["\1"]=" \3\\\\\\n"\\/p
17482 t cont
17483 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17484 t cont
17485 d
17486 :cont
17487 n
17488 s/.\{148\}/&'"$ac_delim"'/g
17489 t clear
17490 :clear
17491 s/\\$//
17492 t bsnlc
17493 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17494 d
17495 :bsnlc
17496 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17497 b cont
17498 ' <confdefs.h | sed '
17499 s/'"$ac_delim"'/"\\\
17500 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17501
17502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17503   for (key in D) D_is_set[key] = 1
17504   FS = "\a"
17505 }
17506 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17507   line = \$ 0
17508   split(line, arg, " ")
17509   if (arg[1] == "#") {
17510     defundef = arg[2]
17511     mac1 = arg[3]
17512   } else {
17513     defundef = substr(arg[1], 2)
17514     mac1 = arg[2]
17515   }
17516   split(mac1, mac2, "(") #)
17517   macro = mac2[1]
17518   prefix = substr(line, 1, index(line, defundef) - 1)
17519   if (D_is_set[macro]) {
17520     # Preserve the white space surrounding the "#".
17521     print prefix "define", macro P[macro] D[macro]
17522     next
17523   } else {
17524     # Replace #undef with comments.  This is necessary, for example,
17525     # in the case of _POSIX_SOURCE, which is predefined and required
17526     # on some systems where configure will not decide to define it.
17527     if (defundef == "undef") {
17528       print "/*", prefix defundef, macro, "*/"
17529       next
17530     }
17531   }
17532 }
17533 { print }
17534 _ACAWK
17535 _ACEOF
17536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17537   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17538 fi # test -n "$CONFIG_HEADERS"
17539
17540
17541 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17542 shift
17543 for ac_tag
17544 do
17545   case $ac_tag in
17546   :[FHLC]) ac_mode=$ac_tag; continue;;
17547   esac
17548   case $ac_mode$ac_tag in
17549   :[FHL]*:*);;
17550   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
17551   :[FH]-) ac_tag=-:-;;
17552   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17553   esac
17554   ac_save_IFS=$IFS
17555   IFS=:
17556   set x $ac_tag
17557   IFS=$ac_save_IFS
17558   shift
17559   ac_file=$1
17560   shift
17561
17562   case $ac_mode in
17563   :L) ac_source=$1;;
17564   :[FH])
17565     ac_file_inputs=
17566     for ac_f
17567     do
17568       case $ac_f in
17569       -) ac_f="$tmp/stdin";;
17570       *) # Look for the file first in the build tree, then in the source tree
17571          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17572          # because $ac_f cannot contain `:'.
17573          test -f "$ac_f" ||
17574            case $ac_f in
17575            [\\/$]*) false;;
17576            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17577            esac ||
17578            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
17579       esac
17580       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17581       as_fn_append ac_file_inputs " '$ac_f'"
17582     done
17583
17584     # Let's still pretend it is `configure' which instantiates (i.e., don't
17585     # use $as_me), people would be surprised to read:
17586     #    /* config.h.  Generated by config.status.  */
17587     configure_input='Generated from '`
17588           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17589         `' by configure.'
17590     if test x"$ac_file" != x-; then
17591       configure_input="$ac_file.  $configure_input"
17592       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17593 $as_echo "$as_me: creating $ac_file" >&6;}
17594     fi
17595     # Neutralize special characters interpreted by sed in replacement strings.
17596     case $configure_input in #(
17597     *\&* | *\|* | *\\* )
17598        ac_sed_conf_input=`$as_echo "$configure_input" |
17599        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17600     *) ac_sed_conf_input=$configure_input;;
17601     esac
17602
17603     case $ac_tag in
17604     *:-:* | *:-) cat >"$tmp/stdin" \
17605       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
17606     esac
17607     ;;
17608   esac
17609
17610   ac_dir=`$as_dirname -- "$ac_file" ||
17611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17612          X"$ac_file" : 'X\(//\)[^/]' \| \
17613          X"$ac_file" : 'X\(//\)$' \| \
17614          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17615 $as_echo X"$ac_file" |
17616     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17617             s//\1/
17618             q
17619           }
17620           /^X\(\/\/\)[^/].*/{
17621             s//\1/
17622             q
17623           }
17624           /^X\(\/\/\)$/{
17625             s//\1/
17626             q
17627           }
17628           /^X\(\/\).*/{
17629             s//\1/
17630             q
17631           }
17632           s/.*/./; q'`
17633   as_dir="$ac_dir"; as_fn_mkdir_p
17634   ac_builddir=.
17635
17636 case "$ac_dir" in
17637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17638 *)
17639   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17640   # A ".." for each directory in $ac_dir_suffix.
17641   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17642   case $ac_top_builddir_sub in
17643   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17644   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17645   esac ;;
17646 esac
17647 ac_abs_top_builddir=$ac_pwd
17648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17649 # for backward compatibility:
17650 ac_top_builddir=$ac_top_build_prefix
17651
17652 case $srcdir in
17653   .)  # We are building in place.
17654     ac_srcdir=.
17655     ac_top_srcdir=$ac_top_builddir_sub
17656     ac_abs_top_srcdir=$ac_pwd ;;
17657   [\\/]* | ?:[\\/]* )  # Absolute name.
17658     ac_srcdir=$srcdir$ac_dir_suffix;
17659     ac_top_srcdir=$srcdir
17660     ac_abs_top_srcdir=$srcdir ;;
17661   *) # Relative name.
17662     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17663     ac_top_srcdir=$ac_top_build_prefix$srcdir
17664     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17665 esac
17666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17667
17668
17669   case $ac_mode in
17670   :F)
17671   #
17672   # CONFIG_FILE
17673   #
17674
17675   case $INSTALL in
17676   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17677   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17678   esac
17679   ac_MKDIR_P=$MKDIR_P
17680   case $MKDIR_P in
17681   [\\/$]* | ?:[\\/]* ) ;;
17682   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17683   esac
17684 _ACEOF
17685
17686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17687 # If the template does not know about datarootdir, expand it.
17688 # FIXME: This hack should be removed a few years after 2.60.
17689 ac_datarootdir_hack=; ac_datarootdir_seen=
17690 ac_sed_dataroot='
17691 /datarootdir/ {
17692   p
17693   q
17694 }
17695 /@datadir@/p
17696 /@docdir@/p
17697 /@infodir@/p
17698 /@localedir@/p
17699 /@mandir@/p'
17700 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17701 *datarootdir*) ac_datarootdir_seen=yes;;
17702 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17703   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17704 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17705 _ACEOF
17706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17707   ac_datarootdir_hack='
17708   s&@datadir@&$datadir&g
17709   s&@docdir@&$docdir&g
17710   s&@infodir@&$infodir&g
17711   s&@localedir@&$localedir&g
17712   s&@mandir@&$mandir&g
17713   s&\\\${datarootdir}&$datarootdir&g' ;;
17714 esac
17715 _ACEOF
17716
17717 # Neutralize VPATH when `$srcdir' = `.'.
17718 # Shell code in configure.ac might set extrasub.
17719 # FIXME: do we really want to maintain this feature?
17720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17721 ac_sed_extra="$ac_vpsub
17722 $extrasub
17723 _ACEOF
17724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17725 :t
17726 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17727 s|@configure_input@|$ac_sed_conf_input|;t t
17728 s&@top_builddir@&$ac_top_builddir_sub&;t t
17729 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17730 s&@srcdir@&$ac_srcdir&;t t
17731 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17732 s&@top_srcdir@&$ac_top_srcdir&;t t
17733 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17734 s&@builddir@&$ac_builddir&;t t
17735 s&@abs_builddir@&$ac_abs_builddir&;t t
17736 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17737 s&@INSTALL@&$ac_INSTALL&;t t
17738 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17739 $ac_datarootdir_hack
17740 "
17741 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17742   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17743
17744 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17745   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17746   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17747   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17748 which seems to be undefined.  Please make sure it is defined" >&5
17749 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17750 which seems to be undefined.  Please make sure it is defined" >&2;}
17751
17752   rm -f "$tmp/stdin"
17753   case $ac_file in
17754   -) cat "$tmp/out" && rm -f "$tmp/out";;
17755   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17756   esac \
17757   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17758  ;;
17759   :H)
17760   #
17761   # CONFIG_HEADER
17762   #
17763   if test x"$ac_file" != x-; then
17764     {
17765       $as_echo "/* $configure_input  */" \
17766       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17767     } >"$tmp/config.h" \
17768       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17769     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17770       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17771 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17772     else
17773       rm -f "$ac_file"
17774       mv "$tmp/config.h" "$ac_file" \
17775         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17776     fi
17777   else
17778     $as_echo "/* $configure_input  */" \
17779       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17780       || as_fn_error $? "could not create -" "$LINENO" 5
17781   fi
17782 # Compute "$ac_file"'s index in $config_headers.
17783 _am_arg="$ac_file"
17784 _am_stamp_count=1
17785 for _am_header in $config_headers :; do
17786   case $_am_header in
17787     $_am_arg | $_am_arg:* )
17788       break ;;
17789     * )
17790       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17791   esac
17792 done
17793 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17794 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17795          X"$_am_arg" : 'X\(//\)[^/]' \| \
17796          X"$_am_arg" : 'X\(//\)$' \| \
17797          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17798 $as_echo X"$_am_arg" |
17799     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17800             s//\1/
17801             q
17802           }
17803           /^X\(\/\/\)[^/].*/{
17804             s//\1/
17805             q
17806           }
17807           /^X\(\/\/\)$/{
17808             s//\1/
17809             q
17810           }
17811           /^X\(\/\).*/{
17812             s//\1/
17813             q
17814           }
17815           s/.*/./; q'`/stamp-h$_am_stamp_count
17816  ;;
17817
17818   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17819 $as_echo "$as_me: executing $ac_file commands" >&6;}
17820  ;;
17821   esac
17822
17823
17824   case $ac_file$ac_mode in
17825     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17826   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17827   # are listed without --file.  Let's play safe and only enable the eval
17828   # if we detect the quoting.
17829   case $CONFIG_FILES in
17830   *\'*) eval set x "$CONFIG_FILES" ;;
17831   *)   set x $CONFIG_FILES ;;
17832   esac
17833   shift
17834   for mf
17835   do
17836     # Strip MF so we end up with the name of the file.
17837     mf=`echo "$mf" | sed -e 's/:.*$//'`
17838     # Check whether this is an Automake generated Makefile or not.
17839     # We used to match only the files named `Makefile.in', but
17840     # some people rename them; so instead we look at the file content.
17841     # Grep'ing the first line is not enough: some people post-process
17842     # each Makefile.in and add a new line on top of each file to say so.
17843     # Grep'ing the whole file is not good either: AIX grep has a line
17844     # limit of 2048, but all sed's we know have understand at least 4000.
17845     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17846       dirpart=`$as_dirname -- "$mf" ||
17847 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17848          X"$mf" : 'X\(//\)[^/]' \| \
17849          X"$mf" : 'X\(//\)$' \| \
17850          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17851 $as_echo X"$mf" |
17852     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17853             s//\1/
17854             q
17855           }
17856           /^X\(\/\/\)[^/].*/{
17857             s//\1/
17858             q
17859           }
17860           /^X\(\/\/\)$/{
17861             s//\1/
17862             q
17863           }
17864           /^X\(\/\).*/{
17865             s//\1/
17866             q
17867           }
17868           s/.*/./; q'`
17869     else
17870       continue
17871     fi
17872     # Extract the definition of DEPDIR, am__include, and am__quote
17873     # from the Makefile without running `make'.
17874     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17875     test -z "$DEPDIR" && continue
17876     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17877     test -z "am__include" && continue
17878     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17879     # When using ansi2knr, U may be empty or an underscore; expand it
17880     U=`sed -n 's/^U = //p' < "$mf"`
17881     # Find all dependency output files, they are included files with
17882     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17883     # simplest approach to changing $(DEPDIR) to its actual value in the
17884     # expansion.
17885     for file in `sed -n "
17886       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17887          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17888       # Make sure the directory exists.
17889       test -f "$dirpart/$file" && continue
17890       fdir=`$as_dirname -- "$file" ||
17891 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17892          X"$file" : 'X\(//\)[^/]' \| \
17893          X"$file" : 'X\(//\)$' \| \
17894          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17895 $as_echo X"$file" |
17896     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17897             s//\1/
17898             q
17899           }
17900           /^X\(\/\/\)[^/].*/{
17901             s//\1/
17902             q
17903           }
17904           /^X\(\/\/\)$/{
17905             s//\1/
17906             q
17907           }
17908           /^X\(\/\).*/{
17909             s//\1/
17910             q
17911           }
17912           s/.*/./; q'`
17913       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17914       # echo "creating $dirpart/$file"
17915       echo '# dummy' > "$dirpart/$file"
17916     done
17917   done
17918 }
17919  ;;
17920     "libtool":C)
17921
17922     # See if we are running on zsh, and set the options which allow our
17923     # commands through without removal of \ escapes.
17924     if test -n "${ZSH_VERSION+set}" ; then
17925       setopt NO_GLOB_SUBST
17926     fi
17927
17928     cfgfile="${ofile}T"
17929     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17930     $RM "$cfgfile"
17931
17932     cat <<_LT_EOF >> "$cfgfile"
17933 #! $SHELL
17934
17935 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17936 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17937 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17938 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17939 #
17940 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17941 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17942 #                 Foundation, Inc.
17943 #   Written by Gordon Matzigkeit, 1996
17944 #
17945 #   This file is part of GNU Libtool.
17946 #
17947 # GNU Libtool is free software; you can redistribute it and/or
17948 # modify it under the terms of the GNU General Public License as
17949 # published by the Free Software Foundation; either version 2 of
17950 # the License, or (at your option) any later version.
17951 #
17952 # As a special exception to the GNU General Public License,
17953 # if you distribute this file as part of a program or library that
17954 # is built using GNU Libtool, you may include this file under the
17955 # same distribution terms that you use for the rest of that program.
17956 #
17957 # GNU Libtool is distributed in the hope that it will be useful,
17958 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17959 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17960 # GNU General Public License for more details.
17961 #
17962 # You should have received a copy of the GNU General Public License
17963 # along with GNU Libtool; see the file COPYING.  If not, a copy
17964 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17965 # obtained by writing to the Free Software Foundation, Inc.,
17966 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17967
17968
17969 # The names of the tagged configurations supported by this script.
17970 available_tags=""
17971
17972 # ### BEGIN LIBTOOL CONFIG
17973
17974 # Which release of libtool.m4 was used?
17975 macro_version=$macro_version
17976 macro_revision=$macro_revision
17977
17978 # Assembler program.
17979 AS=$lt_AS
17980
17981 # DLL creation program.
17982 DLLTOOL=$lt_DLLTOOL
17983
17984 # Object dumper program.
17985 OBJDUMP=$lt_OBJDUMP
17986
17987 # Whether or not to build shared libraries.
17988 build_libtool_libs=$enable_shared
17989
17990 # Whether or not to build static libraries.
17991 build_old_libs=$enable_static
17992
17993 # What type of objects to build.
17994 pic_mode=$pic_mode
17995
17996 # Whether or not to optimize for fast installation.
17997 fast_install=$enable_fast_install
17998
17999 # Shell to use when invoking shell scripts.
18000 SHELL=$lt_SHELL
18001
18002 # An echo program that protects backslashes.
18003 ECHO=$lt_ECHO
18004
18005 # The PATH separator for the build system.
18006 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18007
18008 # The host system.
18009 host_alias=$host_alias
18010 host=$host
18011 host_os=$host_os
18012
18013 # The build system.
18014 build_alias=$build_alias
18015 build=$build
18016 build_os=$build_os
18017
18018 # A sed program that does not truncate output.
18019 SED=$lt_SED
18020
18021 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18022 Xsed="\$SED -e 1s/^X//"
18023
18024 # A grep program that handles long lines.
18025 GREP=$lt_GREP
18026
18027 # An ERE matcher.
18028 EGREP=$lt_EGREP
18029
18030 # A literal string matcher.
18031 FGREP=$lt_FGREP
18032
18033 # A BSD- or MS-compatible name lister.
18034 NM=$lt_NM
18035
18036 # Whether we need soft or hard links.
18037 LN_S=$lt_LN_S
18038
18039 # What is the maximum length of a command?
18040 max_cmd_len=$max_cmd_len
18041
18042 # Object file suffix (normally "o").
18043 objext=$ac_objext
18044
18045 # Executable file suffix (normally "").
18046 exeext=$exeext
18047
18048 # whether the shell understands "unset".
18049 lt_unset=$lt_unset
18050
18051 # turn spaces into newlines.
18052 SP2NL=$lt_lt_SP2NL
18053
18054 # turn newlines into spaces.
18055 NL2SP=$lt_lt_NL2SP
18056
18057 # convert \$build file names to \$host format.
18058 to_host_file_cmd=$lt_cv_to_host_file_cmd
18059
18060 # convert \$build files to toolchain format.
18061 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18062
18063 # Method to check whether dependent libraries are shared objects.
18064 deplibs_check_method=$lt_deplibs_check_method
18065
18066 # Command to use when deplibs_check_method = "file_magic".
18067 file_magic_cmd=$lt_file_magic_cmd
18068
18069 # How to find potential files when deplibs_check_method = "file_magic".
18070 file_magic_glob=$lt_file_magic_glob
18071
18072 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18073 want_nocaseglob=$lt_want_nocaseglob
18074
18075 # Command to associate shared and link libraries.
18076 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18077
18078 # The archiver.
18079 AR=$lt_AR
18080
18081 # Flags to create an archive.
18082 AR_FLAGS=$lt_AR_FLAGS
18083
18084 # How to feed a file listing to the archiver.
18085 archiver_list_spec=$lt_archiver_list_spec
18086
18087 # A symbol stripping program.
18088 STRIP=$lt_STRIP
18089
18090 # Commands used to install an old-style archive.
18091 RANLIB=$lt_RANLIB
18092 old_postinstall_cmds=$lt_old_postinstall_cmds
18093 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18094
18095 # Whether to use a lock for old archive extraction.
18096 lock_old_archive_extraction=$lock_old_archive_extraction
18097
18098 # A C compiler.
18099 LTCC=$lt_CC
18100
18101 # LTCC compiler flags.
18102 LTCFLAGS=$lt_CFLAGS
18103
18104 # Take the output of nm and produce a listing of raw symbols and C names.
18105 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18106
18107 # Transform the output of nm in a proper C declaration.
18108 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18109
18110 # Transform the output of nm in a C name address pair.
18111 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18112
18113 # Transform the output of nm in a C name address pair when lib prefix is needed.
18114 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18115
18116 # Specify filename containing input files for \$NM.
18117 nm_file_list_spec=$lt_nm_file_list_spec
18118
18119 # The root where to search for dependent libraries,and in which our libraries should be installed.
18120 lt_sysroot=$lt_sysroot
18121
18122 # The name of the directory that contains temporary libtool files.
18123 objdir=$objdir
18124
18125 # Used to examine libraries when file_magic_cmd begins with "file".
18126 MAGIC_CMD=$MAGIC_CMD
18127
18128 # Must we lock files when doing compilation?
18129 need_locks=$lt_need_locks
18130
18131 # Manifest tool.
18132 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18133
18134 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18135 DSYMUTIL=$lt_DSYMUTIL
18136
18137 # Tool to change global to local symbols on Mac OS X.
18138 NMEDIT=$lt_NMEDIT
18139
18140 # Tool to manipulate fat objects and archives on Mac OS X.
18141 LIPO=$lt_LIPO
18142
18143 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18144 OTOOL=$lt_OTOOL
18145
18146 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18147 OTOOL64=$lt_OTOOL64
18148
18149 # Old archive suffix (normally "a").
18150 libext=$libext
18151
18152 # Shared library suffix (normally ".so").
18153 shrext_cmds=$lt_shrext_cmds
18154
18155 # The commands to extract the exported symbol list from a shared archive.
18156 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18157
18158 # Variables whose values should be saved in libtool wrapper scripts and
18159 # restored at link time.
18160 variables_saved_for_relink=$lt_variables_saved_for_relink
18161
18162 # Do we need the "lib" prefix for modules?
18163 need_lib_prefix=$need_lib_prefix
18164
18165 # Do we need a version for libraries?
18166 need_version=$need_version
18167
18168 # Library versioning type.
18169 version_type=$version_type
18170
18171 # Shared library runtime path variable.
18172 runpath_var=$runpath_var
18173
18174 # Shared library path variable.
18175 shlibpath_var=$shlibpath_var
18176
18177 # Is shlibpath searched before the hard-coded library search path?
18178 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18179
18180 # Format of library name prefix.
18181 libname_spec=$lt_libname_spec
18182
18183 # List of archive names.  First name is the real one, the rest are links.
18184 # The last name is the one that the linker finds with -lNAME
18185 library_names_spec=$lt_library_names_spec
18186
18187 # The coded name of the library, if different from the real name.
18188 soname_spec=$lt_soname_spec
18189
18190 # Permission mode override for installation of shared libraries.
18191 install_override_mode=$lt_install_override_mode
18192
18193 # Command to use after installation of a shared archive.
18194 postinstall_cmds=$lt_postinstall_cmds
18195
18196 # Command to use after uninstallation of a shared archive.
18197 postuninstall_cmds=$lt_postuninstall_cmds
18198
18199 # Commands used to finish a libtool library installation in a directory.
18200 finish_cmds=$lt_finish_cmds
18201
18202 # As "finish_cmds", except a single script fragment to be evaled but
18203 # not shown.
18204 finish_eval=$lt_finish_eval
18205
18206 # Whether we should hardcode library paths into libraries.
18207 hardcode_into_libs=$hardcode_into_libs
18208
18209 # Compile-time system search path for libraries.
18210 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18211
18212 # Run-time system search path for libraries.
18213 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18214
18215 # Whether dlopen is supported.
18216 dlopen_support=$enable_dlopen
18217
18218 # Whether dlopen of programs is supported.
18219 dlopen_self=$enable_dlopen_self
18220
18221 # Whether dlopen of statically linked programs is supported.
18222 dlopen_self_static=$enable_dlopen_self_static
18223
18224 # Commands to strip libraries.
18225 old_striplib=$lt_old_striplib
18226 striplib=$lt_striplib
18227
18228
18229 # The linker used to build libraries.
18230 LD=$lt_LD
18231
18232 # How to create reloadable object files.
18233 reload_flag=$lt_reload_flag
18234 reload_cmds=$lt_reload_cmds
18235
18236 # Commands used to build an old-style archive.
18237 old_archive_cmds=$lt_old_archive_cmds
18238
18239 # A language specific compiler.
18240 CC=$lt_compiler
18241
18242 # Is the compiler the GNU compiler?
18243 with_gcc=$GCC
18244
18245 # Compiler flag to turn off builtin functions.
18246 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18247
18248 # Additional compiler flags for building library objects.
18249 pic_flag=$lt_lt_prog_compiler_pic
18250
18251 # How to pass a linker flag through the compiler.
18252 wl=$lt_lt_prog_compiler_wl
18253
18254 # Compiler flag to prevent dynamic linking.
18255 link_static_flag=$lt_lt_prog_compiler_static
18256
18257 # Does compiler simultaneously support -c and -o options?
18258 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18259
18260 # Whether or not to add -lc for building shared libraries.
18261 build_libtool_need_lc=$archive_cmds_need_lc
18262
18263 # Whether or not to disallow shared libs when runtime libs are static.
18264 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18265
18266 # Compiler flag to allow reflexive dlopens.
18267 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18268
18269 # Compiler flag to generate shared objects directly from archives.
18270 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18271
18272 # Whether the compiler copes with passing no objects directly.
18273 compiler_needs_object=$lt_compiler_needs_object
18274
18275 # Create an old-style archive from a shared archive.
18276 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18277
18278 # Create a temporary old-style archive to link instead of a shared archive.
18279 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18280
18281 # Commands used to build a shared archive.
18282 archive_cmds=$lt_archive_cmds
18283 archive_expsym_cmds=$lt_archive_expsym_cmds
18284
18285 # Commands used to build a loadable module if different from building
18286 # a shared archive.
18287 module_cmds=$lt_module_cmds
18288 module_expsym_cmds=$lt_module_expsym_cmds
18289
18290 # Whether we are building with GNU ld or not.
18291 with_gnu_ld=$lt_with_gnu_ld
18292
18293 # Flag that allows shared libraries with undefined symbols to be built.
18294 allow_undefined_flag=$lt_allow_undefined_flag
18295
18296 # Flag that enforces no undefined symbols.
18297 no_undefined_flag=$lt_no_undefined_flag
18298
18299 # Flag to hardcode \$libdir into a binary during linking.
18300 # This must work even if \$libdir does not exist
18301 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18302
18303 # Whether we need a single "-rpath" flag with a separated argument.
18304 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18305
18306 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18307 # DIR into the resulting binary.
18308 hardcode_direct=$hardcode_direct
18309
18310 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18311 # DIR into the resulting binary and the resulting library dependency is
18312 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18313 # library is relocated.
18314 hardcode_direct_absolute=$hardcode_direct_absolute
18315
18316 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18317 # into the resulting binary.
18318 hardcode_minus_L=$hardcode_minus_L
18319
18320 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18321 # into the resulting binary.
18322 hardcode_shlibpath_var=$hardcode_shlibpath_var
18323
18324 # Set to "yes" if building a shared library automatically hardcodes DIR
18325 # into the library and all subsequent libraries and executables linked
18326 # against it.
18327 hardcode_automatic=$hardcode_automatic
18328
18329 # Set to yes if linker adds runtime paths of dependent libraries
18330 # to runtime path list.
18331 inherit_rpath=$inherit_rpath
18332
18333 # Whether libtool must link a program against all its dependency libraries.
18334 link_all_deplibs=$link_all_deplibs
18335
18336 # Set to "yes" if exported symbols are required.
18337 always_export_symbols=$always_export_symbols
18338
18339 # The commands to list exported symbols.
18340 export_symbols_cmds=$lt_export_symbols_cmds
18341
18342 # Symbols that should not be listed in the preloaded symbols.
18343 exclude_expsyms=$lt_exclude_expsyms
18344
18345 # Symbols that must always be exported.
18346 include_expsyms=$lt_include_expsyms
18347
18348 # Commands necessary for linking programs (against libraries) with templates.
18349 prelink_cmds=$lt_prelink_cmds
18350
18351 # Commands necessary for finishing linking programs.
18352 postlink_cmds=$lt_postlink_cmds
18353
18354 # Specify filename containing input files.
18355 file_list_spec=$lt_file_list_spec
18356
18357 # How to hardcode a shared library path into an executable.
18358 hardcode_action=$hardcode_action
18359
18360 # ### END LIBTOOL CONFIG
18361
18362 _LT_EOF
18363
18364   case $host_os in
18365   aix3*)
18366     cat <<\_LT_EOF >> "$cfgfile"
18367 # AIX sometimes has problems with the GCC collect2 program.  For some
18368 # reason, if we set the COLLECT_NAMES environment variable, the problems
18369 # vanish in a puff of smoke.
18370 if test "X${COLLECT_NAMES+set}" != Xset; then
18371   COLLECT_NAMES=
18372   export COLLECT_NAMES
18373 fi
18374 _LT_EOF
18375     ;;
18376   esac
18377
18378
18379 ltmain="$ac_aux_dir/ltmain.sh"
18380
18381
18382   # We use sed instead of cat because bash on DJGPP gets confused if
18383   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18384   # text mode, it properly converts lines to CR/LF.  This bash problem
18385   # is reportedly fixed, but why not run on old versions too?
18386   sed '$q' "$ltmain" >> "$cfgfile" \
18387      || (rm -f "$cfgfile"; exit 1)
18388
18389   if test x"$xsi_shell" = xyes; then
18390   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18391 func_dirname ()\
18392 {\
18393 \    case ${1} in\
18394 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18395 \      *  ) func_dirname_result="${3}" ;;\
18396 \    esac\
18397 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18398   && mv -f "$cfgfile.tmp" "$cfgfile" \
18399     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18400 test 0 -eq $? || _lt_function_replace_fail=:
18401
18402
18403   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18404 func_basename ()\
18405 {\
18406 \    func_basename_result="${1##*/}"\
18407 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18408   && mv -f "$cfgfile.tmp" "$cfgfile" \
18409     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18410 test 0 -eq $? || _lt_function_replace_fail=:
18411
18412
18413   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18414 func_dirname_and_basename ()\
18415 {\
18416 \    case ${1} in\
18417 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18418 \      *  ) func_dirname_result="${3}" ;;\
18419 \    esac\
18420 \    func_basename_result="${1##*/}"\
18421 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18422   && mv -f "$cfgfile.tmp" "$cfgfile" \
18423     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18424 test 0 -eq $? || _lt_function_replace_fail=:
18425
18426
18427   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18428 func_stripname ()\
18429 {\
18430 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18431 \    # positional parameters, so assign one to ordinary parameter first.\
18432 \    func_stripname_result=${3}\
18433 \    func_stripname_result=${func_stripname_result#"${1}"}\
18434 \    func_stripname_result=${func_stripname_result%"${2}"}\
18435 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18436   && mv -f "$cfgfile.tmp" "$cfgfile" \
18437     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18438 test 0 -eq $? || _lt_function_replace_fail=:
18439
18440
18441   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18442 func_split_long_opt ()\
18443 {\
18444 \    func_split_long_opt_name=${1%%=*}\
18445 \    func_split_long_opt_arg=${1#*=}\
18446 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18447   && mv -f "$cfgfile.tmp" "$cfgfile" \
18448     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18449 test 0 -eq $? || _lt_function_replace_fail=:
18450
18451
18452   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18453 func_split_short_opt ()\
18454 {\
18455 \    func_split_short_opt_arg=${1#??}\
18456 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18457 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18458   && mv -f "$cfgfile.tmp" "$cfgfile" \
18459     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18460 test 0 -eq $? || _lt_function_replace_fail=:
18461
18462
18463   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18464 func_lo2o ()\
18465 {\
18466 \    case ${1} in\
18467 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18468 \      *)    func_lo2o_result=${1} ;;\
18469 \    esac\
18470 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18471   && mv -f "$cfgfile.tmp" "$cfgfile" \
18472     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18473 test 0 -eq $? || _lt_function_replace_fail=:
18474
18475
18476   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18477 func_xform ()\
18478 {\
18479     func_xform_result=${1%.*}.lo\
18480 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18481   && mv -f "$cfgfile.tmp" "$cfgfile" \
18482     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18483 test 0 -eq $? || _lt_function_replace_fail=:
18484
18485
18486   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18487 func_arith ()\
18488 {\
18489     func_arith_result=$(( $* ))\
18490 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18491   && mv -f "$cfgfile.tmp" "$cfgfile" \
18492     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18493 test 0 -eq $? || _lt_function_replace_fail=:
18494
18495
18496   sed -e '/^func_len ()$/,/^} # func_len /c\
18497 func_len ()\
18498 {\
18499     func_len_result=${#1}\
18500 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18501   && mv -f "$cfgfile.tmp" "$cfgfile" \
18502     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18503 test 0 -eq $? || _lt_function_replace_fail=:
18504
18505 fi
18506
18507 if test x"$lt_shell_append" = xyes; then
18508   sed -e '/^func_append ()$/,/^} # func_append /c\
18509 func_append ()\
18510 {\
18511     eval "${1}+=\\${2}"\
18512 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18513   && mv -f "$cfgfile.tmp" "$cfgfile" \
18514     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18515 test 0 -eq $? || _lt_function_replace_fail=:
18516
18517
18518   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18519 func_append_quoted ()\
18520 {\
18521 \    func_quote_for_eval "${2}"\
18522 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18523 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18524   && mv -f "$cfgfile.tmp" "$cfgfile" \
18525     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18526 test 0 -eq $? || _lt_function_replace_fail=:
18527
18528
18529   # Save a `func_append' function call where possible by direct use of '+='
18530   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18531     && mv -f "$cfgfile.tmp" "$cfgfile" \
18532       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18533   test 0 -eq $? || _lt_function_replace_fail=:
18534 else
18535   # Save a `func_append' function call even when '+=' is not available
18536   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18537     && mv -f "$cfgfile.tmp" "$cfgfile" \
18538       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18539   test 0 -eq $? || _lt_function_replace_fail=:
18540 fi
18541
18542 if test x"$_lt_function_replace_fail" = x":"; then
18543   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18544 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18545 fi
18546
18547
18548    mv -f "$cfgfile" "$ofile" ||
18549     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18550   chmod +x "$ofile"
18551
18552  ;;
18553     "po-directories":C)
18554     for ac_file in $CONFIG_FILES; do
18555       # Support "outfile[:infile[:infile...]]"
18556       case "$ac_file" in
18557         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18558       esac
18559       # PO directories have a Makefile.in generated from Makefile.in.in.
18560       case "$ac_file" in */Makefile.in)
18561         # Adjust a relative srcdir.
18562         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18563         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18564         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18565         # In autoconf-2.13 it is called $ac_given_srcdir.
18566         # In autoconf-2.50 it is called $srcdir.
18567         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18568         case "$ac_given_srcdir" in
18569           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18570           /*) top_srcdir="$ac_given_srcdir" ;;
18571           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18572         esac
18573         # Treat a directory as a PO directory if and only if it has a
18574         # POTFILES.in file. This allows packages to have multiple PO
18575         # directories under different names or in different locations.
18576         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18577           rm -f "$ac_dir/POTFILES"
18578           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18579           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18580           POMAKEFILEDEPS="POTFILES.in"
18581           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18582           # on $ac_dir but don't depend on user-specified configuration
18583           # parameters.
18584           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18585             # The LINGUAS file contains the set of available languages.
18586             if test -n "$OBSOLETE_ALL_LINGUAS"; then
18587               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18588             fi
18589             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18590             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18591             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18592             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18593           else
18594             # The set of available languages was given in configure.in.
18595             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18596             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18597           fi
18598           # Compute POFILES
18599           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18600           # Compute UPDATEPOFILES
18601           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18602           # Compute DUMMYPOFILES
18603           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18604           # Compute GMOFILES
18605           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18606           case "$ac_given_srcdir" in
18607             .) srcdirpre= ;;
18608             *) srcdirpre='$(srcdir)/' ;;
18609           esac
18610           POFILES=
18611           UPDATEPOFILES=
18612           DUMMYPOFILES=
18613           GMOFILES=
18614           for lang in $ALL_LINGUAS; do
18615             POFILES="$POFILES $srcdirpre$lang.po"
18616             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18617             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18618             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18619           done
18620           # CATALOGS depends on both $ac_dir and the user's LINGUAS
18621           # environment variable.
18622           INST_LINGUAS=
18623           if test -n "$ALL_LINGUAS"; then
18624             for presentlang in $ALL_LINGUAS; do
18625               useit=no
18626               if test "%UNSET%" != "$LINGUAS"; then
18627                 desiredlanguages="$LINGUAS"
18628               else
18629                 desiredlanguages="$ALL_LINGUAS"
18630               fi
18631               for desiredlang in $desiredlanguages; do
18632                 # Use the presentlang catalog if desiredlang is
18633                 #   a. equal to presentlang, or
18634                 #   b. a variant of presentlang (because in this case,
18635                 #      presentlang can be used as a fallback for messages
18636                 #      which are not translated in the desiredlang catalog).
18637                 case "$desiredlang" in
18638                   "$presentlang"*) useit=yes;;
18639                 esac
18640               done
18641               if test $useit = yes; then
18642                 INST_LINGUAS="$INST_LINGUAS $presentlang"
18643               fi
18644             done
18645           fi
18646           CATALOGS=
18647           if test -n "$INST_LINGUAS"; then
18648             for lang in $INST_LINGUAS; do
18649               CATALOGS="$CATALOGS $lang.gmo"
18650             done
18651           fi
18652           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18653           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18654           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18655             if test -f "$f"; then
18656               case "$f" in
18657                 *.orig | *.bak | *~) ;;
18658                 *) cat "$f" >> "$ac_dir/Makefile" ;;
18659               esac
18660             fi
18661           done
18662         fi
18663         ;;
18664       esac
18665     done ;;
18666
18667   esac
18668 done # for ac_tag
18669
18670
18671 as_fn_exit 0
18672 _ACEOF
18673 ac_clean_files=$ac_clean_files_save
18674
18675 test $ac_write_fail = 0 ||
18676   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18677
18678
18679 # configure is writing to config.log, and then calls config.status.
18680 # config.status does its own redirection, appending to config.log.
18681 # Unfortunately, on DOS this fails, as config.log is still kept open
18682 # by configure, so config.status won't be able to write to it; its
18683 # output is simply discarded.  So we exec the FD to /dev/null,
18684 # effectively closing config.log, so it can be properly (re)opened and
18685 # appended to by config.status.  When coming back to configure, we
18686 # need to make the FD available again.
18687 if test "$no_create" != yes; then
18688   ac_cs_success=:
18689   ac_config_status_args=
18690   test "$silent" = yes &&
18691     ac_config_status_args="$ac_config_status_args --quiet"
18692   exec 5>/dev/null
18693   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18694   exec 5>>config.log
18695   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18696   # would make configure fail if this is the last instruction.
18697   $ac_cs_success || as_fn_exit 1
18698 fi
18699 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18700   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18701 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18702 fi
18703